Code

Tweaked smaller size to be 3/4ths the menu size
[inkscape.git] / src / debug / simple-event.h
1 /*
2  * Inkscape::Debug::SimpleEvent - trivial implementation of Debug::Event
3  *
4  * Authors:
5  *   MenTaLguY <mental@rydia.net>
6  *
7  * Copyright (C) 2005 MenTaLguY
8  *
9  * Released under GNU GPL, read the file 'COPYING' for more information
10  */
12 #ifndef SEEN_INKSCAPE_DEBUG_SIMPLE_EVENT_H
13 #define SEEN_INKSCAPE_DEBUG_SIMPLE_EVENT_H
15 #include "debug/event.h"
17 namespace Inkscape {
19 namespace Debug {
21 template <Event::Category C=Event::OTHER>
22 class SimpleEvent : public Event {
23 public:
24     SimpleEvent(Util::ptr_shared<char> name) : _name(name) {}
25     SimpleEvent(char const *name) : _name(Util::share_string(name)) {}
27     static Category category() { return C; }
29     Util::ptr_shared<char> name() const { return _name; }
30     unsigned propertyCount() const { return 0; }
31     PropertyPair property(unsigned property) const { return PropertyPair(); }
33 private:
34     Util::ptr_shared<char> _name;
35 };
37 }
39 }
41 #endif
42 /*
43   Local Variables:
44   mode:c++
45   c-file-style:"stroustrup"
46   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
47   indent-tabs-mode:nil
48   fill-column:99
49   End:
50 */
51 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :