summaryrefslogtreecommitdiffstats
path: root/src/perspective3d.h
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2007-08-06 07:20:23 +0000
committercilix42 <cilix42@users.sourceforge.net>2007-08-06 07:20:23 +0000
commitd01e7d7d15cfcc0b603eecc6a0d0b925f00ee003 (patch)
treec2a24485c71bc11cd194266d429f13f7313f6297 /src/perspective3d.h
parentConvenience for debugging (diff)
downloadinkscape-d01e7d7d15cfcc0b603eecc6a0d0b925f00ee003.tar.gz
inkscape-d01e7d7d15cfcc0b603eecc6a0d0b925f00ee003.zip
Workaround for some segfaults: Store perspectives globally instead of in each desktop (this should probably be reverted later on)
(bzr r3390)
Diffstat (limited to 'src/perspective3d.h')
-rw-r--r--src/perspective3d.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/perspective3d.h b/src/perspective3d.h
index 4211c7b3b..43b0ca3d3 100644
--- a/src/perspective3d.h
+++ b/src/perspective3d.h
@@ -41,10 +41,13 @@ public:
static gint counter; // for testing only
gint my_counter; // for testing only
- static void print_debugging_info();
- static Perspective3D * current_perspective; // should current_perspective be moved to desktop.h?
+ static GSList * perspectives; // All existing 3D perspectives
+ static void add_perspective (Box3D::Perspective3D * const persp);
+ static void remove_perspective (Box3D::Perspective3D * const persp);
+ static Box3D::Perspective3D * find_perspective (Box3D::Perspective3D * const persp); // find an existing perspective whose VPs are equal to those of persp
- SPDesktop * desktop; // we need to store the perspective's desktop to be able to access it in the destructor
+ static void print_debugging_info();
+ static Perspective3D * current_perspective;
private:
VanishingPoint *vp_x;