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 "perlconfigwidget.h"
14
#include <qcheckbox.h>
15
#include <qlineedit.h>
19
PerlConfigWidget::PerlConfigWidget(QDomDocument &projectDom,
20
QWidget *parent, const char *name)
21
: PerlConfigWidgetBase(parent, name), dom(projectDom)
23
interpreter_edit->setText(DomUtil::readEntry(dom, "/kdevperlsupport/run/interpreter"));
24
terminal_box->setChecked(DomUtil::readBoolEntry(dom, "/kdevperlsupport/run/terminal"));
28
PerlConfigWidget::~PerlConfigWidget()
32
void PerlConfigWidget::accept()
34
DomUtil::writeEntry(dom, "/kdevperlsupport/run/interpreter", interpreter_edit->text());
35
DomUtil::writeBoolEntry(dom, "/kdevperlsupport/run/terminal", terminal_box->isChecked());
38
#include "perlconfigwidget.moc"