flagrowobj.h
author insilmaril
Tue, 06 Jun 2006 14:58:11 +0000
branchqt4-port
changeset 2 608f976aa7bb
parent 0 7a96bd401351
child 3 6a0342b3c519
permissions -rw-r--r--
First compilation on QT4
     1 #ifndef FLAGROWOBJ_H
     2 #define FLAGROWOBJ_H
     3 
     4 #include <q3mainwindow.h>
     5 //Added by qt3to4:
     6 #include <Q3PtrList>
     7 
     8 #include "mapobj.h"
     9 #include "flagobj.h"
    10 
    11 class FlagRowObj:public QObject,public MapObj {
    12 public:
    13     FlagRowObj ();
    14     FlagRowObj (Q3Canvas*);
    15     ~FlagRowObj ();
    16     virtual void init ();
    17     virtual void copy (FlagRowObj*);
    18     virtual void clone(FlagRowObj*);
    19     virtual void move   (double,double);
    20     virtual void moveBy (double,double);
    21     virtual void setVisibility(bool);
    22     virtual FlagObj* addFlag (FlagObj *fo);			// make deep copy of FlagObj
    23     virtual void positionBBox();
    24     virtual void calcBBoxSize();
    25 	virtual QString getFlagName (const QPoint &p);	// Find flag by position
    26 	bool isActive(const QString&);
    27 	void toggle (const QString&,bool);
    28 	void activate(const QString&);
    29 	void deactivate(const QString&);
    30 	void deactivateAll();
    31 	void deactivateGroup(FlagObj *);
    32 	void setEnabled (bool);
    33 	void setShowFlags (bool);
    34 	void resetUsedCounter();
    35 	QString saveToDir (const QString &,const QString &,bool);
    36 	void setName (const QString&);			// prefix for exporting flags to dir
    37 	void makeToolbar (Q3MainWindow*, const QString &);	// Create Toolbar buttons
    38 	void updateToolbar();					// Update Toolbar buttons	
    39 private:	
    40 	FlagRowObj* parentRow;					// look for flags in this row
    41 	FlagObj* findFlag (const QString&);
    42     Q3PtrList <FlagObj> flag; 
    43 	QString name;
    44 	bool showFlags;							// FloatObjects want to hide their flags
    45 };
    46 #endif