Commit graph

443 commits

Author SHA1 Message Date
l10n daemon script f6d4b45650 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2015-09-10 05:23:01 +00:00
l10n daemon script 2669a2f354 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2015-09-08 05:32:59 +00:00
l10n daemon script 2b1cf29728 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2015-09-06 04:39:34 +00:00
l10n daemon script 6a2b5fc7b8 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2015-09-04 03:59:45 +00:00
l10n daemon script 79fa933c73 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2015-09-03 04:18:26 +00:00
l10n daemon script ef99f17efb SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2015-09-02 03:58:51 +00:00
l10n daemon script 8703484e63 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2015-09-01 05:00:47 +00:00
l10n daemon script 7be388fa0f SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2015-08-31 04:47:52 +00:00
Albert Astals Cid ab8944dcce Add Comment
BUGS: 351973
2015-08-30 16:43:39 +02:00
Alex Richardson ab700b2453 Restore the URL parsing behaviour in from before the KF5 port
This fixes shelltest

REVIEW: 124738
2015-08-28 19:03:59 +02:00
Montel Laurent e03e6f6863 Use Q_DECL_OVERRIDE 2015-08-04 15:22:41 +02:00
David Faure d5bad89a51 Fix crash on startup when okularpart can't be found 2015-08-03 15:30:05 +02:00
David Faure ba28b64ab6 Fix crash on startup when okularpart can't be found 2015-08-03 12:58:30 +02:00
Ivan Čukić c46b08c23f Make KActivities a required dependency
Our goal is better integration with Plasma and other KDE components.

We have made a conscious decision to reduce our code a bit by removing
the legacy #ifdefs. That way we do not have to support a build
configuration which is going to be used by just a tiny minority of our
users, and one that we are not terribly interested in. Without
KActivities, there is for example no support for recording and listing
of recent documents, PDF sharing etc etc, and we honestly believe that
the majority of our audience wants these features.

REVIEW: 123249
2015-05-05 00:19:28 +02:00
Montel Laurent 2708e9ce6d Merge remote-tracking branch 'origin/master' into frameworks 2015-04-01 19:46:00 +02:00
Albert Astals Cid 72ca504ce1 Merge remote-tracking branch 'origin/Applications/15.04' 2015-03-30 20:06:17 +02:00
Ronnie Thomas 0877dfd5f8 Fix error messags on cmdline arguments
The --print and the --page arguments were showing wrong error messages. This patch fixes it.

REVIEW: 123163
2015-03-30 20:05:40 +02:00
Montel Laurent ffbf0b82f6 Rename icons 2015-03-17 08:52:39 +01:00
Montel Laurent d780d15ea9 Merge remote-tracking branch 'origin/master' into frameworks
Conflicts:
	autotests/mainshelltest.cpp
	part.cpp
	part.h
	shell/shell.cpp
2015-03-17 08:47:52 +01:00
Saheb Preet Singh 1eafe4feb1 New shortcut to resize window to fit page
FIXED-IN: KDE Applications 15.08
BUGS: 326844
REVIEW: 115283
2015-03-17 00:20:11 +01:00
Jonathan Doman 1cfb007b63 Fix session restore/save with multiple tabs
BUGS: 335852
REVIEW: 122570
2015-03-16 23:55:57 +01:00
Montel Laurent 5e984303a4 Use new KDE_ macro 2015-03-04 07:52:20 +01:00
Montel Laurent 90b2f6c62c Fix install icons 2015-03-01 10:57:10 +01:00
Montel Laurent c4f224f1e8 Port to new connect api 2015-01-30 22:06:53 +01:00
Lukáš Tinkl fd6a35486e port KUrl -> QUrl 2015-01-29 20:55:57 +01:00
l10n daemon script 9a3672b255 SVN_SILENT made messages (.desktop file) 2014-12-26 04:18:45 +00:00
l10n daemon script e6ef3cb64b SVN_SILENT made messages (.desktop file) 2014-12-25 04:05:24 +00:00
Montel Laurent 5da7c5f77d port to qCDebug. Autogenerate export headers 2014-10-27 22:35:06 +01:00
Montel Laurent 603d8b19c9 Fix includes 2014-10-19 15:17:37 +02:00
Montel Laurent 16f13c04d2 kdelibs4support-- 2014-10-17 23:30:54 +02:00
Jeremy Whiting 83299b9532 Remove %i from .desktop files which added --icon to exec line.
Since Okular no longer uses KApplication it no longer handles --icon parameters.
2014-10-07 16:41:59 -06:00
Montel Laurent 4ec78fa5df Use modern macro 2014-10-07 13:16:16 +02:00
Montel Laurent 57adb81a03 Remove not necessary include moc 2014-10-05 07:28:09 +02:00
Lukáš Tinkl 48300404cb replace deprecated QAction::setShortcut with KStandardShortcut 2014-10-04 21:48:32 +02:00
Montel Laurent 47a278b5fd Merge remote-tracking branch 'origin/KDE/4.14' into frameworks
Conflicts:
	shell/shell.cpp
2014-10-02 13:44:32 +02:00
Montel Laurent 5b88e93891 reverse dns desktop 2014-10-02 09:21:18 +02:00
Sergio Martins 9ff5451f1f Merge branch 'KDE/4.14' into master 2014-10-01 23:57:42 +01:00
Sergio Martins cb4d52fb4c Fix infinit loop if component isn't found.
Shell's CTOR will fail if Okular component isn't found, leading
to i never being incremented.
2014-10-01 23:56:00 +01:00
Frederik Gladhorn 1e01a5cfc9 Use KSharedConfig::openConfig instead of KGlobal::config 2014-09-17 21:15:46 +02:00
Frederik Gladhorn f7d1dd9312 Remove -caption %c from .desktop files
BUGS: 338264
2014-09-17 20:16:49 +02:00
Frederik Gladhorn 50e3c1478a Use qApp instead of kapp 2014-09-16 23:22:30 +02:00
David Faure d98b4d9200 Make it possible to open URLs on the command-line again
by removing much cruft and using the shiny new QUrl::fromUserInput(2 args),
but since that requires Qt 5.4, also include a copy here if Qt is too "old".

Reviewed-By: Albert
Makes-Happy: Lukas
2014-09-11 18:26:10 +02:00
Frederik Gladhorn e28dbc6c00 Port to QMime
compressedMimeFor now already does the inheritance check, so another
check was removed.
2014-09-11 16:32:43 +02:00
Lukáš Tinkl 33f6862a94 fix command line parsing and DBUS registration in effect
Okular still doesn't start tho when e.g. clicking on a PDF
in Dolphin and fails to open a file from command line
(QUrl porting bug)
2014-09-11 11:26:16 +02:00
Frederik Gladhorn 374592256a Use tabBar()->hide() instead of setTabBarHidden 2014-09-09 17:49:10 +02:00
Frederik Gladhorn b79e706e56 Merge remote-tracking branch 'origin/master' into frameworks
Conflicts:
	generators/dvi/generator_dvi.cpp
	generators/ooo/generator_ooo.cpp
	part.cpp
	shell/main.cpp
	shell/shell.cpp
	shell/shell.h
	shell/shellutils.h
	tests/CMakeLists.txt
	ui/propertiesdialog.cpp
2014-08-14 13:35:43 +02:00
Rohan Garg bd36521c36 Port away from KUrl, pretify headers 2014-08-13 23:03:23 +02:00
Rohan Garg d5b9a2e078 Port Shell away from KUrl to QUrl
REVIEWED-BY: Albert Astals Cid <aacid@kde.org>
2014-08-13 23:03:23 +02:00
Vishesh Handa 46cf7e46a5 Port away from KUrl::List 2014-08-13 13:07:44 +02:00
Vishesh Handa e038950f50 KIcon -> QIcon 2014-08-13 11:54:49 +02:00
Frederik Gladhorn 9398df0a06 Welcome back Okular::Part 2014-08-10 22:01:13 +02:00
Frederik Gladhorn ac15a7075e More QUrl porting 2014-08-10 20:36:41 +02:00
Frederik Gladhorn 99db5d0157 Fix rc install dir 2014-08-10 19:27:47 +02:00
Lukáš Tinkl b32306463c look for KF5 versions of libkscreen and kactivities 2014-08-10 17:40:24 +02:00
Albert Astals Cid 20d687cac5 I need it down here for cmake to suceed 2014-08-09 19:45:50 +02:00
Frederik Gladhorn 5ec298c10c Fix linking 2014-08-09 13:47:38 +02:00
Frederik Gladhorn 1703f2df7c Port KAboutData 2014-08-09 13:44:29 +02:00
Frederik Gladhorn c7e003d7bc Port to QCommandLineParser 2014-08-09 13:27:12 +02:00
Frederik Gladhorn 272e8eb556 Use QKeySequence instead of KStandardShortcut 2014-08-09 12:57:56 +02:00
Frederik Gladhorn 49c6f33356 KDialog::setCaption removed 2014-08-09 12:47:17 +02:00
Frederik Gladhorn cebdf978ce Fix linking to KF5 libs 2014-08-09 12:46:36 +02:00
Frederik Gladhorn 4cf3df32e3 Fix includes and KQAction 2014-08-09 00:21:04 +02:00
Albert Astals Cid c5c3be9a1a Do not allow more than one path if using -page, -presentation or -print
Only in mater since it adds new strings
2014-08-08 23:34:24 +02:00
Albert Astals Cid 125ee3178c Don't you hate it when you forget files? 2014-08-08 22:39:53 +02:00
Albert Astals Cid 61c830cb7a Pass the command line options properly when using tabs or unique instances
Use a QString to serialize the command line options other than urls to open so it can be easily passed around to every place that opens a new shell or tab or overrides the content in a unique instance.

BUGS: 334100
FIXED-IN: 4.14.0
REVIEW: 119595
2014-08-08 22:35:53 +02:00
Frederik Gladhorn 93918b1ec8 Basic cmake kf5 porting 2014-08-07 09:59:07 +02:00
Albert Astals Cid 50f2019f8b Pass absolute urls
Patch pased on patch by Jonathan Doman based in a suggstion of willemsonke@planet.nl

BUGS: 334510
REVIEW: 119550
FIXED-IN: 4.14.0
2014-08-03 02:04:56 +02:00
Jonathan Doman 375c72dc66 Make tabs rearrangeable
BUGS: 334018
FIXED-IN: 4.14.0
REVIEW: 118685
2014-07-31 00:15:21 +02:00
Albert Astals Cid 49dc7dcb59 Indent 2014-04-10 00:01:39 +02:00
Albert Astals Cid cd02dd6d3c Minor changes
Make the receivers be the ones that check for empty, not the senders
2014-04-09 23:34:18 +02:00
Jonathan Doman 89fd56c23b Launch documents from external sources in new tabs
FIXED-IN: 4.13.0
BUGS: 331872
BUGS: 332238
REVIEW: 116700
2014-04-09 23:29:58 +02:00
Jonathan Doman ecf1f28290 Set tabWidget's documentMode
REVIEW: 115636
2014-02-13 23:25:27 +01:00
Albert Astals Cid 7681cdf004 Move the open new files in tabs setting to configure dialog
Also make it non enabled by default for now

GUI
BUGS: 155515
2014-02-08 12:15:15 +01:00
Jonathan Doman 0a982319f4 Tabbed interface
GUI
BUGS: 155515
REVIEW: 110914
2014-02-08 11:44:26 +01:00
l10n daemon script d773e626a9 SVN_SILENT made messages (.desktop file) 2013-08-04 04:26:31 +00:00
l10n daemon script 4e84194bef SVN_SILENT made messages (.desktop file) 2013-07-24 04:05:35 +00:00
l10n daemon script 2e847d2f81 SVN_SILENT made messages (.desktop file) 2013-07-01 03:53:16 +00:00
David Faure 155312269b Remove erroneous double-quotes around %c in Exec line 2013-05-03 13:25:44 +02:00
Albert Astals Cid 04c3b836ff Merge remote-tracking branch 'origin/KDE/4.10'
Conflicts:
	generators/spectre/okularApplication_ghostview.desktop
2013-03-14 23:09:57 +01:00
Albert Astals Cid 3f3f82afa1 Fix my email address 2013-03-14 23:09:07 +01:00
Tomáš Poledný 5ab30aae15 Open print dialog from command line
BUGS: 252462
REVIEW: 109096
FIXED-IN: 4.11.0
GUI
2013-03-11 22:52:25 +01:00
Tomáš Poledný 618e320a77 Add command line argument noraise
This path add new command line argument noraise. Window will not be raised with argument noraise.

I tried:
okular
okular -noraise
okular -noraise file_exist.pdf
okular -noraise file_not_exist
okular https://bugs.freedesktop.org/attachment.cgi?id=46889 --noraise
okular https://nonexisturl --noraise
okular -unique -noraise file_exist.pdf
okular -unique -noraise file_exist.pdf && okular -unique file_exist2.pdf
okular -unique -noraise file_exist.pdf file_exist2.pdf
okular -unique file.pdf && okular -unique -noraise file2.pdf
okular -unique -noraise file.pdf && okular -unique file2.pdf

