Fixing EventHandler usage.

This commit is contained in:
Ben Vanik
2015-08-18 10:25:09 -07:00
parent 4fdbd5fe78
commit 1fc73e61ea
4 changed files with 8 additions and 6 deletions

View File

@@ -3,7 +3,7 @@
* Elemental Forms : a lightweight user interface framework *
******************************************************************************
* Copyright 2015 Ben Vanik. All rights reserved. Licensed as BSD 3-clause. *
* Portions <EFBFBD>2011-2015 Emil Seger<EFBFBD>s: https://github.com/fruxo/turbobadger *
* Portions ©2011-2015 Emil Segerås: https://github.com/fruxo/turbobadger *
******************************************************************************
*/
@@ -15,7 +15,7 @@
namespace el {
namespace design {
DesignerForm::DesignerForm() {
DesignerForm::DesignerForm() : event_handler_(this) {
set_text("Empty Designer");
LoadData(

View File

@@ -3,7 +3,7 @@
* Elemental Forms : a lightweight user interface framework *
******************************************************************************
* Copyright 2015 Ben Vanik. All rights reserved. Licensed as BSD 3-clause. *
* Portions <EFBFBD>2011-2015 Emil Seger<EFBFBD>s: https://github.com/fruxo/turbobadger *
* Portions ©2011-2015 Emil Segerås: https://github.com/fruxo/turbobadger *
******************************************************************************
*/
@@ -51,7 +51,7 @@ class DesignerForm : public elements::Form,
void RefreshContent();
void PopulateElementListBox();
EventHandler event_handler_ = EventHandler(this);
EventHandler event_handler_;
elements::ListBox* element_list_box_ = nullptr;
ListItemSourceList<ElementItem> element_list_source_;
elements::TextBox* source_text_box_ = nullptr;

View File

@@ -3,7 +3,7 @@
* Elemental Forms : a lightweight user interface framework *
******************************************************************************
* Copyright 2015 Ben Vanik. All rights reserved. Licensed as BSD 3-clause. *
* Portions <EFBFBD>2011-2015 Emil Seger<EFBFBD>s: https://github.com/fruxo/turbobadger *
* Portions ©2011-2015 Emil Segerås: https://github.com/fruxo/turbobadger *
******************************************************************************
*/

View File

@@ -3,7 +3,7 @@
* Elemental Forms : a lightweight user interface framework *
******************************************************************************
* Copyright 2015 Ben Vanik. All rights reserved. Licensed as BSD 3-clause. *
* Portions <EFBFBD>2011-2015 Emil Seger<EFBFBD>s: https://github.com/fruxo/turbobadger *
* Portions ©2011-2015 Emil Segerås: https://github.com/fruxo/turbobadger *
******************************************************************************
*/
@@ -23,6 +23,8 @@ namespace el {
class EventHandler : public util::IntrusiveListEntry<EventHandler> {
public:
explicit EventHandler(Element* scope_element);
EventHandler(const EventHandler&) = delete;
EventHandler& operator=(const EventHandler&) = delete;
~EventHandler();
void Listen(EventType event_type,