Переглянути джерело

VisualBuilder: Add a text box to the properties window.

Andreas Kling 6 роки тому
батько
коміт
c736dbdf10

+ 5 - 0
Applications/VisualBuilder/VBPropertiesWindow.cpp

@@ -2,6 +2,7 @@
 #include <LibGUI/GWidget.h>
 #include <LibGUI/GBoxLayout.h>
 #include <LibGUI/GTableView.h>
+#include <LibGUI/GTextBox.h>
 
 VBPropertiesWindow::VBPropertiesWindow()
 {
@@ -13,6 +14,10 @@ VBPropertiesWindow::VBPropertiesWindow()
     widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
     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);
 }
 

+ 2 - 0
Applications/VisualBuilder/VBPropertiesWindow.h

@@ -3,6 +3,7 @@
 #include <LibGUI/GWindow.h>
 
 class GTableView;
+class GTextBox;
 
 class VBPropertiesWindow final : public GWindow {
 public:
@@ -13,5 +14,6 @@ public:
     const GTableView& table_view() const { return *m_table_view; }
 
 private:
+    GTextBox* m_text_box { nullptr };
     GTableView* m_table_view { nullptr };
 };