Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

FrameVector.cpp

Go to the documentation of this file.
00001 #include "FrameVector.hpp"
00002 
00003 int FrameVector::compareItems(QPtrCollection::Item xx,
00004                                                           QPtrCollection::Item yy) {
00005 
00006     Frame *x = (Frame *) xx;
00007     Frame *y = (Frame *) yy;
00008 
00009     if (sortOrder == DISPLAY) {
00010                 if (x->getNoInDisplay() > y->getNoInDisplay())
00011                 return 1;
00012                 if (x->getNoInDisplay() < y->getNoInDisplay())
00013                 return -1;
00014                 return 0;
00015     }
00016 
00017     if (sortOrder == STREAM) {
00018                 if (x->getNoInStream() > y->getNoInStream())
00019                 return 1;
00020                 if (x->getNoInStream() < y->getNoInStream())
00021                 return -1;
00022                 return 0;
00023     }
00024         return 0;
00025 }
00026 
00027 void FrameVector::setSortOrder(SortOrder s) {
00028         sortOrder = s;
00029 }
00030 

Generated on Wed Mar 19 11:57:42 2003 for qctva4lv by doxygen1.2.17