Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

Inkscape::Extension::ParamBool Class Reference

#include <parambool.h>

Inheritance diagram for Inkscape::Extension::ParamBool:

Inkscape::Extension::Parameter

List of all members.


Detailed Description

A boolean parameter.

Definition at line 19 of file parambool.h.


Public Member Functions

bool get (const SPDocument *, const Inkscape::XML::Node *)
 Returns _value.
bool get_bool (const SPDocument *doc, const Inkscape::XML::Node *node)
 Wrapper to cast to the object and use it's function.
guint32 get_color (const SPDocument *doc, const Inkscape::XML::Node *node)
const gchar * get_enum (const SPDocument *doc, const Inkscape::XML::Node *node)
 Wrapper to cast to the object and use it's function.
float get_float (const SPDocument *doc, const Inkscape::XML::Node *node)
 Wrapper to cast to the object and use it's function.
int get_int (const SPDocument *doc, const Inkscape::XML::Node *node)
 Wrapper to cast to the object and use it's function.
const gchar * get_string (const SPDocument *doc, const Inkscape::XML::Node *node)
 Wrapper to cast to the object and use it's function.
gchar const * get_tooltip (void)
Gtk::Widget * get_widget (SPDocument *doc, Inkscape::XML::Node *node, sigc::signal< void > *changeSignal)
 Creates a bool check button for a bool parameter.
const gchar * name (void)
 ParamBool (const gchar *name, const gchar *guitext, const gchar *desc, const Parameter::_scope_t scope, Inkscape::Extension::Extension *ext, Inkscape::XML::Node *xml)
 Use the superclass' allocator and set the _value.
bool set (bool in, SPDocument *doc, Inkscape::XML::Node *node)
 A function to set the _value.
bool set_bool (bool in, SPDocument *doc, Inkscape::XML::Node *node)
 Wrapper to cast to the object and use it's function.
guint32 set_color (guint32 in, SPDocument *doc, Inkscape::XML::Node *node)
 Wrapper to cast to the object and use it's function.
float set_float (float in, SPDocument *doc, Inkscape::XML::Node *node)
 Wrapper to cast to the object and use it's function.
int set_int (int in, SPDocument *doc, Inkscape::XML::Node *node)
 Wrapper to cast to the object and use it's function.
const gchar * set_string (const gchar *in, SPDocument *doc, Inkscape::XML::Node *node)
 Wrapper to cast to the object and use it's function.
virtual void string (std::list< std::string > &list)
void string (std::string &string)
 Return 'true' or 'false'.

Static Public Member Functions

static Parametermake (Inkscape::XML::Node *in_repr, Inkscape::Extension::Extension *in_ext)
 This function creates a parameter that can be used later. This is typically done in the creation of the extension and defined in the XML file describing the extension (it's private so people have to use the system) :).

Protected Types

enum  _scope_t { SCOPE_USER, SCOPE_DOCUMENT, SCOPE_NODE }
 List of possible scopes. More...

Protected Member Functions

Inkscape::XML::Nodedocument_param_node (SPDocument *doc)
Inkscape::XML::Nodefind_child (Inkscape::XML::Node *adult)
Inkscape::XML::Nodenew_child (Inkscape::XML::Node *parent)
gchar * pref_name (void)
 Build the name to write the parameter from the extension's ID and the name of this parameter.

Protected Attributes

gchar * _desc
 Description of the parameter.
_scope_t _scope
 Scope of the parameter.
gchar * _text
 Text for the GUI selection of this.

Private Attributes

bool _value
 Internal value.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index