KDevelop API Documentation

buildtools/autotools/removesubprojectdlgbase.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 './removesubprojectdlgbase.ui' 00005 ** 00006 ** Created: Tue Oct 19 07:57:59 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 "removesubprojectdlgbase.h" 00013 00014 #include <qvariant.h> 00015 #include <kdialog.h> 00016 #include <qgroupbox.h> 00017 #include <qlabel.h> 00018 #include <qcheckbox.h> 00019 #include <qpushbutton.h> 00020 #include <qlayout.h> 00021 #include <qtooltip.h> 00022 #include <qwhatsthis.h> 00023 00024 /* 00025 * Constructs a RemoveSubprojectDlgBase 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 RemoveSubprojectDlgBase::RemoveSubprojectDlgBase( QWidget* parent, const char* name, bool modal, WFlags fl ) 00032 : QDialog( parent, name, modal, fl ) 00033 { 00034 if ( !name ) 00035 setName( "RemoveSubprojectDlgBase" ); 00036 RemoveSubprojectDlgBaseLayout = new QGridLayout( this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "RemoveSubprojectDlgBaseLayout"); 00037 00038 fileGroupBox = new QGroupBox( this, "fileGroupBox" ); 00039 fileGroupBox->setMinimumSize( QSize( 0, 0 ) ); 00040 fileGroupBox->setMaximumSize( QSize( 32767, 140 ) ); 00041 fileGroupBox->setFrameShadow( QGroupBox::Sunken ); 00042 fileGroupBox->setColumnLayout(0, Qt::Vertical ); 00043 fileGroupBox->layout()->setSpacing( KDialog::spacingHint() ); 00044 fileGroupBox->layout()->setMargin( KDialog::marginHint() ); 00045 fileGroupBoxLayout = new QVBoxLayout( fileGroupBox->layout() ); 00046 fileGroupBoxLayout->setAlignment( Qt::AlignTop ); 00047 00048 removeLabel = new QLabel( fileGroupBox, "removeLabel" ); 00049 fileGroupBoxLayout->addWidget( removeLabel ); 00050 00051 removeCheckBox = new QCheckBox( fileGroupBox, "removeCheckBox" ); 00052 fileGroupBoxLayout->addWidget( removeCheckBox ); 00053 00054 noticeLabel = new QLabel( fileGroupBox, "noticeLabel" ); 00055 noticeLabel->setAlignment( int( QLabel::AlignVCenter ) ); 00056 fileGroupBoxLayout->addWidget( noticeLabel ); 00057 00058 RemoveSubprojectDlgBaseLayout->addWidget( fileGroupBox, 0, 0 ); 00059 00060 buttonLayout = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "buttonLayout"); 00061 buttonSpacer = new QSpacerItem( 30, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00062 buttonLayout->addItem( buttonSpacer ); 00063 00064 removeButton = new QPushButton( this, "removeButton" ); 00065 removeButton->setDefault( TRUE ); 00066 buttonLayout->addWidget( removeButton ); 00067 00068 cancelButton = new QPushButton( this, "cancelButton" ); 00069 buttonLayout->addWidget( cancelButton ); 00070 00071 RemoveSubprojectDlgBaseLayout->addLayout( buttonLayout, 2, 0 ); 00072 Spacer2 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding ); 00073 RemoveSubprojectDlgBaseLayout->addItem( Spacer2, 1, 0 ); 00074 languageChange(); 00075 resize( QSize(378, 165).expandedTo(minimumSizeHint()) ); 00076 clearWState( WState_Polished ); 00077 00078 // signals and slots connections 00079 connect( removeButton, SIGNAL( clicked() ), this, SLOT( accept() ) ); 00080 connect( cancelButton, SIGNAL( clicked() ), this, SLOT( reject() ) ); 00081 } 00082 00083 /* 00084 * Destroys the object and frees any allocated resources 00085 */ 00086 RemoveSubprojectDlgBase::~RemoveSubprojectDlgBase() 00087 { 00088 // no need to delete child widgets, Qt does it all for us 00089 } 00090 00091 /* 00092 * Sets the strings of the subwidgets using the current 00093 * language. 00094 */ 00095 void RemoveSubprojectDlgBase::languageChange() 00096 { 00097 setCaption( tr2i18n( "Remove Subproject" ) ); 00098 fileGroupBox->setTitle( tr2i18n( "&Subproject Information" ) ); 00099 removeLabel->setText( tr2i18n( "[REMOVE QUESTION]" ) ); 00100 removeCheckBox->setText( tr2i18n( "Also &remove it from disk" ) ); 00101 noticeLabel->setText( tr2i18n( "<b>Note:</b> You will not be able to undo this operation!" ) ); 00102 removeButton->setText( tr2i18n( "&OK" ) ); 00103 cancelButton->setText( tr2i18n( "&Cancel" ) ); 00104 } 00105 00106 void RemoveSubprojectDlgBase::accept() 00107 { 00108 qWarning( "RemoveSubprojectDlgBase::accept(): Not implemented yet" ); 00109 } 00110 00111 void RemoveSubprojectDlgBase::reject() 00112 { 00113 qWarning( "RemoveSubprojectDlgBase::reject(): Not implemented yet" ); 00114 } 00115 00116 #include "removesubprojectdlgbase.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 Tue Oct 19 08:01:48 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003