From cca66b9ec4e494c1d919bff0f71a820d8afab1fa Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:24:48 +0200 Subject: Adding upstream version 1.2.2. Signed-off-by: Daniel Baumann --- src/ui/tools/marker-tool.h | 50 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/ui/tools/marker-tool.h (limited to 'src/ui/tools/marker-tool.h') diff --git a/src/ui/tools/marker-tool.h b/src/ui/tools/marker-tool.h new file mode 100644 index 0000000..92d77a2 --- /dev/null +++ b/src/ui/tools/marker-tool.h @@ -0,0 +1,50 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/** @file + * Marker edit mode - onCanvas marker editing of marker orientation, position, scale + *//* + * Authors: + * see git history + * Rachana Podaralla + * + * Copyright (C) 2018 Authors + * Released under GNU GPL v2+, read the file 'COPYING' for more information. + */ + +#ifndef __SP_MARKER_CONTEXT_H__ +#define __SP_MARKER_CONTEXT_H__ + +#include +#include +#include <2geom/point.h> + +#include "object/sp-marker.h" +#include "object/sp-marker-loc.h" + +#include "ui/tools/tool-base.h" +#include "ui/tool/shape-record.h" + +namespace Inkscape { +class Selection; +namespace UI { +namespace Tools { + +class MarkerTool : public ToolBase { +public: + MarkerTool(SPDesktop *desktop); + ~MarkerTool() override; + + void selection_changed(Inkscape::Selection *selection); + + bool root_handler(GdkEvent *event) override; + std::map> _shape_editors; + + int editMarkerMode = -1; + +private: + sigc::connection sel_changed_connection; + ShapeRecord get_marker_transform(SPShape *shape, SPItem *parent_item, SPMarker *sp_marker, SPMarkerLoc marker_type); +}; + +}}} + +#endif -- cgit v1.2.3