00001
00002
00003
00004
00005
00006
00007
00008
00009 #include "SIGEL_MasterGUI/SIG_EditCommandDialog.h"
00010
00011 #include <qbuttongroup.h>
00012 #include <qlabel.h>
00013 #include <qlineedit.h>
00014 #include <qpushbutton.h>
00015 #include <qradiobutton.h>
00016 #include <qlayout.h>
00017 #include <qvariant.h>
00018 #include <qtooltip.h>
00019 #include <qwhatsthis.h>
00020 #include <qvalidator.h>
00021
00022 namespace SIGEL_MasterGUI
00023 {
00024
00025
00026
00027
00028
00029
00030
00031
00032 SIG_EditCommandDialog::SIG_EditCommandDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
00033 : QDialog( parent, name, modal, fl )
00034 {
00035 if ( !name )
00036 setName( "SIG_EditCommandDialog" );
00037 resize( 222, 201 );
00038 setCaption( tr( "Edit Command" ) );
00039 SIG_EditCommandDialogLayout = new QVBoxLayout( this );
00040 SIG_EditCommandDialogLayout->setSpacing( 6 );
00041 SIG_EditCommandDialogLayout->setMargin( 11 );
00042
00043 textlabelCommand = new QLabel( this, "textlabelCommand" );
00044 textlabelCommand->setText( tr( "Command:" ) );
00045 SIG_EditCommandDialogLayout->addWidget( textlabelCommand );
00046
00047 buttongroupAllowDisallow = new QButtonGroup( this, "buttongroupAllowDisallow" );
00048 buttongroupAllowDisallow->setTitle( tr( "Allow/Disallow" ) );
00049 buttongroupAllowDisallow->setColumnLayout(0, Qt::Vertical );
00050 buttongroupAllowDisallow->layout()->setSpacing( 0 );
00051 buttongroupAllowDisallow->layout()->setMargin( 0 );
00052 buttongroupAllowDisallowLayout = new QVBoxLayout( buttongroupAllowDisallow->layout() );
00053 buttongroupAllowDisallowLayout->setAlignment( Qt::AlignTop );
00054 buttongroupAllowDisallowLayout->setSpacing( 6 );
00055 buttongroupAllowDisallowLayout->setMargin( 11 );
00056
00057 radiobuttonAllow = new QRadioButton( buttongroupAllowDisallow, "radiobuttonAllow" );
00058 radiobuttonAllow->setText( tr( "Allow" ) );
00059 radiobuttonAllow->setChecked( TRUE );
00060 buttongroupAllowDisallowLayout->addWidget( radiobuttonAllow );
00061
00062 radiobuttonDisallow = new QRadioButton( buttongroupAllowDisallow, "radiobuttonDisallow" );
00063 radiobuttonDisallow->setText( tr( "Disallow" ) );
00064 buttongroupAllowDisallowLayout->addWidget( radiobuttonDisallow );
00065 SIG_EditCommandDialogLayout->addWidget( buttongroupAllowDisallow );
00066
00067 Layout2 = new QHBoxLayout;
00068 Layout2->setSpacing( 6 );
00069 Layout2->setMargin( 0 );
00070
00071 textlabelDuration = new QLabel( this, "textlabelDuration" );
00072 textlabelDuration->setText( tr( "Duration:" ) );
00073 Layout2->addWidget( textlabelDuration );
00074
00075 lineeditDuration = new QLineEdit( this, "lineeditDuration" );
00076 lineeditDuration->setValidator( new QDoubleValidator( this, "lineeditDurations DoubleValidator" ) );
00077 Layout2->addWidget( lineeditDuration );
00078 SIG_EditCommandDialogLayout->addLayout( Layout2 );
00079
00080 Layout1 = new QHBoxLayout;
00081 Layout1->setSpacing( 6 );
00082 Layout1->setMargin( 0 );
00083 QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00084 Layout1->addItem( spacer );
00085
00086 pushbuttonOK = new QPushButton( this, "pushbuttonOK" );
00087 pushbuttonOK->setText( tr( "&OK" ) );
00088 pushbuttonOK->setDefault( true );
00089 Layout1->addWidget( pushbuttonOK );
00090
00091 pushbuttonCancel = new QPushButton( this, "pushbuttonCancel" );
00092 pushbuttonCancel->setText( tr( "&Cancel" ) );
00093 Layout1->addWidget( pushbuttonCancel );
00094 SIG_EditCommandDialogLayout->addLayout( Layout1 );
00095
00096
00097 connect( pushbuttonOK, SIGNAL( clicked() ), this, SLOT( accept() ) );
00098 connect( pushbuttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
00099 };
00100
00101
00102
00103
00104 SIG_EditCommandDialog::~SIG_EditCommandDialog()
00105 {
00106
00107 };
00108
00109 }