OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
scenetoolrun.hpp
Go to the documentation of this file.
1 #ifndef CSV_WIDGET_SCENETOOLRUN_H
2 #define CSV_WIDGET_SCENETOOLRUN_H
3 
4 #include <set>
5 #include <string>
6 
7 #include "scenetool.hpp"
8 
9 class QFrame;
10 class QTableWidget;
11 class QModelIndex;
12 
13 namespace CSVWidget
14 {
15  class SceneToolRun : public SceneTool
16  {
17  Q_OBJECT
18 
19  std::set<std::string> mProfiles;
20  std::set<std::string>::iterator mSelected;
21  QString mToolTip;
24 
25  private:
26 
27  void adjustToolTips();
28 
29  void updateIcon();
30 
31  void updatePanel();
32 
33  public:
34 
35  SceneToolRun (SceneToolbar *parent, const QString& toolTip, const QString& icon,
36  const std::vector<std::string>& profiles);
37 
38  virtual void showPanel (const QPoint& position);
39 
40  virtual void activate();
41 
44  void removeProfile (const std::string& profile);
45 
50  void addProfile (const std::string& profile);
51 
52  private slots:
53 
54  void clicked (const QModelIndex& index);
55 
56  signals:
57 
58  void runRequest (const std::string& profile);
59  };
60 }
61 
62 #endif
void removeProfile(const std::string &profile)
Definition: scenetoolrun.cpp:96
QFrame * mPanel
Definition: scenetoolrun.hpp:22
void runRequest(const std::string &profile)
static const struct @2 signals[]
void updatePanel()
Definition: scenetoolrun.cpp:31
void addProfile(const std::string &profile)
Definition: scenetoolrun.cpp:119
QTableWidget * mTable
Definition: scenetoolrun.hpp:23
std::set< std::string >::iterator mSelected
Definition: scenetoolrun.hpp:20
SceneToolRun(SceneToolbar *parent, const QString &toolTip, const QString &icon, const std::vector< std::string > &profiles)
Definition: scenetoolrun.cpp:47
std::set< std::string > mProfiles
Definition: scenetoolrun.hpp:19
QString mToolTip
Definition: scenetoolrun.hpp:21
Tool base class.
Definition: scenetool.hpp:11
void clicked(const QModelIndex &index)
Definition: scenetoolrun.cpp:137
virtual void showPanel(const QPoint &position)
Definition: scenetoolrun.cpp:82
Definition: scenetoolrun.hpp:15
virtual void activate()
Definition: scenetoolrun.cpp:90
void updateIcon()
Definition: scenetoolrun.cpp:26
Definition: scenetoolbar.hpp:12
void adjustToolTips()
Definition: scenetoolrun.cpp:11