Commit graph

277 commits

Author SHA1 Message Date
Pino Toscano 76ed5e18e5 enable the "copy" and "select all" actions only when there's a document open
temporary "steal" the usage of the "format-justify-(left|right)" icons as table-of-contents icon in the sidebar

svn path=/trunk/KDE/kdegraphics/okular/; revision=736339
2007-11-14 00:04:07 +00:00
Pino Toscano 2e26d12531 icon renaming:
- thumbnail-show -> view-preview

svn path=/trunk/KDE/kdegraphics/okular/; revision=735048
2007-11-10 18:49:57 +00:00
Craig Drummond 4863ab4e2d Fix parentless dialogs
svn path=/trunk/KDE/kdegraphics/okular/; revision=734688
2007-11-09 16:16:05 +00:00
Pino Toscano 6ae58b8250 properly pass a directory
svn path=/trunk/KDE/kdegraphics/okular/; revision=732148
2007-11-02 23:00:38 +00:00
Pino Toscano 1cd4ae0a3e When reloading, properly remember the state of the sidebar.
CCBUG: 151130

svn path=/trunk/KDE/kdegraphics/okular/; revision=731721
2007-11-01 17:52:47 +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
Oswald Buddenhagen 77801a028d KConfig* API overhaul. only cosmetics, so don't panic.
KConfigBase:
- remove separator argument from list entry reading/writing functions
- introduce {read,write}XdgListEntry()
- kill readPathListEntry(), add readPathEntry() overload
  instead. the default value is not optional any more, as it defines the
  return type. this is consistent with the readEntry() functions.
- rename clean() => markAsClean(), remove rollback()
- rename ConfigState => AccessMode, getConfigState() => accessMode()
- rename {entry,group}IsImmutable() => is{Entry,Group}Immutable()
- remove NLS alias to Localized

KConfig:
- remove setGroup() & group()
- reshuffle OpenFlag enum, introduce NoCascade for symmetry
- remove setExtraConfigFiles() alias to addConfigSources()

KConfigGroup:
- inherit KConfigBase::deleteGroup() overloads
- make convertToQVariant() private, it will probably change somehow

- KConfig & KConfigGroup: deprecate entryMap()
- remove bogus declarations: KConfigGroup::setReadDefaults(),
  KConfig::readEntryUntranslated()
- apidox
- reshuffle the declarations in the headers


svn path=/trunk/KDE/kdegraphics/okular/; revision=728852
2007-10-24 13:08:37 +00:00
Oswald Buddenhagen a99df4c192 follow path entry changes - auto-port, reviewed, not tested
svn path=/branches/work/kconfig_new_take3/KDE/kdegraphics/okular/; revision=728208
2007-10-22 18:21:51 +00:00
Pino Toscano cd62fb8d6a icon renamings:
- find-next -> edit-find-next
- find-previous -> edit-find-previous

svn path=/trunk/KDE/kdegraphics/okular/; revision=727831
2007-10-21 21:40:12 +00:00
Pino Toscano b975359158 make print preview working again
(of course, just for few document types, as QPrinter sucks and kdeprint is too good)

svn path=/trunk/KDE/kdegraphics/okular/; revision=726764
2007-10-18 20:25:33 +00:00
John Layt 070285e039 Port from KPrinter to QPrinter, remove dependency on KDE4_KDEPRINT_LIBS.
*** Note this is not a complete port, most of the generators use the 
printFiles method which Qt 4.3 does not support, these have simply
been commented out until we find a solution.  At least it removes
the dependency so we can remove from kdelibs.

svn path=/trunk/KDE/kdegraphics/okular/; revision=725660
2007-10-15 23:01:27 +00:00
Pino Toscano 8ff3d1d705 more use of standard actions
svn path=/trunk/KDE/kdegraphics/okular/; revision=722702
2007-10-07 23:09:08 +00:00
Pino Toscano 0b26a91f1f use the standard action names
svn path=/trunk/KDE/kdegraphics/okular/; revision=722687
2007-10-07 22:21:13 +00:00
David Faure 1a463cb358 Merged revisions 720689-721023 via svnmerge from
svn+ssh://dfaure@svn.kde.org/home/kde/trunk/KDE
+ resolved conflicts, fixed compilation in a number of places.

svn path=/branches/work/kde4_jobflags/KDE/kdegraphics/okular/; revision=721065
2007-10-04 13:23:29 +00:00
David Faure 56eecebe3f Ported
svn path=/branches/work/kde4_jobflags/KDE/kdegraphics/okular/; revision=720904
2007-10-03 23:53:38 +00:00
Pino Toscano 4a429ecd7b when shutting down, close the current document
svn path=/trunk/KDE/kdegraphics/okular/; revision=720716
2007-10-03 14:59:57 +00:00
Pino Toscano 175cc2bce6 use the same about data for both the part and the shell, so:
- the part uses the same app share for its specific stuff
- no manual need to load another catalog ("okular") in the part

svn path=/trunk/KDE/kdegraphics/okular/; revision=720296
2007-10-02 22:42:59 +00:00
Pino Toscano 02d6dab204 adapt to the new icon names
svn path=/trunk/KDE/kdegraphics/okular/; revision=720180
2007-10-02 16:23:28 +00:00
Pino Toscano 424ebb655d use better icons for a couple of sections in the preferences dialog, and in the File menu
svn path=/trunk/KDE/kdegraphics/okular/; revision=719820
2007-10-01 22:49:47 +00:00
Pino Toscano 49166c17aa simplify a bit, and assign the temporary file name only if the whole extraction procedure succeeded
svn path=/trunk/KDE/kdegraphics/okular/; revision=719677
2007-10-01 17:06:42 +00:00
Pino Toscano 211ab15c2e use KAboutData by value, and remove an old static method of the part
svn path=/trunk/KDE/kdegraphics/okular/; revision=719241
2007-09-30 16:52:27 +00:00
Pino Toscano cee21b54b2 no need for a "checked state" for the show navigation panel menu action
svn path=/trunk/KDE/kdegraphics/okular/; revision=715110
2007-09-21 08:47:58 +00:00
Pino Toscano 81f852094b use the 'attach' icon for the embedded files menu action
svn path=/trunk/KDE/kdegraphics/okular/; revision=712981
2007-09-15 22:17:34 +00:00
Pino Toscano 54c2e91df6 fix logic
svn path=/trunk/KDE/kdegraphics/okular/; revision=712857
2007-09-15 14:14:33 +00:00
Pino Toscano f72692799e look for the old kpdf stuff only if the "new okular" stuff is not found
svn path=/trunk/KDE/kdegraphics/okular/; revision=710703
2007-09-10 17:20:58 +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 eb27c7f823 use the new icon Nuno kindly made for the presentation mode
svn path=/trunk/KDE/kdegraphics/okular/; revision=709542
2007-09-07 19:14:03 +00:00
Pino Toscano a2b2db70eb SVN_SILENT old code
svn path=/trunk/KDE/kdegraphics/okular/; revision=709398
2007-09-07 12:46:16 +00:00
Pino Toscano 0cf7f95f3a Disable the minibar for now, let's see how okular looks like w/o it.
svn path=/trunk/KDE/kdegraphics/okular/; revision=709374
2007-09-07 10:59:28 +00:00
Pino Toscano 0517d30bfc Remove the "Show Search Bar" option, mostly unuseful.
svn path=/trunk/KDE/kdegraphics/okular/; revision=709361
2007-09-07 10:31:33 +00:00
Pino Toscano 962a134d2b Properly enable/disable the whole "Export As" menu, not just the "Export to Text" action.
svn path=/trunk/KDE/kdegraphics/okular/; revision=709336
2007-09-07 09:09:39 +00:00
Pino Toscano 969bc7b908 Ctrl+A to select all the text in the document.
Implements KPDF bug #109346.

svn path=/trunk/KDE/kdegraphics/okular/; revision=708124
2007-09-03 21:35:05 +00:00
Pino Toscano 37870961b7 disable by default the "review" and "bookmarks" sidebar items, and re-enable them only if we're not in dummy mode
svn path=/trunk/KDE/kdegraphics/okular/; revision=708029
2007-09-03 17:25:52 +00:00
Pino Toscano d96bb9e9a4 find the print preview "placeholder" correctly
svn path=/trunk/KDE/kdegraphics/okular/; revision=706138
2007-08-29 14:25:44 +00:00
Pino Toscano 218b630460 port to the new library loading stuff
svn path=/trunk/KDE/kdegraphics/okular/; revision=706132
2007-08-29 14:16:06 +00:00
Pino Toscano cb8d37821c properly disable the "about backend" action at empty window startup
(and remove some unused includes)

