1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 18:32:36 +00:00
OpenMW/apps/opencs/view/render/orbitcameramode.hpp

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

50 lines
992 B
C++
Raw Normal View History

2016-04-03 16:32:07 -04:00
#ifndef CSV_RENDER_ORBITCAMERAPICKMODE_H
#define CSV_RENDER_ORBITCAMERAPICKMODE_H
#include "../widget/modebutton.hpp"
2022-10-19 19:02:00 +02:00
class QAction;
class QMenu;
class QObject;
class QWidget;
namespace CSVWidget
{
class SceneToolbar;
}
namespace CSMPrefs
{
class Shortcut;
}
2016-04-03 16:32:07 -04:00
namespace CSVRender
{
class WorldspaceWidget;
class OrbitCameraMode : public CSVWidget::ModeButton
{
Q_OBJECT
public:
OrbitCameraMode(WorldspaceWidget* worldspaceWidget, const QIcon& icon, const QString& tooltip = "",
2020-06-22 10:05:25 +04:00
QWidget* parent = nullptr);
~OrbitCameraMode();
2016-04-03 16:32:07 -04:00
void activate(CSVWidget::SceneToolbar* toolbar) override;
2020-06-22 10:05:25 +04:00
void deactivate(CSVWidget::SceneToolbar* toolbar) override;
bool createContextMenu(QMenu* menu) override;
2016-04-03 16:32:07 -04:00
private:
WorldspaceWidget* mWorldspaceWidget;
QAction* mCenterOnSelection;
CSMPrefs::Shortcut* mCenterShortcut;
2016-04-03 16:32:07 -04:00
private slots:
void centerSelection();
};
}
#endif