~valavanisalex/ubuntu/oneiric/inkscape/inkscape_0.48.1-2ubuntu4

« back to all changes in this revision

Viewing changes to src/extension/param/enum.h

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook, Ted Gould, Kees Cook
  • Date: 2009-06-24 14:00:43 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090624140043-07stp20mry48hqup
Tags: 0.47~pre0-0ubuntu1
* New upstream release

[ Ted Gould ]
* debian/control: Adding libgsl0 and removing version specifics on boost

[ Kees Cook ]
* debian/watch: updated to run uupdate and mangle pre-release versions.
* Dropped patches that have been taken upstream:
  - 01_mips
  - 02-poppler-0.8.3
  - 03-chinese-inkscape
  - 05_fix_latex_patch
  - 06_gcc-4.4
  - 07_cdr2svg
  - 08_skip-bad-utf-on-pdf-import
  - 09_gtk-clist
  - 10_belarussian
  - 11_libpng
  - 12_desktop
  - 13_slider
  - 100_svg_import_improvements
  - 102_sp_pattern_painter_free
  - 103_bitmap_type_print

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef INK_EXTENSION_PARAMENUM_H_SEEN
 
2
#define INK_EXTENSION_PARAMENUM_H_SEEN
 
3
 
 
4
/** \file
 
5
 * Enumeration parameter for extensions.
 
6
 */
 
7
 
 
8
/*
 
9
 * Author:
 
10
 *   Johan Engelen <johan@shouraizou.nl>
 
11
 *
 
12
 * Copyright (C) 2006-2007 Johan Engelen
 
13
 *
 
14
 * Released under GNU GPL, read the file 'COPYING' for more information
 
15
 */
 
16
 
 
17
#include <gtkmm/widget.h>
 
18
 
 
19
#include "xml/document.h"
 
20
#include <extension/extension-forward.h>
 
21
 
 
22
#include "parameter.h"
 
23
 
 
24
namespace Inkscape {
 
25
namespace Extension {
 
26
 
 
27
 
 
28
 
 
29
// \brief  A class to represent a notebookparameter of an extension
 
30
class ParamComboBox : 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 value of the current selected string */
 
35
    gchar * _value;
 
36
 
 
37
    GSList * choices; /**< A table to store the choice strings  */
 
38
 
 
39
public:
 
40
    ParamComboBox(const gchar * name, const gchar * guitext, const gchar * desc, const Parameter::_scope_t scope, bool gui_hidden, const gchar * gui_tip, Inkscape::Extension::Extension * ext, Inkscape::XML::Node * xml);
 
41
    virtual ~ParamComboBox(void);
 
42
    Gtk::Widget * get_widget(SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal);
 
43
    void string (std::string &string);
 
44
 
 
45
    const gchar * get (const SPDocument * /*doc*/, const Inkscape::XML::Node * /*node*/) { return _value; }
 
46
    const gchar * set (const gchar * in, SPDocument * doc, Inkscape::XML::Node * node);
 
47
 
 
48
    void changed (void);
 
49
}; /* class ParamComboBox */
 
50
 
 
51
 
 
52
 
 
53
 
 
54
 
 
55
}  /* namespace Extension */
 
56
}  /* namespace Inkscape */
 
57
 
 
58
#endif /* INK_EXTENSION_PARAMENUM_H_SEEN */
 
59
 
 
60
/*
 
61
  Local Variables:
 
62
  mode:c++
 
63
  c-file-style:"stroustrup"
 
64
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
65
  indent-tabs-mode:nil
 
66
  fill-column:99
 
67
  End:
 
68
*/
 
69
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :