Debian Codegraph @

HercStudio/Preferences.h

raw symbols SCIP
1 /*
2 * File: Preferences.h
3 *
4 * Author: Jacob Dekel
5 * Created on: Aug 7, 2009
6 *
7 * Copyright (c) 2009-2013 Jacob Dekel
8 * $Id$
9 *
10 * This singleton object manages user preferences
11 *
12 * This program is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 *
25 */
26
27 #ifndef PREFERENCES_H_
28 #define PREFERENCES_H_cxx . . $ `HercStudio/Preferences.h:28:9`!
29
30 #include "Psw.h"cxx . . $ `<file>/HercStudio/Psw.h`/
31 #include "HerculesStudio.h"cxx . . $ `<file>/HercStudio/HerculesStudio.h`/
32
33 #include <string>
34 #include <vector>
35
36 #include <QString>
37
38 class Preferences_1_0cxx . . $ Preferences_1_0#
39 {
40 public:
41 enum keyscxx . . $ Preferences_1_0#keys#
42 {
43 HerculesDircxx . . $ Preferences_1_0#HerculesDir. = 0,
44 ConfigurationDircxx . . $ Preferences_1_0#ConfigurationDir. = 1,
45 LogsDircxx . . $ Preferences_1_0#LogsDir. = 2,
46 Fontcxx . . $ Preferences_1_0#Font. = 3,
47 FontSizecxx . . $ Preferences_1_0#FontSize. = 4,
48 FontVariationcxx . . $ Preferences_1_0#FontVariation. = 5,
49 LogTimestampcxx . . $ Preferences_1_0#LogTimestamp. = 6,
50 RegsViewscxx . . $ Preferences_1_0#RegsViews. = 7
51 };
52 enum generalcxx . . $ Preferences_1_0#general#
53 {
54 NumberOfLinescxx . . $ Preferences_1_0#NumberOfLines. = 8
55 };
56
57 enum Viewscxx . . $ Preferences_1_0#Views#
58 {
59 ViewGR32cxx . . $ Preferences_1_0#ViewGR32. = 0x80,
60 ViewCR32cxx . . $ Preferences_1_0#ViewCR32. = 0x40,
61 ViewFR32cxx . . $ Preferences_1_0#ViewFR32. = 0x20,
62 ViewAR32cxx . . $ Preferences_1_0#ViewAR32. = 0x10,
63 ViewGR64cxx . . $ Preferences_1_0#ViewGR64. = 0x08,
64 ViewCR64cxx . . $ Preferences_1_0#ViewCR64. = 0x04,
65 ViewFR64cxx . . $ Preferences_1_0#ViewFR64. = 0x02,
66 ViewPswcxx . . $ Preferences_1_0#ViewPsw. = 0x01
67 };
68
69 enum VariationMaskscxx . . $ Preferences_1_0#VariationMasks#
70 {
71 Boldcxx . . $ Preferences_1_0#Bold. = 128,
72 Italiccxx . . $ Preferences_1_0#Italic. = 64
73 };
74
75 virtual ~cxx . . $ Preferences_1_0#`~Preferences_1_0`(49f6e7a06ebc5aa8).Preferences_1_0cxx . . $ Preferences_1_0#();
76 static Preferences_1_0cxx . . $ Preferences_1_0#& getInstancecxx . . $ Preferences_1_0#getInstance(e7b5f221f3388d79).();
77
78 void writecxx . . $ Preferences_1_0#write(49f6e7a06ebc5aa8).();
79
80 void setHercDircxx . . $ Preferences_1_0#setHercDir(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& hercDir);
81 stdcxx . . $ std/::stringcxx . . $ std/string#& hercDircxx . . $ Preferences_1_0#hercDir(75da78375bc7a3dd).(){return mPrefscxx . . $ Preferences_1_0#mPrefs.[cxx . . $ std/vector#`operator[]`(428bb168810b9e52).HerculesDircxx . . $ Preferences_1_0#HerculesDir.]; }
82 void setConfigDircxx . . $ Preferences_1_0#setConfigDir(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& logsDir) ;
83 void setVolatileConfigDircxx . . $ Preferences_1_0#setVolatileConfigDir(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& logsDir) ;
84 const stdcxx . . $ std/::stringcxx . . $ std/string#& configDircxx . . $ Preferences_1_0#configDir(319d84e01067f75d).();
85 void setLogsDircxx . . $ Preferences_1_0#setLogsDir(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& logsDir) ;
86 stdcxx . . $ std/::stringcxx . . $ std/string#& logsDircxx . . $ Preferences_1_0#logsDir(75da78375bc7a3dd).(){return mPrefscxx . . $ Preferences_1_0#mPrefs.[cxx . . $ std/vector#`operator[]`(428bb168810b9e52).LogsDircxx . . $ Preferences_1_0#LogsDir.]; }
87 void setFontNamecxx . . $ Preferences_1_0#setFontName(9c546c94e5fcce4e).( const stdcxx . . $ std/::stringcxx . . $ std/string#& fontName) ;
88 stdcxx . . $ std/::stringcxx . . $ std/string#& fontNamecxx . . $ Preferences_1_0#fontName(75da78375bc7a3dd). () ;
89 void setFontSizecxx . . $ Preferences_1_0#setFontSize(d4f767463ce0a6b3).( int variation );
90 int fontSizecxx . . $ Preferences_1_0#fontSize(b126dc7c1de90089).();
91 void setFontVariationcxx . . $ Preferences_1_0#setFontVariation(d4f767463ce0a6b3).( int variation );
92 int fontVariationcxx . . $ Preferences_1_0#fontVariation(b126dc7c1de90089).();
93 bool fontIsBoldcxx . . $ Preferences_1_0#fontIsBold(c9857a73d68e59ba).();
94 bool fontIsItaliccxx . . $ Preferences_1_0#fontIsItalic(c9857a73d68e59ba).();
95 bool logTimestampcxx . . $ Preferences_1_0#logTimestamp(c9857a73d68e59ba).();
96 void setLogTimestampcxx . . $ Preferences_1_0#setLogTimestamp(b45ddcbc8423892c).(bool isTrue);
97
98 // register views
99 void setRegscxx . . $ Preferences_1_0#setRegs(c398f527840e4ee8).(Viewscxx . . $ Preferences_1_0#Views# v,bool view);
100 bool regscxx . . $ Preferences_1_0#regs(9221eea5f142947a).(Viewscxx . . $ Preferences_1_0#Views# v);
101
102 protected:
103 Preferences_1_0cxx . . $ Preferences_1_0#Preferences_1_0(49f6e7a06ebc5aa8).();
104 private:
105 void readPrefcxx . . $ Preferences_1_0#readPref(49f6e7a06ebc5aa8).();
106 void assertConfDircxx . . $ Preferences_1_0#assertConfDir(49f6e7a06ebc5aa8).();
107 stdcxx . . $ std/::stringcxx . . $ std/string# getValuecxx . . $ Preferences_1_0#getValue(703e19e99a658a86).(char * line, const char * keyword);
108 QStringcxx . . $ QString# getFileNamecxx . . $ Preferences_1_0#getFileName(4365c3963150523e).();
109
110 stdcxx . . $ std/::stringcxx . . $ std/string# mPathcxx . . $ Preferences_1_0#mPath.;
111 int mViewcxx . . $ Preferences_1_0#mView.;
112 stdcxx . . $ std/::stringcxx . . $ std/string# mVolatileConfigDircxx . . $ Preferences_1_0#mVolatileConfigDir.;
113
114 static Preferences_1_0cxx . . $ Preferences_1_0# *instancecxx . . $ Preferences_1_0#instance.;
115 static const char *sFileNamecxx . . $ Preferences_1_0#sFileName.;
116 static const char *sKeywordscxx . . $ Preferences_1_0#sKeywords.[];
117 stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> mPrefscxx . . $ Preferences_1_0#mPrefs.;
118 };
119
120
121 class Preferences_1_1cxx . . $ Preferences_1_1#
122 {
123 public:
124 enum keyscxx . . $ Preferences_1_1#keys#
125 {
126 HerculesDircxx . . $ Preferences_1_1#HerculesDir. = 0,
127 ConfigurationDircxx . . $ Preferences_1_1#ConfigurationDir. = 1,
128 LogsDircxx . . $ Preferences_1_1#LogsDir. = 2,
129 Fontcxx . . $ Preferences_1_1#Font. = 3,
130 FontSizecxx . . $ Preferences_1_1#FontSize. = 4,
131 FontVariationcxx . . $ Preferences_1_1#FontVariation. = 5,
132 LogTimestampcxx . . $ Preferences_1_1#LogTimestamp. = 6,
133 RegsViewscxx . . $ Preferences_1_1#RegsViews. = 7,
134 Versioncxx . . $ Preferences_1_1#Version. = 8,
135 LogFontcxx . . $ Preferences_1_1#LogFont. = 9,
136 RegsFontcxx . . $ Preferences_1_1#RegsFont. = 10,
137 PswFontcxx . . $ Preferences_1_1#PswFont. = 11,
138 CommandFontcxx . . $ Preferences_1_1#CommandFont. = 12
139 };
140 enum FontObjectcxx . . $ Preferences_1_1#FontObject#
141 {
142 LogFontObjectcxx . . $ Preferences_1_1#LogFontObject. = 0,
143 RegsFontObjectcxx . . $ Preferences_1_1#RegsFontObject. = 1,
144 PswFontObjectcxx . . $ Preferences_1_1#PswFontObject. = 2,
145 CommandFontObjectcxx . . $ Preferences_1_1#CommandFontObject. = 3
146 };
147 enum generalcxx . . $ Preferences_1_1#general#
148 {
149 NumberOfLinescxx . . $ Preferences_1_1#NumberOfLines. = 13,
150 PREF_LINE_LENGTHcxx . . $ Preferences_1_1#PREF_LINE_LENGTH. = 300
151 };
152
153 enum Viewscxx . . $ Preferences_1_1#Views#
154 {
155 ViewGR32cxx . . $ Preferences_1_1#ViewGR32. = 0x80,
156 ViewCR32cxx . . $ Preferences_1_1#ViewCR32. = 0x40,
157 ViewFR32cxx . . $ Preferences_1_1#ViewFR32. = 0x20,
158 ViewAR32cxx . . $ Preferences_1_1#ViewAR32. = 0x10,
159 ViewGR64cxx . . $ Preferences_1_1#ViewGR64. = 0x08,
160 ViewCR64cxx . . $ Preferences_1_1#ViewCR64. = 0x04,
161 ViewFR64cxx . . $ Preferences_1_1#ViewFR64. = 0x02,
162 ViewPswcxx . . $ Preferences_1_1#ViewPsw. = 0x01
163 };
164
165 virtual ~cxx . . $ Preferences_1_1#`~Preferences_1_1`(49f6e7a06ebc5aa8).Preferences_1_1cxx . . $ Preferences_1_1#();
166 static Preferences_1_1cxx . . $ Preferences_1_1#& getInstancecxx . . $ Preferences_1_1#getInstance(6af29faab3455534).();
167
168 void writecxx . . $ Preferences_1_1#write(49f6e7a06ebc5aa8).();
169
170 // hercules directory
171 void setHercDircxx . . $ Preferences_1_1#setHercDir(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& hercDir);
172 stdcxx . . $ std/::stringcxx . . $ std/string#& hercDircxx . . $ Preferences_1_1#hercDir(75da78375bc7a3dd).(){return mPrefscxx . . $ Preferences_1_1#mPrefs.[cxx . . $ std/vector#`operator[]`(428bb168810b9e52).HerculesDircxx . . $ Preferences_1_1#HerculesDir.]; }
173
174 // configuration default directory
175 void setConfigDircxx . . $ Preferences_1_1#setConfigDir(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& logsDir) ;
176 void setVolatileConfigDircxx . . $ Preferences_1_1#setVolatileConfigDir(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& logsDir) ;
177 const stdcxx . . $ std/::stringcxx . . $ std/string#& configDircxx . . $ Preferences_1_1#configDir(319d84e01067f75d).();
178
179 // log directory
180 void setLogsDircxx . . $ Preferences_1_1#setLogsDir(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& logsDir) ;
181 stdcxx . . $ std/::stringcxx . . $ std/string#& logsDircxx . . $ Preferences_1_1#logsDir(75da78375bc7a3dd).(){return mPrefscxx . . $ Preferences_1_1#mPrefs.[cxx . . $ std/vector#`operator[]`(428bb168810b9e52).LogsDircxx . . $ Preferences_1_1#LogsDir.]; }
182
183 // font name
184 void setFontNamecxx . . $ Preferences_1_1#setFontName(601f8cb22469a125).( FontObjectcxx . . $ Preferences_1_1#FontObject# fontObject, const stdcxx . . $ std/::stringcxx . . $ std/string#& fontName) ;
185 stdcxx . . $ std/::stringcxx . . $ std/string# fontNamecxx . . $ Preferences_1_1#fontName(65fbc91de39f91f4). (FontObjectcxx . . $ Preferences_1_1#FontObject# fontObject) ;
186
187 // font size
188 void setFontSizecxx . . $ Preferences_1_1#setFontSize(2a30680388a4fb7b).( FontObjectcxx . . $ Preferences_1_1#FontObject# fontObject, int variation );
189 int fontSizecxx . . $ Preferences_1_1#fontSize(6b9f7df2bd3af578).(FontObjectcxx . . $ Preferences_1_1#FontObject# fontObject);
190
191 // bold
192 void setBoldcxx . . $ Preferences_1_1#setBold(bbfcaa2814c7f2bb).( FontObjectcxx . . $ Preferences_1_1#FontObject# fontObject, bool bold);
193 bool fontIsBoldcxx . . $ Preferences_1_1#fontIsBold(43c8db5273b41a1c).(FontObjectcxx . . $ Preferences_1_1#FontObject# fontObject);
194
195 // italic
196 void setItaliccxx . . $ Preferences_1_1#setItalic(bbfcaa2814c7f2bb). (FontObjectcxx . . $ Preferences_1_1#FontObject# fontObject, bool italic);
197 bool fontIsItaliccxx . . $ Preferences_1_1#fontIsItalic(43c8db5273b41a1c).(FontObjectcxx . . $ Preferences_1_1#FontObject# fontObject);
198
199 // logs time stamp
200 bool logTimestampcxx . . $ Preferences_1_1#logTimestamp(c9857a73d68e59ba).();
201 void setLogTimestampcxx . . $ Preferences_1_1#setLogTimestamp(b45ddcbc8423892c).(bool isTrue);
202 const stdcxx . . $ std/::stringcxx . . $ std/string#& versioncxx . . $ Preferences_1_1#version(319d84e01067f75d).();
203
204 // register views
205 void setRegscxx . . $ Preferences_1_1#setRegs(ca0664aa15887f40).(Viewscxx . . $ Preferences_1_1#Views# v,bool view);
206 bool regscxx . . $ Preferences_1_1#regs(f84ea912aee4efe7).(Viewscxx . . $ Preferences_1_1#Views# v);
207
208 protected:
209 Preferences_1_1cxx . . $ Preferences_1_1#Preferences_1_1(49f6e7a06ebc5aa8).();
210
211 private:
212 void readPrefcxx . . $ Preferences_1_1#readPref(49f6e7a06ebc5aa8).();
213 void assertConfDircxx . . $ Preferences_1_1#assertConfDir(49f6e7a06ebc5aa8).();
214 stdcxx . . $ std/::stringcxx . . $ std/string# getValuecxx . . $ Preferences_1_1#getValue(703e19e99a658a86).(char * line, const char * keyword);
215 QStringcxx . . $ QString# getFileNamecxx . . $ Preferences_1_1#getFileName(4365c3963150523e).();
216 const stdcxx . . $ std/::stringcxx . . $ std/string#& getVersioncxx . . $ Preferences_1_1#getVersion(319d84e01067f75d).();
217 keyscxx . . $ Preferences_1_1#keys# fontObjectToIndexcxx . . $ Preferences_1_1#fontObjectToIndex(9d986a8e7d1a0bec).(FontObjectcxx . . $ Preferences_1_1#FontObject# fontObject);
218
219 stdcxx . . $ std/::stringcxx . . $ std/string# mPathcxx . . $ Preferences_1_1#mPath.;
220 int mViewcxx . . $ Preferences_1_1#mView.;
221 stdcxx . . $ std/::stringcxx . . $ std/string# mVolatileConfigDircxx . . $ Preferences_1_1#mVolatileConfigDir.;
222
223 static Preferences_1_1cxx . . $ Preferences_1_1# *instancecxx . . $ Preferences_1_1#instance.;
224 static const char *sFileNamecxx . . $ Preferences_1_1#sFileName.;
225 static const char *sKeywordscxx . . $ Preferences_1_1#sKeywords.[];
226 stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> mPrefscxx . . $ Preferences_1_1#mPrefs.;
227 static const char cFontLogcxx . . $ Preferences_1_1#cFontLog.[], cFontRegscxx . . $ Preferences_1_1#cFontRegs.[], cFontPswcxx . . $ Preferences_1_1#cFontPsw.[], cFontCommandcxx . . $ Preferences_1_1#cFontCommand.[];
228 };
229
230 class Preferences_1_2_0cxx . . $ Preferences_1_2_0#
231 {
232 public:
233 enum keyscxx . . $ Preferences_1_2_0#keys#
234 {
235 HerculesDircxx . . $ Preferences_1_2_0#HerculesDir. = 0,
236 ConfigurationDircxx . . $ Preferences_1_2_0#ConfigurationDir. = 1,
237 LogsDircxx . . $ Preferences_1_2_0#LogsDir. = 2,
238 Fontcxx . . $ Preferences_1_2_0#Font. = 3,
239 FontSizecxx . . $ Preferences_1_2_0#FontSize. = 4,
240 FontVariationcxx . . $ Preferences_1_2_0#FontVariation. = 5,
241 LogTimestampcxx . . $ Preferences_1_2_0#LogTimestamp. = 6,
242 RegsViewscxx . . $ Preferences_1_2_0#RegsViews. = 7,
243 Versioncxx . . $ Preferences_1_2_0#Version. = 8,
244 LogFontcxx . . $ Preferences_1_2_0#LogFont. = 9,
245 RegsFontcxx . . $ Preferences_1_2_0#RegsFont. = 10,
246 PswFontcxx . . $ Preferences_1_2_0#PswFont. = 11,
247 CommandFontcxx . . $ Preferences_1_2_0#CommandFont. = 12,
248 MipsAsGaugecxx . . $ Preferences_1_2_0#MipsAsGauge. = 13,
249 PswModecxx . . $ Preferences_1_2_0#PswMode. = 14,
250 SplitLogcxx . . $ Preferences_1_2_0#SplitLog. = 15,
251 AutosaveLogcxx . . $ Preferences_1_2_0#AutosaveLog. = 16
252 };
253 enum FontObjectcxx . . $ Preferences_1_2_0#FontObject#
254 {
255 LogFontObjectcxx . . $ Preferences_1_2_0#LogFontObject. = 0,
256 RegsFontObjectcxx . . $ Preferences_1_2_0#RegsFontObject. = 1,
257 PswFontObjectcxx . . $ Preferences_1_2_0#PswFontObject. = 2,
258 CommandFontObjectcxx . . $ Preferences_1_2_0#CommandFontObject. = 3
259 };
260 enum generalcxx . . $ Preferences_1_2_0#general#
261 {
262 NumberOfLinescxx . . $ Preferences_1_2_0#NumberOfLines. = 17,
263 PREF_LINE_LENGTHcxx . . $ Preferences_1_2_0#PREF_LINE_LENGTH. = 300
264 };
265
266 enum Viewscxx . . $ Preferences_1_2_0#Views#
267 {
268 ViewGR32cxx . . $ Preferences_1_2_0#ViewGR32. = 0x80,
269 ViewCR32cxx . . $ Preferences_1_2_0#ViewCR32. = 0x40,
270 ViewFR32cxx . . $ Preferences_1_2_0#ViewFR32. = 0x20,
271 ViewAR32cxx . . $ Preferences_1_2_0#ViewAR32. = 0x10,
272 ViewGR64cxx . . $ Preferences_1_2_0#ViewGR64. = 0x08,
273 ViewCR64cxx . . $ Preferences_1_2_0#ViewCR64. = 0x04,
274 ViewFR64cxx . . $ Preferences_1_2_0#ViewFR64. = 0x02,
275 ViewPswcxx . . $ Preferences_1_2_0#ViewPsw. = 0x01
276 };
277
278 virtual ~cxx . . $ Preferences_1_2_0#`~Preferences_1_2_0`(49f6e7a06ebc5aa8).Preferences_1_2_0cxx . . $ Preferences_1_2_0#();
279 static Preferences_1_2_0cxx . . $ Preferences_1_2_0#& getInstancecxx . . $ Preferences_1_2_0#getInstance(f1d1f72e258586cc).();
280
281 void writecxx . . $ Preferences_1_2_0#write(49f6e7a06ebc5aa8).();
282
283 // hercules directory
284 void setHercDircxx . . $ Preferences_1_2_0#setHercDir(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& hercDir);
285 stdcxx . . $ std/::stringcxx . . $ std/string#& hercDircxx . . $ Preferences_1_2_0#hercDir(75da78375bc7a3dd).(){return mPrefscxx . . $ Preferences_1_2_0#mPrefs.[cxx . . $ std/vector#`operator[]`(428bb168810b9e52).HerculesDircxx . . $ Preferences_1_2_0#HerculesDir.]; }
286
287 // configuration default directory
288 void setConfigDircxx . . $ Preferences_1_2_0#setConfigDir(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& logsDir) ;
289 void setVolatileConfigDircxx . . $ Preferences_1_2_0#setVolatileConfigDir(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& logsDir) ;
290 const stdcxx . . $ std/::stringcxx . . $ std/string#& configDircxx . . $ Preferences_1_2_0#configDir(319d84e01067f75d).();
291
292 // log directory
293 void setLogsDircxx . . $ Preferences_1_2_0#setLogsDir(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& logsDir) ;
294 stdcxx . . $ std/::stringcxx . . $ std/string#& logsDircxx . . $ Preferences_1_2_0#logsDir(75da78375bc7a3dd).(){return mPrefscxx . . $ Preferences_1_2_0#mPrefs.[cxx . . $ std/vector#`operator[]`(428bb168810b9e52).LogsDircxx . . $ Preferences_1_2_0#LogsDir.]; }
295
296 // font name
297 void setFontNamecxx . . $ Preferences_1_2_0#setFontName(81a46b0e95ac2aea).( FontObjectcxx . . $ Preferences_1_2_0#FontObject# fontObject, const stdcxx . . $ std/::stringcxx . . $ std/string#& fontName) ;
298 stdcxx . . $ std/::stringcxx . . $ std/string# fontNamecxx . . $ Preferences_1_2_0#fontName(42c99087f288c498). (FontObjectcxx . . $ Preferences_1_2_0#FontObject# fontObject) ;
299
300 // font size
301 void setFontSizecxx . . $ Preferences_1_2_0#setFontSize(2fbb9f48e2cb9911).( FontObjectcxx . . $ Preferences_1_2_0#FontObject# fontObject, int variation );
302 int fontSizecxx . . $ Preferences_1_2_0#fontSize(c4e3e23661c57fc7).(FontObjectcxx . . $ Preferences_1_2_0#FontObject# fontObject);
303
304 // bold
305 void setBoldcxx . . $ Preferences_1_2_0#setBold(d3d45cb9579405c4).( FontObjectcxx . . $ Preferences_1_2_0#FontObject# fontObject, bool bold);
306 bool fontIsBoldcxx . . $ Preferences_1_2_0#fontIsBold(a2b1a482877a870f).(FontObjectcxx . . $ Preferences_1_2_0#FontObject# fontObject);
307
308 // italic
309 void setItaliccxx . . $ Preferences_1_2_0#setItalic(d3d45cb9579405c4). (FontObjectcxx . . $ Preferences_1_2_0#FontObject# fontObject, bool italic);
310 bool fontIsItaliccxx . . $ Preferences_1_2_0#fontIsItalic(a2b1a482877a870f).(FontObjectcxx . . $ Preferences_1_2_0#FontObject# fontObject);
311
312 // logs time stamp
313 bool logTimestampcxx . . $ Preferences_1_2_0#logTimestamp(c9857a73d68e59ba).();
314 void setLogTimestampcxx . . $ Preferences_1_2_0#setLogTimestamp(b45ddcbc8423892c).(bool isTrue);
315 const stdcxx . . $ std/::stringcxx . . $ std/string#& versioncxx . . $ Preferences_1_2_0#version(319d84e01067f75d).();
316
317 // register views
318 void setRegscxx . . $ Preferences_1_2_0#setRegs(8e67ac30726cd7f4).(Viewscxx . . $ Preferences_1_2_0#Views# v,bool view);
319 bool regscxx . . $ Preferences_1_2_0#regs(81a76f36e6e5aaa4).(Viewscxx . . $ Preferences_1_2_0#Views# v);
320
321 // Mips as gauge
322 void setMipsAsGaugecxx . . $ Preferences_1_2_0#setMipsAsGauge(b45ddcbc8423892c).(bool gauge);
323 bool mipsAsGaugecxx . . $ Preferences_1_2_0#mipsAsGauge(c9857a73d68e59ba).();
324
325 // Psw Mode
326 Pswcxx . . $ Psw#::PswModecxx . . $ Psw#PswMode# pswModecxx . . $ Preferences_1_2_0#pswMode(37da19bfc5d1201c).();
327 void setPswModecxx . . $ Preferences_1_2_0#setPswMode(8ebef82975aefedf).(Pswcxx . . $ Psw#::PswModecxx . . $ Psw#PswMode# mode);
328
329 // Split log
330 bool splitLogcxx . . $ Preferences_1_2_0#splitLog(c9857a73d68e59ba).();
331 void setSplitLogcxx . . $ Preferences_1_2_0#setSplitLog(b45ddcbc8423892c).(bool);
332
333 // Autosave log
334 bool autosaveLogcxx . . $ Preferences_1_2_0#autosaveLog(c9857a73d68e59ba).();
335 void setAutosaveLogcxx . . $ Preferences_1_2_0#setAutosaveLog(b45ddcbc8423892c).(bool);
336
337 protected:
338 Preferences_1_2_0cxx . . $ Preferences_1_2_0#Preferences_1_2_0(49f6e7a06ebc5aa8).();
339
340 private:
341 void readPrefcxx . . $ Preferences_1_2_0#readPref(49f6e7a06ebc5aa8).();
342 void assertConfDircxx . . $ Preferences_1_2_0#assertConfDir(49f6e7a06ebc5aa8).();
343 stdcxx . . $ std/::stringcxx . . $ std/string# getValuecxx . . $ Preferences_1_2_0#getValue(703e19e99a658a86).(char * line, const char * keyword);
344 QStringcxx . . $ QString# getFileNamecxx . . $ Preferences_1_2_0#getFileName(4365c3963150523e).();
345 const stdcxx . . $ std/::stringcxx . . $ std/string#& getVersioncxx . . $ Preferences_1_2_0#getVersion(319d84e01067f75d).();
346 keyscxx . . $ Preferences_1_2_0#keys# fontObjectToIndexcxx . . $ Preferences_1_2_0#fontObjectToIndex(96b17246825f916b).(FontObjectcxx . . $ Preferences_1_2_0#FontObject# fontObject);
347
348 QStringcxx . . $ QString# mPathcxx . . $ Preferences_1_2_0#mPath.;
349 int mViewcxx . . $ Preferences_1_2_0#mView.;
350 stdcxx . . $ std/::stringcxx . . $ std/string# mVolatileConfigDircxx . . $ Preferences_1_2_0#mVolatileConfigDir.;
351
352 static Preferences_1_2_0cxx . . $ Preferences_1_2_0# *instancecxx . . $ Preferences_1_2_0#instance.;
353 static const char *sFileNamecxx . . $ Preferences_1_2_0#sFileName.;
354 static const char *sKeywordscxx . . $ Preferences_1_2_0#sKeywords.[];
355 stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> mPrefscxx . . $ Preferences_1_2_0#mPrefs.;
356 static const char cFontLogcxx . . $ Preferences_1_2_0#cFontLog.[], cFontRegscxx . . $ Preferences_1_2_0#cFontRegs.[], cFontPswcxx . . $ Preferences_1_2_0#cFontPsw.[], cFontCommandcxx . . $ Preferences_1_2_0#cFontCommand.[],
357 cMipsAsGaugecxx . . $ Preferences_1_2_0#cMipsAsGauge.[], cPswModecxx . . $ Preferences_1_2_0#cPswMode.[], cSplitLogcxx . . $ Preferences_1_2_0#cSplitLog.[], cAutosaveLogcxx . . $ Preferences_1_2_0#cAutosaveLog.[];
358 };
359
360 class QSettingscxx . . $ QSettings#;
361 mk_shared_ptrcxx . . $ QSharedPointer#(PrinterItem)
362 mk_shared_ptrcxx . . $ QSharedPointer#(Stationery)
363 class DecolationRulescxx . . $ DecolationRules#;
364
365 class Preferencescxx . . $ Preferences#
366 {
367 public:
368 enum keyscxx . . $ Preferences#keys#
369 {
370 HerculesDircxx . . $ Preferences#HerculesDir. = 0,
371 ConfigurationDircxx . . $ Preferences#ConfigurationDir. = 1,
372 LogsDircxx . . $ Preferences#LogsDir. = 2,
373 LogTimestampcxx . . $ Preferences#LogTimestamp. = 3,
374 RegsViewscxx . . $ Preferences#RegsViews. = 4,
375 Versioncxx . . $ Preferences#Version. = 5,
376 LogFontcxx . . $ Preferences#LogFont. = 6,
377 RegsFontcxx . . $ Preferences#RegsFont. = 7,
378 PswFontcxx . . $ Preferences#PswFont. = 8,
379 CommandFontcxx . . $ Preferences#CommandFont. = 9,
380 MipsAsGaugecxx . . $ Preferences#MipsAsGauge. = 10,
381 PswModecxx . . $ Preferences#PswMode. = 11,
382 SplitLogcxx . . $ Preferences#SplitLog. = 12,
383 AutosaveLogcxx . . $ Preferences#AutosaveLog. = 13,
384 Themecxx . . $ Preferences#Theme. = 14,
385 LogFileLinescxx . . $ Preferences#LogFileLines. = 15,
386 GreenLedcxx . . $ Preferences#GreenLed. = 16,
387 Animatecxx . . $ Preferences#Animate.=17,
388 DarkBackgroundcxx . . $ Preferences#DarkBackground.=18,
389 IplDevicecxx . . $ Preferences#IplDevice.=19,
390 LastPrinterNamecxx . . $ Preferences#LastPrinterName.=20,
391 BalloonDecolationcxx . . $ Preferences#BalloonDecolation.=21,
392 BalloonStationerycxx . . $ Preferences#BalloonStationery.=22
393 };
394
395 enum FontObjectcxx . . $ Preferences#FontObject#
396 {
397 LogFontObjectcxx . . $ Preferences#LogFontObject. = 0,
398 RegsFontObjectcxx . . $ Preferences#RegsFontObject. = 1,
399 PswFontObjectcxx . . $ Preferences#PswFontObject. = 2,
400 CommandFontObjectcxx . . $ Preferences#CommandFontObject. = 3,
401 ConfigurationFontObjectcxx . . $ Preferences#ConfigurationFontObject. = 4
402 };
403
404 enum Viewscxx . . $ Preferences#Views#
405 {
406 ViewGR32cxx . . $ Preferences#ViewGR32. = 0,
407 ViewCR32cxx . . $ Preferences#ViewCR32. = 1,
408 ViewFR32cxx . . $ Preferences#ViewFR32. = 2,
409 ViewAR32cxx . . $ Preferences#ViewAR32. = 3,
410 ViewGR64cxx . . $ Preferences#ViewGR64. = 4,
411 ViewCR64cxx . . $ Preferences#ViewCR64. = 5,
412 ViewFR64cxx . . $ Preferences#ViewFR64. = 6,
413 ViewPswcxx . . $ Preferences#ViewPsw. = 7
414 };
415
416 enum Themescxx . . $ Preferences#Themes#
417 {
418 Classiccxx . . $ Preferences#Classic. = 0,
419 Moderncxx . . $ Preferences#Modern. = 1
420 };
421
422 virtual ~cxx . . $ Preferences#`~Preferences`(49f6e7a06ebc5aa8).Preferencescxx . . $ Preferences#();
423 static Preferencescxx . . $ Preferences#& getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).();
424
425 void writecxx . . $ Preferences#write(49f6e7a06ebc5aa8).();
426
427 // hercules directory
428 void setHercDircxx . . $ Preferences#setHercDir(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& hercDir);
429 stdcxx . . $ std/::stringcxx . . $ std/string# hercDircxx . . $ Preferences#hercDir(219584694fe2b248).() const;
430
431 // configuration default directory
432 void setConfigDircxx . . $ Preferences#setConfigDir(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& configDir) ;
433 void setVolatileConfigDircxx . . $ Preferences#setVolatileConfigDir(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& logsDir) ;
434 stdcxx . . $ std/::stringcxx . . $ std/string# configDircxx . . $ Preferences#configDir(219584694fe2b248).() const;
435 stdcxx . . $ std/::stringcxx . . $ std/string# configDir_cxx . . $ Preferences#configDir_(219584694fe2b248).() const;
436
437 // log directory
438 void setLogsDircxx . . $ Preferences#setLogsDir(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& logsDir) ;
439 stdcxx . . $ std/::stringcxx . . $ std/string# logsDircxx . . $ Preferences#logsDir(219584694fe2b248).() const;
440
441 // font name
442 void setFontNamecxx . . $ Preferences#setFontName(4dc1592458fce8a2).( FontObjectcxx . . $ Preferences#FontObject# fontObject, const stdcxx . . $ std/::stringcxx . . $ std/string#& fontName) ;
443 stdcxx . . $ std/::stringcxx . . $ std/string# fontNamecxx . . $ Preferences#fontName(4f9fe96fc69d00d). (FontObjectcxx . . $ Preferences#FontObject# fontObject) const;
444
445 // font size
446 void setFontSizecxx . . $ Preferences#setFontSize(f1a3306923d2b56b).( FontObjectcxx . . $ Preferences#FontObject# fontObject, int variation );
447 int fontSizecxx . . $ Preferences#fontSize(de63a260e3acfa17).(FontObjectcxx . . $ Preferences#FontObject# fontObject) const;
448
449 // bold
450 void setBoldcxx . . $ Preferences#setBold(53ef28a191d373e3).( FontObjectcxx . . $ Preferences#FontObject# fontObject, bool bold);
451 bool fontIsBoldcxx . . $ Preferences#fontIsBold(104456de71e6e103).(FontObjectcxx . . $ Preferences#FontObject# fontObject) const;
452
453 // italic
454 void setItaliccxx . . $ Preferences#setItalic(53ef28a191d373e3). (FontObjectcxx . . $ Preferences#FontObject# fontObject, bool italic);
455 bool fontIsItaliccxx . . $ Preferences#fontIsItalic(104456de71e6e103).(FontObjectcxx . . $ Preferences#FontObject# fontObject) const;
456
457 // logs time stamp
458 bool logTimestampcxx . . $ Preferences#logTimestamp(50ce9a9e25b4a850).() const;
459 void setLogTimestampcxx . . $ Preferences#setLogTimestamp(b45ddcbc8423892c).(bool isTrue);
460 const stdcxx . . $ std/::stringcxx . . $ std/string#& versioncxx . . $ Preferences#version(f4fff0029955a25f).() const;
461
462 // register views
463 void setRegscxx . . $ Preferences#setRegs(2709a3bc6a6e05a).(Viewscxx . . $ Preferences#Views# v,bool view);
464 bool regscxx . . $ Preferences#regs(a9d95c4d53de800d).(Viewscxx . . $ Preferences#Views# v) const;
465
466 // Mips as gauge
467 void setMipsAsGaugecxx . . $ Preferences#setMipsAsGauge(b45ddcbc8423892c).(bool gauge);
468 bool mipsAsGaugecxx . . $ Preferences#mipsAsGauge(50ce9a9e25b4a850).() const;
469
470 // Led Color green (mips)
471 void setGreenLedcxx . . $ Preferences#setGreenLed(b45ddcbc8423892c).(bool green);
472 bool greenLedcxx . . $ Preferences#greenLed(50ce9a9e25b4a850).() const;
473
474 // Psw Mode
475 void setPswModecxx . . $ Preferences#setPswMode(8ebef82975aefedf).(Pswcxx . . $ Psw#::PswModecxx . . $ Psw#PswMode# mode);
476 Pswcxx . . $ Psw#::PswModecxx . . $ Psw#PswMode# pswModecxx . . $ Preferences#pswMode(3b27ccb883cb3a2e).() const;
477
478 // Split log
479 bool splitLogcxx . . $ Preferences#splitLog(50ce9a9e25b4a850).() const;
480 void setSplitLogcxx . . $ Preferences#setSplitLog(b45ddcbc8423892c).(bool);
481
482 // Autosave log
483 void setAutosaveLogcxx . . $ Preferences#setAutosaveLog(b45ddcbc8423892c).(bool);
484 bool autosaveLogcxx . . $ Preferences#autosaveLog(50ce9a9e25b4a850).() const;
485
486 // theme
487 void setThemecxx . . $ Preferences#setTheme(30ffbc086adc3a33).(Themescxx . . $ Preferences#Themes# theme);
488 Themescxx . . $ Preferences#Themes# themecxx . . $ Preferences#theme(26a9862789320542).() const;
489
490 // LogFileLines
491 void setLogFileLinescxx . . $ Preferences#setLogFileLines(d4f767463ce0a6b3).(int lines);
492 int logFileLinescxx . . $ Preferences#logFileLines(455f465bc33b4cdf).() const;
493
494 //command line history
495 void setHistorycxx . . $ Preferences#setHistory(4d3d02738a8bd7df).(QVectorcxx . . $ QVector#<QStringcxx . . $ QString#>& history);
496 void getHistorycxx . . $ Preferences#getHistory(4d3d02738a8bd7df).(QVectorcxx . . $ QVector#<QStringcxx . . $ QString#>& history);
497
498 //animation
499 void setAnimatecxx . . $ Preferences#setAnimate(b45ddcbc8423892c).(bool animate);
500 bool animatecxx . . $ Preferences#animate(50ce9a9e25b4a850).() const;
501
502 //dark background
503 void setDarkBackgroundcxx . . $ Preferences#setDarkBackground(b45ddcbc8423892c).(bool dark);
504 bool darkBackgroundcxx . . $ Preferences#darkBackground(50ce9a9e25b4a850).() const;
505
506 // IPL device
507 void setIplDevicecxx . . $ Preferences#setIplDevice(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& iplDevice);
508 stdcxx . . $ std/::stringcxx . . $ std/string# iplDevicecxx . . $ Preferences#iplDevice(219584694fe2b248).() const;
509
510 // Stationery
511 bool setStationerycxx . . $ Preferences#setStationery(21b9d257af42cb8f).(const QStringcxx . . $ QString#& name, const QStringcxx . . $ QString#& stationeryString, bool replace=true);
512 bool setStationerycxx . . $ Preferences#setStationery(92508cfadafeabe5).(const QStringcxx . . $ QString#& name, const Stationerycxx . . $ Stationery#& stationery, bool replace=true);
513 StationeryPtrcxx . . $ StationeryPtr# stationerycxx . . $ Preferences#stationery(67fc5f67fc2935ed).(QStringcxx . . $ QString# name);
514 QStringListcxx . . $ QStringList# stationeryListcxx . . $ Preferences#stationeryList(669a05bc42dd57cc).();
515 void deleteStationerycxx . . $ Preferences#deleteStationery(3520e46b33348bf6).(const QStringcxx . . $ QString#& item);
516
517 // Printers
518 bool setPrintercxx . . $ Preferences#setPrinter(8d5b8e0bf48908cd).(const QStringcxx . . $ QString#& name, const PrinterItemcxx . . $ PrinterItem#& printerItem, bool replace=true);
519 PrinterItemPtrcxx . . $ PrinterItemPtr# printercxx . . $ Preferences#printer(11102a99e20612d2).(QStringcxx . . $ QString# name);
520 QStringListcxx . . $ QStringList# printerListcxx . . $ Preferences#printerList(669a05bc42dd57cc).();
521 void deletePrintercxx . . $ Preferences#deletePrinter(3520e46b33348bf6).(const QStringcxx . . $ QString#& item);
522 void setLastPrinterNamecxx . . $ Preferences#setLastPrinterName(9c546c94e5fcce4e).(const stdcxx . . $ std/::stringcxx . . $ std/string#& lastPrinterName);
523 stdcxx . . $ std/::stringcxx . . $ std/string# lastPrinterNamecxx . . $ Preferences#lastPrinterName(219584694fe2b248).() const;
524
525 // Decolations
526 DecolationRulescxx . . $ DecolationRules# *decolationcxx . . $ Preferences#decolation(e36804b59b1617fb).(QStringcxx . . $ QString# name);
527 QStringListcxx . . $ QStringList# decolationListcxx . . $ Preferences#decolationList(669a05bc42dd57cc).();
528 void deleteDecolationcxx . . $ Preferences#deleteDecolation(3520e46b33348bf6).(const QStringcxx . . $ QString#& item);
529 void setDecolationcxx . . $ Preferences#setDecolation(c8943bd670c1e1eb).(DecolationRulescxx . . $ DecolationRules#& decolation);
530
531 void setBalloonDecolationcxx . . $ Preferences#setBalloonDecolation(b45ddcbc8423892c).(bool popped);
532 bool balloonDecolationcxx . . $ Preferences#balloonDecolation(50ce9a9e25b4a850).() const;
533
534 void setBalloonStationerycxx . . $ Preferences#setBalloonStationery(b45ddcbc8423892c).(bool popped);
535 bool balloonStationerycxx . . $ Preferences#balloonStationery(50ce9a9e25b4a850).() const;
536
537
538 protected:
539 Preferencescxx . . $ Preferences#Preferences(49f6e7a06ebc5aa8).();
540
541 private:
542 static Preferencescxx . . $ Preferences# *instancecxx . . $ Preferences#instance.;
543 QSettingscxx . . $ QSettings# *mSettingscxx . . $ Preferences#mSettings.;
544
545 static const char *sKeywordscxx . . $ Preferences#sKeywords.[];
546 static const char *sRegsViewscxx . . $ Preferences#sRegsViews.[];
547 stdcxx . . $ std/::stringcxx . . $ std/string# mVolatileConfigDircxx . . $ Preferences#mVolatileConfigDir.;
548
549 const char * fontObjectToStringcxx . . $ Preferences#fontObjectToString(147da3ba49302db4).(FontObjectcxx . . $ Preferences#FontObject# fontObject) const;
550 void defaultDecolationscxx . . $ Preferences#defaultDecolations(49f6e7a06ebc5aa8).();
551 void defaultStationerycxx . . $ Preferences#defaultStationery(49f6e7a06ebc5aa8).();
552 void convertcxx . . $ Preferences#convert(49f6e7a06ebc5aa8).();
553 };
554
555 #endif /* PREFERENCES_H_ */