Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
hidden.cpp
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (C) jabiertxof 2017 <jabier.arraiza@marker.es>
4 * Copyright (C) Maximilian Albert 2008 <maximilian.albert@gmail.com>
5 *
6 * Authors:
7 * Jabiertxof
8 * Maximilian Albert
9 * Johan Engelen
10 *
11 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
12 */
13
14#include "hidden.h"
15
16#include <gtkmm/widget.h>
17
18namespace Inkscape {
19
20namespace LivePathEffect {
21
22HiddenParam::HiddenParam( const Glib::ustring& label, const Glib::ustring& tip,
23 const Glib::ustring& key, Inkscape::UI::Widget::Registry* wr,
24 Effect* effect, const Glib::ustring default_value, bool is_visible)
25 : Parameter(label, tip, key, wr, effect),
26 value(default_value),
27 defvalue(default_value)
28{
29 param_widget_is_visible(is_visible);
30}
31
32void
37
38void
39HiddenParam::param_update_default(const gchar * default_value)
40{
41 defvalue = (Glib::ustring)default_value;
42}
43
44
45bool
46HiddenParam::param_readSVGValue(const gchar * strvalue)
47{
48 param_setValue(strvalue);
49 return true;
50}
51
52Glib::ustring
54{
55 return value;
56}
57
58Glib::ustring
63
64Gtk::Widget *
66{
67 return nullptr;
68}
69
70void
71HiddenParam::param_setValue(const Glib::ustring newvalue, bool write)
72{
73 value = newvalue;
74 if (write) {
76 }
77}
78
79} /* namespace LivePathEffect */
80
81} /* namespace Inkscape */
82
83/*
84 Local Variables:
85 mode:c++
86 c-file-style:"stroustrup"
87 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
88 indent-tabs-mode:nil
89 fill-column:99
90 End:
91*/
92// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
void param_update_default(const gchar *default_value) override
Definition hidden.cpp:39
bool param_readSVGValue(const gchar *strvalue) override
Definition hidden.cpp:46
Glib::ustring param_getDefaultSVGValue() const override
Definition hidden.cpp:59
void param_setValue(Glib::ustring newvalue, bool write=false)
Definition hidden.cpp:71
HiddenParam(const Glib::ustring &label, const Glib::ustring &tip, const Glib::ustring &key, Inkscape::UI::Widget::Registry *wr, Effect *effect, const Glib::ustring default_value="", bool widget_is_visible=false)
Definition hidden.cpp:22
Glib::ustring param_getSVGValue() const override
Definition hidden.cpp:53
Gtk::Widget * param_newWidget() override
Definition hidden.cpp:65
virtual void param_widget_is_visible(bool is_visible)
Definition parameter.h:69
void param_write_to_repr(const char *svgd)
Definition parameter.cpp:52
Glib::ustring label
Helper class to stream background task notifications as a series of messages.
static cairo_user_data_key_t key