1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-23 04:53:52 +00:00
openmw/apps/opencs/view/widget/scenetool.hpp

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 17:02:00 +00:00
class QMouseEvent;
class QObject;
class QPoint;
namespace CSVWidget
{
class SceneToolbar;
2013-09-28 09:27:24 +00:00
///< \brief Tool base class
class SceneTool : public PushButton
{
2022-09-22 18:26:05 +00:00
Q_OBJECT
2022-09-22 18:26:05 +00:00
public:
SceneTool(SceneToolbar* parent, Type type = Type_TopMode);
2022-09-22 18:26:05 +00:00
virtual void showPanel(const QPoint& position) = 0;
2022-09-22 18:26:05 +00:00
/// This function will only called for buttons of type Type_TopAction. The default
/// implementation is empty.
virtual void activate();
2022-09-22 18:26:05 +00:00
protected:
void mouseReleaseEvent(QMouseEvent* event) override;
2022-09-22 18:26:05 +00:00
private slots:
2022-09-22 18:26:05 +00:00
void openRequest();
};
}
#endif