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

sessionsdialogbase.cpp

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** Form implementation generated from reading ui file 'sessionsdialogbase.ui'
00003 **
00004 ** Created: Sat May 10 11:57:50 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 "sessionsdialogbase.h"
00011 
00012 #include <qvariant.h>
00013 #include <qpushbutton.h>
00014 #include <qtoolbutton.h>
00015 #include <qlistbox.h>
00016 #include <qlabel.h>
00017 #include <qcheckbox.h>
00018 #include <qlineedit.h>
00019 #include <qlayout.h>
00020 #include <qtooltip.h>
00021 #include <qwhatsthis.h>
00022 
00023 /* 
00024  *  Constructs a SessionsDialogBase as a child of 'parent', with the 
00025  *  name 'name' and widget flags set to 'f'.
00026  *
00027  *  The dialog will by default be modeless, unless you set 'modal' to
00028  *  TRUE to construct a modal dialog.
00029  */
00030 SessionsDialogBase::SessionsDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl )
00031     : QDialog( parent, name, modal, fl )
00032 {
00033     if ( !name )
00034   setName( "SessionsDialogBase" );
00035     setSizeGripEnabled( TRUE );
00036     SessionsDialogBaseLayout = new QGridLayout( this, 1, 1, 11, 6, "SessionsDialogBaseLayout"); 
00037 
00038     Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); 
00039 
00040     buttonHelp = new QPushButton( this, "buttonHelp" );
00041     buttonHelp->setAutoDefault( TRUE );
00042     Layout1->addWidget( buttonHelp );
00043     QSpacerItem* spacer = new QSpacerItem( 20, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
00044     Layout1->addItem( spacer );
00045 
00046     buttonOk = new QPushButton( this, "buttonOk" );
00047     buttonOk->setAutoDefault( TRUE );
00048     buttonOk->setDefault( TRUE );
00049     Layout1->addWidget( buttonOk );
00050 
00051     buttonCancel = new QPushButton( this, "buttonCancel" );
00052     buttonCancel->setAutoDefault( TRUE );
00053     Layout1->addWidget( buttonCancel );
00054 
00055     SessionsDialogBaseLayout->addMultiCellLayout( Layout1, 4, 4, 0, 2 );
00056     QSpacerItem* spacer_2 = new QSpacerItem( 144, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00057     SessionsDialogBaseLayout->addItem( spacer_2, 1, 1 );
00058 
00059     layout7 = new QGridLayout( 0, 1, 1, 0, 6, "layout7"); 
00060 
00061     layout6 = new QVBoxLayout( 0, 0, 6, "layout6"); 
00062 
00063     subs_button = new QToolButton( this, "subs_button" );
00064     layout6->addWidget( subs_button );
00065 
00066     add_button = new QToolButton( this, "add_button" );
00067     layout6->addWidget( add_button );
00068 
00069     del_button = new QToolButton( this, "del_button" );
00070     layout6->addWidget( del_button );
00071 
00072     up_button = new QToolButton( this, "up_button" );
00073     layout6->addWidget( up_button );
00074 
00075     down_button = new QToolButton( this, "down_button" );
00076     layout6->addWidget( down_button );
00077 
00078     layout7->addLayout( layout6, 1, 1 );
00079 
00080     sessions_box = new QListBox( this, "sessions_box" );
00081 
00082     layout7->addMultiCellWidget( sessions_box, 0, 1, 0, 0 );
00083     QSpacerItem* spacer_3 = new QSpacerItem( 16, 100, QSizePolicy::Minimum, QSizePolicy::Expanding );
00084     layout7->addItem( spacer_3, 0, 1 );
00085 
00086     SessionsDialogBaseLayout->addMultiCellLayout( layout7, 0, 3, 0, 0 );
00087     QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
00088     SessionsDialogBaseLayout->addItem( spacer_4, 3, 2 );
00089     QSpacerItem* spacer_5 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );
00090     SessionsDialogBaseLayout->addItem( spacer_5, 0, 2 );
00091 
00092     layout5 = new QGridLayout( 0, 1, 1, 0, 6, "layout5"); 
00093 
00094     TextLabel3 = new QLabel( this, "TextLabel3" );
00095 
00096     layout5->addWidget( TextLabel3, 2, 0 );
00097 
00098     auto_check = new QCheckBox( this, "auto_check" );
00099 
00100     layout5->addMultiCellWidget( auto_check, 5, 5, 0, 1 );
00101 
00102     login_edit = new QLineEdit( this, "login_edit" );
00103 
00104     layout5->addWidget( login_edit, 3, 1 );
00105 
00106     TextLabel2 = new QLabel( this, "TextLabel2" );
00107 
00108     layout5->addWidget( TextLabel2, 1, 0 );
00109 
00110     pass_edit = new QLineEdit( this, "pass_edit" );
00111     pass_edit->setEchoMode( QLineEdit::Password );
00112 
00113     layout5->addWidget( pass_edit, 4, 1 );
00114 
00115     textLabel2 = new QLabel( this, "textLabel2" );
00116 
00117     layout5->addWidget( textLabel2, 4, 0 );
00118 
00119     TextLabel1 = new QLabel( this, "TextLabel1" );
00120 
00121     layout5->addWidget( TextLabel1, 0, 0 );
00122 
00123     host_edit = new QLineEdit( this, "host_edit" );
00124 
00125     layout5->addWidget( host_edit, 1, 1 );
00126 
00127     TextLabel4 = new QLabel( this, "TextLabel4" );
00128 
00129     layout5->addWidget( TextLabel4, 3, 0 );
00130 
00131     name_edit = new QLineEdit( this, "name_edit" );
00132 
00133     layout5->addWidget( name_edit, 0, 1 );
00134 
00135     port_edit = new QLineEdit( this, "port_edit" );
00136 
00137     layout5->addWidget( port_edit, 2, 1 );
00138 
00139     SessionsDialogBaseLayout->addLayout( layout5, 1, 2 );
00140 
00141     textLabel1 = new QLabel( this, "textLabel1" );
00142 
00143     SessionsDialogBaseLayout->addWidget( textLabel1, 2, 2 );
00144     languageChange();
00145     resize( QSize(511, 282).expandedTo(minimumSizeHint()) );
00146     clearWState( WState_Polished );
00147 
00148     // signals and slots connections
00149     connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
00150     connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
00151     connect( del_button, SIGNAL( clicked() ), this, SLOT( slotDel() ) );
00152     connect( up_button, SIGNAL( clicked() ), this, SLOT( slotUp() ) );
00153     connect( down_button, SIGNAL( pressed() ), this, SLOT( slotDown() ) );
00154     connect( sessions_box, SIGNAL( highlighted(const QString&) ), this, SLOT( slotUpdateInfo(const QString&) ) );
00155     connect( add_button, SIGNAL( pressed() ), this, SLOT( slotAdd() ) );
00156     connect( subs_button, SIGNAL( pressed() ), this, SLOT( slotSubs() ) );
00157 
00158     // tab order
00159     setTabOrder( name_edit, host_edit );
00160     setTabOrder( host_edit, port_edit );
00161     setTabOrder( port_edit, login_edit );
00162     setTabOrder( login_edit, pass_edit );
00163     setTabOrder( pass_edit, auto_check );
00164     setTabOrder( auto_check, sessions_box );
00165     setTabOrder( sessions_box, buttonHelp );
00166     setTabOrder( buttonHelp, buttonOk );
00167     setTabOrder( buttonOk, buttonCancel );
00168 }
00169 
00170 /*
00171  *  Destroys the object and frees any allocated resources
00172  */
00173 SessionsDialogBase::~SessionsDialogBase()
00174 {
00175     // no need to delete child widgets, Qt does it all for us
00176 }
00177 
00178 /*
00179  *  Sets the strings of the subwidgets using the current
00180  *  language.
00181  */
00182 void SessionsDialogBase::languageChange()
00183 {
00184     setCaption( tr( "Sessions" ) );
00185     buttonHelp->setText( tr( "Help" ) );
00186     buttonHelp->setAccel( QKeySequence( tr( "F1" ) ) );
00187     buttonOk->setText( tr( "OK" ) );
00188     buttonOk->setAccel( QKeySequence( QString::null ) );
00189     buttonCancel->setText( tr( "Cancel" ) );
00190     buttonCancel->setAccel( QKeySequence( QString::null ) );
00191     subs_button->setText( tr( "Subs" ) );
00192     add_button->setText( tr( "Add" ) );
00193     del_button->setText( tr( "Del" ) );
00194     up_button->setText( tr( "Up" ) );
00195     down_button->setText( tr( "Down" ) );
00196     TextLabel3->setText( tr( "Port *" ) );
00197     auto_check->setText( tr( "Autoconnect" ) );
00198     TextLabel2->setText( tr( "Host *" ) );
00199     textLabel2->setText( tr( "Password" ) );
00200     TextLabel1->setText( tr( "Name *" ) );
00201     TextLabel4->setText( tr( "Login" ) );
00202     textLabel1->setText( tr( "* : required" ) );
00203 }
00204 
00205 void SessionsDialogBase::slotAdd()
00206 {
00207     qWarning( "SessionsDialogBase::slotAdd(): Not implemented yet" );
00208 }
00209 
00210 void SessionsDialogBase::slotDel()
00211 {
00212     qWarning( "SessionsDialogBase::slotDel(): Not implemented yet" );
00213 }
00214 
00215 void SessionsDialogBase::slotDown()
00216 {
00217     qWarning( "SessionsDialogBase::slotDown(): Not implemented yet" );
00218 }
00219 
00220 void SessionsDialogBase::slotUp()
00221 {
00222     qWarning( "SessionsDialogBase::slotUp(): Not implemented yet" );
00223 }
00224 
00225 void SessionsDialogBase::slotUpdateInfo(const QString&)
00226 {
00227     qWarning( "SessionsDialogBase::slotUpdateInfo(const QString&): Not implemented yet" );
00228 }
00229 
00230 void SessionsDialogBase::slotSubs()
00231 {
00232     qWarning( "SessionsDialogBase::slotSubs(): Not implemented yet" );
00233 }
00234 

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