-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdaddonapplication.h
53 lines (45 loc) · 1.43 KB
/
daddonapplication.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef DADDONAPPLICATION_H
#define DADDONAPPLICATION_H
#include "libda_global.h"
#include <DApplication>
LDA_BEGIN_NAMESPACE
/**
* @brief Provides signal handling and open funcs of DApplication, with debugging arguments handling.
*/
class LIBDA_SHARED_EXPORT DAddonApplication : public Dtk::Widget::DApplication
{
Q_OBJECT
public:
Q_INVOKABLE explicit DAddonApplication(int &argc, char **argv, bool forceDebugEnabled = false);
~DAddonApplication() override;
/**
* @brief handleQuitAction, triggered to exit in the right menu of D*Bar
*/
Q_INVOKABLE void handleQuitAction() override;
/**
* @brief handleHelpAction, shows the manual section dedicated to this app
*/
Q_INVOKABLE void handleHelpAction() override;
/**
* @brief handleAboutAction, shows the about popup
*/
Q_INVOKABLE void handleAboutAction() override;
/**
* @brief Are the over FXs on?
* @return Returns if the hover effects are possible in the whole app (not disabled)
*/
Q_INVOKABLE bool areHoverEffectsEnabled();
/**
* @brief Enable or don't the hover effects in the whole app
* @param enable
*/
Q_INVOKABLE void setEnabledHoverEffects(bool enable);
/**
* @brief Toggle if the effects have to be enabled or not
*/
Q_INVOKABLE void toggleHoverEffects();
bool is_mtrace_active();
bool isConsoleDebug();
};
LDA_END_NAMESPACE
#endif // DADDONAPPLICATION_H