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

principal.cpp

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** Form implementation generated from reading ui file 'gui\principal.ui'
00003 **
00004 ** Created: qui 16. jun 01:44:59 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 "principal.h"
00011 
00012 #include <qvariant.h>
00013 #include <qpushbutton.h>
00014 #include <qframe.h>
00015 #include <qlabel.h>
00016 #include <qwidgetstack.h>
00017 #include <qwidget.h>
00018 #include <qlineedit.h>
00019 #include <qcombobox.h>
00020 #include <qtextedit.h>
00021 #include <qlistbox.h>
00022 #include <qtabwidget.h>
00023 #include <qtextbrowser.h>
00024 #include <qlayout.h>
00025 #include <qtooltip.h>
00026 #include <qwhatsthis.h>
00027 #include <qaction.h>
00028 #include <qmenubar.h>
00029 #include <qpopupmenu.h>
00030 #include <qtoolbar.h>
00031 #include <qimage.h>
00032 #include <qpixmap.h>
00033 
00034 #include "principal.ui.h"
00035 /*
00036  *  Constructs a Principal as a child of 'parent', with the
00037  *  name 'name' and widget flags set to 'f'.
00038  *
00039  */
00040 Principal::Principal( QWidget* parent, const char* name, WFlags fl )
00041     : QMainWindow( parent, name, fl )
00042 {
00043     (void)statusBar();
00044     if ( !name )
00045         setName( "principal" );
00046     setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) );
00047     setMinimumSize( QSize( 364, 355 ) );
00048     setIcon( QPixmap::fromMimeSource( "showchild_mode.gif" ) );
00049     setCentralWidget( new QWidget( this, "qt_central_widget" ) );
00050     principalLayout = new QGridLayout( centralWidget(), 1, 1, 2, 2, "principalLayout"); 
00051 
00052     frameConfianca = new QFrame( centralWidget(), "frameConfianca" );
00053     frameConfianca->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, frameConfianca->sizePolicy().hasHeightForWidth() ) );
00054     frameConfianca->setMinimumSize( QSize( 258, 170 ) );
00055     frameConfianca->setFrameShape( QFrame::GroupBoxPanel );
00056     frameConfianca->setFrameShadow( QFrame::Raised );
00057 
00058     deleteButton = new QPushButton( frameConfianca, "deleteButton" );
00059     deleteButton->setEnabled( FALSE );
00060     deleteButton->setGeometry( QRect( 160, 8, 70, 24 ) );
00061     deleteButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, deleteButton->sizePolicy().hasHeightForWidth() ) );
00062 
00063     searchButton = new QPushButton( frameConfianca, "searchButton" );
00064     searchButton->setEnabled( FALSE );
00065     searchButton->setGeometry( QRect( 87, 8, 70, 24 ) );
00066     searchButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, searchButton->sizePolicy().hasHeightForWidth() ) );
00067 
00068     changeMessage = new QLabel( frameConfianca, "changeMessage" );
00069     changeMessage->setGeometry( QRect( 5, 60, 49, 20 ) );
00070 
00071     statusMessage = new QLabel( frameConfianca, "statusMessage" );
00072     statusMessage->setGeometry( QRect( 5, 90, 49, 20 ) );
00073     statusMessage->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, statusMessage->sizePolicy().hasHeightForWidth() ) );
00074 
00075     changeButton = new QPushButton( frameConfianca, "changeButton" );
00076     changeButton->setEnabled( FALSE );
00077     changeButton->setGeometry( QRect( 11, 8, 70, 24 ) );
00078     changeButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, changeButton->sizePolicy().hasHeightForWidth() ) );
00079 
00080     QWidget* privateLayoutWidget = new QWidget( frameConfianca, "layout16" );
00081     privateLayoutWidget->setGeometry( QRect( 40, 40, 172, 120 ) );
00082     layout16 = new QHBoxLayout( privateLayoutWidget, 2, 2, "layout16"); 
00083 
00084     pixmapLabel1 = new QLabel( privateLayoutWidget, "pixmapLabel1" );
00085     pixmapLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)7, 0, 0, pixmapLabel1->sizePolicy().hasHeightForWidth() ) );
00086     pixmapLabel1->setPixmap( QPixmap::fromMimeSource( "cores.JPG" ) );
00087     pixmapLabel1->setScaledContents( TRUE );
00088     layout16->addWidget( pixmapLabel1 );
00089 
00090     layout15 = new QVBoxLayout( 0, 0, 2, "layout15"); 
00091 
00092     textLabel1_2 = new QLabel( privateLayoutWidget, "textLabel1_2" );
00093     textLabel1_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)7, 0, 0, textLabel1_2->sizePolicy().hasHeightForWidth() ) );
00094     layout15->addWidget( textLabel1_2 );
00095 
00096     textLabel1_2_2 = new QLabel( privateLayoutWidget, "textLabel1_2_2" );
00097     textLabel1_2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)7, 0, 0, textLabel1_2_2->sizePolicy().hasHeightForWidth() ) );
00098     layout15->addWidget( textLabel1_2_2 );
00099 
00100     textLabel1_2_2_2 = new QLabel( privateLayoutWidget, "textLabel1_2_2_2" );
00101     textLabel1_2_2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)7, 0, 0, textLabel1_2_2_2->sizePolicy().hasHeightForWidth() ) );
00102     layout15->addWidget( textLabel1_2_2_2 );
00103 
00104     textLabel1_2_2_3 = new QLabel( privateLayoutWidget, "textLabel1_2_2_3" );
00105     textLabel1_2_2_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)7, 0, 0, textLabel1_2_2_3->sizePolicy().hasHeightForWidth() ) );
00106     layout15->addWidget( textLabel1_2_2_3 );
00107 
00108     textLabel1_2_2_4 = new QLabel( privateLayoutWidget, "textLabel1_2_2_4" );
00109     textLabel1_2_2_4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)7, 0, 0, textLabel1_2_2_4->sizePolicy().hasHeightForWidth() ) );
00110     layout15->addWidget( textLabel1_2_2_4 );
00111 
00112     textLabel1_2_2_5 = new QLabel( privateLayoutWidget, "textLabel1_2_2_5" );
00113     textLabel1_2_2_5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)7, 0, 0, textLabel1_2_2_5->sizePolicy().hasHeightForWidth() ) );
00114     layout15->addWidget( textLabel1_2_2_5 );
00115     layout16->addLayout( layout15 );
00116 
00117     principalLayout->addWidget( frameConfianca, 1, 1 );
00118 
00119     infoStack = new QWidgetStack( centralWidget(), "infoStack" );
00120     infoStack->setFrameShape( QWidgetStack::NoFrame );
00121 
00122     PropositionPage = new QWidget( infoStack, "PropositionPage" );
00123     PropositionPageLayout = new QGridLayout( PropositionPage, 1, 1, 2, 2, "PropositionPageLayout"); 
00124 
00125     cheatFrame = new QFrame( PropositionPage, "cheatFrame" );
00126     cheatFrame->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)7, 0, 0, cheatFrame->sizePolicy().hasHeightForWidth() ) );
00127     cheatFrame->setMinimumSize( QSize( 258, 100 ) );
00128     cheatFrame->setFrameShape( QFrame::GroupBoxPanel );
00129     cheatFrame->setFrameShadow( QFrame::Raised );
00130 
00131     frameInfo = new QFrame( cheatFrame, "frameInfo" );
00132     frameInfo->setGeometry( QRect( 2, 1, 235, 566 ) );
00133     frameInfo->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, frameInfo->sizePolicy().hasHeightForWidth() ) );
00134     frameInfo->setMinimumSize( QSize( 235, 510 ) );
00135     frameInfo->setFrameShape( QFrame::NoFrame );
00136     frameInfo->setFrameShadow( QFrame::Raised );
00137     frameInfoLayout = new QGridLayout( frameInfo, 1, 1, 2, 2, "frameInfoLayout"); 
00138 
00139     layout1 = new QHBoxLayout( 0, 0, 2, "layout1"); 
00140 
00141     nameLabel = new QLabel( frameInfo, "nameLabel" );
00142     nameLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, nameLabel->sizePolicy().hasHeightForWidth() ) );
00143     layout1->addWidget( nameLabel );
00144 
00145     nameEdit = new QLineEdit( frameInfo, "nameEdit" );
00146     layout1->addWidget( nameEdit );
00147 
00148     frameInfoLayout->addMultiCellLayout( layout1, 1, 1, 0, 1 );
00149 
00150     layout2 = new QHBoxLayout( 0, 0, 2, "layout2"); 
00151 
00152     categoryLabel = new QLabel( frameInfo, "categoryLabel" );
00153     categoryLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, categoryLabel->sizePolicy().hasHeightForWidth() ) );
00154     layout2->addWidget( categoryLabel );
00155 
00156     categorycombo = new QComboBox( FALSE, frameInfo, "categorycombo" );
00157     layout2->addWidget( categorycombo );
00158 
00159     frameInfoLayout->addMultiCellLayout( layout2, 2, 2, 0, 1 );
00160 
00161     layout5 = new QHBoxLayout( 0, 0, 2, "layout5"); 
00162 
00163     DescriptionEdit = new QTextEdit( frameInfo, "DescriptionEdit" );
00164     DescriptionEdit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, DescriptionEdit->sizePolicy().hasHeightForWidth() ) );
00165     DescriptionEdit->setWordWrap( QTextEdit::WidgetWidth );
00166     layout5->addWidget( DescriptionEdit );
00167 
00168     frameInfoLayout->addMultiCellLayout( layout5, 4, 4, 0, 1 );
00169 
00170     layout6 = new QHBoxLayout( 0, 0, 2, "layout6"); 
00171 
00172     trustCombo = new QComboBox( FALSE, frameInfo, "trustCombo" );
00173     trustCombo->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, trustCombo->sizePolicy().hasHeightForWidth() ) );
00174     trustCombo->setInsertionPolicy( QComboBox::NoInsertion );
00175     layout6->addWidget( trustCombo );
00176 
00177     frameInfoLayout->addMultiCellLayout( layout6, 5, 5, 0, 1 );
00178 
00179     modelAdd = new QPushButton( frameInfo, "modelAdd" );
00180     modelAdd->setEnabled( FALSE );
00181 
00182     frameInfoLayout->addWidget( modelAdd, 8, 0 );
00183 
00184     refLabel = new QLabel( frameInfo, "refLabel" );
00185 
00186     frameInfoLayout->addMultiCellWidget( refLabel, 9, 9, 0, 1 );
00187 
00188     keywordsEdit = new QTextEdit( frameInfo, "keywordsEdit" );
00189     keywordsEdit->setWordWrap( QTextEdit::WidgetWidth );
00190 
00191     frameInfoLayout->addMultiCellWidget( keywordsEdit, 12, 12, 0, 1 );
00192 
00193     keywordsLabel = new QLabel( frameInfo, "keywordsLabel" );
00194     keywordsLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, keywordsLabel->sizePolicy().hasHeightForWidth() ) );
00195     keywordsLabel->setAlignment( int( QLabel::AlignCenter ) );
00196 
00197     frameInfoLayout->addMultiCellWidget( keywordsLabel, 11, 11, 0, 1 );
00198 
00199     referencesEdit = new QTextEdit( frameInfo, "referencesEdit" );
00200     referencesEdit->setWordWrap( QTextEdit::WidgetWidth );
00201 
00202     frameInfoLayout->addMultiCellWidget( referencesEdit, 10, 10, 0, 1 );
00203 
00204     textLabel3 = new QLabel( frameInfo, "textLabel3" );
00205     textLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, textLabel3->sizePolicy().hasHeightForWidth() ) );
00206     textLabel3->setAlignment( int( QLabel::AlignCenter ) );
00207 
00208     frameInfoLayout->addMultiCellWidget( textLabel3, 3, 3, 0, 1 );
00209 
00210     infoLabel = new QLabel( frameInfo, "infoLabel" );
00211     infoLabel->setBackgroundMode( QLabel::PaletteButton );
00212     infoLabel->setAlignment( int( QLabel::AlignCenter ) );
00213 
00214     frameInfoLayout->addMultiCellWidget( infoLabel, 0, 0, 0, 1 );
00215 
00216     modelDelete = new QPushButton( frameInfo, "modelDelete" );
00217     modelDelete->setEnabled( FALSE );
00218 
00219     frameInfoLayout->addWidget( modelDelete, 8, 1 );
00220 
00221     models_label = new QLabel( frameInfo, "models_label" );
00222     models_label->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, models_label->sizePolicy().hasHeightForWidth() ) );
00223     models_label->setAlignment( int( QLabel::AlignCenter ) );
00224 
00225     frameInfoLayout->addMultiCellWidget( models_label, 6, 6, 0, 1 );
00226 
00227     modelList = new QListBox( frameInfo, "modelList" );
00228 
00229     frameInfoLayout->addMultiCellWidget( modelList, 7, 7, 0, 1 );
00230 
00231     PropositionPageLayout->addWidget( cheatFrame, 0, 0 );
00232     infoStack->addWidget( PropositionPage, 0 );
00233 
00234     WStackPage = new QWidget( infoStack, "WStackPage" );
00235 
00236     frame7 = new QFrame( WStackPage, "frame7" );
00237     frame7->setGeometry( QRect( 1, 2, 260, 280 ) );
00238     frame7->setFrameShape( QFrame::GroupBoxPanel );
00239     frame7->setFrameShadow( QFrame::Raised );
00240 
00241     nameLabel_2 = new QLabel( frame7, "nameLabel_2" );
00242     nameLabel_2->setGeometry( QRect( 17, 80, 40, 20 ) );
00243     nameLabel_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, nameLabel_2->sizePolicy().hasHeightForWidth() ) );
00244 
00245     textLabel1 = new QLabel( frame7, "textLabel1" );
00246     textLabel1->setGeometry( QRect( 97, 40, 60, 20 ) );
00247 
00248     textLabel2 = new QLabel( frame7, "textLabel2" );
00249     textLabel2->setGeometry( QRect( 97, 170, 60, 20 ) );
00250 
00251     edgeSource = new QLineEdit( frame7, "edgeSource" );
00252     edgeSource->setGeometry( QRect( 67, 80, 170, 20 ) );
00253     edgeSource->setFrameShape( QLineEdit::LineEditPanel );
00254     edgeSource->setFrameShadow( QLineEdit::Sunken );
00255     edgeSource->setReadOnly( TRUE );
00256 
00257     edgeTarget = new QLineEdit( frame7, "edgeTarget" );
00258     edgeTarget->setGeometry( QRect( 67, 110, 170, 20 ) );
00259     edgeTarget->setReadOnly( TRUE );
00260 
00261     edgeTrust = new QComboBox( FALSE, frame7, "edgeTrust" );
00262     edgeTrust->setGeometry( QRect( 10, 200, 230, 20 ) );
00263     edgeTrust->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, edgeTrust->sizePolicy().hasHeightForWidth() ) );
00264 
00265     nameLabel_2_2 = new QLabel( frame7, "nameLabel_2_2" );
00266     nameLabel_2_2->setGeometry( QRect( 17, 110, 40, 20 ) );
00267     nameLabel_2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, nameLabel_2_2->sizePolicy().hasHeightForWidth() ) );
00268     infoStack->addWidget( WStackPage, 1 );
00269 
00270     principalLayout->addWidget( infoStack, 0, 1 );
00271 
00272     desenhosTab = new QTabWidget( centralWidget(), "desenhosTab" );
00273     desenhosTab->setBackgroundOrigin( QTabWidget::WidgetOrigin );
00274     desenhosTab->setTabPosition( QTabWidget::Bottom );
00275     desenhosTab->setTabShape( QTabWidget::Rounded );
00276 
00277     tab = new QWidget( desenhosTab, "tab" );
00278 
00279     props = new QFrame( tab, "props" );
00280     props->setGeometry( QRect( 0, 0, 240, 320 ) );
00281     props->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, props->sizePolicy().hasHeightForWidth() ) );
00282     props->setBackgroundOrigin( QFrame::ParentOrigin );
00283     props->setFrameShape( QFrame::NoFrame );
00284     props->setFrameShadow( QFrame::Raised );
00285     desenhosTab->insertTab( tab, QString("") );
00286 
00287     tab_2 = new QWidget( desenhosTab, "tab_2" );
00288     desenhosTab->insertTab( tab_2, QString("") );
00289 
00290     TabPage = new QWidget( desenhosTab, "TabPage" );
00291     TabPageLayout = new QGridLayout( TabPage, 1, 1, 2, 2, "TabPageLayout"); 
00292 
00293     messagesBrowser = new QTextBrowser( TabPage, "messagesBrowser" );
00294 
00295     TabPageLayout->addMultiCellWidget( messagesBrowser, 0, 0, 0, 2 );
00296     spacer2 = new QSpacerItem( 125, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00297     TabPageLayout->addItem( spacer2, 1, 2 );
00298     spacer1 = new QSpacerItem( 125, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00299     TabPageLayout->addItem( spacer1, 1, 0 );
00300 
00301     pushButton6 = new QPushButton( TabPage, "pushButton6" );
00302 
00303     TabPageLayout->addWidget( pushButton6, 1, 1 );
00304     desenhosTab->insertTab( TabPage, QString("") );
00305 
00306     principalLayout->addMultiCellWidget( desenhosTab, 0, 1, 0, 0 );
00307 
00308     // actions
00309     fileOpenAction = new QAction( this, "fileOpenAction" );
00310     fileOpenAction->setIconSet( QIconSet( QPixmap::fromMimeSource( "prj_obj.gif" ) ) );
00311     fileSaveAction = new QAction( this, "fileSaveAction" );
00312     fileSaveAction->setEnabled( FALSE );
00313     fileSaveAction->setIconSet( QIconSet( QPixmap::fromMimeSource( "save_edit.gif" ) ) );
00314     editUndoAction = new QAction( this, "editUndoAction" );
00315     editUndoAction->setEnabled( FALSE );
00316     editUndoAction->setIconSet( QIconSet( QPixmap::fromMimeSource( "undo_edit.gif" ) ) );
00317     editRedoAction = new QAction( this, "editRedoAction" );
00318     editRedoAction->setEnabled( FALSE );
00319     editRedoAction->setIconSet( QIconSet( QPixmap::fromMimeSource( "redo_edit.gif" ) ) );
00320     editFindAction = new QAction( this, "editFindAction" );
00321     editFindAction->setEnabled( FALSE );
00322     editFindAction->setIconSet( QIconSet( QPixmap::fromMimeSource( "insp_sbook.gif" ) ) );
00323     newProposition = new QAction( this, "newProposition" );
00324     newProposition->setIconSet( QIconSet( QPixmap::fromMimeSource( "new_wiz.gif" ) ) );
00325     delProposition = new QAction( this, "delProposition" );
00326     delProposition->setIconSet( QIconSet( QPixmap::fromMimeSource( "delete_edit.gif" ) ) );
00327     addConexao = new QAction( this, "addConexao" );
00328     addConexao->setIconSet( QIconSet( QPixmap::fromMimeSource( "newexp_wiz.gif" ) ) );
00329     delConexao = new QAction( this, "delConexao" );
00330     delConexao->setIconSet( QIconSet( QPixmap::fromMimeSource( "collapseall.gif" ) ) );
00331     editConexao = new QAction( this, "editConexao" );
00332     editConexao->setIconSet( QIconSet( QPixmap::fromMimeSource( "registry.gif" ) ) );
00333     webSearch = new QAction( this, "webSearch" );
00334     webSearch->setEnabled( FALSE );
00335     webSearch->setIconSet( QIconSet( QPixmap::fromMimeSource( "javadoc.gif" ) ) );
00336     importar = new QAction( this, "importar" );
00337     importar->setEnabled( FALSE );
00338     importar->setIconSet( QIconSet( QPixmap::fromMimeSource( "import_wiz.gif" ) ) );
00339     exportar = new QAction( this, "exportar" );
00340     exportar->setEnabled( FALSE );
00341     exportar->setIconSet( QIconSet( QPixmap::fromMimeSource( "export_wiz.gif" ) ) );
00342     CVS = new QAction( this, "CVS" );
00343     CVS->setEnabled( TRUE );
00344     CVS->setIconSet( QIconSet( QPixmap::fromMimeSource( "checkout.gif" ) ) );
00345     ajuda = new QAction( this, "ajuda" );
00346     ajuda->setToggleAction( TRUE );
00347     ajuda->setEnabled( TRUE );
00348     ajuda->setIconSet( QIconSet( QPixmap::fromMimeSource( "help_contents.gif" ) ) );
00349     helpAboutAction = new QAction( this, "helpAboutAction" );
00350     configure = new QAction( this, "configure" );
00351     configure->setIconSet( QIconSet( QPixmap::fromMimeSource( "action-buildconfig.gif" ) ) );
00352     commitAction = new QAction( this, "commitAction" );
00353     commitAction->setEnabled( TRUE );
00354     commitAction->setIconSet( QIconSet( QPixmap::fromMimeSource( "newstream_wiz.gif" ) ) );
00355     revertAction = new QAction( this, "revertAction" );
00356     revertAction->setOn( FALSE );
00357     revertAction->setIconSet( QIconSet( QPixmap::fromMimeSource( "revert.png" ) ) );
00358     svnUpdate_to_Older_VersionAction = new QAction( this, "svnUpdate_to_Older_VersionAction" );
00359 
00360 
00361     // toolbars
00362     toolBar = new QToolBar( QString(""), this, DockTop ); 
00363 
00364     toolBar->setEnabled( TRUE );
00365     fileOpenAction->addTo( toolBar );
00366     fileSaveAction->addTo( toolBar );
00367     configure->addTo( toolBar );
00368     toolBar->addSeparator();
00369     editUndoAction->addTo( toolBar );
00370     editRedoAction->addTo( toolBar );
00371     toolBar->addSeparator();
00372     newProposition->addTo( toolBar );
00373     delProposition->addTo( toolBar );
00374     addConexao->addTo( toolBar );
00375     toolBar->addSeparator();
00376     editConexao->addTo( toolBar );
00377     delConexao->addTo( toolBar );
00378     toolBar->addSeparator();
00379     editFindAction->addTo( toolBar );
00380     webSearch->addTo( toolBar );
00381     toolBar->addSeparator();
00382     importar->addTo( toolBar );
00383     exportar->addTo( toolBar );
00384     toolBar->addSeparator();
00385     revertAction->addTo( toolBar );
00386     CVS->addTo( toolBar );
00387     commitAction->addTo( toolBar );
00388     toolBar->addSeparator();
00389     ajuda->addTo( toolBar );
00390 
00391 
00392     // menubar
00393     MenuBar = new QMenuBar( this, "MenuBar" );
00394 
00395 
00396     fileMenu = new QPopupMenu( this );
00397     fileOpenAction->addTo( fileMenu );
00398     fileSaveAction->addTo( fileMenu );
00399     fileMenu->insertSeparator();
00400     fileMenu->insertSeparator();
00401     MenuBar->insertItem( QString(""), fileMenu, 1 );
00402 
00403     editMenu = new QPopupMenu( this );
00404     editUndoAction->addTo( editMenu );
00405     editRedoAction->addTo( editMenu );
00406     editMenu->insertSeparator();
00407     editMenu->insertSeparator();
00408     editFindAction->addTo( editMenu );
00409     configure->addTo( editMenu );
00410     MenuBar->insertItem( QString(""), editMenu, 2 );
00411 
00412     SVN = new QPopupMenu( this );
00413     commitAction->addTo( SVN );
00414     CVS->addTo( SVN );
00415     revertAction->addTo( SVN );
00416     svnUpdate_to_Older_VersionAction->addTo( SVN );
00417     MenuBar->insertItem( QString(""), SVN, 3 );
00418 
00419     helpMenu = new QPopupMenu( this );
00420     helpMenu->insertSeparator();
00421     helpAboutAction->addTo( helpMenu );
00422     MenuBar->insertItem( QString(""), helpMenu, 4 );
00423 
00424     MenuBar->insertSeparator( 5 );
00425 
00426     languageChange();
00427     resize( QSize(610, 636).expandedTo(minimumSizeHint()) );
00428     clearWState( WState_Polished );
00429 
00430     // signals and slots connections
00431     connect( fileOpenAction, SIGNAL( activated() ), this, SLOT( sOpen() ) );
00432     connect( newProposition, SIGNAL( activated() ), this, SLOT( newProposition_activated() ) );
00433     connect( fileSaveAction, SIGNAL( activated() ), this, SLOT( fileSaveAction_activated() ) );
00434     connect( changeButton, SIGNAL( clicked() ), this, SLOT( changeButton_clicked() ) );
00435     connect( DescriptionEdit, SIGNAL( textChanged() ), this, SLOT( infoChanged() ) );
00436     connect( nameEdit, SIGNAL( textChanged(const QString&) ), this, SLOT( infoChanged() ) );
00437     connect( keywordsEdit, SIGNAL( textChanged() ), this, SLOT( infoChanged() ) );
00438     connect( addConexao, SIGNAL( activated() ), this, SLOT( addConexao_activated() ) );
00439     connect( helpAboutAction, SIGNAL( activated() ), this, SLOT( helpAboutAction_activated() ) );
00440     connect( categorycombo, SIGNAL( activated(int) ), this, SLOT( infoChanged() ) );
00441     connect( delConexao, SIGNAL( activated() ), this, SLOT( delConexao_activated() ) );
00442     connect( delProposition, SIGNAL( activated() ), this, SLOT( delProposition_activated() ) );
00443     connect( editConexao, SIGNAL( activated() ), this, SLOT( editConexao_activated() ) );
00444     connect( CVS, SIGNAL( activated() ), this, SLOT( CVS_activated() ) );
00445     connect( configure, SIGNAL( activated() ), this, SLOT( configure_activated() ) );
00446     connect( commitAction, SIGNAL( activated() ), this, SLOT( commitAction_activated() ) );
00447     connect( edgeTrust, SIGNAL( activated(int) ), this, SLOT( edgeInfoChanged() ) );
00448     connect( referencesEdit, SIGNAL( textChanged() ), this, SLOT( infoChanged() ) );
00449     connect( ajuda, SIGNAL( activated() ), this, SLOT( help_activated() ) );
00450     connect( pushButton6, SIGNAL( clicked() ), messagesBrowser, SLOT( clear() ) );
00451     connect( revertAction, SIGNAL( activated() ), this, SLOT( revertAction_activated() ) );
00452     connect( svnUpdate_to_Older_VersionAction, SIGNAL( activated() ), this, SLOT( svnUpdate_to_Older_VersionAction_activated() ) );
00453     init();
00454 }
00455 
00456 /*
00457  *  Destroys the object and frees any allocated resources
00458  */
00459 Principal::~Principal()
00460 {
00461     // no need to delete child widgets, Qt does it all for us
00462 }
00463 
00464 /*
00465  *  Sets the strings of the subwidgets using the current
00466  *  language.
00467  */
00468 void Principal::languageChange()
00469 {
00470     setCaption( tr( "Modular Psi" ) );
00471     deleteButton->setText( tr( "Delete" ) );
00472     searchButton->setText( tr( "Search" ) );
00473     changeMessage->setText( QString::null );
00474     statusMessage->setText( tr( "Ready" ) );
00475     changeButton->setText( tr( "Change" ) );
00476     textLabel1_2->setText( tr( "Logic Deduction" ) );
00477     textLabel1_2_2->setText( tr( "Strong Comprovation" ) );
00478     textLabel1_2_2_2->setText( tr( "Good Comprovation" ) );
00479     textLabel1_2_2_3->setText( tr( "Avg. Comprovation" ) );
00480     textLabel1_2_2_4->setText( tr( "Weak Comprovation" ) );
00481     textLabel1_2_2_5->setText( tr( "Falsified" ) );
00482     nameLabel->setText( tr( "Name :" ) );
00483     nameEdit->setText( QString::null );
00484     categoryLabel->setText( tr( "Category :" ) );
00485     trustCombo->clear();
00486     trustCombo->insertItem( tr( "Not Classified" ) );
00487     trustCombo->insertItem( tr( "Falsified" ) );
00488     trustCombo->insertItem( tr( "Weak Comprovation" ) );
00489     trustCombo->insertItem( tr( "Avg. Comprovation" ) );
00490     trustCombo->insertItem( tr( "Good Comprovation" ) );
00491     trustCombo->insertItem( tr( "Strong Comprovation" ) );
00492     trustCombo->insertItem( tr( "Logic Deduction" ) );
00493     modelAdd->setText( tr( "Add" ) );
00494     refLabel->setText( tr( "<p align=\"center\">References</p>" ) );
00495     keywordsLabel->setText( tr( "Keywords" ) );
00496     textLabel3->setText( tr( "Description" ) );
00497     infoLabel->setText( tr( "Info" ) );
00498     modelDelete->setText( tr( "Delete" ) );
00499     models_label->setText( tr( "Models" ) );
00500     nameLabel_2->setText( tr( "Source :" ) );
00501     textLabel1->setText( tr( "<b>Edge Info</b>" ) );
00502     textLabel2->setText( tr( "Trust Level :" ) );
00503     edgeSource->setText( QString::null );
00504     edgeTarget->setText( QString::null );
00505     edgeTrust->clear();
00506     edgeTrust->insertItem( tr( "Not Classified" ) );
00507     edgeTrust->insertItem( tr( "Falsified" ) );
00508     edgeTrust->insertItem( tr( "Weak Comprovation" ) );
00509     edgeTrust->insertItem( tr( "Avg. Comprovation" ) );
00510     edgeTrust->insertItem( tr( "Good Comprovation" ) );
00511     edgeTrust->insertItem( tr( "Strong Comprovation" ) );
00512     edgeTrust->insertItem( tr( "Logic Deduction" ) );
00513     nameLabel_2_2->setText( tr( "Target :" ) );
00514     desenhosTab->changeTab( tab, tr( "Propositions" ) );
00515     desenhosTab->changeTab( tab_2, tr( "Models" ) );
00516     pushButton6->setText( tr( "Clear" ) );
00517     desenhosTab->changeTab( TabPage, tr( "System Messages" ) );
00518     fileOpenAction->setText( tr( "Open" ) );
00519     fileOpenAction->setMenuText( tr( "&Open..." ) );
00520     fileOpenAction->setAccel( tr( "Ctrl+O" ) );
00521     fileSaveAction->setText( tr( "Save" ) );
00522     fileSaveAction->setMenuText( tr( "&Save" ) );
00523     fileSaveAction->setAccel( tr( "Ctrl+S" ) );
00524     editUndoAction->setText( tr( "Undo" ) );
00525     editUndoAction->setMenuText( tr( "&Undo" ) );
00526     editUndoAction->setAccel( tr( "Ctrl+Z" ) );
00527     editRedoAction->setText( tr( "Redo" ) );
00528     editRedoAction->setMenuText( tr( "&Redo" ) );
00529     editRedoAction->setAccel( tr( "Ctrl+Y" ) );
00530     editFindAction->setText( tr( "Find" ) );
00531     editFindAction->setMenuText( tr( "&Find..." ) );
00532     editFindAction->setAccel( tr( "Ctrl+F" ) );
00533     newProposition->setText( tr( "New Proposition" ) );
00534     delProposition->setText( tr( "Action" ) );
00535     delProposition->setToolTip( tr( "Remove Proposition" ) );
00536     addConexao->setText( tr( "Add Connection" ) );
00537     addConexao->setToolTip( tr( "Add Connection" ) );
00538     delConexao->setText( tr( "Action" ) );
00539     delConexao->setToolTip( tr( "Remove Connection" ) );
00540     editConexao->setText( tr( "Action" ) );
00541     editConexao->setToolTip( tr( "Edit Connection" ) );
00542     webSearch->setText( tr( "Web Search" ) );
00543     importar->setText( tr( "Import" ) );
00544     importar->setToolTip( tr( "Import" ) );
00545     exportar->setText( tr( "Expor" ) );
00546     exportar->setToolTip( tr( "Export" ) );
00547     CVS->setText( tr( "Checkout from SVN" ) );
00548     ajuda->setText( tr( "Action" ) );
00549     ajuda->setToolTip( tr( "Help" ) );
00550     ajuda->setStatusTip( tr( "Help" ) );
00551     helpAboutAction->setText( tr( "About..." ) );
00552     helpAboutAction->setMenuText( tr( "About..." ) );
00553     configure->setText( tr( "Settings" ) );
00554     commitAction->setText( tr( "Commit to SVN" ) );
00555     revertAction->setText( tr( "Revert" ) );
00556     svnUpdate_to_Older_VersionAction->setText( tr( "&Update to Older Version..." ) );
00557     svnUpdate_to_Older_VersionAction->setMenuText( tr( "&Update to Older Version..." ) );
00558     toolBar->setLabel( tr( "Tools" ) );
00559     if (MenuBar->findItem(1))
00560         MenuBar->findItem(1)->setText( tr( "&File" ) );
00561     if (MenuBar->findItem(2))
00562         MenuBar->findItem(2)->setText( tr( "&Edit" ) );
00563     if (MenuBar->findItem(3))
00564         MenuBar->findItem(3)->setText( tr( "&SVN" ) );
00565     if (MenuBar->findItem(4))
00566         MenuBar->findItem(4)->setText( tr( "&Help" ) );
00567 }
00568 
Untitled Document Pesquisa Psi SourceForge.net Logo