Milo  0.1
Milo:EquationManipulationProgram
Variables
ui.cpp File Reference
#include "ui.h"
#include "milo.h"
#include "panel.h"
Include dependency graph for ui.cpp:

Variables

static bool fRunning = true
 When false, quit program.
 
static const unordered_map< enum Mouse, string > mouse_string
 
static const unordered_map< enum Modifiers, string > mod_string
 
static const unordered_map< Keyboard, string > key_string
 
static const unordered_map< string, enum Modifiers > stringToMod
 
static const unordered_map< string, Keyboard > stringToKey
 

Detailed Description

This file implements the milo user interface implementing user generated events.

Variable Documentation

const unordered_map<Keyboard, string> key_string
static
Initial value:
= {
{ Keys::F1, "F1" }, { Keys::F2, "F2" }, { Keys::F3, "F3" }, { Keys::F4, "F4" }, { Keys::F5, "F5" },
{ Keys::F6, "F6" }, { Keys::F7, "F7" }, { Keys::F8, "F8" }, { Keys::F9, "F9" }, { Keys::F10, "F10" },
{ Keys::F11, "F11" }, { Keys::F12, "F12" }, { Keys::INS, "INS" }, { Keys::DEL, "DEL" }, { Keys::HOME, "HOME" },
{ Keys::END, "END" }, { Keys::PAGE_UP, "PAGE_UP" }, { Keys::PAGE_DOWN, "PAGE_DOWN" }, { Keys::UP, "UP" },
{ Keys::DOWN, "DOWN" }, { Keys::LEFT, "LEFT" }, { Keys::RIGHT, "RIGHT" }, { Keys::BSPACE, "BACKSPACE" },
{ Keys::SPACE, "SPACE" }
}
const unordered_map<enum Modifiers, string> mod_string
static
Initial value:
= {
{ ALT, "ALT-" }, { SHIFT, "SHIFT-" }, { ALT_SHIFT, "ALT-SHIFT-" }, { CTRL, "CTRL-" },
{ CTRL_SHIFT, "CTRL-SHIFT-" }, { CTRL_ALT_SHIFT, "CTRL-ALT-SHIFT-" }, { NO_MOD, string() }
}
const unordered_map<enum Mouse, string> mouse_string
static
Initial value:
= {
{ POSITION, "POSITION" }, { PRESSED, "PRESSED" }, { RELEASED, "RELEASED" },
{ CLICKED, "CLICKED" }, { DOUBLE, "DOUBLE" }
}
const unordered_map<string, Keyboard> stringToKey
static
Initial value:
= {
{ "F1", Keys::F1 }, { "F2", Keys::F2 }, { "F3", Keys::F3 }, { "F4", Keys::F4 }, { "F5", Keys::F5 },
{ "F6", Keys::F6 }, { "F7", Keys::F7 }, { "F8", Keys::F8 }, { "F9", Keys::F9 }, { "F10", Keys::F10 },
{ "F11", Keys::F11 }, { "F12", Keys::F12 }, { "INS", Keys::INS }, { "DEL", Keys::DEL }, { "\u2302", Keys::HOME },
{ "END", Keys::END }, { "PAGE\u25b2",Keys:: PAGE_UP }, { "PAGE\u25bc", Keys::PAGE_DOWN }, { "\u25b2", Keys::UP },
{ "\u25bc", Keys::DOWN }, { "\u25c0", Keys::LEFT }, { "\u25b6", Keys::RIGHT }, { "BSP", Keys::BSPACE },
{ "SP", Keys::SPACE }, { "TAB", Keys::TAB }, { "ENTER", Keys::ENTER }, { "ESC", Keys::ESC }, { "HOME", Keys::HOME },
{ "PAGE_UP", Keys::PAGE_UP }, { "PAGE_DOWN", Keys::PAGE_DOWN }, { "UP", Keys::UP }, { "DOWN", Keys::DOWN },
{ "LEFT", Keys::LEFT }, { "RIGHT", Keys::RIGHT }, { "PLUS", Keys::PLUS }, { "MINUS", Keys::MINUS }
}
const unordered_map<string, enum Modifiers> stringToMod
static
Initial value:
= {
{ "ALT", ALT }, { "SHIFT", SHIFT }, { "ALT_SHIFT", ALT_SHIFT }, { "CTRL", CTRL },
{ "CTRL_SHIFT", CTRL_SHIFT }, { "CTRL_ALT_SHIFT", CTRL_ALT_SHIFT }, { string(), NO_MOD }
}