13 extern src::severity_logger<severity_level>
lg;
39 std::vector<SimplePanelData*>
panels;
57 std::map<SimplePanelData*, std::pair<SimplePanelData*, SimplePanelData*>>
neighbourhood;
119 for(
int i=0; i<
panels.size(); i++)
128 (pos.first)->setLeftNbr((pos.second).first);
129 (pos.first)->setRightNbr((pos.second).second);
141 panel->selectionOff();
void hide()
sets view to hidden
std::mutex view_mutex
mutex for accessing View::refresh
int editing_color_pair
index of color_pair used for selected menu item in edit mode
MapOfKeyDicts mapKeyDict
global variable for accessing key dictionaries by their uuid
WINDOW * win
pointer to window associated with the view, contained panels' windows are derived from it
SimplePanelData * curr_panel
pointer to current panel's (Browse/Edit Panel) data structure
std::vector< std::pair< int, int > > panels_yx
vector of contained panels' window positions within view window
void show()
sets view to visible
bool isChanged() const
returns true if prev_state and curr_state are different
StateMachine smKeys
Keys statemachine.
src::severity_logger< severity_level > lg
virtual void selectionOn()
mock
std::vector< SimplePanelData * > panels
vector of pointers to panel data structures corresponding to panels contained in the view
int currState() const
returns current state
int prevState() const
returns previous state
int basic_color_pair
index of color_pair used for non-selected menu items
2nd level UI object. Responsible for switching between panels and resolving key input
SimplePanelData * getPanel(int)
returns pointer to SimplePanelData object of given uuid
void refresh()
refreshes view
int header_color_pair
index of color_pair used for panel header
void delSpace()
deletes one white-space from white-space string corresponding to invoking thread
void addSpace()
adds one white-space to white-space string corresponding to invoking thread
View(int)
View Constructor.
int selection_color_pair
index of color_pair used for selected menu item in non-edit mode
bool hidden
indicates if view is hidden/visible
void reset()
resets state machine into base state as specified in transition table tuple entry (base_state,...
virtual void selectionOff()
mock
enables indentation of logs for easy viewing
StateMachine smPanels
Panel statemachine.
std::map< SimplePanelData *, std::pair< SimplePanelData *, SimplePanelData * > > neighbourhood
dictionary storing pair of pointers to panel data structures corresponding to left/right neighbour pa...
Base class in heirarchy of UI objects responsible to storing the content associated with a panel and ...
void resolveKey(int)
resolves the key input at View level
statemachine that uses integer corresponding to object uuids to represent states
virtual void resolveKey(int)
mock