lib/project/makeoptionswidgetbase.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 "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
00027
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
00071 setTabOrder(
abort_box,
dontact_box );
00072 setTabOrder(
dontact_box,
makebin_edit );
00073 setTabOrder(
makebin_edit,
jobs_box );
00074
00075
00076
jobs_label->setBuddy(
jobs_box );
00077
makebin_label->setBuddy(
makebin_edit );
00078 }
00079
00080
00081
00082
00083 MakeOptionsWidgetBase::~MakeOptionsWidgetBase()
00084 {
00085
00086 }
00087
00088
00089
00090
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"
This file is part of the documentation for KDevelop Version 3.0.4.