OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
scenetoolbar.hpp
Go to the documentation of this file.
1 #ifndef CSV_WIDGET_SCENETOOLBAR_H
2 #define CSV_WIDGET_SCENETOOLBAR_H
3 
4 #include <QWidget>
5 
6 class QVBoxLayout;
7 
8 namespace CSVWidget
9 {
10  class SceneTool;
11 
12  class SceneToolbar : public QWidget
13  {
14  Q_OBJECT
15 
16  QVBoxLayout *mLayout;
18  int mIconSize;
19 
20  protected:
21 
22  virtual void focusInEvent (QFocusEvent *event);
23 
24  public:
25 
26  SceneToolbar (int buttonSize, QWidget *parent = 0);
27 
30  void addTool (SceneTool *tool, SceneTool *insertPoint = 0);
31 
32  void removeTool (SceneTool *tool);
33 
34  int getButtonSize() const;
35 
36  int getIconSize() const;
37 
38  signals:
39 
40  void focusSceneRequest();
41  };
42 }
43 
44 #endif
int getIconSize() const
Definition: scenetoolbar.cpp:54
static const struct @2 signals[]
void addTool(SceneTool *tool, SceneTool *insertPoint=0)
Definition: scenetoolbar.cpp:33
SceneToolbar(int buttonSize, QWidget *parent=0)
Definition: scenetoolbar.cpp:17
Tool base class.
Definition: scenetool.hpp:11
int mIconSize
Definition: scenetoolbar.hpp:18
QVBoxLayout * mLayout
Definition: scenetoolbar.hpp:16
virtual void focusInEvent(QFocusEvent *event)
Definition: scenetoolbar.cpp:9
Definition: scenetoolbar.hpp:12
int mButtonSize
Definition: scenetoolbar.hpp:17
int getButtonSize() const
Definition: scenetoolbar.cpp:49
void removeTool(SceneTool *tool)
Definition: scenetoolbar.cpp:44