mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
HackStudio: Start fleshing out the GUI for a GUI designer :^)
I'll be reconstructing parts of the VisualBuilder application here and then we can retire VisualBuilder entirely once all the functionality is available in HackStudio.
This commit is contained in:
parent
bce510bf6f
commit
d016d5e365
9 changed files with 136 additions and 9 deletions
22
DevTools/HackStudio/FormWidget.h
Normal file
22
DevTools/HackStudio/FormWidget.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibGUI/GWidget.h>
|
||||
|
||||
class FormEditorWidget;
|
||||
|
||||
class FormWidget final : public GWidget {
|
||||
C_OBJECT(FormWidget)
|
||||
public:
|
||||
virtual ~FormWidget() override;
|
||||
|
||||
FormEditorWidget& editor();
|
||||
const FormEditorWidget& editor() const;
|
||||
|
||||
private:
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
|
||||
explicit FormWidget(FormEditorWidget& parent);
|
||||
|
||||
// FIXME: This should be an app-wide preference instead.
|
||||
int m_grid_size { 5 };
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue