OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
selectionmode.hpp
Go to the documentation of this file.
1 #ifndef CSV_RENDER_SELECTION_MODE_H
2 #define CSV_RENDER_SELECTION_MODE_H
3 
4 #include "../widget/scenetoolmode.hpp"
5 
6 #include "mask.hpp"
7 
8 class QAction;
9 
10 namespace CSVRender
11 {
12  class WorldspaceWidget;
13 
15  {
16  Q_OBJECT
17 
18  public:
19 
20  SelectionMode(CSVWidget::SceneToolbar* parent, WorldspaceWidget& worldspaceWidget,
21  unsigned int interactionMask);
22 
23  protected:
24 
26 
33  virtual bool createContextMenu (QMenu* menu);
34 
35  private:
36 
38  unsigned int mInteractionMask;
42 
43  protected slots:
44 
45  virtual void selectAll();
46  virtual void clearSelection();
47  virtual void invertSelection();
48  };
49 }
50 
51 #endif
Definition: worldspacewidget.hpp:48
Mode selector tool.
Definition: scenetoolmode.hpp:18
WorldspaceWidget & mWorldspaceWidget
Definition: selectionmode.hpp:37
virtual bool createContextMenu(QMenu *menu)
Definition: selectionmode.cpp:57
QAction * mSelectAll
Definition: selectionmode.hpp:39
unsigned int mInteractionMask
Definition: selectionmode.hpp:38
Definition: selectionmode.hpp:14
QAction * mInvertSelection
Definition: selectionmode.hpp:41
QAction * mDeselectAll
Definition: selectionmode.hpp:40
virtual void selectAll()
Definition: selectionmode.cpp:69
virtual void invertSelection()
Definition: selectionmode.cpp:79
virtual void clearSelection()
Definition: selectionmode.cpp:74
SelectionMode(CSVWidget::SceneToolbar *parent, WorldspaceWidget &worldspaceWidget, unsigned int interactionMask)
Definition: selectionmode.cpp:10
Definition: scenetoolbar.hpp:12
WorldspaceWidget & getWorldspaceWidget()
Definition: selectionmode.cpp:52