1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 12:53:52 +00:00
openmw/apps/opencs/view/render/pathgridselectionmode.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
982 B
C++
Raw Normal View History

#ifndef CSV_RENDER_PATHGRID_SELECTION_MODE_H
#define CSV_RENDER_PATHGRID_SELECTION_MODE_H
#include "selectionmode.hpp"
2022-10-19 17:02:00 +00:00
namespace CSVRender
{
class WorldspaceWidget;
}
namespace CSVWidget
{
class SceneToolbar;
}
namespace CSVRender
{
class PathgridSelectionMode : public SelectionMode
{
Q_OBJECT
public:
PathgridSelectionMode(CSVWidget::SceneToolbar* parent, WorldspaceWidget& worldspaceWidget);
protected:
/// Add context menu items to \a menu.
2022-09-22 18:26:05 +00:00
///
/// \attention menu can be a 0-pointer
2022-09-22 18:26:05 +00:00
///
/// \return Have there been any menu items to be added (if menu is 0 and there
/// items to be added, the function must return true anyway.
bool createContextMenu(QMenu* menu) override;
private:
QAction* mRemoveSelectedNodes;
QAction* mRemoveSelectedEdges;
private slots:
void removeSelectedNodes();
void removeSelectedEdges();
};
}
#endif