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

« back to all changes in this revision

Viewing changes to src/extension/parambool.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_PARAMBOOL_H__
2
 
#define __INK_EXTENSION_PARAMBOOL_H__
3
 
/*
4
 
 * Copyright (C) 2005-2007 Authors:
5
 
 *   Ted Gould <ted@gould.cx>
6
 
 *   Johan Engelen <johan@shouraizou.nl> *
7
 
 * Released under GNU GPL, read the file 'COPYING' for more information
8
 
 */
9
 
 
10
 
#include <gtkmm/widget.h>
11
 
#include <xml/node.h>
12
 
#include <document.h>
13
 
#include "parameter.h"
14
 
 
15
 
namespace Inkscape {
16
 
namespace Extension {
17
 
 
18
 
/** \brief  A boolean parameter */
19
 
class ParamBool : public Parameter {
20
 
private:
21
 
    /** \brief  Internal value. */
22
 
    bool _value;
23
 
public:
24
 
    ParamBool(const gchar * name, const gchar * guitext, const gchar * desc, const Parameter::_scope_t scope, Inkscape::Extension::Extension * ext, Inkscape::XML::Node * xml);
25
 
    /** \brief  Returns \c _value */
26
 
    bool get (const SPDocument * /*doc*/, const Inkscape::XML::Node * /*node*/) { return _value; }
27
 
    bool set (bool in, SPDocument * doc, Inkscape::XML::Node * node);
28
 
    Gtk::Widget * get_widget(SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal);
29
 
    void string (std::string &string);
30
 
};
31
 
 
32
 
}  /* namespace Extension */
33
 
}  /* namespace Inkscape */
34
 
 
35
 
#endif /* __INK_EXTENSION_PARAMBOOL_H__ */
36
 
 
37
 
/*
38
 
  Local Variables:
39
 
  mode:c++
40
 
  c-file-style:"stroustrup"
41
 
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
42
 
  indent-tabs-mode:nil
43
 
  fill-column:99
44
 
  End:
45
 
*/
46
 
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :