author | insilmaril |
Sat Mar 31 09:28:27 2007 +0000 (2007-03-31) | |
changeset 442 | dfbc371b7280 |
parent 408 | c2a05fa925a1 |
child 468 | 82bd254b58da |
permissions | -rw-r--r-- |
insilmaril@0 | 1 |
#ifndef FLAGROWOBJ_H |
insilmaril@0 | 2 |
#define FLAGROWOBJ_H |
insilmaril@0 | 3 |
|
insilmaril@366 | 4 |
#include <QMainWindow> |
insilmaril@0 | 5 |
|
insilmaril@0 | 6 |
#include "mapobj.h" |
insilmaril@0 | 7 |
#include "flagobj.h" |
insilmaril@0 | 8 |
|
insilmaril@425 | 9 |
class FlagRowObj:public MapObj { |
insilmaril@0 | 10 |
public: |
insilmaril@0 | 11 |
FlagRowObj (); |
insilmaril@408 | 12 |
FlagRowObj (QGraphicsScene *); |
insilmaril@0 | 13 |
~FlagRowObj (); |
insilmaril@0 | 14 |
virtual void init (); |
insilmaril@0 | 15 |
virtual void copy (FlagRowObj*); |
insilmaril@0 | 16 |
virtual void clone(FlagRowObj*); |
insilmaril@0 | 17 |
virtual void move (double,double); |
insilmaril@0 | 18 |
virtual void moveBy (double,double); |
insilmaril@0 | 19 |
virtual void setVisibility(bool); |
insilmaril@0 | 20 |
virtual FlagObj* addFlag (FlagObj *fo); // make deep copy of FlagObj |
insilmaril@0 | 21 |
virtual void positionBBox(); |
insilmaril@0 | 22 |
virtual void calcBBoxSize(); |
insilmaril@408 | 23 |
virtual QString getFlagName (const QPointF &p); // Find flag by position |
insilmaril@0 | 24 |
bool isActive(const QString&); |
insilmaril@103 | 25 |
void toggle (const QString&,bool); |
insilmaril@0 | 26 |
void activate(const QString&); |
insilmaril@0 | 27 |
void deactivate(const QString&); |
insilmaril@0 | 28 |
void deactivateAll(); |
insilmaril@103 | 29 |
void deactivateGroup(FlagObj *); |
insilmaril@366 | 30 |
void setToolBar (QToolBar *); |
insilmaril@0 | 31 |
void setEnabled (bool); |
insilmaril@257 | 32 |
void setShowFlags (bool); |
insilmaril@0 | 33 |
void resetUsedCounter(); |
insilmaril@0 | 34 |
QString saveToDir (const QString &,const QString &,bool); |
insilmaril@0 | 35 |
void setName (const QString&); // prefix for exporting flags to dir |
insilmaril@0 | 36 |
void makeToolbar (QMainWindow*, const QString &); // Create Toolbar buttons |
insilmaril@103 | 37 |
void updateToolbar(); // Update Toolbar buttons |
insilmaril@0 | 38 |
private: |
insilmaril@0 | 39 |
FlagRowObj* parentRow; // look for flags in this row |
insilmaril@0 | 40 |
FlagObj* findFlag (const QString&); |
insilmaril@406 | 41 |
QList <FlagObj*> flag; |
insilmaril@366 | 42 |
QToolBar *toolbar; |
insilmaril@0 | 43 |
QString name; |
insilmaril@257 | 44 |
bool showFlags; // FloatObjects want to hide their flags |
insilmaril@0 | 45 |
}; |
insilmaril@0 | 46 |
#endif |