mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:17:35 +00:00
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.
This commit is contained in:
parent
a717caa4b7
commit
515bbd0b83
4 changed files with 170 additions and 0 deletions
31
Userland/Applications/PixelPaint/CreateNewGuideDialog.h
Normal file
31
Userland/Applications/PixelPaint/CreateNewGuideDialog.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* 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 };
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue