diff -r 000000000000 -r dbb2a175f7b5 flagrowobj.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flagrowobj.h Thu Jul 30 12:55:17 2009 +0000 @@ -0,0 +1,41 @@ +#ifndef FLAGROWOBJ_H +#define FLAGROWOBJ_H + +#include + +#include "mapobj.h" +#include "flagobj.h" + +class FlagRowObj:public QObject,public MapObj { +public: + FlagRowObj (); + FlagRowObj (QCanvas*); + ~FlagRowObj (); + virtual void init (); + virtual void copy (FlagRowObj*); + virtual void clone(FlagRowObj*); + virtual void move (double,double); + virtual void moveBy (double,double); + virtual void setVisibility(bool); + virtual FlagObj* addFlag (FlagObj *fo); // make deep copy of FlagObj + virtual void positionBBox(); + virtual void calcBBoxSize(); + virtual QString getFlagName (const QPoint &p); // Find flag by position + bool isActive(const QString&); + void toggle (const QString&); + void activate(const QString&); + void deactivate(const QString&); + void deactivateAll(); + void setEnabled (bool); + void resetUsedCounter(); + QString saveToDir (const QString &,const QString &,bool); + void setName (const QString&); // prefix for exporting flags to dir + void makeToolbar (QMainWindow*, const QString &); // Create Toolbar buttons + void updateToolBar(); // Update Toolbar buttons +private: + FlagRowObj* parentRow; // look for flags in this row + FlagObj* findFlag (const QString&); + QPtrList flag; + QString name; +}; +#endif