mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
VisualBuilder: Add a properties window.
This commit is contained in:
parent
93b76628a5
commit
ba4a726e8b
1 changed files with 18 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
static GWindow* make_toolbox_window();
|
static GWindow* make_toolbox_window();
|
||||||
|
static GWindow* make_properties_window();
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
|
@ -52,6 +53,9 @@ int main(int argc, char** argv)
|
||||||
auto* toolbox = make_toolbox_window();
|
auto* toolbox = make_toolbox_window();
|
||||||
toolbox->show();
|
toolbox->show();
|
||||||
|
|
||||||
|
auto* propbox = make_properties_window();
|
||||||
|
propbox->show();
|
||||||
|
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,3 +129,17 @@ GWindow* make_toolbox_window()
|
||||||
};
|
};
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GWindow* make_properties_window()
|
||||||
|
{
|
||||||
|
auto* window = new GWindow;
|
||||||
|
window->set_title("Properties");
|
||||||
|
window->set_rect(780, 200, 200, 280);
|
||||||
|
|
||||||
|
auto* widget = new GWidget;
|
||||||
|
widget->set_fill_with_background_color(true);
|
||||||
|
widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||||
|
window->set_main_widget(widget);
|
||||||
|
|
||||||
|
return window;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue