X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=flagrow.h;fp=flagrow.h;h=0000000000000000000000000000000000000000;hb=d483bd8e6523c23c6f1d8908a2e0611c2bc9ff4f;hp=f94c171ee4d76577c61e9f3315d33e9d63068966;hpb=7dfa3fe589d1722d49681f42cdb0bf1e6efb5223;p=sven%2Fvym.git diff --git a/flagrow.h b/flagrow.h deleted file mode 100644 index f94c171..0000000 --- a/flagrow.h +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef FLAGROW_H -#define FLAGROW_H - -#include -#include - -#include "flag.h" -#include "xmlobj.h" - -/*! \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 FlagRow:public XMLObj { -public: - FlagRow (); - ~FlagRow (); - void addFlag (Flag *flag); - Flag *getFlag (const QString &name); - QStringList activeFlagNames(); - bool isActive(const QString &name); - - /*! \brief Toggle a Flag - - To activate a flag it will be copied from masterRow to current row. - */ - bool toggle (const QString&, FlagRow *masterRow=NULL); - bool activate(const QString&); - bool deactivate(const QString&); - bool deactivateGroup(const QString&); - void deactivateAll(); - void setEnabled (bool); - void resetUsedCounter(); - QString saveToDir (const QString &,const QString &,bool); - void setName (const QString&); // prefix for exporting flags to dir - void setToolBar (QToolBar *tb); - void setMasterRow (FlagRow *row); - void updateToolBar(const QStringList &activeNames); - -private: - QToolBar *toolBar; - FlagRow *masterRow; - QList flags; - QStringList activeNames; //! Lists all names of currently active flags - QString rowName; //! Name of this collection of flags -}; -#endif -