1
/***************************************************************************
2
* Copyright (C) 2002 by Bernd Gehrmann *
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. *
10
***************************************************************************/
12
#include "pythonconfigwidget.h"
14
#include <qcheckbox.h>
15
#include <qlineedit.h>
19
PythonConfigWidget::PythonConfigWidget(QDomDocument &projectDom,
20
QWidget *parent, const char *name)
21
: PythonConfigWidgetBase(parent, name), dom(projectDom)
23
interpreter_edit->setText(DomUtil::readEntry(dom, "/kdevpythonsupport/run/interpreter"));
24
terminal_box->setChecked(DomUtil::readBoolEntry(dom, "/kdevpythonsupport/run/terminal"));
28
PythonConfigWidget::~PythonConfigWidget()
32
void PythonConfigWidget::accept()
34
DomUtil::writeEntry(dom, "/kdevpythonsupport/run/interpreter", interpreter_edit->text());
35
DomUtil::writeBoolEntry(dom, "/kdevpythonsupport/run/terminal", terminal_box->isChecked());
38
#include "pythonconfigwidget.moc"