Changeset View
Changeset View
Standalone View
Standalone View
kcms/componentchooser/componentchooserterminal.h
1 | /*************************************************************************** | 1 | /*************************************************************************** | ||
---|---|---|---|---|---|
2 | componentchooserterminal.h - description | 2 | componentchooserterminal.h - description | ||
3 | ------------------- | 3 | ------------------- | ||
4 | copyright : (C) 2002 by Joseph Wenninger <jowenn@kde.org> | 4 | copyright : (C) 2002 by Joseph Wenninger <jowenn@kde.org> | ||
5 | copyright : (C) 2020 by Méven Car <meven.car@enioka.com> | 5 | copyright : (C) 2020 by Méven Car <meven.car@enioka.com> | ||
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 _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 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 | bool isDefaults() const override; | | |||
34 | | ||||
35 | protected Q_SLOTS: | 33 | protected Q_SLOTS: | ||
36 | void selectTerminalApp(); | 34 | void selectTerminalApp(); | ||
37 | void selectTerminalEmulator(int index); | 35 | void selectTerminalEmulator(int index); | ||
38 | | ||||
39 | Q_SIGNALS: | | |||
40 | void changed(bool); | | |||
41 | | ||||
42 | private: | | |||
43 | int m_currentIndex = -1; | | |||
44 | int m_konsoleIndex = -1; | | |||
45 | }; | 36 | }; | ||
46 | 37 | | |||
47 | #endif | 38 | #endif |