Commit graph

36 commits

Author SHA1 Message Date
Albert Astals Cid 3e3a504d3c Allow the renaming of bookmark "parent" items (i.e. file names)
Patch heavily inspired on a patch by Constantin Serban-Radoi <costashsrc@gmail.com>
2012-03-08 23:26:44 +01:00
Montel Laurent f9f65979f5 Normalize signals/slots 2011-07-31 21:22:04 +02:00
Laurent Montel a86bbe9053 Use QLatin1String
svn path=/trunk/KDE/kdegraphics/okular/; revision=1178207
2010-09-22 11:52:46 +00:00
Pino Toscano 1de3285d37 maintain the bookmark view sorted when adding new elements in the "selective" tree update
CCBUG: 205952

svn path=/trunk/KDE/kdegraphics/okular/; revision=1129505
2010-05-22 17:19:36 +00:00
Pino Toscano ea7480e2a5 SVN_SILENT unused parameters
svn path=/trunk/KDE/kdegraphics/okular/; revision=1072155
2010-01-09 13:57:09 +00:00
Pino Toscano 32ccf8593b add a context menu for the top-level items (representing the files), to allow to:
- open that documen (if it is not the current document already)
- remove all of its bookmarks

svn path=/trunk/KDE/kdegraphics/okular/; revision=1072135
2010-01-09 13:15:33 +00:00
Pino Toscano 4ee7112fe7 create a FileItem type of QTreeWidgetItem to handle better items representing the files
this should:
- reduce a bit the code duplication
- make the tooltip updated automatically on the number of items

svn path=/trunk/KDE/kdegraphics/okular/; revision=1072090
2010-01-09 12:06:44 +00:00
Pino Toscano d607996bce isolate the context menu for BookmarkItem in an own method
svn path=/trunk/KDE/kdegraphics/okular/; revision=1072058
2010-01-09 11:10:08 +00:00
Christian Ehrlicher 9e2f6edcf5 KUrl::path() -> KUrl::toLocalFile()
svn path=/trunk/KDE/kdegraphics/okular/; revision=1071713
2010-01-08 15:29:38 +00:00
Pino Toscano c7b7ce7b08 fix selectiveUrlUpdate()
- create new branches for documents different than the current one
- give the Url data role, so they can be identified again later
this makes it possible use it for any situation, even for updating non-existing branches for non-current documents

svn path=/trunk/KDE/kdegraphics/okular/; revision=1066321
2009-12-26 18:19:07 +00:00
Pino Toscano 983392095d sort the bookmarks in the side panel by file name first, and then by page number for each file
svn path=/trunk/KDE/kdegraphics/okular/; revision=971761
2009-05-23 13:03:45 +00:00
Pino Toscano 1080a193b9 - make sure to properly unregister all the observers before the Document gets destroyed
- keep ownership of the "export as" menu, and check before manipulating its child widgets: avoid crashes in case the part widget is destroyed before the pa
rt is
both the problems discovered and debugged with the precious help of Armin Berres, thanks!
CCMAIL: trigger@space-based.de

svn path=/trunk/KDE/kdegraphics/okular/; revision=863716
2008-09-22 22:58:32 +00:00
Pino Toscano 76cde2d2ae do not update more than the necessary
svn path=/trunk/KDE/kdegraphics/okular/; revision=793544
2008-04-04 10:29:06 +00:00
Pino Toscano 7f24f09cf3 No more need to rebuild the bookmark tree when changing document.
svn path=/trunk/KDE/kdegraphics/okular/; revision=793542
2008-04-04 10:20:57 +00:00
Pino Toscano b5a4b0edb5 move the search for the item for a specified url into an own method
svn path=/trunk/KDE/kdegraphics/okular/; revision=793540
2008-04-04 10:19:12 +00:00
Pino Toscano 39b730d371 Selectively update the tree branch of the document whose bookmarks were changed.
This way, there's no need to rebuild the tree.

svn path=/trunk/KDE/kdegraphics/okular/; revision=793532
2008-04-04 10:04:03 +00:00
Pino Toscano 5a4259d04f Dynamically get the tooltip of bookmark items.
CCMAIL: 160189

svn path=/trunk/KDE/kdegraphics/okular/; revision=792388
2008-03-31 23:03:50 +00:00
Pino Toscano 3004d81bd8 Add a tooltip for the bookmark name.
BUG: 158219

svn path=/trunk/KDE/kdegraphics/okular/; revision=779636
2008-02-26 18:00:35 +00:00
Jakob Petsovits 46eaee7f44 Icon renaming (code and icon changes - KDE/):
* bookmark -> bookmarks
* and finally, remove user-2 and konv-message[2] from Oxygen

