16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 15:59:18 +02:00

refactoring: application mode code split

This commit is contained in:
tmj-fstate
2018-08-02 20:39:19 +02:00
parent 460bf6d382
commit ff6bed67a9
74 changed files with 5375 additions and 2921 deletions

39
editoruilayer.h Normal file
View File

@@ -0,0 +1,39 @@
/*
This Source Code Form is subject to the
terms of the Mozilla Public License, v.
2.0. If a copy of the MPL was not
distributed with this file, You can
obtain one at
http://mozilla.org/MPL/2.0/.
*/
#pragma once
#include "uilayer.h"
namespace scene {
class basic_node;
}
class editor_ui : public ui_layer {
public:
// constructors
editor_ui();
// methods
// potentially processes provided input key. returns: true if the input was processed, false otherwise
bool
on_key( int const Key, int const Action ) override;
// updates state of UI elements
void
update() override;
void
set_node( scene::basic_node * Node );
private:
// members
ui_panel UIHeader { 20, 20 }; // header ui panel
scene::basic_node * m_node { nullptr }; // currently bound scene node, if any
};