summaryrefslogtreecommitdiffstats
path: root/src/widgets/layer-selector.h
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2009-02-21 01:59:56 +0000
committertweenk <tweenk@users.sourceforge.net>2009-02-21 01:59:56 +0000
commit154165799998cb2cb7491bbd97b0511943a0228e (patch)
tree878507e5e42b4651f1bb0805a42c0837528eb314 /src/widgets/layer-selector.h
parentOnly build static libraries for subdirs than actually contain libraries, (diff)
downloadinkscape-154165799998cb2cb7491bbd97b0511943a0228e.tar.gz
inkscape-154165799998cb2cb7491bbd97b0511943a0228e.zip
Move files from the src/dialogs/ directory to the places where they
should be. Build libinkscape.a - should reduce link time. (bzr r7337)
Diffstat (limited to 'src/widgets/layer-selector.h')
-rw-r--r--src/widgets/layer-selector.h110
1 files changed, 0 insertions, 110 deletions
diff --git a/src/widgets/layer-selector.h b/src/widgets/layer-selector.h
deleted file mode 100644
index 0b5300272..000000000
--- a/src/widgets/layer-selector.h
+++ /dev/null
@@ -1,110 +0,0 @@
-/*
- * Inkscape::Widgets::LayerSelector - layer selector widget
- *
- * Authors:
- * MenTaLguY <mental@rydia.net>
- *
- * Copyright (C) 2004 MenTaLguY
- *
- * Released under GNU GPL, read the file 'COPYING' for more information
- */
-
-#ifndef SEEN_INKSCAPE_WIDGETS_LAYER_SELECTOR
-#define SEEN_INKSCAPE_WIDGETS_LAYER_SELECTOR
-
-#include <gtkmm/box.h>
-#include <gtkmm/combobox.h>
-#include <gtkmm/togglebutton.h>
-#include <gtkmm/tooltips.h>
-#include <gtkmm/cellrenderertext.h>
-#include <gtkmm/treemodel.h>
-#include <gtkmm/liststore.h>
-#include <sigc++/slot.h>
-#include "util/list.h"
-
-class SPDesktop;
-class SPDocument;
-class SPObject;
-namespace Inkscape {
-namespace XML {
-class Node;
-}
-}
-
-
-namespace Inkscape {
-namespace Widgets {
-
-class DocumentTreeModel;
-
-class LayerSelector : public Gtk::HBox {
-public:
- LayerSelector(SPDesktop *desktop = NULL);
- ~LayerSelector();
-
- SPDesktop *desktop() { return _desktop; }
- void setDesktop(SPDesktop *desktop);
-
-private:
- class LayerModelColumns : public Gtk::TreeModel::ColumnRecord {
- public:
- Gtk::TreeModelColumn<unsigned> depth;
- Gtk::TreeModelColumn<SPObject *> object;
- Gtk::TreeModelColumn<Inkscape::XML::Node *> repr;
- Gtk::TreeModelColumn<void *> callbacks;
-
- LayerModelColumns() {
- add(depth); add(object); add(repr); add(callbacks);
- }
- };
-
- SPDesktop *_desktop;
-
- Gtk::Tooltips _tooltips;
- Gtk::ComboBox _selector;
- Gtk::ToggleButton _visibility_toggle;
- Gtk::ToggleButton _lock_toggle;
-
- LayerModelColumns _model_columns;
- Gtk::CellRendererText _label_renderer;
- Glib::RefPtr<Gtk::ListStore> _layer_model;
-
-// sigc::connection _desktop_shutdown_connection;
- sigc::connection _layer_changed_connection;
- sigc::connection _selection_changed_connection;
- sigc::connection _visibility_toggled_connection;
- sigc::connection _lock_toggled_connection;
-
- SPObject *_layer;
-
- void _selectLayer(SPObject *layer);
- void _setDesktopLayer();
-
- void _buildEntry(unsigned depth, SPObject &object);
- void _buildEntries(unsigned depth,
- Inkscape::Util::List<SPObject &> hierarchy);
- void _buildSiblingEntries(unsigned depth,
- SPObject &parent,
- Inkscape::Util::List<SPObject &> hierarchy);
- void _protectUpdate(sigc::slot<void> slot);
- void _destroyEntry(Gtk::ListStore::iterator const &row);
- void _hideLayer(bool hide);
- void _lockLayer(bool lock);
-
- void _prepareLabelRenderer(Gtk::TreeModel::const_iterator const &row);
-};
-
-}
-}
-
-#endif
-/*
- 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 :