mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
6e19ab2bbc
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
/*
|
|
* Copyright (c) 2022, Sam Atkins <atkinssj@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibGUI/ColorInput.h>
|
|
#include <LibGUI/Frame.h>
|
|
#include <LibGUI/IconView.h>
|
|
#include <LibGUI/ImageWidget.h>
|
|
#include <LibGUI/ModelIndex.h>
|
|
#include <LibGUI/SettingsWindow.h>
|
|
|
|
class CardSettingsWidget final : public GUI::SettingsWindow::Tab {
|
|
C_OBJECT(CardSettingsWidget)
|
|
public:
|
|
virtual ~CardSettingsWidget() override = default;
|
|
|
|
virtual void apply_settings() override;
|
|
virtual void reset_default_values() override;
|
|
|
|
private:
|
|
CardSettingsWidget();
|
|
|
|
void set_cards_background_color(Gfx::Color);
|
|
bool set_card_back_image_path(DeprecatedString const&);
|
|
DeprecatedString card_back_image_path() const;
|
|
|
|
RefPtr<GUI::Frame> m_preview_frame;
|
|
RefPtr<GUI::ImageWidget> m_preview_card_back;
|
|
RefPtr<GUI::ImageWidget> m_preview_card_front_ace;
|
|
RefPtr<GUI::ImageWidget> m_preview_card_front_queen;
|
|
|
|
RefPtr<GUI::ColorInput> m_background_color_input;
|
|
RefPtr<GUI::IconView> m_card_back_image_view;
|
|
|
|
GUI::ModelIndex m_last_selected_card_back;
|
|
};
|