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

aboutbox.cpp

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** Form implementation generated from reading ui file 'gui\aboutbox.ui'
00003 **
00004 ** Created: qui 16. jun 01:45:03 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 "aboutbox.h"
00011 
00012 #include <qvariant.h>
00013 #include <qlabel.h>
00014 #include <qpushbutton.h>
00015 #include <qtabwidget.h>
00016 #include <qwidget.h>
00017 #include <qtextbrowser.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021 #include <qimage.h>
00022 #include <qpixmap.h>
00023 
00024 #include "aboutbox.ui.h"
00025 /*
00026  *  Constructs a AboutBox as a child of 'parent', with the
00027  *  name 'name' and widget flags set to 'f'.
00028  *
00029  *  The dialog will by default be modeless, unless you set 'modal' to
00030  *  TRUE to construct a modal dialog.
00031  */
00032 AboutBox::AboutBox( QWidget* parent, const char* name, bool modal, WFlags fl )
00033     : QDialog( parent, name, modal, fl )
00034 {
00035     if ( !name )
00036         setName( "AboutBox" );
00037     setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, sizePolicy().hasHeightForWidth() ) );
00038     setMinimumSize( QSize( 370, 350 ) );
00039     setMaximumSize( QSize( 370, 350 ) );
00040     setSizeGripEnabled( FALSE );
00041     setModal( TRUE );
00042 
00043     textLabel5 = new QLabel( this, "textLabel5" );
00044     textLabel5->setGeometry( QRect( 6, 258, 340, 20 ) );
00045 
00046     pushButton7 = new QPushButton( this, "pushButton7" );
00047     pushButton7->setGeometry( QRect( 145, 317, 82, 26 ) );
00048 
00049     tabWidget3 = new QTabWidget( this, "tabWidget3" );
00050     tabWidget3->setGeometry( QRect( 0, 0, 360, 310 ) );
00051 
00052     tab = new QWidget( tabWidget3, "tab" );
00053 
00054     textLabel3 = new QLabel( tab, "textLabel3" );
00055     textLabel3->setGeometry( QRect( 10, 170, 320, 65 ) );
00056     textLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, textLabel3->sizePolicy().hasHeightForWidth() ) );
00057     textLabel3->setMinimumSize( QSize( 320, 0 ) );
00058 
00059     textLabel4 = new QLabel( tab, "textLabel4" );
00060     textLabel4->setGeometry( QRect( 140, 60, 86, 87 ) );
00061     textLabel4->setPixmap( QPixmap::fromMimeSource( "logo.jpg" ) );
00062 
00063     textLabel1 = new QLabel( tab, "textLabel1" );
00064     textLabel1->setGeometry( QRect( 110, 20, 150, 30 ) );
00065     textLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) );
00066     textLabel1->setMinimumSize( QSize( 150, 30 ) );
00067     tabWidget3->insertTab( tab, QString("") );
00068 
00069     tab_2 = new QWidget( tabWidget3, "tab_2" );
00070 
00071     textLabel2 = new QLabel( tab_2, "textLabel2" );
00072     textLabel2->setGeometry( QRect( 10, 30, 130, 80 ) );
00073     tabWidget3->insertTab( tab_2, QString("") );
00074 
00075     TabPage = new QWidget( tabWidget3, "TabPage" );
00076 
00077     licenceBrowser = new QTextBrowser( TabPage, "licenceBrowser" );
00078     licenceBrowser->setGeometry( QRect( 1, 1, 351, 281 ) );
00079     tabWidget3->insertTab( TabPage, QString("") );
00080     languageChange();
00081     resize( QSize(370, 350).expandedTo(minimumSizeHint()) );
00082     clearWState( WState_Polished );
00083 
00084     // signals and slots connections
00085     connect( pushButton7, SIGNAL( clicked() ), this, SLOT( pushButton7_clicked() ) );
00086 }
00087 
00088 /*
00089  *  Destroys the object and frees any allocated resources
00090  */
00091 AboutBox::~AboutBox()
00092 {
00093     // no need to delete child widgets, Qt does it all for us
00094 }
00095 
00096 /*
00097  *  Sets the strings of the subwidgets using the current
00098  *  language.
00099  */
00100 void AboutBox::languageChange()
00101 {
00102     setCaption( tr( "About..." ) );
00103     textLabel5->setText( tr( "<p align=\"center\">Released under Common Public Licence 1.0</p>" ) );
00104     pushButton7->setText( tr( "OK" ) );
00105     textLabel3->setText( trUtf8( "\x3c\x70\x20\x61\x6c\x69\x67\x6e\x3d\x22\x63\x65\x6e\x74\x65\x72\x22\x3e\x3c\x62\x3e\x49\x6e\x74\x65\x72\x20\x50\x73\x69\x3c\x2f\x62\x3e\x20\x28\x42\x72\x61\x7a\x69\x6c\x29\x3c\x70\x3e\xd\xa\x47\x72\x75\x70\x6f\x20\x64\x65\x20\x45\x73\x74\x75\x64\x6f\x73\x20\x64\x65\x20\x53\x65\x6d\x69\xc3\xb3\x74\x69\x63\x61\x2c\x20\x49\x6e\x74\x65\x72\x63\x6f\x6e\x65\x63\x74\x69\x76\x69\x64\x61\x64\x65\x20\x65\x20\x43\x6f\x6e\x73\x63\x69\xc3\xaa\x6e\x63\x69\x61\x20\x3c\x2f\x70\x3e" ) );
00106     textLabel4->setText( QString::null );
00107     textLabel1->setText( tr( "<b>Modular Psi</b> is developed by :" ) );
00108     tabWidget3->changeTab( tab, tr( "About" ) );
00109     textLabel2->setText( tr( "<p><b>Leonardo Stern</b><br>\n"
00110 "Main Developer</p>\n"
00111 "\n"
00112 "<p><b>Wellington Zangari</b><br>\n"
00113 "Main Tester</p>" ) );
00114     tabWidget3->changeTab( tab_2, tr( "Authors" ) );
00115     licenceBrowser->setSource( QString::null );
00116     tabWidget3->changeTab( TabPage, tr( "License Agreement" ) );
00117 }
00118 
Untitled Document Pesquisa Psi SourceForge.net Logo