parameter.h revision 282963165a505f1e709cf741fb2825b6a78cdd6c
#ifndef INK_EXTENSION_PARAM_H_SEEN
#define INK_EXTENSION_PARAM_H_SEEN
/** \file
* Parameters for extensions.
*/
/*
* Authors:
* Ted Gould <ted@gould.cx>
*
* Copyright (C) 2005-2006 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
/** \brief The root directory in the preferences database for extension-related parameters. */
#define PREF_DIR "extensions"
#include "xml/document.h"
#include "document.h"
#include "extension-forward.h"
#include "prefs-utils.h"
#include "color.h"
/** \brief A class to represent the parameter of an extension
This is really a super class that allows them to abstract all
the different types of parameters into some that can be passed
around. There is also a few functions that are used by all the
different parameters.
*/
/** \brief Which extension is this parameter attached to? */
/** \brief The name of this parameter. */
/** \brief Description of the parameter. */
/** \brief List of possible scopes. */
typedef enum {
SCOPE_USER, /**< Parameter value is saved in the user's configuration file. (default) */
SCOPE_DOCUMENT, /**< Parameter value is saved in the document. */
SCOPE_NODE /**< Parameter value is attached to the node. */
} _scope_t;
/** \brief Scope of the parameter. */
/** \brief Text for the GUI selection of this. */
/* **** funcs **** */
};
virtual Gtk::Widget * get_widget (SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal);
};
} /* namespace Extension */
} /* namespace Inkscape */
#endif /* INK_EXTENSION_PARAM_H_SEEN */
/*
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 :