KDevelop API Documentation

buildtools/script/scriptoptionswidgetbase.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 './scriptoptionswidgetbase.ui' 00005 ** 00006 ** Created: Wed Oct 6 17:35:38 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 "scriptoptionswidgetbase.h" 00013 00014 #include <qvariant.h> 00015 #include <kdialog.h> 00016 #include <qpushbutton.h> 00017 #include <qlabel.h> 00018 #include <qlineedit.h> 00019 #include <qlayout.h> 00020 #include <qtooltip.h> 00021 #include <qwhatsthis.h> 00022 00023 /* 00024 * Constructs a ScriptOptionsWidgetBase as a child of 'parent', with the 00025 * name 'name' and widget flags set to 'f'. 00026 */ 00027 ScriptOptionsWidgetBase::ScriptOptionsWidgetBase( QWidget* parent, const char* name, WFlags fl ) 00028 : QWidget( parent, name, fl ) 00029 { 00030 if ( !name ) 00031 setName( "script_project_options" ); 00032 script_project_optionsLayout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint(), "script_project_optionsLayout"); 00033 00034 includepatterns_label = new QLabel( this, "includepatterns_label" ); 00035 script_project_optionsLayout->addWidget( includepatterns_label ); 00036 00037 Layout2 = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "Layout2"); 00038 Spacer4 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Minimum ); 00039 Layout2->addItem( Spacer4 ); 00040 00041 includepatterns_edit = new QLineEdit( this, "includepatterns_edit" ); 00042 Layout2->addWidget( includepatterns_edit ); 00043 script_project_optionsLayout->addLayout( Layout2 ); 00044 Spacer7 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Minimum ); 00045 script_project_optionsLayout->addItem( Spacer7 ); 00046 00047 excludepatterns_label = new QLabel( this, "excludepatterns_label" ); 00048 script_project_optionsLayout->addWidget( excludepatterns_label ); 00049 00050 Layout2_2 = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "Layout2_2"); 00051 Spacer4_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Minimum ); 00052 Layout2_2->addItem( Spacer4_2 ); 00053 00054 excludepatterns_edit = new QLineEdit( this, "excludepatterns_edit" ); 00055 Layout2_2->addWidget( excludepatterns_edit ); 00056 script_project_optionsLayout->addLayout( Layout2_2 ); 00057 Spacer6 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); 00058 script_project_optionsLayout->addItem( Spacer6 ); 00059 languageChange(); 00060 resize( QSize(600, 482).expandedTo(minimumSizeHint()) ); 00061 clearWState( WState_Polished ); 00062 00063 // buddies 00064 includepatterns_label->setBuddy( includepatterns_edit ); 00065 excludepatterns_label->setBuddy( excludepatterns_edit ); 00066 } 00067 00068 /* 00069 * Destroys the object and frees any allocated resources 00070 */ 00071 ScriptOptionsWidgetBase::~ScriptOptionsWidgetBase() 00072 { 00073 // no need to delete child widgets, Qt does it all for us 00074 } 00075 00076 /* 00077 * Sets the strings of the subwidgets using the current 00078 * language. 00079 */ 00080 void ScriptOptionsWidgetBase::languageChange() 00081 { 00082 setCaption( tr2i18n( "Script Project Options" ) ); 00083 includepatterns_label->setText( tr2i18n( "&Include files into the project with the following patterns:" ) ); 00084 excludepatterns_label->setText( tr2i18n( "&Exclude the following patterns:" ) ); 00085 } 00086 00087 #include "scriptoptionswidgetbase.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:55 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003