mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:08:11 +00:00

We now use the magical widget registry to factory-construct widgets and place them into the form. This will need all kinds of work, but it's nice that the mechanism is working as intended.
21 lines
492 B
C++
21 lines
492 B
C++
#pragma once
|
|
|
|
#include <LibGUI/GScrollableWidget.h>
|
|
|
|
class FormWidget;
|
|
|
|
class FormEditorWidget final : public GScrollableWidget {
|
|
C_OBJECT(FormEditorWidget)
|
|
public:
|
|
virtual ~FormEditorWidget() override;
|
|
|
|
FormWidget& form_widget() { return *m_form_widget; }
|
|
const FormWidget& form_widget() const { return *m_form_widget; }
|
|
|
|
private:
|
|
virtual void paint_event(GPaintEvent&) override;
|
|
|
|
explicit FormEditorWidget(GWidget* parent);
|
|
|
|
RefPtr<FormWidget> m_form_widget;
|
|
};
|