svn path=/trunk/KDE/kdegraphics/okular/; revision=757019
2008-01-03 23:54:18 +00:00
Jakob Petsovits d9de20dfe7 Masses of icon fixes and adaptions, caused by the original
desire to rename "edit" to "object-edit". I changed my mind
in the middle of the process (but had lots of other changes
lying around already and really need to stop), so many
or all of the newly renamed "object-edit" icons might
vanish again.

But all in all, there are improvements in many places.

svn path=/trunk/KDE/kdegraphics/okular/; revision=744272
2007-12-03 06:27:42 +00:00
Pino Toscano 6d375af868 Move all the bookmarking stuff into the BookmarkManager, that now updates the Document observers automatically.
svn path=/trunk/KDE/kdegraphics/okular/; revision=730404
2007-10-28 18:31:33 +00:00
Pino Toscano b56ad8c3ae Change the DocumentObserver::notifySetup() to allow a better tuning of the different setup options (different layout for the pages, or different document).
svn path=/trunk/KDE/kdegraphics/okular/; revision=710227
2007-09-09 10:50:36 +00:00
Pino Toscano 17e6bdfcfd make the bookmark tree showing its contents with no document open;
use a kdelibs method to save 7+ lines

svn path=/trunk/KDE/kdegraphics/okular/; revision=705780
2007-08-28 15:02:39 +00:00
Pino Toscano dac41f84ad give the thumbnail list, the toc and the bookmark list a coherent look
svn path=/trunk/KDE/kdegraphics/okular/; revision=704267
2007-08-24 14:20:03 +00:00
Pino Toscano 5150419e81 adapt the debug stuff to the new kdebug way:
- make the output looking more or less like before (using nospace() or removing the spaces)
- remove endl and '\n' at the end of debug outputs
- fixing the QDebug operator<<'s around
- isolate the debug area number of the core into a separate header, and apply it instead of the numbers found in textpage.cpp

svn path=/trunk/KDE/kdegraphics/okular/; revision=694667
2007-07-31 10:19:48 +00:00
Pino Toscano e83f58d78d instead of emitting a signal, just use a simple action
svn path=/trunk/KDE/kdegraphics/okular/; revision=667074
2007-05-21 19:53:13 +00:00
Pino Toscano 3019616824 Bookmark list: add a tooltip for the top-level items with the number of bookmarks of the file.
svn path=/trunk/KDE/kdegraphics/okular/; revision=666669
2007-05-20 14:35:37 +00:00
Pino Toscano 4e2e675914 No need to show entries with no children.
svn path=/trunk/KDE/kdegraphics/okular/; revision=666450
2007-05-19 22:19:24 +00:00
Pino Toscano 28580b8625 Bookmarks list: make double click always open the bookmark, while its editing is possible using the edit key (usually F2) or the context menu.
svn path=/trunk/KDE/kdegraphics/okular/; revision=666149
2007-05-18 22:26:03 +00:00
Pino Toscano 0260a8f2d6 properly isolate rebuildTree() from the itemChanged() signals
svn path=/trunk/KDE/kdegraphics/okular/; revision=660102
2007-05-01 14:51:55 +00:00
Pino Toscano f8662cfa90 disconnect() the itemChanged() before rebuilding the tree and reconnect after that, otherwise we'll end up saving the bookmarks many times
svn path=/trunk/KDE/kdegraphics/okular/; revision=660050
2007-05-01 12:01:37 +00:00
Albert Astals Cid 0d47b62715 krazy include order issues
svn path=/trunk/KDE/kdegraphics/okular/; revision=655893
2007-04-19 18:30:20 +00:00
Pino Toscano 9ccf6d520d adapt the icon names to the icon naming spec
svn path=/trunk/playground/graphics/okular/; revision=640710
2007-03-08 21:41:46 +00:00
Pino Toscano 88779aa7d2 SVN_SILENT give the items IDs
svn path=/trunk/playground/graphics/okular/; revision=618144
2006-12-31 11:20:33 +00:00
Pino Toscano c248956942 better use HTML ref instead of ref, otherwise we'll have "encoding" problems
svn path=/trunk/playground/graphics/okular/; revision=616993
2006-12-27 17:02:45 +00:00
Pino Toscano 539921bdf6 Improving the bookmark capabilities of okular.
Adding a BookmarkManager class that takes care of handling them in a proper way.
Adding a new tab in the sidebar to manage them:
- shows all the bookmarks in all the documents, or just in the current document
- cliking on a bookmark will bring to that bookmark, loading the document if necessary
- editing a bookmark title is possible either using F2 or right click -> Rename
- right click -> Remove to remove a bookmark
The only way to add new bookmark for the moment is the "old" way, ie right click -> Add bookmark, and it's not possible add more than one bookmark per page (but the system does not limit that).
The whole system should not be too difficult to understand, I will check with our usability master Florian next days.

svn path=/trunk/playground/graphics/okular/; revision=616979
2006-12-27 16:04:49 +00:00