00001
00002
00003
00004
00005
00006
00007
00008
00009 #include "SIGEL_MasterGUI/SIG_RenameDialog.h"
00010
00011 #include <qlabel.h>
00012 #include <qlineedit.h>
00013 #include <qpushbutton.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_RenameDialog::SIG_RenameDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
00030 : QDialog( parent, name, modal, fl )
00031 {
00032 if ( !name )
00033 setName( "SIG_RenameDialog" );
00034 resize( 226, 92 );
00035 setCaption( tr( "Rename" ) );
00036 SIG_RenameDialogLayout = new QVBoxLayout( this );
00037 SIG_RenameDialogLayout->setSpacing( 6 );
00038 SIG_RenameDialogLayout->setMargin( 11 );
00039
00040 Layout2 = new QHBoxLayout;
00041 Layout2->setSpacing( 6 );
00042 Layout2->setMargin( 0 );
00043
00044 textlabelNewName = new QLabel( this, "textlabelNewName" );
00045 textlabelNewName->setText( tr( "New name:" ) );
00046 Layout2->addWidget( textlabelNewName );
00047
00048 lineeditNewName = new QLineEdit( this, "lineeditNewName" );
00049 Layout2->addWidget( lineeditNewName );
00050 SIG_RenameDialogLayout->addLayout( Layout2 );
00051
00052 Layout3 = new QHBoxLayout;
00053 Layout3->setSpacing( 6 );
00054 Layout3->setMargin( 0 );
00055 QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00056 Layout3->addItem( spacer );
00057
00058 pushbuttonOK = new QPushButton( this, "pushbuttonOK" );
00059 pushbuttonOK->setText( tr( "&OK" ) );
00060 pushbuttonOK->setDefault( true );
00061 Layout3->addWidget( pushbuttonOK );
00062
00063 pushbuttonCancel = new QPushButton( this, "pushbuttonCancel" );
00064 pushbuttonCancel->setText( tr( "&Cancel" ) );
00065 Layout3->addWidget( pushbuttonCancel );
00066 SIG_RenameDialogLayout->addLayout( Layout3 );
00067
00068
00069 connect( pushbuttonOK, SIGNAL( clicked() ), this, SLOT( accept() ) );
00070 connect( pushbuttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
00071 }
00072
00073
00074
00075
00076 SIG_RenameDialog::~SIG_RenameDialog()
00077 {
00078
00079 }
00080
00081 }