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

commitform.cpp

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** Form implementation generated from reading ui file 'gui\commitform.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 "commitform.h"
00011 
00012 #include <qvariant.h>
00013 #include <qlabel.h>
00014 #include <qpushbutton.h>
00015 #include <qtextedit.h>
00016 #include <qlayout.h>
00017 #include <qtooltip.h>
00018 #include <qwhatsthis.h>
00019 #include <qimage.h>
00020 #include <qpixmap.h>
00021 
00022 #include "commitform.ui.h"
00023 /*
00024  *  Constructs a CommitForm 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 CommitForm::CommitForm( QWidget* parent, const char* name, bool modal, WFlags fl )
00031     : QDialog( parent, name, modal, fl )
00032 {
00033     if ( !name )
00034         setName( "CommitForm" );
00035     setMinimumSize( QSize( 375, 300 ) );
00036     setMaximumSize( QSize( 375, 300 ) );
00037     setIcon( QPixmap::fromMimeSource( "showchild_mode.gif" ) );
00038 
00039     textLabel1 = new QLabel( this, "textLabel1" );
00040     textLabel1->setGeometry( QRect( 20, 10, 340, 20 ) );
00041 
00042     CommitButton = new QPushButton( this, "CommitButton" );
00043     CommitButton->setGeometry( QRect( 70, 250, 82, 26 ) );
00044 
00045     CloseButton = new QPushButton( this, "CloseButton" );
00046     CloseButton->setGeometry( QRect( 230, 250, 82, 26 ) );
00047 
00048     logMessage = new QTextEdit( this, "logMessage" );
00049     logMessage->setGeometry( QRect( 11, 30, 340, 210 ) );
00050     logMessage->setReadOnly( FALSE );
00051     languageChange();
00052     resize( QSize(375, 300).expandedTo(minimumSizeHint()) );
00053     clearWState( WState_Polished );
00054 
00055     // signals and slots connections
00056     connect( CommitButton, SIGNAL( clicked() ), this, SLOT( CommitButton_clicked() ) );
00057     connect( CloseButton, SIGNAL( clicked() ), this, SLOT( CloseButton_clicked() ) );
00058 }
00059 
00060 /*
00061  *  Destroys the object and frees any allocated resources
00062  */
00063 CommitForm::~CommitForm()
00064 {
00065     // no need to delete child widgets, Qt does it all for us
00066 }
00067 
00068 /*
00069  *  Sets the strings of the subwidgets using the current
00070  *  language.
00071  */
00072 void CommitForm::languageChange()
00073 {
00074     setCaption( tr( "Commit to SVN" ) );
00075     textLabel1->setText( tr( "<p align=\"center\"><b>Type the changelog Message</b></p>" ) );
00076     CommitButton->setText( tr( "Commit" ) );
00077     CloseButton->setText( tr( "Cancel" ) );
00078 }
00079 
Untitled Document Pesquisa Psi SourceForge.net Logo