Any development going on?

Use this forum to ask questions about how to do things in the QCAD Community Edition.

Moderator: andrew

Any development going on?

Postby janif » Sat Jan 19, 2008 8:15 pm

Hi.

Is anyone doing any development on community edition?

I found a little bug (menu->arc->tangential was missing) that I fixed.

Here is the patch.

diff -ur BUILD/qcad-2.0.5.0-1-community.src/qcad/src/qc_applicationwindow.cpp qcad-2.0.5.0-1-community.src/qcad/src/qc_applicationwindow.cpp
--- BUILD/qcad-2.0.5.0-1-community.src/qcad/src/qc_applicationwindow.cpp 2008-01-16 22:04:55.000000000 +0200
+++ qcad-2.0.5.0-1-community.src/qcad/src/qc_applicationwindow.cpp 2008-01-16 21:56:16.000000000 +0200
@@ -750,6 +750,9 @@
action = actionFactory.createAction(RS2::ActionDrawArcParallel, actionHandler);
action->addTo(subMenu);
connect(this, SIGNAL(windowsChanged(bool)), action, SLOT(setEnabled(bool)));
+ action = actionFactory.createAction(RS2::ActionDrawArcTangential, actionHandler);
+ action->addTo(subMenu);
+ connect(this, SIGNAL(windowsChanged(bool)), action, SLOT(setEnabled(bool)));
menu->insertItem(tr("&Arc"), subMenu);
// Circles:
subMenu=new QPopupMenu(this);
diff -ur BUILD/qcad-2.0.5.0-1-community.src/qcadguiqt/src/qg_actionfactory.cpp qcad-2.0.5.0-1-community.src/qcadguiqt/src/qg_actionfactory.cpp
--- BUILD/qcad-2.0.5.0-1-community.src/qcadguiqt/src/qg_actionfactory.cpp 2005-11-22 13:52:22.000000000 +0200
+++ qcad-2.0.5.0-1-community.src/qcadguiqt/src/qg_actionfactory.cpp 2008-01-16 20:31:59.000000000 +0200
@@ -45,6 +45,7 @@
#include "rs_actiondimradial.h"
#include "rs_actiondrawarc.h"
#include "rs_actiondrawarc3p.h"
+#include "rs_actiondrawarctangential.h"
#include "rs_actiondrawcircle.h"
#include "rs_actiondrawcircle2p.h"
#include "rs_actiondrawcircle3p.h"
@@ -632,6 +633,12 @@
obj, SLOT(slotDrawArcParallel()));
break;

+ case RS2::ActionDrawArcTangential:
+ action = RS_ActionDrawArcTangential::createGUIAction(id, mw);
+ connect(action, SIGNAL(activated()),
+ obj, SLOT(slotDrawArcTangential()));
+ break;
+
case RS2::ActionDrawEllipseAxis:
action = RS_ActionDrawEllipseAxis::createGUIAction(id, mw);
connect(action, SIGNAL(activated()),
janif
Junior Member
 
Posts: 23
Joined: Sat Jan 19, 2008 7:28 pm

Return to QCAD Community 'How Do I' Questions

Who is online

Users browsing this forum: No registered users and 2 guests

cron