On Mon, Oct 28, 2019 at 09:35:30AM -0600, Jason Crain wrote: > On Mon, Oct 28, 2019 at 09:37:46AM -0400, Stan Srednyak via evince-list wrote: > > I would like to have a plugin for evince that upon a scroll of a document, > > would save ( in a specified file) the time of the scroll event and the new > > position of the scroll bar ( for the given document). > > > > How do I write such a thing? > > Evince doesn't have that kind of plugin so this would require code > changes to evince, possibly in EvWindow or EvView. Evince does have > backends for different document formats, which are loaded via a plugin > system, but the kind of plugin you are talking about is different.
One of the reasons I sent the mouse click positions as time stamped datagrams was to develop a general set of plain "c" code to hack around interfaces for hacks like this. It is also a good base for remote attachment. You might be able to work out a reasonable scheme to just broadcast stuff and receive commands to invoke some methods- I need to reload the pages for example- and then the control logic can go anywhere. While maybe "void*" is not the most OO data type, you can pass pointers and strings and whatever in any agreed upon way :) Much of this stuff should be just calling existing functions and can be quite separate although you need some hook to get the event info to send. > _______________________________________________ > evince-list mailing list > [email protected] > https://mail.gnome.org/mailman/listinfo/evince-list -- mike marchywka 306 charles cox canton GA 30115 USA, Earth [email protected] 404-788-1216 ORCID: 0000-0001-9237-455X _______________________________________________ evince-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/evince-list
