summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/TabWidget.h
AgeCommit message (Collapse)Author
2022-07-04LibGUI: Implement calculated min/preferred sizes for TabWidgetFrHun
2022-06-05LibGUI+Browser: Fix crash when activating a "Tab n" actionnetworkException
Previously we would try setting the tab index regardless if that tab actually existed, resulting in Browser crashing by either pressing Control + N or using the CommandPalette.
2022-05-21LibGUI: TabWidget add vertical tabsCameron Youell
Add vertical tabs to TabWidget, this can be set using the ```TabWidget::set_tab_position``` function or in the GML
2022-05-11LibGUI: Expose more TabWidget properties to GMLSam Atkins
- close_button_enabled - show_tab_bar - reorder_allowed
2022-04-03LibGUI: Fully support TabWidget in GMLkleines Filmröllchen
TabWidgets couldn't be used in GML properly, as the GML creation routines didn't actually call the necessary functions in the TabWidget to get a new tab added. This commit fixes that by making the name of the tab a normal property, the previously introduced "title", which can be trivially set from GML. Therefore, try_add_widget() loses an argument (while try_add_tab doesn't, because it newly constructs the widget). This allows us to get rid of the silly "fixing my widget tree after the fact" code in Help and will make it super easy to use TabWidget in future GML. :^)
2022-04-02LibGUI: Add TabWidget::activate_last_tab()Olivier De Cannière
2022-04-01Everywhere: Run clang-formatIdan Horowitz
2022-03-12Libraries: Use default constructors/destructors in LibGUILenny Maiorani
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules "The compiler is more likely to get the default semantics right and you cannot implement these functions better than the compiler."
2021-12-01LibGUI: Allow double clicking on tabwidgetsErik Biederstadt
2021-11-28LibGUI: Make GUI::TabWidget tab creation APIs take StringAndreas Kling
Ultimately we'd like the caller to provide a String if possible (instead of a StringView) as we're going to end up storing it.
2021-11-24LibGUI: Add GUI::TabWidget::try_add_tab<T>(...)Andreas Kling
This is a fallible variant of add_tab<T>(...) that returns ErrorOr.
2021-11-11Everywhere: Pass AK::StringView by valueAndreas Kling
2021-10-07LibGUI: Support drag-to-reorder in TabWidgetPeter Elliott
2021-08-06LibGUI: Allow TabWidget to remove all tabs except oneTheFightingCatfish
2021-07-28LibGUI: Convert indexes to size_t and use Optional in TabWidgetLuke
Previously it was using int for indexes and using the -1 magic value. Supersedes b9d51b86015e8410a2082c42f95651c0599ec7ae
2021-06-20LibGUI/TabWidget: Add close button to tabsMarcus Nilsson
This adds an optional close button to tabs, useful in for example browser and pixelpaint.
2021-06-15LibGUI: Allow tweaking each edge of TabWidget's content marginsAndreas Kling
Instead of having a single uniform margin around the child content of a TabWidget, use a GUI::Margins to allow individual per-edge margins.
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-04-09LibGUI: Fix uniform TabWidget tabs bleeding outside the widgetAndreas Kling
The last uniform-sized tab button would bleed outside the tab bar area due to us not taking the bar margin into account.
2021-04-09LibGUI: Add TabWidget::on_tab_count_change hookAndreas Kling
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling