VBPropertiesWindow.cpp 663 B

12345678910111213141516171819202122232425
  1. #include "VBPropertiesWindow.h"
  2. #include <LibGUI/GWidget.h>
  3. #include <LibGUI/GBoxLayout.h>
  4. #include <LibGUI/GTableView.h>
  5. #include <LibGUI/GTextBox.h>
  6. VBPropertiesWindow::VBPropertiesWindow()
  7. {
  8. set_title("Properties");
  9. set_rect(780, 200, 240, 280);
  10. auto* widget = new GWidget;
  11. widget->set_fill_with_background_color(true);
  12. widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
  13. widget->layout()->set_margins({ 2, 2, 2, 2 });
  14. set_main_widget(widget);
  15. m_table_view = new GTableView(widget);
  16. m_table_view->set_headers_visible(false);
  17. m_table_view->set_editable(true);
  18. }
  19. VBPropertiesWindow::~VBPropertiesWindow()
  20. {
  21. }