svn path=/trunk/KDE/kdegraphics/okular/; revision=706086
2007-08-29 11:24:01 +00:00
Pino Toscano a8d747745f Cleanup a bit the GuiInterface, and making it work.
Instead of manually requestion actions and other stuff, we just make the interface as gui client, requesting and integrating it in the part gui.
Also, rename the Generator's componentData() to ownComponentData() to avoid clashing with KXMLGUIClient.

svn path=/trunk/KDE/kdegraphics/okular/; revision=705933
2007-08-28 23:17:00 +00:00
Albert Astals Cid e147022703 fordwardport fix for 148026
svn path=/trunk/KDE/kdegraphics/okular/; revision=704883
2007-08-26 14:40:29 +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 223c0ba6a0 fix the TOC icon in RtL mode
svn path=/trunk/KDE/kdegraphics/okular/; revision=704022
2007-08-23 23:01:46 +00:00
Pino Toscano 1b0d81fbd4 (finally!) rename the okular configuration to okularpartrc, and make okular copy the old kpdf config if found (to preserve all the user settings)
svn path=/trunk/KDE/kdegraphics/okular/; revision=703108
2007-08-21 23:18:17 +00:00
Pino Toscano 7e4b15542d Usability work on the toolbar:
- shorten the toolbar labels of the Previous/Next Page actions, and put them into the toolbar by default instead of the Back/Forward [history control]
- shorten the toolbar labels of the tool buttons
- remove the Open/Open recent button from the shell toolbar

svn path=/trunk/KDE/kdegraphics/okular/; revision=702549
2007-08-20 20:25:22 +00:00
Pino Toscano b704eefcc8 don't use the deprecated version of KIO::NetAccess::exists()
svn path=/trunk/KDE/kdegraphics/okular/; revision=701293
2007-08-17 23:16:55 +00:00
Arto Hytönen e8ad05552b kdegraphics QString::null clean-up.
svn path=/trunk/KDE/kdegraphics/okular/; revision=701202
2007-08-17 15:52:06 +00:00
Arto Hytönen 6f00373e1b QString::null fixes and hiding from Krazy.
svn path=/trunk/KDE/kdegraphics/okular/; revision=700833
2007-08-16 15:28:21 +00:00
Pino Toscano 4fa5e016c6 port to the new kpart api:
- first use the mimetype from the OpenUrlArguments, or fallback on a manual mimetype detection
- get rid of the manual discover of the mimetype using the signal from the file transfer job - this is done in the base readOnlyPart, now

svn path=/branches/work/kparts_urlargs_split/kdegraphics/okular/; revision=698689
2007-08-10 18:10:44 +00:00
Pino Toscano 17ad0df66c New sidebar for okular.
The old sidebar had many problems and limitations, usability issues as well.
This new sidebar tries to simplify and solve many of these issues (like the navigability with the keyboard), with a better looking.
Of course, some glitches are still there, but easily solvable.

svn path=/trunk/KDE/kdegraphics/okular/; revision=697060
2007-08-06 17:24:10 +00:00
Pino Toscano 23016eacd4 Change/set the efault shortcuts for some actions:
- the tools now have Ctrl+1/2/3/4 for Normal, Zoom, Select, TextSelect modes resp.
- the Show/hide navigation panel has F7 now, Ctrl+L conflicts with Konqueror

svn path=/trunk/KDE/kdegraphics/okular/; revision=696405
2007-08-04 17:42:06 +00:00
Pino Toscano 09bae8bbc7 set the right position for the new viewport when requesting to open a page from command line
svn path=/trunk/KDE/kdegraphics/okular/; revision=694537
2007-07-31 00:04:09 +00:00
Pino Toscano b43e10e788 KUrl can not be used in the D-Bus API, so change openDocument and currentDocument to use QString, making them work again.
svn path=/trunk/KDE/kdegraphics/okular/; revision=693927
2007-07-29 14:36:49 +00:00