Commit graph

271 commits

Author SHA1 Message Date
Albert Astals Cid 5c1b8df6f5 Fix typo in my fix of Jaydeep's texts 2012-09-19 22:44:38 +02:00
Albert Astals Cid 081559252f Remove a few return and add elses 2012-09-19 22:44:18 +02:00
Jaydeep Solanki 8765a06f52 Add warnings about --unique errors
BUGS: 306312
REVIEW: 106476
FIXED-IN: 4.10.0
2012-09-19 22:40:06 +02:00
Fabio D'Urso d22ad1c5f7 Do not show the Save changes prompt before the Open file dialog
Since 6d6a3bfce5, files are opened in a
new Shell instance and the current one is unaffected, therefore changes
to the current file do not get lost any more.
2012-09-08 19:42:17 +02:00
Jaydeep Solanki 6d6a3bfce5 Open a new Shell when opening a new file
BUGS: 166645
FIXED-IN: 4.10.0
REVIEW: 105965
GUI
2012-09-04 20:04:01 +02:00
Fabio D'Urso 77af86fddc Do not show the save changes prompt twice if the main window is closed
Call m_part->closeUrl with promptToSave=false in the Shell dtor, so that
the save changes prompt is not shown again (it's already shown because
of Shell::queryClose)
2012-08-22 13:20:32 +02:00
Fabio D'Urso 6d011cd2f0 Do not show the save changes prompt twice if the main window is closed
Call m_part->closeUrl with promptToSave=false in the Shell dtor, so that
the save changes prompt is not shown again (it's already shown because
of Shell::queryClose)
2012-08-22 00:42:47 +02:00
Albert Astals Cid 09067debaf Make --unique also raise the window
BUGS: 304526
FIXED-IN: 4.10.0
2012-08-22 00:41:31 +02:00
Albert Astals Cid 02b04e7e9b Make the openRecent just be open recent
Stop being too smart for own our good, try to merge open and openRecent actions in just one action
confuses the hell out of people, so let's KISS and just make open recent be open recent
BUGS: 302358
BUGS: 251335
FIXED-IN: 4.10.0
2012-08-21 00:35:41 +02:00
Albert Astals Cid aa042bd0f4 Close the url on shell destruction
Otherwise we end up in a busy loop on part deletion if there are pending requests
Should not happen but if this fixes it don't see the need to lose time investigating
why given the number of todo things
2012-08-18 18:38:28 +02:00
Albert Astals Cid d41f00e4bb Close the url on shell destruction
Otherwise we end up in a busy loop on part deletion if there are pending requests
Should not happen but if this fixes it don't see the need to lose time investigating
why given the number of todo things
2012-08-18 18:36:30 +02:00
Albert Astals Cid 035c32996e Do not delete the Part on the Shell destructor
The machinery in KParts/QObject is already doing it and this way we don't get the
KXMLGUIClient::~KXMLGUIClient: 0x15637528 deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes.
warning

I'm not sure if calling this a kdelibs bug yet or not though :D

BUGS: 261538
FIXED-IN: 4.9.1
2012-08-12 13:56:01 +02:00
Albert Astals Cid 4eee1f3479 Do not delete the Part on the Shell destructor
The machinery in KParts/QObject is already doing it and this way we don't get the
KXMLGUIClient::~KXMLGUIClient: 0x15637528 deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes.
warning

I'm not sure if calling this a kdelibs bug yet or not though :D

BUGS: 261538
FIXED-IN: 4.9.1
2012-08-12 13:50:41 +02:00
Fabio D'Urso ac695d448d Do not close the document in Shell::queryClose()
Because if we do, Shell::saveProperties will find it closed and won't
save the session correctly.

BUG: 300985
2012-06-05 00:49:03 +02:00
Fabio D'Urso e3f1c388de Ask "Save annotation changes?" if there are unsaved annotations that cannot be saved locally
This patch turns Okular into a ReadWritePart. Annotation editing is always
disabled if we're loaded as ReadOnlyPart, no matter the document type.

REVIEW: 105020
2012-05-23 23:43:44 +02:00
Aaron Seigo 63a0b4f3cb close the window currently viewing when selecting Quit, as per the KDE ui standards 2011-11-09 16:36:13 +01:00
Montel Laurent f9f65979f5 Normalize signals/slots 2011-07-31 21:22:04 +02:00
Albert Astals Cid 328efbc562 Do not crash if the part could not be found 2011-06-02 20:26:20 +01:00
David Palacio e45e7d8594 Make the file dialog accept directories if a generator offers to handle them.
svn path=/trunk/KDE/kdegraphics/okular/; revision=1230524
2011-05-05 20:52:46 +00:00
Aurélien Gâteau 7ba5a5e30a Revert "KStandardAction::showMenubar => showHideMenubar"
Shouldn't have pushed this, sorry.

