OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
orbitcameramode.hpp
Go to the documentation of this file.
1 #ifndef CSV_RENDER_ORBITCAMERAPICKMODE_H
2 #define CSV_RENDER_ORBITCAMERAPICKMODE_H
3 
4 #include <memory>
5 
6 #include "../widget/modebutton.hpp"
7 
8 namespace CSMPrefs
9 {
10  class Shortcut;
11 }
12 
13 namespace CSVRender
14 {
15  class WorldspaceWidget;
16 
18  {
19  Q_OBJECT
20 
21  public:
22 
23  OrbitCameraMode(WorldspaceWidget* worldspaceWidget, const QIcon& icon, const QString& tooltip = "",
24  QWidget* parent = 0);
26 
27  virtual void activate(CSVWidget::SceneToolbar* toolbar);
28  virtual void deactivate(CSVWidget::SceneToolbar* toolbar);
29  virtual bool createContextMenu(QMenu* menu);
30 
31  private:
32 
36 
37  private slots:
38 
39  void centerSelection();
40  };
41 }
42 
43 #endif
Definition: worldspacewidget.hpp:48
virtual void activate(CSVWidget::SceneToolbar *toolbar)
Default-Implementation: do nothing.
Definition: orbitcameramode.cpp:27
CSMPrefs::Shortcut * mCenterShortcut
Definition: orbitcameramode.hpp:35
virtual bool createContextMenu(QMenu *menu)
Definition: orbitcameramode.cpp:42
WorldspaceWidget * mWorldspaceWidget
Definition: orbitcameramode.hpp:33
void centerSelection()
Definition: orbitcameramode.cpp:52
virtual void deactivate(CSVWidget::SceneToolbar *toolbar)
Default-Implementation: do nothing.
Definition: orbitcameramode.cpp:36
~OrbitCameraMode()
Definition: orbitcameramode.cpp:23
Specialist PushButton of Type_Mode for use in SceneToolMode.
Definition: modebutton.hpp:13
Definition: orbitcameramode.hpp:17
OrbitCameraMode(WorldspaceWidget *worldspaceWidget, const QIcon &icon, const QString &tooltip="", QWidget *parent=0)
Definition: orbitcameramode.cpp:12
Definition: scenetoolbar.hpp:12
QAction * mCenterOnSelection
Definition: orbitcameramode.hpp:34
A class similar in purpose to QShortcut, but with the ability to use mouse buttons.
Definition: shortcut.hpp:16