summaryrefslogtreecommitdiff
path: root/Userland/Applications/PixelPaint/CreateNewImageDialog.h
blob: 8025950a829ee34eaac946bf03954f7beca3c887 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * Copyright (c) 2020, Ben Jilks <benjyjilks@gmail.com>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <LibGUI/Dialog.h>

namespace PixelPaint {

class CreateNewImageDialog final : public GUI::Dialog {
    C_OBJECT(CreateNewImageDialog)

public:
    Gfx::IntSize const& image_size() const { return m_image_size; }
    String const& image_name() const { return m_image_name; }

private:
    CreateNewImageDialog(GUI::Window* parent_window);

    String m_image_name;
    Gfx::IntSize m_image_size;

    RefPtr<GUI::TextBox> m_name_textbox;
};

}