Changeset View
Changeset View
Standalone View
Standalone View
kcms/componentchooser/componentchooserfilemanager.h
Show All 15 Lines | 1 | /* This file is part of the KDE project | |||
---|---|---|---|---|---|
16 | along with this program; see the file COPYING. If not, write to | 16 | along with this program; see the file COPYING. If not, write to | ||
17 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
18 | Boston, MA 02110-1301, USA. | 18 | Boston, MA 02110-1301, USA. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #ifndef COMPONENTCHOOSERFILEMANAGER_H | 21 | #ifndef COMPONENTCHOOSERFILEMANAGER_H | ||
22 | #define COMPONENTCHOOSERFILEMANAGER_H | 22 | #define COMPONENTCHOOSERFILEMANAGER_H | ||
23 | 23 | | |||
24 | #include "ui_filemanagerconfig_ui.h" | | |||
25 | #include "componentchooser.h" | 24 | #include "componentchooser.h" | ||
25 | #include <QComboBox> | ||||
26 | 26 | | |||
27 | class CfgFileManager: public QWidget, public Ui::FileManagerConfig_UI, public CfgPlugin | 27 | class CfgFileManager: public CfgPlugin | ||
28 | { | 28 | { | ||
29 | Q_OBJECT | 29 | Q_OBJECT | ||
30 | public: | 30 | public: | ||
31 | CfgFileManager(QWidget *parent); | 31 | CfgFileManager(QWidget *parent); | ||
32 | ~CfgFileManager() override; | 32 | ~CfgFileManager() override; | ||
33 | void load(KConfig *cfg) override; | 33 | void load(KConfig *cfg) override; | ||
34 | void save(KConfig *cfg) override; | 34 | void save(KConfig *cfg) override; | ||
35 | void defaults() override; | | |||
36 | bool isDefaults() const override; | | |||
37 | 35 | | |||
38 | protected Q_SLOTS: | 36 | protected Q_SLOTS: | ||
39 | void selectFileManager(int index); | 37 | void selectFileManager(int index); | ||
40 | | ||||
41 | Q_SIGNALS: | | |||
42 | void changed(bool); | | |||
43 | | ||||
44 | private: | | |||
45 | int m_currentIndex = -1; | | |||
46 | int m_dolphinIndex = -1; | | |||
47 | }; | 38 | }; | ||
48 | 39 | | |||
49 | #endif | 40 | #endif |