2014-07-08 10:39:12 +00:00
|
|
|
#ifndef CSV_WIDGET_SCENETOOL_H
|
|
|
|
#define CSV_WIDGET_SCENETOOL_H
|
2013-09-28 09:06:56 +00:00
|
|
|
|
2014-07-10 09:45:45 +00:00
|
|
|
#include "pushbutton.hpp"
|
2013-09-28 09:06:56 +00:00
|
|
|
|
2014-07-08 10:39:12 +00:00
|
|
|
namespace CSVWidget
|
2013-09-28 09:06:56 +00:00
|
|
|
{
|
2013-10-07 09:14:11 +00:00
|
|
|
class SceneToolbar;
|
|
|
|
|
2013-09-28 09:27:24 +00:00
|
|
|
///< \brief Tool base class
|
2014-07-10 09:45:45 +00:00
|
|
|
class SceneTool : public PushButton
|
2013-09-28 09:06:56 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2014-09-06 14:11:06 +00:00
|
|
|
SceneTool (SceneToolbar *parent, Type type = Type_TopMode);
|
2013-09-28 09:06:56 +00:00
|
|
|
|
2013-09-28 11:10:42 +00:00
|
|
|
virtual void showPanel (const QPoint& position) = 0;
|
|
|
|
|
2014-09-07 11:35:30 +00: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 11:10:42 +00:00
|
|
|
private slots:
|
|
|
|
|
|
|
|
void openRequest();
|
2013-09-28 09:06:56 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|