mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 12:55:08 +00:00
VisualBuilder: Add a text box to the properties window.
This commit is contained in:
parent
3cddc3484e
commit
c736dbdf10
2 changed files with 7 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
#include <LibGUI/GWidget.h>
|
#include <LibGUI/GWidget.h>
|
||||||
#include <LibGUI/GBoxLayout.h>
|
#include <LibGUI/GBoxLayout.h>
|
||||||
#include <LibGUI/GTableView.h>
|
#include <LibGUI/GTableView.h>
|
||||||
|
#include <LibGUI/GTextBox.h>
|
||||||
|
|
||||||
VBPropertiesWindow::VBPropertiesWindow()
|
VBPropertiesWindow::VBPropertiesWindow()
|
||||||
{
|
{
|
||||||
|
@ -13,6 +14,10 @@ VBPropertiesWindow::VBPropertiesWindow()
|
||||||
widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||||
set_main_widget(widget);
|
set_main_widget(widget);
|
||||||
|
|
||||||
|
m_text_box = new GTextBox(widget);
|
||||||
|
m_text_box->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
|
||||||
|
m_text_box->set_preferred_size({ 0, 21 });
|
||||||
|
|
||||||
m_table_view = new GTableView(widget);
|
m_table_view = new GTableView(widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#include <LibGUI/GWindow.h>
|
#include <LibGUI/GWindow.h>
|
||||||
|
|
||||||
class GTableView;
|
class GTableView;
|
||||||
|
class GTextBox;
|
||||||
|
|
||||||
class VBPropertiesWindow final : public GWindow {
|
class VBPropertiesWindow final : public GWindow {
|
||||||
public:
|
public:
|
||||||
|
@ -13,5 +14,6 @@ public:
|
||||||
const GTableView& table_view() const { return *m_table_view; }
|
const GTableView& table_view() const { return *m_table_view; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
GTextBox* m_text_box { nullptr };
|
||||||
GTableView* m_table_view { nullptr };
|
GTableView* m_table_view { nullptr };
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue