2019-04-11 22:03:55 +02:00
|
|
|
#include "VBPropertiesWindow.h"
|
|
|
|
|
#include <LibGUI/GWidget.h>
|
|
|
|
|
#include <LibGUI/GBoxLayout.h>
|
|
|
|
|
#include <LibGUI/GTableView.h>
|
2019-04-11 23:57:58 +02:00
|
|
|
#include <LibGUI/GTextBox.h>
|
2019-04-11 22:03:55 +02:00
|
|
|
|
|
|
|
|
VBPropertiesWindow::VBPropertiesWindow()
|
|
|
|
|
{
|
|
|
|
|
set_title("Properties");
|
2019-04-12 14:47:21 +02:00
|
|
|
set_rect(780, 200, 220, 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));
|
|
|
|
|
set_main_widget(widget);
|
|
|
|
|
|
2019-04-11 23:57:58 +02:00
|
|
|
m_text_box = new GTextBox(widget);
|
|
|
|
|
m_text_box->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
|
|
|
|
|
m_text_box->set_preferred_size({ 0, 21 });
|
|
|
|
|
|
2019-04-11 22:03:55 +02:00
|
|
|
m_table_view = new GTableView(widget);
|
2019-04-18 22:27:14 +02:00
|
|
|
m_table_view->set_editable(true);
|
2019-04-11 22:03:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
VBPropertiesWindow::~VBPropertiesWindow()
|
|
|
|
|
{
|
|
|
|
|
}
|