KDevelop API Documentation

buildtools/qmake/filepropertybase.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 './filepropertybase.ui' 00005 ** 00006 ** Created: Tue Oct 19 07:58:48 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 "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 * Constructs a FilePropertyBase 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 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 // signals and slots connections 00065 connect( buttonOk, SIGNAL( clicked() ), this, SLOT( updateFileProperties() ) ); 00066 connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); 00067 00068 // tab order 00069 setTabOrder( ScopeTree, buttonOk ); 00070 setTabOrder( buttonOk, buttonCancel ); 00071 00072 // buddies 00073 TextLabel1->setBuddy( ScopeTree ); 00074 } 00075 00076 /* 00077 * Destroys the object and frees any allocated resources 00078 */ 00079 FilePropertyBase::~FilePropertyBase() 00080 { 00081 // no need to delete child widgets, Qt does it all for us 00082 } 00083 00084 /* 00085 * Sets the strings of the subwidgets using the current 00086 * language. 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"
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:37 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003