effect.h revision ffb352bbb9abfde936cbb6bbc2b1c0612e3a6c80
/*
* Authors:
* Ted Gould <ted@gould.cx>
*
* Copyright (C) 2002-2004 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifndef INKSCAPE_EXTENSION_EFFECT_H__
#define INKSCAPE_EXTENSION_EFFECT_H__
#include <config.h>
#include <gtk/gtkdialog.h>
#include "verbs.h"
#include "prefdialog.h"
#include "extension.h"
struct SPDocument;
};
};
/** \brief Effects are extensions that take a document and do something
to it in place. This class adds the extra functions required
to make extensions effects.
*/
/** \brief This is the last effect that was used. This is used in
a menu item to rapidly recall the same effect. */
static Effect * _last_effect;
/** \brief The location of the effects menu on the menu structure
XML file. This is saved so it only has to be discovered
once. */
void merge_menu (Inkscape::XML::Node * base, Inkscape::XML::Node * start, Inkscape::XML::Node * patern, Inkscape::XML::Node * mergee);
/** \brief This is the verb type that is used for all effect's verbs.
It provides convience functions and maintains a pointer
back to the effect that created it. */
/** \brief Function to call for specific actions */
static SPActionEventVector vector;
/** \brief The effect that this verb represents. */
/** \brief Whether or not to show preferences on display */
bool _showPrefs;
/** \brief Name with elipses if that makes sense */
gchar * _elip_name;
/** \brief Use the Verb initializer with the same parameters. */
bool showPrefs) :
_elip_name(NULL) {
/* No clue why, but this is required */
this->set_default_sensitive(true);
}
}
/** \brief Destructor */
~EffectVerb() {
if (_elip_name != NULL) {
}
}
};
/** \brief ID used for the verb without preferences */
/** \brief Name used for the verb without preferences */
/** \brief The verb representing this effect. */
/** \brief The verb representing this effect. Without preferences. */
/** \brief Menu node created for this effect */
/** \brief Whehter a working dialog should be shown */
bool _workingDialog;
/** \brief The preference dialog if it is shown */
/** \brief Accessor function for a pointer to the verb */
/** \brief Static function to get the last effect used */
static void place_menus (void);
bool no_doc; // if true, the effect does not process SVG document at all, so no need to save, read, and watch for errors
bool no_live_preview; // if true, the effect does not need "live preview" checkbox in its dialog
};
} } /* namespace Inkscape, Extension */
#endif /* INKSCAPE_EXTENSION_EFFECT_H__ */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :