r19071 by fschmid - Fixed Bug #12235: "Close this Bezier Curves " should be clickable when a Bezier Curve has 3+ nodes

scribus-commit scribus-commit at lists.scribus.net
Mon Apr 21 08:18:08 UTC 2014


Author: fschmid
Date: Mon Apr 21 08:18:07 2014
New Revision: 19071

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19071
Log:
Fixed Bug #12235: "Close this Bezier Curves " should be clickable when a Bezier Curve has 3+ nodes

Modified:
    trunk/Scribus/scribus/canvasmode_nodeedit.cpp
    trunk/Scribus/scribus/scribus.cpp
    trunk/Scribus/scribus/scribusview.h

Modified: trunk/Scribus/scribus/canvasmode_nodeedit.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19071&path=/trunk/Scribus/scribus/canvasmode_nodeedit.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_nodeedit.cpp (original)
+++ trunk/Scribus/scribus/canvasmode_nodeedit.cpp Mon Apr 21 08:18:07 2014
@@ -941,6 +941,7 @@
 		currItem->update();
 		if ((xp != xp2) || (yp != yp2) || (w != w2) || (h != h2))
 			m_view->DrawNew();
+		emit m_view->PolyStatus(currItem->itemType(), currItem->PoLine.size());
 	}
 	else
 	{

Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19071&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Mon Apr 21 08:18:07 2014
@@ -6261,6 +6261,7 @@
 		nodePalette->show();
 //		qDebug() << "nodepalette show:" << nodePalette->geometry();
 		connect(view, SIGNAL(HavePoint(bool, bool)), nodePalette, SLOT(HaveNode(bool, bool)));
+		connect(view, SIGNAL(PolyStatus(int, uint)), nodePalette, SLOT(PolyStatus(int, uint)));
 		doc->nodeEdit.reset();
 //done elsewhere now		doc->appMode = modeEditClip;
 		appModeHelper.setFrameEditMode(true);
@@ -6313,6 +6314,7 @@
 void ScribusMainWindow::NoFrameEdit()
 {
 	disconnect(view, SIGNAL(HavePoint(bool, bool)), nodePalette, SLOT(HaveNode(bool, bool)));
+	disconnect(view, SIGNAL(PolyStatus(int, uint)), nodePalette, SLOT(PolyStatus(int, uint)));
 	actionManager->disconnectModeActions();
 	nodePalette->setDoc(0,0);
 	nodePalette->hide();

Modified: trunk/Scribus/scribus/scribusview.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19071&path=/trunk/Scribus/scribus/scribusview.h
==============================================================================
--- trunk/Scribus/scribus/scribusview.h (original)
+++ trunk/Scribus/scribus/scribusview.h Mon Apr 21 08:18:07 2014
@@ -383,6 +383,7 @@
 	void LevelChanged(uint);
 	void HavePoint(bool, bool);
 	void ClipPo(double, double);
+	void PolyStatus(int, uint);
 	void AnnotProps();
 	void EndNodeEdit();
 	void Hrule(int);




More information about the scribus-commit mailing list