layer-manager.cpp revision 6a13f00062e752dfe3aecd06dbc6d57c5f62ba8c
/*
* Inkscape::LayerManager - a view of a document's layers, relative
* to a particular desktop
*
* Copyright 2006 MenTaLguY <mental@rydia.net>
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <set>
#include "gc-managed.h"
#include "gc-finalized.h"
#include "document.h"
#include "desktop.h"
#include "desktop-handles.h"
#include "layer-manager.h"
#include "prefs-utils.h"
#include "selection.h"
#include "sp-object.h"
#include "xml/node-observer.h"
namespace Inkscape {
public:
{}
virtual void notifyContentChanged( Node &node, Util::ptr_shared<char> old_content, Util::ptr_shared<char> new_content ) {}
virtual void notifyAttributeChanged( Node &node, GQuark name, Util::ptr_shared<char> old_value, Util::ptr_shared<char> new_value ) {
}
}
}
};
{
_layer_connection = desktop->connectCurrentLayerChanged( sigc::mem_fun(*this, &LayerManager::_selectedLayerChanged) );
sigc::bound_mem_functor1<void, Inkscape::LayerManager, SPDocument*> first = sigc::mem_fun(*this, &LayerManager::_setDocument);
// This next line has problems on gcc 4.0.2
}
{
}
}
{
if ( numpart ) {
}
}
}
if ( root ) {
}
}
}
// Not sure if we need to cap it, but we'll just be paranoid for the moment
// Intentionally unsigned
for ( guint i = startNum; (i < endNum) && (currentNames.find(result) != currentNames.end()); i++ ) {
}
}
if (_document) {
}
if (document) {
_resource_connection = sp_document_resources_changed_connect(document, "layer", sigc::mem_fun(*this, &LayerManager::_rebuild));
}
_rebuild();
}
{
}
{
}
void LayerManager::_rebuild() {
if ( node ) {
}
}
}
_clear();
if ( root ) {
// Filter out objects in the middle of being deleted
// Such may have been the cause of bug 1339397.
}
}
}
}
}
}
}
// Connected to the desktop's CurrentLayerChanged signal
{
// notify anyone who's listening to this instead of directly to the desktop
}
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :