KWin
Loading...
Searching...
No Matches
touch.h
Go to the documentation of this file.
1/*
2 KWin - the KDE window manager
3 This file is part of the KDE project.
4
5 SPDX-FileCopyrightText: 2009 Lucas Murray <lmurray@undefinedfire.com>
6 SPDX-FileCopyrightText: 2020 Cyril Rossi <cyril.rossi@enioka.com>
7
8 SPDX-License-Identifier: GPL-2.0-or-later
9*/
10
11#pragma once
12
13#include <kcmodule.h>
14#include <ksharedconfig.h>
15
16#include "effect/globals.h"
17
18class QShowEvent;
19
20namespace KWin
21{
22class KWinTouchScreenData;
23class KWinTouchScreenEdgeConfigForm;
24class KWinTouchScreenScriptSettings;
25class KWinTouchScreenEdgeEffectSettings;
26
27class KWinScreenEdgesConfig : public KCModule
28{
29 Q_OBJECT
30
31public:
32 explicit KWinScreenEdgesConfig(QObject *parent, const KPluginMetaData &data);
34
35public Q_SLOTS:
36 void save() override;
37 void load() override;
38 void defaults() override;
39
40private:
42 KSharedConfigPtr m_config;
43 QStringList m_effects; // list of effect IDs ordered in the list they are presented in the menu
44 QStringList m_scripts; // list of script IDs ordered in the list they are presented in the menu
45 QHash<QString, KWinTouchScreenScriptSettings *> m_scriptSettings;
46 QHash<QString, KWinTouchScreenEdgeEffectSettings *> m_effectSettings;
47 KWinTouchScreenData *m_data;
48
49 enum EffectActions {
50 PresentWindowsAll = ELECTRIC_ACTION_COUNT, // Start at the end of built in actions
51 PresentWindowsCurrent,
52 PresentWindowsClass,
53 Overview,
54 TabBox,
55 TabBoxAlternative,
56 EffectCount
57 };
58
59 void monitorInit();
60 void monitorLoadSettings();
61 void monitorLoadDefaultSettings();
62 void monitorSaveSettings();
63 void monitorShowEvent();
64
65 static ElectricBorderAction electricBorderActionFromString(const QString &string);
66 static QString electricBorderActionToString(int action);
67};
68
69} // namespace
KWinScreenEdgesConfig(QObject *parent, const KPluginMetaData &data)
ElectricBorderAction
Definition globals.h:78
@ ELECTRIC_ACTION_COUNT
Definition globals.h:85