~ubuntu-branches/debian/squeeze/inkscape/squeeze

« back to all changes in this revision

Viewing changes to src/event.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 INKSCAPE_EVENT_H
 
2
#define INKSCAPE_EVENT_H
 
3
 
 
4
/*
 
5
 * Inkscape::Event -- Container for an XML::Event along with some additional information
 
6
*                     describing it.
 
7
 * 
 
8
 * Author:
 
9
 *   Gustav Broberg <broberg@kth.se>
 
10
 *
 
11
 * Copyright (c) 2006 Authors
 
12
 *
 
13
 * Released under GNU GPL, read the file 'COPYING' for more information
 
14
 */
 
15
 
 
16
 
 
17
#include <glibmm/ustring.h>
 
18
 
 
19
#include "xml/event-fns.h"
 
20
#include "verbs.h"
 
21
 
 
22
namespace Inkscape {
 
23
namespace XML {
 
24
class Event;
 
25
}
 
26
}
 
27
 
 
28
namespace Inkscape {
 
29
 
 
30
struct Event {
 
31
     
 
32
    Event(XML::Event *_event, unsigned int _type=SP_VERB_NONE, Glib::ustring _description="")
 
33
        : event (_event), type (_type), description (_description)  { }
 
34
 
 
35
    virtual ~Event() { sp_repr_free_log (event); }
 
36
 
 
37
    XML::Event *event;
 
38
    const unsigned int type;
 
39
    Glib::ustring description;
 
40
};
 
41
 
 
42
} // namespace Inkscape
 
43
 
 
44
#endif // INKSCAPE_EVENT_H
 
45
 
 
46
/*
 
47
  Local Variables:
 
48
  mode:c++
 
49
  c-file-style:"stroustrup"
 
50
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
51
  indent-tabs-mode:nil
 
52
  fill-column:99
 
53
  End:
 
54
*/
 
55
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :