~ubuntu-branches/debian/experimental/inkscape/experimental

« back to all changes in this revision

Viewing changes to src/extension/paramint.h

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-09-09 23:29:02 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080909232902-c50iujhk1w79u8e7
Tags: 0.46-2.1
* Non-maintainer upload.
* Add upstream patch fixing a crash in the open dialog
  in the zh_CN.utf8 locale. Closes: #487623.
  Thanks to Luca Bruno for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef INK_EXTENSION_PARAMINT_H_SEEN
 
2
#define INK_EXTENSION_PARAMINT_H_SEEN
 
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 ParamInt : public Parameter {
 
20
private:
 
21
    /** \brief  Internal value. */
 
22
    int _value;
 
23
    int _min;
 
24
    int _max;
 
25
public:
 
26
    ParamInt (const gchar * name, const gchar * guitext, const gchar * desc, const Parameter::_scope_t scope, Inkscape::Extension::Extension * ext, Inkscape::XML::Node * xml);
 
27
    /** \brief  Returns \c _value */
 
28
    int get (const SPDocument * /*doc*/, const Inkscape::XML::Node * /*node*/) { return _value; }
 
29
    int set (int in, SPDocument * doc, Inkscape::XML::Node * node);
 
30
    int max (void) { return _max; }
 
31
    int min (void) { return _min; }
 
32
    Gtk::Widget * get_widget(SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal);
 
33
    void string (std::string &string);
 
34
};
 
35
 
 
36
}  /* namespace Extension */
 
37
}  /* namespace Inkscape */
 
38
 
 
39
#endif /* INK_EXTENSION_PARAMINT_H_SEEN */
 
40
 
 
41
/*
 
42
  Local Variables:
 
43
  mode:c++
 
44
  c-file-style:"stroustrup"
 
45
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
46
  indent-tabs-mode:nil
 
47
  fill-column:99
 
48
  End:
 
49
*/
 
50
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :