summaryrefslogtreecommitdiff
path: root/src/util/cresmgr.h
blob: 097f795c92c05d5daa6f129554120faceb13d6ce (plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
/*********
*
* In the name of the Father, and of the Son, and of the Holy Spirit.
*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
* Copyright 1999-2016 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/

#ifndef CRESMGR_H
#define CRESMGR_H

#include <QKeySequence>
#include <QString>
#include "bticons.h"

#define BT_GETICON2(fname,name) \
    inline QIcon const & fname() { return BtIcons::instance().icon_ ## name; }
#define BT_GETICON(name) BT_GETICON2(icon,name)

namespace CResMgr {

BT_GETICON2(icon_clearEdit, edit_clear_locationbar)

namespace mainWindow {
BT_GETICON(bibletime)
BT_GETICON2(icon_openAction, folder_open)
}
namespace modules {

BT_GETICON2(icon_moduleLanguage, flag)

BT_GETICON2(icon_cult, stop)

namespace bible {
BT_GETICON2(icon_unlocked, bible)
BT_GETICON2(icon_locked, bible_locked)
BT_GETICON2(icon_add, bible_add)
} /* namespace bible { */

namespace commentary {
BT_GETICON2(icon_unlocked, commentary)
BT_GETICON2(icon_locked, commentary_locked)
BT_GETICON2(icon_add, commentary_add)
} /* namespace commentary { */

namespace lexicon {
BT_GETICON2(icon_unlocked, lexicon)
BT_GETICON2(icon_locked, lexicon_locked)
BT_GETICON2(icon_add, lexicon_add)
} /* namespace lexicon { */

namespace book {
BT_GETICON2(icon_unlocked, book)
BT_GETICON2(icon_locked, book_locked)
BT_GETICON2(icon_add, book_add)
} /* namespace book { */
} /* namespace modules { */

namespace categories {
namespace bibles { BT_GETICON(bible) }
namespace commentaries { BT_GETICON(commentary) }
namespace lexicons { BT_GETICON(lexicon) }
namespace dailydevotional { BT_GETICON(calendar) }
namespace books { BT_GETICON(books) }
namespace glossary { BT_GETICON(dictionary) }
namespace images { BT_GETICON(map) }
namespace cults { BT_GETICON(questionable) }
} /* namespace categories { */

