BiasSettingsDialog.cpp

00001 /****************************************************************************
00002 ** Form implementation generated from reading ui file 'Qt/BiasSettingsDialog.ui'
00003 **
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 ****************************************************************************/
00007 
00008 #include "Qt/ui/BiasSettingsDialog.h"
00009 
00010 #include <qvariant.h>
00011 #include <qtabwidget.h>
00012 #include <qwidget.h>
00013 #include <qspinbox.h>
00014 #include <qlabel.h>
00015 #include <qcheckbox.h>
00016 #include <qpushbutton.h>
00017 #include <qlayout.h>
00018 #include <qtooltip.h>
00019 #include <qwhatsthis.h>
00020 #include "Qt/ImageCanvas.h"
00021 #include "Qt/BiasSettingsDialog.ui.h"
00022 
00023 /*
00024  *  Constructs a BiasSettingsDialog as a child of 'parent', with the
00025  *  name 'name' and widget flags set to 'f'.
00026  *
00027  *  The dialog will by default be modeless, unless you set 'modal' to
00028  *  TRUE to construct a modal dialog.
00029  */
00030 BiasSettingsDialog::BiasSettingsDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
00031     : QDialog( parent, name, modal, fl )
00032 {
00033     if ( !name )
00034         setName( "BiasSettingsDialog" );
00035     setSizeGripEnabled( TRUE );
00036     setModal( FALSE );
00037     BiasSettingsDialogLayout = new QVBoxLayout( this, 11, 6, "BiasSettingsDialogLayout");
00038 
00039     tabDisp = new QTabWidget( this, "tabDisp" );
00040 
00041     tab = new QWidget( tabDisp, "tab" );
00042 
00043     spinBox43 = new QSpinBox( tab, "spinBox43" );
00044     spinBox43->setEnabled( FALSE );
00045     spinBox43->setGeometry( QRect( 117, 87, 42, 24 ) );
00046 
00047     textLabel10 = new QLabel( tab, "textLabel10" );
00048     textLabel10->setEnabled( FALSE );
00049     textLabel10->setGeometry( QRect( 117, 127, 87, 22 ) );
00050 
00051     imageCanvas50 = new ImageCanvas( tab, "imageCanvas50" );
00052     imageCanvas50->setEnabled( FALSE );
00053     imageCanvas50->setGeometry( QRect( 107, 157, 91, 31 ) );
00054     tabDisp->insertTab( tab, QString::fromLatin1("") );
00055     BiasSettingsDialogLayout->addWidget( tabDisp );
00056 
00057     layout4 = new QHBoxLayout( 0, 0, 6, "layout4");
00058     spacer2 = new QSpacerItem( 110, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00059     layout4->addItem( spacer2 );
00060 
00061     chkBoxShowRaw = new QCheckBox( this, "chkBoxShowRaw" );
00062     layout4->addWidget( chkBoxShowRaw );
00063 
00064     chkBoxResizeToSLevel = new QCheckBox( this, "chkBoxResizeToSLevel" );
00065     layout4->addWidget( chkBoxResizeToSLevel );
00066 
00067     updateValButton = new QPushButton( this, "updateValButton" );
00068     layout4->addWidget( updateValButton );
00069 
00070     buttonOk = new QPushButton( this, "buttonOk" );
00071     buttonOk->setAutoDefault( TRUE );
00072     buttonOk->setDefault( TRUE );
00073     layout4->addWidget( buttonOk );
00074 
00075     buttonCancel = new QPushButton( this, "buttonCancel" );
00076     buttonCancel->setAutoDefault( TRUE );
00077     layout4->addWidget( buttonCancel );
00078     BiasSettingsDialogLayout->addLayout( layout4 );
00079     languageChange();
00080     resize( QSize(729, 621).expandedTo(minimumSizeHint()) );
00081     clearWState( WState_Polished );
00082 
00083     // signals and slots connections
00084     connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
00085     connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
00086     connect( updateValButton, SIGNAL( clicked() ), this, SLOT( update() ) );
00087 }
00088 
00089 /*
00090  *  Destroys the object and frees any allocated resources
00091  */
00092 BiasSettingsDialog::~BiasSettingsDialog()
00093 {
00094     // no need to delete child widgets, Qt does it all for us
00095 }
00096 
00097 /*
00098  *  Sets the strings of the subwidgets using the current
00099  *  language.
00100  */
00101 void BiasSettingsDialog::languageChange()
00102 {
00103     setCaption( tr( "Bias Settings" ) );
00104     textLabel10->setText( tr( "textLabel10" ) );
00105     tabDisp->changeTab( tab, tr( "Tab 2" ) );
00106     chkBoxShowRaw->setText( tr( "Show RawCSMap" ) );
00107     chkBoxResizeToSLevel->setText( tr( "Resize to SLevel" ) );
00108     updateValButton->setText( tr( "Update" ) );
00109     buttonOk->setText( tr( "&OK" ) );
00110     buttonOk->setAccel( QKeySequence( QString::null ) );
00111     buttonCancel->setText( tr( "&Cancel" ) );
00112     buttonCancel->setAccel( QKeySequence( QString::null ) );
00113 }
00114 
Generated on Sun May 8 08:05:33 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3