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