ModelManagerWizard.cpp

00001 /****************************************************************************
00002 ** Form implementation generated from reading ui file 'Qt/ModelManagerWizard.ui'
00003 **
00004 ** WARNING! All changes made in this file will be lost!
00005 ****************************************************************************/
00006 
00007 #include "Qt/ui/ModelManagerWizard.h"
00008 
00009 #include <qvariant.h>
00010 #include <algorithm>
00011 #include <qwhatsthis.h>
00012 #include <qcheckbox.h>
00013 #include <qlineedit.h>
00014 #include <qerrormessage.h>
00015 #include <qpushbutton.h>
00016 #include <qlabel.h>
00017 #include <qlistbox.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021 #include "Util/StringConversions.H"
00022 #include "Qt/ModelManagerWizard.ui.h"
00023 
00024 /*
00025  *  Constructs a ModelManagerWizard as a child of 'parent', with the
00026  *  name 'name' and widget flags set to 'f'.
00027  *
00028  *  The dialog will by default be modeless, unless you set 'modal' to
00029  *  TRUE to construct a modal dialog.
00030  */
00031 ModelManagerWizard::ModelManagerWizard( QWidget* parent, const char* name, bool modal, WFlags fl )
00032     : QDialog( parent, name, modal, fl )
00033 {
00034     if ( !name )
00035         setName( "ModelManagerWizard" );
00036     setPaletteBackgroundColor( QColor( 234, 233, 232 ) );
00037 
00038     cancelButton = new QPushButton( this, "cancelButton" );
00039     cancelButton->setGeometry( QRect( 11, 498, 80, 25 ) );
00040 
00041     nextButton = new QPushButton( this, "nextButton" );
00042     nextButton->setGeometry( QRect( 600, 500, 80, 25 ) );
00043 
00044     backButton = new QPushButton( this, "backButton" );
00045     backButton->setGeometry( QRect( 500, 500, 80, 25 ) );
00046 
00047     finishButton = new QPushButton( this, "finishButton" );
00048     finishButton->setGeometry( QRect( 700, 500, 80, 25 ) );
00049 
00050     textLabel2 = new QLabel( this, "textLabel2" );
00051     textLabel2->setGeometry( QRect( 280, 460, 450, 20 ) );
00052     QFont textLabel2_font(  textLabel2->font() );
00053     textLabel2_font.setFamily( "Helvetica" );
00054     textLabel2->setFont( textLabel2_font );
00055 
00056     listbox = new QListBox( this, "listbox" );
00057     listbox->setGeometry( QRect( 11, 11, 240, 481 ) );
00058     languageChange();
00059     resize( QSize(791, 534).expandedTo(minimumSizeHint()) );
00060     clearWState( WState_Polished );
00061 
00062     // signals and slots connections
00063     connect( listbox, SIGNAL( currentChanged(QListBoxItem*) ), this, SLOT( showFrame(QListBoxItem*) ) );
00064     connect( cancelButton, SIGNAL( clicked() ), this, SLOT( handleCancelButton() ) );
00065     connect( backButton, SIGNAL( clicked() ), this, SLOT( handleBackButton() ) );
00066     connect( nextButton, SIGNAL( clicked() ), this, SLOT( handleNextButton() ) );
00067     connect( finishButton, SIGNAL( clicked() ), this, SLOT( handleFinishButton() ) );
00068 }
00069 
00070 /*
00071  *  Destroys the object and frees any allocated resources
00072  */
00073 ModelManagerWizard::~ModelManagerWizard()
00074 {
00075     // no need to delete child widgets, Qt does it all for us
00076 }
00077 
00078 /*
00079  *  Sets the strings of the subwidgets using the current
00080  *  language.
00081  */
00082 void ModelManagerWizard::languageChange()
00083 {
00084     setCaption( tr( "Model Manager Configuration Wizard" ) );
00085     cancelButton->setText( tr( "Cancel" ) );
00086     nextButton->setText( tr( "Next >" ) );
00087     backButton->setText( tr( "< Back" ) );
00088     finishButton->setText( tr( "Finish" ) );
00089     textLabel2->setText( tr( "For more information about an option, right click it and select <b>What's this?</b>" ) );
00090 }
00091 
Generated on Sun May 8 08:41:15 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3