rtop
Public Member Functions | Private Attributes | List of all members
rtop::KeyDict Class Reference

holds a dictionary of key values and corresponding Action list. Provides API to resolve the keys More...

#include <key_dict.h>

Public Member Functions

 KeyDict (int id)
 
 KeyDict ()
 
void setId (int id)
 
int getId () const
 
void resolve (int)
 resolves the key i.e. based on key input invokes the associated list of Action objects More...
 
void resolve (int, ScreenManager *)
 resolves keys with Action lists corresponding to self More...
 
void resolve (int, View *)
 resolves keys with action list corresponding to self. More...
 
void resolve (int, SimplePanelData *)
 resolves keys with Action list corresponding to self More...
 
void addKeyActions (int, std::vector< Action > &)
 add key and corresponding action list to private key-action_list dictionary More...
 

Private Attributes

int key_dict_uuid
 
std::map< int, std::vector< Action > > key_actions_dict
 

Detailed Description

holds a dictionary of key values and corresponding Action list. Provides API to resolve the keys

Definition at line 25 of file key_dict.h.

Constructor & Destructor Documentation

◆ KeyDict() [1/2]

rtop::KeyDict::KeyDict ( int  id)
inline

Definition at line 31 of file key_dict.h.

◆ KeyDict() [2/2]

rtop::KeyDict::KeyDict ( )
inline

Definition at line 32 of file key_dict.h.

Member Function Documentation

◆ addKeyActions()

void rtop::KeyDict::addKeyActions ( int  key,
std::vector< Action > &  actions 
)

add key and corresponding action list to private key-action_list dictionary

Definition at line 121 of file key_dict.h.

◆ getId()

int rtop::KeyDict::getId ( ) const
inline

Definition at line 34 of file key_dict.h.

◆ resolve() [1/4]

void rtop::KeyDict::resolve ( int  key)

resolves the key i.e. based on key input invokes the associated list of Action objects

Definition at line 43 of file key_dict.h.

◆ resolve() [2/4]

void rtop::KeyDict::resolve ( int  key,
ScreenManager pscreen 
)

resolves keys with Action lists corresponding to self

Definition at line 62 of file key_dict.h.

◆ resolve() [3/4]

void rtop::KeyDict::resolve ( int  key,
View pview 
)

resolves keys with action list corresponding to self.

Todo:
: not implemented. implement

Definition at line 86 of file key_dict.h.

◆ resolve() [4/4]

void rtop::KeyDict::resolve ( int  key,
SimplePanelData ppanel 
)

resolves keys with Action list corresponding to self

Definition at line 95 of file key_dict.h.

◆ setId()

void rtop::KeyDict::setId ( int  id)
inline

Definition at line 33 of file key_dict.h.

Member Data Documentation

◆ key_actions_dict

std::map<int, std::vector<Action> > rtop::KeyDict::key_actions_dict
private

Definition at line 29 of file key_dict.h.

◆ key_dict_uuid

int rtop::KeyDict::key_dict_uuid
private

Definition at line 28 of file key_dict.h.


The documentation for this class was generated from the following file: