1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-27 18:41:05 +00:00
OpenMW/apps/opencs/view/widget/scenetool.hpp

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

38 lines
727 B
C++
Raw Normal View History

#ifndef CSV_WIDGET_SCENETOOL_H
#define CSV_WIDGET_SCENETOOL_H
#include "pushbutton.hpp"
2022-10-19 19:02:00 +02:00
class QMouseEvent;
class QObject;
class QPoint;
namespace CSVWidget
{
class SceneToolbar;
2013-09-28 11:27:24 +02:00
///< \brief Tool base class
class SceneTool : public PushButton
{
Q_OBJECT
public:
SceneTool(SceneToolbar* parent, Type type = Type_TopMode);
virtual void showPanel(const QPoint& position) = 0;
/// This function will only called for buttons of type Type_TopAction. The default
/// implementation is empty.
virtual void activate();
protected:
void mouseReleaseEvent(QMouseEvent* event) override;
private slots:
void openRequest();
};
}
#endif