added modifier modes (color,link,copy). Not fully functional yet
4 #include <qmainwindow.h>
9 class FlagRowObj:public QObject,public MapObj {
12 FlagRowObj (QCanvas*);
15 virtual void copy (FlagRowObj*);
16 virtual void clone(FlagRowObj*);
17 virtual void move (double,double);
18 virtual void moveBy (double,double);
19 virtual void setVisibility(bool);
20 virtual FlagObj* addFlag (FlagObj *fo); // make deep copy of FlagObj
21 virtual void positionBBox();
22 virtual void calcBBoxSize();
23 virtual QString getFlagName (const QPoint &p); // Find flag by position
24 bool isActive(const QString&);
25 void toggle (const QString&);
26 void activate(const QString&);
27 void deactivate(const QString&);
29 void setEnabled (bool);
30 void resetUsedCounter();
31 QString saveToDir (const QString &,const QString &,bool);
32 void setName (const QString&); // prefix for exporting flags to dir
33 void makeToolbar (QMainWindow*, const QString &); // Create Toolbar buttons
34 void updateToolBar(); // Update Toolbar buttons
36 FlagRowObj* parentRow; // look for flags in this row
37 FlagObj* findFlag (const QString&);
38 QPtrList <FlagObj> flag;