/*************************************************************************** * TmsStateGui.h TMS Cycle parameters State display * T.Barnaby, BEAM Ltd, 2007-11-13 *************************************************************************** */ #ifndef TmsStateGui_H #define TmsStateGui_H 1 #include #include #include #include #include #include #include #include #include #include #include #include class TmsStateGui: public QVBox { Q_OBJECT public: TmsStateGui(QWidget* p); ~TmsStateGui(); void init(); ///< Initialise void setState(int num); public slots: BError view(Tms::CycleParamEdit& cycleParam, int reset); void updateState(); void update(); void scroll(); void zoomIn(); void zoomOut(); signals: void stateChanged(int num); private: void zoom(int in); QScrollBar* oscrollBar; QPushButton* ozoomIn; QPushButton* ozoomOut; QGrid* oinfoBox; QSpinBox* ostate; QLineEdit* ostateInfo; QLineEdit* ostateField0; QLineEdit* ostateField1; Tms::CycleParamEdit ocycleParam; BArray ographs; unsigned int opos; unsigned int orange; unsigned int orangeMax; }; #endif