search open tabs list

Asked by =JeffH

Hi Adam & All,

I'm happy I discovered qpdfview and so far it's been working well for me.

One thing that'd be really useful is to have a textual search box as part of the Tabs menu such that one can search thru the open tabs. A minimal implementation would be to just case-insensitively match what the user types with the presently open tab title strings (or whatever Qt calls the displayed text), and reduce the displayed items to just those that match the string.

thanks,

=JeffH

Question information

Language:
English Edit question
Status:
Answered
For:
qpdfview Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Adam Reichold (adamreichold) said :
#1

Hello =JeffH,

I like the idea you describe as a minimal implementation, yet I don't think I want to go further in qpdfview. Please try out building from source or a package that contains at least trunk revision 1833 which should contain a new setting for searchable menus (on the interface tab of the settings dialog) which will add a search-as-you-type mechanism to the tabs and bookmarks menus.

You can then open the menu and type a search text which will be displayed in a tool tip above the menu and should case-insensitively limit the visible tab menu items. The backspace and delete keys will remove the character last typed, non-printable characters are passed to the underlying menu so that keyboard navigation should still be available.

Best regards, Adam.

Revision history for this message
=JeffH (mobileuser) said :
#2

Hi Adam, thanks for implementing that idea so quickly. My day job has been pretty all-consuming, but in between the cracks I've tried to compile qpdfview_trunk-r1834 and have run up against this..

> make
/usr/lib/x86_64-linux-gnu/qt4/bin/qmake /media/MUSIC/u2/local/src/qpdfview/qpdfview_trunk-r1834/trunk/pdf-plugin.pro -o Makefile.pdf-plugin
Project ERROR: Package poppler-qt4 not found
make: *** [Makefile.pdf-plugin] Error 2

..on ubuntu 14.04.

I'm sorta stymied cuz I appear to have the goods (info below), but don't expect this forum here to necessarily be the appropriate place to get help on resolving such a build environment config issue.

thanks, =JefH

> ls -l /usr/lib/x86_64-linux-gnu/libpoppler-qt4*
lrwxrwxrwx 1 root root 45 Feb 10 15:40 /usr/lib/x86_64-linux-gnu/libpoppler-qt4.so -> /usr/lib/x86_64-linux-gnu/libpoppler-qt4.so.4
lrwxrwxrwx 1 root root 23 Mar 28 2013 /usr/lib/x86_64-linux-gnu/libpoppler-qt4.so.3 -> libpoppler-qt4.so.3.7.0
-rw-r--r-- 1 root root 353400 Mar 28 2013 /usr/lib/x86_64-linux-gnu/libpoppler-qt4.so.3.7.0
lrwxrwxrwx 1 root root 23 Jan 21 05:37 /usr/lib/x86_64-linux-gnu/libpoppler-qt4.so.4 -> libpoppler-qt4.so.4.3.0
-rw-r--r-- 1 root root 358320 Jan 21 05:38 /usr/lib/x86_64-linux-gnu/libpoppler-qt4.so.4.3.0

> dpkg -l | grep popp
ii libpoppler-cpp0:amd64 0.26.5-0ubuntu2pdf2htmlEX1 amd64 PDF rendering library (CPP shared library)
ii libpoppler-glib8:amd64 0.26.5-0ubuntu2pdf2htmlEX1 amd64 PDF rendering library (GLib-based shared library)
ii libpoppler-qt4-3:amd64 0.18.4-1ubuntu3.1 amd64 PDF rendering library (Qt 4 based shared library)
ii libpoppler-qt4-4:amd64 0.24.5-2ubuntu4.2 amd64 PDF rendering library (Qt 4 based shared library)
ii libpoppler19:amd64 0.18.4-1ubuntu3.1 amd64 PDF rendering library
ii libpoppler44:amd64 0.24.5-2ubuntu4.2 amd64 PDF rendering library
ii libpoppler46:amd64 0.26.5-0ubuntu2pdf2htmlEX1 amd64 PDF rendering library
ii poppler-utils 0.26.5-0ubuntu2pdf2htmlEX1 amd64 PDF utilities (based on Poppler)
ii python-poppler 0.12.1-8.1 amd64 Poppler Python bindings

Revision history for this message
Adam Reichold (adamreichold) said :
#3

Hello =JeffH,

Debian and Ubuntu, like a lot of binary distributions, ship only the runtime libraries as part of their packages, but not the headers and other supplementary files necessary to build programs using those libraries. So for example for Poppler's Qt4 bindings, you need the package "libpoppler-qt4-dev" which contains the headers and a pkg-config manifest.

You can also install all dependencies automatically "apt-get build-dep qpdfview". But you could actually have a simpler time just using the dailydebs built for Ubuntu automatically available at [1].

Best regards, Adam.

[1] https://code.launchpad.net/~adamreichold/+archive/ubuntu/qpdfview-dailydeb

Can you help with this problem?

Provide an answer of your own, or ask =JeffH for more information if necessary.

To post a message you must log in.