~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to languages/python/pythonconfigwidget.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2006-05-23 18:39:42 UTC
  • Revision ID: james.westby@ubuntu.com-20060523183942-hucifbvh68k2bwz7
Tags: upstream-3.3.2
Import upstream version 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2002 by Bernd Gehrmann                                  *
 
3
 *   bernd@kdevelop.org                                                    *
 
4
 *                                                                         *
 
5
 *   This program is free software; you can redistribute it and/or modify  *
 
6
 *   it under the terms of the GNU General Public License as published by  *
 
7
 *   the Free Software Foundation; either version 2 of the License, or     *
 
8
 *   (at your option) any later version.                                   *
 
9
 *                                                                         *
 
10
 ***************************************************************************/
 
11
 
 
12
#include "pythonconfigwidget.h"
 
13
 
 
14
#include <qcheckbox.h>
 
15
#include <qlineedit.h>
 
16
#include "domutil.h"
 
17
 
 
18
 
 
19
PythonConfigWidget::PythonConfigWidget(QDomDocument &projectDom,
 
20
                                       QWidget *parent, const char *name)
 
21
    : PythonConfigWidgetBase(parent, name), dom(projectDom)
 
22
{
 
23
    interpreter_edit->setText(DomUtil::readEntry(dom, "/kdevpythonsupport/run/interpreter"));
 
24
    terminal_box->setChecked(DomUtil::readBoolEntry(dom, "/kdevpythonsupport/run/terminal"));
 
25
}
 
26
 
 
27
 
 
28
PythonConfigWidget::~PythonConfigWidget()
 
29
{}
 
30
 
 
31
 
 
32
void PythonConfigWidget::accept()
 
33
{
 
34
    DomUtil::writeEntry(dom, "/kdevpythonsupport/run/interpreter", interpreter_edit->text());
 
35
    DomUtil::writeBoolEntry(dom, "/kdevpythonsupport/run/terminal", terminal_box->isChecked());
 
36
}
 
37
 
 
38
#include "pythonconfigwidget.moc"