2020-10-18 20:17:49 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020, Ben Jilks <benjyjilks@gmail.com>
|
|
|
|
*
|
2021-04-22 11:24:48 +03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-10-18 20:17:49 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <LibGUI/Dialog.h>
|
2022-12-14 02:54:29 +03:00
|
|
|
#include <LibGfx/Color.h>
|
2020-10-18 20:17:49 +03:00
|
|
|
|
|
|
|
namespace PixelPaint {
|
|
|
|
|
|
|
|
class CreateNewImageDialog final : public GUI::Dialog {
|
|
|
|
C_OBJECT(CreateNewImageDialog)
|
|
|
|
|
|
|
|
public:
|
2022-12-07 00:35:32 +03:00
|
|
|
Gfx::IntSize image_size() const { return m_image_size; }
|
2022-12-04 21:02:33 +03:00
|
|
|
DeprecatedString const& image_name() const { return m_image_name; }
|
2022-12-14 02:54:29 +03:00
|
|
|
Gfx::Color background_color() const { return m_background_color; }
|
2020-10-18 20:17:49 +03:00
|
|
|
|
|
|
|
private:
|
|
|
|
CreateNewImageDialog(GUI::Window* parent_window);
|
|
|
|
|
2022-12-04 21:02:33 +03:00
|
|
|
DeprecatedString m_image_name;
|
2020-10-18 20:17:49 +03:00
|
|
|
Gfx::IntSize m_image_size;
|
2022-12-14 02:54:29 +03:00
|
|
|
Gfx::Color m_background_color {};
|
2020-10-18 20:17:49 +03:00
|
|
|
|
|
|
|
RefPtr<GUI::TextBox> m_name_textbox;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|