Library to display menus on TextLCDs. Interaction with functions Up,Down and Select (Buttons or RPG) Based on menu-library from pyeh9
Fork of Menu by
Library to display menus on TextLCDs. Interaction with functions Up,Down and Select (Buttons or RPG) Based on menu-library from pyeh9
Diff: Navigator.h
- Revision:
- 11:6814cbc83ae0
- Parent:
- 10:2b6ddf53b05e
--- a/Navigator.h Mon Mar 16 21:05:37 2015 +0000
+++ b/Navigator.h Wed Jan 13 19:59:21 2016 +0000
@@ -46,11 +46,6 @@
TextLCD_Base *lcd;
- /** no longer used!
- *
- */
- void poll(); // no longer needed!
-
/** Move up one line in menu.
* call this method when user moves up one line.
* can be triggered by RPG or Button (PinDetect) or otherwise.
@@ -81,11 +76,15 @@
/** Show Yes/No Dialog and wait fo Selection
*/
void show_yes_no(bool yesorno);
+ /** Show a long Text and wait for Select. Scroll Up/Down in Text
+ */
+ void show_longtext(void);
int _display_rows; // number of rows the LCD can display
int _display_cols; // number of lines of LCD
int _cursorPos; // what selection the cursor points to
int _cursorLine; // what line of the lcd the cursor is on. 1 = first line, 2 = second line
+ int _start_line; // display a long text starting from this line
bool _wait_for_select; // only accept Select Button to go Back
bool _wait_for_yesno; // up/don change selection ; Select accepts
