2020-10-18 14:17:49 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020, Ben Jilks <benjyjilks@gmail.com>
|
|
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-10-18 14:17:49 -03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <LibGUI/Dialog.h>
|
|
|
|
|
|
|
|
|
|
namespace PixelPaint {
|
|
|
|
|
|
|
|
|
|
class CreateNewImageDialog final : public GUI::Dialog {
|
|
|
|
|
C_OBJECT(CreateNewImageDialog)
|
|
|
|
|
|
|
|
|
|
public:
|
2021-06-11 08:27:47 -03:00
|
|
|
Gfx::IntSize const& image_size() const { return m_image_size; }
|
|
|
|
|
String const& image_name() const { return m_image_name; }
|
2020-10-18 14:17:49 -03:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
CreateNewImageDialog(GUI::Window* parent_window);
|
|
|
|
|
|
|
|
|
|
String m_image_name;
|
|
|
|
|
Gfx::IntSize m_image_size;
|
|
|
|
|
|
|
|
|
|
RefPtr<GUI::TextBox> m_name_textbox;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|