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

connectionbox.cpp

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** Form implementation generated from reading ui file 'connectionbox.ui'
00003 **
00004 ** Created: Sat May 10 11:57:46 2003
00005 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.1.2   edited Dec 19 11:45 $)
00006 **
00007 ** WARNING! All changes made in this file will be lost!
00008 ****************************************************************************/
00009 
00010 #include "connectionbox.h"
00011 
00012 #include <qvariant.h>
00013 #include <qcombobox.h>
00014 #include <qpushbutton.h>
00015 #include <qlayout.h>
00016 #include <qtooltip.h>
00017 #include <qwhatsthis.h>
00018 
00019 /* 
00020  *  Constructs a ConnectionBox as a child of 'parent', with the 
00021  *  name 'name' and widget flags set to 'f'.
00022  *
00023  *  The dialog will by default be modeless, unless you set 'modal' to
00024  *  TRUE to construct a modal dialog.
00025  */
00026 ConnectionBox::ConnectionBox( QWidget* parent, const char* name, bool modal, WFlags fl )
00027     : QDialog( parent, name, modal, fl )
00028 {
00029     if ( !name )
00030   setName( "ConnectionBox" );
00031     setSizeGripEnabled( TRUE );
00032     ConnectionBoxLayout = new QGridLayout( this, 1, 1, 11, 6, "ConnectionBoxLayout"); 
00033 
00034     session_box = new QComboBox( FALSE, this, "session_box" );
00035 
00036     ConnectionBoxLayout->addWidget( session_box, 0, 0 );
00037 
00038     Layout3 = new QHBoxLayout( 0, 0, 6, "Layout3"); 
00039     QSpacerItem* spacer = new QSpacerItem( 42, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
00040     Layout3->addItem( spacer );
00041 
00042     buttonOk = new QPushButton( this, "buttonOk" );
00043     buttonOk->setAccel( QKeySequence( 0 ) );
00044     buttonOk->setAutoDefault( TRUE );
00045     buttonOk->setDefault( TRUE );
00046     Layout3->addWidget( buttonOk );
00047 
00048     buttonCancel = new QPushButton( this, "buttonCancel" );
00049     buttonCancel->setAccel( QKeySequence( 0 ) );
00050     buttonCancel->setAutoDefault( TRUE );
00051     Layout3->addWidget( buttonCancel );
00052     QSpacerItem* spacer_2 = new QSpacerItem( 44, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
00053     Layout3->addItem( spacer_2 );
00054 
00055     ConnectionBoxLayout->addLayout( Layout3, 1, 0 );
00056     languageChange();
00057     resize( QSize(149, 105).expandedTo(minimumSizeHint()) );
00058     clearWState( WState_Polished );
00059 
00060     // signals and slots connections
00061     connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
00062     connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
00063 }
00064 
00065 /*
00066  *  Destroys the object and frees any allocated resources
00067  */
00068 ConnectionBox::~ConnectionBox()
00069 {
00070     // no need to delete child widgets, Qt does it all for us
00071 }
00072 
00073 /*
00074  *  Sets the strings of the subwidgets using the current
00075  *  language.
00076  */
00077 void ConnectionBox::languageChange()
00078 {
00079     setCaption( tr( "Connection" ) );
00080     buttonOk->setText( tr( "OK" ) );
00081     buttonCancel->setText( tr( "Cancel" ) );
00082 }
00083 

Generated on Sat May 10 15:09:26 2003 for qnet by doxygen1.3