KDevelop API Documentation

languages/perl/perlconfigwidget.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 "perlconfigwidget.h" 00013 00014 #include <qcheckbox.h> 00015 #include <qlineedit.h> 00016 #include "domutil.h" 00017 00018 00019 PerlConfigWidget::PerlConfigWidget(QDomDocument &projectDom, 00020 QWidget *parent, const char *name) 00021 : PerlConfigWidgetBase(parent, name), dom(projectDom) 00022 { 00023 interpreter_edit->setText(DomUtil::readEntry(dom, "/kdevperlsupport/run/interpreter")); 00024 terminal_box->setChecked(DomUtil::readBoolEntry(dom, "/kdevperlsupport/run/terminal")); 00025 } 00026 00027 00028 PerlConfigWidget::~PerlConfigWidget() 00029 {} 00030 00031 00032 void PerlConfigWidget::accept() 00033 { 00034 DomUtil::writeEntry(dom, "/kdevperlsupport/run/interpreter", interpreter_edit->text()); 00035 DomUtil::writeBoolEntry(dom, "/kdevperlsupport/run/terminal", terminal_box->isChecked()); 00036 } 00037 00038 #include "perlconfigwidget.moc"
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:01:46 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003