Deskflow
1.26.0.418
Keyboard and mouse sharing utility
Toggle main menu visibility
Loading...
Searching...
No Matches
ActionDialog.h
Go to the documentation of this file.
1
/*
2
* Deskflow -- mouse and keyboard sharing utility
3
* SPDX-FileCopyrightText: (C) 2025 Chris Rizzitello <sithlord48@gmail.com>
4
* SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
5
* SPDX-FileCopyrightText: (C) 2012 - 2016 Synergy App Ltd
6
* SPDX-FileCopyrightText: (C) 2008 Volker Lanz <vl@fidra.de>
7
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
8
*/
9
10
#pragma once
11
12
#include <QDialog>
13
14
class
Hotkey
;
15
class
Action
;
16
class
ServerConfig
;
17
class
KeySequenceWidget
;
18
19
namespace
Ui
{
20
class
ActionDialog;
21
}
22
23
class
ActionDialog
:
public
QDialog
24
{
25
Q_OBJECT
26
27
public
:
28
struct
ActionTypes
29
{
30
inline
static
const
auto
PressKey
= 0;
31
inline
static
const
auto
ReleaseKey
= 1;
32
inline
static
const
auto
ToggleKey
= 2;
33
inline
static
const
auto
SwitchTo
= 3;
34
inline
static
const
auto
SwitchInDirection
= 4;
35
inline
static
const
auto
SwitchToNextScreen
= 5;
36
inline
static
const
auto
ModifyCursorLock
= 6;
37
inline
static
const
auto
RestartServer
= 7;
38
};
39
40
ActionDialog
(QWidget *parent,
const
ServerConfig
&config,
Hotkey
&hotkey,
Action
&action);
41
~ActionDialog
()
override
;
42
43
protected
Q_SLOTS:
44
void
accept
()
override
;
45
46
private
:
47
void
updateSize();
48
void
keySequenceChanged();
49
void
itemToggled()
const
;
50
void
actionTypeChanged(
int
index);
51
bool
isKeyAction(
int
index)
const
;
52
bool
canSave()
const
;
53
54
std::unique_ptr<Ui::ActionDialog> ui;
55
Hotkey
&m_hotkey;
56
Action
&m_action;
57
};
ActionDialog::ActionDialog
ActionDialog(QWidget *parent, const ServerConfig &config, Hotkey &hotkey, Action &action)
Definition
ActionDialog.cpp:19
ActionDialog::~ActionDialog
~ActionDialog() override
ActionDialog::accept
void accept() override
Definition
ActionDialog.cpp:69
Action
Definition
Action.h:34
Hotkey
Definition
Hotkey.h:23
KeySequenceWidget
Definition
KeySequenceWidget.h:15
ServerConfig
Definition
ServerConfig.h:25
Ui
Definition
AboutDialog.h:13
ActionDialog::ActionTypes
Definition
ActionDialog.h:29
ActionDialog::ActionTypes::SwitchTo
static const auto SwitchTo
Definition
ActionDialog.h:33
ActionDialog::ActionTypes::SwitchToNextScreen
static const auto SwitchToNextScreen
Definition
ActionDialog.h:35
ActionDialog::ActionTypes::PressKey
static const auto PressKey
Definition
ActionDialog.h:30
ActionDialog::ActionTypes::ModifyCursorLock
static const auto ModifyCursorLock
Definition
ActionDialog.h:36
ActionDialog::ActionTypes::SwitchInDirection
static const auto SwitchInDirection
Definition
ActionDialog.h:34
ActionDialog::ActionTypes::ToggleKey
static const auto ToggleKey
Definition
ActionDialog.h:32
ActionDialog::ActionTypes::RestartServer
static const auto RestartServer
Definition
ActionDialog.h:37
ActionDialog::ActionTypes::ReleaseKey
static const auto ReleaseKey
Definition
ActionDialog.h:31
src
lib
gui
dialogs
ActionDialog.h
Generated by
1.18.0