namespace mainMenu { // Main menu

namespace view { // Main menu->View
namespace showBookshelf { BT_GETICON(books) }
namespace showBookmarks { BT_GETICON(bookmark) }
namespace showMag { BT_GETICON(document_magnifier) }
namespace showMainIndex {
BT_GETICON(view_index)
extern const QKeySequence accel;
extern const char* actionName;
} /* namespace showMainIndex { */
namespace showInfoDisplay {
BT_GETICON(view_mag)
extern const QKeySequence accel;
extern const char* actionName;
} /* namespace showInfoDisplay { */
} /* namespace view { */

namespace mainIndex { //configuration for the main index and the view->search menu
namespace search {
BT_GETICON(find)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace searchdefaultbible {
BT_GETICON(find)
extern const QKeySequence accel;
extern const char* actionName;
}
}

namespace window { //Main menu->Window
namespace quit { BT_GETICON(exit) }
namespace loadProfile {
BT_GETICON(view_profile)
extern const char* actionName;
}
namespace saveProfile {
BT_GETICON(view_profile)
extern const char* actionName;
}
namespace saveToNewProfile {
BT_GETICON(view_profile)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace deleteProfile {
BT_GETICON(view_profile)
extern const char* actionName;
}
namespace showFullscreen {
BT_GETICON(window_fullscreen)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace arrangementMode {
BT_GETICON(cascade_auto)
extern const QKeySequence accel;
extern const char* actionName;

namespace manual {
BT_GETICON(manual)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace autoTileHorizontal {
BT_GETICON(tile_horiz_auto)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace autoTileVertical {
BT_GETICON(tile_vert_auto)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace autoTile {
BT_GETICON(tile_auto);
extern const QKeySequence accel;
extern const char* actionName;
}
namespace autoTabbed {
BT_GETICON(tabbed)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace autoCascade {
BT_GETICON(cascade_auto)
extern const QKeySequence accel;
extern const char* actionName;
}
}
namespace tileHorizontal {
BT_GETICON(tile_horiz)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace tileVertical {
BT_GETICON(tile_vert)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace tile {
BT_GETICON(tile)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace cascade {
BT_GETICON(cascade)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace close {
BT_GETICON(fileclose)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace closeAll {
BT_GETICON(fileclose)
extern const QKeySequence accel;
extern const char* actionName;
}
}

namespace settings { //Main menu->Settings
namespace configureDialog { BT_GETICON(configure) }
namespace swordSetupDialog {
BT_GETICON(swordconfig)
extern const QKeySequence accel;
extern const char* actionName;
}
}

namespace help { //Main menu->Help
namespace handbook {
BT_GETICON(contents2)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace bibleStudyHowTo {
BT_GETICON(contents2)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace tipOfTheDay {
BT_GETICON(light_bulb)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace aboutBibleTime { BT_GETICON(bibletime) }
}
}  //end of main menu

namespace findWidget {
BT_GETICON2(icon_close, stop)
BT_GETICON2(icon_previous, back)
BT_GETICON2(icon_next, forward)
}

namespace searchdialog {
BT_GETICON(find)
BT_GETICON2(icon_close, stop)
BT_GETICON2(icon_help, questionmark)
BT_GETICON2(icon_chooseWorks, checkbox)
BT_GETICON2(icon_setupScope, configure)

namespace result {
namespace moduleList {
namespace copyMenu { BT_GETICON(edit_copy) }
namespace saveMenu { BT_GETICON(file_save) }
namespace printMenu { BT_GETICON(print) }
}
namespace foundItems {
namespace copyMenu { BT_GETICON(edit_copy) }
namespace saveMenu { BT_GETICON(file_save) }
namespace printMenu { BT_GETICON(print) }
}
}
}

namespace displaywindows {
namespace displaySettings {
BT_GETICON(displayconfig)
}

namespace general {
BT_GETICON2(icon_removeModule, fileclose)
BT_GETICON2(icon_addModule, plus)
BT_GETICON2(icon_replaceModule, checkbox)
namespace search {
BT_GETICON(find)
extern const QKeySequence accel;
extern const char* actionName;
}

namespace backInHistory {
BT_GETICON(back)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace forwardInHistory {
BT_GETICON(forward)
extern const QKeySequence accel;
extern const char* actionName;
}

namespace findStrongs {
extern const QKeySequence accel;
extern const char* actionName;
}
}

namespace bibleWindow {
namespace nextBook {
extern const QKeySequence accel;
}
namespace previousBook {
extern const QKeySequence accel;
}

namespace nextChapter {
extern const QKeySequence accel;
}
namespace previousChapter {
extern const QKeySequence accel;
}

namespace nextVerse {
extern const QKeySequence accel;
}
namespace previousVerse {
extern const QKeySequence accel;
}

namespace copyMenu { BT_GETICON(edit_copy) }
namespace saveMenu { BT_GETICON(file_save) }
namespace printMenu { BT_GETICON(print) }
}
namespace commentaryWindow {
namespace syncWindow {
BT_GETICON(sync)
extern const QKeySequence accel;
extern const char* actionName;
}

}

namespace lexiconWindow {
namespace nextEntry {
extern const QKeySequence accel;
}
namespace previousEntry {
extern const QKeySequence accel;
}
namespace copyMenu { BT_GETICON(edit_copy) }
namespace saveMenu { BT_GETICON(file_save) }
namespace printMenu { BT_GETICON(print) }
}

namespace writeWindow {
namespace saveText {
BT_GETICON(file_save)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace restoreText {
BT_GETICON(import)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace deleteEntry {
BT_GETICON(delete)
extern const QKeySequence accel;
extern const char* actionName;
}

//formatting buttons
namespace boldText {
BT_GETICON(text_bold)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace italicText {
BT_GETICON(text_italic)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace underlinedText {
BT_GETICON(text_under)
extern const QKeySequence accel;
extern const char* actionName;
}

namespace alignLeft {
BT_GETICON(text_leftalign)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace alignCenter {
BT_GETICON(text_center)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace alignRight {
BT_GETICON(text_rightalign)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace fontFamily {
extern const QKeySequence accel;
extern const char* actionName;
}
namespace fontSize {
extern const QKeySequence accel;
extern const char* actionName;
}
}
}

namespace settings {
namespace startup { BT_GETICON(startconfig) }
namespace fonts { BT_GETICON(fonts) }
namespace profiles { BT_GETICON(view_profile) }
namespace sword { BT_GETICON(swordconfig) }
namespace keys { BT_GETICON(key_bindings) }
}

namespace mainIndex { //configuration for the main index and the view->search menu
namespace showHide { BT_GETICON(layer_visible_on) }
namespace search {
BT_GETICON(find)
extern const QKeySequence accel;
extern const char* actionName;
}
namespace newFolder { BT_GETICON(folder_add) }
namespace changeFolder { BT_GETICON(folder) }
namespace openedFolder { BT_GETICON(folder_open) }
namespace closedFolder { BT_GETICON(folder) }

namespace bookmark { BT_GETICON(bookmark) }
namespace editBookmark { BT_GETICON(bookmark) }
namespace sortFolderBookmarks { BT_GETICON(null) }
namespace sortAllBookmarks { BT_GETICON(null) }
namespace importBookmarks { BT_GETICON(import) }
namespace exportBookmarks { BT_GETICON(export) }
namespace printBookmarks { BT_GETICON(print) }
namespace deleteItems { BT_GETICON(delete) }

namespace editModuleMenu { BT_GETICON(pencil) }
namespace editModulePlain { BT_GETICON(pencil) }
namespace editModuleHTML { BT_GETICON(pencil) }

namespace unlockModule { BT_GETICON(unlock) }
namespace aboutModule { BT_GETICON(info) }
namespace grouping { BT_GETICON(view_tree) }
}

namespace bookshelfmgr {
namespace installpage {
BT_GETICON(bible_install)
BT_GETICON2(icon_refresh, refresh)
BT_GETICON2(icon_addSource, plus)
BT_GETICON2(icon_deleteSource, delete)
BT_GETICON2(icon_install, plus)
BT_GETICON2(icon_path, configure)
}
namespace removepage {
BT_GETICON(bible_uninstall)
BT_GETICON2(icon_remove, delete)
}
namespace indexpage {
BT_GETICON(document_magnifier)
BT_GETICON2(icon_create, plus)
BT_GETICON2(icon_delete, delete)
}
namespace paths {
BT_GETICON2(icon_add, add)
BT_GETICON2(icon_edit, pencil)
BT_GETICON2(icon_remove, remove)
}
}
}

#undef BT_GETICON
#undef BT_GETICON2

#endif