mirror of
https://github.com/xenia-project/elemental-forms.git
synced 2026-01-31 01:25:17 +01:00
Fixing EventHandler usage.
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 *
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user