1 /****************************************************************************
2 ** Form implementation generated from reading ui file 'dlg_ghs3dmain.ui'
4 ** Created: mer fév 14 13:34:54 2007
5 ** by: The User Interface Compiler ($Id$)
7 ** WARNING! All changes made in this file will be lost!
8 ****************************************************************************/
10 #include "dlg_ghs3dmain.h"
13 #include <qgroupbox.h>
16 #include <qradiobutton.h>
17 #include <qpushbutton.h>
20 #include <qwhatsthis.h>
24 #include "dlg_ghs3dmain.ui.h"
26 * Constructs a dlg_ghs3dmain as a child of 'parent', with the
27 * name 'name' and widget flags set to 'f'.
29 * The dialog will by default be modeless, unless you set 'modal' to
30 * TRUE to construct a modal dialog.
32 dlg_ghs3dmain::dlg_ghs3dmain( QWidget* parent, const char* name, bool modal, WFlags fl )
33 : QDialog( parent, name, modal, fl )
35 if ( !name ) setName( "tepal2med" );
36 setMinimumSize( QSize( 270, 150 ) );
37 setMaximumSize( QSize( 270, 150 ) );
38 setSizeGripEnabled( FALSE );
40 Parameters = new QGroupBox( this, "Parameters" );
41 Parameters->setGeometry( QRect( 10, 10, 250, 91 ) );
43 NbPart = new QSpinBox( Parameters, "NbPart" );
44 NbPart->setGeometry( QRect( 10, 20, 80, 31 ) );
45 NbPart->setMaxValue( 256 );
46 NbPart->setMinValue( 1 );
48 textNbPart = new QLabel( Parameters, "textNbPart" );
49 textNbPart->setGeometry( QRect( 100, 20, 141, 31 ) );
51 KeepFiles = new QRadioButton( Parameters, "KeepFiles" );
52 KeepFiles->setEnabled( TRUE );
53 KeepFiles->setGeometry( QRect( 40, 50, 190, 31 ) );
54 KeepFiles->setChecked( FALSE );
56 Ok = new QPushButton( this, "Ok" );
57 Ok->setGeometry( QRect( 180, 112, 80, 30 ) );
58 Ok->setAutoDefault( FALSE );
60 resize( QSize(270, 150).expandedTo(minimumSizeHint()) );
61 clearWState( WState_Polished );
63 // signals and slots connections
64 connect( Ok, SIGNAL( clicked() ), this, SLOT( slotok() ) );
65 //connect( Ok, SIGNAL( released() ), this, SLOT( close() ) );
70 * Destroys the object and frees any allocated resources
72 dlg_ghs3dmain::~dlg_ghs3dmain()
75 // no need to delete child widgets, Qt does it all for us
79 * Sets the strings of the subwidgets using the current
82 void dlg_ghs3dmain::languageChange()
84 //setCaption( tr( "GHS3DPRL" ) );
85 Parameters->setTitle( tr( "Parameters" ) );
86 textNbPart->setText( tr( "Nb of partitions" ) );
87 KeepFiles->setText( tr( " Keep files" ) );
88 KeepFiles->setAccel( QKeySequence( QString::null ) );
89 QToolTip::add( KeepFiles, QString::null );
90 QWhatsThis::add( KeepFiles, tr( "Keep outputs files of tepal" ) );
91 Ok->setText( tr( "Ok" ) );
92 Ok->setAccel( QKeySequence( QString::null ) );