Bug 353858 - Allow for macros (objects?) with no parents
Summary: Allow for macros (objects?) with no parents
Status: RESOLVED FIXED
Alias: None
Product: kig
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: David E. Narvaez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-13 13:52 UTC by Maurizio Paolini
Modified: 2017-10-09 16:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 17.12


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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