diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2021-11-20 14:28:54 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-11-20 21:05:20 +0000 |
commit | 23341f35cb631b5d57e7ec8d6cb67b075efdab30 (patch) | |
tree | e76c965980fe16f18ee09b088ed929d36b1aa3d3 /Userland/Applications | |
parent | 4b34a1302bf748e45fc17febdbf71088e45e8b5b (diff) | |
download | serenity-23341f35cb631b5d57e7ec8d6cb67b075efdab30.zip |
LibGUI: Add SettingsWindow class
The FooSettings apps have quite a lot of boilerplate just around
creating a tabbed window with the same styling and the same row of
buttons along the bottom. So, let's extract that out into a class we can
reuse! :^)
You create a SettingsWindow instead of a regular Window, passing a title
and a flag to determine if a "Defaults" button is shown. Then call
add_tab() to add tabs to it. Tabs are widgets extending
SettingsWindow::Tab, which has methods for saving and resetting the
values.
Diffstat (limited to 'Userland/Applications')
0 files changed, 0 insertions, 0 deletions