Changeset View
Changeset View
Standalone View
Standalone View
kcms/componentchooser/componentchooserbrowser.h
1 | /*************************************************************************** | 1 | /*************************************************************************** | ||
---|---|---|---|---|---|
2 | componentchooserbrowser.h | 2 | componentchooserbrowser.h | ||
3 | ------------------- | 3 | ------------------- | ||
4 | copyright : (C) 2002 by Joseph Wenninger | 4 | copyright : (C) 2002 by Joseph Wenninger | ||
5 | email : jowenn@kde.org | 5 | email : jowenn@kde.org | ||
6 | ***************************************************************************/ | 6 | ***************************************************************************/ | ||
7 | 7 | | |||
8 | /*************************************************************************** | 8 | /*************************************************************************** | ||
9 | * * | 9 | * * | ||
10 | * This program is free software; you can redistribute it and/or modify * | 10 | * This program is free software; you can redistribute it and/or modify * | ||
11 | * it under the terms of the GNU General Public License version 2 as * | 11 | * it under the terms of the GNU General Public License version 2 as * | ||
12 | * published by the Free Software Foundationi * | 12 | * published by the Free Software Foundation * | ||
13 | * * | 13 | * * | ||
14 | ***************************************************************************/ | 14 | ***************************************************************************/ | ||
15 | 15 | | |||
16 | #ifndef COMPONENTCHOOSERBROWSER_H | 16 | #ifndef COMPONENTCHOOSERBROWSER_H | ||
17 | #define COMPONENTCHOOSERBROWSER_H | 17 | #define COMPONENTCHOOSERBROWSER_H | ||
18 | 18 | | |||
19 | #include "ui_browserconfig_ui.h" | | |||
20 | #include "componentchooser.h" | 19 | #include "componentchooser.h" | ||
20 | #include <QComboBox> | ||||
21 | 21 | | |||
22 | class CfgBrowser: public QWidget, public Ui::BrowserConfig_UI, public CfgPlugin | 22 | class CfgBrowser: public CfgPlugin | ||
23 | { | 23 | { | ||
24 | Q_OBJECT | 24 | Q_OBJECT | ||
25 | public: | 25 | public: | ||
26 | CfgBrowser(QWidget *parent); | 26 | CfgBrowser(QWidget *parent); | ||
27 | ~CfgBrowser() override; | 27 | ~CfgBrowser() override; | ||
28 | void load(KConfig *cfg) override; | 28 | void load(KConfig *cfg) override; | ||
29 | void save(KConfig *cfg) override; | 29 | void save(KConfig *cfg) override; | ||
30 | void defaults() override; | | |||
31 | bool isDefaults() const override; | | |||
32 | 30 | | |||
33 | protected Q_SLOTS: | 31 | protected Q_SLOTS: | ||
34 | void selectBrowser(int index); | 32 | void selectBrowser(int index); | ||
35 | | ||||
36 | Q_SIGNALS: | | |||
37 | void changed(bool); | | |||
38 | private: | | |||
39 | int m_currentIndex = -1; | | |||
40 | int m_falkonIndex = -1; | | |||
41 | }; | 33 | }; | ||
42 | 34 | | |||
43 | #endif /* COMPONENTCHOOSERBROWSER_H */ | 35 | #endif /* COMPONENTCHOOSERBROWSER_H */ | ||
44 | 36 | |