summaryrefslogtreecommitdiffstats
path: root/src/selection.h
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2009-12-26 00:32:25 +0000
committerMaximilian Albert <maximilian.albert@gmail.com>2009-12-26 00:32:25 +0000
commitbcef1f768feeb937aa0e86842871f0b479ec284a (patch)
treeb366d30c7f66943631ea5db34565dd4bfa1648b9 /src/selection.h
parentRefactoring of 3D box tool, mainly to avoid unnecessary creation of perspecti... (diff)
downloadinkscape-bcef1f768feeb937aa0e86842871f0b479ec284a.tar.gz
inkscape-bcef1f768feeb937aa0e86842871f0b479ec284a.zip
Major simplification of 3D box code.
(bzr r8911)
Diffstat (limited to 'src/selection.h')
-rw-r--r--src/selection.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/selection.h b/src/selection.h
index ecb1ef45e..5e035fb60 100644
--- a/src/selection.h
+++ b/src/selection.h
@@ -229,11 +229,14 @@ public:
/// method for that
GSList const *reprList();
- /* list of all perspectives which have a 3D box in the current selection
+ /** @brief Returns a list of all perspectives which have a 3D box in the current selection
(these may also be nested in groups) */
std::list<Persp3D *> const perspList();
- std::list<SPBox3D *> const box3DList();
+ /** @brief Returns a list of all 3D boxes in the current selection which are associated to @c
+ persp. If @c pers is @c NULL, return all selected boxes.
+ */
+ std::list<SPBox3D *> const box3DList(Persp3D *persp = NULL);
/** @brief Returns the number of layers in which there are selected objects */
guint numberOfLayers();
@@ -351,7 +354,6 @@ private:
void remove_box_perspective(SPBox3D *box);
void remove_3D_boxes_recursively(SPObject *obj);
- std::map<Persp3D *, unsigned int> _persps;
std::list<SPBox3D *> _3dboxes;
GC::soft_ptr<SPDesktop> _desktop;