3
* This file is part of BibleTime's source code, http://www.bibletime.info/.
5
* Copyright 1999-2006 by the BibleTime developers.
6
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
15
#include "backend/cswordbackend.h"
24
const QString icon_unlocked = "bt_bible";
25
const QString icon_locked = "bt_bible_locked";
26
const QString icon_add = "bt_bible_add";
28
namespace commentary {
29
const QString icon_unlocked = "bt_commentary";
30
const QString icon_locked = "bt_commentary_locked";
31
const QString icon_add = "bt_commentary_add";
34
const QString icon_unlocked = "bt_lexicon";
35
const QString icon_locked = "bt_lexicon_locked";
36
const QString icon_add = "bt_lexicon_add";
39
const QString icon_unlocked = "bt_book";
40
const QString icon_locked = "bt_book_locked";
41
const QString icon_add = "bt_book_add";
45
namespace mainMenu { //Main menu
46
namespace file { //Main menu->File
47
namespace print { //a standard action
51
namespace quit { //a standard action
57
namespace view { //Main menu->View
58
namespace showMainIndex {
61
const QString icon = "view_sidetree";
62
const KShortcut accel = Qt::Key_F9;
63
const char* actionName = "viewMainIndex_action";
65
namespace showInfoDisplay {
68
const QString icon = "view_sidetree";
69
const KShortcut accel = Qt::Key_F8;
70
const char* actionName = "viewInfoDisplay_action";
72
namespace showToolBar { //a standard action
78
namespace mainIndex { //Main menu->Settings
82
const QString icon = "find";
83
const KShortcut accel = Qt::CTRL + Qt::Key_O;
84
const char* actionName = "mainindex_search_action";
86
namespace searchdefaultbible {
89
const QString icon = "find";
90
const KShortcut accel = Qt::CTRL + Qt::ALT + Qt::Key_F;
91
const char* actionName = "mainindex_searchdefaultbible_action";
95
namespace window { //Main menu->Window
96
namespace loadProfile {
99
const QString icon = "view_sidetree";
100
const char* actionName = "windowLoadProfile_action";
102
namespace saveProfile {
105
const QString icon = "view_sidetree";
106
const char* actionName = "windowSaveProfile_action";
108
namespace saveToNewProfile {
111
const QString icon = "view_sidetree";
112
const KShortcut accel = Qt::CTRL + Qt::ALT + Qt::Key_S;
113
const char* actionName = "windowSaveToNewProfile_action";
115
namespace deleteProfile {
118
const QString icon = "view_sidetree";
119
const char* actionName = "windowDeleteProfile_action";
121
namespace showFullscreen {
124
const QString icon = "window_fullscreen";
125
const KShortcut accel = Qt::CTRL + Qt::SHIFT + Qt::Key_F;
126
const char* actionName = "windowFullscreen_action";
128
namespace arrangementMode {
131
const QString icon = "bt_cascade_auto";
132
const KShortcut accel = KKeySequence();
133
const char* actionName = "windowArrangementMode_action";
138
const QString icon = "bt_tile";
139
const KShortcut accel = Qt::CTRL + Qt::ALT + Qt::Key_M;
140
const char* actionName = "windowArrangementManual_action";
142
namespace autoTileHorizontal {
145
const QString icon = "bt_tile_auto";
146
const KShortcut accel = Qt::CTRL + Qt::ALT + Qt::Key_H;
147
const char* actionName = "windowAutoTileHorizontal_action";
149
namespace autoTileVertical {
152
const QString icon = "bt_tile_auto";
153
const KShortcut accel = Qt::CTRL + Qt::ALT + Qt::Key_G;
154
const char* actionName = "windowAutoTileVertical_action";
156
namespace autoCascade {
159
const QString icon = "bt_cascade_auto";
160
const KShortcut accel = Qt::CTRL + Qt::ALT + Qt::Key_J;
161
const char* actionName = "windowAutoCascade_action";
164
namespace tileHorizontal {
167
const QString icon = "bt_tile";
168
const KShortcut accel = Qt::CTRL + Qt::Key_H;
169
const char* actionName = "windowTileHorizontal_action";
171
namespace tileVertical {
174
const QString icon = "bt_tile";
175
const KShortcut accel = Qt::CTRL + Qt::Key_G;
176
const char* actionName = "windowTileVertical_action";
181
const QString icon = "bt_cascade";
182
const KShortcut accel = Qt::CTRL + Qt::Key_J;
183
const char* actionName = "windowCascade_action";
188
const QString icon = "fileclose";
189
const KShortcut accel = Qt::CTRL + Qt::ALT + Qt::Key_W;
190
const char* actionName = "windowCloseAll_action";
194
namespace settings { //Main menu->Settings
195
namespace editToolBar { // available as KStdAction
199
namespace optionsDialog { // available as KStdAction
203
namespace swordSetupDialog {
206
const QString icon = "bt_swordconfig";
207
const KShortcut accel = Qt::Key_F4;
208
const char* actionName = "options_sword_setup";
213
namespace help { //Main menu->Help
217
const QString icon = "contents";
218
const KShortcut accel = Qt::Key_F1;
219
const char* actionName = "helpHandbook_action";
221
namespace bibleStudyHowTo {
224
const QString icon = "contents";
225
const KShortcut accel = Qt::Key_F2;
226
const char* actionName = "helpHowTo_action";
228
namespace bugreport { // available as KStdAction
235
const QString icon = "idea";
236
const KShortcut accel = Qt::Key_F3;
237
const char* actionName = "helpDailyTip_action";
239
namespace aboutBibleTime { // available as KStdAction
243
namespace aboutKDE { // available as KStdAction
250
namespace searchdialog {
251
const QString icon = "find";
253
namespace searchButton {
257
namespace cancelSearchButton {
263
namespace moduleChooserButton {
267
namespace searchedText {
271
namespace searchType {
272
namespace multipleWords_and {
276
namespace multipleWords_or {
280
namespace exactMatch {
290
namespace searchOptions {
291
namespace caseSensitive {
296
namespace chooseScope {
300
namespace scopeEditor {
301
namespace rangeList {
309
namespace editRange {
313
namespace parsedResult {
317
namespace addNewRange {
321
namespace deleteCurrentRange {
329
namespace moduleList {
334
const QString icon = "editcopy";
337
const QString icon = "filesave";
339
namespace printMenu {
340
const QString icon = "fileprint";
343
namespace foundItems {
348
const QString icon = "editcopy";
351
const QString icon = "filesave";
353
namespace printMenu {
354
const QString icon = "fileprint";
357
namespace textPreview {
364
namespace workspace {}
366
namespace displaywindows {
367
/* namespace transliteration {
368
const QString icon = "bt_displaytranslit";
370
namespace displaySettings {
371
const QString icon = "bt_displayconfig";
375
namespace scrollButton {
382
const QString icon = "find";
383
const KShortcut accel = Qt::CTRL + Qt::Key_L;
384
const char* actionName = "window_search_action";
387
namespace backInHistory {
390
const QString icon = "previous";
391
const KShortcut accel = Qt::ALT + Qt::Key_Left;
392
const char* actionName = "window_history_back_action";
394
namespace forwardInHistory {
397
const QString icon = "next";
398
const KShortcut accel = Qt::ALT + Qt::Key_Right;
399
const char* actionName = "window_history_forward_action";
401
namespace findStrongs {
404
const QString icon = "bt_findstrongs";
405
const KShortcut accel = KShortcut(0);
406
const char* actionName = "window_find_strongs_action";
410
namespace bibleWindow {
418
const KShortcut accel = Qt::CTRL + Qt::Key_Y;
420
namespace previousBook {
423
const KShortcut accel = Qt::CTRL + Qt::SHIFT + Qt::Key_Y;
426
namespace chapterList {
429
namespace nextChapter {
431
const KShortcut accel = Qt::CTRL + Qt::Key_X;
433
namespace previousChapter {
435
const KShortcut accel = Qt::CTRL + Qt::SHIFT + Qt::Key_X;
437
namespace verseList {
440
namespace nextVerse {
442
const KShortcut accel = Qt::CTRL + Qt::Key_V;
444
namespace previousVerse {
446
const KShortcut accel = Qt::CTRL + Qt::SHIFT + Qt::Key_V;
450
const QString icon = "editcopy";
453
const QString icon = "filesave";
455
namespace printMenu {
456
const QString icon = "fileprint";
459
namespace commentaryWindow {
460
namespace syncWindow {
462
const QString icon = "bt_sync";
463
const KShortcut accel = KKeySequence();
464
const char* actionName = "commentary_syncWindow";
467
namespace lexiconWindow {
468
namespace entryList {
471
namespace nextEntry {
473
const KShortcut accel = Qt::CTRL + Qt::Key_V;
475
namespace previousEntry {
477
const KShortcut accel = Qt::CTRL + Qt::SHIFT + Qt::Key_V;
481
const QString icon = "editcopy";
484
const QString icon = "filesave";
486
namespace printMenu {
487
const QString icon = "fileprint";
490
namespace bookWindow {
491
namespace toggleTree {
492
const QString icon = "view_sidetree";
493
const KShortcut accel = KKeySequence();
497
namespace writeWindow {
501
const QString icon = "filesave";
502
const KShortcut accel = KKeySequence();
503
const char* actionName = "writeWindow_saveText";
505
namespace restoreText {
508
const QString icon = "undo";
509
const KShortcut accel = KKeySequence();
510
const char* actionName = "writeWindow_restoreText";
512
namespace deleteEntry {
515
const QString icon = "editdelete";
516
const KShortcut accel = KKeySequence();
517
const char* actionName = "writeWindow_deleteEntry";
524
const QString icon = "text_bold";
525
const KShortcut accel = KKeySequence();
526
const char* actionName = "writeWindow_boldText";
528
namespace italicText {
531
const QString icon = "text_italic";
532
const KShortcut accel = KKeySequence();
533
const char* actionName = "writeWindow_italicText";
535
namespace underlinedText {
538
const QString icon = "text_under";
539
const KShortcut accel = KKeySequence();
540
const char* actionName = "writeWindow_underlineText";
543
namespace alignLeft {
546
const QString icon = "text_left";
547
const KShortcut accel = KKeySequence();
548
const char* actionName = "writeWindow_alignLeft";
550
namespace alignCenter {
553
const QString icon = "text_center";
554
const KShortcut accel = KKeySequence();
555
const char* actionName = "writeWindow_alignCenter";
557
namespace alignRight {
560
const QString icon = "rightjust";
561
const KShortcut accel = KKeySequence();
562
const char* actionName = "writeWindow_alignRight";
564
namespace alignJustify {
567
const QString icon = "text_block";
568
const KShortcut accel = KKeySequence();
569
const char* actionName = "writeWindow_alignJustify";
572
namespace fontFamily {
575
const KShortcut accel = KKeySequence();
576
const char* actionName = "writeWindow_fontFamily";
581
const KShortcut accel = KKeySequence();
582
const char* actionName = "writeWindow_fontSize";
584
namespace fontColor {
592
const QString icon = "bt_startconfig";
599
namespace restoreWorkingArea {
604
const QString icon = "fonts";
606
namespace typeChooser {
611
const QString icon = "view_sidetree";
616
namespace createNew {
619
namespace deleteCurrent {
622
namespace renameCurrent {
627
const QString icon = "bt_swordconfig";
638
namespace commentary {
645
namespace dailyDevotional {
648
namespace hebrewStrongs {
651
namespace greekStrongs {
654
namespace hebrewMorph {
657
namespace greekMorph {
663
const QString icon = "key_bindings";
667
namespace mainIndex { //Main menu->Settings
671
const QString icon = "find";
672
const KShortcut accel = Qt::CTRL + Qt::ALT + Qt::Key_M;
673
const char* actionName = "GMsearch_action";
675
namespace newFolder {
676
const QString icon = "folder_new";
678
namespace changeFolder {
679
const QString icon = "folder";
681
namespace openedFolder {
682
const QString icon = "folder_open";
684
namespace closedFolder {
685
const QString icon = "folder";
689
const QString icon = "bookmark";
691
namespace changeBookmark {
692
const QString icon = "bookmark";
694
namespace importBookmarks {
695
const QString icon = "bookmark";
697
namespace exportBookmarks {
698
const QString icon = "bookmark";
700
namespace printBookmarks {
701
const QString icon = "fileprint";
703
namespace deleteItems {
704
const QString icon = "filedelete";
707
namespace editModuleMenu {
708
const QString icon = "pencil";
710
namespace editModulePlain {
711
const QString icon = "pencil";
713
namespace editModuleHTML {
714
const QString icon = "pencil";
717
namespace unlockModule {
718
const QString icon = "unlock";
720
namespace aboutModule {
721
const QString icon = "info";
730
using namespace CResMgr;
732
using namespace mainMenu;
734
using namespace file;
736
using namespace print;
737
tooltip = i18n ("Open the printer dialog of BibleTime, where you can edit the print queue, assign styles to the items and print them.") ;
740
using namespace quit;
741
tooltip = i18n ("Close BibleTime and save the settings.") ;
745
using namespace view;
747
using namespace showMainIndex;
748
tooltip = i18n ("Show or hide the bookshelf.") ;
751
using namespace showToolBar;
752
tooltip = i18n ("Toggle the main toolbar view.") ;
757
using namespace mainMenu::mainIndex;
759
using namespace search;
760
tooltip = i18n ("Open the search dialog to search in all works that are currently open.") ;
763
using namespace searchdefaultbible;
764
tooltip = i18n ("Open the search dialog to search in the standard Bible.") ;
769
using namespace window;
771
using namespace loadProfile;
772
tooltip = i18n ("Restore a saved BibleTime session.") ;
775
using namespace saveProfile;
776
tooltip = i18n ("Save current BibleTime session so that it can be reused later.") ;
779
using namespace saveToNewProfile;
780
tooltip = i18n ("Create and save a new session.") ;
783
using namespace deleteProfile;
784
tooltip = i18n ("Delete a BibleTime session.") ;
787
using namespace showFullscreen;
788
tooltip = i18n ("Toggle fullscreen mode of the main window.") ;
791
using namespace tileVertical;
792
tooltip = i18n ("Vertically tile the open windows.") ;
795
using namespace tileHorizontal;
796
tooltip = i18n ("Horizontally tile the open windows.") ;
799
using namespace cascade;
800
tooltip = i18n ("Cascade the open windows.") ;
804
using namespace arrangementMode;
805
tooltip = i18n ("Choose the way that is used to arrange the windows.") ;
808
using namespace arrangementMode::autoTileVertical;
809
tooltip = i18n ("Automatically tile the open windows vertically.") ;
812
using namespace arrangementMode::autoTileHorizontal;
813
tooltip = i18n ("Automatically tile the open windows horizontally.") ;
816
using namespace arrangementMode::autoCascade;
817
tooltip = i18n ("Automatically cascade the open windows.") ;
821
using namespace closeAll;
822
tooltip = i18n ("Close all open windows.") ;
827
using namespace mainMenu::settings;
829
using namespace editToolBar;
830
tooltip = i18n ("Open BibleTime's toolbar editor.") ;
833
using namespace optionsDialog;
834
tooltip = i18n ("Open the dialog to set most of BibleTime's preferences.") ;
837
using namespace swordSetupDialog;
838
tooltip = i18n ("Open the dialog to configure your bookshelf and install/update/remove works.") ;
844
using namespace help;
846
using namespace handbook;
847
tooltip = i18n ("Open BibleTime's handbook in the KDE helpbrowser.") ;
850
using namespace bibleStudyHowTo;
851
tooltip = i18n ("Open the Bible study HowTo included with BibleTime in the KDE helpbrowser. <BR>This HowTo is an introduction on how to study the Bible in an efficient way.") ;
854
using namespace bugreport;
855
tooltip = i18n ("Send a bugreport to the developers of BibleTime.") ;
858
using namespace dailyTip;
859
tooltip = i18n ("Show a daily tip each time BibleTime starts. <BR>The tips contain important Bible quotations and helpful tips for using BibleTime.") ;
862
using namespace aboutBibleTime;
863
tooltip = i18n ("Show detailed information about BibleTime.") ;
866
using namespace aboutKDE;
867
tooltip = i18n ("Show detailed information about the KDE project.") ;
874
using namespace searchdialog;
876
using namespace searchButton;
877
tooltip = i18n ("Start to search the text in each of the chosen work(s).") ;
880
using namespace cancelSearchButton;
881
tooltip = i18n ("Stop the active search.") ;
885
using namespace options;
887
using namespace moduleChooserButton;
888
tooltip = i18n ("Open a dialog to choose work(s) for the search.") ;
891
using namespace searchedText;
892
tooltip = i18n ("Enter the text you want to search in the chosen work(s) here.") ;
895
using namespace searchType;
897
using namespace multipleWords_and;
898
tooltip = i18n ("Treat the search text as multiple words. A text must contain all of the words to match. The order of the words is unimportant.") ;
901
using namespace multipleWords_or;
902
tooltip = i18n ("Treat the search text as multiple words. A text must contain one or more words of to match. The order is unimportant.") ;
905
using namespace exactMatch;
906
tooltip = i18n ("The search text will be used exactly as entered.") ;
909
using namespace regExp;
910
tooltip = i18n ("Treat the search string as a GNU regular expression. The BibleTime handbook contains an introduction to regular expressions.") ;
915
using namespace searchOptions;
917
using namespace caseSensitive;
918
tooltip = i18n ("If you choose this option the search will distinguish between upper and lowercase characters.") ;
922
using namespace chooseScope;
923
tooltip = i18n ("Choose a scope from the list. \
924
Select the first item to use no scope, the second one is to use each work's last search result as search scope. \
925
The others are user defined search scopes.");
928
using namespace scopeEditor;
930
using namespace rangeList;
931
tooltip = i18n ("Select an item from the list to edit the search scope.") ;
934
using namespace nameEdit;
935
tooltip = i18n ("Change the name of the selected search scope.") ;
938
using namespace editRange;
939
tooltip = i18n ("Change the search ranges of the selected search scope item. Have a look at the predefined search scopes to see how search ranges are constructed.") ;
942
using namespace parsedResult;
943
tooltip = i18n ("Contains the search ranges which will be used for the search.") ;
946
using namespace addNewRange;
947
tooltip = i18n ("Add a new search scope. First enter an appropriate name, then edit the search ranges.") ;
950
using namespace deleteCurrentRange;
951
tooltip = i18n ("Deletes the selected search scope. If you close the dialog using Cancel the settings won't be saved.") ;
956
using namespace result;
958
using namespace moduleList;
959
tooltip = i18n ("The list of works chosen for the search.") ;
962
using namespace foundItems;
963
tooltip = i18n ("This list contains the search result of the selected work.") ;
966
using namespace textPreview;
967
tooltip = i18n ("The text preview of the selected search result item.") ;
973
using namespace displaywindows;
975
using namespace general;
978
using namespace scrollButton;
979
tooltip = i18n ("This button is useful to scroll through the entries of the list. Press the button and move the mouse to increase or decrease the item.") ;
982
using namespace search;
983
tooltip = i18n ("This button opens the search dialog with the work(s) of this window.") ;
987
using namespace backInHistory;
988
tooltip = i18n ("Go back one item in the display history.") ;
991
using namespace forwardInHistory;
992
tooltip = i18n ("Go forward one item in the display history.") ;
996
using namespace findStrongs;
997
tooltip = i18n ("Show all occurences of the Strong number currently under the mouse cursor.") ;
1000
using namespace bibleWindow;
1002
using namespace bookList;
1003
tooltip = i18n ("This list contains the books which are available in this work.") ;
1006
using namespace nextBook;
1007
tooltip = i18n ("Show the next book of this work.") ;
1010
using namespace previousBook;
1011
tooltip = i18n ("Show the previous book of this work.") ;
1014
using namespace chapterList;
1015
tooltip = i18n ("This list contains the chapters which are available in the current book.") ;
1018
using namespace nextChapter;
1019
tooltip = i18n ("Show the next chapter of the work.") ;
1022
using namespace previousChapter;
1023
tooltip = i18n ("Show the previous chapter of the work.") ;
1026
using namespace verseList;
1027
tooltip = i18n ("This list contains the verses which are available in the current chapter.") ;
1030
using namespace nextVerse;
1031
tooltip = i18n ("In Bible texts, the next verse will be highlighted. In commentaries, the next entry will be shown.") ;
1035
using namespace previousVerse;
1036
tooltip = i18n ("In Bible texts, the previous verse will be highlighted. In commentaries, the previous entry will be shown.") ;
1040
using namespace commentaryWindow;
1042
using namespace syncWindow;
1043
tooltip = i18n ("Synchronize the displayed entry of this work with the active Bible window.") ;
1047
using namespace lexiconWindow;
1049
using namespace entryList;
1050
tooltip = i18n ("This list contains the entries of the current work.") ;
1053
using namespace nextEntry;
1054
tooltip = i18n ("The next entry of the work will be shown.") ;
1057
using namespace previousEntry;
1058
tooltip = i18n ("The previous entry of the work will be shown.") ;
1063
using namespace writeWindow;
1065
using namespace saveText;
1066
tooltip = i18n ("Save the curent text into the work. The old text will be overwritten.") ;
1069
using namespace restoreText;
1070
tooltip = i18n ("Loads the old text from the work and loads it into the edit area. The unsaved text will be lost.") ;
1073
using namespace deleteEntry;
1074
tooltip = i18n ("Deletes the current entry out of the work. The text will be lost.") ;
1077
//formatting buttons
1079
using namespace boldText;
1080
tooltip = i18n ("Toggle bold formatting of the selected text.") ;
1083
using namespace italicText;
1084
tooltip = i18n ("Toggle italic formatting of the selected text.") ;
1087
using namespace underlinedText;
1088
tooltip = i18n ("Toggle underlined formatting of the selected text.") ;
1092
using namespace alignLeft;
1093
tooltip = i18n ("The text will be aligned on the left side of the page.") ;
1096
using namespace alignCenter;
1097
tooltip = i18n ("Centers the text horizontally.") ;
1100
using namespace alignRight;
1101
tooltip = i18n ("Aligns the text on the right side of the page.") ;
1104
using namespace alignJustify;
1105
tooltip = i18n ("Justifies the text on the page.") ;
1109
using namespace fontFamily;
1110
tooltip = i18n ("Choose a new font for the selected text.") ;
1112
{ using namespace fontSize;
1113
tooltip = i18n ("Choose a new font size for the selected text.") ;
1115
{ using namespace fontColor;
1116
tooltip = i18n ("Choose a new color for the selected text.") ;
1121
using namespace settings;
1123
using namespace startup;
1125
using namespace dailyTip;
1126
tooltip = i18n ("Activate this box to see a daily tip on startup.") ;
1129
using namespace showLogo;
1130
tooltip = i18n ("Activate this to see the BibleTime logo on startup.") ;
1133
using namespace restoreWorkingArea;
1134
tooltip = i18n ("Save the user's session when BibleTime is closed and restore it on the next startup.") ;
1138
using namespace fonts;
1140
using namespace typeChooser;
1141
tooltip = i18n ("The font selection below will apply to all texts in this language.") ;
1145
using namespace settings::sword;
1147
using namespace general;
1149
using namespace language;
1150
tooltip = i18n ("Contains the languages which can be used for the biblical booknames.") ;
1154
using namespace settings::sword::modules;
1156
using namespace bible;
1157
tooltip = i18n ("The standard Bible is used when a hyperlink into a Bible is clicked.") ;
1160
using namespace commentary;
1161
tooltip = i18n ("The standard commentary is used when a hyperlink into a commentary is clicked.") ;
1164
using namespace lexicon;
1165
tooltip = i18n ("The standard lexicon is used when a hyperlink into a lexicon is clicked.") ;
1168
using namespace dailyDevotional;
1169
tooltip = i18n ("The standard devotional will be used to display a short start up devotional.") ;
1172
using namespace hebrewStrongs;
1173
tooltip = i18n ("The standard Hebrew lexicon is used when a hyperlink into a Hebrew lexicon is clicked.") ;
1176
using namespace greekStrongs;
1177
tooltip = i18n ("The standard Greek lexicon is used when a hyperlink into a Greek lexicon is clicked.") ;
1180
using namespace hebrewMorph;
1181
tooltip = i18n ("The standard morphological lexicon for Hebrew texts is used when a hyperlink of a morphological tag in a Hebrew text is clicked.") ;
1184
using namespace greekMorph;
1185
tooltip = i18n ("The standard morphological lexicon for Greek texts is used when a hyperlink of a morphological tag in a Greek text is clicked.") ;
1191
using namespace mainIndex;
1193
using namespace search;
1194
tooltip = i18n ("Opens the search dialog to search in the work(s) that are currently open.") ;