KDevelop API Documentation

lib/project/makeoptionswidgetbase.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 './makeoptionswidgetbase.ui' 00005 ** 00006 ** Created: Tue Oct 19 07:48:02 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 "makeoptionswidgetbase.h" 00013 00014 #include <qvariant.h> 00015 #include <kdialog.h> 00016 #include <qlabel.h> 00017 #include <qgroupbox.h> 00018 #include <qlineedit.h> 00019 #include <qspinbox.h> 00020 #include <qcheckbox.h> 00021 #include <qlayout.h> 00022 #include <qtooltip.h> 00023 #include <qwhatsthis.h> 00024 00025 /* 00026 * Constructs a MakeOptionsWidgetBase as a child of 'parent', with the 00027 * name 'name' and widget flags set to 'f'. 00028 */ 00029 MakeOptionsWidgetBase::MakeOptionsWidgetBase( QWidget* parent, const char* name, WFlags fl ) 00030 : QWidget( parent, name, fl ) 00031 { 00032 if ( !name ) 00033 setName( "make_options_widget" ); 00034 make_options_widgetLayout = new QGridLayout( this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "make_options_widgetLayout"); 00035 00036 jobs_label = new QLabel( this, "jobs_label" ); 00037 00038 make_options_widgetLayout->addWidget( jobs_label, 3, 0 ); 00039 00040 makebin_label = new QLabel( this, "makebin_label" ); 00041 00042 make_options_widgetLayout->addWidget( makebin_label, 2, 0 ); 00043 00044 env_var_group = new QGroupBox( this, "env_var_group" ); 00045 00046 make_options_widgetLayout->addMultiCellWidget( env_var_group, 4, 4, 0, 1 ); 00047 00048 makebin_edit = new QLineEdit( this, "makebin_edit" ); 00049 00050 make_options_widgetLayout->addWidget( makebin_edit, 2, 1 ); 00051 00052 jobs_box = new QSpinBox( this, "jobs_box" ); 00053 jobs_box->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, jobs_box->sizePolicy().hasHeightForWidth() ) ); 00054 jobs_box->setMaxValue( 30 ); 00055 jobs_box->setMinValue( 1 ); 00056 00057 make_options_widgetLayout->addWidget( jobs_box, 3, 1 ); 00058 00059 abort_box = new QCheckBox( this, "abort_box" ); 00060 00061 make_options_widgetLayout->addMultiCellWidget( abort_box, 0, 0, 0, 1 ); 00062 00063 dontact_box = new QCheckBox( this, "dontact_box" ); 00064 00065 make_options_widgetLayout->addMultiCellWidget( dontact_box, 1, 1, 0, 1 ); 00066 languageChange(); 00067 resize( QSize(489, 300).expandedTo(minimumSizeHint()) ); 00068 clearWState( WState_Polished ); 00069 00070 // tab order 00071 setTabOrder( abort_box, dontact_box ); 00072 setTabOrder( dontact_box, makebin_edit ); 00073 setTabOrder( makebin_edit, jobs_box ); 00074 00075 // buddies 00076 jobs_label->setBuddy( jobs_box ); 00077 makebin_label->setBuddy( makebin_edit ); 00078 } 00079 00080 /* 00081 * Destroys the object and frees any allocated resources 00082 */ 00083 MakeOptionsWidgetBase::~MakeOptionsWidgetBase() 00084 { 00085 // no need to delete child widgets, Qt does it all for us 00086 } 00087 00088 /* 00089 * Sets the strings of the subwidgets using the current 00090 * language. 00091 */ 00092 void MakeOptionsWidgetBase::languageChange() 00093 { 00094 setCaption( tr2i18n( "Make Options" ) ); 00095 jobs_label->setText( tr2i18n( "Number of simultaneous &jobs:" ) ); 00096 makebin_label->setText( tr2i18n( "Name of make &executable:" ) ); 00097 env_var_group->setTitle( tr2i18n( "Environment &Variables" ) ); 00098 abort_box->setText( tr2i18n( "&Abort on first error" ) ); 00099 dontact_box->setText( tr2i18n( "Only di&splay commands without actually executing them" ) ); 00100 } 00101 00102 #include "makeoptionswidgetbase.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:48 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003