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/selectionmode.hpp

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

52 lines
1.2 KiB
C++
Raw Normal View History

#ifndef CSV_RENDER_SELECTION_MODE_H
#define CSV_RENDER_SELECTION_MODE_H
#include "../widget/scenetoolmode.hpp"
class QAction;
2022-10-19 17:02:00 +00:00
namespace CSVWidget
{
class SceneToolbar;
}
namespace CSVRender
{
class WorldspaceWidget;
class SelectionMode : public CSVWidget::SceneToolMode
{
Q_OBJECT
2022-09-22 18:26:05 +00:00
public:
SelectionMode(
CSVWidget::SceneToolbar* parent, WorldspaceWidget& worldspaceWidget, unsigned int interactionMask);
2022-09-22 18:26:05 +00:00
protected:
WorldspaceWidget& getWorldspaceWidget();
2022-09-22 18:26:05 +00:00
/// Add context menu items to \a menu.
///
/// \attention menu can be a 0-pointer
///
/// \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;
2022-09-22 18:26:05 +00:00
private:
WorldspaceWidget& mWorldspaceWidget;
unsigned int mInteractionMask;
QAction* mSelectAll;
QAction* mDeselectAll;
QAction* mInvertSelection;
2022-09-22 18:26:05 +00:00
protected slots:
2022-09-22 18:26:05 +00:00
virtual void selectAll();
virtual void clearSelection();
virtual void invertSelection();
};
}
#endif