|
From: Ethan M. <merritt@u.washington.edu> - 2009-02-05 23:55:58
|
On Thursday 05 February 2009 15:47:17 Petr Mikulik wrote: > > > > Automatic varible > > > > GPVAL_TERM_WINDOWID > > > > could be filled after each "plot". > > > > > > > > How can this be done? Could x11.trm read it? Or should this be obtained via > > > > gp_exec_event? > > > > > > I think that it is best done by gnuplot_x11 at the time the plot window > > > is first opened. The information can be sent back to gnuplot proper by > > > calling gp_exec_event(). > > > > > > I do not know exactly what call into the X libraries would need to be > > > added in gplt_x11.c, but there must be one. On the receiving end, it > > > just needs another case statement in mouse.c (do_event). That part is > > > trivial. > > I've put a preliminary version of the patch here: > > https://sourceforge.net/tracker/index.php?func=detail&aid=2570385&group_id=2055&atid=302055 > [ 2570385 ] GPVAL_X11_WINDOWID I will have a look. > It needs some further work: > > 1. The number 12345 in gplt_x11.c should be replaced by the actual window > id. This is a task for an X11 guru. > > 2. The same for wxt terminal. I think we should defer work on wxt, since Thimothée is in the process of making that a separate process. When he does, the event will come in via the same pathway as the x11 event. > 3. New global variable current_x11_windowid should be placed in an .h + .c > file. Which one? That will probably not work. There can be multiple x11 windows open at the same time, so there is no "current" one. Since you can associate a window number with each one, however, we might be able to do: set term x11 5 print TERM_X11_WINDOW_5_ID > 4. Should it be called GPVAL_TERM_WINDOWID or GPVAL_X11_WINDOWID ? The wxt > terminal can run not only under X11, but e.g. under windows as well. Is > there something like window id? TERM_something > > --- > PM > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code to > build responsive, highly engaging applications that combine the power of local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta > -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle 98195-7742 |