?? qtcontrol.cpp
字號:
/****************************************************************************
** Form implementation generated from reading ui file 'qtControl.ui'
**
** Created: Di 5. Okt 11:36:43 2004
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.1 edited Nov 24 13:47 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "qtcontrol.h"
#ifdef RL_TOOLBOX_USE_QT
#include <qvariant.h>
#include <qgroupbox.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qspinbox.h>
#include <qpushbutton.h>
#include <qcombobox.h>
#include <qscrollbar.h>
#include <qtextedit.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
/*
* Constructs a qtControl as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*
* The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog.
*/
qtControl::qtControl( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
{
if ( !name )
setName( "qtControl" );
setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, sizePolicy().hasHeightForWidth() ) );
setSizeGripEnabled( TRUE );
GroupBox1 = new QGroupBox( this, "GroupBox1" );
GroupBox1->setGeometry( QRect( 10, 10, 340, 180 ) );
QPalette pal;
QColorGroup cg;
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 236, 233, 216) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 245, 244, 235) );
cg.setColor( QColorGroup::Dark, QColor( 118, 116, 108) );
cg.setColor( QColorGroup::Mid, QColor( 157, 155, 143) );
cg.setColor( QColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, black );
cg.setColor( QColorGroup::Base, white );
cg.setColor( QColorGroup::Background, QColor( 195, 192, 178) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 0, 0, 128) );
cg.setColor( QColorGroup::HighlightedText, white );
cg.setColor( QColorGroup::Link, black );
cg.setColor( QColorGroup::LinkVisited, black );
pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 236, 233, 216) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 255, 254, 249) );
cg.setColor( QColorGroup::Dark, QColor( 118, 116, 108) );
cg.setColor( QColorGroup::Mid, QColor( 157, 155, 143) );
cg.setColor( QColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, black );
cg.setColor( QColorGroup::Base, white );
cg.setColor( QColorGroup::Background, QColor( 195, 192, 178) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 0, 0, 128) );
cg.setColor( QColorGroup::HighlightedText, white );
cg.setColor( QColorGroup::Link, black );
cg.setColor( QColorGroup::LinkVisited, black );
pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 236, 233, 216) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 255, 254, 249) );
cg.setColor( QColorGroup::Dark, QColor( 118, 116, 108) );
cg.setColor( QColorGroup::Mid, QColor( 157, 155, 143) );
cg.setColor( QColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Base, white );
cg.setColor( QColorGroup::Background, QColor( 195, 192, 178) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 0, 0, 128) );
cg.setColor( QColorGroup::HighlightedText, white );
cg.setColor( QColorGroup::Link, black );
cg.setColor( QColorGroup::LinkVisited, black );
pal.setDisabled( cg );
GroupBox1->setPalette( pal );
TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
TextLabel1->setGeometry( QRect( 10, 20, 67, 20 ) );
TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
TextLabel2->setGeometry( QRect( 10, 50, 67, 20 ) );
textLabel1 = new QLabel( GroupBox1, "textLabel1" );
textLabel1->setGeometry( QRect( 10, 80, 151, 20 ) );
steps = new QLineEdit( GroupBox1, "steps" );
steps->setEnabled( FALSE );
steps->setGeometry( QRect( 80, 20, 50, 22 ) );
steps->setFrameShape( QLineEdit::LineEditPanel );
steps->setFrameShadow( QLineEdit::Sunken );
nepisodes = new QLineEdit( GroupBox1, "nepisodes" );
nepisodes->setEnabled( FALSE );
nepisodes->setGeometry( QRect( 80, 50, 50, 22 ) );
realTime = new QSpinBox( GroupBox1, "realTime" );
realTime->setGeometry( QRect( 80, 100, 57, 21 ) );
realTime->setMaxValue( 497 );
realTime->setMinValue( 0 );
realTime->setValue( 10 );
TextLabel3 = new QLabel( GroupBox1, "TextLabel3" );
TextLabel3->setGeometry( QRect( 150, 20, 130, 20 ) );
simulateEpisodes = new QSpinBox( GroupBox1, "simulateEpisodes" );
simulateEpisodes->setGeometry( QRect( 270, 20, 57, 24 ) );
simulateEpisodes->setValue( 1 );
textLabel1_2_2 = new QLabel( GroupBox1, "textLabel1_2_2" );
textLabel1_2_2->setGeometry( QRect( 150, 50, 141, 20 ) );
textLabel1_2 = new QLabel( GroupBox1, "textLabel1_2" );
textLabel1_2->setGeometry( QRect( 150, 80, 141, 20 ) );
simSteps = new QSpinBox( GroupBox1, "simSteps" );
simSteps->setGeometry( QRect( 270, 80, 57, 21 ) );
simSteps->setMaxValue( 10000000 );
steps_Episode = new QSpinBox( GroupBox1, "steps_Episode" );
steps_Episode->setGeometry( QRect( 270, 50, 57, 21 ) );
steps_Episode->setMaxValue( 1000000 );
startSimButton = new QPushButton( GroupBox1, "startSimButton" );
startSimButton->setGeometry( QRect( 210, 140, 110, 30 ) );
resetModelButton = new QPushButton( GroupBox1, "resetModelButton" );
resetModelButton->setGeometry( QRect( 210, 110, 110, 30 ) );
GroupBox2 = new QGroupBox( this, "GroupBox2" );
GroupBox2->setGeometry( QRect( 10, 200, 340, 60 ) );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 236, 233, 216) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 245, 244, 235) );
cg.setColor( QColorGroup::Dark, QColor( 118, 116, 108) );
cg.setColor( QColorGroup::Mid, QColor( 157, 155, 143) );
cg.setColor( QColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, black );
cg.setColor( QColorGroup::Base, white );
cg.setColor( QColorGroup::Background, QColor( 195, 192, 178) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 0, 0, 128) );
cg.setColor( QColorGroup::HighlightedText, white );
cg.setColor( QColorGroup::Link, black );
cg.setColor( QColorGroup::LinkVisited, black );
pal.setActive( cg );
cg.setColor( QColorGroup::Foreground, black );
cg.setColor( QColorGroup::Button, QColor( 236, 233, 216) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 255, 254, 249) );
cg.setColor( QColorGroup::Dark, QColor( 118, 116, 108) );
cg.setColor( QColorGroup::Mid, QColor( 157, 155, 143) );
cg.setColor( QColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, black );
cg.setColor( QColorGroup::Base, white );
cg.setColor( QColorGroup::Background, QColor( 195, 192, 178) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 0, 0, 128) );
cg.setColor( QColorGroup::HighlightedText, white );
cg.setColor( QColorGroup::Link, black );
cg.setColor( QColorGroup::LinkVisited, black );
pal.setInactive( cg );
cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Button, QColor( 236, 233, 216) );
cg.setColor( QColorGroup::Light, white );
cg.setColor( QColorGroup::Midlight, QColor( 255, 254, 249) );
cg.setColor( QColorGroup::Dark, QColor( 118, 116, 108) );
cg.setColor( QColorGroup::Mid, QColor( 157, 155, 143) );
cg.setColor( QColorGroup::Text, black );
cg.setColor( QColorGroup::BrightText, white );
cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) );
cg.setColor( QColorGroup::Base, white );
cg.setColor( QColorGroup::Background, QColor( 195, 192, 178) );
cg.setColor( QColorGroup::Shadow, black );
cg.setColor( QColorGroup::Highlight, QColor( 0, 0, 128) );
cg.setColor( QColorGroup::HighlightedText, white );
cg.setColor( QColorGroup::Link, black );
cg.setColor( QColorGroup::LinkVisited, black );
pal.setDisabled( cg );
GroupBox2->setPalette( pal );
agentControllers = new QComboBox( FALSE, GroupBox2, "agentControllers" );
agentControllers->setGeometry( QRect( 30, 20, 300, 22 ) );
quit = new QPushButton( this, "quit" );
quit->setGeometry( QRect( 240, 940, 110, 30 ) );
groupBox5 = new QGroupBox( this, "groupBox5" );
groupBox5->setGeometry( QRect( 10, 270, 341, 360 ) );
groupBox5->setPaletteBackgroundColor( QColor( 195, 192, 178 ) );
chooseTestSuiteButton = new QPushButton( groupBox5, "chooseTestSuiteButton" );
chooseTestSuiteButton->setGeometry( QRect( 20, 30, 160, 29 ) );
testSuiteName = new QLineEdit( groupBox5, "testSuiteName" );
testSuiteName->setEnabled( FALSE );
testSuiteName->setGeometry( QRect( 130, 70, 200, 23 ) );
textLabel1_3 = new QLabel( groupBox5, "textLabel1_3" );
textLabel1_3->setGeometry( QRect( 20, 70, 110, 20 ) );
changeParameters = new QScrollBar( groupBox5, "changeParameters" );
changeParameters->setGeometry( QRect( 110, 100, 30, 21 ) );
changeParameters->setOrientation( QScrollBar::Horizontal );
textLabel2 = new QLabel( groupBox5, "textLabel2" );
textLabel2->setGeometry( QRect( 20, 100, 90, 20 ) );
parametersEdit = new QTextEdit( groupBox5, "parametersEdit" );
parametersEdit->setEnabled( TRUE );
parametersEdit->setGeometry( QRect( 40, 130, 291, 140 ) );
parametersEdit->setVScrollBarMode( QTextEdit::AlwaysOn );
parametersEdit->setHScrollBarMode( QTextEdit::Auto );
bestParameterButton = new QPushButton( groupBox5, "bestParameterButton" );
bestParameterButton->setGeometry( QRect( 130, 280, 190, 29 ) );
newParameterButton = new QPushButton( groupBox5, "newParameterButton" );
newParameterButton->setGeometry( QRect( 160, 100, 93, 29 ) );
testSuiteValue = new QLineEdit( groupBox5, "testSuiteValue" );
testSuiteValue->setEnabled( FALSE );
testSuiteValue->setGeometry( QRect( 80, 320, 106, 23 ) );
textLabel3 = new QLabel( groupBox5, "textLabel3" );
textLabel3->setGeometry( QRect( 20, 320, 50, 20 ) );
groupBox4 = new QGroupBox( this, "groupBox4" );
groupBox4->setGeometry( QRect( 10, 640, 341, 190 ) );
groupBox4->setPaletteBackgroundColor( QColor( 195, 192, 178 ) );
learnDataFilenameEdit = new QLineEdit( groupBox4, "learnDataFilenameEdit" );
learnDataFilenameEdit->setGeometry( QRect( 130, 140, 200, 23 ) );
saveDataButton = new QPushButton( groupBox4, "saveDataButton" );
saveDataButton->setGeometry( QRect( 10, 140, 110, 29 ) );
loadDataButton = new QPushButton( groupBox4, "loadDataButton" );
loadDataButton->setGeometry( QRect( 10, 110, 110, 29 ) );
browseButton = new QPushButton( groupBox4, "browseButton" );
browseButton->setGeometry( QRect( 250, 100, 86, 29 ) );
learnTestSuiteButton = new QPushButton( groupBox4, "learnTestSuiteButton" );
learnTestSuiteButton->setGeometry( QRect( 220, 20, 110, 29 ) );
resetDataButton = new QPushButton( groupBox4, "resetDataButton" );
resetDataButton->setGeometry( QRect( 10, 80, 110, 29 ) );
evalEpisodesEdit = new QSpinBox( groupBox4, "evalEpisodesEdit" );
evalEpisodesEdit->setGeometry( QRect( 10, 20, 55, 23 ) );
evalEpisodesEdit->setMaxValue( 100000 );
evalEpisodesEdit->setValue( 100 );
evalNoChangeEdit = new QSpinBox( groupBox4, "evalNoChangeEdit" );
evalNoChangeEdit->setGeometry( QRect( 80, 20, 55, 23 ) );
evalNoChangeEdit->setMaxValue( 10000 );
evalNoChangeEdit->setValue( 10 );
evalStepsPerEpisodeEdit = new QSpinBox( groupBox4, "evalStepsPerEpisodeEdit" );
evalStepsPerEpisodeEdit->setGeometry( QRect( 150, 20, 55, 23 ) );
evalStepsPerEpisodeEdit->setMaxValue( 100000000 );
evalStepsPerEpisodeEdit->setValue( 200 );
languageChange();
resize( QSize(370, 975).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
}
/*
* Destroys the object and frees any allocated resources
*/
qtControl::~qtControl()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void qtControl::languageChange()
{
setCaption( tr( "Reinforcement Toolbox QT Control" ) );
GroupBox1->setTitle( tr( "Simulation" ) );
TextLabel1->setText( tr( "Step :" ) );
TextLabel2->setText( tr( "Episode:" ) );
textLabel1->setText( tr( "Real Time per Step" ) );
steps->setText( tr( "0" ) );
nepisodes->setText( tr( "0" ) );
TextLabel3->setText( tr( "Simulate Episodes:" ) );
textLabel1_2_2->setText( tr( "Steps Per Episode" ) );
textLabel1_2->setText( tr( "Simulate Steps" ) );
startSimButton->setText( tr( "Start Simulation" ) );
resetModelButton->setText( tr( "Reset Model" ) );
GroupBox2->setTitle( tr( "Agent Controller" ) );
groupBox5->setTitle( tr( "TestSuite" ) );
chooseTestSuiteButton->setText( tr( "choose New TestSuite" ) );
textLabel1_3->setText( tr( "TestSuiteName:" ) );
textLabel2->setText( tr( "Parameters:" ) );
bestParameterButton->setText( tr( "Get Best Parameter Setting" ) );
newParameterButton->setText( tr( "New" ) );
textLabel3->setText( tr( "Value:" ) );
groupBox4->setTitle( tr( "Evaluation" ) );
saveDataButton->setText( tr( "save LearnData" ) );
loadDataButton->setText( tr( "load LearnData" ) );
browseButton->setText( tr( "Browse" ) );
learnTestSuiteButton->setText( tr( "Start Learning" ) );
resetDataButton->setText( tr( "reset LearnData" ) );
QToolTip::add( evalEpisodesEdit, tr( "Episodes for Evaluation" ) );
QToolTip::add( evalNoChangeEdit, tr( "Max Episodes no Improvement" ) );
QToolTip::add( evalStepsPerEpisodeEdit, tr( "Steps per Episode" ) );
}
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -