1 /*
2 * Inkscape::LayerManager - a view of a document's layers, relative
3 * to a particular desktop
4 *
5 * Copyright 2006 MenTaLguY <mental@rydia.net>
6 *
7 * Released under GNU GPL, read the file 'COPYING' for more information
8 */
10 #ifndef SEEN_INKSCAPE_LAYER_MANAGER_H
11 #define SEEN_INKSCAPE_LAYER_MANAGER_H
13 #include "document-subset.h"
14 #include "gc-finalized.h"
15 #include "gc-soft-ptr.h"
17 class SPDesktop;
18 class SPDocument;
20 namespace Inkscape {
22 class LayerManager : public DocumentSubset,
23 public GC::Finalized
24 {
25 public:
26 LayerManager(SPDesktop *desktop);
28 private:
30 void _setDocument(SPDocument *document);
31 void _rebuild();
33 sigc::connection _layer_connection;
34 sigc::connection _document_connection;
35 sigc::connection _resource_connection;
37 GC::soft_ptr<SPDesktop> _desktop;
38 SPDocument *_document;
39 };
41 }
43 #endif
44 /*
45 Local Variables:
46 mode:c++
47 c-file-style:"stroustrup"
48 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
49 indent-tabs-mode:nil
50 fill-column:99
51 End:
52 */
53 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :