Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

updateolder.cpp

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** Form implementation generated from reading ui file 'gui\updateolder.ui'
00003 **
00004 ** Created: qui 16. jun 01:45:04 2005
00005 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.2   edited Nov 24 13:47 $)
00006 **
00007 ** WARNING! All changes made in this file will be lost!
00008 ****************************************************************************/
00009 
00010 #include "updateolder.h"
00011 
00012 #include <qvariant.h>
00013 #include <qlabel.h>
00014 #include <qpushbutton.h>
00015 #include <qspinbox.h>
00016 #include <qlayout.h>
00017 #include <qtooltip.h>
00018 #include <qwhatsthis.h>
00019 #include <qimage.h>
00020 #include <qpixmap.h>
00021 
00022 #include "updateolder.ui.h"
00023 /*
00024  *  Constructs a updateOlder 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 updateOlder::updateOlder( QWidget* parent, const char* name, bool modal, WFlags fl )
00031     : QDialog( parent, name, modal, fl )
00032 {
00033     if ( !name )
00034         setName( "updateOlder" );
00035 
00036     textLabel4 = new QLabel( this, "textLabel4" );
00037     textLabel4->setGeometry( QRect( 20, 50, 181, 20 ) );
00038 
00039     textLabel2 = new QLabel( this, "textLabel2" );
00040     textLabel2->setGeometry( QRect( 20, 20, 200, 20 ) );
00041 
00042     upLabel = new QLabel( this, "upLabel" );
00043     upLabel->setGeometry( QRect( 220, 20, 30, 20 ) );
00044 
00045     upOk = new QPushButton( this, "upOk" );
00046     upOk->setGeometry( QRect( 40, 90, 82, 26 ) );
00047 
00048     uoCancel = new QPushButton( this, "uoCancel" );
00049     uoCancel->setGeometry( QRect( 170, 90, 82, 26 ) );
00050 
00051     uoSpin = new QSpinBox( this, "uoSpin" );
00052     uoSpin->setGeometry( QRect( 220, 50, 55, 20 ) );
00053     uoSpin->setMinValue( 1 );
00054     languageChange();
00055     resize( QSize(312, 129).expandedTo(minimumSizeHint()) );
00056     clearWState( WState_Polished );
00057 
00058     // signals and slots connections
00059     connect( upOk, SIGNAL( clicked() ), this, SLOT( upOk_clicked() ) );
00060     connect( uoCancel, SIGNAL( clicked() ), this, SLOT( uoCancel_clicked() ) );
00061 }
00062 
00063 /*
00064  *  Destroys the object and frees any allocated resources
00065  */
00066 updateOlder::~updateOlder()
00067 {
00068     // no need to delete child widgets, Qt does it all for us
00069 }
00070 
00071 /*
00072  *  Sets the strings of the subwidgets using the current
00073  *  language.
00074  */
00075 void updateOlder::languageChange()
00076 {
00077     setCaption( tr( "Update to an Older Version" ) );
00078     textLabel4->setText( tr( "Update to Revision :" ) );
00079     textLabel2->setText( tr( "The current <b>Revision Number</b> is :" ) );
00080     upLabel->setText( tr( "1000" ) );
00081     upOk->setText( tr( "Ok" ) );
00082     uoCancel->setText( tr( "Cancel" ) );
00083 }
00084 
Untitled Document Pesquisa Psi SourceForge.net Logo