00001
00002
00003
00004
00005
00006
00007
00008
00009 #include "SIGEL_MasterGUI/SIG_AddIndividualsDialog.h"
00010
00011 #include <qlabel.h>
00012 #include <qpushbutton.h>
00013 #include <qspinbox.h>
00014 #include <qlayout.h>
00015 #include <qvariant.h>
00016 #include <qtooltip.h>
00017 #include <qwhatsthis.h>
00018
00019 namespace SIGEL_MasterGUI
00020 {
00021
00022
00023
00024
00025
00026
00027
00028
00029 SIG_AddIndividualsDialog::SIG_AddIndividualsDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
00030 : QDialog( parent, name, modal, fl )
00031 {
00032 if ( !name )
00033 setName( "SIG_AddIndividualsDialogBase" );
00034 resize( 222, 92 );
00035 setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)1, sizePolicy().hasHeightForWidth() ) );
00036 setCaption( tr( "Add individuals..." ) );
00037 SIG_AddIndividualsDialogBaseLayout = new QVBoxLayout( this );
00038 SIG_AddIndividualsDialogBaseLayout->setSpacing( 6 );
00039 SIG_AddIndividualsDialogBaseLayout->setMargin( 11 );
00040
00041 Layout4 = new QHBoxLayout;
00042 Layout4->setSpacing( 6 );
00043 Layout4->setMargin( 0 );
00044
00045 textlabelNumber = new QLabel( this, "textlabelNumber" );
00046 textlabelNumber->setText( tr( "Number to add:" ) );
00047 Layout4->addWidget( textlabelNumber );
00048
00049 spinboxNumber = new QSpinBox( this, "spinboxNumber" );
00050 spinboxNumber->setMaxValue( 999 );
00051 spinboxNumber->setMinValue( 1 );
00052 spinboxNumber->setValue( 1 );
00053 Layout4->addWidget( spinboxNumber );
00054 SIG_AddIndividualsDialogBaseLayout->addLayout( Layout4 );
00055
00056 Layout1 = new QHBoxLayout;
00057 Layout1->setSpacing( 6 );
00058 Layout1->setMargin( 0 );
00059 QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00060 Layout1->addItem( spacer );
00061
00062 pushbuttonOK = new QPushButton( this, "pushbuttonOK" );
00063 pushbuttonOK->setText( tr( "&OK" ) );
00064 pushbuttonOK->setDefault( TRUE );
00065 Layout1->addWidget( pushbuttonOK );
00066
00067 pushbuttonCancel = new QPushButton( this, "pushbuttonCancel" );
00068 pushbuttonCancel->setText( tr( "&Cancel" ) );
00069 Layout1->addWidget( pushbuttonCancel );
00070 SIG_AddIndividualsDialogBaseLayout->addLayout( Layout1 );
00071
00072
00073 connect( pushbuttonOK, SIGNAL( clicked() ), this, SLOT( accept() ) );
00074 connect( pushbuttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
00075 };
00076
00077
00078
00079
00080 SIG_AddIndividualsDialog::~SIG_AddIndividualsDialog()
00081 {
00082
00083 };
00084
00085 }