|
Milo
0.1
Milo:EquationManipulationProgram
|


Public Member Functions | |
Constructors and Destructor | |
| CursesApp () | |
| ~CursesApp () | |
Virtual Public Member Functions | |
| void | redraw_screen () |
| Graphics & | getGraphics () |
| const KeyEvent & | getKeyEvent (int code) |
| MouseEvent | getMouseEvent (int code, bool &fOk) |
| void | do_loop () |
Public Member Functions inherited from UI::MiloApp | |
| void | doMenu (const std::string &menuFunctionName) |
| MiloWindow & | getWindow () |
| void | addWindow (MiloWindowPtr win) |
| void | closeWindow () |
| void | closeWindow (MiloWindowIter it) |
Private Attributes | |
| MenuBar | m_menubar |
| menu bar | |
| CursesGraphics | m_gc |
| Graphics context. | |
Static Private Attributes | |
| static const unordered_map< int, MouseEvent > | mouse_event_map |
| static const unordered_map< int, KeyEvent > | key_map |
| static constexpr const char * | m_menuXML = "/usr/local/milo/data/menu/menu.xml" |
Additional Inherited Members | |
Static Public Member Functions inherited from UI::MiloApp | |
| static MiloApp & | getGlobal () |
| static bool | isRunning () |
Protected Member Functions inherited from UI::MiloApp | |
| MiloApp () | |
| MiloApp (MiloWindowPtr win) | |
| ~MiloApp () | |
Protected Attributes inherited from UI::MiloApp | |
| MiloWindowVector | m_windows |
| List of windows for this application. | |
| MiloWindowIter | m_current_window |
| Current active window. | |
Static Protected Attributes inherited from UI::MiloApp | |
| static MiloApp & | m_current = app |
| Reference to current application singleton. More... | |
Application class for ncurses interface.
| void CursesApp::do_loop | ( | ) |
Run main event loop
|
inlinevirtual |
| const KeyEvent & CursesApp::getKeyEvent | ( | int | code | ) |
Get key event from ncurses code.using key_map
| code | Ncurses key code |
| MouseEvent CursesApp::getMouseEvent | ( | int | code, |
| bool & | fOk | ||
| ) |
Get mouse event from ncurses code
| code | Ncurses code | |
| [out] | fOk | True, if mouse event |
|
virtual |
Redraw entire screen.
Implements UI::MiloApp.
|
staticprivate |
Map ncurses key code to a key event.
|
staticprivate |
Menu xml filename
|
staticprivate |
Map ncurses key code (modulo mouse mask) to a mouse event.
1.8.11