/* * Copyright (c) 2021, Tobias Christiansen * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include "Guide.h" #include "ImageEditor.h" #include namespace PixelPaint { class EditGuideDialog final : public GUI::Dialog { C_OBJECT(EditGuideDialog); public: DeprecatedString const offset() const { return m_offset; } Guide::Orientation orientation() const { return m_orientation; } Optional offset_as_pixel(ImageEditor const&); private: EditGuideDialog(GUI::Window* parent_window, DeprecatedString const& offset = {}, Guide::Orientation orientation = Guide::Orientation::Unset); DeprecatedString m_offset; Guide::Orientation m_orientation; RefPtr m_offset_text_box; bool m_is_horizontal_checked { false }; bool m_is_vertical_checked { false }; }; }