[Okular-devel] [PATCH] Factor out static methods for determining the event type and button

Radu Voicilas rvoicilas at gmail.com
Sat Aug 14 23:39:54 CEST 2010


This patch is mostly a refactoring of the same lines of code used throughout
multiple files to determine the event type and button type which maps back
to the ones AnnotatorEngine provides.
This should help when trying to implement some other states for
AnnotatorEngine::Button.

The files affected are the following:

-- okular/ui/annotationtools.h
-- okular/ui/annotationtools.cpp
-- okular/ui/pageviewannotator.cpp
-- okular/ui/presentationwidget.cpp

Thanks,
Radu.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/okular-devel/attachments/20100815/cf2c0d05/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: annotationtools.h.diff
Type: text/x-patch
Size: 637 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/okular-devel/attachments/20100815/cf2c0d05/attachment-0004.diff 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: annotationtools.cpp.diff
Type: text/x-patch
Size: 1349 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/okular-devel/attachments/20100815/cf2c0d05/attachment-0005.diff 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pageviewannotator.cpp.diff
Type: text/x-patch
Size: 1354 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/okular-devel/attachments/20100815/cf2c0d05/attachment-0006.diff 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: presentationwidget.cpp.diff
Type: text/x-patch
Size: 1322 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/okular-devel/attachments/20100815/cf2c0d05/attachment-0007.diff 


More information about the Okular-devel mailing list