Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

SIG_RenameDialog.cpp

00001 /****************************************************************************
00002 ** Form implementation generated from reading ui file 'SIG_RenameDialog.ui'
00003 **
00004 ** Created: Thu May 17 16:24:14 2001
00005 **      by:  The User Interface Compiler (uic)
00006 **
00007 ** WARNING! All changes made in this file will be lost!
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  *  Constructs a SIG_RenameDialog which is a child of 'parent', with the 
00024  *  name 'name' and widget flags set to 'f' 
00025  *
00026  *  The dialog will by default be modeless, unless you set 'modal' to
00027  *  TRUE to construct a modal dialog.
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     // signals and slots connections
00069     connect( pushbuttonOK, SIGNAL( clicked() ), this, SLOT( accept() ) );
00070     connect( pushbuttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
00071 }
00072 
00073 /*  
00074  *  Destroys the object and frees any allocated resources
00075  */
00076 SIG_RenameDialog::~SIG_RenameDialog()
00077 {
00078     // no need to delete child widgets, Qt does it all for us
00079 }
00080 
00081 }

Generated at Mon Sep 3 01:32:29 2001 for PG 368 - SIGEL by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000