[rkward-devel] paginate onscreen graphics device
Thomas Friedrichsmeier
thomas.friedrichsmeier at ruhr-uni-bochum.de
Sun Jun 20 19:46:28 UTC 2010
On Sunday 20 June 2010, Prasenjit Kapat wrote:
> OK. I see the problem now. I have two questions: Is it possible for
> rkward to know
>
> 1. when/if the current device is altered? For example, suppose abline
> () is called after a plot() call, does rkward know the device has been
> modified? My guess is No.
Correct. I don't see any way to do that.
> 2. when/if the graphics window is closed? I can handle dev.off () and
> graphics.off() but what happens if the close button on the window is
> clicked? Or Window > Close (Ctl+W) is clicked? Do rlward still have a
> chance to do _something_ (I've an idea of what to do) with existing
> graphics?
This will need a bit of hacking (the window should visually disappear at once,
but the actual closing must not happen before the "something" has finished),
but yes, it's definitely possible to insert some action when the window is
closed. Let me know what you need done, and I'll add it, soon.
> Nice!! I've done exactly that and have a rudimentary code based on
> Deepayan's rp () which is working! But yet to commit to svn. I've to
> figure out where/what to add/modify in the C++ codes to add additional
> GUI elements to the menu of the graphics window. May be you can help
> here.
Cool! See svn rev. 2887 (Note that you need to do "make install" to see the
new menu items). Feel free to adjust all naming, etc. Of course this is very
rudimentary, so far. Esp. we should add a mechanism to disable the "next" plot
action when already at the last plot, and vice versa for the "previous"
action. But this should be enough to play with for a start.
Regards
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20100620/d66c5ecb/attachment.sig>
More information about the Rkward-devel
mailing list