~openmw/openmw/openmw-packaging2

« back to all changes in this revision

Viewing changes to apps/opencs/view/render/pathgridselectionmode.hpp

  • Committer: Scott Howard
  • Date: 2016-09-15 20:56:29 UTC
  • Revision ID: showard@debian.org-20160915205629-3tvfxe47zrb41a91
Cron update. Git hash: 37278b5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef CSV_RENDER_PATHGRID_SELECTION_MODE_H
 
2
#define CSV_RENDER_PATHGRID_SELECTION_MODE_H
 
3
 
 
4
#include "selectionmode.hpp"
 
5
 
 
6
namespace CSVRender
 
7
{
 
8
    class PathgridSelectionMode : public SelectionMode
 
9
    {
 
10
            Q_OBJECT
 
11
 
 
12
        public:
 
13
 
 
14
            PathgridSelectionMode(CSVWidget::SceneToolbar* parent, WorldspaceWidget& worldspaceWidget);
 
15
 
 
16
        protected:
 
17
 
 
18
            /// Add context menu items to \a menu.
 
19
            ///
 
20
            /// \attention menu can be a 0-pointer
 
21
            ///
 
22
            /// \return Have there been any menu items to be added (if menu is 0 and there
 
23
            /// items to be added, the function must return true anyway.
 
24
            bool createContextMenu(QMenu* menu);
 
25
 
 
26
        private:
 
27
 
 
28
            QAction* mRemoveSelectedNodes;
 
29
            QAction* mRemoveSelectedEdges;
 
30
 
 
31
        private slots:
 
32
 
 
33
            void removeSelectedNodes();
 
34
            void removeSelectedEdges();
 
35
    };
 
36
}
 
37
 
 
38
#endif