Rabbit Remote Control 0.0.37
Loading...
Searching...
No Matches
ParameterApp.h
1#ifndef CPARAMETERAPP_H
2#define CPARAMETERAPP_H
3
4#include <QTabWidget>
5#include "Parameter.h"
6
8{
9 Q_OBJECT
10
11public:
12 explicit CParameterApp(QObject *parent = nullptr);
13 virtual ~CParameterApp();
14
15protected:
16 virtual int OnLoad(QSettings &set);
17 virtual int OnSave(QSettings &set);
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 enum class ViewType
39 {
40 Tab,
41 Splitter
42 };
43 Q_ENUM(ViewType)
44 ViewType GetViewType();
45 int SetViewType(ViewType type);
46Q_SIGNALS:
47 void sigViewTypeChanged();
48private:
49 ViewType m_ViewType;
50
51public:
52 const QTabWidget::TabPosition &GetTabPosition() const;
53 void SetTabPosition(const QTabWidget::TabPosition &newTabPosition);
54Q_SIGNALS:
55 void sigTabPositionChanged();
56private:
57 QTabWidget::TabPosition m_TabPosition;
58 Q_PROPERTY(QTabWidget::TabPosition TabPosition READ GetTabPosition WRITE SetTabPosition NOTIFY sigTabPositionChanged)
59
60public:
61 const bool GetEnableTabToolTip() const;
62 void SetEnableTabToolTip(bool bEnable);
63Q_SIGNALS:
64 void sigEnableTabToolTipChanged();
65private:
66 bool m_bEnableTabToolTip;
67 Q_PROPERTY(bool EnableTabToolTip READ GetEnableTabToolTip WRITE SetEnableTabToolTip NOTIFY sigEnableTabToolTipChanged)
68
69public:
70 const bool GetEnableTabIcon() const;
71 void SetEnableTabIcon(bool bEnable);
72Q_SIGNALS:
73 void sigEnableTabIconChanged();
74private:
75 bool m_bEnableTabIcon;
76 Q_PROPERTY(bool EnableTabIcon READ GetEnableTabIcon WRITE SetEnableTabIcon NOTIFY sigEnableTabIconChanged)
77
78public:
79 const bool GetTabElided() const;
80 void SetTabElided(bool bElided);
81Q_SIGNALS:
82 void sigTabElided();
83private:
84 bool m_bTabElided;
85
86public:
87 int GetRecentMenuMaxCount() const;
88 void SetRecentMenuMaxCount(int newRecentMenuMaxCount);
89Q_SIGNALS:
90 void sigRecentMenuMaxCountChanged(int);
91private:
92 int m_nRecentMenuMaxCount;
93 Q_PROPERTY(int RecentMenuMaxCount READ GetRecentMenuMaxCount WRITE SetRecentMenuMaxCount NOTIFY sigRecentMenuMaxCountChanged)
94
95public:
96 enum class SystemTrayIconMenuType
97 {
98 No,
99 RecentOpen,
100 Operate,
101 View,
102 Tools,
103 MenuBar
104 };
105 Q_ENUM(SystemTrayIconMenuType)
106 SystemTrayIconMenuType GetSystemTrayIconMenuType() const;
107 void SetSystemTrayIconMenuType(SystemTrayIconMenuType newSystemTrayIconType);
108 bool GetEnableSystemTrayIcon() const;
109 int SetEnableSystemTrayIcon(bool bShow);
110Q_SIGNALS:
111 void sigSystemTrayIconTypeChanged();
112 void sigEnableSystemTrayIcon();
113private:
114 SystemTrayIconMenuType m_SystemTrayIconType;
115 bool m_bEnableSystemTrayIcon;
116 Q_PROPERTY(SystemTrayIconMenuType SystemTrayIconMenuType READ GetSystemTrayIconMenuType WRITE SetSystemTrayIconMenuType NOTIFY sigSystemTrayIconTypeChanged)
117
118public:
119 bool GetOpenLasterClose() const;
120 void SetOpenLasterClose(bool newOpenLasterClose);
121Q_SIGNALS:
122 void sigOpenLasterCloseChanged(bool bOpenLasterClose);
123private:
124 bool m_bOpenLasterClose;
125 Q_PROPERTY(bool bOpenLasterClose READ GetOpenLasterClose WRITE SetOpenLasterClose NOTIFY sigOpenLasterCloseChanged)
126
127public:
128 bool GetFavoriteEdit() const;
129 void SetFavoriteEdit(bool newFavoriteEdit);
130Q_SIGNALS:
131 void sigFavoriteEditChanged(bool FavoriteEdit);
132
133private:
134 bool m_bFavoriteEdit;
135 Q_PROPERTY(bool FavoriteEdit READ GetFavoriteEdit WRITE SetFavoriteEdit NOTIFY sigFavoriteEditChanged)
136
137public:
138 bool GetStatusBar() const;
139 void SetStatusBar(bool checked);
140private:
141 bool m_bStatusBar;
142 Q_PROPERTY(bool StatusBar READ GetStatusBar WRITE SetStatusBar)
143
144public:
145 bool GetTabBar() const;
146 void SetTabBar(bool checked);
147private:
148 bool m_bTabBar;
149 Q_PROPERTY(bool TabBar READ GetTabBar WRITE SetTabBar)
150
151public:
152 bool GetMenuBar() const;
153 void SetMenuBar(bool checked);
154private:
155 bool m_bMenuBar;
156 Q_PROPERTY(bool MenuBar READ GetMenuBar WRITE SetMenuBar)
157
158public:
159 const bool GetMessageBoxDisplayInformation() const;
160 void SetMessageBoxDisplayInformation(bool bEnable);
161private:
162 bool m_bMessageBoxDisplayInfomation;
163 Q_PROPERTY(bool MessageBoxDisplyInformtion READ GetMessageBoxDisplayInformation WRITE SetMessageBoxDisplayInformation)
164
165public:
166 const bool GetDockListActiveShowToolBar() const;
167 void SetDockListActiveShowToolBar(bool bEnable);
168private:
169 bool m_bDockListActiveShowToolBar;
170
171public:
172 const bool GetDockListRecentShowToolBar() const;
173 void SetDockListRecentShowToolBar(bool bEnable);
174private:
175 bool m_bDockListRecentShowToolBar;
176
177public:
178 bool GetKeepSplitViewWhenFullScreen() const;
179 void SetKeepSplitViewWhenFullScreen(bool newKeepSplitViewWhenFullScreen);
180
181private:
182 bool m_bKeepSplitViewWhenFullScreen;
183
184public:
185 bool GetStartByType() const;
186 void SetStartByType(bool newStartByType);
187Q_SIGNALS:
188 void sigStartByTypeChanged();
189private:
190 bool m_bStartByType;
191 Q_PROPERTY(bool m_bStartByType READ GetStartByType WRITE SetStartByType NOTIFY sigStartByTypeChanged FINAL)
192
193};
194
195#endif // CPARAMETERAPP_H
Parameter interface.
Definition Parameter.h:209