KDevelop API Documentation

vcs/cvsservice/tagdialogbase.cpp

Go to the documentation of this file.
00001 #include <kdialog.h> 00002 #include <klocale.h> 00003 /**************************************************************************** 00004 ** Form implementation generated from reading ui file './tagdialogbase.ui' 00005 ** 00006 ** Created: Wed Oct 6 17:37:28 2004 00007 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $) 00008 ** 00009 ** WARNING! All changes made in this file will be lost! 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 * Constructs a TagDialogBase as a child of 'parent', with the 00026 * name 'name' and widget flags set to 'f'. 00027 * 00028 * The dialog will by default be modeless, unless you set 'modal' to 00029 * TRUE to construct a modal dialog. 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 // signals and slots connections 00079 connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) ); 00080 connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); 00081 00082 // buddies 00083 textLabel1->setBuddy( tagBranchEdit ); 00084 } 00085 00086 /* 00087 * Destroys the object and frees any allocated resources 00088 */ 00089 TagDialogBase::~TagDialogBase() 00090 { 00091 // no need to delete child widgets, Qt does it all for us 00092 } 00093 00094 /* 00095 * Sets the strings of the subwidgets using the current 00096 * language. 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"
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:14 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003