mirror of
https://github.com/RGBCube/serenity
synced 2025-05-17 10:45:06 +00:00

You can select whether you want a horizontal or a vertical Guide and specify the offset you want it to be at.
31 lines
638 B
C++
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 };
|
|
};
|
|
|
|
}
|