Andreas Kling
5d88022252
LibGUI: When removing a TabWidget tab, activate the next tab
2020-04-24 17:10:59 +02:00
Andreas Kling
a2bdcfabc9
LibGUI: Grant focus when activating a new stack/tab child widget
...
This makes opening a tab actually focus the opened tab.
2020-04-24 14:34:24 +02:00
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
ceec1a7d38
AK: Make Vector use size_t for its size and capacity
2020-02-25 14:52:35 +01: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
34c7322d77
LibGUI: Remove some header dependencies from Widget.h
2020-02-14 23:53:11 +01:00
Andreas Kling
6a9cc66b97
LibGUI: Remove leading G from filenames
2020-02-06 20:33:02 +01:00