OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
modebutton.hpp
Go to the documentation of this file.
1 #ifndef CSV_WIDGET_MODEBUTTON_H
2 #define CSV_WIDGET_MODEBUTTON_H
3 
4 #include "pushbutton.hpp"
5 
6 class QMenu;
7 
8 namespace CSVWidget
9 {
10  class SceneToolbar;
11 
13  class ModeButton : public PushButton
14  {
15  Q_OBJECT
16 
17  public:
18 
19  ModeButton (const QIcon& icon, const QString& tooltip = "",
20  QWidget *parent = 0);
21 
23  virtual void activate (SceneToolbar *toolbar);
24 
26  virtual void deactivate (SceneToolbar *toolbar);
27 
34  virtual bool createContextMenu (QMenu *menu);
35  };
36 }
37 
38 #endif
Definition: pushbutton.hpp:13
Specialist PushButton of Type_Mode for use in SceneToolMode.
Definition: modebutton.hpp:13
virtual void deactivate(SceneToolbar *toolbar)
Default-Implementation: do nothing.
Definition: modebutton.cpp:9
Definition: scenetoolbar.hpp:12
virtual void activate(SceneToolbar *toolbar)
Default-Implementation: do nothing.
Definition: modebutton.cpp:7
virtual bool createContextMenu(QMenu *menu)
Definition: modebutton.cpp:11
ModeButton(const QIcon &icon, const QString &tooltip="", QWidget *parent=0)
Definition: modebutton.cpp:3