KDevelop API Documentation

removetargetdlgbase.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 './removetargetdlgbase.ui'
00005 **
00006 ** Created: Tue Mar 22 23:56:49 2005
00007 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.4   edited Nov 24 2003 $)
00008 **
00009 ** WARNING! All changes made in this file will be lost!
00010 ****************************************************************************/
00011 
00012 #include "removetargetdlgbase.h"
00013 
00014 #include <qvariant.h>
00015 #include <kdialog.h>
00016 #include <qpushbutton.h>
00017 #include <qgroupbox.h>
00018 #include <ksqueezedtextlabel.h>
00019 #include <qlabel.h>
00020 #include <qcheckbox.h>
00021 #include <klistbox.h>
00022 #include <kprogress.h>
00023 #include <qlayout.h>
00024 #include <qtooltip.h>
00025 #include <qwhatsthis.h>
00026 
00027 /*
00028  *  Constructs a RemoveTargetDlgBase as a child of 'parent', with the
00029  *  name 'name' and widget flags set to 'f'.
00030  *
00031  *  The dialog will by default be modeless, unless you set 'modal' to
00032  *  TRUE to construct a modal dialog.
00033  */
00034 RemoveTargetDlgBase::RemoveTargetDlgBase( QWidget* parent, const char* name, bool modal, WFlags fl )
00035     : QDialog( parent, name, modal, fl )
00036 {
00037     if ( !name )
00038     setName( "RemoveTargetDlgBase" );
00039     RemoveTargetDlgBaseLayout = new QGridLayout( this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "RemoveTargetDlgBaseLayout"); 
00040 
00041     targetBox = new QGroupBox( this, "targetBox" );
00042     targetBox->setColumnLayout(0, Qt::Vertical );
00043     targetBox->layout()->setSpacing( KDialog::spacingHint() );
00044     targetBox->layout()->setMargin( KDialog::marginHint() );
00045     targetBoxLayout = new QGridLayout( targetBox->layout() );
00046     targetBoxLayout->setAlignment( Qt::AlignTop );
00047 
00048     directoryLabel = new KSqueezedTextLabel( targetBox, "directoryLabel" );
00049     directoryLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, directoryLabel->sizePolicy().hasHeightForWidth() ) );
00050 
00051     targetBoxLayout->addWidget( directoryLabel, 0, 1 );
00052 
00053     targetLabel = new QLabel( targetBox, "targetLabel" );
00054 
00055     targetBoxLayout->addWidget( targetLabel, 1, 1 );
00056 
00057     directoryStaticLabel = new QLabel( targetBox, "directoryStaticLabel" );
00058     directoryStaticLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, directoryStaticLabel->sizePolicy().hasHeightForWidth() ) );
00059     QFont directoryStaticLabel_font(  directoryStaticLabel->font() );
00060     directoryStaticLabel->setFont( directoryStaticLabel_font ); 
00061 
00062     targetBoxLayout->addWidget( directoryStaticLabel, 0, 0 );
00063 
00064     targetStaticLabel = new QLabel( targetBox, "targetStaticLabel" );
00065     targetStaticLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, targetStaticLabel->sizePolicy().hasHeightForWidth() ) );
00066     QFont targetStaticLabel_font(  targetStaticLabel->font() );
00067     targetStaticLabel->setFont( targetStaticLabel_font ); 
00068 
00069     targetBoxLayout->addWidget( targetStaticLabel, 1, 0 );
00070 
00071     RemoveTargetDlgBaseLayout->addWidget( targetBox, 0, 0 );
00072 
00073     fileGroupBox = new QGroupBox( this, "fileGroupBox" );
00074     fileGroupBox->setMinimumSize( QSize( 0, 0 ) );
00075     fileGroupBox->setMaximumSize( QSize( 32767, 140 ) );
00076     fileGroupBox->setColumnLayout(0, Qt::Vertical );
00077     fileGroupBox->layout()->setSpacing( KDialog::spacingHint() );
00078     fileGroupBox->layout()->setMargin( KDialog::marginHint() );
00079     fileGroupBoxLayout = new QGridLayout( fileGroupBox->layout() );
00080     fileGroupBoxLayout->setAlignment( Qt::AlignTop );
00081 
00082     removeLabel = new QLabel( fileGroupBox, "removeLabel" );
00083 
00084     fileGroupBoxLayout->addWidget( removeLabel, 0, 0 );
00085 
00086     removeCheckBox = new QCheckBox( fileGroupBox, "removeCheckBox" );
00087 
00088     fileGroupBoxLayout->addWidget( removeCheckBox, 1, 0 );
00089 
00090     textLabel = new QLabel( fileGroupBox, "textLabel" );
00091     textLabel->setMinimumSize( QSize( 200, 0 ) );
00092 
00093     fileGroupBoxLayout->addWidget( textLabel, 2, 0 );
00094 
00095     RemoveTargetDlgBaseLayout->addWidget( fileGroupBox, 1, 0 );
00096 
00097     groupBox3 = new QGroupBox( this, "groupBox3" );
00098     groupBox3->setColumnLayout(0, Qt::Vertical );
00099     groupBox3->layout()->setSpacing( KDialog::spacingHint() );
00100     groupBox3->layout()->setMargin( KDialog::marginHint() );
00101     groupBox3Layout = new QGridLayout( groupBox3->layout() );
00102     groupBox3Layout->setAlignment( Qt::AlignTop );
00103 
00104     dependencyListBox = new KListBox( groupBox3, "dependencyListBox" );
00105     dependencyListBox->setDragAutoScroll( FALSE );
00106     dependencyListBox->setSelectionMode( KListBox::NoSelection );
00107 
00108     groupBox3Layout->addWidget( dependencyListBox, 0, 0 );
00109 
00110     RemoveTargetDlgBaseLayout->addWidget( groupBox3, 2, 0 );
00111 
00112     progressBar = new KProgress( this, "progressBar" );
00113     progressBar->setEnabled( TRUE );
00114 
00115     RemoveTargetDlgBaseLayout->addWidget( progressBar, 3, 0 );
00116     Spacer2 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Fixed );
00117     RemoveTargetDlgBaseLayout->addItem( Spacer2, 4, 0 );
00118 
00119     buttonLayout = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "buttonLayout"); 
00120     buttonSpacer = new QSpacerItem( 30, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00121     buttonLayout->addItem( buttonSpacer );
00122 
00123     removeButton = new QPushButton( this, "removeButton" );
00124     removeButton->setDefault( TRUE );
00125     buttonLayout->addWidget( removeButton );
00126 
00127     cancelButton = new QPushButton( this, "cancelButton" );
00128     buttonLayout->addWidget( cancelButton );
00129 
00130     RemoveTargetDlgBaseLayout->addLayout( buttonLayout, 5, 0 );
00131     languageChange();
00132     resize( QSize(472, 477).expandedTo(minimumSizeHint()) );
00133     clearWState( WState_Polished );
00134 }
00135 
00136 /*
00137  *  Destroys the object and frees any allocated resources
00138  */
00139 RemoveTargetDlgBase::~RemoveTargetDlgBase()
00140 {
00141     // no need to delete child widgets, Qt does it all for us
00142 }
00143 
00144 /*
00145  *  Sets the strings of the subwidgets using the current
00146  *  language.
00147  */
00148 void RemoveTargetDlgBase::languageChange()
00149 {
00150     setCaption( tr2i18n( "Remove Target From [SUBPROJECT]" ) );
00151     targetBox->setTitle( tr2i18n( "Subproject Information" ) );
00152     directoryLabel->setText( tr2i18n( "[TARGET DIRECTORY]" ) );
00153     targetLabel->setText( tr2i18n( "[TARGET NAME]" ) );
00154     directoryStaticLabel->setText( tr2i18n( "Directory:" ) );
00155     targetStaticLabel->setText( tr2i18n( "Target:" ) );
00156     fileGroupBox->setTitle( tr2i18n( "&Target Information" ) );
00157     removeLabel->setText( tr2i18n( "[REMOVE QUESTION]" ) );
00158     removeCheckBox->setText( tr2i18n( "Also &remove it from disk" ) );
00159     textLabel->setText( tr2i18n( "<b>Note:</b> You will not be able to undo this operation. Please check your Makefile.am afterwards." ) );
00160     groupBox3->setTitle( tr2i18n( "&Dependencies to Other Subprojects" ) );
00161     removeButton->setText( tr2i18n( "&OK" ) );
00162     cancelButton->setText( tr2i18n( "&Cancel" ) );
00163 }
00164 
00165 #include "removetargetdlgbase.moc"
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:40 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003