00001 /**************************************************************************** 00002 ** Form implementation generated from reading ui file 'Qt/SSCMainForm.ui' 00003 ** 00004 ** 00005 ** WARNING! All changes made in this file will be lost! 00006 ****************************************************************************/ 00007 00008 #include "Qt/ui/SSCMainForm.h" 00009 00010 #include <qvariant.h> 00011 #include <qpushbutton.h> 00012 #include <qlabel.h> 00013 #include <qlineedit.h> 00014 #include <qradiobutton.h> 00015 #include <qgroupbox.h> 00016 #include <qslider.h> 00017 #include <qlcdnumber.h> 00018 #include <qlayout.h> 00019 #include <qtooltip.h> 00020 #include <qwhatsthis.h> 00021 #include <qimage.h> 00022 #include <qpixmap.h> 00023 00024 #include "Qt/SSCMainForm.ui.h" 00025 /* 00026 * Constructs a SSCMainForm as a child of 'parent', with the 00027 * name 'name' and widget flags set to 'f'. 00028 * 00029 * The dialog will by default be modeless, unless you set 'modal' to 00030 * TRUE to construct a modal dialog. 00031 */ 00032 SSCMainForm::SSCMainForm( QWidget* parent, const char* name, bool modal, WFlags fl ) 00033 : QDialog( parent, name, modal, fl ) 00034 { 00035 if ( !name ) 00036 setName( "SSCMainForm" ); 00037 00038 QWidget* privateLayoutWidget = new QWidget( this, "layoutBottomBar" ); 00039 privateLayoutWidget->setGeometry( QRect( 10, 380, 598, 50 ) ); 00040 layoutBottomBar = new QHBoxLayout( privateLayoutWidget, 11, 6, "layoutBottomBar"); 00041 00042 labelSerDev = new QLabel( privateLayoutWidget, "labelSerDev" ); 00043 labelSerDev->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, labelSerDev->sizePolicy().hasHeightForWidth() ) ); 00044 labelSerDev->setMinimumSize( QSize( 0, 30 ) ); 00045 layoutBottomBar->addWidget( labelSerDev ); 00046 00047 lineEditSerDev = new QLineEdit( privateLayoutWidget, "lineEditSerDev" ); 00048 lineEditSerDev->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, lineEditSerDev->sizePolicy().hasHeightForWidth() ) ); 00049 lineEditSerDev->setMinimumSize( QSize( 0, 30 ) ); 00050 layoutBottomBar->addWidget( lineEditSerDev ); 00051 spacerSerDev = new QSpacerItem( 16, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00052 layoutBottomBar->addItem( spacerSerDev ); 00053 00054 labelBaudrate = new QLabel( privateLayoutWidget, "labelBaudrate" ); 00055 labelBaudrate->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, labelBaudrate->sizePolicy().hasHeightForWidth() ) ); 00056 labelBaudrate->setMinimumSize( QSize( 0, 30 ) ); 00057 layoutBottomBar->addWidget( labelBaudrate ); 00058 00059 lineEditBaudrate = new QLineEdit( privateLayoutWidget, "lineEditBaudrate" ); 00060 lineEditBaudrate->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, lineEditBaudrate->sizePolicy().hasHeightForWidth() ) ); 00061 lineEditBaudrate->setMinimumSize( QSize( 50, 30 ) ); 00062 lineEditBaudrate->setMaximumSize( QSize( 50, 32767 ) ); 00063 layoutBottomBar->addWidget( lineEditBaudrate ); 00064 spacerBaud = new QSpacerItem( 16, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00065 layoutBottomBar->addItem( spacerBaud ); 00066 00067 radioButtonDec = new QRadioButton( privateLayoutWidget, "radioButtonDec" ); 00068 radioButtonDec->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, radioButtonDec->sizePolicy().hasHeightForWidth() ) ); 00069 radioButtonDec->setMinimumSize( QSize( 0, 30 ) ); 00070 radioButtonDec->setChecked( TRUE ); 00071 layoutBottomBar->addWidget( radioButtonDec ); 00072 00073 radioButtonHex = new QRadioButton( privateLayoutWidget, "radioButtonHex" ); 00074 radioButtonHex->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, radioButtonHex->sizePolicy().hasHeightForWidth() ) ); 00075 radioButtonHex->setMinimumSize( QSize( 0, 30 ) ); 00076 layoutBottomBar->addWidget( radioButtonHex ); 00077 spacerHex = new QSpacerItem( 16, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00078 layoutBottomBar->addItem( spacerHex ); 00079 00080 pushButtonQuit = new QPushButton( privateLayoutWidget, "pushButtonQuit" ); 00081 pushButtonQuit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, pushButtonQuit->sizePolicy().hasHeightForWidth() ) ); 00082 pushButtonQuit->setMinimumSize( QSize( 0, 30 ) ); 00083 pushButtonQuit->setCursor( QCursor( 13 ) ); 00084 pushButtonQuit->setFocusPolicy( QPushButton::ClickFocus ); 00085 pushButtonQuit->setAutoDefault( FALSE ); 00086 pushButtonQuit->setDefault( FALSE ); 00087 layoutBottomBar->addWidget( pushButtonQuit ); 00088 00089 groupBoxAllSSC = new QGroupBox( this, "groupBoxAllSSC" ); 00090 groupBoxAllSSC->setGeometry( QRect( 10, 10, 600, 370 ) ); 00091 groupBoxAllSSC->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, groupBoxAllSSC->sizePolicy().hasHeightForWidth() ) ); 00092 00093 QWidget* privateLayoutWidget_2 = new QWidget( groupBoxAllSSC, "layoutAllSSC" ); 00094 privateLayoutWidget_2->setGeometry( QRect( 10, 20, 580, 341 ) ); 00095 layoutAllSSC = new QVBoxLayout( privateLayoutWidget_2, 11, 6, "layoutAllSSC"); 00096 00097 layoutSSC1 = new QHBoxLayout( 0, 0, 6, "layoutSSC1"); 00098 00099 textLabelSSC1 = new QLabel( privateLayoutWidget_2, "textLabelSSC1" ); 00100 textLabelSSC1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, textLabelSSC1->sizePolicy().hasHeightForWidth() ) ); 00101 QFont textLabelSSC1_font( textLabelSSC1->font() ); 00102 textLabelSSC1_font.setBold( TRUE ); 00103 textLabelSSC1->setFont( textLabelSSC1_font ); 00104 layoutSSC1->addWidget( textLabelSSC1 ); 00105 00106 sliderSSC1 = new QSlider( privateLayoutWidget_2, "sliderSSC1" ); 00107 sliderSSC1->setMaxValue( 255 ); 00108 sliderSSC1->setOrientation( QSlider::Horizontal ); 00109 sliderSSC1->setTickmarks( QSlider::Right ); 00110 sliderSSC1->setTickInterval( 5 ); 00111 layoutSSC1->addWidget( sliderSSC1 ); 00112 00113 lCDNumberSSC1 = new QLCDNumber( privateLayoutWidget_2, "lCDNumberSSC1" ); 00114 lCDNumberSSC1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, lCDNumberSSC1->sizePolicy().hasHeightForWidth() ) ); 00115 lCDNumberSSC1->setMargin( 1 ); 00116 lCDNumberSSC1->setNumDigits( 3 ); 00117 lCDNumberSSC1->setSegmentStyle( QLCDNumber::Flat ); 00118 layoutSSC1->addWidget( lCDNumberSSC1 ); 00119 layoutAllSSC->addLayout( layoutSSC1 ); 00120 spacer1_2 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding ); 00121 layoutAllSSC->addItem( spacer1_2 ); 00122 00123 layoutSSC2 = new QHBoxLayout( 0, 0, 6, "layoutSSC2"); 00124 00125 textLabelSSC2 = new QLabel( privateLayoutWidget_2, "textLabelSSC2" ); 00126 textLabelSSC2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, textLabelSSC2->sizePolicy().hasHeightForWidth() ) ); 00127 QFont textLabelSSC2_font( textLabelSSC2->font() ); 00128 textLabelSSC2_font.setBold( TRUE ); 00129 textLabelSSC2->setFont( textLabelSSC2_font ); 00130 layoutSSC2->addWidget( textLabelSSC2 ); 00131 00132 sliderSSC2 = new QSlider( privateLayoutWidget_2, "sliderSSC2" ); 00133 sliderSSC2->setMaxValue( 255 ); 00134 sliderSSC2->setOrientation( QSlider::Horizontal ); 00135 sliderSSC2->setTickmarks( QSlider::Right ); 00136 sliderSSC2->setTickInterval( 5 ); 00137 layoutSSC2->addWidget( sliderSSC2 ); 00138 00139 lCDNumberSSC2 = new QLCDNumber( privateLayoutWidget_2, "lCDNumberSSC2" ); 00140 lCDNumberSSC2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, lCDNumberSSC2->sizePolicy().hasHeightForWidth() ) ); 00141 lCDNumberSSC2->setMargin( 1 ); 00142 lCDNumberSSC2->setNumDigits( 3 ); 00143 lCDNumberSSC2->setSegmentStyle( QLCDNumber::Flat ); 00144 layoutSSC2->addWidget( lCDNumberSSC2 ); 00145 layoutAllSSC->addLayout( layoutSSC2 ); 00146 spacer2_3 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding ); 00147 layoutAllSSC->addItem( spacer2_3 ); 00148 00149 layoutSSC3 = new QHBoxLayout( 0, 0, 6, "layoutSSC3"); 00150 00151 textLabelSSC3 = new QLabel( privateLayoutWidget_2, "textLabelSSC3" ); 00152 textLabelSSC3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, textLabelSSC3->sizePolicy().hasHeightForWidth() ) ); 00153 QFont textLabelSSC3_font( textLabelSSC3->font() ); 00154 textLabelSSC3_font.setBold( TRUE ); 00155 textLabelSSC3->setFont( textLabelSSC3_font ); 00156 layoutSSC3->addWidget( textLabelSSC3 ); 00157 00158 sliderSSC3 = new QSlider( privateLayoutWidget_2, "sliderSSC3" ); 00159 sliderSSC3->setMaxValue( 255 ); 00160 sliderSSC3->setOrientation( QSlider::Horizontal ); 00161 sliderSSC3->setTickmarks( QSlider::Right ); 00162 sliderSSC3->setTickInterval( 5 ); 00163 layoutSSC3->addWidget( sliderSSC3 ); 00164 00165 lCDNumberSSC3 = new QLCDNumber( privateLayoutWidget_2, "lCDNumberSSC3" ); 00166 lCDNumberSSC3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, lCDNumberSSC3->sizePolicy().hasHeightForWidth() ) ); 00167 lCDNumberSSC3->setMargin( 1 ); 00168 lCDNumberSSC3->setNumDigits( 3 ); 00169 lCDNumberSSC3->setSegmentStyle( QLCDNumber::Flat ); 00170 layoutSSC3->addWidget( lCDNumberSSC3 ); 00171 layoutAllSSC->addLayout( layoutSSC3 ); 00172 spacer3_4 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding ); 00173 layoutAllSSC->addItem( spacer3_4 ); 00174 00175 layoutSSC4 = new QHBoxLayout( 0, 0, 6, "layoutSSC4"); 00176 00177 textLabelSSC4 = new QLabel( privateLayoutWidget_2, "textLabelSSC4" ); 00178 textLabelSSC4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, textLabelSSC4->sizePolicy().hasHeightForWidth() ) ); 00179 QFont textLabelSSC4_font( textLabelSSC4->font() ); 00180 textLabelSSC4_font.setBold( TRUE ); 00181 textLabelSSC4->setFont( textLabelSSC4_font ); 00182 layoutSSC4->addWidget( textLabelSSC4 ); 00183 00184 sliderSSC4 = new QSlider( privateLayoutWidget_2, "sliderSSC4" ); 00185 sliderSSC4->setMaxValue( 255 ); 00186 sliderSSC4->setOrientation( QSlider::Horizontal ); 00187 sliderSSC4->setTickmarks( QSlider::Right ); 00188 sliderSSC4->setTickInterval( 5 ); 00189 layoutSSC4->addWidget( sliderSSC4 ); 00190 00191 lCDNumberSSC4 = new QLCDNumber( privateLayoutWidget_2, "lCDNumberSSC4" ); 00192 lCDNumberSSC4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, lCDNumberSSC4->sizePolicy().hasHeightForWidth() ) ); 00193 lCDNumberSSC4->setMargin( 1 ); 00194 lCDNumberSSC4->setNumDigits( 3 ); 00195 lCDNumberSSC4->setSegmentStyle( QLCDNumber::Flat ); 00196 layoutSSC4->addWidget( lCDNumberSSC4 ); 00197 layoutAllSSC->addLayout( layoutSSC4 ); 00198 spacer4_5 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding ); 00199 layoutAllSSC->addItem( spacer4_5 ); 00200 00201 layoutSSC5 = new QHBoxLayout( 0, 0, 6, "layoutSSC5"); 00202 00203 textLabelSSC5 = new QLabel( privateLayoutWidget_2, "textLabelSSC5" ); 00204 textLabelSSC5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, textLabelSSC5->sizePolicy().hasHeightForWidth() ) ); 00205 QFont textLabelSSC5_font( textLabelSSC5->font() ); 00206 textLabelSSC5_font.setBold( TRUE ); 00207 textLabelSSC5->setFont( textLabelSSC5_font ); 00208 layoutSSC5->addWidget( textLabelSSC5 ); 00209 00210 sliderSSC5 = new QSlider( privateLayoutWidget_2, "sliderSSC5" ); 00211 sliderSSC5->setMaxValue( 255 ); 00212 sliderSSC5->setOrientation( QSlider::Horizontal ); 00213 sliderSSC5->setTickmarks( QSlider::Right ); 00214 sliderSSC5->setTickInterval( 5 ); 00215 layoutSSC5->addWidget( sliderSSC5 ); 00216 00217 lCDNumberSSC5 = new QLCDNumber( privateLayoutWidget_2, "lCDNumberSSC5" ); 00218 lCDNumberSSC5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, lCDNumberSSC5->sizePolicy().hasHeightForWidth() ) ); 00219 lCDNumberSSC5->setMargin( 1 ); 00220 lCDNumberSSC5->setNumDigits( 3 ); 00221 lCDNumberSSC5->setSegmentStyle( QLCDNumber::Flat ); 00222 layoutSSC5->addWidget( lCDNumberSSC5 ); 00223 layoutAllSSC->addLayout( layoutSSC5 ); 00224 spacer5_6 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding ); 00225 layoutAllSSC->addItem( spacer5_6 ); 00226 00227 layoutSSC6 = new QHBoxLayout( 0, 0, 6, "layoutSSC6"); 00228 00229 textLabelSSC6 = new QLabel( privateLayoutWidget_2, "textLabelSSC6" ); 00230 textLabelSSC6->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, textLabelSSC6->sizePolicy().hasHeightForWidth() ) ); 00231 QFont textLabelSSC6_font( textLabelSSC6->font() ); 00232 textLabelSSC6_font.setBold( TRUE ); 00233 textLabelSSC6->setFont( textLabelSSC6_font ); 00234 layoutSSC6->addWidget( textLabelSSC6 ); 00235 00236 sliderSSC6 = new QSlider( privateLayoutWidget_2, "sliderSSC6" ); 00237 sliderSSC6->setMaxValue( 255 ); 00238 sliderSSC6->setOrientation( QSlider::Horizontal ); 00239 sliderSSC6->setTickmarks( QSlider::Right ); 00240 sliderSSC6->setTickInterval( 5 ); 00241 layoutSSC6->addWidget( sliderSSC6 ); 00242 00243 lCDNumberSSC6 = new QLCDNumber( privateLayoutWidget_2, "lCDNumberSSC6" ); 00244 lCDNumberSSC6->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, lCDNumberSSC6->sizePolicy().hasHeightForWidth() ) ); 00245 lCDNumberSSC6->setMargin( 1 ); 00246 lCDNumberSSC6->setNumDigits( 3 ); 00247 lCDNumberSSC6->setSegmentStyle( QLCDNumber::Flat ); 00248 layoutSSC6->addWidget( lCDNumberSSC6 ); 00249 layoutAllSSC->addLayout( layoutSSC6 ); 00250 spacer6_7 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding ); 00251 layoutAllSSC->addItem( spacer6_7 ); 00252 00253 layoutSSC7 = new QHBoxLayout( 0, 0, 6, "layoutSSC7"); 00254 00255 textLabelSSC7 = new QLabel( privateLayoutWidget_2, "textLabelSSC7" ); 00256 textLabelSSC7->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, textLabelSSC7->sizePolicy().hasHeightForWidth() ) ); 00257 QFont textLabelSSC7_font( textLabelSSC7->font() ); 00258 textLabelSSC7_font.setBold( TRUE ); 00259 textLabelSSC7->setFont( textLabelSSC7_font ); 00260 layoutSSC7->addWidget( textLabelSSC7 ); 00261 00262 sliderSSC7 = new QSlider( privateLayoutWidget_2, "sliderSSC7" ); 00263 sliderSSC7->setMaxValue( 255 ); 00264 sliderSSC7->setOrientation( QSlider::Horizontal ); 00265 sliderSSC7->setTickmarks( QSlider::Right ); 00266 sliderSSC7->setTickInterval( 5 ); 00267 layoutSSC7->addWidget( sliderSSC7 ); 00268 00269 lCDNumberSSC7 = new QLCDNumber( privateLayoutWidget_2, "lCDNumberSSC7" ); 00270 lCDNumberSSC7->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, lCDNumberSSC7->sizePolicy().hasHeightForWidth() ) ); 00271 lCDNumberSSC7->setMargin( 1 ); 00272 lCDNumberSSC7->setNumDigits( 3 ); 00273 lCDNumberSSC7->setSegmentStyle( QLCDNumber::Flat ); 00274 layoutSSC7->addWidget( lCDNumberSSC7 ); 00275 layoutAllSSC->addLayout( layoutSSC7 ); 00276 spacer7_8 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding ); 00277 layoutAllSSC->addItem( spacer7_8 ); 00278 00279 layoutSSC8 = new QHBoxLayout( 0, 0, 6, "layoutSSC8"); 00280 00281 textLabelSSC8 = new QLabel( privateLayoutWidget_2, "textLabelSSC8" ); 00282 textLabelSSC8->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, textLabelSSC8->sizePolicy().hasHeightForWidth() ) ); 00283 QFont textLabelSSC8_font( textLabelSSC8->font() ); 00284 textLabelSSC8_font.setBold( TRUE ); 00285 textLabelSSC8->setFont( textLabelSSC8_font ); 00286 layoutSSC8->addWidget( textLabelSSC8 ); 00287 00288 sliderSSC8 = new QSlider( privateLayoutWidget_2, "sliderSSC8" ); 00289 sliderSSC8->setMaxValue( 255 ); 00290 sliderSSC8->setOrientation( QSlider::Horizontal ); 00291 sliderSSC8->setTickmarks( QSlider::Right ); 00292 sliderSSC8->setTickInterval( 5 ); 00293 layoutSSC8->addWidget( sliderSSC8 ); 00294 00295 lCDNumberSSC8 = new QLCDNumber( privateLayoutWidget_2, "lCDNumberSSC8" ); 00296 lCDNumberSSC8->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, lCDNumberSSC8->sizePolicy().hasHeightForWidth() ) ); 00297 lCDNumberSSC8->setMargin( 1 ); 00298 lCDNumberSSC8->setNumDigits( 3 ); 00299 lCDNumberSSC8->setSegmentStyle( QLCDNumber::Flat ); 00300 layoutSSC8->addWidget( lCDNumberSSC8 ); 00301 layoutAllSSC->addLayout( layoutSSC8 ); 00302 languageChange(); 00303 resize( QSize(617, 440).expandedTo(minimumSizeHint()) ); 00304 clearWState( WState_Polished ); 00305 00306 // signals and slots connections 00307 connect( sliderSSC1, SIGNAL( valueChanged(int) ), lCDNumberSSC1, SLOT( display(int) ) ); 00308 connect( sliderSSC2, SIGNAL( valueChanged(int) ), lCDNumberSSC2, SLOT( display(int) ) ); 00309 connect( sliderSSC3, SIGNAL( valueChanged(int) ), lCDNumberSSC3, SLOT( display(int) ) ); 00310 connect( sliderSSC4, SIGNAL( valueChanged(int) ), lCDNumberSSC4, SLOT( display(int) ) ); 00311 connect( sliderSSC5, SIGNAL( valueChanged(int) ), lCDNumberSSC5, SLOT( display(int) ) ); 00312 connect( sliderSSC6, SIGNAL( valueChanged(int) ), lCDNumberSSC6, SLOT( display(int) ) ); 00313 connect( sliderSSC7, SIGNAL( valueChanged(int) ), lCDNumberSSC7, SLOT( display(int) ) ); 00314 connect( sliderSSC8, SIGNAL( valueChanged(int) ), lCDNumberSSC8, SLOT( display(int) ) ); 00315 connect( pushButtonQuit, SIGNAL( clicked() ), this, SLOT( close() ) ); 00316 connect( lineEditBaudrate, SIGNAL( textChanged(const QString&) ), this, SLOT( lineEditBaudrate_textChanged(const QString&) ) ); 00317 connect( sliderSSC1, SIGNAL( valueChanged(int) ), this, SLOT( sliderSSC1_valueChanged(int) ) ); 00318 connect( sliderSSC2, SIGNAL( valueChanged(int) ), this, SLOT( sliderSSC2_valueChanged(int) ) ); 00319 connect( sliderSSC3, SIGNAL( valueChanged(int) ), this, SLOT( sliderSSC3_valueChanged(int) ) ); 00320 connect( sliderSSC4, SIGNAL( valueChanged(int) ), this, SLOT( sliderSSC4_valueChanged(int) ) ); 00321 connect( sliderSSC5, SIGNAL( valueChanged(int) ), this, SLOT( sliderSSC5_valueChanged(int) ) ); 00322 connect( sliderSSC6, SIGNAL( valueChanged(int) ), this, SLOT( sliderSSC6_valueChanged(int) ) ); 00323 connect( sliderSSC7, SIGNAL( valueChanged(int) ), this, SLOT( sliderSSC7_valueChanged(int) ) ); 00324 connect( sliderSSC8, SIGNAL( valueChanged(int) ), this, SLOT( sliderSSC8_valueChanged(int) ) ); 00325 connect( radioButtonDec, SIGNAL( clicked() ), this, SLOT( radioButtonDec_clicked() ) ); 00326 connect( radioButtonHex, SIGNAL( clicked() ), this, SLOT( radioButtonHex_clicked() ) ); 00327 connect( lineEditSerDev, SIGNAL( returnPressed() ), this, SLOT( lineEditSerDev_returnPressed() ) ); 00328 connect( lineEditBaudrate, SIGNAL( returnPressed() ), this, SLOT( lineEditBaudrate_returnPressed() ) ); 00329 connect( lineEditSerDev, SIGNAL( textChanged(const QString&) ), this, SLOT( lineEditSerDev_textChanged(const QString&) ) ); 00330 } 00331 00332 /* 00333 * Destroys the object and frees any allocated resources 00334 */ 00335 SSCMainForm::~SSCMainForm() 00336 { 00337 // no need to delete child widgets, Qt does it all for us 00338 } 00339 00340 /* 00341 * Sets the strings of the subwidgets using the current 00342 * language. 00343 */ 00344 void SSCMainForm::languageChange() 00345 { 00346 setCaption( tr( "Serial Servo Controller (Mini-SSC II) Interface" ) ); 00347 labelSerDev->setText( tr( "Serial Dev" ) ); 00348 lineEditSerDev->setText( tr( "/dev/ttyS0" ) ); 00349 QToolTip::add( lineEditSerDev, tr( "Device used to communicate with SSC" ) ); 00350 labelBaudrate->setText( tr( "BaudRate" ) ); 00351 lineEditBaudrate->setText( tr( "9600" ) ); 00352 QToolTip::add( lineEditBaudrate, tr( "Baudrate used to communicate with SSC, typically 2400 or 9600" ) ); 00353 radioButtonDec->setText( tr( "Dec" ) ); 00354 QToolTip::add( radioButtonDec, tr( "Click for decimal displays" ) ); 00355 radioButtonHex->setText( tr( "Hex" ) ); 00356 QToolTip::add( radioButtonHex, tr( "Click for hexadecimal displays" ) ); 00357 pushButtonQuit->setText( tr( "Quit" ) ); 00358 QToolTip::add( pushButtonQuit, tr( "Click to quit!" ) ); 00359 groupBoxAllSSC->setTitle( tr( "Mini-SSC II Controls" ) ); 00360 textLabelSSC1->setText( tr( "SSC #1" ) ); 00361 textLabelSSC2->setText( tr( "SSC #2" ) ); 00362 textLabelSSC3->setText( tr( "SSC #3" ) ); 00363 textLabelSSC4->setText( tr( "SSC #4" ) ); 00364 textLabelSSC5->setText( tr( "SSC #5" ) ); 00365 textLabelSSC6->setText( tr( "SSC #6" ) ); 00366 textLabelSSC7->setText( tr( "SSC #7" ) ); 00367 textLabelSSC8->setText( tr( "SSC #8" ) ); 00368 } 00369