00001 #ifndef IG3DMATERIAL_EDITOR_IG_MAT_ED_SLIDER_H
00002 # define IG3DMATERIAL_EDITOR_IG_MAT_ED_SLIDER_H
00003
00004
00005
00006 # include "Iguana/Controls/interface/config.h"
00007
00008 # include <qhbox.h>
00009
00010
00011
00012
00013
00014 class QWidget;
00015 class QLabel;
00016 class QSlider;
00017 class IgMatEdMainWidget;
00018
00019
00020
00021
00022
00023 class IG3DMATERIAL_EDITOR_API IgMatEdSlider : public QHBox
00024 {
00025 Q_OBJECT
00026 public:
00027 IgMatEdSlider (QWidget *parent, const char *name, float *target, IgMatEdMainWidget *mainWidget);
00028 void setValue (int value);
00029 void setValue (float value);
00030 void updatePosition (int value);
00031 void updatePosition (float value);
00032
00033
00034
00035
00036 public slots:
00037 void updateValue (int newValue);
00038 private:
00039 QLabel *m_label;
00040 QSlider *m_slider;
00041 float *m_target;
00042 IgMatEdMainWidget *m_mainWidget;
00043 QLabel *m_count;
00044 bool m_updatePosition;
00045 };
00046
00047
00048
00049
00050 #endif // IG3DMATERIAL_EDITOR_IG_MAT_ED_SLIDER_H