#ifndef _SWORDREADERRESOURCE_H_ #define _SWORDREADERRESOURCE_H_ #include #include /***************************************************************************** TODO: 1) Implement the Find dialog 2) Set the menu items to reflect current settings at startup (modules, options) 3) Implement actions when settings or modules are changed. 4) Speed up the page loads (go multi-threaded, and initially load the page requested then load the rest in the background) 5) Load the last viewed text at startup. 6) Separate the OT and NT Books in the Book Chooser. 7) Highlight the current Book/Chap/Verse in the choosers. 8) Allow the Choosers to respond to up/down/left/right buttons for selecting the items. 9) More to come... *****************************************************************************/ #include "SRFramework/WCString.h" const SRFramework::WCString SR_VERSION_STRING = "1.9 beta 1"; struct ltstr { bool operator()(const char* s1, const char* s2) const { return strcmp(s1, s2) < 0; } }; typedef std::map ModuleMap; #define SR_MAX_MISC_STRING_LEN 4096 #define SR_MAX_MODULE_PAGES 4 #define SWORD_OLD_TESTAMENT 1 #define SWORD_NEW_TESTAMENT 2 #define BIBLE_OT_BOOKS 39 #define BIBLE_NT_BOOKS 27 #define BIBLE_TOTAL_BOOKS BIBLE_OT_BOOKS + BIBLE_NT_BOOKS #define MENU_BIBLE_TRANS_START 0x1000 #define MENU_COMM_TRANS_START 0x2000 #define MENU_DICT_TRANS_START 0x3000 #define MENU_OPTS_START 0x4000 #define WM_TXT_START WM_USER + 0x00F1 #define WM_TXT_END WM_USER + 0x00F2 #define SR_HYPERLINK_CLICKED 0x00FA #define SR_SETBOOK 0x00FB #define SR_SETCHAPTER 0x00FC #define SR_SETVERSE 0x00FD #define SR_SETVERSEKEY 0x00FE // These help determine the source of the // SR_SETVERSE OnCommand Message #define SR_MSRC_CHOOSER 0x8000 #define SR_MSRC_TEXT 0x4000 #define BUTTON_BACKGROUND 0x00B9CCD5 #define BUTTON_SEL_BACKGROUND 0x00FFFFFF #define PROGRESS_BACKGROUND 0x00CF8B55 #define PROGRESS_TEXT_COLOR 0x00FFFFFF #define BUTTON_WIDTH_MORE 65 #define BUTTON_INTERNAL_PADDING 3 #define BUTTON_PADDING_WIDTH 1 #define BUTTON_PADDING_HEIGHT 1 #define BUTTON_FOREGROUND 0x00000000 #define BUTTON_OT_FOREGROUND 0x00888800 #define BUTTON_NT_FOREGROUND 0x00008888 #define SR_STATUS_BAR_HEIGHT 12 // Main view tabs #define SR_TAB_BIBLE 0 #define SR_TAB_COMM 1 #define SR_TAB_DICT 2 #define SR_TAB_ABOUT 3 #ifdef LOGSTUFF #define _LG_(id, txt, type) \ { \ FILE *tmp = fopen("SR_Log.txt","a"); \ fprintf(tmp, "[%d %s-%c %s %d\n", id, txt, type, __FILE__, __LINE__); \ fclose(tmp); \ } #else #define _LG_(id, txt, type) #endif #endif