1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 00:49:54 +00:00
openmw-tes3mp/apps/opencs/view/render/orbitcameramode.hpp

44 lines
961 B
C++
Raw Normal View History

2016-04-03 20:32:07 +00:00
#ifndef CSV_RENDER_ORBITCAMERAPICKMODE_H
#define CSV_RENDER_ORBITCAMERAPICKMODE_H
#include <memory>
2016-04-03 20:32:07 +00:00
#include "../widget/modebutton.hpp"
namespace CSMPrefs
{
class Shortcut;
}
2016-04-03 20:32:07 +00: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 06:05:25 +00:00
QWidget* parent = nullptr);
~OrbitCameraMode();
2016-04-03 20:32:07 +00:00
void activate(CSVWidget::SceneToolbar* toolbar) override;
void deactivate(CSVWidget::SceneToolbar* toolbar) override;
bool createContextMenu(QMenu* menu) override;
2016-04-03 20:32:07 +00:00
private:
WorldspaceWidget* mWorldspaceWidget;
QAction* mCenterOnSelection;
2016-08-08 18:36:50 +00:00
CSMPrefs::Shortcut* mCenterShortcut;
2016-04-03 20:32:07 +00:00
private slots:
void centerSelection();
};
}
#endif