mirror of
https://github.com/RGBCube/serenity
synced 2025-07-07 20:27:36 +00:00
LibGUI: Put all classes in the GUI namespace and remove the leading G
This took me a moment. Welcome to the new world of GUI::Widget! :^)
This commit is contained in:
parent
2d39da5405
commit
c5bd9d4ed1
337 changed files with 5400 additions and 4816 deletions
|
@ -33,26 +33,26 @@
|
|||
|
||||
extern RefPtr<EditorWrapper> g_current_editor_wrapper;
|
||||
|
||||
EditorWrapper::EditorWrapper(GWidget* parent)
|
||||
: GWidget(parent)
|
||||
EditorWrapper::EditorWrapper(GUI::Widget* parent)
|
||||
: GUI::Widget(parent)
|
||||
{
|
||||
set_layout(make<GVBoxLayout>());
|
||||
set_layout(make<GUI::VBoxLayout>());
|
||||
|
||||
auto label_wrapper = GWidget::construct(this);
|
||||
label_wrapper->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
|
||||
auto label_wrapper = GUI::Widget::construct(this);
|
||||
label_wrapper->set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed);
|
||||
label_wrapper->set_preferred_size(0, 14);
|
||||
label_wrapper->set_fill_with_background_color(true);
|
||||
label_wrapper->set_layout(make<GHBoxLayout>());
|
||||
label_wrapper->set_layout(make<GUI::HBoxLayout>());
|
||||
label_wrapper->layout()->set_margins({ 2, 0, 2, 0 });
|
||||
|
||||
m_filename_label = GLabel::construct("(Untitled)", label_wrapper);
|
||||
m_filename_label = GUI::Label::construct("(Untitled)", label_wrapper);
|
||||
m_filename_label->set_text_alignment(TextAlignment::CenterLeft);
|
||||
m_filename_label->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
|
||||
m_filename_label->set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed);
|
||||
m_filename_label->set_preferred_size(0, 14);
|
||||
|
||||
m_cursor_label = GLabel::construct("(Cursor)", label_wrapper);
|
||||
m_cursor_label = GUI::Label::construct("(Cursor)", label_wrapper);
|
||||
m_cursor_label->set_text_alignment(TextAlignment::CenterRight);
|
||||
m_cursor_label->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
|
||||
m_cursor_label->set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed);
|
||||
m_cursor_label->set_preferred_size(0, 14);
|
||||
|
||||
m_editor = Editor::construct(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue