tagdialogbase.cpp
Go to the documentation of this file.00001 #include <kdialog.h>
00002 #include <klocale.h>
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include "tagdialogbase.h"
00013
00014 #include <qvariant.h>
00015 #include <qpushbutton.h>
00016 #include <qlabel.h>
00017 #include <qlineedit.h>
00018 #include <qcheckbox.h>
00019 #include <qframe.h>
00020 #include <qlayout.h>
00021 #include <qtooltip.h>
00022 #include <qwhatsthis.h>
00023
00024
00025
00026
00027
00028
00029
00030
00031 TagDialogBase::TagDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl )
00032 : QDialog( parent, name, modal, fl )
00033 {
00034 if ( !name )
00035 setName( "TagDialogBase" );
00036 setSizeGripEnabled( TRUE );
00037 TagDialogBaseLayout = new QVBoxLayout( this, 11, 6, "TagDialogBaseLayout");
00038
00039 layout3 = new QHBoxLayout( 0, 0, 6, "layout3");
00040
00041 textLabel1 = new QLabel( this, "textLabel1" );
00042 layout3->addWidget( textLabel1 );
00043
00044 tagBranchEdit = new QLineEdit( this, "tagBranchEdit" );
00045 layout3->addWidget( tagBranchEdit );
00046 TagDialogBaseLayout->addLayout( layout3 );
00047
00048 tagAsBranchCheck = new QCheckBox( this, "tagAsBranchCheck" );
00049 TagDialogBaseLayout->addWidget( tagAsBranchCheck );
00050
00051 forceCheck = new QCheckBox( this, "forceCheck" );
00052 forceCheck->setChecked( TRUE );
00053 TagDialogBaseLayout->addWidget( forceCheck );
00054
00055 line1 = new QFrame( this, "line1" );
00056 line1->setFrameShape( QFrame::HLine );
00057 line1->setFrameShadow( QFrame::Sunken );
00058 line1->setFrameShape( QFrame::HLine );
00059 TagDialogBaseLayout->addWidget( line1 );
00060
00061 layout2 = new QHBoxLayout( 0, 0, 6, "layout2");
00062 Horizontal_Spacing2 = new QSpacerItem( 200, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00063 layout2->addItem( Horizontal_Spacing2 );
00064
00065 buttonOk = new QPushButton( this, "buttonOk" );
00066 buttonOk->setAutoDefault( TRUE );
00067 buttonOk->setDefault( TRUE );
00068 layout2->addWidget( buttonOk );
00069
00070 buttonCancel = new QPushButton( this, "buttonCancel" );
00071 buttonCancel->setAutoDefault( TRUE );
00072 layout2->addWidget( buttonCancel );
00073 TagDialogBaseLayout->addLayout( layout2 );
00074 languageChange();
00075 resize( QSize(410, 175).expandedTo(minimumSizeHint()) );
00076 clearWState( WState_Polished );
00077
00078
00079 connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
00080 connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
00081
00082
00083 textLabel1->setBuddy( tagBranchEdit );
00084 }
00085
00086
00087
00088
00089 TagDialogBase::~TagDialogBase()
00090 {
00091
00092 }
00093
00094
00095
00096
00097
00098 void TagDialogBase::languageChange()
00099 {
00100 setCaption( tr2i18n( "Tag Files on CVS Repository" ) );
00101 textLabel1->setText( tr2i18n( "Tag/Branch &name:" ) );
00102 tagAsBranchCheck->setText( tr2i18n( "Tag as &branch" ) );
00103 forceCheck->setText( tr2i18n( "&Force" ) );
00104 buttonOk->setText( tr2i18n( "&OK" ) );
00105 buttonOk->setAccel( QKeySequence( QString::null ) );
00106 buttonCancel->setText( tr2i18n( "&Cancel" ) );
00107 buttonCancel->setAccel( QKeySequence( QString::null ) );
00108 }
00109
00110 #include "tagdialogbase.moc"
This file is part of the documentation for KDevelop Version 3.1.2.