SimulationMainWindow.cpp

gehe zur Dokumentation dieser Datei
00001 /****************************************************************************
00002 ** Form implementation generated from reading ui file 'SimulationMainWindow.ui'
00003 **
00004 ** Created: Mo Nov 24 15:30:42 2008
00005 **
00006 ** WARNING! All changes made in this file will be lost!
00007 ****************************************************************************/
00008 
00009 #include "SimulationMainWindow.h"
00010 
00011 #include <qvariant.h>
00012 #include <qpushbutton.h>
00013 #include <qtabwidget.h>
00014 #include <qwidget.h>
00015 #include <qbuttongroup.h>
00016 #include <qradiobutton.h>
00017 #include <qgroupbox.h>
00018 #include <qspinbox.h>
00019 #include <qlabel.h>
00020 #include <qlineedit.h>
00021 #include <qcheckbox.h>
00022 #include <qcombobox.h>
00023 #include <qslider.h>
00024 #include <qtable.h>
00025 #include <qlayout.h>
00026 #include <qtooltip.h>
00027 #include <qwhatsthis.h>
00028 #include <qaction.h>
00029 #include <qmenubar.h>
00030 #include <qpopupmenu.h>
00031 #include <qtoolbar.h>
00032 #include "gui_canvas.h"
00033 
00034 /*
00035  *  Constructs a SimulationMainWindow as a child of 'parent', with the
00036  *  name 'name' and widget flags set to 'f'.
00037  *
00038  */
00039 SimulationMainWindow::SimulationMainWindow( QWidget* parent, const char* name, WFlags fl )
00040     : QMainWindow( parent, name, fl )
00041 {
00042     (void)statusBar();
00043     if ( !name )
00044    setName( "SimulationMainWindow" );
00045     setCentralWidget( new QWidget( this, "qt_central_widget" ) );
00046     SimulationMainWindowLayout = new QVBoxLayout( centralWidget(), 11, 6, "SimulationMainWindowLayout"); 
00047 
00048     tabWidget2 = new QTabWidget( centralWidget(), "tabWidget2" );
00049 
00050     TabPage = new QWidget( tabWidget2, "TabPage" );
00051     TabPageLayout = new QVBoxLayout( TabPage, 11, 6, "TabPageLayout"); 
00052 
00053     tabWidget4 = new QTabWidget( TabPage, "tabWidget4" );
00054 
00055     tab = new QWidget( tabWidget4, "tab" );
00056     tabLayout = new QVBoxLayout( tab, 11, 6, "tabLayout"); 
00057 
00058     layout38 = new QHBoxLayout( 0, 0, 6, "layout38"); 
00059 
00060     buttonGroup3 = new QButtonGroup( tab, "buttonGroup3" );
00061     buttonGroup3->setColumnLayout(0, Qt::Vertical );
00062     buttonGroup3->layout()->setSpacing( 6 );
00063     buttonGroup3->layout()->setMargin( 11 );
00064     buttonGroup3Layout = new QVBoxLayout( buttonGroup3->layout() );
00065     buttonGroup3Layout->setAlignment( Qt::AlignTop );
00066 
00067     ViLearningButton = new QRadioButton( buttonGroup3, "ViLearningButton" );
00068     buttonGroup3Layout->addWidget( ViLearningButton );
00069 
00070     QLearningButton = new QRadioButton( buttonGroup3, "QLearningButton" );
00071     buttonGroup3Layout->addWidget( QLearningButton );
00072     layout38->addWidget( buttonGroup3 );
00073     spacer36_2 = new QSpacerItem( 270, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00074     layout38->addItem( spacer36_2 );
00075     tabLayout->addLayout( layout38 );
00076 
00077     layout39 = new QHBoxLayout( 0, 0, 6, "layout39"); 
00078 
00079     groupBox2 = new QGroupBox( tab, "groupBox2" );
00080     groupBox2->setColumnLayout(0, Qt::Vertical );
00081     groupBox2->layout()->setSpacing( 6 );
00082     groupBox2->layout()->setMargin( 11 );
00083     groupBox2Layout = new QGridLayout( groupBox2->layout() );
00084     groupBox2Layout->setAlignment( Qt::AlignTop );
00085 
00086     numCols = new QSpinBox( groupBox2, "numCols" );
00087     numCols->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, numCols->sizePolicy().hasHeightForWidth() ) );
00088     numCols->setMinValue( 1 );
00089     numCols->setValue( 6 );
00090 
00091     groupBox2Layout->addWidget( numCols, 1, 1 );
00092 
00093     numRows = new QSpinBox( groupBox2, "numRows" );
00094     numRows->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, numRows->sizePolicy().hasHeightForWidth() ) );
00095     numRows->setMinValue( 1 );
00096     numRows->setValue( 6 );
00097 
00098     groupBox2Layout->addWidget( numRows, 0, 1 );
00099 
00100     textLabel4 = new QLabel( groupBox2, "textLabel4" );
00101 
00102     groupBox2Layout->addWidget( textLabel4, 0, 0 );
00103 
00104     textLabel5 = new QLabel( groupBox2, "textLabel5" );
00105 
00106     groupBox2Layout->addWidget( textLabel5, 1, 0 );
00107     layout39->addWidget( groupBox2 );
00108     spacer43 = new QSpacerItem( 330, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00109     layout39->addItem( spacer43 );
00110     tabLayout->addLayout( layout39 );
00111 
00112     layout40 = new QHBoxLayout( 0, 0, 6, "layout40"); 
00113 
00114     textLabel1 = new QLabel( tab, "textLabel1" );
00115     layout40->addWidget( textLabel1 );
00116 
00117     mantisseInput = new QSpinBox( tab, "mantisseInput" );
00118     mantisseInput->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, mantisseInput->sizePolicy().hasHeightForWidth() ) );
00119     mantisseInput->setMaxValue( 8 );
00120     mantisseInput->setMinValue( 1 );
00121     mantisseInput->setLineStep( 1 );
00122     mantisseInput->setValue( 8 );
00123     layout40->addWidget( mantisseInput );
00124     spacer36_3 = new QSpacerItem( 21, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00125     layout40->addItem( spacer36_3 );
00126     tabLayout->addLayout( layout40 );
00127     spacer40 = new QSpacerItem( 20, 21, QSizePolicy::Minimum, QSizePolicy::Expanding );
00128     tabLayout->addItem( spacer40 );
00129     tabWidget4->insertTab( tab, QString::fromLatin1("") );
00130 
00131     tab_2 = new QWidget( tabWidget4, "tab_2" );
00132     tabLayout_2 = new QGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2"); 
00133     spacer37_2 = new QSpacerItem( 226, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00134     tabLayout_2->addItem( spacer37_2, 1, 2 );
00135 
00136     textLabel2_2 = new QLabel( tab_2, "textLabel2_2" );
00137 
00138     tabLayout_2->addWidget( textLabel2_2, 2, 0 );
00139 
00140     netHiddenLayers = new QSpinBox( tab_2, "netHiddenLayers" );
00141     netHiddenLayers->setMinValue( 1 );
00142     netHiddenLayers->setValue( 1 );
00143 
00144     tabLayout_2->addWidget( netHiddenLayers, 1, 1 );
00145     spacer26 = new QSpacerItem( 226, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00146     tabLayout_2->addItem( spacer26, 0, 2 );
00147     spacer25 = new QSpacerItem( 226, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00148     tabLayout_2->addItem( spacer25, 2, 2 );
00149 
00150     netHiddenUnits = new QSpinBox( tab_2, "netHiddenUnits" );
00151     netHiddenUnits->setEnabled( TRUE );
00152     netHiddenUnits->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, netHiddenUnits->sizePolicy().hasHeightForWidth() ) );
00153     netHiddenUnits->setMinValue( 1 );
00154     netHiddenUnits->setValue( 4 );
00155 
00156     tabLayout_2->addWidget( netHiddenUnits, 0, 1 );
00157 
00158     textLabel3_2 = new QLabel( tab_2, "textLabel3_2" );
00159 
00160     tabLayout_2->addWidget( textLabel3_2, 0, 0 );
00161 
00162     textLabel1_6 = new QLabel( tab_2, "textLabel1_6" );
00163 
00164     tabLayout_2->addWidget( textLabel1_6, 1, 0 );
00165 
00166     netEta = new QLineEdit( tab_2, "netEta" );
00167     netEta->setEnabled( FALSE );
00168     netEta->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, netEta->sizePolicy().hasHeightForWidth() ) );
00169 
00170     tabLayout_2->addWidget( netEta, 2, 1 );
00171     spacer39_2 = new QSpacerItem( 226, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00172     tabLayout_2->addItem( spacer39_2, 7, 2 );
00173 
00174     netMaxEpochs = new QSpinBox( tab_2, "netMaxEpochs" );
00175     netMaxEpochs->setMaxValue( 1000000 );
00176     netMaxEpochs->setMinValue( 1 );
00177     netMaxEpochs->setValue( 1000 );
00178 
00179     tabLayout_2->addWidget( netMaxEpochs, 5, 1 );
00180 
00181     textLabel2_5 = new QLabel( tab_2, "textLabel2_5" );
00182 
00183     tabLayout_2->addWidget( textLabel2_5, 5, 0 );
00184 
00185     textLabel1_3 = new QLabel( tab_2, "textLabel1_3" );
00186 
00187     tabLayout_2->addWidget( textLabel1_3, 8, 0 );
00188     spacer65 = new QSpacerItem( 226, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00189     tabLayout_2->addItem( spacer65, 8, 2 );
00190     spacer38 = new QSpacerItem( 226, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00191     tabLayout_2->addItem( spacer38, 6, 2 );
00192 
00193     netIterationsBetweenReport = new QSpinBox( tab_2, "netIterationsBetweenReport" );
00194     netIterationsBetweenReport->setMaxValue( 1000000 );
00195     netIterationsBetweenReport->setMinValue( 1 );
00196     netIterationsBetweenReport->setValue( 1000 );
00197 
00198     tabLayout_2->addWidget( netIterationsBetweenReport, 6, 1 );
00199     spacer37_3 = new QSpacerItem( 20, 21, QSizePolicy::Minimum, QSizePolicy::Expanding );
00200     tabLayout_2->addItem( spacer37_3, 9, 2 );
00201 
00202     netDesiredError = new QLineEdit( tab_2, "netDesiredError" );
00203 
00204     tabLayout_2->addWidget( netDesiredError, 7, 1 );
00205     spacer35_2 = new QSpacerItem( 20, 21, QSizePolicy::Minimum, QSizePolicy::Expanding );
00206     tabLayout_2->addItem( spacer35_2, 9, 0 );
00207     spacer36_4 = new QSpacerItem( 20, 21, QSizePolicy::Minimum, QSizePolicy::Expanding );
00208     tabLayout_2->addItem( spacer36_4, 9, 1 );
00209 
00210     netAutoAdjustError = new QCheckBox( tab_2, "netAutoAdjustError" );
00211     netAutoAdjustError->setChecked( FALSE );
00212 
00213     tabLayout_2->addWidget( netAutoAdjustError, 8, 1 );
00214     spacer37 = new QSpacerItem( 226, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00215     tabLayout_2->addItem( spacer37, 5, 2 );
00216 
00217     textLabel1_11 = new QLabel( tab_2, "textLabel1_11" );
00218 
00219     tabLayout_2->addWidget( textLabel1_11, 7, 0 );
00220 
00221     textLabel3_3 = new QLabel( tab_2, "textLabel3_3" );
00222 
00223     tabLayout_2->addWidget( textLabel3_3, 6, 0 );
00224     spacer40_2 = new QSpacerItem( 131, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00225     tabLayout_2->addItem( spacer40_2, 3, 2 );
00226     spacer41 = new QSpacerItem( 131, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00227     tabLayout_2->addItem( spacer41, 4, 2 );
00228 
00229     textLabel1_4 = new QLabel( tab_2, "textLabel1_4" );
00230 
00231     tabLayout_2->addWidget( textLabel1_4, 3, 0 );
00232 
00233     layout36 = new QHBoxLayout( 0, 0, 6, "layout36"); 
00234 
00235     netHiddenActivationFunction = new QComboBox( FALSE, tab_2, "netHiddenActivationFunction" );
00236     layout36->addWidget( netHiddenActivationFunction );
00237 
00238     textLabel1_12 = new QLabel( tab_2, "textLabel1_12" );
00239     layout36->addWidget( textLabel1_12 );
00240 
00241     netActivationStepnessHidden = new QLineEdit( tab_2, "netActivationStepnessHidden" );
00242     layout36->addWidget( netActivationStepnessHidden );
00243 
00244     tabLayout_2->addLayout( layout36, 3, 1 );
00245 
00246     textLabel1_9 = new QLabel( tab_2, "textLabel1_9" );
00247 
00248     tabLayout_2->addWidget( textLabel1_9, 4, 0 );
00249 
00250     layout37 = new QHBoxLayout( 0, 0, 6, "layout37"); 
00251 
00252     netOutputActivationFunction = new QComboBox( FALSE, tab_2, "netOutputActivationFunction" );
00253     layout37->addWidget( netOutputActivationFunction );
00254 
00255     textLabel2_4 = new QLabel( tab_2, "textLabel2_4" );
00256     layout37->addWidget( textLabel2_4 );
00257 
00258     netActivationStepnessOutput = new QLineEdit( tab_2, "netActivationStepnessOutput" );
00259     layout37->addWidget( netActivationStepnessOutput );
00260 
00261     tabLayout_2->addLayout( layout37, 4, 1 );
00262     tabWidget4->insertTab( tab_2, QString::fromLatin1("") );
00263     TabPageLayout->addWidget( tabWidget4 );
00264 
00265     layout75 = new QHBoxLayout( 0, 0, 6, "layout75"); 
00266     spacer90 = new QSpacerItem( 31, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00267     layout75->addItem( spacer90 );
00268 
00269     applyButton = new QPushButton( TabPage, "applyButton" );
00270     layout75->addWidget( applyButton );
00271     spacer91 = new QSpacerItem( 41, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00272     layout75->addItem( spacer91 );
00273     TabPageLayout->addLayout( layout75 );
00274     spacer92 = new QSpacerItem( 20, 150, QSizePolicy::Minimum, QSizePolicy::Expanding );
00275     TabPageLayout->addItem( spacer92 );
00276     tabWidget2->insertTab( TabPage, QString::fromLatin1("") );
00277 
00278     tab_3 = new QWidget( tabWidget2, "tab_3" );
00279     tabLayout_3 = new QVBoxLayout( tab_3, 11, 6, "tabLayout_3"); 
00280 
00281     ViTab = new QTabWidget( tab_3, "ViTab" );
00282     ViTab->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, ViTab->sizePolicy().hasHeightForWidth() ) );
00283 
00284     TabPage_2 = new QWidget( ViTab, "TabPage_2" );
00285     TabPageLayout_2 = new QVBoxLayout( TabPage_2, 11, 6, "TabPageLayout_2"); 
00286 
00287     layout78 = new QVBoxLayout( 0, 0, 6, "layout78"); 
00288 
00289     textLabel2_3 = new QLabel( TabPage_2, "textLabel2_3" );
00290     textLabel2_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, textLabel2_3->sizePolicy().hasHeightForWidth() ) );
00291     QFont textLabel2_3_font(  textLabel2_3->font() );
00292     textLabel2_3_font.setBold( TRUE );
00293     textLabel2_3->setFont( textLabel2_3_font ); 
00294     layout78->addWidget( textLabel2_3 );
00295 
00296     layout77 = new QHBoxLayout( 0, 0, 6, "layout77"); 
00297 
00298     layout33_2 = new QHBoxLayout( 0, 0, 6, "layout33_2"); 
00299 
00300     textLabel6 = new QLabel( TabPage_2, "textLabel6" );
00301     layout33_2->addWidget( textLabel6 );
00302 
00303     viGammaInput = new QLineEdit( TabPage_2, "viGammaInput" );
00304     viGammaInput->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, viGammaInput->sizePolicy().hasHeightForWidth() ) );
00305     layout33_2->addWidget( viGammaInput );
00306     layout77->addLayout( layout33_2 );
00307 
00308     applyButtonVI = new QPushButton( TabPage_2, "applyButtonVI" );
00309     layout77->addWidget( applyButtonVI );
00310     spacer20_2 = new QSpacerItem( 260, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00311     layout77->addItem( spacer20_2 );
00312     layout78->addLayout( layout77 );
00313     TabPageLayout_2->addLayout( layout78 );
00314 
00315     textLabel1_10 = new QLabel( TabPage_2, "textLabel1_10" );
00316     QFont textLabel1_10_font(  textLabel1_10->font() );
00317     textLabel1_10_font.setBold( TRUE );
00318     textLabel1_10->setFont( textLabel1_10_font ); 
00319     TabPageLayout_2->addWidget( textLabel1_10 );
00320 
00321     groupBox1 = new QGroupBox( TabPage_2, "groupBox1" );
00322     groupBox1->setColumnLayout(0, Qt::Vertical );
00323     groupBox1->layout()->setSpacing( 6 );
00324     groupBox1->layout()->setMargin( 11 );
00325     groupBox1Layout = new QVBoxLayout( groupBox1->layout() );
00326     groupBox1Layout->setAlignment( Qt::AlignTop );
00327 
00328     viLearnWithVI = new QRadioButton( groupBox1, "viLearnWithVI" );
00329     viLearnWithVI->setEnabled( TRUE );
00330     viLearnWithVI->setChecked( TRUE );
00331     groupBox1Layout->addWidget( viLearnWithVI );
00332 
00333     viLearnWithNN = new QRadioButton( groupBox1, "viLearnWithNN" );
00334     viLearnWithNN->setChecked( FALSE );
00335     groupBox1Layout->addWidget( viLearnWithNN );
00336     TabPageLayout_2->addWidget( groupBox1 );
00337 
00338     viRandomNetSliderGroupBox = new QGroupBox( TabPage_2, "viRandomNetSliderGroupBox" );
00339     viRandomNetSliderGroupBox->setColumnLayout(0, Qt::Vertical );
00340     viRandomNetSliderGroupBox->layout()->setSpacing( 6 );
00341     viRandomNetSliderGroupBox->layout()->setMargin( 11 );
00342     viRandomNetSliderGroupBoxLayout = new QVBoxLayout( viRandomNetSliderGroupBox->layout() );
00343     viRandomNetSliderGroupBoxLayout->setAlignment( Qt::AlignTop );
00344 
00345     viRandomNetSliderText = new QLabel( viRandomNetSliderGroupBox, "viRandomNetSliderText" );
00346     viRandomNetSliderGroupBoxLayout->addWidget( viRandomNetSliderText );
00347 
00348     layout87 = new QHBoxLayout( 0, 0, 6, "layout87"); 
00349 
00350     textLabel3_5 = new QLabel( viRandomNetSliderGroupBox, "textLabel3_5" );
00351     layout87->addWidget( textLabel3_5 );
00352 
00353     viRandomValuesSlider = new QSlider( viRandomNetSliderGroupBox, "viRandomValuesSlider" );
00354     viRandomValuesSlider->setMaxValue( 100 );
00355     viRandomValuesSlider->setValue( 100 );
00356     viRandomValuesSlider->setOrientation( QSlider::Horizontal );
00357     layout87->addWidget( viRandomValuesSlider );
00358 
00359     textLabel4_3 = new QLabel( viRandomNetSliderGroupBox, "textLabel4_3" );
00360     layout87->addWidget( textLabel4_3 );
00361     viRandomNetSliderGroupBoxLayout->addLayout( layout87 );
00362     TabPageLayout_2->addWidget( viRandomNetSliderGroupBox );
00363     spacer36 = new QSpacerItem( 20, 90, QSizePolicy::Minimum, QSizePolicy::Expanding );
00364     TabPageLayout_2->addItem( spacer36 );
00365     ViTab->insertTab( TabPage_2, QString::fromLatin1("") );
00366 
00367     tab_4 = new QWidget( ViTab, "tab_4" );
00368     tabLayout_4 = new QVBoxLayout( tab_4, 11, 6, "tabLayout_4"); 
00369 
00370     viValueTable = new QTable( tab_4, "viValueTable" );
00371     viValueTable->setNumRows( 0 );
00372     viValueTable->setNumCols( 0 );
00373     tabLayout_4->addWidget( viValueTable );
00374 
00375     layout8 = new QHBoxLayout( 0, 0, 6, "layout8"); 
00376 
00377     viSpeedLabel = new QLabel( tab_4, "viSpeedLabel" );
00378     viSpeedLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, viSpeedLabel->sizePolicy().hasHeightForWidth() ) );
00379     layout8->addWidget( viSpeedLabel );
00380 
00381     viSpeedSlider = new QSlider( tab_4, "viSpeedSlider" );
00382     viSpeedSlider->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, 0, 0, viSpeedSlider->sizePolicy().hasHeightForWidth() ) );
00383     viSpeedSlider->setOrientation( QSlider::Horizontal );
00384     layout8->addWidget( viSpeedSlider );
00385 
00386     textLabel9 = new QLabel( tab_4, "textLabel9" );
00387     textLabel9->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, textLabel9->sizePolicy().hasHeightForWidth() ) );
00388     layout8->addWidget( textLabel9 );
00389     tabLayout_4->addLayout( layout8 );
00390 
00391     layout4 = new QHBoxLayout( 0, 0, 6, "layout4"); 
00392 
00393     viDeleteButton = new QPushButton( tab_4, "viDeleteButton" );
00394     layout4->addWidget( viDeleteButton );
00395 
00396     viLernenButton = new QPushButton( tab_4, "viLernenButton" );
00397     layout4->addWidget( viLernenButton );
00398 
00399     viIterationButton = new QPushButton( tab_4, "viIterationButton" );
00400     layout4->addWidget( viIterationButton );
00401 
00402     viStopButton = new QPushButton( tab_4, "viStopButton" );
00403     viStopButton->setEnabled( FALSE );
00404     layout4->addWidget( viStopButton );
00405     tabLayout_4->addLayout( layout4 );
00406     ViTab->insertTab( tab_4, QString::fromLatin1("") );
00407 
00408     TabPage_3 = new QWidget( ViTab, "TabPage_3" );
00409     TabPageLayout_3 = new QVBoxLayout( TabPage_3, 11, 6, "TabPageLayout_3"); 
00410 
00411     layout82 = new QHBoxLayout( 0, 0, 6, "layout82"); 
00412 
00413     textLabel1_5 = new QLabel( TabPage_3, "textLabel1_5" );
00414     layout82->addWidget( textLabel1_5 );
00415 
00416     v24Data = new QLineEdit( TabPage_3, "v24Data" );
00417     layout82->addWidget( v24Data );
00418     TabPageLayout_3->addLayout( layout82 );
00419 
00420     layout41 = new QHBoxLayout( 0, 0, 6, "layout41"); 
00421 
00422     layout41_2 = new QVBoxLayout( 0, 0, 6, "layout41_2"); 
00423 
00424     textLabel1_7 = new QLabel( TabPage_3, "textLabel1_7" );
00425     layout41_2->addWidget( textLabel1_7 );
00426 
00427     layout36_2 = new QHBoxLayout( 0, 0, 6, "layout36_2"); 
00428 
00429     v24Interface = new QLineEdit( TabPage_3, "v24Interface" );
00430     layout36_2->addWidget( v24Interface );
00431 
00432     v24AcceptButton = new QPushButton( TabPage_3, "v24AcceptButton" );
00433     layout36_2->addWidget( v24AcceptButton );
00434     layout41_2->addLayout( layout36_2 );
00435 
00436     v24ExplorationLabel = new QLabel( TabPage_3, "v24ExplorationLabel" );
00437     layout41_2->addWidget( v24ExplorationLabel );
00438 
00439     layout36_3 = new QHBoxLayout( 0, 0, 6, "layout36_3"); 
00440 
00441     v24ExplorationParameterInput = new QLineEdit( TabPage_3, "v24ExplorationParameterInput" );
00442     v24ExplorationParameterInput->setEnabled( FALSE );
00443     layout36_3->addWidget( v24ExplorationParameterInput );
00444 
00445     v24ExplorationAcceptButton = new QPushButton( TabPage_3, "v24ExplorationAcceptButton" );
00446     v24ExplorationAcceptButton->setEnabled( FALSE );
00447     layout36_3->addWidget( v24ExplorationAcceptButton );
00448 
00449     v24GetExplorationButton = new QPushButton( TabPage_3, "v24GetExplorationButton" );
00450     v24GetExplorationButton->setEnabled( FALSE );
00451     layout36_3->addWidget( v24GetExplorationButton );
00452     layout41_2->addLayout( layout36_3 );
00453 
00454     layout36_4 = new QHBoxLayout( 0, 0, 6, "layout36_4"); 
00455 
00456     textLabel1_13 = new QLabel( TabPage_3, "textLabel1_13" );
00457     layout36_4->addWidget( textLabel1_13 );
00458 
00459     v24ExplorationModeEGreedy = new QRadioButton( TabPage_3, "v24ExplorationModeEGreedy" );
00460     v24ExplorationModeEGreedy->setChecked( TRUE );
00461     layout36_4->addWidget( v24ExplorationModeEGreedy );
00462 
00463     v24ExplorationModeValueBased = new QRadioButton( TabPage_3, "v24ExplorationModeValueBased" );
00464     v24ExplorationModeValueBased->setChecked( FALSE );
00465     layout36_4->addWidget( v24ExplorationModeValueBased );
00466     layout41_2->addLayout( layout36_4 );
00467     spacer35 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Fixed );
00468     layout41_2->addItem( spacer35 );
00469 
00470     layout35 = new QVBoxLayout( 0, 0, 6, "layout35"); 
00471 
00472     v24StartWalkingButton = new QPushButton( TabPage_3, "v24StartWalkingButton" );
00473     v24StartWalkingButton->setEnabled( FALSE );
00474     layout35->addWidget( v24StartWalkingButton );
00475 
00476     v24StopWalkingButton = new QPushButton( TabPage_3, "v24StopWalkingButton" );
00477     v24StopWalkingButton->setEnabled( FALSE );
00478     layout35->addWidget( v24StopWalkingButton );
00479 
00480     v24StartLearningButton = new QPushButton( TabPage_3, "v24StartLearningButton" );
00481     v24StartLearningButton->setEnabled( FALSE );
00482     layout35->addWidget( v24StartLearningButton );
00483     layout41_2->addLayout( layout35 );
00484     spacer33 = new QSpacerItem( 20, 178, QSizePolicy::Minimum, QSizePolicy::Expanding );
00485     layout41_2->addItem( spacer33 );
00486     layout41->addLayout( layout41_2 );
00487     spacer87 = new QSpacerItem( 16, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00488     layout41->addItem( spacer87 );
00489 
00490     layout40_2 = new QVBoxLayout( 0, 0, 6, "layout40_2"); 
00491 
00492     layout74 = new QVBoxLayout( 0, 0, 6, "layout74"); 
00493 
00494     v24GetDistanceButton = new QPushButton( TabPage_3, "v24GetDistanceButton" );
00495     v24GetDistanceButton->setEnabled( FALSE );
00496     layout74->addWidget( v24GetDistanceButton );
00497 
00498     v24ResetDistanceButton = new QPushButton( TabPage_3, "v24ResetDistanceButton" );
00499     v24ResetDistanceButton->setEnabled( FALSE );
00500     layout74->addWidget( v24ResetDistanceButton );
00501     layout40_2->addLayout( layout74 );
00502     spacer34_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed );
00503     layout40_2->addItem( spacer34_2 );
00504 
00505     layout73 = new QVBoxLayout( 0, 0, 6, "layout73"); 
00506 
00507     v24GetPositionAndModeButton = new QPushButton( TabPage_3, "v24GetPositionAndModeButton" );
00508     v24GetPositionAndModeButton->setEnabled( FALSE );
00509     layout73->addWidget( v24GetPositionAndModeButton );
00510 
00511     v24RamtestButton = new QPushButton( TabPage_3, "v24RamtestButton" );
00512     v24RamtestButton->setEnabled( FALSE );
00513     layout73->addWidget( v24RamtestButton );
00514 
00515     v24ExploreFeedbackButton = new QPushButton( TabPage_3, "v24ExploreFeedbackButton" );
00516     v24ExploreFeedbackButton->setEnabled( FALSE );
00517     layout73->addWidget( v24ExploreFeedbackButton );
00518     layout40_2->addLayout( layout73 );
00519     spacer34 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed );
00520     layout40_2->addItem( spacer34 );
00521 
00522     layout39_2 = new QVBoxLayout( 0, 0, 6, "layout39_2"); 
00523 
00524     v24CopyStatesAndGammaToRobotButton = new QPushButton( TabPage_3, "v24CopyStatesAndGammaToRobotButton" );
00525     v24CopyStatesAndGammaToRobotButton->setEnabled( FALSE );
00526     layout39_2->addWidget( v24CopyStatesAndGammaToRobotButton );
00527 
00528     v24GetStatesAndGammaFromRobotButton = new QPushButton( TabPage_3, "v24GetStatesAndGammaFromRobotButton" );
00529     v24GetStatesAndGammaFromRobotButton->setEnabled( FALSE );
00530     layout39_2->addWidget( v24GetStatesAndGammaFromRobotButton );
00531     layout40_2->addLayout( layout39_2 );
00532     spacer83 = new QSpacerItem( 20, 30, QSizePolicy::Minimum, QSizePolicy::Expanding );
00533     layout40_2->addItem( spacer83 );
00534 
00535     v24DebugButton = new QPushButton( TabPage_3, "v24DebugButton" );
00536     v24DebugButton->setEnabled( FALSE );
00537     layout40_2->addWidget( v24DebugButton );
00538     spacer38_2 = new QSpacerItem( 20, 30, QSizePolicy::Minimum, QSizePolicy::Expanding );
00539     layout40_2->addItem( spacer38_2 );
00540     layout41->addLayout( layout40_2 );
00541     TabPageLayout_3->addLayout( layout41 );
00542     ViTab->insertTab( TabPage_3, QString::fromLatin1("") );
00543     tabLayout_3->addWidget( ViTab );
00544     tabWidget2->insertTab( tab_3, QString::fromLatin1("") );
00545 
00546     TabPage_4 = new QWidget( tabWidget2, "TabPage_4" );
00547     TabPageLayout_4 = new QVBoxLayout( TabPage_4, 11, 6, "TabPageLayout_4"); 
00548 
00549     QTab = new QTabWidget( TabPage_4, "QTab" );
00550 
00551     tab_5 = new QWidget( QTab, "tab_5" );
00552     QTab->insertTab( tab_5, QString::fromLatin1("") );
00553 
00554     tab_6 = new QWidget( QTab, "tab_6" );
00555     QTab->insertTab( tab_6, QString::fromLatin1("") );
00556     TabPageLayout_4->addWidget( QTab );
00557     tabWidget2->insertTab( TabPage_4, QString::fromLatin1("") );
00558 
00559     TabPage_5 = new QWidget( tabWidget2, "TabPage_5" );
00560     TabPageLayout_5 = new QVBoxLayout( TabPage_5, 11, 6, "TabPageLayout_5"); 
00561 
00562     envRewardTable = new QTable( TabPage_5, "envRewardTable" );
00563     envRewardTable->setNumRows( 0 );
00564     envRewardTable->setNumCols( 0 );
00565     TabPageLayout_5->addWidget( envRewardTable );
00566 
00567     layout36_5 = new QHBoxLayout( 0, 0, 6, "layout36_5"); 
00568 
00569     layout26 = new QHBoxLayout( 0, 0, 6, "layout26"); 
00570 
00571     layout25 = new QVBoxLayout( 0, 0, 6, "layout25"); 
00572 
00573     layout34 = new QGridLayout( 0, 1, 1, 0, 6, "layout34"); 
00574 
00575     textLabel3 = new QLabel( TabPage_5, "textLabel3" );
00576     textLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, textLabel3->sizePolicy().hasHeightForWidth() ) );
00577 
00578     layout34->addWidget( textLabel3, 0, 0 );
00579 
00580     textLabel4_2 = new QLabel( TabPage_5, "textLabel4_2" );
00581     textLabel4_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, textLabel4_2->sizePolicy().hasHeightForWidth() ) );
00582 
00583     layout34->addWidget( textLabel4_2, 1, 0 );
00584 
00585     envRowLabel = new QLabel( TabPage_5, "envRowLabel" );
00586     envRowLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, envRowLabel->sizePolicy().hasHeightForWidth() ) );
00587 
00588     layout34->addWidget( envRowLabel, 0, 1 );
00589 
00590     envColLabel = new QLabel( TabPage_5, "envColLabel" );
00591     envColLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, envColLabel->sizePolicy().hasHeightForWidth() ) );
00592 
00593     layout34->addWidget( envColLabel, 1, 1 );
00594     layout25->addLayout( layout34 );
00595 
00596     envSaveRewardButton = new QPushButton( TabPage_5, "envSaveRewardButton" );
00597     envSaveRewardButton->setEnabled( FALSE );
00598     layout25->addWidget( envSaveRewardButton );
00599     layout26->addLayout( layout25 );
00600 
00601     layout32 = new QHBoxLayout( 0, 0, 6, "layout32"); 
00602 
00603     layout21 = new QGridLayout( 0, 1, 1, 0, 6, "layout21"); 
00604     spacer10 = new QSpacerItem( 65, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00605     layout21->addItem( spacer10, 1, 3 );
00606 
00607     envRightRewardInput = new QSpinBox( TabPage_5, "envRightRewardInput" );
00608     envRightRewardInput->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, envRightRewardInput->sizePolicy().hasHeightForWidth() ) );
00609     envRightRewardInput->setMaxValue( 127 );
00610     envRightRewardInput->setMinValue( -127 );
00611 
00612     layout21->addWidget( envRightRewardInput, 1, 5 );
00613 
00614     envDownRewardInput = new QSpinBox( TabPage_5, "envDownRewardInput" );
00615     envDownRewardInput->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, envDownRewardInput->sizePolicy().hasHeightForWidth() ) );
00616     envDownRewardInput->setMaxValue( 127 );
00617     envDownRewardInput->setMinValue( -127 );
00618 
00619     layout21->addWidget( envDownRewardInput, 2, 3 );
00620 
00621     textLabel1_2_4 = new QLabel( TabPage_5, "textLabel1_2_4" );
00622     textLabel1_2_4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, textLabel1_2_4->sizePolicy().hasHeightForWidth() ) );
00623     textLabel1_2_4->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
00624 
00625     layout21->addWidget( textLabel1_2_4, 1, 0 );
00626 
00627     envLeftRewardInput = new QSpinBox( TabPage_5, "envLeftRewardInput" );
00628     envLeftRewardInput->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, envLeftRewardInput->sizePolicy().hasHeightForWidth() ) );
00629     envLeftRewardInput->setMaxValue( 127 );
00630     envLeftRewardInput->setMinValue( -127 );
00631 
00632     layout21->addWidget( envLeftRewardInput, 1, 1 );
00633 
00634     envUpRewardInput = new QSpinBox( TabPage_5, "envUpRewardInput" );
00635     envUpRewardInput->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, envUpRewardInput->sizePolicy().hasHeightForWidth() ) );
00636     envUpRewardInput->setMaxValue( 127 );
00637     envUpRewardInput->setMinValue( -127 );
00638 
00639     layout21->addWidget( envUpRewardInput, 0, 3 );
00640     spacer13 = new QSpacerItem( 35, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00641     layout21->addItem( spacer13, 0, 0 );
00642     spacer15 = new QSpacerItem( 35, 16, QSizePolicy::Expanding, QSizePolicy::Minimum );
00643     layout21->addItem( spacer15, 2, 0 );
00644 
00645     textLabel1_2_5 = new QLabel( TabPage_5, "textLabel1_2_5" );
00646     textLabel1_2_5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, textLabel1_2_5->sizePolicy().hasHeightForWidth() ) );
00647     textLabel1_2_5->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
00648 
00649     layout21->addWidget( textLabel1_2_5, 1, 4 );
00650     spacer14 = new QSpacerItem( 81, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00651     layout21->addItem( spacer14, 0, 5 );
00652     spacer19 = new QSpacerItem( 53, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00653     layout21->addItem( spacer19, 1, 2 );
00654 
00655     textLabel1_2 = new QLabel( TabPage_5, "textLabel1_2" );
00656     textLabel1_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, textLabel1_2->sizePolicy().hasHeightForWidth() ) );
00657     textLabel1_2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
00658 
00659     layout21->addWidget( textLabel1_2, 0, 2 );
00660     spacer16 = new QSpacerItem( 81, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00661     layout21->addItem( spacer16, 2, 5 );
00662     spacer18 = new QSpacerItem( 47, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00663     layout21->addItem( spacer18, 0, 4 );
00664     spacer20 = new QSpacerItem( 65, 16, QSizePolicy::Expanding, QSizePolicy::Minimum );
00665     layout21->addItem( spacer20, 2, 1 );
00666     spacer22 = new QSpacerItem( 47, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00667     layout21->addItem( spacer22, 2, 4 );
00668 
00669     textLabel1_2_2 = new QLabel( TabPage_5, "textLabel1_2_2" );
00670     textLabel1_2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, textLabel1_2_2->sizePolicy().hasHeightForWidth() ) );
00671     textLabel1_2_2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
00672 
00673     layout21->addWidget( textLabel1_2_2, 2, 2 );
00674     spacer17 = new QSpacerItem( 65, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00675     layout21->addItem( spacer17, 0, 1 );
00676     layout32->addLayout( layout21 );
00677 
00678     layout31 = new QVBoxLayout( 0, 0, 6, "layout31"); 
00679     layout32->addLayout( layout31 );
00680     layout26->addLayout( layout32 );
00681     layout36_5->addLayout( layout26 );
00682 
00683     layout35_2 = new QVBoxLayout( 0, 0, 6, "layout35_2"); 
00684 
00685     envSaveMatlabFileButton = new QPushButton( TabPage_5, "envSaveMatlabFileButton" );
00686     envSaveMatlabFileButton->setEnabled( FALSE );
00687     layout35_2->addWidget( envSaveMatlabFileButton );
00688 
00689     envSaveFileButton = new QPushButton( TabPage_5, "envSaveFileButton" );
00690     envSaveFileButton->setEnabled( FALSE );
00691     layout35_2->addWidget( envSaveFileButton );
00692 
00693     envLoadFileButton = new QPushButton( TabPage_5, "envLoadFileButton" );
00694     envLoadFileButton->setEnabled( FALSE );
00695     layout35_2->addWidget( envLoadFileButton );
00696     layout36_5->addLayout( layout35_2 );
00697     TabPageLayout_5->addLayout( layout36_5 );
00698     tabWidget2->insertTab( TabPage_5, QString::fromLatin1("") );
00699 
00700     TabPage_6 = new QWidget( tabWidget2, "TabPage_6" );
00701     TabPageLayout_6 = new QVBoxLayout( TabPage_6, 11, 6, "TabPageLayout_6"); 
00702 
00703     strategyTable = new QTable( TabPage_6, "strategyTable" );
00704     strategyTable->setNumRows( 0 );
00705     strategyTable->setNumCols( 0 );
00706     TabPageLayout_6->addWidget( strategyTable );
00707 
00708     layout4_2 = new QHBoxLayout( 0, 0, 6, "layout4_2"); 
00709 
00710     viDeleteButton2 = new QPushButton( TabPage_6, "viDeleteButton2" );
00711     layout4_2->addWidget( viDeleteButton2 );
00712 
00713     viLernenButton2 = new QPushButton( TabPage_6, "viLernenButton2" );
00714     layout4_2->addWidget( viLernenButton2 );
00715 
00716     viIterationButton2 = new QPushButton( TabPage_6, "viIterationButton2" );
00717     layout4_2->addWidget( viIterationButton2 );
00718 
00719     viStopButton2 = new QPushButton( TabPage_6, "viStopButton2" );
00720     viStopButton2->setEnabled( FALSE );
00721     layout4_2->addWidget( viStopButton2 );
00722     TabPageLayout_6->addLayout( layout4_2 );
00723     tabWidget2->insertTab( TabPage_6, QString::fromLatin1("") );
00724 
00725     TabPage_7 = new QWidget( tabWidget2, "TabPage_7" );
00726     TabPageLayout_7 = new QVBoxLayout( TabPage_7, 11, 6, "TabPageLayout_7"); 
00727 
00728     canvasView = new MyCanvasView( TabPage_7, "canvasView" );
00729     canvasView->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, canvasView->sizePolicy().hasHeightForWidth() ) );
00730     TabPageLayout_7->addWidget( canvasView );
00731 
00732     layout10 = new QHBoxLayout( 0, 0, 6, "layout10"); 
00733 
00734     startSimulationButton = new QPushButton( TabPage_7, "startSimulationButton" );
00735     layout10->addWidget( startSimulationButton );
00736 
00737     resumeSimulationButton = new QPushButton( TabPage_7, "resumeSimulationButton" );
00738     layout10->addWidget( resumeSimulationButton );
00739 
00740     stopSimulationButton = new QPushButton( TabPage_7, "stopSimulationButton" );
00741     layout10->addWidget( stopSimulationButton );
00742     TabPageLayout_7->addLayout( layout10 );
00743     tabWidget2->insertTab( TabPage_7, QString::fromLatin1("") );
00744     SimulationMainWindowLayout->addWidget( tabWidget2 );
00745 
00746     layout2 = new QHBoxLayout( 0, 0, 6, "layout2"); 
00747 
00748     textLabel2 = new QLabel( centralWidget(), "textLabel2" );
00749     textLabel2->setEnabled( TRUE );
00750     textLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, textLabel2->sizePolicy().hasHeightForWidth() ) );
00751     layout2->addWidget( textLabel2 );
00752 
00753     debugLabel = new QLabel( centralWidget(), "debugLabel" );
00754     debugLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)4, 0, 0, debugLabel->sizePolicy().hasHeightForWidth() ) );
00755     layout2->addWidget( debugLabel );
00756     SimulationMainWindowLayout->addLayout( layout2 );
00757 
00758     // toolbars
00759 
00760     languageChange();
00761     resize( QSize(691, 709).expandedTo(minimumSizeHint()) );
00762     clearWState( WState_Polished );
00763 
00764     // signals and slots connections
00765     connect( viLernenButton, SIGNAL( toggled(bool) ), viStopButton, SLOT( setEnabled(bool) ) );
00766     connect( viStopButton, SIGNAL( clicked() ), viIterationButton, SLOT( toggle() ) );
00767     connect( viStopButton, SIGNAL( clicked() ), viStopButton, SLOT( toggle() ) );
00768     connect( ViLearningButton, SIGNAL( pressed() ), QLearningButton, SLOT( toggle() ) );
00769     connect( QLearningButton, SIGNAL( pressed() ), ViLearningButton, SLOT( toggle() ) );
00770     connect( viLernenButton2, SIGNAL( toggled(bool) ), viStopButton2, SLOT( setEnabled(bool) ) );
00771     connect( viStopButton2, SIGNAL( clicked() ), viIterationButton2, SLOT( toggle() ) );
00772     connect( viStopButton2, SIGNAL( clicked() ), viStopButton2, SLOT( toggle() ) );
00773     connect( v24ExplorationModeEGreedy, SIGNAL( pressed() ), v24ExplorationModeValueBased, SLOT( toggle() ) );
00774     connect( v24ExplorationModeValueBased, SIGNAL( pressed() ), v24ExplorationModeEGreedy, SLOT( toggle() ) );
00775 
00776     // tab order
00777     setTabOrder( netHiddenUnits, netHiddenLayers );
00778     setTabOrder( netHiddenLayers, netEta );
00779     setTabOrder( netEta, netActivationStepnessHidden );
00780     setTabOrder( netActivationStepnessHidden, netActivationStepnessOutput );
00781     setTabOrder( netActivationStepnessOutput, netMaxEpochs );
00782     setTabOrder( netMaxEpochs, netIterationsBetweenReport );
00783     setTabOrder( netIterationsBetweenReport, netDesiredError );
00784     setTabOrder( netDesiredError, netAutoAdjustError );
00785     setTabOrder( netAutoAdjustError, applyButton );
00786     setTabOrder( applyButton, ViLearningButton );
00787     setTabOrder( ViLearningButton, QLearningButton );
00788     setTabOrder( QLearningButton, numRows );
00789     setTabOrder( numRows, numCols );
00790     setTabOrder( numCols, mantisseInput );
00791     setTabOrder( mantisseInput, viGammaInput );
00792     setTabOrder( viGammaInput, applyButtonVI );
00793     setTabOrder( applyButtonVI, viLearnWithVI );
00794     setTabOrder( viLearnWithVI, viLearnWithNN );
00795     setTabOrder( viLearnWithNN, viRandomValuesSlider );
00796     setTabOrder( viRandomValuesSlider, viSpeedSlider );
00797     setTabOrder( viSpeedSlider, viDeleteButton );
00798     setTabOrder( viDeleteButton, viLernenButton );
00799     setTabOrder( viLernenButton, viIterationButton );
00800     setTabOrder( viIterationButton, viStopButton );
00801     setTabOrder( viStopButton, v24Data );
00802     setTabOrder( v24Data, v24Interface );
00803     setTabOrder( v24Interface, v24AcceptButton );
00804     setTabOrder( v24AcceptButton, v24ExplorationParameterInput );
00805     setTabOrder( v24ExplorationParameterInput, v24ExplorationAcceptButton );
00806     setTabOrder( v24ExplorationAcceptButton, v24StartWalkingButton );
00807     setTabOrder( v24StartWalkingButton, v24StopWalkingButton );
00808     setTabOrder( v24StopWalkingButton, v24StartLearningButton );
00809     setTabOrder( v24StartLearningButton, v24GetDistanceButton );
00810     setTabOrder( v24GetDistanceButton, v24ResetDistanceButton );
00811     setTabOrder( v24ResetDistanceButton, v24GetPositionAndModeButton );
00812     setTabOrder( v24GetPositionAndModeButton, v24RamtestButton );
00813     setTabOrder( v24RamtestButton, v24ExploreFeedbackButton );
00814     setTabOrder( v24ExploreFeedbackButton, v24CopyStatesAndGammaToRobotButton );
00815     setTabOrder( v24CopyStatesAndGammaToRobotButton, v24GetStatesAndGammaFromRobotButton );
00816     setTabOrder( v24GetStatesAndGammaFromRobotButton, envLeftRewardInput );
00817     setTabOrder( envLeftRewardInput, envUpRewardInput );
00818     setTabOrder( envUpRewardInput, envDownRewardInput );
00819     setTabOrder( envDownRewardInput, envRightRewardInput );
00820     setTabOrder( envRightRewardInput, envSaveFileButton );
00821     setTabOrder( envSaveFileButton, envLoadFileButton );
00822     setTabOrder( envLoadFileButton, envSaveRewardButton );
00823     setTabOrder( envSaveRewardButton, startSimulationButton );
00824     setTabOrder( startSimulationButton, resumeSimulationButton );
00825     setTabOrder( resumeSimulationButton, stopSimulationButton );
00826     setTabOrder( stopSimulationButton, viValueTable );
00827     setTabOrder( viValueTable, ViTab );
00828     setTabOrder( ViTab, tabWidget2 );
00829     setTabOrder( tabWidget2, tabWidget4 );
00830     setTabOrder( tabWidget4, QTab );
00831     setTabOrder( QTab, envRewardTable );
00832     setTabOrder( envRewardTable, strategyTable );
00833 }
00834 
00835 /*
00836  *  Destroys the object and frees any allocated resources
00837  */
00838 SimulationMainWindow::~SimulationMainWindow()
00839 {
00840     // no need to delete child widgets, Qt does it all for us
00841 }
00842 
00843 /*
00844  *  Sets the strings of the subwidgets using the current
00845  *  language.
00846  */
00847 void SimulationMainWindow::languageChange()
00848 {
00849     setCaption( tr( "Walking Robot Simulation" ) );
00850     buttonGroup3->setTitle( tr( "Learning Algorithm" ) );
00851     ViLearningButton->setText( tr( "Value Iteration" ) );
00852     ViLearningButton->setAccel( QKeySequence( QString::null ) );
00853     QLearningButton->setText( tr( "Q-Learning" ) );
00854     groupBox2->setTitle( tr( "statespace / grid size" ) );
00855     textLabel4->setText( tr( "rows:" ) );
00856     textLabel5->setText( tr( "columns:" ) );
00857     textLabel1->setText( tr( "# of decimal places for float numbers :" ) );
00858     tabWidget4->changeTab( tab, tr( "Glo&bal Configuration" ) );
00859     textLabel2_2->setText( tr( "learning rate (only for BP):" ) );
00860     textLabel3_2->setText( tr( "hidden units:" ) );
00861     textLabel1_6->setText( tr( "hidden layers:" ) );
00862     netEta->setText( tr( "0.9" ) );
00863     textLabel2_5->setText( tr( "max training epochs:" ) );
00864     textLabel1_3->setText( tr( "automatically adjust error:" ) );
00865     netDesiredError->setText( tr( "0.00003" ) );
00866     netAutoAdjustError->setText( QString::null );
00867     textLabel1_11->setText( tr( "desired error:" ) );
00868     textLabel3_3->setText( tr( "iterations between report:" ) );
00869     textLabel1_4->setText( tr( "activation hidden:" ) );
00870     netHiddenActivationFunction->clear();
00871     netHiddenActivationFunction->insertItem( tr( "SIGMOID" ) );
00872     netHiddenActivationFunction->insertItem( tr( "TANH" ) );
00873     netHiddenActivationFunction->insertItem( tr( "LINEAR" ) );
00874     netHiddenActivationFunction->setCurrentItem( 1 );
00875     textLabel1_12->setText( tr( "stepness:" ) );
00876     netActivationStepnessHidden->setText( tr( "0.1" ) );
00877     textLabel1_9->setText( tr( "activation output:" ) );
00878     netOutputActivationFunction->clear();
00879     netOutputActivationFunction->insertItem( tr( "SIGMOID" ) );
00880     netOutputActivationFunction->insertItem( tr( "TANH" ) );
00881     netOutputActivationFunction->insertItem( tr( "LINEAR" ) );
00882     netOutputActivationFunction->setCurrentItem( 1 );
00883     textLabel2_4->setText( tr( "stepness:" ) );
00884     netActivationStepnessOutput->setText( tr( "0.1" ) );
00885     tabWidget4->changeTab( tab_2, tr( "Neural Networ&k Properties" ) );
00886     applyButton->setText( tr( "&apply" ) );
00887     applyButton->setAccel( QKeySequence( tr( "Alt+A" ) ) );
00888     tabWidget2->changeTab( TabPage, tr( "C&onfiguration" ) );
00889     textLabel2_3->setText( tr( "value iteration properties:" ) );
00890     textLabel6->setText( tr( "gamma (iteration rate):" ) );
00891     viGammaInput->setText( tr( "0.9" ) );
00892     applyButtonVI->setText( tr( "&apply" ) );
00893     applyButtonVI->setAccel( QKeySequence( tr( "Alt+A" ) ) );
00894     textLabel1_10->setText( tr( "Neural Network Properties:" ) );
00895     groupBox1->setTitle( tr( "value memory" ) );
00896     viLearnWithVI->setText( tr( "save values in memory table" ) );
00897     viLearnWithNN->setText( tr( "save values to neural networ&k (using global training options)" ) );
00898     viLearnWithNN->setAccel( QKeySequence( tr( "Alt+K" ) ) );
00899     viRandomNetSliderGroupBox->setTitle( QString::null );
00900     viRandomNetSliderText->setText( tr( "train 100% (random) values:" ) );
00901     textLabel3_5->setText( tr( "0" ) );
00902     textLabel4_3->setText( tr( "100" ) );
00903     ViTab->changeTab( TabPage_2, tr( "Algorithmn Configuration" ) );
00904     viSpeedLabel->setText( tr( "speed:  slow" ) );
00905     textLabel9->setText( tr( "fast" ) );
00906     viDeleteButton->setText( tr( "clear" ) );
00907     viLernenButton->setText( tr( "sta&rt learning" ) );
00908     viLernenButton->setAccel( QKeySequence( tr( "Alt+R" ) ) );
00909     viIterationButton->setText( tr( "&next iteration" ) );
00910     viIterationButton->setAccel( QKeySequence( tr( "Alt+N" ) ) );
00911     viStopButton->setText( tr( "st&op learning" ) );
00912     viStopButton->setAccel( QKeySequence( tr( "Alt+O" ) ) );
00913     ViTab->changeTab( tab_4, tr( "value ta&ble" ) );
00914     textLabel1_5->setText( tr( "Output:" ) );
00915     v24Data->setText( QString::null );
00916     textLabel1_7->setText( tr( "<b>serial interface:</b>" ) );
00917     v24Interface->setText( tr( "/dev/ttyUSB0" ) );
00918     v24AcceptButton->setText( tr( "accept" ) );
00919     v24ExplorationLabel->setText( tr( "<b>exploration/exploitation parameter (sigma):</b>" ) );
00920     v24ExplorationParameterInput->setText( tr( "0.5" ) );
00921     v24ExplorationAcceptButton->setText( tr( "set" ) );
00922     v24GetExplorationButton->setText( tr( "read" ) );
00923     textLabel1_13->setText( tr( "Mode:" ) );
00924     v24ExplorationModeEGreedy->setText( tr( "e-Greedy" ) );
00925     v24ExplorationModeValueBased->setText( tr( "value based" ) );
00926     v24StartWalkingButton->setText( tr( "start walking and learning (exploitation)" ) );
00927     v24StartWalkingButton->setAccel( QKeySequence( QString::null ) );
00928     v24StopWalkingButton->setText( tr( "stop wal&king and learning" ) );
00929     v24StopWalkingButton->setAccel( QKeySequence( tr( "Alt+K" ) ) );
00930     v24StartLearningButton->setText( tr( "start &learning without walking" ) );
00931     v24GetDistanceButton->setText( tr( "get distance covered" ) );
00932     v24GetDistanceButton->setAccel( QKeySequence( QString::null ) );
00933     v24ResetDistanceButton->setText( tr( "reset distance counter" ) );
00934     v24GetPositionAndModeButton->setText( tr( "get current position, mode and iteration#" ) );
00935     v24GetPositionAndModeButton->setAccel( QKeySequence( QString::null ) );
00936     v24RamtestButton->setText( tr( "RAM test" ) );
00937     v24RamtestButton->setAccel( QKeySequence( QString::null ) );
00938     v24ExploreFeedbackButton->setText( tr( "e&xplore environment (save rewards)" ) );
00939     v24ExploreFeedbackButton->setAccel( QKeySequence( tr( "Alt+X" ) ) );
00940     v24CopyStatesAndGammaToRobotButton->setText( tr( "apply configuration and states to ro&bot" ) );
00941     v24CopyStatesAndGammaToRobotButton->setAccel( QKeySequence( tr( "Alt+B" ) ) );
00942     v24GetStatesAndGammaFromRobotButton->setText( tr( "read configuration and states from robot" ) );
00943     v24GetStatesAndGammaFromRobotButton->setAccel( QKeySequence( QString::null ) );
00944     v24DebugButton->setText( tr( "Debug (currently: get random numbers)" ) );
00945     ViTab->changeTab( TabPage_3, tr( "serial link to robot (RS2&32)" ) );
00946     tabWidget2->changeTab( tab_3, tr( "V&alue Iteration" ) );
00947     QTab->changeTab( tab_5, tr( "&Algorithm Configuration" ) );
00948     QTab->changeTab( tab_6, tr( "Q-Values" ) );
00949     tabWidget2->changeTab( TabPage_4, tr( "&Q-Learning" ) );
00950     textLabel3->setText( tr( "Row:" ) );
00951     textLabel4_2->setText( tr( "Column:" ) );
00952     envRowLabel->setText( QString::null );
00953     envColLabel->setText( QString::null );
00954     envSaveRewardButton->setText( tr( "save reward" ) );
00955     envSaveRewardButton->setAccel( QKeySequence( QString::null ) );
00956     textLabel1_2_4->setText( tr( "left:" ) );
00957     textLabel1_2_5->setText( tr( "right:" ) );
00958     textLabel1_2->setText( tr( "up:" ) );
00959     textLabel1_2_2->setText( tr( "down:" ) );
00960     envSaveMatlabFileButton->setText( tr( "e&xport to .m" ) );
00961     envSaveMatlabFileButton->setAccel( QKeySequence( tr( "Alt+X" ) ) );
00962     envSaveFileButton->setText( tr( "save to file" ) );
00963     envSaveFileButton->setAccel( QKeySequence( QString::null ) );
00964     envLoadFileButton->setText( tr( "l&oad from file" ) );
00965     envLoadFileButton->setAccel( QKeySequence( tr( "Alt+O" ) ) );
00966     tabWidget2->changeTab( TabPage_5, tr( "Environment / Reward Editor" ) );
00967     viDeleteButton2->setText( tr( "clear" ) );
00968     viLernenButton2->setText( tr( "sta&rt learning" ) );
00969     viLernenButton2->setAccel( QKeySequence( tr( "Alt+R" ) ) );
00970     viIterationButton2->setText( tr( "&next iteration" ) );
00971     viIterationButton2->setAccel( QKeySequence( tr( "Alt+N" ) ) );
00972     viStopButton2->setText( tr( "st&op learning" ) );
00973     viStopButton2->setAccel( QKeySequence( tr( "Alt+O" ) ) );
00974     tabWidget2->changeTab( TabPage_6, tr( "Polic&y" ) );
00975     startSimulationButton->setText( tr( "start simulation" ) );
00976     resumeSimulationButton->setText( tr( "&resume simulation" ) );
00977     resumeSimulationButton->setAccel( QKeySequence( tr( "Alt+R" ) ) );
00978     stopSimulationButton->setText( tr( "st&op simulation" ) );
00979     tabWidget2->changeTab( TabPage_7, tr( "Simulation" ) );
00980     textLabel2->setText( tr( "Debug:" ) );
00981     debugLabel->setText( QString::null );
00982 }
00983 

Erzeugt am Mon Nov 24 15:30:59 2008 für Walking Robot Simulation GUI - API Documentation von  doxygen 1.5.5