Listens for the creation and destruction of widgets in order to notify Panels when their Child Widget has been created or destroyed. Also listens for size events and close events to update the interface and destroy the layout when the window is closing.
Public Member Functions | |
void | connect_listeners () |
void | disconnect_listeners () |
EventListener (InterfaceManager &manager) | |
void | handle_size_event (bool handle) |
void | on_activate (wxActivateEvent &event) |
void | on_create (wxWindowCreateEvent &event) |
void | on_destroy (wxWindowDestroyEvent &event) |
void | on_erase_bg (wxEraseEvent &event) |
void | on_mouse_capture_changed (wxMouseCaptureChangedEvent &event) |
void | on_set_cursor (wxSetCursorEvent &event) |
void | on_size (wxSizeEvent &event) |
void | on_sys_color_change (wxSysColourChangedEvent &event) |
Private Attributes | |
bool | m_handle_size |
InterfaceManager & | m_manager |
ifm::wx::EventListener::EventListener | ( | InterfaceManager & | manager | ) |
void ifm::wx::EventListener::connect_listeners | ( | ) |
Connects event handlers.
void ifm::wx::EventListener::disconnect_listeners | ( | ) |
Disconnects event handlers.
void ifm::wx::EventListener::handle_size_event | ( | bool | handle | ) |
Enables or Disables wxSizeEvent handling
void ifm::wx::EventListener::on_activate | ( | wxActivateEvent & | event | ) |
void ifm::wx::EventListener::on_create | ( | wxWindowCreateEvent & | event | ) |
void ifm::wx::EventListener::on_destroy | ( | wxWindowDestroyEvent & | event | ) |
void ifm::wx::EventListener::on_erase_bg | ( | wxEraseEvent & | event | ) |
void ifm::wx::EventListener::on_mouse_capture_changed | ( | wxMouseCaptureChangedEvent & | event | ) |
void ifm::wx::EventListener::on_set_cursor | ( | wxSetCursorEvent & | event | ) |
void ifm::wx::EventListener::on_size | ( | wxSizeEvent & | event | ) |
void ifm::wx::EventListener::on_sys_color_change | ( | wxSysColourChangedEvent & | event | ) |
bool ifm::wx::EventListener::m_handle_size [private] |