2019-04-11 22:03:55 +02:00
|
|
|
#include "VBPropertiesWindow.h"
|
|
|
|
|
#include <LibGUI/GBoxLayout.h>
|
|
|
|
|
#include <LibGUI/GTableView.h>
|
2019-04-11 23:57:58 +02:00
|
|
|
#include <LibGUI/GTextBox.h>
|
2019-06-07 11:48:27 +02:00
|
|
|
#include <LibGUI/GWidget.h>
|
2019-04-11 22:03:55 +02:00
|
|
|
|
|
|
|
|
VBPropertiesWindow::VBPropertiesWindow()
|
|
|
|
|
{
|
|
|
|
|
set_title("Properties");
|
2019-04-19 01:16:25 +02:00
|
|
|
set_rect(780, 200, 240, 280);
|
2019-04-11 22:03:55 +02:00
|
|
|
|
|
|
|
|
auto* widget = new GWidget;
|
|
|
|
|
widget->set_fill_with_background_color(true);
|
|
|
|
|
widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
|
2019-05-11 02:35:55 +02:00
|
|
|
widget->layout()->set_margins({ 2, 2, 2, 2 });
|
2019-04-11 22:03:55 +02:00
|
|
|
set_main_widget(widget);
|
|
|
|
|
|
|
|
|
|
m_table_view = new GTableView(widget);
|
2019-04-19 01:16:25 +02:00
|
|
|
m_table_view->set_headers_visible(false);
|
2019-04-18 22:27:14 +02:00
|
|
|
m_table_view->set_editable(true);
|
2019-04-11 22:03:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
VBPropertiesWindow::~VBPropertiesWindow()
|
|
|
|
|
{
|
|
|
|
|
}
|