KDevelop API Documentation

pythonconfigwidget.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2002 by Bernd Gehrmann                                  *
00003  *   bernd@kdevelop.org                                                    *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  ***************************************************************************/
00011 
00012 #include "pythonconfigwidget.h"
00013 
00014 #include <qcheckbox.h>
00015 #include <qlineedit.h>
00016 #include "domutil.h"
00017 
00018 
00019 PythonConfigWidget::PythonConfigWidget(QDomDocument &projectDom,
00020                                        QWidget *parent, const char *name)
00021     : PythonConfigWidgetBase(parent, name), dom(projectDom)
00022 {
00023     interpreter_edit->setText(DomUtil::readEntry(dom, "/kdevpythonsupport/run/interpreter"));
00024     terminal_box->setChecked(DomUtil::readBoolEntry(dom, "/kdevpythonsupport/run/terminal"));
00025 }
00026 
00027 
00028 PythonConfigWidget::~PythonConfigWidget()
00029 {}
00030 
00031 
00032 void PythonConfigWidget::accept()
00033 {
00034     DomUtil::writeEntry(dom, "/kdevpythonsupport/run/interpreter", interpreter_edit->text());
00035     DomUtil::writeBoolEntry(dom, "/kdevpythonsupport/run/terminal", terminal_box->isChecked());
00036 }
00037 
00038 #include "pythonconfigwidget.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:33 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003