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/live_effects/parameter/satellite-reference.h | 57 ++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 src/live_effects/parameter/satellite-reference.h (limited to 'src/live_effects/parameter/satellite-reference.h') diff --git a/src/live_effects/parameter/satellite-reference.h b/src/live_effects/parameter/satellite-reference.h new file mode 100644 index 0000000..a9f31a9 --- /dev/null +++ b/src/live_effects/parameter/satellite-reference.h @@ -0,0 +1,57 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/** @file + * TODO: insert short description here + *//* + * Authors: see git history + * + * Copyright (C) 2018 Authors + * Released under GNU GPL v2+, read the file 'COPYING' for more information. + */ +#ifndef SEEN_SP_SATELLITE_REFERENCE_H +#define SEEN_SP_SATELLITE_REFERENCE_H + +#include "object/sp-item.h" +#include "object/uri-references.h" +/** + * The reference corresponding to a satelite in a LivePathEffectObject. + */ +namespace Inkscape { +namespace LivePathEffect { + +class SatelliteReference : public Inkscape::URIReference +{ +public: + SatelliteReference(SPObject *owner, bool hasactive = false) + : URIReference(owner) + , _hasactive(hasactive) + , _active(true) + { + } + + bool getHasActive() const { return _hasactive; } + bool getActive() const { return _active; } + void setActive(bool active) { _active = active; } + +protected: + bool _acceptObject(SPObject *obj) const override; + +private: + bool _active; + bool _hasactive; +}; + +} // namespace LivePathEffect +} // namespace Inkscape + +#endif /* !SEEN_SP_SATELLITE_REFERENCE_H */ + +/* + Local Variables: + mode:c++ + c-file-style:"stroustrup" + c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) + indent-tabs-mode:nil + fill-column:99 + End: +*/ +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 : \ No newline at end of file -- cgit v1.2.3