Changeset 15 in flair-src for trunk/tools/FlairGCS/src/Vector3DSpinBox.h
- Timestamp:
- Apr 8, 2016, 3:40:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/FlairGCS/src/Vector3DSpinBox.h
r10 r15 13 13 class QGridLayout; 14 14 15 class Vector3DSpinBox: public XmlWidget 16 { 17 Q_OBJECT 15 class Vector3DSpinBox : public XmlWidget { 16 Q_OBJECT 18 17 19 public: 20 //handle value as string, becouse double value are not exact 21 Vector3DSpinBox(Layout* parent,int row, int col,QString name,QString value[3],float min,float max,float step,int decimals); 22 ~Vector3DSpinBox(); 18 public: 19 // handle value as string, becouse double value are not exact 20 Vector3DSpinBox(Layout *parent, int row, int col, QString name, 21 QString value[3], float min, float max, float step, 22 int decimals); 23 ~Vector3DSpinBox(); 23 24 24 25 QGridLayout*qgridlayout;26 QGroupBox*box;27 28 29 void AddElement(QString name,int index);30 31 32 33 34 35 36 37 38 25 private: 26 QGridLayout *qgridlayout; 27 QGroupBox *box; 28 QDoubleSpinBox doublespinbox[3]; 29 QString doublespinbox_value[3]; 30 void AddElement(QString name, int index); 31 void SetUptodate(void); 32 void SetValues(QString value[3]); 33 void Reset(void); 34 void LoadEvent(QDomElement dom); 35 void ui_to_var(void); 36 void ui_to_xml(void); 37 bool eventFilter(QObject *o, QEvent *e); 38 void adjust_decimals(QString value[3]); 39 bool IsUptodate(void); 39 40 40 41 41 private slots: 42 void valuechanged(const QString &value); 42 43 }; 43 44
Note:
See TracChangeset
for help on using the changeset viewer.