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

Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Static Private Member Functions | Static Private Attributes

Inkscape::ContextVerb Class Reference

A class to encompass all of the verbs which deal with operations relative to context. More...

Inheritance diagram for Inkscape::ContextVerb:
Inheritance graph
[legend]
Collaboration diagram for Inkscape::ContextVerb:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ContextVerb (unsigned int const code, gchar const *id, gchar const *name, gchar const *tip, gchar const *image)
 Use the Verb initializer with the same parameters.
void delete_view (Inkscape::UI::View::View *view)
 A function to remove the action associated with a view.
SPActionget_action (Inkscape::UI::View::View *view)
 A function to get an action if it exists, or otherwise to build it.
unsigned int get_code (void)
 Accessor to get the internal variable.
bool get_default_sensitive (void)
 Accessor to get the _default_sensitive value.
gchar const * get_id (void)
 Accessor to get the internal variable.
gchar const * get_image (void)
 Accessor to get the internal variable.
gchar const * get_name (void)
 Accessor to get the internal variable.
gchar const * get_tip (void)
 Accessor to get the internal variable.
void name (SPDocument *in_doc=NULL, Glib::ustring in_name="")
void sensitive (SPDocument *in_doc=NULL, bool in_sensitive=true)
gchar const * set_name (gchar const *name)
 Set the name after initialization.
gchar const * set_tip (gchar const *tip)
 Set the tooltip after initialization.

Static Public Member Functions

static void delete_all_view (Inkscape::UI::View::View *view)
 A function to delete a view from all verbs.
static Verbget (unsigned int code)
 A function to turn a code into a verb.
static Verbgetbyid (gchar const *id)
 Find a Verb using it's ID.
static void list (void)

Protected Member Functions

virtual SPActionmake_action (Inkscape::UI::View::View *view)
 Create an action for a ContextVerb.
SPActionmake_action_helper (Inkscape::UI::View::View *view, SPActionEventVector *vector, void *in_pntr=NULL)
 A quick little convience function to make building actions a little bit easier.
bool set_default_sensitive (bool in_val)
 Allows for preliminary setting of the _default_sensitive value without effecting existing actions.

Static Protected Member Functions

static int _getBaseListSize (void)
 Returns the size of the internal base verb array.

Static Private Member Functions

static void perform (SPAction *action, void *mydata, void *otherdata)
 Decode the verb code and take appropriate action.

Static Private Attributes

static SPActionEventVector vector

Detailed Description

A class to encompass all of the verbs which deal with operations relative to context.

Definition at line 212 of file verbs.cpp.


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

Generated by  Doxygen 1.6.0   Back to index