Commit graph

280 commits

Author SHA1 Message Date
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
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