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)
28BT_GETICON2(icon_moduleLanguage, flag)
29
30namespace mainWindow {
31BT_GETICON(bibletime)
32BT_GETICON2(icon_openAction, folder_open)
33}
34
35namespace categories {
36namespace bibles {
37BT_GETICON(bible)
38BT_GETICON2(icon_locked, bible_locked)
39BT_GETICON2(icon_add, bible_add)
40}
41namespace commentaries {
42BT_GETICON(commentary)
43BT_GETICON2(icon_locked, commentary_locked)
44BT_GETICON2(icon_add, commentary_add)
45}
46namespace books {
47BT_GETICON(book)
48BT_GETICON2(icon_locked, book_locked)
49BT_GETICON2(icon_add, book_add)
50}
51namespace lexicons {
52BT_GETICON(lexicon)
53BT_GETICON2(icon_locked, lexicon_locked)
54BT_GETICON2(icon_add, lexicon_add)
55}
56namespace glossaries {
57BT_GETICON(dictionary)
58BT_GETICON2(icon_locked, dictionary_locked)
59BT_GETICON2(icon_add, dictionary_add)
60}
61namespace dailyDevotionals {
62BT_GETICON(calendar)
63BT_GETICON2(icon_locked, calendar_locked)
64BT_GETICON2(icon_add, calendar_add)
65}
66namespace mapsAndImages {
67BT_GETICON(map)
68BT_GETICON2(icon_locked, map_locked)
69BT_GETICON2(icon_add, map_add)
70}
71namespace questionable {
72BT_GETICON(questionable)
73BT_GETICON2(icon_locked, questionable_locked)
74BT_GETICON2(icon_add, questionable_add)
75}
76} /* namespace categories { */
77
78namespace mainMenu { // Main menu
79
80namespace file { // Main menu->File
81namespace quit { BT_GETICON(exit) }
82}
83
84namespace view { // Main menu->View
85namespace showFullscreen {
86BT_GETICON(window_fullscreen)
87}
88namespace showBookshelf { BT_GETICON(books) }
89namespace showBookmarks { BT_GETICON(bookmark) }
90namespace showMag { BT_GETICON(document_magnifier) }
91namespace showMainIndex {
92BT_GETICON(view_index)
93} /* namespace showMainIndex { */
94namespace showInfoDisplay {
95BT_GETICON(view_mag)
96} /* namespace showInfoDisplay { */
97} /* namespace view { */
98
99namespace mainIndex { //configuration for the main index and the view->search menu
100namespace search {
101BT_GETICON(find)
102}
103namespace searchdefaultbible {
104BT_GETICON(find)
105}
106}
107
108namespace window { //Main menu->Window
109namespace loadProfile {
110BT_GETICON(view_profile)
111}
112namespace saveProfile {
113BT_GETICON(view_profile)
114}
115namespace saveToNewProfile {
116BT_GETICON(view_profile)
117}
118namespace deleteProfile {
119BT_GETICON(view_profile)
120}
121namespace arrangementMode {
122BT_GETICON(cascade_auto)
123
124namespace manual {
126}
128BT_GETICON(tile_horiz_auto)
129}
131BT_GETICON(tile_vert_auto)
132}
133namespace autoTile {
134BT_GETICON(tile_auto)
135}
136namespace autoTabbed {
137BT_GETICON(tabbed)
138}
139namespace autoCascade {
140BT_GETICON(cascade_auto)
141}
142}
143namespace tileHorizontal {
144BT_GETICON(tile_horiz)
145}
146namespace tileVertical {
147BT_GETICON(tile_vert)
148}
149namespace tile {
150BT_GETICON(tile)
151}
152namespace cascade {
153BT_GETICON(cascade)
154}
155namespace close {
156BT_GETICON(fileclose)
157}
158namespace closeAll {
159BT_GETICON(fileclose)
160}
161}
162
163namespace settings { //Main menu->Settings
164namespace configureDialog { BT_GETICON(configure) }
165namespace swordSetupDialog {
166BT_GETICON(swordconfig)
167}
168}
169
170namespace help { //Main menu->Help
171namespace handbook {
172BT_GETICON(contents2)
173}
174namespace bibleStudyHowTo {
175BT_GETICON(contents2)
176}
177namespace tipOfTheDay {
178BT_GETICON(light_bulb)
179}
180namespace aboutBibleTime { BT_GETICON(bibletime) }
181}
182} //end of main menu
183
184namespace findWidget {
185BT_GETICON2(icon_close, stop)
186BT_GETICON2(icon_previous, back)
187BT_GETICON2(icon_next, forward)
188}
189
190namespace searchdialog {
191BT_GETICON(find)
192BT_GETICON2(icon_close, stop)
193BT_GETICON2(icon_chooseWorks, checkbox)
194BT_GETICON2(icon_setupScope, configure)
195
196namespace result {
197namespace moduleList {
198namespace copyMenu { BT_GETICON(edit_copy) }
199namespace saveMenu { BT_GETICON(file_save) }
200namespace printMenu { BT_GETICON(print) }
201}
202namespace foundItems {
203namespace copyMenu { BT_GETICON(edit_copy) }
204namespace saveMenu { BT_GETICON(file_save) }
205namespace printMenu { BT_GETICON(print) }
206}
207}
208}
209
210namespace displaywindows {
211namespace displaySettings {
212BT_GETICON(displayconfig)
213}
214
215namespace general {
216BT_GETICON2(icon_removeModule, fileclose)
217BT_GETICON2(icon_addModule, plus)
218BT_GETICON2(icon_replaceModule, checkbox)
219namespace search {
220BT_GETICON(find)
221extern const QKeySequence accel;
222extern QString const actionName;
223}
224
225namespace backInHistory {
226BT_GETICON(back)
227extern const QKeySequence accel;
228extern QString const actionName;
229}
230namespace forwardInHistory {
231BT_GETICON(forward)
232extern const QKeySequence accel;
233extern QString const actionName;
234}
235
236namespace findStrongs {
237extern const QKeySequence accel;
238extern QString const actionName;
239}
240}
241
242namespace bibleWindow {
243namespace nextBook {
244extern const QKeySequence accel;
245}
246namespace previousBook {
247extern const QKeySequence accel;
248}
249
250namespace nextChapter {
251extern const QKeySequence accel;
252}
253namespace previousChapter {
254extern const QKeySequence accel;
255}
256
257namespace nextVerse {
258extern const QKeySequence accel;
259}
260namespace previousVerse {
261extern const QKeySequence accel;
262}
263
264namespace copyMenu { BT_GETICON(edit_copy) }
265namespace saveMenu { BT_GETICON(file_save) }
266namespace printMenu { BT_GETICON(print) }
267}
268namespace commentaryWindow {
269namespace syncWindow {
270BT_GETICON(sync)
271extern const QKeySequence accel;
272extern QString const actionName;
273}
274
275}
276
277namespace lexiconWindow {
278namespace nextEntry {
279extern const QKeySequence accel;
280}
281namespace previousEntry {
282extern const QKeySequence accel;
283}
284}
285
286namespace writeWindow {
287
288//formatting buttons
289namespace boldText {
290BT_GETICON(text_bold)
291extern const QKeySequence accel;
292}
293namespace italicText {
294BT_GETICON(text_italic)
295extern const QKeySequence accel;
296}
297namespace underlinedText {
298BT_GETICON(text_under)
299extern const QKeySequence accel;
300}
301
302namespace alignLeft {
303BT_GETICON(text_leftalign)
304extern const QKeySequence accel;
305}
306namespace alignCenter {
307BT_GETICON(text_center)
308extern const QKeySequence accel;
309}
310namespace alignRight {
311BT_GETICON(text_rightalign)
312extern const QKeySequence accel;
313}
314namespace fontFamily {
315extern const QKeySequence accel;
316}
317namespace fontSize {
318extern const QKeySequence accel;
319}
320}
321}
322
323namespace settings {
324namespace speaker { BT_GETICON(speaker) }
325namespace startup { BT_GETICON(startconfig) }
326namespace fonts { BT_GETICON(fonts) }
327namespace profiles { BT_GETICON(view_profile) }
328namespace sword { BT_GETICON(swordconfig) }
329namespace keys { BT_GETICON(key_bindings) }
330}
331
332namespace mainIndex { //configuration for the main index and the view->search menu
333namespace showHide { BT_GETICON(layer_visible_on) }
334namespace search {
335BT_GETICON(find)
336extern const QKeySequence accel;
337}
338namespace newFolder { BT_GETICON(folder_add) }
339namespace changeFolder { BT_GETICON(folder) }
340namespace openedFolder { BT_GETICON(folder_open) }
341namespace closedFolder { BT_GETICON(folder) }
342
343namespace bookmark { BT_GETICON(bookmark) }
344namespace editBookmark { BT_GETICON(bookmark) }
345namespace sortFolderBookmarks { BT_GETICON(null) }
346namespace sortAllBookmarks { BT_GETICON(null) }
347namespace importBookmarks { BT_GETICON(import) }
348namespace exportBookmarks { BT_GETICON(export) }
349namespace printBookmarks { BT_GETICON(print) }
350namespace deleteItems { BT_GETICON(delete) }
351
352namespace unlockModule { BT_GETICON(unlock) }
353namespace aboutModule { BT_GETICON(info) }
354namespace grouping { BT_GETICON(view_tree) }
355}
356
357namespace bookshelfmgr {
358namespace indexpage {
359BT_GETICON(document_magnifier)
360BT_GETICON2(icon_create, plus)
361BT_GETICON2(icon_delete, delete)
362}
363}
364}
365
366#undef BT_GETICON
367#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