Updated for Ipe 7.0.12; backwards incompatible changes
authorDmitriy Morozov <dmitriy@mrzv.org>
Sun, 21 Nov 2010 07:39:16 -0800
changeset 5 1ff3df15f3dc
parent 4 f7d6064291f0
child 6 0ffafff7682f
Updated for Ipe 7.0.12; backwards incompatible changes
canvasview.cpp
mainwindow.cpp
pagedialog.cpp
--- a/canvasview.cpp	Mon Nov 15 10:32:13 2010 -0800
+++ b/canvasview.cpp	Sun Nov 21 07:39:16 2010 -0800
@@ -63,7 +63,10 @@
     iCanvas = new Canvas(this);
     setCentralWidget(iCanvas);
 
-    iCanvas->setPretty(true);
+    Canvas::Style style = iCanvas->canvasStyle();
+    style.pretty = true;
+    style.paperClip = true;
+    iCanvas->setCanvasStyle(style);
 
     iSnap.iSnap = 0; // Snap::ESnapGrid;
     iSnap.iGridVisible = false;
--- a/mainwindow.cpp	Mon Nov 15 10:32:13 2010 -0800
+++ b/mainwindow.cpp	Sun Nov 21 07:39:16 2010 -0800
@@ -73,8 +73,12 @@
     iMoveMenu->addAction(new IpeAction(ELastView, "Last view", "End", this));
     iMoveMenu->addAction(new IpeAction(EJumpTo, "Jump to...", "J", this));
 
-    currentViewCanvas->setPretty(true);
-    nextViewCanvas->setPretty(true);
+    Canvas::Style style = currentViewCanvas->canvasStyle();
+    style.pretty = true;
+    currentViewCanvas->setCanvasStyle(style);
+    style = nextViewCanvas->canvasStyle();
+    style.pretty = true;
+    nextViewCanvas->setCanvasStyle(style);
 
     iSnap.iSnap = 0; // Snap::ESnapGrid;
     iSnap.iGridVisible = false;
--- a/pagedialog.cpp	Mon Nov 15 10:32:13 2010 -0800
+++ b/pagedialog.cpp	Sun Nov 21 07:39:16 2010 -0800
@@ -21,7 +21,9 @@
     {
         Canvas* c = new Canvas(this);
         c->setFontPool(iDoc->fontPool());
-        c->setPretty(true);
+        Canvas::Style style = c->canvasStyle();
+        style.pretty = true;
+        c->setCanvasStyle(style);
         c->setPage(iDoc->page(views[i].first), views[i].second, iDoc->cascade());
         connect(c, SIGNAL(mouseAction(int)), this, SLOT(pageChosen(int)));
         canvases.push_back(c);