flagrowobj.h
author insilmaril
Mon Apr 24 10:05:10 2006 +0000 (2006-04-24)
changeset 302 8f89af56933d
parent 103 c810a11d11d9
child 366 e95081c21da2
permissions -rw-r--r--
Fixed missing Icon for flag-url in XHTML export
     1 #ifndef FLAGROWOBJ_H
     2 #define FLAGROWOBJ_H
     3 
     4 #include <qmainwindow.h>
     5 
     6 #include "mapobj.h"
     7 #include "flagobj.h"
     8 
     9 class FlagRowObj:public QObject,public MapObj {
    10 public:
    11     FlagRowObj ();
    12     FlagRowObj (QCanvas*);
    13     ~FlagRowObj ();
    14     virtual void init ();
    15     virtual void copy (FlagRowObj*);
    16     virtual void clone(FlagRowObj*);
    17     virtual void move   (double,double);
    18     virtual void moveBy (double,double);
    19     virtual void setVisibility(bool);
    20     virtual FlagObj* addFlag (FlagObj *fo);			// make deep copy of FlagObj
    21     virtual void positionBBox();
    22     virtual void calcBBoxSize();
    23 	virtual QString getFlagName (const QPoint &p);	// Find flag by position
    24 	bool isActive(const QString&);
    25 	void toggle (const QString&,bool);
    26 	void activate(const QString&);
    27 	void deactivate(const QString&);
    28 	void deactivateAll();
    29 	void deactivateGroup(FlagObj *);
    30 	void setEnabled (bool);
    31 	void setShowFlags (bool);
    32 	void resetUsedCounter();
    33 	QString saveToDir (const QString &,const QString &,bool);
    34 	void setName (const QString&);			// prefix for exporting flags to dir
    35 	void makeToolbar (QMainWindow*, const QString &);	// Create Toolbar buttons
    36 	void updateToolbar();					// Update Toolbar buttons	
    37 private:	
    38 	FlagRowObj* parentRow;					// look for flags in this row
    39 	FlagObj* findFlag (const QString&);
    40     QPtrList <FlagObj> flag; 
    41 	QString name;
    42 	bool showFlags;							// FloatObjects want to hide their flags
    43 };
    44 #endif