add more spacing
[personal-kdebase.git] / workspace / krunner / configdialog.h
blobdfc48d2d593f80272ed511b81d802c31b6697c76
1 /*
2 * Copyright 2008 Ryan P. Bitanga <ryan.bitanga@gmail.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Library General Public License as
6 * published by the Free Software Foundation; either version 2, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details
14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef KRUNNERCONFIG_H
21 #define KRUNNERCONFIG_H
23 #include <KDialog>
25 class KRunnerDialog;
27 class KPluginSelector;
28 class QDialogButtonBox;
29 class QTabWidget;
31 namespace Plasma {
32 class RunnerManager;
35 class KRunnerConfigDialog : public KDialog
37 Q_OBJECT
38 public:
39 KRunnerConfigDialog(Plasma::RunnerManager *manager, QWidget *parent = 0);
40 ~KRunnerConfigDialog();
42 public slots:
43 void accept();
45 private slots:
46 void previewInterface();
47 void setInterface(int type);
48 void updateRunner(const QByteArray& runnerName);
50 private:
51 void init();
53 int m_interfaceType;
54 KRunnerDialog *m_preview;
55 KPluginSelector *m_sel;
56 Plasma::RunnerManager *m_manager;
59 #endif