Hi *
attached patch makes it possible to use the kross-app
delivered with kdelibs
to run Krita-scripts from the commandline. That's not only
useful for
propably automated batch-processing or other things where
someone does like
to have things automated rather then to click somewhere, but
also for testing
new scripts.
The patch does mainly introduce some if()-checks for the
statusbar and the
mainwindow since both are NULL while there exist a
KisDoc2+KisView2 if run
from the commandline. Also it was needed to switch
KisDoc2::createViewInstance from protected to public since
it's used at the
scripting plugin to create a KisView2-instance from within
an empty KisDoc2
instance.
It's not perfect yet since on shutdown (after save is done),
it still crashes
at krita/image/tiles/kis_tilemanager.cc:249 but at least
it's a start + the
attached sample script actualy produces what it should
produce
So, ok to commit?
--
Sebastian Sauer aka dipesh[sebsauer]
http://www.dipe.or
g/public_key.asc
Fingerprint: 8F1E 219B 16E6 4EC7 29CC F408 E193 65E2 9134
2221
Coder in http://www.koffice.org
&& http://www.kmldonkey.org
_______________________________________________
koffice-devel mailing list
koffice-devel kde.org
h
ttps://mail.kde.org/mailman/listinfo/koffice-devel
|