8 Dec
2005
8 Dec
'05
5:49 p.m.
Jeremy Y. Meng wrote:
BTW, what is the easiest way to disable menu entries (make them gray)? Could anyone point me to the related source files please?
Answer is probably best expressed in an example:
#include <verbs.h>
Inkscape::Verb * myverb = Inkscape::Verb::getbyid("my.verb.id"); myverb->sensitive(false);
If you only want one document you can do:
myverb->sensitive(mydoc, false);
All the code is in verbs.[h|cpp]
--Ted