Michaël Lemaire
06b170e0f5
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@219 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
31 lines
612 B
C++
31 lines
612 B
C++
#ifndef _PAYSAGES_QT_BASEINPUT_H_
|
|
#define _PAYSAGES_QT_BASEINPUT_H_
|
|
|
|
#include <QWidget>
|
|
#include <QSlider>
|
|
|
|
class BaseInput:public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
BaseInput(QWidget* form, QString label);
|
|
inline QWidget* label() {return _label;}
|
|
inline QWidget* preview() {return _preview;}
|
|
inline QWidget* control() {return _control;}
|
|
|
|
public slots:
|
|
virtual void updatePreview();
|
|
virtual void revert();
|
|
virtual void applyValue();
|
|
|
|
signals:
|
|
void valueChanged();
|
|
|
|
protected:
|
|
QWidget* _label;
|
|
QWidget* _preview;
|
|
QWidget* _control;
|
|
};
|
|
|
|
#endif // _PAYSAGES_QT_BASEINPUT_H_
|