1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/flagrowobj.h Tue Mar 10 12:46:48 2009 +0000
1.3 @@ -0,0 +1,41 @@
1.4 +#ifndef FLAGROWOBJ_H
1.5 +#define FLAGROWOBJ_H
1.6 +
1.7 +#include <qmainwindow.h>
1.8 +
1.9 +#include "mapobj.h"
1.10 +#include "flagobj.h"
1.11 +
1.12 +class FlagRowObj:public QObject,public MapObj {
1.13 +public:
1.14 + FlagRowObj ();
1.15 + FlagRowObj (QCanvas*);
1.16 + ~FlagRowObj ();
1.17 + virtual void init ();
1.18 + virtual void copy (FlagRowObj*);
1.19 + virtual void clone(FlagRowObj*);
1.20 + virtual void move (double,double);
1.21 + virtual void moveBy (double,double);
1.22 + virtual void setVisibility(bool);
1.23 + virtual FlagObj* addFlag (FlagObj *fo); // make deep copy of FlagObj
1.24 + virtual void positionBBox();
1.25 + virtual void calcBBoxSize();
1.26 + virtual QString getFlagName (const QPoint &p); // Find flag by position
1.27 + bool isActive(const QString&);
1.28 + void toggle (const QString&);
1.29 + void activate(const QString&);
1.30 + void deactivate(const QString&);
1.31 + void deactivateAll();
1.32 + void setEnabled (bool);
1.33 + void resetUsedCounter();
1.34 + QString saveToDir (const QString &,const QString &,bool);
1.35 + void setName (const QString&); // prefix for exporting flags to dir
1.36 + void makeToolbar (QMainWindow*, const QString &); // Create Toolbar buttons
1.37 + void updateToolBar(); // Update Toolbar buttons
1.38 +private:
1.39 + FlagRowObj* parentRow; // look for flags in this row
1.40 + FlagObj* findFlag (const QString&);
1.41 + QPtrList <FlagObj> flag;
1.42 + QString name;
1.43 +};
1.44 +#endif