BUGS: 315538
REVIEW: 109363
FIXED-IN: 4.11.0
2013-03-09 16:35:35 +01:00
Script Kiddy a034e086e5 SVN_SILENT made messages (.desktop file) 2013-02-08 08:27:14 +01:00
Script Kiddy be8aa28dc9 SVN_SILENT made messages (.desktop file) 2013-01-31 16:28:53 +01:00
Script Kiddy 472d8d1480 SVN_SILENT made messages (.desktop file) 2013-01-31 11:56:49 +01:00
Script Kiddy be60fbf64d SVN_SILENT made messages (.desktop file) 2013-01-23 08:25:54 +01:00
Albert Astals Cid cb003adcfd Merge remote-tracking branch 'origin/KDE/4.10' 2013-01-23 00:06:26 +01:00
Script Kiddy 44b7ff680c SVN_SILENT made messages (.desktop file) 2013-01-22 20:35:02 +01:00
Script Kiddy a4a7d5039d SVN_SILENT made messages (.desktop file) 2013-01-17 08:12:57 +01:00
Script Kiddy 94a3df94f8 SVN_SILENT made messages (.desktop file) 2013-01-10 12:21:24 +01:00
Script Kiddy 341c0bc7f2 SVN_SILENT made messages (.desktop file) 2012-12-24 09:00:24 +01:00
Script Kiddy d4aceee67e SVN_SILENT made messages (.desktop file) 2012-12-23 07:56:06 +01:00
Albert Astals Cid 507697ac12 Somehow the readSettings call got lost in a merge
Bad, Albert, Bad!

BUGS: 311983
2012-12-21 00:33:20 +01:00
Albert Astals Cid 3d658eccaa Merge remote-tracking branch 'origin/KDE/4.9' 2012-10-09 00:09:38 +02:00
Albert Astals Cid daec8b5411 Give the user an error message
At least he'll understand why everything looks so bad
2012-10-09 00:08:05 +02:00
Albert Astals Cid d0b325c6c5 Merge remote-tracking branch 'origin/KDE/4.9'
Conflicts:
	shell/shell.cpp
2012-10-08 23:58:47 +02:00
Albert Astals Cid 50b9424577 Don't crash if can't create the part
It can fail in some extreme cases
BUG: 308093
2012-10-08 23:52:44 +02:00
Ivan Čukić 09a2fdab8c Activities support for Okular
REVIEW: 106685
2012-10-04 20:17:13 +02:00
Yuri Chornoivan b78f6c7fa7 Fix typo 2012-09-20 13:56:09 +03:00
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
Script Kiddy 76f96438e7 SVN_SILENT made messages (.desktop file) 2012-01-29 11:39:01 +01: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
Script Kiddy cfd881c2ee SVN_SILENT made messages (.desktop file) 2011-08-16 15:21:46 +02: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
Script Kiddy 84cc400fd0 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1231700
2011-05-13 07:09:13 +00:00
Script Kiddy b815d7356d SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1231185
2011-05-10 10:01:23 +00:00
Script Kiddy 805a8e7f89 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1230986
2011-05-09 07:42:08 +00:00
Script Kiddy 64b8965b35 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1230852
2011-05-08 07:37:44 +00:00
Script Kiddy 1b38da667b SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1230663
2011-05-06 07:24:37 +00: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
Albert Astals Cid 054623a581 Obey the page argument when using the unique option
Patch by Victor Blazquez

svn path=/trunk/KDE/kdegraphics/okular/; revision=1218021
2011-01-30 16:40:51 +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
Laurent Montel 28fff2c988 Install as programs
svn path=/trunk/KDE/kdegraphics/okular/; revision=1187515
2010-10-19 17:00:35 +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
David Faure 605c31e27c Make executable the Type=Application .desktop files we install,
so that they can be used even from a KDE running in another prefix (http://markmail.org/message/4p3krovtnzwx35zd)

svn path=/trunk/KDE/kdegraphics/okular/; revision=1182571
2010-10-04 23:51:07 +00:00
Script Kiddy 34cef01317 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1150134
2010-07-15 07:11:30 +00:00
Script Kiddy ff913d232f SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1108213
2010-03-28 07:14:45 +00:00
Script Kiddy bf36e688a5 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1085570
2010-02-05 13:33:34 +00:00
Albert Astals Cid 846a3e3c83 Do the same treatment to paths passed from the command line
when we are starting a new shell and when we are passing the argument
through dbus
BUGS: 205076

svn path=/trunk/KDE/kdegraphics/okular/; revision=1067205
2009-12-29 08:38:49 +00:00
Script Kiddy c2390f3197 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1065022
2009-12-22 10:04:12 +00:00
Script Kiddy d819d858bd SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1053122
2009-11-23 10:50:42 +00:00
Script Kiddy 1f786797a6 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1051910
2009-11-20 10:32:28 +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
Script Kiddy 309a641160 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1024784
2009-09-17 09:31:35 +00:00
Script Kiddy 3d403bc66b SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1020829
2009-09-07 10:25:57 +00:00
Script Kiddy 00b149b380 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=997443
2009-07-15 20:30:11 +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
Script Kiddy 9f0d409189 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=972275
2009-05-24 13:44:10 +00:00
Script Kiddy af1302e36b SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=969584
2009-05-18 13:49:56 +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
Script Kiddy fa136bc6db SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=944478
2009-03-25 15:35:35 +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
Script Kiddy febf292a6f SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=936841
2009-03-08 14:39:28 +00:00