Skip to content
This repository has been archived by the owner on Sep 11, 2021. It is now read-only.

Implemented mouse wheel handling and fixed click handling #22

Open
wants to merge 37 commits into
base: master
Choose a base branch
from

Conversation

mikerofone
Copy link

The next time, my commit messages will not contain file names such that they are properly displayed in GitHub. Lesson learned ;)

mikerofone and others added 30 commits January 30, 2011 15:44
  ignoring GDK_2/3BUTTON_PRESS events to avoid clicks being handled multiple times
src/classes/window/presentation.vala
src/classes/window/presenter.vala
    added functions to handle mousewheel scrolling: UP/LEFT for previous slide, DOWN/RIGHT for next
This implementation should be considered a hack for now. It has to be
refactored in the future. For example if you start your presentation timer
early by pressing one of the navigation keys during a countdown is running you
are not able to go back into the countdown mode by pressing POS1 for example.
Last slide, one of the first 10, etc.
Removed deprecated call to poppler_page_render_to_pixbuf and substituted
with poppler_page_render.

First time I work with vala and poppler. As far as I can see (and test)
it works, but I cannot guarantee it for all the cases ;-)
Solved with a small hack, I could not get int? options to work...
Conflicts:
	src/pdf_presenter_console.vala
Due to pdf_link trying to get a slide past the limit
Missing:
- Storing the edited notes in a file
- Controlling mouse events
Note: I think there is a bug in vala/glib/whatever and it always adds a
new line at the end of the notes file. Probably is not critical, but
after many edits you should check your notes file!
From just # to ###
Not sure if this is a bug or if I'm missing some concept. However it now
seems to work.
Conflicts:
	src/classes/presentation_controller.vala
	src/classes/window/presenter.vala
	src/pdf_presenter_console.vala

Also automatically save the notes on (clean) exit
githubnemo pushed a commit to githubnemo/Pdf-Presenter-Console that referenced this pull request Dec 23, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants