mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 03:18:11 +00:00
LibGUI: Move widget registration to LibCore
This also moves Widget::load_from_json into Core::Object as a virtual function in order to allow loading non-widget objects in GML (e.g. BoxLayout). Co-authored-by: Gunnar Beutner <gbeutner@serenityos.org>
This commit is contained in:
parent
6e101adc28
commit
3aaffa2c47
13 changed files with 134 additions and 85 deletions
|
@ -11,10 +11,10 @@
|
|||
#include <LibGfx/Font.h>
|
||||
#include <WindowServer/WindowManager.h>
|
||||
|
||||
namespace SpaceAnalyzer {
|
||||
|
||||
REGISTER_WIDGET(SpaceAnalyzer, TreeMapWidget)
|
||||
|
||||
namespace SpaceAnalyzer {
|
||||
|
||||
TreeMapWidget::TreeMapWidget()
|
||||
: m_viewpoint(0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue