|
Milo
0.1
Milo:EquationManipulationProgram
|
#include <ui.h>

Public Member Functions | |
Constructors and Virtual Destructor | |
| MiloPanel () | |
| ~MiloPanel () | |
Virtual Public Member Functions | |
| virtual void | doKey (const UI::KeyEvent &key)=0 |
| virtual void | doMouse (const UI::MouseEvent &mouse)=0 |
| virtual bool | doMenu (const std::string &menuFunctionName)=0 |
| virtual void | doDraw ()=0 |
| virtual void | pushUndo ()=0 |
| virtual void | popUndo ()=0 |
| virtual void | saveState (std::ostream &fs)=0 |
| virtual void | loadState (std::istream &is)=0 |
| void | saveState (const std::string &filename) |
| void | loadState (const std::string &filename) |
| virtual bool | blink ()=0 |
| virtual void | getCursorOrig (int &x, int &y)=0 |
Static Public Member Functions | |
| static MiloPanelPtr | makePanel (const std::string &name, const std::string &init) |
Static Protected Attributes | |
| static std::unordered_map< std::string, panel_factory > | panel_map |
| Map of name to panel create functions. | |
MiloPanel is an abstract base class interface for all milo panels. This will provide hooks into the user interface.
|
inline |
Constructor for MiloPanel initializing graphics context
|
inline |
Virtual deconstructor for MiloPanel initializing graphics context
|
pure virtual |
Check where there is an active input in this panel.
Implemented in UI::EqnPanel.
|
pure virtual |
Handle redraw event
Implemented in UI::EqnPanel.
|
pure virtual |
|
pure virtual |
Execute panel specific function based on its name. Used for menu handling.
| menuFunctionName | Name of menu function to be executed. |
Implemented in UI::EqnPanel.
|
pure virtual |
|
pure virtual |
Get coordinates of current active input.
| [out] | x | Horizontal origin of curosr. |
| [out] | y | Vertical origin cursor. |
Implemented in UI::EqnPanel.
|
pure virtual |
|
inline |
Load panel from file
| filename | Name of file |
|
static |
Get a smart pointer to a panel class object by name.
| name | Name of panel class object to create |
| init | Initilization xml string |
|
pure virtual |
Restore state of panel on top of undo stack.
Implemented in UI::EqnPanel.
|
pure virtual |
Push state of panel to undo stack.
Implemented in UI::EqnPanel.
|
pure virtual |
|
inline |
Save panel to file
| filename | Name of file |
1.8.11