17#ifndef SEEN_INKSCAPE_UI_WIDGET_REGISTERED_WIDGET_H
18#define SEEN_INKSCAPE_UI_WIDGET_REGISTERED_WIDGET_H
20#include <gtkmm/switch.h>
23#include <glibmm/ustring.h>
25#include <gtkmm/checkbutton.h>
26#include <gtkmm/togglebutton.h>
34#include <sigc++/scoped_connection.h>
55 void set_undo_parameters(Glib::ustring _event_description, Glib::ustring _icon_name, std::string undo_id =
"")
72 template <
typename ...Args>
74 : W{
std::forward<Args>(args)...}
86 g_warning(
"Initialization of registered widget using defined repr but with doc==NULL");
103 const char * svgstr_old = local_repr->
attribute(
_key.c_str());
110 if (svgstr_old && svgstr && strcmp(svgstr_old,svgstr)) {
138 Glib::ustring
const &
key,
Registry &wr,
bool right =
false,
140 char const *active_str =
"true",
char const *inactive_str =
"false");
164 Glib::ustring
const &
key,
Registry &wr,
bool right =
true,
166 char const *icon_active =
"",
char const *icon_inactive =
"");
189 Glib::ustring
const &
key,
Registry &wr,
bool right =
true,
208 Glib::ustring
const &
key,
213 void setUnit(
const Glib::ustring);
214 Unit const *
getUnit ()
const {
return getUnitMenu()->getUnit(); };
235 Glib::ustring
const &tip,
236 Glib::ustring
const &
key,
244 void on_value_changed();
255 Glib::ustring
const &tip,
256 Glib::ustring
const &
key,
262 void on_value_changed();
271 Glib::ustring
const &tip,
272 Glib::ustring
const &
key,
287 Glib::ustring
const &title,
288 Glib::ustring
const &tip,
289 Glib::ustring
const &ckey,
290 Glib::ustring
const &akey,
309 Glib::ustring
const &tip,
310 Glib::ustring
const &
key,
319 void on_value_changed();
329 Glib::ustring
const &tip,
330 Glib::ustring
const &
key,
341 void on_value_changed();
353 Glib::ustring
const &tip,
354 Glib::ustring
const &
key,
368 void setPolarCoords(
bool polar_coords =
true);
371 void on_value_changed();
384 Glib::ustring
const &tip,
385 Glib::ustring
const &
key,
390 void setValue(
double val,
long startseed);
393 void on_value_changed();
403 Glib::ustring
const &tip,
404 Glib::ustring
const &
key,
409 void setValue(Glib::ustring fontspec);
412 void on_value_changed();
3x3 affine transformation matrix.
3x3 matrix representing an affine transformation.
Two-dimensional point that doubles as a vector.
RAII-style mechanism for creating a temporary undo-insensitive context.
static void done(SPDocument *document, Glib::ustring const &event_description, Glib::ustring const &undo_icon, unsigned int object_modified_tag=0)
static void maybeDone(SPDocument *document, const gchar *keyconst, Glib::ustring const &event_description, Glib::ustring const &undo_icon, unsigned int object_modified_tag=0)
sigc::scoped_connection _activate_connection
Interface for refcounted XML nodes.
void setAttribute(Util::const_char_ptr key, Util::const_char_ptr value)
Change an attribute of this node.
virtual char const * attribute(char const *key) const =0
Get the string representation of a node's attribute.
To do: update description of desktop.
SPDocument * getDocument() const
SPNamedView * getNamedView() const
Typed SVG document implementation.
void setModifiedSinceSave(bool const modified=true)
Indicate to the user if the document has been modified since the last save by displaying a "*" in fro...
SPObject is an abstract base class of all of the document nodes at the SVG document level.
Color picker button and window.
Editable view implementation.
TODO: insert short description here.
static cairo_user_data_key_t key