00001
00002
00003
00004
00005
00006
00007
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
00025
00026
00027
00028
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
00056 connect( CommitButton, SIGNAL( clicked() ), this, SLOT( CommitButton_clicked() ) );
00057 connect( CloseButton, SIGNAL( clicked() ), this, SLOT( CloseButton_clicked() ) );
00058 }
00059
00060
00061
00062
00063 CommitForm::~CommitForm()
00064 {
00065
00066 }
00067
00068
00069
00070
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