View Single Post
Old 12-10-2010, 08:28 AM   #17
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
Hi Marcel,

Quote:
Originally Posted by Mackx View Post
Hi Glenn,

How do you scroll down on a large help section? Are you using the stylus or a key combination that I do not know yet? In 0.10.7 a short-press would scroll one page down and a long-press would get you to the next section. Is there a new trick in 0.12.10?

Marcel.
These are all the posible actions (from "fbreader/src/fbreader/FBReaderActionCode.cpp"):

Spoiler:
Code:
const std::string ActionCode::SHOW_READING = "showReading";
const std::string ActionCode::SHOW_LIBRARY = "showLibrary";
const std::string ActionCode::SHOW_NETWORK_LIBRARY = "showNetLibrary";
const std::string ActionCode::SHOW_TOC = "toc";
const std::string ActionCode::SHOW_HELP = "showHelp";
const std::string ActionCode::SHOW_BOOK_INFO_DIALOG = "bookInfo";
const std::string ActionCode::SHOW_OPTIONS_DIALOG = "preferences";
const std::string ActionCode::UNDO = "undo";
const std::string ActionCode::REDO = "redo";
const std::string ActionCode::SEARCH = "search";
const std::string ActionCode::FIND_PREVIOUS = "findPrevious";
const std::string ActionCode::FIND_NEXT = "findNext";
const std::string ActionCode::PAGE_SCROLL_FORWARD = "pageForward";
const std::string ActionCode::PAGE_SCROLL_BACKWARD = "pageBackward";
const std::string ActionCode::LINE_SCROLL_FORWARD = "lineForward";
const std::string ActionCode::LINE_SCROLL_BACKWARD = "lineBackward";
const std::string ActionCode::MOUSE_SCROLL_FORWARD = "mouseScrollForward";
const std::string ActionCode::MOUSE_SCROLL_BACKWARD = "mouseScrollBackward";
const std::string ActionCode::TAP_SCROLL_FORWARD = "tapScrollForward";
const std::string ActionCode::TAP_SCROLL_BACKWARD = "tapScrollBackward";
const std::string ActionCode::SCROLL_TO_HOME = "gotoHome";
const std::string ActionCode::SCROLL_TO_START_OF_TEXT = "gotoSectionStart";
const std::string ActionCode::SCROLL_TO_END_OF_TEXT = "gotoSectionEnd";
const std::string ActionCode::CANCEL = "cancel";
const std::string ActionCode::INCREASE_FONT = "increaseFont";
const std::string ActionCode::DECREASE_FONT = "decreaseFont";
const std::string ActionCode::SHOW_HIDE_POSITION_INDICATOR = "toggleIndicator";
const std::string ActionCode::TOGGLE_FULLSCREEN = "toggleFullscreen";
const std::string ActionCode::FULLSCREEN_ON = "onFullscreen";
const std::string ActionCode::ADD_BOOK = "addBook";
const std::string ActionCode::ROTATE_SCREEN = "rotate";
const std::string ActionCode::QUIT = "quit";
const std::string ActionCode::FORCE_QUIT = "forceQuit";
const std::string ActionCode::OPEN_PREVIOUS_BOOK = "previousBook";
const std::string ActionCode::GOTO_NEXT_TOC_SECTION = "nextTOCSection";
const std::string ActionCode::GOTO_PREVIOUS_TOC_SECTION = "previousTOCSection";
const std::string ActionCode::COPY_SELECTED_TEXT_TO_CLIPBOARD = "copyToClipboard";
const std::string ActionCode::CLEAR_SELECTION = "clearSelection";
const std::string ActionCode::OPEN_SELECTED_TEXT_IN_DICTIONARY = "openInDictionary";
const std::string ActionCode::GOTO_PAGE_NUMBER = "gotoPageNumber";
const std::string ActionCode::GOTO_PAGE_NUMBER_WITH_PARAMETER = "gotoPageNumberWithParameter";
const std::string ActionCode::SEARCH_ON_NETWORK = "searchOnNetwork";
const std::string ActionCode::ADVANCED_SEARCH_ON_NETWORK = "advancedSearchOnNetwork";
const std::string ActionCode::ORGANIZE_BOOKS_BY_AUTHOR = "byAuthor";
const std::string ActionCode::ORGANIZE_BOOKS_BY_TAG = "byTag";
const std::string ActionCode::FILTER_LIBRARY = "filterLibrary";


Can't you use any of these:

Code:
PAGE_SCROLL_FORWARD = "pageForward";
PAGE_SCROLL_BACKWARD = "pageBackward";
LINE_SCROLL_FORWARD = "lineForward";
LINE_SCROLL_BACKWARD = "lineBackward";
MOUSE_SCROLL_FORWARD = "mouseScrollForward";
MOUSE_SCROLL_BACKWARD = "mouseScrollBackward";
TAP_SCROLL_FORWARD = "tapScrollForward";
TAP_SCROLL_BACKWARD = "tapScrollBackward";
SCROLL_TO_HOME = "gotoHome";
SCROLL_TO_START_OF_TEXT = "gotoSectionStart";
SCROLL_TO_END_OF_TEXT = "gotoSectionEnd";
Look at the ones you are using in 0.10.x, check the new name for those actions and rebind them in preferences->keys.
I think pageForward and pageBackward are the actions you are looking for.

To bind a key, go to tab "keys" in preferences, click on the entry to the right of label "Action for key", press the key, and select the wanted action on the dropbox that will appear below.
Then repeat for all the keys you want to bind.

They are stored in <config_path>/.FBReader/options.xml.
Here is my file:
Spoiler:
<?xml version="1.0" encoding="UTF-8"?>
<config>
<group name="Encoding">
<option name="UseWindows1252Hack" value="false"/>
</group>
<group name="Keys">
<option name="Action0" value="pageForward"/>
<option name="Action1" value="nextTOCSection"/>
<option name="Action2" value="previousTOCSection"/>
<option name="Action3" value="pageBackward"/>
<option name="Key0" value="&lt;DownArrow&gt;"/>
<option name="Key1" value="&lt;PageDown&gt;"/>
<option name="Key2" value="&lt;PageUp&gt;"/>
<option name="Key3" value="&lt;UpArrow&gt;"/>
<option name="Number" value="4"/>
</group>
<group name="Options">
<option name="ScanSubdirs" value="true"/>
</group>
<group name="Web Browser">
<option name="Enabled" value="false"/>
<option name="Name" value="Browser"/>
</group>
</config>


Hope it helps,
Iņigo

Last edited by Iņigo; 12-10-2010 at 08:30 AM.
Iņigo is offline   Reply With Quote