buildtools/qmake/filepropertybase.cpp
Go to the documentation of this file.00001
#include <kdialog.h>
00002
#include <klocale.h>
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
#include "filepropertybase.h"
00013
00014
#include <qvariant.h>
00015
#include <kdialog.h>
00016
#include <qpushbutton.h>
00017
#include <qlabel.h>
00018
#include <qheader.h>
00019
#include <qlistview.h>
00020
#include <qlayout.h>
00021
#include <qtooltip.h>
00022
#include <qwhatsthis.h>
00023
00024
00025
00026
00027
00028
00029
00030
00031 FilePropertyBase::FilePropertyBase(
QWidget* parent,
const char* name,
bool modal, WFlags fl )
00032 :
QDialog( parent, name, modal, fl )
00033 {
00034
if ( !name )
00035 setName(
"FilePropertyBase" );
00036 setSizePolicy(
QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) );
00037
FilePropertyBaseLayout =
new QGridLayout(
this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(),
"FilePropertyBaseLayout");
00038
Spacer1 =
new QSpacerItem( 20, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
00039
FilePropertyBaseLayout->addItem(
Spacer1, 2, 0 );
00040
00041
buttonCancel =
new QPushButton(
this,
"buttonCancel" );
00042
00043
FilePropertyBaseLayout->addWidget(
buttonCancel, 2, 2 );
00044
00045
buttonOk =
new QPushButton(
this,
"buttonOk" );
00046
buttonOk->setDefault( TRUE );
00047
00048
FilePropertyBaseLayout->addWidget(
buttonOk, 2, 1 );
00049
00050
TextLabel1 =
new QLabel(
this,
"TextLabel1" );
00051
00052
FilePropertyBaseLayout->addWidget(
TextLabel1, 0, 0 );
00053
00054
ScopeTree =
new QListView(
this,
"ScopeTree" );
00055
ScopeTree->addColumn( tr2i18n(
"Project Scopes" ) );
00056
ScopeTree->header()->setClickEnabled( FALSE,
ScopeTree->header()->count() - 1 );
00057
ScopeTree->header()->setResizeEnabled( FALSE,
ScopeTree->header()->count() - 1 );
00058
00059
FilePropertyBaseLayout->addMultiCellWidget(
ScopeTree, 1, 1, 0, 2 );
00060
languageChange();
00061 resize(
QSize(373, 422).expandedTo(minimumSizeHint()) );
00062 clearWState( WState_Polished );
00063
00064
00065 connect(
buttonOk, SIGNAL( clicked() ),
this, SLOT(
updateFileProperties() ) );
00066 connect(
buttonCancel, SIGNAL( clicked() ),
this, SLOT( reject() ) );
00067
00068
00069 setTabOrder(
ScopeTree,
buttonOk );
00070 setTabOrder(
buttonOk,
buttonCancel );
00071
00072
00073
TextLabel1->setBuddy(
ScopeTree );
00074 }
00075
00076
00077
00078
00079 FilePropertyBase::~FilePropertyBase()
00080 {
00081
00082 }
00083
00084
00085
00086
00087
00088 void FilePropertyBase::languageChange()
00089 {
00090 setCaption( tr2i18n(
"Properties" ) );
00091
buttonCancel->setText( tr2i18n(
"&Cancel" ) );
00092
buttonOk->setText( tr2i18n(
"&OK" ) );
00093
TextLabel1->setText( tr2i18n(
"&Exclude in:" ) );
00094
ScopeTree->header()->setLabel( 0, tr2i18n(
"Project Scopes" ) );
00095 }
00096
00097 void FilePropertyBase::updateFileProperties()
00098 {
00099 qWarning(
"FilePropertyBase::updateFileProperties(): Not implemented yet" );
00100 }
00101
00102
#include "filepropertybase.moc"
This file is part of the documentation for KDevelop Version 3.0.4.