menu: [#25] rename event to state
This commit is contained in:
parent
bd2f6b32f1
commit
fad70c9f37
@ -63,10 +63,10 @@ void Menu::HandleEventPair (Event::EventPair *ep)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Menu::SetEvent (obj_pointer newevent)
|
void Menu::SetState (p_state new_state)
|
||||||
{
|
{
|
||||||
(this->*current) (MenuObjEvent (MenuObjEvent::eUnFocus));
|
(this->*current) (MenuObjEvent (MenuObjEvent::eUnFocus));
|
||||||
current = newevent;
|
current = new_state;
|
||||||
(this->*current) (MenuObjEvent (MenuObjEvent::eFocus));
|
(this->*current) (MenuObjEvent (MenuObjEvent::eFocus));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
#define THREADS_MANAGER_MENU_H_
|
#define THREADS_MANAGER_MENU_H_
|
||||||
|
|
||||||
class Menu;
|
class Menu;
|
||||||
typedef void (Menu::*obj_pointer) (const MenuObjEvent &);
|
typedef void (Menu::*p_state) (const MenuObjEvent &);
|
||||||
|
|
||||||
class Menu
|
class Menu
|
||||||
{
|
{
|
||||||
@ -25,9 +25,9 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
/* Variables and objects */
|
/* Variables and objects */
|
||||||
obj_pointer current;
|
p_state current;
|
||||||
/* Methods */
|
/* Methods */
|
||||||
void SetEvent (obj_pointer newevent);
|
void SetState (p_state new_state);
|
||||||
void HandleObj (const MenuObjEvent &event);
|
void HandleObj (const MenuObjEvent &event);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user