added ModeButton specialisation of PushButton for use in SceneToolMode
parent
bf40a3bb5d
commit
4dd645559d
@ -0,0 +1,10 @@
|
||||
|
||||
#include "modebutton.hpp"
|
||||
|
||||
CSVWidget::ModeButton::ModeButton (const QIcon& icon, const QString& tooltip, QWidget *parent)
|
||||
: PushButton (icon, Type_Mode, tooltip, parent)
|
||||
{}
|
||||
|
||||
void CSVWidget::ModeButton::activate (SceneToolbar *toolbar) {}
|
||||
|
||||
void CSVWidget::ModeButton::deactivate (SceneToolbar *toolbar) {}
|
@ -0,0 +1,28 @@
|
||||
#ifndef CSV_WIDGET_MODEBUTTON_H
|
||||
#define CSV_WIDGET_MODEBUTTON_H
|
||||
|
||||
#include "pushbutton.hpp"
|
||||
|
||||
namespace CSVWidget
|
||||
{
|
||||
class SceneToolbar;
|
||||
|
||||
/// \brief Specialist PushButton of Type_Mode for use in SceneToolMode
|
||||
class ModeButton : public PushButton
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
ModeButton (const QIcon& icon, const QString& tooltip = "",
|
||||
QWidget *parent = 0);
|
||||
|
||||
/// Default-Implementation: do nothing
|
||||
virtual void activate (SceneToolbar *toolbar);
|
||||
|
||||
/// Default-Implementation: do nothing
|
||||
virtual void deactivate (SceneToolbar *toolbar);
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue