Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
hidden.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2#ifndef INKSCAPE_LIVEPATHEFFECT_HIDDEN_H
3#define INKSCAPE_LIVEPATHEFFECT_HIDDEN_H
4
5/*
6 * Inkscape::LivePathEffectParameters
7 *
8 * Authors:
9 * Jabiertxof
10 * Maximilian Albert
11 * Johan Engelen
12 *
13 * Copyright (C) jabiertxof 2017 <jabier.arraiza@marker.es>
14 * Copyright (C) Maximilian Albert 2008 <maximilian.albert@gmail.com>
15 *
16 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
17 */
18
20
21namespace Gtk {
22class Widget;
23} // namespace Gtk
24
25namespace Inkscape {
26
27namespace LivePathEffect {
28
29class HiddenParam : public Parameter {
30public:
31 HiddenParam( const Glib::ustring& label,
32 const Glib::ustring& tip,
33 const Glib::ustring& key,
35 Effect* effect,
36 const Glib::ustring default_value = "",
37 bool widget_is_visible = false);
38 ~HiddenParam() override = default;
39
40 Gtk::Widget * param_newWidget() override;
41
42 bool param_readSVGValue(const gchar * strvalue) override;
43 Glib::ustring param_getSVGValue() const override;
44 Glib::ustring param_getDefaultSVGValue() const override;
45
46 void param_setValue(Glib::ustring newvalue, bool write = false);
47 void param_set_default() override;
48 void param_update_default(const gchar * default_value) override;
49
50 const Glib::ustring get_value() const { return value; };
51 ParamType paramType() const override { return ParamType::HIDDEN; };
52private:
53 HiddenParam(const HiddenParam&) = delete;
55 Glib::ustring value;
56 Glib::ustring defvalue;
57};
58
59} //namespace LivePathEffect
60
61} //namespace Inkscape
62
63#endif
64
65/*
66 Local Variables:
67 mode:c++
68 c-file-style:"stroustrup"
69 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
70 indent-tabs-mode:nil
71 fill-column:99
72 End:
73*/
74// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
HiddenParam(const HiddenParam &)=delete
void param_update_default(const gchar *default_value) override
Definition hidden.cpp:39
bool param_readSVGValue(const gchar *strvalue) override
Definition hidden.cpp:46
ParamType paramType() const override
Definition hidden.h:51
HiddenParam & operator=(const HiddenParam &)=delete
Glib::ustring param_getDefaultSVGValue() const override
Definition hidden.cpp:59
void param_setValue(Glib::ustring newvalue, bool write=false)
Definition hidden.cpp:71
Glib::ustring param_getSVGValue() const override
Definition hidden.cpp:53
const Glib::ustring get_value() const
Definition hidden.h:50
Gtk::Widget * param_newWidget() override
Definition hidden.cpp:65
Glib::ustring label
Definition desktop.h:50
Helper class to stream background task notifications as a series of messages.
static cairo_user_data_key_t key