KDevelop API Documentation

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 Feb 22 08:50:56 2005
00007 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.4   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 <qcheckbox.h>
00020 #include <qspinbox.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     makebin_label = new QLabel( this, "makebin_label" );
00037 
00038     make_options_widgetLayout->addWidget( makebin_label, 2, 0 );
00039 
00040     env_var_group = new QGroupBox( this, "env_var_group" );
00041 
00042     make_options_widgetLayout->addMultiCellWidget( env_var_group, 4, 4, 0, 1 );
00043 
00044     makebin_edit = new QLineEdit( this, "makebin_edit" );
00045 
00046     make_options_widgetLayout->addWidget( makebin_edit, 2, 1 );
00047 
00048     abort_box = new QCheckBox( this, "abort_box" );
00049 
00050     make_options_widgetLayout->addMultiCellWidget( abort_box, 0, 0, 0, 1 );
00051 
00052     dontact_box = new QCheckBox( this, "dontact_box" );
00053 
00054     make_options_widgetLayout->addMultiCellWidget( dontact_box, 1, 1, 0, 1 );
00055 
00056     layout4 = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "layout4"); 
00057 
00058     jobs_label = new QLabel( this, "jobs_label" );
00059     layout4->addWidget( jobs_label );
00060 
00061     jobs_box = new QSpinBox( this, "jobs_box" );
00062     jobs_box->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, jobs_box->sizePolicy().hasHeightForWidth() ) );
00063     jobs_box->setMaxValue( 30 );
00064     jobs_box->setMinValue( 1 );
00065     layout4->addWidget( jobs_box );
00066     spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Fixed, QSizePolicy::Minimum );
00067     layout4->addItem( spacer2 );
00068 
00069     prio_label = new QLabel( this, "prio_label" );
00070     layout4->addWidget( prio_label );
00071 
00072     prio_box = new QSpinBox( this, "prio_box" );
00073     prio_box->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, prio_box->sizePolicy().hasHeightForWidth() ) );
00074     prio_box->setMaxValue( 19 );
00075     prio_box->setMinValue( -20 );
00076     layout4->addWidget( prio_box );
00077     spacer1 = new QSpacerItem( 50, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00078     layout4->addItem( spacer1 );
00079 
00080     make_options_widgetLayout->addMultiCellLayout( layout4, 3, 3, 0, 1 );
00081     languageChange();
00082     resize( QSize(467, 330).expandedTo(minimumSizeHint()) );
00083     clearWState( WState_Polished );
00084 
00085     // tab order
00086     setTabOrder( abort_box, dontact_box );
00087     setTabOrder( dontact_box, makebin_edit );
00088     setTabOrder( makebin_edit, jobs_box );
00089 
00090     // buddies
00091     makebin_label->setBuddy( makebin_edit );
00092     jobs_label->setBuddy( jobs_box );
00093 }
00094 
00095 /*
00096  *  Destroys the object and frees any allocated resources
00097  */
00098 MakeOptionsWidgetBase::~MakeOptionsWidgetBase()
00099 {
00100     // no need to delete child widgets, Qt does it all for us
00101 }
00102 
00103 /*
00104  *  Sets the strings of the subwidgets using the current
00105  *  language.
00106  */
00107 void MakeOptionsWidgetBase::languageChange()
00108 {
00109     setCaption( tr2i18n( "Make Options" ) );
00110     makebin_label->setText( tr2i18n( "Name of make &executable:" ) );
00111     env_var_group->setTitle( tr2i18n( "Environment &Variables" ) );
00112     abort_box->setText( tr2i18n( "&Abort on first error" ) );
00113     dontact_box->setText( tr2i18n( "Only di&splay commands without actually executing them" ) );
00114     jobs_label->setText( tr2i18n( "Number of simultaneous &jobs:" ) );
00115     prio_label->setText( tr2i18n( "Make priority:" ) );
00116 }
00117 
00118 #include "makeoptionswidgetbase.moc"
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:22:36 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003