Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
ParameterApp.h
1#ifndef CPARAMETERAPP_H
2#define CPARAMETERAPP_H
3
4#include <QObject>
5#include <QTabWidget>
6
7class CParameterApp : public QObject
8{
9 Q_OBJECT
10
11public:
12 explicit CParameterApp(QObject *parent = nullptr);
13 virtual ~CParameterApp();
14
15public Q_SLOTS:
16 virtual int Load();
17 virtual int Save();
18
19public:
20 bool GetReceiveShortCut() const;
21 void SetReceiveShortCut(bool newReceiveShortCut);
22Q_SIGNALS:
23 void sigReceiveShortCutChanged();
24private:
25 bool m_bReceiveShortCut;
26 Q_PROPERTY(bool ReceiveShortCut READ GetReceiveShortCut WRITE SetReceiveShortCut NOTIFY sigReceiveShortCutChanged)
27
28public:
29 bool GetSaveMainWindowStatus() const;
30 void SetSaveMainWindowStatus(bool newSaveMainWindowStatus);
31Q_SIGNALS:
32 void sigSaveMainWindowStatusChanged();
33private:
34 bool m_bSaveMainWindowStatus;
35 Q_PROPERTY(bool SaveMainWindowStatus READ GetSaveMainWindowStatus WRITE SetSaveMainWindowStatus NOTIFY sigSaveMainWindowStatusChanged)
36
37public:
38 const QTabWidget::TabPosition &GetTabPosition() const;
39 void SetTabPosition(const QTabWidget::TabPosition &newTabPosition);
40Q_SIGNALS:
41 void sigTabPositionChanged();
42private:
43 QTabWidget::TabPosition m_TabPosition;
44 Q_PROPERTY(QTabWidget::TabPosition TabPosition READ GetTabPosition WRITE SetTabPosition NOTIFY sigTabPositionChanged)
45
46public:
47 const bool GetEnableTabToolTip() const;
48 void SetEnableTabToolTip(bool bEnable);
49Q_SIGNALS:
50 void sigEnableTabToolTipChanged();
51private:
52 bool m_bEnableTabToolTip;
53 Q_PROPERTY(bool EnableTabToolTip READ GetEnableTabToolTip WRITE SetEnableTabToolTip NOTIFY sigEnableTabToolTipChanged)
54
55public:
56 const bool GetEnableTabIcon() const;
57 void SetEnableTabIcon(bool bEnable);
58Q_SIGNALS:
59 void sigEnableTabIconChanged();
60private:
61 bool m_bEnableTabIcon;
62 Q_PROPERTY(bool EnableTabIcon READ GetEnableTabIcon WRITE SetEnableTabIcon NOTIFY sigEnableTabIconChanged)
63
64public:
65 int GetRecentMenuMaxCount() const;
66 void SetRecentMenuMaxCount(int newRecentMenuMaxCount);
67Q_SIGNALS:
68 void sigRecentMenuMaxCountChanged(int);
69private:
70 int m_nRecentMenuMaxCount;
71 Q_PROPERTY(int RecentMenuMaxCount READ GetRecentMenuMaxCount WRITE SetRecentMenuMaxCount NOTIFY sigRecentMenuMaxCountChanged)
72
73public:
74 enum class SystemTrayIconMenuType
75 {
76 No,
77 RecentOpen,
78 Remote,
79 View,
80 Tools,
81 MenuBar
82 };
83 Q_ENUM(SystemTrayIconMenuType)
84 SystemTrayIconMenuType GetSystemTrayIconMenuType() const;
85 void SetSystemTrayIconMenuType(SystemTrayIconMenuType newSystemTrayIconType);
86 bool GetEnableSystemTrayIcon() const;
87 int SetEnableSystemTrayIcon(bool bShow);
88Q_SIGNALS:
89 void sigSystemTrayIconTypeChanged();
90 void sigEnableSystemTrayIcon();
91private:
92 SystemTrayIconMenuType m_SystemTrayIconType;
93 bool m_bEnableSystemTrayIcon;
94 Q_PROPERTY(SystemTrayIconMenuType SystemTrayIconMenuType READ GetSystemTrayIconMenuType WRITE SetSystemTrayIconMenuType NOTIFY sigSystemTrayIconTypeChanged)
95
96public:
97 bool GetOpenLasterClose() const;
98 void SetOpenLasterClose(bool newOpenLasterClose);
99Q_SIGNALS:
100 void sigOpenLasterCloseChanged(bool bOpenLasterClose);
101private:
102 bool m_bOpenLasterClose;
103 Q_PROPERTY(bool bOpenLasterClose READ GetOpenLasterClose WRITE SetOpenLasterClose NOTIFY sigOpenLasterCloseChanged)
104
105public:
106 bool GetFavoriteEdit() const;
107 void SetFavoriteEdit(bool newFavoriteEdit);
108Q_SIGNALS:
109 void sigFavoriteEditChanged(bool FavoriteEdit);
110private:
111 bool m_bFavoriteEdit;
112 Q_PROPERTY(bool FavoriteEdit READ GetFavoriteEdit WRITE SetFavoriteEdit NOTIFY sigFavoriteEditChanged)
113
114public:
115 bool GetStatusBar() const;
116 void SetStatusBar(bool checked);
117private:
118 bool m_bStatusBar;
119 Q_PROPERTY(bool StatusBar READ GetStatusBar WRITE SetStatusBar)
120
121public:
122 bool GetTabBar() const;
123 void SetTabBar(bool checked);
124private:
125 bool m_bTabBar;
126 Q_PROPERTY(bool TabBar READ GetTabBar WRITE SetTabBar)
127
128public:
129 bool GetMenuBar() const;
130 void SetMenuBar(bool checked);
131private:
132 bool m_bMenuBar;
133 Q_PROPERTY(bool MenuBar READ GetMenuBar WRITE SetMenuBar)
134
135public:
136 const bool GetMessageBoxDisplayInformation() const;
137 void SetMessageBoxDisplayInformation(bool bEnable);
138private:
139 bool m_bMessageBoxDisplayInfomation;
140 Q_PROPERTY(bool MessageBoxDisplyInformtion READ GetMessageBoxDisplayInformation WRITE SetMessageBoxDisplayInformation)
141};
142
143#endif // CPARAMETERAPP_H