9 /*! \brief A collection of flags (FlagObj).
11 The flags are aligned horizontally in a row on the map.
12 A toolbar can be created from the flags in this row.
15 class FlagRowObj:public MapObj {
18 FlagRowObj (QGraphicsScene *);
21 virtual void copy (FlagRowObj*);
22 virtual void clone(FlagRowObj*);
23 virtual void move (double,double);
24 virtual void moveBy (double,double);
25 virtual void setVisibility(bool);
26 virtual FlagObj* addFlag (FlagObj *fo); // make deep copy of FlagObj
27 virtual void positionBBox();
28 virtual void calcBBoxSize();
29 virtual QString getFlagName (const QPointF &p); // Find flag by position
30 bool isActive(const QString&);
31 void toggle (const QString&,bool);
32 void activate(const QString&);
33 void deactivate(const QString&);
35 void deactivateGroup(FlagObj *);
36 void setToolBar (QToolBar *);
37 void setEnabled (bool);
38 void setShowFlags (bool);
39 void resetUsedCounter();
40 QString saveToDir (const QString &,const QString &,bool);
41 void setName (const QString&); // prefix for exporting flags to dir
42 void makeToolbar (QMainWindow*, const QString &); // Create Toolbar buttons
43 void updateToolbar(); // Update Toolbar buttons
45 FlagRowObj* parentRow; // look for flags in this row
46 FlagObj* findFlag (const QString&);
47 QList <FlagObj*> flag;
50 bool showFlags; // FloatObjects want to hide their flags