KDevelop API Documentation

buildtools/autotools/removefiledlgbase.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 './removefiledlgbase.ui' 00005 ** 00006 ** Created: Wed Oct 6 17:34:03 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 "removefiledlgbase.h" 00013 00014 #include <qvariant.h> 00015 #include <ksqueezedtextlabel.h> 00016 #include <kdialog.h> 00017 #include <qpushbutton.h> 00018 #include <qgroupbox.h> 00019 #include <qlabel.h> 00020 #include <qcheckbox.h> 00021 #include <qlayout.h> 00022 #include <qtooltip.h> 00023 #include <qwhatsthis.h> 00024 00025 /* 00026 * Constructs a RemoveFileDlgBase as a child of 'parent', with the 00027 * name 'name' and widget flags set to 'f'. 00028 * 00029 * The dialog will by default be modeless, unless you set 'modal' to 00030 * TRUE to construct a modal dialog. 00031 */ 00032 RemoveFileDlgBase::RemoveFileDlgBase( QWidget* parent, const char* name, bool modal, WFlags fl ) 00033 : QDialog( parent, name, modal, fl ) 00034 { 00035 if ( !name ) 00036 setName( "RemoveFileDlgBase" ); 00037 RemoveFileDlgBaseLayout = new QGridLayout( this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "RemoveFileDlgBaseLayout"); 00038 00039 layout4 = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "layout4"); 00040 buttonSpacer = new QSpacerItem( 247, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00041 layout4->addItem( buttonSpacer ); 00042 00043 removeButton = new QPushButton( this, "removeButton" ); 00044 removeButton->setDefault( TRUE ); 00045 layout4->addWidget( removeButton ); 00046 00047 cancelButton = new QPushButton( this, "cancelButton" ); 00048 layout4->addWidget( cancelButton ); 00049 00050 RemoveFileDlgBaseLayout->addLayout( layout4, 2, 0 ); 00051 00052 fileGroupBox = new QGroupBox( this, "fileGroupBox" ); 00053 fileGroupBox->setMinimumSize( QSize( 0, 0 ) ); 00054 fileGroupBox->setColumnLayout(0, Qt::Vertical ); 00055 fileGroupBox->layout()->setSpacing( KDialog::spacingHint() ); 00056 fileGroupBox->layout()->setMargin( KDialog::marginHint() ); 00057 fileGroupBoxLayout = new QVBoxLayout( fileGroupBox->layout() ); 00058 fileGroupBoxLayout->setAlignment( Qt::AlignTop ); 00059 00060 fileLayout = new QVBoxLayout( 0, 0, KDialog::spacingHint(), "fileLayout"); 00061 00062 removeLabel = new QLabel( fileGroupBox, "removeLabel" ); 00063 fileLayout->addWidget( removeLabel ); 00064 00065 removeCheckBox = new QCheckBox( fileGroupBox, "removeCheckBox" ); 00066 fileLayout->addWidget( removeCheckBox ); 00067 00068 noticeLabel = new QLabel( fileGroupBox, "noticeLabel" ); 00069 noticeLabel->setMinimumSize( QSize( 200, 0 ) ); 00070 fileLayout->addWidget( noticeLabel ); 00071 fileGroupBoxLayout->addLayout( fileLayout ); 00072 00073 RemoveFileDlgBaseLayout->addWidget( fileGroupBox, 1, 0 ); 00074 00075 targetBox = new QGroupBox( this, "targetBox" ); 00076 targetBox->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, targetBox->sizePolicy().hasHeightForWidth() ) ); 00077 targetBox->setColumnLayout(0, Qt::Vertical ); 00078 targetBox->layout()->setSpacing( KDialog::spacingHint() ); 00079 targetBox->layout()->setMargin( KDialog::marginHint() ); 00080 targetBoxLayout = new QGridLayout( targetBox->layout() ); 00081 targetBoxLayout->setAlignment( Qt::AlignTop ); 00082 00083 targetLabel = new QLabel( targetBox, "targetLabel" ); 00084 targetLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)1, 0, 0, targetLabel->sizePolicy().hasHeightForWidth() ) ); 00085 00086 targetBoxLayout->addWidget( targetLabel, 1, 1 ); 00087 00088 directoryStaticLabel = new QLabel( targetBox, "directoryStaticLabel" ); 00089 directoryStaticLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, directoryStaticLabel->sizePolicy().hasHeightForWidth() ) ); 00090 QFont directoryStaticLabel_font( directoryStaticLabel->font() ); 00091 directoryStaticLabel->setFont( directoryStaticLabel_font ); 00092 00093 targetBoxLayout->addWidget( directoryStaticLabel, 0, 0 ); 00094 00095 targetStaticLabel = new QLabel( targetBox, "targetStaticLabel" ); 00096 targetStaticLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)1, 0, 0, targetStaticLabel->sizePolicy().hasHeightForWidth() ) ); 00097 QFont targetStaticLabel_font( targetStaticLabel->font() ); 00098 targetStaticLabel->setFont( targetStaticLabel_font ); 00099 00100 targetBoxLayout->addWidget( targetStaticLabel, 1, 0 ); 00101 00102 directoryLabel = new QLabel( targetBox, "directoryLabel" ); 00103 directoryLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)1, 0, 0, directoryLabel->sizePolicy().hasHeightForWidth() ) ); 00104 00105 targetBoxLayout->addWidget( directoryLabel, 0, 1 ); 00106 00107 RemoveFileDlgBaseLayout->addWidget( targetBox, 0, 0 ); 00108 languageChange(); 00109 resize( QSize(447, 284).expandedTo(minimumSizeHint()) ); 00110 clearWState( WState_Polished ); 00111 00112 // tab order 00113 setTabOrder( removeCheckBox, removeButton ); 00114 setTabOrder( removeButton, cancelButton ); 00115 } 00116 00117 /* 00118 * Destroys the object and frees any allocated resources 00119 */ 00120 RemoveFileDlgBase::~RemoveFileDlgBase() 00121 { 00122 // no need to delete child widgets, Qt does it all for us 00123 } 00124 00125 /* 00126 * Sets the strings of the subwidgets using the current 00127 * language. 00128 */ 00129 void RemoveFileDlgBase::languageChange() 00130 { 00131 setCaption( tr2i18n( "Remove File From This Target" ) ); 00132 removeButton->setText( tr2i18n( "&OK" ) ); 00133 cancelButton->setText( tr2i18n( "&Cancel" ) ); 00134 fileGroupBox->setTitle( tr2i18n( "&File Information" ) ); 00135 removeLabel->setText( tr2i18n( "[REMOVE QUESTION]" ) ); 00136 removeCheckBox->setText( tr2i18n( "Also &remove it from disk" ) ); 00137 noticeLabel->setText( tr2i18n( "<b>Note:</b> You will not be able to undelete the file!" ) ); 00138 targetBox->setTitle( tr2i18n( "Subproject Information" ) ); 00139 targetLabel->setText( tr2i18n( "[TARGET NAME]" ) ); 00140 directoryStaticLabel->setText( tr2i18n( "Directory:" ) ); 00141 targetStaticLabel->setText( tr2i18n( "Target:" ) ); 00142 directoryLabel->setText( tr2i18n( "[DIRECTORY NAME]" ) ); 00143 } 00144 00145 #include "removefiledlgbase.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:38:54 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003