22 #ifndef _vctQtWidgetDynamicVector_h
23 #define _vctQtWidgetDynamicVector_h
25 #include <QTableWidget>
40 template <
class _elementType>
43 typedef _elementType value_type;
49 void SetPrecision(
const int precision);
50 void SetFormat(
const char format);
53 template <
class _elementType>
56 typedef _elementType value_type;
61 void SetBase(
const int base);
64 #if (CISST_OS == CISST_WINDOWS) && defined(CISST_COMPILER_IS_MSVC)
65 #pragma warning ( disable : 4661 )
71 #endif // CISST_WINDOWS
78 typedef enum {
TEXT_WIDGET, SPINBOX_WIDGET, SLIDER_WIDGET} DisplayModeType;
80 void SetDisplayMode(
const DisplayModeType displayMode);
82 void valueChanged(
void);
84 enum {SLIDER_RESOLUTION = 1000};
87 void SliderValueChangedSlot(
int value);
88 void DoubleSpinBoxValueChangedSlot(
double value);
89 void SpinBoxValueChangedSlot(
int value);
90 void ItemChangedSlot(QTableWidgetItem * item);
93 template <
class _elementType>
96 typedef _elementType value_type;
99 value_type Minimum, Maximum, Step;
105 void SetPrecision(
const int precision);
106 void SetFormat(
const char format);
107 void SetRange(
const value_type minimum,
const value_type maximum);
109 void SetStep(
const value_type step);
111 void UpdateWidgetPrecision(
void);
112 void UpdateWidgetRange(
void);
113 value_type GetMinimum(
const size_t index)
const;
114 value_type GetMaximum(
const size_t index)
const;
117 template <
class _elementType>
120 typedef _elementType value_type;
122 value_type Minimum, Maximum, Step;
127 void SetBase(
const int base);
128 void SetRange(
const value_type minimum,
const value_type maximum);
129 void SetStep(
const value_type step);
132 #if (CISST_OS == CISST_WINDOWS) && defined(CISST_COMPILER_IS_MSVC)
133 #pragma warning ( disable : 4661 )
138 #endif // CISST_WINDOWS
150 bool valueChanged(
void);
152 void ValueChangedSlot(
bool value);
155 #endif // _vctQtWidgetDynamicVector_h
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
Declaration of vctDynamicVector.
Macros to export the symbols of cisstVectorQt (in a Dll).