Andreas Kling
4087e3cfb9
LibGUI: Add TabWidget functions to activate next/previous tab
2020-04-23 21:43:08 +02:00
Andreas Kling
ee7e7e6d55
LibGUI: Add TabWidget::set_tab_title(Widget&, StringView)
...
This lets you change the title of a tab after creating it.
2020-04-23 21:13:47 +02:00
Oriko
12c7375cdd
LibGUI: Add remove_tab and on_change to TabWidget
2020-04-06 09:01:42 +02:00
Andreas Kling
2463a285ee
LibGUI: Make GUI::TabWidget::add_tab<T>() return a T&
...
Since the newly constructed sub-widget is owned by the TabWidget,
we can simply return a T& here. :^)
2020-04-04 11:10:07 +02:00
Andreas Kling
6c5100b644
LibGUI: Add helper for constructing new TabWidget tabs
...
This patch adds the following convenience helper:
auto tab_widget = GUI::TabWidget::construct();
auto my_widget = tab_widget->add_tab<GUI::Widget>("My tab", ...);
The above is equivalent to:
auto tab_widget = GUI::TabWidget::construct();
auto my_widget = GUI::Widget::construct(...);
tab_widget->add_widget("My tab", my_widget);
2020-02-23 12:27:53 +01:00
Andreas Kling
c5d913970a
LibGUI: Remove parent parameter to GUI::Widget constructor
2020-02-23 12:27:53 +01:00
Andreas Kling
428582e805
LibGUI: Don't require passing a parent to widget constructors
...
This is a step towards using Core::Object::add<T> more, which takes
care of parenting the newly created child automatically.
2020-02-23 11:10:52 +01:00
Andreas Kling
6a9cc66b97
LibGUI: Remove leading G from filenames
2020-02-06 20:33:02 +01:00