Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef QMITKSLIDERNAVIGATORWIDGET_H_
00019 #define QMITKSLIDERNAVIGATORWIDGET_H_
00020
00021 #include "ui_QmitkSliderNavigator.h"
00022 #include "QmitkExtExports.h"
00023
00024 #include <mitkStepper.h>
00025
00026 #include <QWidget>
00027 #include <QString>
00028
00029 class QmitkExt_EXPORT QmitkSliderNavigatorWidget : public QWidget, public Ui::QmitkSliderNavigator
00030 {
00031 Q_OBJECT
00032
00033 public:
00034
00035 QmitkSliderNavigatorWidget(QWidget* parent = 0, Qt::WindowFlags f = 0);
00036
00037 QString GetLabelUnit();
00038
00045 QString ClippedValueToString( float value );
00046
00050 QString GetMinValueLabel();
00051
00052 QString GetMaxValueLabel();
00053
00054 int GetPos();
00055
00056 public slots:
00057
00064 void Refetch();
00065
00066 void SetStepper( mitk::Stepper * stepper);
00067
00068 void ShowLabels( bool show );
00069
00074 void ShowLabelUnit( bool show );
00075
00076 void SetPos(int val);
00077
00078 void SetInverseDirection (bool inverseDirection);
00079
00080 protected slots:
00081
00082 void slider_valueChanged( int );
00083
00088 void SetLabelValues( float min, float max );
00089
00090 void SetLabelValuesValid( bool minValid, bool maxValid );
00091
00096 void SetLabelUnit( const char *unit );
00097
00101 void SetLabels();
00102
00103 void spinBox_valueChanged( int );
00104
00105
00106 protected:
00107
00108 bool m_HasLabelUnit;
00109 bool m_MaxValueValid;
00110 bool m_MinValueValid;
00111 QString m_LabelUnit;
00112 mitk::Stepper::Pointer m_Stepper;
00113 bool m_InRefetch;
00114 bool m_HasLabels;
00115 float m_MinValue;
00116 float m_MaxValue;
00117
00118 bool m_InverseDirection;
00119
00120 };
00121
00122 #endif