Bug 353858

Summary: Allow for macros (objects?) with no parents
Product: [Applications] kig Reporter: Maurizio Paolini <maurizio.paolini>
Component: generalAssignee: David E. Narvaez <david.narvaez>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 17.12

Description Maurizio Paolini 2015-10-13 13:52:56 UTC
In some circumstances (see example below) it would be useful to create a macro that only
creates a fixed object, i.e. does not depend on anything.

Example: to create instruments for the Poincare' Disk model of hyperbolic geometry it would
be natural to have a (user defined) macro that creates the unit disk...

I tried to manually edit the file containing a macro removing all <input ... /> tags (and
renumbering all the "id"'s), but the resulting macro does not work because kig still enters
"construct mode".
Comment 1 David E. Narvaez 2017-10-09 16:32:20 UTC
Git commit 772c1a17ab12527429e639df37bf6bddaa3f6820 by David E. Narváez.
Committed on 09/10/2017 at 14:01.
Pushed by narvaez into branch 'master'.

Support for Macros w/o Arguments (Objects)

This is a good idea for things like set squares, unit circles, etc.

M  +1    -1    modes/macro.cc
M  +1    -1    modes/macrowizard.cc
M  +3    -2    modes/popup/objectconstructoractionsprovider.cc

https://commits.kde.org/kig/772c1a17ab12527429e639df37bf6bddaa3f6820