Michaël Lemaire
06b170e0f5
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@219 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
28 lines
492 B
C++
28 lines
492 B
C++
#ifndef _PAYSAGES_QT_INPUTCOLOR_H_
|
|
#define _PAYSAGES_QT_INPUTCOLOR_H_
|
|
|
|
#include <QWidget>
|
|
#include "baseinput.h"
|
|
|
|
#include "../lib_paysages/shared/types.h"
|
|
|
|
class InputColor:public BaseInput
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
InputColor(QWidget* form, QString label, Color* value);
|
|
|
|
public slots:
|
|
virtual void updatePreview();
|
|
virtual void applyValue();
|
|
virtual void revert();
|
|
|
|
private slots:
|
|
void chooseColor();
|
|
|
|
private:
|
|
Color* _value;
|
|
};
|
|
|
|
#endif // _PAYSAGES_QT_INPUTCOLOR_H_
|