CMS 3D CMS Logo

IgMatEdSlider.h

Go to the documentation of this file.
00001 #ifndef IG3DMATERIAL_EDITOR_IG_MAT_ED_SLIDER_H
00002 # define IG3DMATERIAL_EDITOR_IG_MAT_ED_SLIDER_H
00003 
00004 //<<<<<< INCLUDES                                                       >>>>>>
00005 
00006 # include "Iguana/Controls/interface/config.h"
00007 
00008 # include <qhbox.h>
00009 
00010 //<<<<<< PUBLIC DEFINES                                                 >>>>>>
00011 //<<<<<< PUBLIC CONSTANTS                                               >>>>>>
00012 //<<<<<< PUBLIC TYPES                                                   >>>>>>
00013 
00014 class QWidget;
00015 class QLabel;
00016 class QSlider;
00017 class IgMatEdMainWidget;
00018 
00019 //<<<<<< PUBLIC VARIABLES                                               >>>>>>
00020 //<<<<<< PUBLIC FUNCTIONS                                               >>>>>>
00021 //<<<<<< CLASS DECLARATIONS                                             >>>>>>
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     // implicit copy constructor
00034     // implicit assignment operator
00035     // implicit destructor
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 //<<<<<< INLINE PUBLIC FUNCTIONS                                        >>>>>>
00048 //<<<<<< INLINE MEMBER FUNCTIONS                                        >>>>>>
00049 
00050 #endif // IG3DMATERIAL_EDITOR_IG_MAT_ED_SLIDER_H

Generated on Tue Jun 9 17:38:12 2009 for CMSSW by  doxygen 1.5.4