-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Advanced digitizing tools (aka CAD tools) #1624
Conversation
22df49c
to
0719074
Compare
72806ce
to
6eb0e21
Compare
Thanks to intensive testing from @olivierdalang |
Nice. Going to build again and do some more testing. On Thu Oct 30 2014 at 12:35:29 AM Denis Rouzaud notifications@github.com
|
75038cd
to
f233001
Compare
44e0c41
to
9a4f29d
Compare
this integrates advanced digitizing tools aka CAD tools in QGIS application and basically a port of CADinput plugin * new class QgsMapToolAdvancedDigitizing shall be subsclassed if adv. digit. tools could be used in a map tool * QgsAdvancedDigitizingDockWidget handles the interaction with the user and also perform the constraints (filters events) * QgsAdvancedDigitizingCanvasItem paints construction lines on the canvas
} | ||
else | ||
{ | ||
// try to evalute expression |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@3nids might be worthwhile changing this part to use the new QgsExpression::evaluateToDouble method. You can see how it's used in QgsDoubleSpinBox::valueFromText. It's got full test coverage so should be safer to use than this duplicate code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@3nids it's probably worth mentioning that I plan on adding a QgsLineEdit widget which has built in support for evaluating expressions too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback.
Just a remark, I would like to have another method as evaluateToDouble which has const QString& text, bool &ok
as parameters since I only have the text from the line edit as input (so no fallback value).
What do you think?
Advanced digitizing tools (aka CAD tools)
This integrates CAD tools in QGIS application.
This is roughly the port of CADinput plugin to core, with some fixes and improvements.
A QEP has been issued: qgis/QGIS-Enhancement-Proposals#8