OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
globaldebugprofilemenu.hpp
Go to the documentation of this file.
1 #ifndef CSV_DOC_GLOBALDEBUGPROFILEMENU_H
2 #define CSV_DOC_GLOBALDEBUGPROFILEMENU_H
3 
4 #include <QMenu>
5 
6 class QModelIndex;
7 class QActionGroup;
8 
9 namespace CSMWorld
10 {
11  class IdTable;
12 }
13 
14 namespace CSVDoc
15 {
17  {
18  Q_OBJECT
19 
21  QActionGroup *mActions;
22 
23  private:
24 
25  void rebuild();
26 
27  public:
28 
29  GlobalDebugProfileMenu (CSMWorld::IdTable *debugProfiles, QWidget *parent = 0);
30 
31  void updateActions (bool running);
32 
33  private slots:
34 
35  void profileAboutToBeRemoved (const QModelIndex& parent, int start, int end);
36 
37  void profileInserted (const QModelIndex& parent, int start, int end);
38 
39  void profileChanged (const QModelIndex& topLeft, const QModelIndex& bottomRight);
40 
41  void actionTriggered (QAction *action);
42 
43  signals:
44 
45  void triggered (const std::string& profile);
46  };
47 }
48 
49 #endif
void profileAboutToBeRemoved(const QModelIndex &parent, int start, int end)
Definition: globaldebugprofilemenu.cpp:71
static const struct @2 signals[]
Definition: idtable.hpp:15
Definition: globaldebugprofilemenu.hpp:16
QActionGroup * mActions
Definition: globaldebugprofilemenu.hpp:21
void actionTriggered(QAction *action)
Definition: globaldebugprofilemenu.cpp:89
void updateActions(bool running)
Definition: globaldebugprofilemenu.cpp:65
void rebuild()
Definition: globaldebugprofilemenu.cpp:11
void profileChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition: globaldebugprofilemenu.cpp:83
GlobalDebugProfileMenu(CSMWorld::IdTable *debugProfiles, QWidget *parent=0)
Definition: globaldebugprofilemenu.cpp:49
void triggered(const std::string &profile)
CSMWorld::IdTable * mDebugProfiles
Definition: globaldebugprofilemenu.hpp:20
void profileInserted(const QModelIndex &parent, int start, int end)
Definition: globaldebugprofilemenu.cpp:77