author | Sebastian Harl <sh@tokkee.org> | |
Fri, 23 Dec 2011 18:36:42 +0000 (19:36 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Fri, 23 Dec 2011 18:36:42 +0000 (19:36 +0100) | ||
commit | 76191e35f78ba40274db2148c9fc99e901ee31c3 | |
tree | 1c04914519463c0188477b7935905b04837c4954 | tree | snapshot |
parent | 9d01c552a27303c8261298c89604bc00a8eadab7 | commit | diff |
tpdfv-ctl: Added controller module used to manage multiple GtkTPDFV widgets.
The controller includes one "main" and an arbitrary number of "slave" widgets.
Each slave widget has a factor and an offset assigned to it. Those numbers
define how the current page of the slave relates to that of the master. Thus,
it might be used, for example, to specify a slave widget used to display a
preview of the next page.
The controller provides a subset of the functions provided by the GtkTPDFV
widget and forwards the calls to the "main" and "slave" widgets according to
the slave settings.
To ease integration, those functions either accept a controller object or a
GtkTPDFV widget as an argument and, in the latter case, directly forward the
call to the specified widget only.
The controller includes one "main" and an arbitrary number of "slave" widgets.
Each slave widget has a factor and an offset assigned to it. Those numbers
define how the current page of the slave relates to that of the master. Thus,
it might be used, for example, to specify a slave widget used to display a
preview of the next page.
The controller provides a subset of the functions provided by the GtkTPDFV
widget and forwards the calls to the "main" and "slave" widgets according to
the slave settings.
To ease integration, those functions either accept a controller object or a
GtkTPDFV widget as an argument and, in the latter case, directly forward the
call to the specified widget only.
src/Makefile.am | diff | blob | history | |
src/gtk-tpdfv.h | diff | blob | history | |
src/tpdfv-ctl.c | [new file with mode: 0644] | blob |
src/tpdfv-ctl.h | [new file with mode: 0644] | blob |