Chrysalis - CLO3D DevTools Extension
Toggle main menu visibility
Loading...
Searching...
No Matches
GeneralUIExporterOptions.h
Go to the documentation of this file.
1
#ifndef CHRYSALIS_GENERALUIEXPORTEROPTIONS_H
2
#define CHRYSALIS_GENERALUIEXPORTEROPTIONS_H
3
4
#include "BaseNativeShortcutHandler.h"
5
#include "
BaseUIExporterOptions.h
"
6
7
namespace
CLO3D
{
8
class
GeneralUIExporterOptions
:
public
BaseUIExporterOptions
{
9
struct
Keys {
10
inline
static
const
QString SHORTCUT =
"shortcut"
;
11
inline
static
const
QString PICK_BY_MOUSE =
"pickMyMouse"
;
12
};
13
struct
Defaults {
14
inline
static
const
QKeySequence SHORTCUT = QKeySequence(
"Ctrl+Shift+E"
);
15
static
constexpr
bool
PICK_BY_MOUSE =
false
;
16
};
17
public
:
18
void
read
(
const
QSettings* settings)
override
;
19
void
write
(QSettings* settings)
override
;
20
21
[[nodiscard]] QKeySequence
getShortcut
()
const
;
22
[[nodiscard]]
bool
getPickMyMouse
()
const
;
23
24
void
setShortcut
(
const
QKeySequence& shortcut);
25
void
setPickMyMouse
(
bool
pickByMouse);
26
void
setShortcutHandler
(BaseNativeShortcutHandler* shortcutHandler);
27
private
:
28
QKeySequence shortcut_ = Defaults::SHORTCUT;
29
bool
pickByMouse_ = Defaults::PICK_BY_MOUSE;
30
31
BaseNativeShortcutHandler* shortcutHandler_ =
nullptr
;
32
};
33
}
34
35
#endif
//CHRYSALIS_GENERALUIEXPORTEROPTIONS_H
BaseUIExporterOptions.h
CLO3D::BaseUIExporterOptions
Definition
BaseUIExporterOptions.h:7
CLO3D::GeneralUIExporterOptions
Definition
GeneralUIExporterOptions.h:8
CLO3D::GeneralUIExporterOptions::getPickMyMouse
bool getPickMyMouse() const
Definition
GeneralUIExporterOptions.cpp:25
CLO3D::GeneralUIExporterOptions::read
void read(const QSettings *settings) override
Definition
GeneralUIExporterOptions.cpp:9
CLO3D::GeneralUIExporterOptions::getShortcut
QKeySequence getShortcut() const
Definition
GeneralUIExporterOptions.cpp:21
CLO3D::GeneralUIExporterOptions::setPickMyMouse
void setPickMyMouse(bool pickByMouse)
Definition
GeneralUIExporterOptions.cpp:34
CLO3D::GeneralUIExporterOptions::write
void write(QSettings *settings) override
Definition
GeneralUIExporterOptions.cpp:15
CLO3D::GeneralUIExporterOptions::setShortcutHandler
void setShortcutHandler(BaseNativeShortcutHandler *shortcutHandler)
Definition
GeneralUIExporterOptions.cpp:38
CLO3D::GeneralUIExporterOptions::setShortcut
void setShortcut(const QKeySequence &shortcut)
Definition
GeneralUIExporterOptions.cpp:29
CLO3D
Definition
BaseDevTool.h:6
integrations
clo3d
extensions
dev-tools
include
GeneralUIExporterOptions.h
Generated by
1.17.0