00001 /**************************************************************************** 00002 ** Form interface generated from reading ui file 'Qt/SSCMainForm.ui' 00003 ** 00004 ** 00005 ** WARNING! All changes made in this file will be lost! 00006 ****************************************************************************/ 00007 00008 #ifndef SSCMAINFORM_H 00009 #define SSCMAINFORM_H 00010 00011 #include <qvariant.h> 00012 #include <qdialog.h> 00013 #include "Component/ModelManager.H" 00014 #include "Devices/ssc.H" 00015 00016 class QVBoxLayout; 00017 class QHBoxLayout; 00018 class QGridLayout; 00019 class QSpacerItem; 00020 class QLabel; 00021 class QLineEdit; 00022 class QRadioButton; 00023 class QPushButton; 00024 class QGroupBox; 00025 class QSlider; 00026 class QLCDNumber; 00027 00028 class SSCMainForm : public QDialog 00029 { 00030 Q_OBJECT 00031 00032 public: 00033 SSCMainForm( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); 00034 ~SSCMainForm(); 00035 00036 QLabel* labelSerDev; 00037 QLineEdit* lineEditSerDev; 00038 QLabel* labelBaudrate; 00039 QLineEdit* lineEditBaudrate; 00040 QRadioButton* radioButtonDec; 00041 QRadioButton* radioButtonHex; 00042 QPushButton* pushButtonQuit; 00043 QGroupBox* groupBoxAllSSC; 00044 QLabel* textLabelSSC1; 00045 QSlider* sliderSSC1; 00046 QLCDNumber* lCDNumberSSC1; 00047 QLabel* textLabelSSC2; 00048 QSlider* sliderSSC2; 00049 QLCDNumber* lCDNumberSSC2; 00050 QLabel* textLabelSSC3; 00051 QSlider* sliderSSC3; 00052 QLCDNumber* lCDNumberSSC3; 00053 QLabel* textLabelSSC4; 00054 QSlider* sliderSSC4; 00055 QLCDNumber* lCDNumberSSC4; 00056 QLabel* textLabelSSC5; 00057 QSlider* sliderSSC5; 00058 QLCDNumber* lCDNumberSSC5; 00059 QLabel* textLabelSSC6; 00060 QSlider* sliderSSC6; 00061 QLCDNumber* lCDNumberSSC6; 00062 QLabel* textLabelSSC7; 00063 QSlider* sliderSSC7; 00064 QLCDNumber* lCDNumberSSC7; 00065 QLabel* textLabelSSC8; 00066 QSlider* sliderSSC8; 00067 QLCDNumber* lCDNumberSSC8; 00068 00069 virtual void init( ModelManager * mgr, nub::soft_ref<SSC> thessc ); 00070 00071 public slots: 00072 virtual void lineEditSerDev_textChanged( const QString & newdevname ); 00073 virtual void lineEditBaudrate_textChanged( const QString & newbaud ); 00074 virtual void sliderSSC1_valueChanged( int val ); 00075 virtual void sliderSSC2_valueChanged( int val ); 00076 virtual void sliderSSC3_valueChanged( int val ); 00077 virtual void sliderSSC4_valueChanged( int val ); 00078 virtual void sliderSSC5_valueChanged( int val ); 00079 virtual void sliderSSC6_valueChanged( int val ); 00080 virtual void sliderSSC7_valueChanged( int val ); 00081 virtual void sliderSSC8_valueChanged( int val ); 00082 virtual void radioButtonDec_clicked(); 00083 virtual void radioButtonHex_clicked(); 00084 virtual void lineEditSerDev_returnPressed(); 00085 virtual void lineEditBaudrate_returnPressed(); 00086 00087 protected: 00088 nub::soft_ref<SSC> ssc; 00089 ModelManager *manager; 00090 00091 QHBoxLayout* layoutBottomBar; 00092 QSpacerItem* spacerSerDev; 00093 QSpacerItem* spacerBaud; 00094 QSpacerItem* spacerHex; 00095 QVBoxLayout* layoutAllSSC; 00096 QSpacerItem* spacer1_2; 00097 QSpacerItem* spacer2_3; 00098 QSpacerItem* spacer3_4; 00099 QSpacerItem* spacer4_5; 00100 QSpacerItem* spacer5_6; 00101 QSpacerItem* spacer6_7; 00102 QSpacerItem* spacer7_8; 00103 QHBoxLayout* layoutSSC1; 00104 QHBoxLayout* layoutSSC2; 00105 QHBoxLayout* layoutSSC3; 00106 QHBoxLayout* layoutSSC4; 00107 QHBoxLayout* layoutSSC5; 00108 QHBoxLayout* layoutSSC6; 00109 QHBoxLayout* layoutSSC7; 00110 QHBoxLayout* layoutSSC8; 00111 00112 protected slots: 00113 virtual void languageChange(); 00114 00115 private: 00116 QString devname; 00117 QString baud; 00118 00119 }; 00120 00121 #endif // SSCMAINFORM_H