[qet] [3452] Forget file from previous comit

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 3452
Author:   blacksun
Date:     2014-11-04 23:23:27 +0100 (Tue, 04 Nov 2014)
Log Message:
-----------
Forget file from previous comit

Modified Paths:
--------------
    trunk/sources/editor/qetelementeditor.cpp
    trunk/sources/editor/qetelementeditor.h

Modified: trunk/sources/editor/qetelementeditor.cpp
===================================================================
--- trunk/sources/editor/qetelementeditor.cpp	2014-11-04 22:08:42 UTC (rev 3451)
+++ trunk/sources/editor/qetelementeditor.cpp	2014-11-04 22:23:27 UTC (rev 3452)
@@ -38,10 +38,11 @@
 #include "terminaleditor.h"
 #include "texteditor.h"
 #include "textfieldeditor.h"
-
 #include "partterminal.h"
 #include "parttextfield.h"
 
+#include "eseventaddline.h"
+
 #include <QMessageBox>
 /*
 	Nombre maximum de primitives affichees par la "liste des parties"
@@ -244,7 +245,8 @@
 	connect(edit_lower,      SIGNAL(triggered()), ce_scene, SLOT(slot_lower()));
 	connect(edit_backward,   SIGNAL(triggered()), ce_scene, SLOT(slot_sendBackward()));
 	connect(move,            SIGNAL(triggered()), ce_scene, SLOT(slot_move()));
-	connect(add_line,        SIGNAL(triggered()), ce_scene, SLOT(slot_addLine()));
+
+	connect(add_line,        SIGNAL(triggered()), this,     SLOT(addLine()));
 	connect(add_rectangle,   SIGNAL(triggered()), ce_scene, SLOT(slot_addRectangle()));
 	connect(add_ellipse,     SIGNAL(triggered()), ce_scene, SLOT(slot_addEllipse()));
 	connect(add_polygon,     SIGNAL(triggered()), ce_scene, SLOT(slot_addPolygon()));
@@ -252,6 +254,7 @@
 	connect(add_arc,         SIGNAL(triggered()), ce_scene, SLOT(slot_addArc()));
 	connect(add_terminal,    SIGNAL(triggered()), ce_scene, SLOT(slot_addTerminal()));
 	connect(add_textfield,   SIGNAL(triggered()), ce_scene, SLOT(slot_addTextField()));
+
 	connect(move,            SIGNAL(triggered()), this,     SLOT(slot_setRubberBandToView()));
 	connect(add_line,        SIGNAL(triggered()), this,     SLOT(slot_setNoDragToView()));
 	connect(add_rectangle,   SIGNAL(triggered()), this,     SLOT(slot_setNoDragToView()));
@@ -920,6 +923,14 @@
 }
 
 /**
+ * @brief QETElementEditor::addLine
+ * Set line creation interface to scene
+ */
+void QETElementEditor::addLine() {
+	ce_scene->setInterface(new ESEventAddLine(ce_scene));
+}
+
+/**
 	Lance l'assistant de creation d'un nouvel element.
 */
 void QETElementEditor::slot_new() {

Modified: trunk/sources/editor/qetelementeditor.h
===================================================================
--- trunk/sources/editor/qetelementeditor.h	2014-11-04 22:08:42 UTC (rev 3451)
+++ trunk/sources/editor/qetelementeditor.h	2014-11-04 22:23:27 UTC (rev 3452)
@@ -126,6 +126,8 @@
 	void copyAndPasteXml(const QDomDocument &);
 	
 	public slots:
+		void addLine();
+
 	void slot_new();
 	void slot_open();
 	void slot_openFile();


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/