Menu

[efa3d9]: / src / flagrow-master.h  Maximize  Restore  History

Download this file

47 lines (39 with data), 1.4 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
42
43
44
45
46
#ifndef FLAGROWMASTER_H
#define FLAGROWMASTER_H
#include <QList>
#include <QStringList>
#include <QToolBar>
#include "xmlobj.h"
class Flag;
/*! \brief A set of flags (Flag).
A toolbar can be created from the flags in this row.
The data needed for represention in a vym map
is stored in FlagRowObj.
*/
class FlagRowMaster : public XMLObj {
public:
enum WriteMode { NoFlags, UsedFlags, AllFlags };
FlagRowMaster();
~FlagRowMaster();
Flag *createFlag(const QString &path);
void createConfigureAction();
void addActionToToolbar(QAction *a);
Flag *findFlagByUid(const QUuid &uid);
Flag *findFlagByName(const QString &name);
void resetUsedCounter();
QString saveDef(WriteMode mode);
void saveDataToDir(const QString &, WriteMode mode);
void setName(const QString &); // prefix for exporting flags to dir
QString getName(); // Used for debugging only
void setPrefix(const QString &prefix);
void setToolBar(QToolBar *tb);
void setEnabled(bool);
void updateToolBar(QList<QUuid> activeUids);
private:
QToolBar *toolbar;
QList<Flag *> flags; //! Used in to define flags
QString rowName; //! Name of this collection of flags
QString prefix; //! Prefix for saving data: user/ or standard/
QAction *configureAction; //! Action to trigger loading new user 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.