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

idform.cpp

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** Form implementation generated from reading ui file 'idform.ui'
00003 **
00004 ** Created: Sat May 10 12:00:34 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 "idform.h"
00011 
00012 #include <qvariant.h>
00013 #include <qframe.h>
00014 #include <qlabel.h>
00015 #include <qtextbrowser.h>
00016 #include <qlayout.h>
00017 #include <qtooltip.h>
00018 #include <qwhatsthis.h>
00019 #include "idform.ui.h"
00020 
00021 /* 
00022  *  Constructs a IdForm as a child of 'parent', with the 
00023  *  name 'name' and widget flags set to 'f'.
00024  */
00025 IdForm::IdForm( QWidget* parent, const char* name, WFlags fl )
00026     : QWidget( parent, name, fl )
00027 {
00028     if ( !name )
00029   setName( "IdForm" );
00030     IdFormLayout = new QGridLayout( this, 1, 1, 11, 6, "IdFormLayout"); 
00031 
00032     picture_frame = new QFrame( this, "picture_frame" );
00033     picture_frame->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, picture_frame->sizePolicy().hasHeightForWidth() ) );
00034     picture_frame->setMinimumSize( QSize( 48, 48 ) );
00035     picture_frame->setFrameShape( QFrame::StyledPanel );
00036     picture_frame->setFrameShadow( QFrame::Raised );
00037 
00038     IdFormLayout->addWidget( picture_frame, 0, 3 );
00039 
00040     login_label = new QLabel( this, "login_label" );
00041 
00042     IdFormLayout->addMultiCellWidget( login_label, 0, 0, 0, 1 );
00043 
00044     group_label = new QLabel( this, "group_label" );
00045 
00046     IdFormLayout->addWidget( group_label, 0, 2 );
00047 
00048     plan_edit = new QTextBrowser( this, "plan_edit" );
00049     plan_edit->setMinimumSize( QSize( 220, 0 ) );
00050 
00051     IdFormLayout->addMultiCellWidget( plan_edit, 2, 4, 2, 3 );
00052 
00053     textLabel5 = new QLabel( this, "textLabel5" );
00054 
00055     IdFormLayout->addWidget( textLabel5, 3, 0 );
00056 
00057     textLabel6 = new QLabel( this, "textLabel6" );
00058 
00059     IdFormLayout->addWidget( textLabel6, 1, 0 );
00060 
00061     textLabel2 = new QLabel( this, "textLabel2" );
00062 
00063     IdFormLayout->addWidget( textLabel2, 2, 0 );
00064 
00065     textLabel7 = new QLabel( this, "textLabel7" );
00066 
00067     IdFormLayout->addWidget( textLabel7, 4, 0 );
00068 
00069     name_edit = new QLabel( this, "name_edit" );
00070 
00071     IdFormLayout->addWidget( name_edit, 2, 1 );
00072 
00073     email_edit = new QLabel( this, "email_edit" );
00074 
00075     IdFormLayout->addWidget( email_edit, 3, 1 );
00076 
00077     birthday_edit = new QLabel( this, "birthday_edit" );
00078 
00079     IdFormLayout->addWidget( birthday_edit, 4, 1 );
00080 
00081     formation_edit = new QLabel( this, "formation_edit" );
00082 
00083     IdFormLayout->addMultiCellWidget( formation_edit, 1, 1, 1, 3 );
00084     languageChange();
00085     resize( QSize(434, 256).expandedTo(minimumSizeHint()) );
00086     clearWState( WState_Polished );
00087     init();
00088 }
00089 
00090 /*
00091  *  Destroys the object and frees any allocated resources
00092  */
00093 IdForm::~IdForm()
00094 {
00095     // no need to delete child widgets, Qt does it all for us
00096 }
00097 
00098 /*
00099  *  Sets the strings of the subwidgets using the current
00100  *  language.
00101  */
00102 void IdForm::languageChange()
00103 {
00104     setCaption( tr( "Form1" ) );
00105     login_label->setText( tr( "<h2>Login</h2>" ) );
00106     group_label->setText( tr( "<h2>Group</h2>" ) );
00107     textLabel5->setText( tr( "Email:" ) );
00108     textLabel6->setText( tr( "Formation:" ) );
00109     textLabel2->setText( tr( "Name:" ) );
00110     textLabel7->setText( tr( "Birthday:" ) );
00111     name_edit->setText( tr( "textLabel2" ) );
00112     email_edit->setText( tr( "textLabel3" ) );
00113     birthday_edit->setText( tr( "textLabel4" ) );
00114     formation_edit->setText( tr( "textLabel1" ) );
00115 }
00116 

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