1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-17 10:45:06 +00:00
serenity/Userland/Applications/PixelPaint/CreateNewGuideDialog.h
Tobias Christiansen 515bbd0b83 PixelPaint: Add a Dialog for the creation of a Guide
You can select whether you want a horizontal or a vertical Guide and
specify the offset you want it to be at.
2021-08-07 02:52:47 +04:30

31 lines
638 B
C++

/*
* Copyright (c) 2021, Tobias Christiansen <tobi@tobyase.de>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include "Guide.h"
#include <LibGUI/Dialog.h>
namespace PixelPaint {
class CreateNewGuideDialog final : public GUI::Dialog {
C_OBJECT(CreateNewGuideDialog);
public:
String const offset() const { return m_offset; }
Guide::Orientation orientation() const { return m_orientation; }
private:
CreateNewGuideDialog(GUI::Window* parent_window);
String m_offset;
Guide::Orientation m_orientation;
bool m_is_horizontal_checked { false };
bool m_is_vertical_checked { false };
};
}