Agenda
- Discuss Glade tutorial.
- Start a simple GUI in Glade for curie.
Tasks completed
Glade tutorial
- Tutorial code https://github.com/zmughal/learning-gtk/tree/master/charter
- If you are following this tutorial, note that there are changes that have occurred in GTK+3.0 since it was written. For example, the "expose-event" signal is now the "draw" signal: https://developer.gnome.org/gtk3/stable/ch25s02.html#id-1.6.3.4.11.
- Look up callback signature:
- Tutorial code https://github.com/zmughal/learning-gtk/tree/master/charter
Discuss the display of supplemental information along with document
- Knowledge Graph https://en.wikipedia.org/wiki/Knowledge_Graph: Google's infoboxes which show up on search.
- SPARQL: query langauge for semantic web data.
- Utopia http://utopiadocs.com/: a PDF reader that shows social information and retrieves from sources such as the Protein Data Bank.
- Reflect: browser plugin for chemistry identifier lookup
Design a GUI for displaying images of the document
- PR (and progress images)
- Examples
- Anjuta: IDE with docking. Uses GDL http://anjuta.org/.
- Example of simple PDF viewer using Poppler https://yassernour.wordpress.com/2010/04/04/how-hard-to-build-a-pdf-viewer/.
- Display a single image
First attempt: draw a green colour on the whole drawing area:
Second attempt: draw an image read from a file on the drawing area:
Tasks in progress
- PDF rendering using MuPDF library
- Install MuPDF
http://mupdf.com/downloads/
mkdir build; cd build wget 'http://mupdf.com/downloads/mupdf-1.8-source.tar.gz' tar xvvzf mupdf-1.8-source.tar.gz cd mupdf-1.8-source make HAVE_GLFW=no make HAVE_GLFW=no install
- Make a note of the OpenGL viewer flag at .
- Install MuPDF
http://mupdf.com/downloads/
Tasks remaining
Look into MuPDF API.
- http://mupdf.com/docs/overview
- http://mupdf.com/docs/
- See issue .
Refactor GUI code.