Code

7c2ce31bf6136bf5996d2603239e41eaa3d31e2e
[inkscape.git] / src / persp3d-reference.h
1 #ifndef SEEN_PERSP3D_REFERENCE_H
2 #define SEEN_PERSP3D_REFERENCE_H
4 /*
5  * The reference corresponding to the inkscape:perspectiveID attribute
6  *
7  * Copyright (C) 2007 Johan Engelen
8  * Copyright (C) 2007 Maximilian Albert
9  *
10  * Released under GNU GPL, read the file 'COPYING' for more information.
11  */
13 #include "uri-references.h"
14 #include <sigc++/sigc++.h>
15 #include "persp3d.h"
17 class SPObject;
19 namespace Inkscape {
20 namespace XML {
21 struct Node;
22 }
23 }
25 class Persp3DReference : public Inkscape::URIReference {
26 public:
27     Persp3DReference(SPObject *obj);
28     ~Persp3DReference();
30     Persp3D *getObject() const {
31         return SP_PERSP3D(URIReference::getObject());
32     }
34     SPObject *owner;
36     // concerning the Persp3D (we only use SPBox3D) that is refered to:
37     gchar *persp_href;
38     Inkscape::XML::Node *persp_repr;
39     Persp3D *persp;
41     sigc::connection _changed_connection;
42     sigc::connection _modified_connection;
43     sigc::connection _delete_connection;
45     void link(char* to);
46     void unlink(void);
47     void start_listening(Persp3D* to);
48     void quit_listening(void);
50 protected:
51     virtual bool _acceptObject(SPObject *obj) const;
52 };
55 #endif /* !SEEN_PERSP3D_REFERENCE_H */
57 /*
58   Local Variables:
59   mode:c++
60   c-file-style:"stroustrup"
61   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
62   indent-tabs-mode:nil
63   fill-column:99
64   End:
65 */
66 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :