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

« back to all changes in this revision

Viewing changes to src/extension/paramstring.h

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook, Kees Cook, Ted Gould
  • Date: 2008-02-10 14:20:16 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080210142016-vcnb2zqyhszu0xvb
Tags: 0.46~pre1-0ubuntu1
[ Kees Cook ]
* debian/control:
  - add libgtkspell-dev build-dep to gain GtkSpell features (LP: #183547).
  - update Standards version (no changes needed).
  - add Vcs and Homepage fields.
  - switch to new python-lxml dep.
* debian/{control,rules}: switch from dpatch to quilt for more sanity.
* debian/patches/20_fix_glib_and_gxx43_ftbfs.patch:
  - merged against upstream fixes.
  - added additional fixes for newly written code.
* debian/rules: enable parallel building.

[ Ted Gould ]
* Updating POTFILES.in to make it so things build correctly.
* debian/control:
  - add ImageMagick++ and libboost-dev to build-deps

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __INK_EXTENSION_PARAMSTRING_H
 
2
#define __INK_EXTENSION_PARAMSTRING_H
 
3
 
 
4
/*
 
5
 * Copyright (C) 2005-2007 Authors:
 
6
 *   Ted Gould <ted@gould.cx>
 
7
 *   Johan Engelen <johan@shouraizou.nl> *
 
8
 * Released under GNU GPL, read the file 'COPYING' for more information
 
9
 */
 
10
 
 
11
#include <gtkmm/widget.h>
 
12
#include <xml/node.h>
 
13
#include <document.h>
 
14
#include "parameter.h"
 
15
 
 
16
namespace Inkscape {
 
17
namespace Extension {
 
18
 
 
19
class ParamString : public Parameter {
 
20
private:
 
21
    /** \brief  Internal value.  This should point to a string that has
 
22
                been allocated in memory.  And should be free'd. */
 
23
    gchar * _value;
 
24
public:
 
25
    ParamString(const gchar * name, const gchar * guitext, const gchar * desc, const Parameter::_scope_t scope, Inkscape::Extension::Extension * ext, Inkscape::XML::Node * xml);
 
26
    virtual ~ParamString(void);
 
27
    /** \brief  Returns \c _value, with a \i const to protect it. */
 
28
    const gchar * get (const SPDocument * doc, const Inkscape::XML::Node * node) { return _value; }
 
29
    const gchar * set (const gchar * in, SPDocument * doc, Inkscape::XML::Node * node);
 
30
    Gtk::Widget * get_widget(SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal);
 
31
    Glib::ustring * string (void);
 
32
};
 
33
 
 
34
 
 
35
}  /* namespace Extension */
 
36
}  /* namespace Inkscape */
 
37
 
 
38
#endif /* __INK_EXTENSION_PARAMSTRING_H */
 
39
 
 
40
/*
 
41
  Local Variables:
 
42
  mode:c++
 
43
  c-file-style:"stroustrup"
 
44
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
45
  indent-tabs-mode:nil
 
46
  fill-column:99
 
47
  End:
 
48
*/
 
49
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :