BibleTime
cresmgr.h
Go to the documentation of this file.
1/*********
2*
3* In the name of the Father, and of the Son, and of the Holy Spirit.
4*
5* This file is part of BibleTime's source code, https://bibletime.info/
6*
7* Copyright 1999-2025 by the BibleTime developers.
8* The BibleTime source code is licensed under the GNU General Public License
9* version 2.0.
10*
11**********/
12
13#pragma once
14
15#include <QKeySequence>
16#include "bticons.h"
17
18
19class QIcon;
20
21#define BT_GETICON2(fname,name) \
22 inline QIcon const & fname() { return BtIcons::instance().icon_ ## name; }
23#define BT_GETICON(name) BT_GETICON2(icon,name)
24
25namespace CResMgr {
26
27BT_GETICON2(icon_clearEdit, edit_clear_locationbar)
28
29namespace mainWindow {
30BT_GETICON(bibletime)
31BT_GETICON2(icon_openAction, folder_open)
32}
33namespace modules {
34
35BT_GETICON2(icon_moduleLanguage, flag)
36
37BT_GETICON2(icon_cult, stop)
38
39namespace bible {
40BT_GETICON2(icon_unlocked, bible)
41BT_GETICON2(icon_locked, bible_locked)
42BT_GETICON2(icon_add, bible_add)
43} /* namespace bible { */
44
45namespace commentary {
46BT_GETICON2(icon_unlocked, commentary)
47BT_GETICON2(icon_locked, commentary_locked)
48BT_GETICON2(icon_add, commentary_add)
49} /* namespace commentary { */
50
51namespace lexicon {
52BT_GETICON2(icon_unlocked, lexicon)
53BT_GETICON2(icon_locked, lexicon_locked)
54BT_GETICON2(icon_add, lexicon_add)
55} /* namespace lexicon { */
56
57namespace book {
58BT_GETICON2(icon_unlocked, book)
59BT_GETICON2(icon_locked, book_locked)
60BT_GETICON2(icon_add, book_add)
61} /* namespace book { */
62} /* namespace modules { */
63
64namespace categories {
65namespace bibles { BT_GETICON(bible) }
66namespace commentaries { BT_GETICON(commentary) }
67namespace lexicons { BT_GETICON(lexicon) }
68namespace dailydevotional { BT_GETICON(calendar) }
69namespace books { BT_GETICON(books) }
70namespace glossary { BT_GETICON(dictionary) }
71namespace images { BT_GETICON(map) }
72namespace cults { BT_GETICON(questionable) }
73} /* namespace categories { */
74
75namespace mainMenu { // Main menu
76
77namespace file { // Main menu->File
78namespace quit { BT_GETICON(exit) }
79}
80
81namespace view { // Main menu->View
82namespace showFullscreen {
83BT_GETICON(window_fullscreen)
84}
85namespace showBookshelf { BT_GETICON(books) }
86namespace showBookmarks { BT_GETICON(bookmark) }
87namespace showMag { BT_GETICON(document_magnifier) }
88namespace showMainIndex {
89BT_GETICON(view_index)
90} /* namespace showMainIndex { */
91namespace showInfoDisplay {
92BT_GETICON(view_mag)
93} /* namespace showInfoDisplay { */
94} /* namespace view { */
95
96namespace mainIndex { //configuration for the main index and the view->search menu
97namespace search {
98BT_GETICON(find)
99}
100namespace searchdefaultbible {
101BT_GETICON(find)
102}
103}
104
105namespace window { //Main menu->Window
106namespace loadProfile {
107BT_GETICON(view_profile)
108}
109namespace saveProfile {
110BT_GETICON(view_profile)
111}
112namespace saveToNewProfile {
113BT_GETICON(view_profile)
114}
115namespace deleteProfile {
116BT_GETICON(view_profile)
117}
118namespace arrangementMode {
119BT_GETICON(cascade_auto)
120
121namespace manual {
123}
125BT_GETICON(tile_horiz_auto)
126}
128BT_GETICON(tile_vert_auto)
129}
130namespace autoTile {
131BT_GETICON(tile_auto)
132}
133namespace autoTabbed {
134BT_GETICON(tabbed)
135}
136namespace autoCascade {
137BT_GETICON(cascade_auto)
138}
139}
140namespace tileHorizontal {
141BT_GETICON(tile_horiz)
142}
143namespace tileVertical {
144BT_GETICON(tile_vert)
145}
146namespace tile {
147BT_GETICON(tile)
148}
149namespace cascade {
150BT_GETICON(cascade)
151}
152namespace close {
153BT_GETICON(fileclose)
154}
155namespace closeAll {
156BT_GETICON(fileclose)
157}
158}
159
160namespace settings { //Main menu->Settings
161namespace configureDialog { BT_GETICON(configure) }
162namespace swordSetupDialog {
163BT_GETICON(swordconfig)
164}
165}
166
167namespace help { //Main menu->Help
168namespace handbook {
169BT_GETICON(contents2)
170}
171namespace bibleStudyHowTo {
172BT_GETICON(contents2)
173}
174namespace tipOfTheDay {
175BT_GETICON(light_bulb)
176}
177namespace aboutBibleTime { BT_GETICON(bibletime) }
178}
179} //end of main menu
180
181namespace findWidget {
182BT_GETICON2(icon_close, stop)
183BT_GETICON2(icon_previous, back)
184BT_GETICON2(icon_next, forward)
185}
186
187namespace searchdialog {
188BT_GETICON(find)
189BT_GETICON2(icon_close, stop)
190BT_GETICON2(icon_help, questionmark)
191BT_GETICON2(icon_chooseWorks, checkbox)
192BT_GETICON2(icon_setupScope, configure)
193
194namespace result {
195namespace moduleList {
196namespace copyMenu { BT_GETICON(edit_copy) }
197namespace saveMenu { BT_GETICON(file_save) }
198namespace printMenu { BT_GETICON(print) }
199}
200namespace foundItems {
201namespace copyMenu { BT_GETICON(edit_copy) }
202namespace saveMenu { BT_GETICON(file_save) }
203namespace printMenu { BT_GETICON(print) }
204}
205}
206}
207
208namespace displaywindows {
209namespace displaySettings {
210BT_GETICON(displayconfig)
211}
212
213namespace general {
214BT_GETICON2(icon_removeModule, fileclose)
215BT_GETICON2(icon_addModule, plus)
216BT_GETICON2(icon_replaceModule, checkbox)
217namespace search {
218BT_GETICON(find)
219extern const QKeySequence accel;
220extern QString const actionName;
221}
222
223namespace backInHistory {
224BT_GETICON(back)
225extern const QKeySequence accel;
226extern QString const actionName;
227}
228namespace forwardInHistory {
229BT_GETICON(forward)
230extern const QKeySequence accel;
231extern QString const actionName;
232}
233
234namespace findStrongs {
235extern const QKeySequence accel;
236extern QString const actionName;
237}
238}
239
240namespace bibleWindow {
241namespace nextBook {
242extern const QKeySequence accel;
243}
244namespace previousBook {
245extern const QKeySequence accel;
246}
247
248namespace nextChapter {
249extern const QKeySequence accel;
250}
251namespace previousChapter {
252extern const QKeySequence accel;
253}
254
255namespace nextVerse {
256extern const QKeySequence accel;
257}
258namespace previousVerse {
259extern const QKeySequence accel;
260}
261
262namespace copyMenu { BT_GETICON(edit_copy) }
263namespace saveMenu { BT_GETICON(file_save) }
264namespace printMenu { BT_GETICON(print) }
265}
266namespace commentaryWindow {
267namespace syncWindow {
268BT_GETICON(sync)
269extern const QKeySequence accel;
270extern QString const actionName;
271}
272
273}
274
275namespace lexiconWindow {
276namespace nextEntry {
277extern const QKeySequence accel;
278}
279namespace previousEntry {
280extern const QKeySequence accel;
281}
282}
283
284namespace writeWindow {
285
286//formatting buttons
287namespace boldText {
288BT_GETICON(text_bold)
289extern const QKeySequence accel;
290}
291namespace italicText {
292BT_GETICON(text_italic)
293extern const QKeySequence accel;
294}
295namespace underlinedText {
296BT_GETICON(text_under)
297extern const QKeySequence accel;
298}
299
300namespace alignLeft {
301BT_GETICON(text_leftalign)
302extern const QKeySequence accel;
303}
304namespace alignCenter {
305BT_GETICON(text_center)
306extern const QKeySequence accel;
307}
308namespace alignRight {
309BT_GETICON(text_rightalign)
310extern const QKeySequence accel;
311}
312namespace fontFamily {
313extern const QKeySequence accel;
314}
315namespace fontSize {
316extern const QKeySequence accel;
317}
318}
319}
320
321namespace settings {
322namespace startup { BT_GETICON(startconfig) }
323namespace fonts { BT_GETICON(fonts) }
324namespace profiles { BT_GETICON(view_profile) }
325namespace sword { BT_GETICON(swordconfig) }
326namespace keys { BT_GETICON(key_bindings) }
327}
328
329namespace mainIndex { //configuration for the main index and the view->search menu
330namespace showHide { BT_GETICON(layer_visible_on) }
331namespace search {
332BT_GETICON(find)
333extern const QKeySequence accel;
334}
335namespace newFolder { BT_GETICON(folder_add) }
336namespace changeFolder { BT_GETICON(folder) }
337namespace openedFolder { BT_GETICON(folder_open) }
338namespace closedFolder { BT_GETICON(folder) }
339
340namespace bookmark { BT_GETICON(bookmark) }
341namespace editBookmark { BT_GETICON(bookmark) }
342namespace sortFolderBookmarks { BT_GETICON(null) }
343namespace sortAllBookmarks { BT_GETICON(null) }
344namespace importBookmarks { BT_GETICON(import) }
345namespace exportBookmarks { BT_GETICON(export) }
346namespace printBookmarks { BT_GETICON(print) }
347namespace deleteItems { BT_GETICON(delete) }
348
349namespace unlockModule { BT_GETICON(unlock) }
350namespace aboutModule { BT_GETICON(info) }
351namespace grouping { BT_GETICON(view_tree) }
352}
353
354namespace bookshelfmgr {
355namespace installpage {
356BT_GETICON(bible_install)
357BT_GETICON2(icon_refresh, refresh)
358BT_GETICON2(icon_addSource, plus)
359BT_GETICON2(icon_deleteSource, delete)
360BT_GETICON2(icon_install, plus)
361BT_GETICON2(icon_path, configure)
362}
363namespace removepage {
364BT_GETICON(bible_uninstall)
365BT_GETICON2(icon_remove, delete)
366}
367namespace indexpage {
368BT_GETICON(document_magnifier)
369BT_GETICON2(icon_create, plus)
370BT_GETICON2(icon_delete, delete)
371}
372namespace paths {
373BT_GETICON2(icon_add, add)
374BT_GETICON2(icon_edit, pencil)
375BT_GETICON2(icon_remove, remove)
376}
377}
378}
379
380#undef BT_GETICON
381#undef BT_GETICON2
@ autoTabbed
Definition btglobal.h:74
@ autoTileHorizontal
Definition btglobal.h:72
@ autoCascade
Definition btglobal.h:75
@ autoTile
Definition btglobal.h:73
@ autoTileVertical
Definition btglobal.h:71
@ manual
Definition btglobal.h:76
#define BT_GETICON2(fname, name)
Definition cresmgr.h:21
#define BT_GETICON(name)
Definition cresmgr.h:23
const QKeySequence accel