1 #ifndef __INK_EXTENSION_PARAMNOTEBOOK_H__
2 #define __INK_EXTENSION_PARAMNOTEBOOK_H__
4 /** \file
5 * Notebook parameter for extensions.
6 */
8 /*
9 * Author:
10 * Johan Engelen <johan@shouraizou.nl>
11 *
12 * Copyright (C) 2006 Author
13 *
14 * Released under GNU GPL, read the file 'COPYING' for more information
15 */
17 #include <gtkmm/widget.h>
19 #include "xml/document.h"
20 #include "extension-forward.h"
22 #include "parameter.h"
24 namespace Inkscape {
25 namespace Extension {
29 // \brief A class to represent a notebookparameter of an extension
30 class ParamNotebook : public Parameter {
31 private:
32 /** \brief Internal value. This should point to a string that has
33 been allocated in memory. And should be free'd.
34 It is the name of the current page. */
35 gchar * _value;
37 GSList * pages; /**< A table to store the pages with parameters for this notebook.
38 This only gets created if there are pages in this
39 notebook */
40 public:
41 ParamNotebook(const gchar * name, const gchar * guitext, const gchar * desc, const Parameter::_scope_t scope, Inkscape::Extension::Extension * ext, Inkscape::XML::Node * xml);
42 virtual ~ParamNotebook(void);
43 Gtk::Widget * get_widget(SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal);
44 Glib::ustring * string (void);
46 const gchar * get (const SPDocument * doc, const Inkscape::XML::Node * node) { return _value; }
47 const gchar * set (const int in, SPDocument * doc, Inkscape::XML::Node * node);
48 }; /* class ParamNotebook */
54 } /* namespace Extension */
55 } /* namespace Inkscape */
57 #endif /* __INK_EXTENSION_PARAMNOTEBOOK_H__ */
59 /*
60 Local Variables:
61 mode:c++
62 c-file-style:"stroustrup"
63 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
64 indent-tabs-mode:nil
65 fill-column:99
66 End:
67 */
68 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :