Commit graph

86 commits

Author SHA1 Message Date
Pino Toscano f108284296 Remove the "old" way of configuring the toolbars and just use the XMLGUI facilities.
This makes the toolbar editing safer.

BUGS: 168528, 171186

svn path=/trunk/KDE/kdegraphics/okular/; revision=870502
2008-10-12 16:28:57 +00:00
Nick Shaforostoff 50f9c25712 bring order back
Rafael:
new order contradicts with API docs:
http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKXmlGuiWindow.html#e5ac6ec22a61a4d854600c0f5a41e8d4
if this is an exception (i.e. both docs and okular's calling order are fine),
then please add appropriate comment to the code.

also, I ask you to look into another problem: okular doesn't restore maximization on start.


CCMAIL:pino@kde.org
CCMAIL:ereslibre@kde.org


svn path=/trunk/KDE/kdegraphics/okular/; revision=868604
2008-10-06 18:34:28 +00:00
Nick Shaforostoff 601835fffb -call createGUI and setupGUI in proper order (see KXmlGuiWindow::setupGUI API doc)
-don't call setAutoSaveSettings() as it is called implicitly by kxmlgui system

the problem i was shooting at still doesn't solved though: maximization ain't restored properly.
it is saved correctly, but it seems that in restoreWindowSize calling KWindowSystem::setState doesn't do the job.
obviously, this must have smth to do with kparts framework.

CCMAIL:pino@kde.org



svn path=/trunk/KDE/kdegraphics/okular/; revision=868586
2008-10-06 17:39:30 +00:00
Pino Toscano bc966cb0f5 Add the --unique command line behaviour ala KDVI.
The "unique" instance is registered as "org.kde.okular".

BUG: 170151

svn path=/trunk/KDE/kdegraphics/okular/; revision=863380
2008-09-21 22:52:02 +00:00
Rafael Fernández López 269ef9b51a setupGUI goes before createGUI. Actions weren't properly updated (and for instance, the configure shortcuts menu entry wasn't shown, even with Keys
flag passed to setupGUI)

svn path=/trunk/KDE/kdegraphics/okular/; revision=855382
2008-08-31 16:09:34 +00:00
Rafael Fernández López 3bf585defb The save flag will try to load the state of the mainwindow when setupGUI is called. We always
need to call to createGUI before that (if no Create flag is passed to setupGUI, that isn't in
this case).

CCMAIL: pino@kde.org

svn path=/trunk/KDE/kdegraphics/okular/; revision=853433
2008-08-27 18:05:57 +00:00
Luboš Luňák a0e0a60258 Remove usage of QWidget::show[FullScreen|Maximized|Minimized|Normal](),
they do more then just change the state of the window and all these usage
cases were wrong (that is, all their usage).
For changing the state, use something like
window->setWindowState( window->windowState() | Qt::WindowFullScreen ); // set
window->setWindowState( window->windowState() & ~Qt::WindowFullScreen ); // reset
or simply use the new KToggleFullScreenAction::setFullScreen() helper.


svn path=/trunk/KDE/kdegraphics/okular/; revision=784333
2008-03-10 23:02:01 +00:00
Pino Toscano a0a3c239e2 Standardize our naming: Okular.
CCMAIL: okular-devel@kde.org

svn path=/trunk/KDE/kdegraphics/okular/; revision=763904
2008-01-20 15:35:19 +00:00
Stephan Binner c06deaf9fc i18n style guide fixes, the capitalization rules are explained on
http://developer.kde.org/documentation/standards/kde/style/basics/labels.html

svn path=/trunk/KDE/kdegraphics/okular/; revision=757596
2008-01-05 13:41:54 +00:00
Pino Toscano 4a71603ab6 take the list of the supported mimetypes from the kpart .desktop, as they contain more mimetypes (including the compressed versions)
[the compressed versions are not in the "generator" .desktop files because okular can deal natively with any gzip- or bzip2- compressed version of the supported document types]

svn path=/trunk/KDE/kdegraphics/okular/; revision=755661
2008-01-02 00:37:51 +00:00
Pino Toscano 2cd01094a7 remove the 'lib' prefix from the okularpart
svn path=/trunk/KDE/kdegraphics/okular/; revision=744170
2007-12-02 21:02: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 b66872679e change strings to be like used everywhere else
svn path=/trunk/KDE/kdegraphics/okular/; revision=731837
2007-11-02 00:32:22 +00:00
Pino Toscano 8c060fb816 as starting directory in the open document dialog, use the path of the current document, not the one of the first file open
svn path=/trunk/KDE/kdegraphics/okular/; revision=714820
2007-09-20 17:30:41 +00:00
Pino Toscano eaf827005b set the tooltip just once
svn path=/trunk/KDE/kdegraphics/okular/; revision=711306
2007-09-12 00:09:35 +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 9bbcbace43 in the remote case the shell cannot determine the mimetypes the okularpart can read, just filter any file instead of exiting with an error
svn path=/trunk/KDE/kdegraphics/okular/; revision=694038
2007-07-29 21:36:02 +00:00
Chusslove Illich 968760cb6c Auto-conversion to new KCmdLineArgs/KAboutData/KComponentData API (trunk/KDE). Watch for the few remaining QString to QByteArray assignments that will not compile without extra specification (typically needs .toLocal8Bit() or .toUtf8()).
svn path=/trunk/KDE/kdegraphics/okular/; revision=682260
2007-07-02 08:52:55 +00:00
Albert Astals Cid 7c92c4a497 Adapt to r676616
Start the part in dummy mode if one of the args we get passed is "Print/Preview"

svn path=/trunk/KDE/kdegraphics/okular/; revision=676617
2007-06-17 09:45:59 +00:00
Pino Toscano 4bc728d950 better check, in case of session restoring
svn path=/trunk/KDE/kdegraphics/okular/; revision=672273
2007-06-06 15:47:58 +00:00
Pino Toscano 2a1d70ab13 revert r672263 in okular, and do the cleanup in the proper place, otherwise we lose all the command line arguments
svn path=/trunk/KDE/kdegraphics/okular/; revision=672269
2007-06-06 15:33:17 +00:00
Albert Astals Cid b883cbcfa6 The part starts in dummy mode (very few ui) by default
Can be deactivated using unsetDummyMode(), that is the first thing the okular shell does
that's useful because for example for print preview you don't want to embed all the okular ui to do the preview, you just want to see the ps

svn path=/trunk/KDE/kdegraphics/okular/; revision=671928
2007-06-05 20:49:00 +00:00
Pino Toscano a258885372 use the document interface, if available, to get the supported mimetypes
otherwise use an internal fileFormats() (polished and more correct now)

svn path=/trunk/KDE/kdegraphics/okular/; revision=668029
2007-05-24 20:41:29 +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 ff25e151c5 new kdelibs API
svn path=/trunk/playground/graphics/okular/; revision=649300
2007-04-02 13:50:40 +00:00
David Faure 0c1b5314e9 Use standard mimetype names from shared-mime-info
svn path=/trunk/playground/graphics/okular/; revision=644959
2007-03-21 11:39:20 +00:00
Pino Toscano 6d16cfd1f6 krazy issues
svn path=/trunk/playground/graphics/okular/; revision=641195
2007-03-10 13:51:47 +00:00
Pino Toscano a33baf4982 connect to the right signal
svn path=/trunk/playground/graphics/okular/; revision=640973
2007-03-09 16:17:45 +00:00
Pino Toscano 290ae2a264 really new KMainWindow API
svn path=/trunk/playground/graphics/okular/; revision=635975
2007-02-21 15:12:57 +00:00
Tobias Koenig fd73c59b97 Adapt to new KMainWindow API
svn path=/trunk/playground/graphics/okular/; revision=635671
2007-02-20 15:48:18 +00:00
Tobias Koenig e950a357d9 Make it compile with current SVN trunk
svn path=/trunk/playground/graphics/okular/; revision=635664
2007-02-20 15:25:05 +00:00
Pino Toscano c40ccf4808 a simple plain list is enough
svn path=/trunk/playground/graphics/okular/; revision=631312
2007-02-07 17:25:51 +00:00
Albert Astals Cid 4586139282 Adapt to kdelibs changes
svn path=/trunk/playground/graphics/okular/; revision=628342
2007-01-29 20:18:39 +00:00
Pino Toscano ad036bf27a SVN_SILENT forgot this
svn path=/trunk/playground/graphics/okular/; revision=628219
2007-01-29 15:03:22 +00:00
Pino Toscano 5a81f6f920 - make the toolbar recent file action working again as kpdf
- move #include to the cpp
- kpdf -> okular

svn path=/trunk/playground/graphics/okular/; revision=628216
2007-01-29 14:55:40 +00:00
Leandro Emanuel López 1f478d57fb The boolean variable is not needed
svn path=/trunk/playground/graphics/okular/; revision=625256
2007-01-19 17:08:08 +00:00
Leandro Emanuel López 26f4618ae3 Moved the handleCompressed method to part
svn path=/trunk/playground/graphics/okular/; revision=622784
2007-01-12 23:54:26 +00:00
Laurent Montel 34edbef72d Port to new api
svn path=/trunk/playground/graphics/okular/; revision=621624
2007-01-09 11:02:04 +00:00
Albert Astals Cid 9194097545 Fix strange behaviour reported by dimsuz on #kpdf regarding the rightclick event when on zoom mode
svn path=/trunk/playground/graphics/okular/; revision=619948
2007-01-04 21:06:44 +00:00
Pino Toscano 20661ff61e Add an interface (implemented by the Part) for controlling the really basic document viewer functionalities. This (along with a small refactor in the okular shell) gives the user the possibility to start okular with:
-p, --page <page> : to select the startup page
      --presentation : to start directly in presentation mode
implementing also KPDF wishes #134115 and #137905.

svn path=/trunk/playground/graphics/okular/; revision=619681
2007-01-04 00:20:50 +00:00
Pino Toscano bd14706edb leak a bit less memory
svn path=/trunk/playground/graphics/okular/; revision=619558
2007-01-03 17:57:03 +00:00
Leandro Emanuel López 5f60f757a7 Let's use KTemporaryFile instead of K3TempFile
svn path=/trunk/playground/graphics/okular/; revision=618017
2006-12-30 20:16:09 +00:00
Laurent Montel 06b79cdf27 Compile++
svn path=/trunk/playground/graphics/okular/; revision=614897
2006-12-19 12:23:43 +00:00
Laurent Montel 79b01fa27d Fix i18n api
svn path=/trunk/playground/graphics/okular/; revision=611278
2006-12-07 14:01:19 +00:00
Pino Toscano afa2e5a999 iterator -> const_iterator
svn path=/trunk/playground/graphics/okular/; revision=607842
2006-11-25 22:32:13 +00:00
Albert Astals Cid 9099fbecf7 Some krazy fixes
svn path=/trunk/playground/graphics/okular/; revision=605992
2006-11-18 21:36:56 +00:00
Pino Toscano e7bbe08957 trying to port to KTemporaryFile where possible, and still rely on K3TempFile where it needs more work
svn path=/trunk/playground/graphics/okular/; revision=596083
2006-10-16 17:57:44 +00:00
Tobias Koenig df7d144c10 Moved all classes in core/ into the 'Okular' namespace and removed
nearly all references to kpdf (knewstuff still missing).

svn path=/trunk/playground/graphics/okular/; revision=586993
2006-09-21 08:45:36 +00:00
Albert Astals Cid 4e04b301f1 Almost foget to fordwardport r582561
Fix bug 133507 that prevented the correct restoring of the document viewport on session restore for remote documents

svn path=/trunk/playground/graphics/okular/; revision=584932
2006-09-15 21:08:48 +00:00
Tobias Koenig 4c923f00ac Don't connect twice to the selectUrl() signal, because the second time
the passed KUrl object was deleted by the slot of the first signal in the meantime.

svn path=/trunk/playground/graphics/okular/; revision=582173
2006-09-08 13:09:09 +00:00