Menu

[2edc72]: / flagrowobj.h  Maximize  Restore  History

Download this file

42 lines (35 with data), 1.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef FLAGROWOBJ_H
#define FLAGROWOBJ_H
#include <QMainWindow>
//#include "mapobj.h"
#include "flagobj.h"
class Flag;
/*! \brief A collection of flags (FlagObj) in a map.
The flags are aligned horizontally in a row on the map.
*/
class FlagRowObj:public MapObj {
public:
FlagRowObj ();
FlagRowObj (QGraphicsScene *);
~FlagRowObj ();
virtual void init ();
virtual void copy (FlagRowObj*);
virtual void move (double,double);
virtual void moveBy (double,double);
virtual void setZValue (double z);
virtual void setVisibility(bool);
virtual FlagObj* addFlag (FlagObj *fo); // make deep copy of FlagObj
virtual QStringList activeFlagNames();
virtual void positionBBox();
virtual void calcBBoxSize();
virtual QString getFlagName (const QPointF &p); // Find flag by position
bool isActive(const QString&);
void activate (Flag *flag);
void deactivate(const QString&);
void setShowFlags (bool);
FlagObj* findFlag (const QString&);
private:
QList <FlagObj*> flag;
bool showFlags; // FloatObjects want to hide their flags
};
#endif
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.