svn path=/trunk/KDE/kdegraphics/okular/; revision=1196649
2010-11-13 20:12:35 +00:00
Aurélien Gâteau a60cff7901 KStandardAction::showMenubar => showHideMenubar
svn path=/trunk/KDE/kdegraphics/okular/; revision=1195401
2010-11-10 23:30:45 +00:00
Albert Astals Cid 31dadc6ea3 forwardport SVN commit 1185956 by aacid:
rembemer the values of m_menuBarWasShown and m_toolBarWasShown
Patch based in a patch by Victor Blazquez

svn path=/trunk/KDE/kdegraphics/okular/; revision=1185957
2010-10-14 19:22:55 +00:00
Pino Toscano a355d9fea4 isolate the argument -> url conversion code in an own function in the ShellUtils namespace
make the function able to be reused in unit tests (ie adding a function hook for the filename existance check)

svn path=/trunk/KDE/kdegraphics/okular/; revision=1032962
2009-10-08 23:48:04 +00:00
Pino Toscano d5dd8fce01 when we remove the file:/ from the argument, do the precent-encoding removal to avoid being percent-encoded more than needed
based on a patch by Albert, slightly changed + unit test by me
BUG: 207461

svn path=/trunk/KDE/kdegraphics/okular/; revision=1032944
2009-10-08 22:12:21 +00:00
Pino Toscano 30a1f789f3 reencode the url from the argument, 'file:/' at the start (for local files)
then, do few checks to better strip the correct "ref" from other '#' in the path
BUG: 195909

svn path=/trunk/KDE/kdegraphics/okular/; revision=992393
2009-07-06 18:35:39 +00:00
Pino Toscano 37403a031a Small rework on the system used to pass parameters of the document:
- on command line, properly read the URL ref ('#foobar' at the end), avoiding a KCmdLineArgs behaviour which encodes it as part of the file name
- pass what was specified as ref or the page (as specified with -p/--page) to the kpart
- make the okularpart take out the ref from the URL it opens and then:
  a) if it is a number, assume it is the destination page number
  b) otherwise, use that string as named destination

CCMAIL: okular-devel@kde.org

svn path=/trunk/KDE/kdegraphics/okular/; revision=969227
2009-05-17 18:08:43 +00:00
Christian Ehrlicher be51224a3c KUrl::path() -> KUrl::toLocalFile() - fixes
svn path=/trunk/KDE/kdegraphics/okular/; revision=941468
2009-03-19 17:12:27 +00:00
Pino Toscano 5c200e59cb KXmlGuiWindow is smart and tracks the visibility of toolbars and menubar, so just show/hide those directly instead of triggers their actions.
This should fix hopefully for all their toggling, also between various runs.

svn path=/trunk/KDE/kdegraphics/okular/; revision=913715
2009-01-19 19:13:32 +00:00
Pino Toscano 03e8a1bc7e Make the window size at first startup big as 3/4 of the available screen size.
This currently does not seem to work as it should, because the max size is really contrained to 2/3 of the screen size, as per Qt behaviour (or bug?)
Anyway, even 2/3 is better than before.

svn path=/trunk/KDE/kdegraphics/okular/; revision=912463
2009-01-17 13:39:21 +00:00
Albert Astals Cid e8804c18f6 Update m_showMenuBarAction on the proper time
BUG: 178020

svn path=/trunk/KDE/kdegraphics/okular/; revision=898742
2008-12-18 22:08:39 +00:00
Albert Astals Cid acf5922dd4 correctly restore m_showMenuBarAction status on startup
svn path=/trunk/KDE/kdegraphics/okular/; revision=894123
2008-12-07 23:33:15 +00:00
Pino Toscano e5b13e2d5b claim support for application/vnd.kde.okular-archive in the correct way, ie via .desktop files
thanks Albert for waking me up

svn path=/trunk/KDE/kdegraphics/okular/; revision=884982
2008-11-16 13:19:35 +00:00
Pino Toscano 938ed4acfa claim support of the new application/vnd.kde.okular-archive mimetype, and check it where appropriate
svn path=/trunk/KDE/kdegraphics/okular/; revision=884851
2008-11-16 01:17:48 +00:00
Laurent Montel dbd7fa12a9 Fix iterator
svn path=/trunk/KDE/kdegraphics/okular/; revision=882947
2008-11-11 18:24:06 +00:00
Pino Toscano 8583cda513 recent files: do not add '-' (aka stdin) when reading a document from it
svn path=/trunk/KDE/kdegraphics/okular/; revision=882131
2008-11-09 21:40:06 +00:00
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
Tobias Koenig 90140c1479 warnings--
svn path=/trunk/playground/graphics/okular/; revision=578892
2006-08-30 14:17:22 +00:00
Tobias Koenig 5bfa5435a8 URL -> url renaming to reimplement the correct KPart::openUrl()...
svn path=/trunk/playground/graphics/okular/; revision=578859
2006-08-30 13:02:48 +00:00
Albert Astals Cid 760fdbcadb makeItBuild
svn path=/trunk/playground/graphics/okular/; revision=578661
2006-08-29 21:09:55 +00:00
Pino Toscano 12edea34f8 adapt to the new snapshot
svn path=/trunk/playground/graphics/okular/; revision=558247
2006-07-04 23:09:39 +00:00
Pino Toscano 3ea724e75f less deprecated
svn path=/trunk/playground/graphics/okular/; revision=552878
2006-06-19 10:55:13 +00:00
Pino Toscano 854e1060e0 in case the url is a local file, start the filedialog from its directory
svn path=/trunk/playground/graphics/okular/; revision=552608
2006-06-18 14:06:21 +00:00
Pino Toscano 0e925faf02 KMimeType::mimeType can return an empty pointer, so better check for it
svn path=/trunk/playground/graphics/okular/; revision=552137
2006-06-16 17:48:40 +00:00
Albert Astals Cid eabbaeaead oKular is now okular
svn path=/branches/work/kde4/playground/graphics/okular/; revision=550782
2006-06-12 18:25:18 +00:00
Albert Astals Cid 703ed15db3 port to dbus, at least compiles, but i'm not sure it'll work
svn path=/branches/work/kde4/playground/graphics/okular/; revision=548432
2006-06-05 14:55:36 +00:00
Dirk Mueller 8ab527f601 fix memory leak (I love copy&paste code) (CID 2231)
svn path=/branches/work/kde4/playground/graphics/okular/; revision=544253
2006-05-24 08:57:40 +00:00
Pino Toscano 7049feb8de port to the new kdelibs api; mainly ktrader usage and URL -> Url
svn path=/branches/work/kde4/playground/graphics/okular/; revision=543576
2006-05-22 14:02:24 +00:00
Pino Toscano ec385777e6 IO_ReadOnly -> QIODevice::ReadOnly
svn path=/branches/work/kde4/playground/graphics/okular/; revision=541290
2006-05-15 21:31:53 +00:00
Albert Astals Cid c2da771144 compile
svn path=/branches/work/kde4/playground/graphics/okular/; revision=538754
2006-05-08 19:26:45 +00:00
Pino Toscano fc51c9b24e activate a missing connection; less deprecated functions
svn path=/branches/work/kde4/playground/graphics/okular/; revision=538064
2006-05-06 17:12:13 +00:00
Albert Astals Cid 4e1c6cfbb8 fordwardport r535156
svn path=/branches/work/kde4/playground/graphics/okular/; revision=535163
2006-04-28 18:08:04 +00:00
Pino Toscano 622cea4f92 put a toolbutton in the toolbar instead of the so loooong combobox, and fix the connection. still crashes, though
svn path=/branches/work/kde4/playground/graphics/okular/; revision=533654
2006-04-25 12:37:27 +00:00
Pino Toscano e3994658b6 make it compile with the new snapshot
port to the new i18n api

svn path=/branches/work/kde4/playground/graphics/okular/; revision=528345
2006-04-10 19:50:00 +00:00
Pino Toscano 8d25788703 less qt3_support
svn path=/branches/work/kde4/playground/graphics/okular/; revision=525545
2006-04-02 12:36:55 +00:00
Pino Toscano 55bc51a6d0 less qt3_support
svn path=/branches/work/kde4/playground/graphics/okular/; revision=525131
2006-03-31 21:51:45 +00:00
Pino Toscano 58a391e7a2 improve a bit
svn path=/branches/work/kde4/playground/graphics/okular/; revision=524837
2006-03-31 11:22:29 +00:00
Pino Toscano 22c45feb7e less qt3_support
svn path=/branches/work/kde4/playground/graphics/okular/; revision=524154
2006-03-29 20:43:48 +00:00
Pino Toscano 4bd3b60d6c less qt3_support
svn path=/branches/work/kde4/playground/graphics/okular/; revision=524083
2006-03-29 17:16:46 +00:00
Albert Astals Cid cbb8e80154 some more compile changes, now let's see basketball
svn path=/branches/work/kde4/playground/graphics/okular/; revision=521882
2006-03-23 19:02:55 +00:00
Albert Astals Cid b261381531 shell builds
svn path=/branches/work/kde4/playground/graphics/okular/; revision=521181
2006-03-21 20:03:08 +00:00
Albert Astals Cid ae1278fec1 branch port 493109
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=493111
2006-01-01 16:00:37 +00:00
Piotr Szymanski d09fd28b89 - MERGE KPDF 3.5 CHANGES
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=477586
2005-11-04 11:59:51 +00:00
Albert Astals Cid 3a09624824 some more kpdf -> oKular
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=471466
2005-10-17 19:16:31 +00:00
Piotr Szymanski 8b5a0e4746 - dont know what it does, but hey its a change and it works
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=445398
2005-08-11 03:41:30 +00:00
Piotr Szymanski 36ab5c8965 - make generators plugins by:
* moving all xpdf stuff from core and part to inside generator_pdf
   * adding abstract KPDFText class and KPDFTextEntity to hold either
     glyph, or word or textline
- support for importing PS files as pdf like on annots branch
- synced with annots branch
- abstract text layer with search for words in different lines
- added RegularArea<NormalizedShape,Shape> template class
  which inherits QValueList<NormalizedShape*> and is used
  to hold regular areas of given shape (finite collections of the shape)
- loading of relevant generators via ktrader for given mimetype
- the deliverables 1 and 2 of my SoC proposition are delivered
  next: 1. fix one spotted regression and 2. code ghostview backend


svn path=/trunk/playground/graphics/oKular/kpdf/; revision=434883
2005-07-15 18:20:57 +00:00
Piotr Szymanski f5bbf89218 - support for taking getting a list of suported mimelsit and nice generation of it
based on what generators provide via ktrader, includes caching the mimetype list
- handling of compressed files added too
- both fucntions basedo kviewshell's version that Wilfried Huss suggested, although with 
  significant remodelling by myself, still i see no problem on adding relevant copyrights
  to this file for the original functions' author just tell me how he/she is

svn path=/trunk/playground/graphics/oKular/kpdf/; revision=434859
2005-07-15 17:17:13 +00:00
Enrico Ros e7fadb9ab5 merged patch_088 (tinyurl.com/8t5ec)
svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=428593
2005-06-24 16:43:45 +00:00
Enrico Ros cdec4298f9 applying patch_058,061,063,073
svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=424916
2005-06-13 12:15:41 +00:00
Enrico Ros 93c1d3845d Implemented history (implementation is inside Document. actions (2) are in
Part). Implemented 'history (xpdf's LinkAction) links'. History depth is
 100 steps by default (this is enough for sure, clicking 100 times on a
 button is not an easy task :-).

Minor issues (removed half TODOs in code, all FIXMEs are already removed):
Invoke mailer on 'mailto:' links inst instead of konqueror.
Actions cleanup: disable actions like 'print', 'preview', 'save to..', etc
 when there isn't an active document. Added history actions to the toolbar
 in place of the 'prev_page' and 'next_page' ones. Fixed open+open_recent
 action tooltip and behavior.
Move definition and implementation of PagePainter class to ui/pagepainter
 from core/page.
Valgrinded and leakchecked (2 memory leaks spotted and fixed (missing
 contents deletion in KPDFGeneratorThread and missing deletion of
 PixmapRequests on cancel in Document::requestPixmaps())).

svn path=/trunk/kdegraphics/kpdf/; revision=382960
2005-01-27 17:31:07 +00:00
Enrico Ros e65c7058c3 Added the MiniBar class, a layouted widget that displays current page
number, the total number of pages and a little grahical 'progress'
 indicator. Moved 'next page' and 'prev page' buttons from the main toolbar
 to the MiniBar. Minibar lets you edit the page number, click or wheel on
 progress, go to next/prev page, show the gotoPage dialog.
Added rmb popup when clicking on thumbnails. When clicking, the
 ThumbnailList only emits the same signal emitted by PageView so the same
 context menu is displayed.
Misc fixes: [MEM] enabled allocated pages raising in queue when displayed
 again, [ThumbnailList] enabled PageUp/PageDown.

svn path=/trunk/kdegraphics/kpdf/; revision=382597
2005-01-26 10:42:07 +00:00
Enrico Ros 3ba7c53676 Fix preloading. It does real good now.
Fix cache deallocator. Hard avoids swapping memory or filling it up to the
limit (allocated pages are referenced in an internal add/remove FIFO).
Merged open and open_recent buttons as many users requested.
Using viewmag icon for find-as-you-type popup.
Disabled debug output. Updated todo with the roadmap to release.
- Need to audit the memory code and choose good default policies now.

svn path=/trunk/kdegraphics/kpdf/; revision=380494
2005-01-20 17:33:05 +00:00
Albert Astals Cid 50a8450174 More reorganization, needed so that the binary name does not clashes with an "old" directory
svn path=/trunk/kdegraphics/kpdf/; revision=375331
2005-01-03 21:59:57 +00:00
Renamed from shell.cpp (Browse further)