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-2021 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 
19 class 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 
25 namespace CResMgr {
26 
27 BT_GETICON2(icon_clearEdit, edit_clear_locationbar)
28 
29 namespace mainWindow {
30 BT_GETICON(bibletime)
31 BT_GETICON2(icon_openAction, folder_open)
32 }
33 namespace modules {
34 
35 BT_GETICON2(icon_moduleLanguage, flag)
36 
37 BT_GETICON2(icon_cult, stop)
38 
39 namespace bible {
40 BT_GETICON2(icon_unlocked, bible)
41 BT_GETICON2(icon_locked, bible_locked)
42 BT_GETICON2(icon_add, bible_add)
43 } /* namespace bible { */
44 
45 namespace commentary {
46 BT_GETICON2(icon_unlocked, commentary)
47 BT_GETICON2(icon_locked, commentary_locked)
48 BT_GETICON2(icon_add, commentary_add)
49 } /* namespace commentary { */
50 
51 namespace lexicon {
52 BT_GETICON2(icon_unlocked, lexicon)
53 BT_GETICON2(icon_locked, lexicon_locked)
54 BT_GETICON2(icon_add, lexicon_add)
55 } /* namespace lexicon { */
56 
57 namespace book {
58 BT_GETICON2(icon_unlocked, book)
59 BT_GETICON2(icon_locked, book_locked)
60 BT_GETICON2(icon_add, book_add)
61 } /* namespace book { */
62 } /* namespace modules { */
63 
64 namespace categories {
65 namespace bibles { BT_GETICON(bible) }
66 namespace commentaries { BT_GETICON(commentary) }
67 namespace lexicons { BT_GETICON(lexicon) }
68 namespace dailydevotional { BT_GETICON(calendar) }
69 namespace books { BT_GETICON(books) }
70 namespace glossary { BT_GETICON(dictionary) }
71 namespace images { BT_GETICON(map) }
72 namespace cults { BT_GETICON(questionable) }
73 } /* namespace categories { */
74 
75 namespace mainMenu { // Main menu
76 
77 namespace view { // Main menu->View
78 namespace showBookshelf { BT_GETICON(books) }
79 namespace showBookmarks { BT_GETICON(bookmark) }
80 namespace showMag { BT_GETICON(document_magnifier) }
81 namespace showMainIndex {
82 BT_GETICON(view_index)
83 extern const QKeySequence accel;
84 extern QString const actionName;
85 } /* namespace showMainIndex { */
86 namespace showInfoDisplay {
87 BT_GETICON(view_mag)
88 extern const QKeySequence accel;
89 extern QString const actionName;
90 } /* namespace showInfoDisplay { */
91 } /* namespace view { */
92 
93 namespace mainIndex { //configuration for the main index and the view->search menu
94 namespace search {
95 BT_GETICON(find)
96 extern const QKeySequence accel;
97 extern QString const actionName;
98 }
99 namespace searchdefaultbible {
100 BT_GETICON(find)
101 extern const QKeySequence accel;
102 extern QString const actionName;
103 }
104 }
105 
106 namespace window { //Main menu->Window
107 namespace quit { BT_GETICON(exit) }
108 namespace loadProfile {
109 BT_GETICON(view_profile)
110 extern QString const actionName;
111 }
112 namespace saveProfile {
113 BT_GETICON(view_profile)
114 extern QString const actionName;
115 }
116 namespace saveToNewProfile {
117 BT_GETICON(view_profile)
118 extern const QKeySequence accel;
119 extern QString const actionName;
120 }
121 namespace deleteProfile {
122 BT_GETICON(view_profile)
123 extern QString const actionName;
124 }
125 namespace showFullscreen {
126 BT_GETICON(window_fullscreen)
127 extern const QKeySequence accel;
128 extern QString const actionName;
129 }
130 namespace arrangementMode {
131 BT_GETICON(cascade_auto)
132 extern const QKeySequence accel;
133 extern QString const actionName;
134 
135 namespace manual {
137 extern const QKeySequence accel;
138 extern QString const actionName;
139 }
140 namespace autoTileHorizontal {
141 BT_GETICON(tile_horiz_auto)
142 extern const QKeySequence accel;
143 extern QString const actionName;
144 }
145 namespace autoTileVertical {
146 BT_GETICON(tile_vert_auto)
147 extern const QKeySequence accel;
148 extern QString const actionName;
149 }
150 namespace autoTile {
151 BT_GETICON(tile_auto)
152 extern const QKeySequence accel;
153 extern QString const actionName;
154 }
155 namespace autoTabbed {
156 BT_GETICON(tabbed)
157 extern const QKeySequence accel;
158 extern QString const actionName;
159 }
160 namespace autoCascade {
161 BT_GETICON(cascade_auto)
162 extern const QKeySequence accel;
163 extern QString const actionName;
164 }
165 }
166 namespace tileHorizontal {
167 BT_GETICON(tile_horiz)
168 extern const QKeySequence accel;
169 extern QString const actionName;
170 }
171 namespace tileVertical {
172 BT_GETICON(tile_vert)
173 extern const QKeySequence accel;
174 extern QString const actionName;
175 }
176 namespace tile {
177 BT_GETICON(tile)
178 extern const QKeySequence accel;
179 extern QString const actionName;
180 }
181 namespace cascade {
182 BT_GETICON(cascade)
183 extern const QKeySequence accel;
184 extern QString const actionName;
185 }
186 namespace close {
187 BT_GETICON(fileclose)
188 extern const QKeySequence accel;
189 extern QString const actionName;
190 }
191 namespace closeAll {
192 BT_GETICON(fileclose)
193 extern const QKeySequence accel;
194 extern QString const actionName;
195 }
196 }
197 
198 namespace settings { //Main menu->Settings
199 namespace configureDialog { BT_GETICON(configure) }
200 namespace swordSetupDialog {
201 BT_GETICON(swordconfig)
202 extern const QKeySequence accel;
203 extern QString const actionName;
204 }
205 }
206 
207 namespace help { //Main menu->Help
208 namespace handbook {
209 BT_GETICON(contents2)
210 extern const QKeySequence accel;
211 extern QString const actionName;
212 }
213 namespace bibleStudyHowTo {
214 BT_GETICON(contents2)
215 extern const QKeySequence accel;
216 extern QString const actionName;
217 }
218 namespace tipOfTheDay {
219 BT_GETICON(light_bulb)
220 extern const QKeySequence accel;
221 extern QString const actionName;
222 }
223 namespace aboutBibleTime { BT_GETICON(bibletime) }
224 }
225 } //end of main menu
226 
227 namespace findWidget {
228 BT_GETICON2(icon_close, stop)
229 BT_GETICON2(icon_previous, back)
230 BT_GETICON2(icon_next, forward)
231 }
232 
233 namespace searchdialog {
234 BT_GETICON(find)
235 BT_GETICON2(icon_close, stop)
236 BT_GETICON2(icon_help, questionmark)
237 BT_GETICON2(icon_chooseWorks, checkbox)
238 BT_GETICON2(icon_setupScope, configure)
239 
240 namespace result {
241 namespace moduleList {
242 namespace copyMenu { BT_GETICON(edit_copy) }
243 namespace saveMenu { BT_GETICON(file_save) }
244 namespace printMenu { BT_GETICON(print) }
245 }
246 namespace foundItems {
247 namespace copyMenu { BT_GETICON(edit_copy) }
248 namespace saveMenu { BT_GETICON(file_save) }
249 namespace printMenu { BT_GETICON(print) }
250 }
251 }
252 }
253 
254 namespace displaywindows {
255 namespace displaySettings {
256 BT_GETICON(displayconfig)
257 }
258 
259 namespace general {
260 BT_GETICON2(icon_removeModule, fileclose)
261 BT_GETICON2(icon_addModule, plus)
262 BT_GETICON2(icon_replaceModule, checkbox)
263 namespace search {
264 BT_GETICON(find)
265 extern const QKeySequence accel;
266 extern QString const actionName;
267 }
268 
269 namespace backInHistory {
270 BT_GETICON(back)
271 extern const QKeySequence accel;
272 extern QString const actionName;
273 }
274 namespace forwardInHistory {
275 BT_GETICON(forward)
276 extern const QKeySequence accel;
277 extern QString const actionName;
278 }
279 
280 namespace findStrongs {
281 extern const QKeySequence accel;
282 extern QString const actionName;
283 }
284 }
285 
286 namespace bibleWindow {
287 namespace nextBook {
288 extern const QKeySequence accel;
289 }
290 namespace previousBook {
291 extern const QKeySequence accel;
292 }
293 
294 namespace nextChapter {
295 extern const QKeySequence accel;
296 }
297 namespace previousChapter {
298 extern const QKeySequence accel;
299 }
300 
301 namespace nextVerse {
302 extern const QKeySequence accel;
303 }
304 namespace previousVerse {
305 extern const QKeySequence accel;
306 }
307 
308 namespace copyMenu { BT_GETICON(edit_copy) }
309 namespace saveMenu { BT_GETICON(file_save) }
310 namespace printMenu { BT_GETICON(print) }
311 }
312 namespace commentaryWindow {
313 namespace syncWindow {
314 BT_GETICON(sync)
315 extern const QKeySequence accel;
316 extern QString const actionName;
317 }
318 
319 }
320 
321 namespace lexiconWindow {
322 namespace nextEntry {
323 extern const QKeySequence accel;
324 }
325 namespace previousEntry {
326 extern const QKeySequence accel;
327 }
328 }
329 
330 namespace writeWindow {
331 namespace saveText {
332 BT_GETICON(file_save)
333 extern const QKeySequence accel;
334 extern QString const actionName;
335 }
336 namespace restoreText {
337 BT_GETICON(import)
338 extern const QKeySequence accel;
339 extern QString const actionName;
340 }
341 namespace deleteEntry {
342 BT_GETICON(delete)
343 extern const QKeySequence accel;
344 extern QString const actionName;
345 }
346 
347 //formatting buttons
348 namespace boldText {
349 BT_GETICON(text_bold)
350 extern const QKeySequence accel;
351 extern QString const actionName;
352 }
353 namespace italicText {
354 BT_GETICON(text_italic)
355 extern const QKeySequence accel;
356 extern QString const actionName;
357 }
358 namespace underlinedText {
359 BT_GETICON(text_under)
360 extern const QKeySequence accel;
361 extern QString const actionName;
362 }
363 
364 namespace alignLeft {
365 BT_GETICON(text_leftalign)
366 extern const QKeySequence accel;
367 extern QString const actionName;
368 }
369 namespace alignCenter {
370 BT_GETICON(text_center)
371 extern const QKeySequence accel;
372 extern QString const actionName;
373 }
374 namespace alignRight {
375 BT_GETICON(text_rightalign)
376 extern const QKeySequence accel;
377 extern QString const actionName;
378 }
379 namespace fontFamily {
380 extern const QKeySequence accel;
381 extern QString const actionName;
382 }
383 namespace fontSize {
384 extern const QKeySequence accel;
385 extern QString const actionName;
386 }
387 }
388 }
389 
390 namespace settings {
391 namespace startup { BT_GETICON(startconfig) }
392 namespace fonts { BT_GETICON(fonts) }
393 namespace profiles { BT_GETICON(view_profile) }
394 namespace sword { BT_GETICON(swordconfig) }
395 namespace keys { BT_GETICON(key_bindings) }
396 }
397 
398 namespace mainIndex { //configuration for the main index and the view->search menu
399 namespace showHide { BT_GETICON(layer_visible_on) }
400 namespace search {
401 BT_GETICON(find)
402 extern const QKeySequence accel;
403 extern QString const actionName;
404 }
405 namespace newFolder { BT_GETICON(folder_add) }
406 namespace changeFolder { BT_GETICON(folder) }
407 namespace openedFolder { BT_GETICON(folder_open) }
408 namespace closedFolder { BT_GETICON(folder) }
409 
410 namespace bookmark { BT_GETICON(bookmark) }
411 namespace editBookmark { BT_GETICON(bookmark) }
412 namespace sortFolderBookmarks { BT_GETICON(null) }
413 namespace sortAllBookmarks { BT_GETICON(null) }
414 namespace importBookmarks { BT_GETICON(import) }
415 namespace exportBookmarks { BT_GETICON(export) }
416 namespace printBookmarks { BT_GETICON(print) }
417 namespace deleteItems { BT_GETICON(delete) }
418 
419 namespace unlockModule { BT_GETICON(unlock) }
420 namespace aboutModule { BT_GETICON(info) }
421 namespace grouping { BT_GETICON(view_tree) }
422 }
423 
424 namespace bookshelfmgr {
425 namespace installpage {
426 BT_GETICON(bible_install)
427 BT_GETICON2(icon_refresh, refresh)
428 BT_GETICON2(icon_addSource, plus)
429 BT_GETICON2(icon_deleteSource, delete)
430 BT_GETICON2(icon_install, plus)
431 BT_GETICON2(icon_path, configure)
432 }
433 namespace removepage {
434 BT_GETICON(bible_uninstall)
435 BT_GETICON2(icon_remove, delete)
436 }
437 namespace indexpage {
438 BT_GETICON(document_magnifier)
439 BT_GETICON2(icon_create, plus)
440 BT_GETICON2(icon_delete, delete)
441 }
442 namespace paths {
443 BT_GETICON2(icon_add, add)
444 BT_GETICON2(icon_edit, pencil)
445 BT_GETICON2(icon_remove, remove)
446 }
447 }
448 }
449 
450 #undef BT_GETICON
451 #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
Results search(QString const &searchText, BtConstModuleList const &modules, sword::ListKey scope)