1 #ifndef FLAGROWMASTER_H
2 #define FLAGROWMASTER_H
11 /*! \brief A set of flags (Flag).
13 A toolbar can be created from the flags in this row.
14 The data needed for represention in a vym map
15 is stored in FlagRowObj.
18 class FlagRowMaster : public XMLObj {
20 enum WriteMode { NoFlags, UsedFlags, AllFlags };
23 Flag *createFlag(const QString &path);
24 void createConfigureAction();
25 void addActionToToolbar(QAction *a);
26 Flag *findFlagByUid(const QUuid &uid);
27 Flag *findFlagByName(const QString &name);
28 void resetUsedCounter();
29 QString saveDef(WriteMode mode);
30 void saveDataToDir(const QString &, WriteMode mode);
31 void setName(const QString &); // prefix for exporting flags to dir
32 QString getName(); // Used for debugging only
33 void setPrefix(const QString &prefix);
34 void setToolBar(QToolBar *tb);
35 void setEnabled(bool);
36 void updateToolBar(QList<QUuid> activeUids);
40 QList<Flag *> flags; //! Used in to define flags
41 QString rowName; //! Name of this collection of flags
42 QString prefix; //! Prefix for saving data: user/ or standard/
43 QAction *configureAction; //! Action to trigger loading new user flags