[Okular-devel] [Bug 163569] wish okular to handle 'point and click' events (textedit-URIs)

Wilbert Berendsen wbsoft at xs4all.nl
Thu Jan 1 20:56:33 CET 2009


http://bugs.kde.org/show_bug.cgi?id=163569


Wilbert Berendsen wbsoft xs4all nl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wbsoft at xs4all.nl




--- Comment #5 from Wilbert Berendsen <wbsoft xs4all nl>  2009-01-01 20:56:28 ---
Unaware of this bug (but right now stumbling upon this code in
core/document.cpp), I created a solution for the original problem outside of
Okular, by creating a textedit.protocol file defining a helper protocol for
textedit:// urls (as those created by LilyPond), and a small helper
application, ktexteditservice, that is called to act upon the textedit url.

These protocol file and helper application are part of my lilypond-kde4
package, that lives in SVN on http://lilykde.googlecode.com/.

My ktexteditservice has a more advanced approach: it reads the user's
preferences to get the preferred editor for LilyPond files (the text/x-lilypond
mimetype). How the preferred editor is started with the correct arguments is
determined by a (user editable) config file, ktexteditservicerc. Many known
editors are already included in the config file.

It can also call directly via DBus into running applications to open a .ly
document and set the cursor position, if those applications set a special
environment variable. My LilyPond editor Frescobaldi uses this approach (see
below).

So it is maybe better to handle textedit:// urls outside of Okular, so that
they can be handled more advanced and more configurable and they would also
work in other PDF viewers that use KDE to resolve clickable links. (My
ktexteditservice works in Acrobat too.)

Please have a look to my code. I also wrote an editor for LilyPond files that
embeds Okular to preview with point and click support. The editor is called
Frescobaldi and has also its code in googlecode's svn at
http://lilykde.googlecode.com/ and its own website at
http://www.frescobaldi.org/ .

I look forward to discuss this further (just subscribed to Okular-devel).
Many thanks,
Wilbert Berendsen


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Okular-devel mailing list