Hi Manfred,<br><br>Yes, the options are text strings.<br>You can get the list of options available for all modules in the mgr by using getGlobalOptions.<br>getGlobalOptionTip will give a tip, suitable for putting in a status bar or tooltip.<br>
getGlobalOptionValues will give the options for a given value. This will be "On" or "Off" for simple boolean values, or different for other different things.<br><br>If you want to find out all the ones, I think you'll have to delve through the SWORD source code. (or possibly have a look at the source code of other frontends to see what other ones they use)<br>
In src/mgr/swmgr.cpp, in SWMgr::init(), there are lots of lines like this:<br> tmpFilter = new ThMLVariants();<br> optionFilters.insert(OptionFilterMap::value_type("ThMLVariants", tmpFilter));<br> cleanupFilters.push_back(tmpFilter);<br>
<br>If you look in src/modules/filters/thmlvariants.cpp, you find these lines:<br>const char ThMLVariants::primary[] = "Primary Reading";<br>const char ThMLVariants::secondary[] = "Secondary Reading";<br>
const char ThMLVariants::all[] = "All Readings";<br><br>const char ThMLVariants::optName[] = "Textual Variants";<br>const char ThMLVariants::optTip[] = "Switch between Textual Variants modes";<br>
<br><br>ThMLVariants::ThMLVariants() {<br> option = false;<br> options.push_back(primary);<br> options.push_back(secondary);<br> options.push_back(all);<br>}<br><br>So if thmlvariants is specified as a GlobalOptionFilter in a module, there will be an option called Textual Variants, with tip<br>
"Switch between Textual Variants modes". It will have the options "Primary Reading", "Secondary Reading" and "All Readings"<br><br>By going through every filter you can find every different option (some will be there in more than one filter). <br>
<br>However, I would recommend dynamically generating them for two reasons:<br>1) Only show options users can toggle which will affect at least one module<br>2) If new options are added, they will automatically appear on the list<br>
<br>This is what is done in BPBible.<br><br>However, I'm not sure whether these strings will be localized at all.<br><br>God Bless,<br>Ben<br>-------------------------------------------------------------------------------------------<br>
The Lord is not slow to fulfill his promise as some count slowness,<br>but is patient toward you, not wishing that any should perish,<br>but that all should reach repentance.<br>2 Peter 3:9 (ESV)
<br><br>