• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop Buildtool Widgets Library
 

KDevelop Buildtool Widgets Library

  • buildtools
  • lib
  • widgets
makeoptionswidget.cpp
1 /* This file is part of the KDE project
2  Copyright (C) 2001-2002 Bernd Gehrmann <bernd@kdevelop.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #include "makeoptionswidget.h"
21 
22 #include <tqcheckbox.h>
23 #include <klineedit.h>
24 #include <tqspinbox.h>
25 #include <tqlistview.h>
26 #include <tqgroupbox.h>
27 
28 #include "domutil.h"
29 #include "environmentvariableswidget.h"
30 
31 MakeOptionsWidget::MakeOptionsWidget(TQDomDocument &dom, const TQString &configGroup,
32  TQWidget *parent, const char *name)
33  : MakeOptionsWidgetBase(parent, name),
34  m_dom(dom), m_configGroup(configGroup)
35 {
36  env_var_group->setColumnLayout( 1, Qt::Vertical );
37  m_environmentVariablesWidget = new EnvironmentVariablesWidget( dom, configGroup + "/make/envvars", env_var_group );
38 
39  abort_box->setChecked(DomUtil::readBoolEntry(dom, configGroup + "/make/abortonerror", true ));
40  jobs_box->setValue(DomUtil::readIntEntry(dom, configGroup + "/make/numberofjobs"));
41  runMultiJobs->setChecked(DomUtil::readBoolEntry(dom, configGroup + "/make/runmultiplejobs"));
42  dontact_box->setChecked(DomUtil::readBoolEntry(dom, configGroup + "/make/dontact"));
43  makebin_edit->setText(DomUtil::readEntry(dom, configGroup + "/make/makebin"));
44  prio_box->setValue(DomUtil::readIntEntry(dom, configGroup + "/make/prio"));
45 }
46 
47 
48 MakeOptionsWidget::~MakeOptionsWidget()
49 {}
50 
51 
52 void MakeOptionsWidget::accept()
53 {
54  DomUtil::writeBoolEntry(m_dom, m_configGroup + "/make/abortonerror", abort_box->isChecked());
55  DomUtil::writeBoolEntry(m_dom, m_configGroup + "/make/runmultiplejobs", runMultiJobs->isChecked());
56  DomUtil::writeIntEntry(m_dom, m_configGroup + "/make/numberofjobs", jobs_box->value());
57  DomUtil::writeBoolEntry(m_dom, m_configGroup + "/make/dontact", dontact_box->isChecked());
58  DomUtil::writeEntry(m_dom, m_configGroup + "/make/makebin", makebin_edit->text());
59  DomUtil::writeIntEntry(m_dom, m_configGroup + "/make/prio", prio_box->value());
60 
61  m_environmentVariablesWidget->accept();
62 }
63 
64 #include "makeoptionswidget.moc"
EnvironmentVariablesWidget
Environment variables widget.
Definition: environmentvariableswidget.h:31

KDevelop Buildtool Widgets Library

Skip menu "KDevelop Buildtool Widgets Library"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

KDevelop Buildtool Widgets Library

Skip menu "KDevelop Buildtool Widgets Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop Buildtool Widgets Library by doxygen 1.8.13
This website is maintained by Timothy Pearson.