Changeset View
Changeset View
Standalone View
Standalone View
kcms/componentchooser/componentchooserterminal.h
Show All 10 Lines | |||||
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 Foundationi * | ||
13 | * * | 13 | * * | ||
14 | ***************************************************************************/ | 14 | ***************************************************************************/ | ||
15 | 15 | | |||
16 | #ifndef _COMPONENTCHOOSERTERMINAL_H_ | 16 | #ifndef _COMPONENTCHOOSERTERMINAL_H_ | ||
17 | #define _COMPONENTCHOOSERTERMINAL_H_ | 17 | #define _COMPONENTCHOOSERTERMINAL_H_ | ||
18 | 18 | | |||
19 | #include "ui_terminalemulatorconfig_ui.h" | | |||
20 | #include "componentchooser.h" | 19 | #include "componentchooser.h" | ||
20 | #include <QComboBox> | ||||
21 | | ||||
21 | class KConfig; | 22 | class KConfig; | ||
22 | class CfgPlugin; | 23 | class CfgPlugin; | ||
23 | 24 | | |||
24 | class CfgTerminalEmulator: public QWidget, public Ui::TerminalEmulatorConfig_UI, public CfgPlugin | 25 | class CfgTerminalEmulator: public QComboBox, public CfgPlugin | ||
25 | { | 26 | { | ||
26 | Q_OBJECT | 27 | Q_OBJECT | ||
27 | public: | 28 | public: | ||
28 | CfgTerminalEmulator(QWidget *parent); | 29 | CfgTerminalEmulator(QWidget *parent); | ||
29 | ~CfgTerminalEmulator() override; | 30 | ~CfgTerminalEmulator() override; | ||
30 | void load(KConfig *cfg) override; | 31 | void load(KConfig *cfg) override; | ||
31 | void save(KConfig *cfg) override; | 32 | void save(KConfig *cfg) override; | ||
32 | void defaults() override; | 33 | void defaults() override; | ||
33 | bool isDefaults() const override; | 34 | bool isDefaults() const override; | ||
35 | bool hasChanged() const override; | ||||
34 | 36 | | |||
35 | protected Q_SLOTS: | 37 | protected Q_SLOTS: | ||
36 | void selectTerminalApp(); | 38 | void selectTerminalApp(); | ||
37 | void selectTerminalEmulator(int index); | 39 | void selectTerminalEmulator(int index); | ||
38 | 40 | | |||
39 | Q_SIGNALS: | 41 | Q_SIGNALS: | ||
40 | void changed(bool); | 42 | void changed(bool); | ||
41 | 43 | | |||
42 | private: | 44 | private: | ||
43 | int m_currentIndex = -1; | 45 | int m_currentIndex = -1; | ||
44 | int m_konsoleIndex = -1; | 46 | int m_konsoleIndex = -1; | ||
45 | }; | 47 | }; | ||
46 | 48 | | |||
47 | #endif | 49 | #endif |