#include <WidgetController.h>
Inheritance diagram for GUI::WidgetController:

Public Member Functions | |
| WidgetController (const WindowHandle &h) | |
| Construct a new WidgetController. | |
| const WindowHandle & | getHandle () const |
| Return the window handle of the WidgetController. | |
| virtual void | initialize () |
| Initialize the controller, put here event handler registration. The EventsDispatcher call this method before add the controller in the list of registered controllers. | |
| virtual EVENT_RETURN_T | eventNotify (EVENT_ARGUMENT_T entity_ptr) |
| Receive notification from EventsDispatcher. | |
| void | registerEventHandler (const std::string &event_id, AbstractEventHandler *handler_ptr) |
| Register an event handler for the gived event id. | |
| void | unregisterEventHandler (const std::string &event_id) |
| Unregister an event handler. | |
The factory object create a widget create also relative controller
| GUI::WidgetController::WidgetController | ( | const WindowHandle & | h | ) |
| EVENT_RETURN_T GUI::WidgetController::eventNotify | ( | EVENT_ARGUMENT_T | entity_ptr | ) | [virtual] |
Receive notification from EventsDispatcher.
| entity_ptr | Pointer to the event entity |
| const WindowHandle & GUI::WidgetController::getHandle | ( | ) | const |
| void GUI::WidgetController::registerEventHandler | ( | const std::string & | event_id, | |
| AbstractEventHandler * | handler_ptr | |||
| ) |
Register an event handler for the gived event id.
| event_id | the event id | |
| handler_ptr | pointer to the member function for event handler |
| void GUI::WidgetController::unregisterEventHandler | ( | const std::string & | event_id | ) |
Unregister an event handler.
| event_id | the event id |
1.4.7