mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:37:35 +00:00
LibGUI: Rename {H,V}BoxLayout => {Horizontal,Vertical}BoxLayout
This commit is contained in:
parent
dccf335d5b
commit
799b0a4fa8
49 changed files with 114 additions and 114 deletions
|
@ -52,13 +52,13 @@ MemoryStatsWidget::MemoryStatsWidget(GraphWidget& graph, GUI::Widget* parent)
|
|||
set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed);
|
||||
set_preferred_size(0, 72);
|
||||
|
||||
set_layout(make<GUI::VBoxLayout>());
|
||||
set_layout(make<GUI::VerticalBoxLayout>());
|
||||
layout()->set_margins({ 0, 8, 0, 0 });
|
||||
layout()->set_spacing(3);
|
||||
|
||||
auto build_widgets_for_label = [this](const String& description) -> RefPtr<GUI::Label> {
|
||||
auto container = GUI::Widget::construct(this);
|
||||
container->set_layout(make<GUI::HBoxLayout>());
|
||||
container->set_layout(make<GUI::HorizontalBoxLayout>());
|
||||
container->set_size_policy(GUI::SizePolicy::Fixed, GUI::SizePolicy::Fixed);
|
||||
container->set_preferred_size(275, 12);
|
||||
auto description_label = GUI::Label::construct(description, container);
|
||||
|
|
|
@ -34,12 +34,12 @@ NetworkStatisticsWidget::NetworkStatisticsWidget(GUI::Widget* parent)
|
|||
: GUI::LazyWidget(parent)
|
||||
{
|
||||
on_first_show = [this](auto&) {
|
||||
set_layout(make<GUI::VBoxLayout>());
|
||||
set_layout(make<GUI::VerticalBoxLayout>());
|
||||
layout()->set_margins({ 4, 4, 4, 4 });
|
||||
set_fill_with_background_color(true);
|
||||
|
||||
auto adapters_group_box = GUI::GroupBox::construct("Adapters", this);
|
||||
adapters_group_box->set_layout(make<GUI::VBoxLayout>());
|
||||
adapters_group_box->set_layout(make<GUI::VerticalBoxLayout>());
|
||||
adapters_group_box->layout()->set_margins({ 6, 16, 6, 6 });
|
||||
adapters_group_box->set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed);
|
||||
adapters_group_box->set_preferred_size(0, 120);
|
||||
|
@ -59,7 +59,7 @@ NetworkStatisticsWidget::NetworkStatisticsWidget(GUI::Widget* parent)
|
|||
m_adapter_table_view->set_model(GUI::JsonArrayModel::create("/proc/net/adapters", move(net_adapters_fields)));
|
||||
|
||||
auto sockets_group_box = GUI::GroupBox::construct("Sockets", this);
|
||||
sockets_group_box->set_layout(make<GUI::VBoxLayout>());
|
||||
sockets_group_box->set_layout(make<GUI::VerticalBoxLayout>());
|
||||
sockets_group_box->layout()->set_margins({ 6, 16, 6, 6 });
|
||||
sockets_group_box->set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fill);
|
||||
sockets_group_box->set_preferred_size(0, 0);
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
ProcessFileDescriptorMapWidget::ProcessFileDescriptorMapWidget(GUI::Widget* parent)
|
||||
: GUI::Widget(parent)
|
||||
{
|
||||
set_layout(make<GUI::VBoxLayout>());
|
||||
set_layout(make<GUI::VerticalBoxLayout>());
|
||||
layout()->set_margins({ 4, 4, 4, 4 });
|
||||
m_table_view = GUI::TableView::construct(this);
|
||||
m_table_view->set_size_columns_to_fit_content(true);
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
ProcessMemoryMapWidget::ProcessMemoryMapWidget(GUI::Widget* parent)
|
||||
: GUI::Widget(parent)
|
||||
{
|
||||
set_layout(make<GUI::VBoxLayout>());
|
||||
set_layout(make<GUI::VerticalBoxLayout>());
|
||||
layout()->set_margins({ 4, 4, 4, 4 });
|
||||
m_table_view = GUI::TableView::construct(this);
|
||||
m_table_view->set_size_columns_to_fit_content(true);
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
ProcessStacksWidget::ProcessStacksWidget(GUI::Widget* parent)
|
||||
: GUI::Widget(parent)
|
||||
{
|
||||
set_layout(make<GUI::VBoxLayout>());
|
||||
set_layout(make<GUI::VerticalBoxLayout>());
|
||||
layout()->set_margins({ 4, 4, 4, 4 });
|
||||
m_stacks_editor = GUI::TextEditor::construct(GUI::TextEditor::Type::MultiLine, this);
|
||||
m_stacks_editor->set_readonly(true);
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
ProcessUnveiledPathsWidget::ProcessUnveiledPathsWidget(GUI::Widget* parent)
|
||||
: GUI::Widget(parent)
|
||||
{
|
||||
set_layout(make<GUI::VBoxLayout>());
|
||||
set_layout(make<GUI::VerticalBoxLayout>());
|
||||
layout()->set_margins({ 4, 4, 4, 4 });
|
||||
m_table_view = GUI::TableView::construct(this);
|
||||
m_table_view->set_size_columns_to_fit_content(true);
|
||||
|
|
|
@ -115,7 +115,7 @@ int main(int argc, char** argv)
|
|||
|
||||
auto keeper = GUI::Widget::construct();
|
||||
window->set_main_widget(keeper);
|
||||
keeper->set_layout(make<GUI::VBoxLayout>());
|
||||
keeper->set_layout(make<GUI::VerticalBoxLayout>());
|
||||
keeper->set_fill_with_background_color(true);
|
||||
keeper->layout()->set_margins({ 4, 4, 4, 4 });
|
||||
|
||||
|
@ -137,7 +137,7 @@ int main(int argc, char** argv)
|
|||
auto network_stats_widget = NetworkStatisticsWidget::construct(nullptr);
|
||||
tabwidget->add_widget("Network", network_stats_widget);
|
||||
|
||||
process_table_container->set_layout(make<GUI::VBoxLayout>());
|
||||
process_table_container->set_layout(make<GUI::VerticalBoxLayout>());
|
||||
process_table_container->layout()->set_margins({ 4, 0, 4, 4 });
|
||||
process_table_container->layout()->set_spacing(0);
|
||||
|
||||
|
@ -278,7 +278,7 @@ RefPtr<GUI::Widget> build_file_systems_tab()
|
|||
auto fs_widget = GUI::LazyWidget::construct();
|
||||
|
||||
fs_widget->on_first_show = [](auto& self) {
|
||||
self.set_layout(make<GUI::VBoxLayout>());
|
||||
self.set_layout(make<GUI::VerticalBoxLayout>());
|
||||
self.layout()->set_margins({ 4, 4, 4, 4 });
|
||||
auto fs_table_view = GUI::TableView::construct(&self);
|
||||
fs_table_view->set_size_columns_to_fit_content(true);
|
||||
|
@ -367,7 +367,7 @@ RefPtr<GUI::Widget> build_pci_devices_tab()
|
|||
auto pci_widget = GUI::LazyWidget::construct();
|
||||
|
||||
pci_widget->on_first_show = [](auto& self) {
|
||||
self.set_layout(make<GUI::VBoxLayout>());
|
||||
self.set_layout(make<GUI::VerticalBoxLayout>());
|
||||
self.layout()->set_margins({ 4, 4, 4, 4 });
|
||||
auto pci_table_view = GUI::TableView::construct(&self);
|
||||
pci_table_view->set_size_columns_to_fit_content(true);
|
||||
|
@ -425,7 +425,7 @@ RefPtr<GUI::Widget> build_devices_tab()
|
|||
auto devices_widget = GUI::LazyWidget::construct();
|
||||
|
||||
devices_widget->on_first_show = [](auto& self) {
|
||||
self.set_layout(make<GUI::VBoxLayout>());
|
||||
self.set_layout(make<GUI::VerticalBoxLayout>());
|
||||
self.layout()->set_margins({ 4, 4, 4, 4 });
|
||||
|
||||
auto devices_table_view = GUI::TableView::construct(&self);
|
||||
|
@ -444,11 +444,11 @@ NonnullRefPtr<GUI::Widget> build_graphs_tab()
|
|||
graphs_container->on_first_show = [](auto& self) {
|
||||
self.set_fill_with_background_color(true);
|
||||
self.set_background_role(ColorRole::Button);
|
||||
self.set_layout(make<GUI::VBoxLayout>());
|
||||
self.set_layout(make<GUI::VerticalBoxLayout>());
|
||||
self.layout()->set_margins({ 4, 4, 4, 4 });
|
||||
|
||||
auto cpu_graph_group_box = GUI::GroupBox::construct("CPU usage", &self);
|
||||
cpu_graph_group_box->set_layout(make<GUI::VBoxLayout>());
|
||||
cpu_graph_group_box->set_layout(make<GUI::VerticalBoxLayout>());
|
||||
cpu_graph_group_box->layout()->set_margins({ 6, 16, 6, 6 });
|
||||
cpu_graph_group_box->set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed);
|
||||
cpu_graph_group_box->set_preferred_size(0, 120);
|
||||
|
@ -465,7 +465,7 @@ NonnullRefPtr<GUI::Widget> build_graphs_tab()
|
|||
};
|
||||
|
||||
auto memory_graph_group_box = GUI::GroupBox::construct("Memory usage", &self);
|
||||
memory_graph_group_box->set_layout(make<GUI::VBoxLayout>());
|
||||
memory_graph_group_box->set_layout(make<GUI::VerticalBoxLayout>());
|
||||
memory_graph_group_box->layout()->set_margins({ 6, 16, 6, 6 });
|
||||
memory_graph_group_box->set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed);
|
||||
memory_graph_group_box->set_preferred_size(0, 120);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue