00001
#include <kdialog.h>
00002
#include <klocale.h>
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
#include "removesubprojectdlgbase.h"
00013
00014
#include <qvariant.h>
00015
#include <kdialog.h>
00016
#include <qpushbutton.h>
00017
#include <qgroupbox.h>
00018
#include <qlabel.h>
00019
#include <qcheckbox.h>
00020
#include <qlayout.h>
00021
#include <qtooltip.h>
00022
#include <qwhatsthis.h>
00023
00024
00025
00026
00027
00028
00029
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 QVBoxLayout(
this, 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->setMinimumSize(
QSize( 200, 0 ) );
00056
fileGroupBoxLayout->addWidget(
noticeLabel );
00057
RemoveSubprojectDlgBaseLayout->addWidget(
fileGroupBox );
00058
00059
buttonLayout =
new QHBoxLayout( 0, 0, KDialog::spacingHint(),
"buttonLayout");
00060
buttonSpacer =
new QSpacerItem( 30, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00061
buttonLayout->addItem(
buttonSpacer );
00062
00063
removeButton =
new QPushButton(
this,
"removeButton" );
00064
removeButton->setDefault( TRUE );
00065
buttonLayout->addWidget(
removeButton );
00066
00067
cancelButton =
new QPushButton(
this,
"cancelButton" );
00068
buttonLayout->addWidget(
cancelButton );
00069
RemoveSubprojectDlgBaseLayout->addLayout(
buttonLayout );
00070
languageChange();
00071 resize(
QSize(378, 147).expandedTo(minimumSizeHint()) );
00072 clearWState( WState_Polished );
00073
00074
00075 connect(
removeButton, SIGNAL( clicked() ),
this, SLOT(
accept() ) );
00076 connect(
cancelButton, SIGNAL( clicked() ),
this, SLOT(
reject() ) );
00077 }
00078
00079
00080
00081
00082 RemoveSubprojectDlgBase::~RemoveSubprojectDlgBase()
00083 {
00084
00085 }
00086
00087
00088
00089
00090
00091 void RemoveSubprojectDlgBase::languageChange()
00092 {
00093 setCaption( tr2i18n(
"[REMOVE SUBPROJECT]" ) );
00094
fileGroupBox->setTitle( tr2i18n(
"&Information" ) );
00095
removeLabel->setText( tr2i18n(
"[REMOVE QUESTION]" ) );
00096
removeCheckBox->setText( tr2i18n(
"Also &remove it from disk" ) );
00097
noticeLabel->setText( tr2i18n(
"<b>Note:</b> You will not be able to undo this operation!" ) );
00098
removeButton->setText( tr2i18n(
"&OK" ) );
00099
cancelButton->setText( tr2i18n(
"&Cancel" ) );
00100 }
00101
00102 void RemoveSubprojectDlgBase::accept()
00103 {
00104 qWarning(
"RemoveSubprojectDlgBase::accept(): Not implemented yet" );
00105 }
00106
00107 void RemoveSubprojectDlgBase::reject()
00108 {
00109 qWarning(
"RemoveSubprojectDlgBase::reject(): Not implemented yet" );
00110 }
00111
00112
#include "removesubprojectdlgbase.moc"