6 #ifndef SWIFT_GUI_COMPONENTS_HOTKEYDIALOG_H
7 #define SWIFT_GUI_COMPONENTS_HOTKEYDIALOG_H
11 #include <QScopedPointer>
28 namespace swift::misc::input
30 class CHotkeyCombination;
31 class CKeyboardKeyList;
47 void setSelectedIndex(
int index);
54 void updateSelectedIndex(
int index);
78 void initStyleSheet();
81 virtual void accept()
override;
86 QWidget *parent =
nullptr);
89 void advancedModeChanged();
93 void changeSelectedAction(
const QItemSelection &selected,
const QItemSelection &deselected);
99 void changeApplicableMachine(
int index);
101 void synchronizeSimpleSelection();
102 void synchronizeAdvancedSelection();
103 void setupAdvancedFrame();
104 void clearAdvancedFrame();
105 void advancedKeyChanged(
int oldIndex,
int newIndex);
108 QScopedPointer<Ui::CHotkeyDialog> ui;
113 static const QString &noKeyButton();
swift::misc::input::CActionHotkey getSelectedActionHotkey() const
Get hotkey selected by user.
ComboBox for selecting keyboard keys.
void keySelectionChanged(int oldIndex, int newIndex)
User has changed the selection.
Action tree model, used with hotkey actions.
Value object encapsulating a list of object identifiers.
Backend services of the swift project, like dealing with the network or the simulators.
High level reusable GUI components.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.