Commit graph

178 commits

Author SHA1 Message Date
Albert Astals Cid 3672c3222f Compile++
Meh me for not compiling after doing a minor change
2017-03-23 01:32:48 +01:00
Gilbert Assaf a2aceadc13 Allow to create bookmarks from the TOC
BUGS: 190203
REVIEWS: 129999
2017-03-23 01:22:08 +01:00
Albert Astals Cid 191a37fb52 Q_DECL_OVERRIDE -> override 2017-03-02 20:39:24 +01:00
Aleix Pol c75a2e52d9 Make context menu on a bookmark menu action work again
Solves a todo from porting to kf5

Reviewed by Albert Astals
2016-10-29 12:23:25 +02:00
Olivier CHURLAUD 741c616c7a Port most of part.cpp out of KDELibsSupport
minor: Change header cases : <qicon.h> becomes <QIcon>
2016-07-15 21:14:50 +02:00
Martin T. H. Sandsmark c8e3c0eb01 Port part away from deprecated KArchive methods 2016-07-11 23:52:42 +02:00
Martin T. H. Sandsmark 48d52d9bd1 Add missing override declarations 2016-07-11 22:40:15 +02:00
Martin T. H. Sandsmark 439ced872d Port away from signal/slot keyword
When building okular without kdelibs4support it apparently builds with
-DQT_NO_SIGNALS_SLOTS_KEYWORDS.
2016-07-11 19:34:08 +02:00
Albert Astals Cid 8445660539 Merge remote-tracking branch 'origin/master' into frameworks 2015-10-18 22:29:00 +02:00
Albert Astals Cid ce7f81fc06 Make the sidebar work on widget pointers and not ints
This way we don't need to worry if we add more widgets in the middle
2015-09-16 01:18:17 +02:00
Albert Astals Cid d8f9800d28 Make the drawing tools be actions instead of tool buttons
3 benefits:
 * We can set the shortcut in the edit shortcuts dialog as before
 * Shortcuts can be activated without showing the topbar as before
 * Drawing in the toppbar is exactly as the other actions
2015-08-22 22:17:40 +02:00
Montel Laurent 014b712359 Use explicit. Q_DECL_OVERRIDE 2015-08-18 15:27:20 +02:00
Saheb Preet Singh bf673495fb added layers on the left sidebar 2015-05-27 19:26:56 +05:30
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
Lukáš Tinkl fd6a35486e port KUrl -> QUrl 2015-01-29 20:55:57 +01:00
Montel Laurent 5da7c5f77d port to qCDebug. Autogenerate export headers 2014-10-27 22:35:06 +01:00
Frederik Gladhorn 3581fb6245 Port to QTemporaryFile 2014-09-18 00:30:39 +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
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
Albert Astals Cid fba90677fc Fine tune mime type detection used for opening files
If the argument mimetype and filepath mimetype disagree, first try to use the filepath mimetype and if that fails use the argument one. On top of that if text/plain is the first, first try with content mimetype since the text backend never fails to open a file

I can now open https://bugs.freedesktop.org/attachment.cgi?id=99508 (which is served as text/plain) and PS files with .txt extension (bug 325044)

REVIEW: 119737
BUGS: 325044
FIXED-IN: 4.14.0
2014-08-13 23:51:48 +02:00
Vishesh Handa 46cf7e46a5 Port away from KUrl::List 2014-08-13 13:07:44 +02:00
Vishesh Handa 077689c4d3 Port KAction and KMenu 2014-08-13 12:45:40 +02:00
Frederik Gladhorn 08840a9168 Remove old KPart factory 2014-08-10 22:02:36 +02:00
Frederik Gladhorn ac15a7075e More QUrl porting 2014-08-10 20:36:41 +02:00
Frederik Gladhorn 0c7a45c7a5 Disable lots of stuff and compile
The text generator is the only one compiled now.
This version links for me but then doesn't find its KPart on startup.

TTS has been completely disabled as well as some other things like the
about dialog.
2014-08-10 14:42:54 +02:00
Frederik Gladhorn 96b0e27c44 QAction, more includes fixed 2014-08-10 01:08:54 +02:00
Frederik Gladhorn 4ce837a7ac Qt5 porting 2014-08-09 21:29:06 +02:00
Luigi Toscano 69459e742a Redirect error and warning signals to a KMessageWidget
Those two categories are usually longer messages and more
important, so more fit for a (new) KMessageWidget; simple
notice signals still go to PageViewMessage into PageView.

A more general review of all the messages should be probably
performed in order to assign proper categories to them.

Reviewed by: Albert Astal Cid
2014-05-10 10:27:21 +02:00
Luigi Toscano 56c101833f Remove PageViewTopMessage, use KMessageWidget instead
Acked by Albert Astal Cid
2014-05-09 17:19:50 +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
Montel Laurent 7b79ca1b36 Pedentic-- 2014-03-02 13:59:49 +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
Albert Astals Cid ea8316960e Revert the test, it's broken 2013-10-29 00:49:35 +01:00
Jaydeep Solanki b070de5600 autotest for epub internal links 2013-10-27 17:20:53 +01:00
Fabio D'Urso 889c942909 Test that we don't crash if we open the Configure backends dialog twice
This would have caught the issue fixed in 3dd3a000db
2013-06-08 16:54:56 +02:00
Fabio D'Urso 5860fc89c5 Added shortcut to annotation config panel as review toolbar's context menu 2013-05-28 23:55:10 +02:00
Fabio D'Urso 4526dd2fd0 Make all parts receive config change notifications
Instead of listening on KConfigDialog's signals, this patch makes parts
listen on Okular::Settings::self()'s configChanged() signal.

Unlike KConfigDialogs, Okular::Settings::self() is unique and never
changes during the process lifetime, and therefore:
 - A part can connect during initialization and receive notifications,
   without depeding on KConfigDialog objects (which might be instanced
   or deleted by a different part).
 - The connection now survives deletion of the KConfigDialog.
2013-05-28 23:44:55 +02: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
Albert Astals Cid 541650a4f4 Remove the concept of observer/view id
Just use the pointer as id :-)

This is BIC and SIC, increase the soversion now to makes sure we don't forget in the future

Patch based in an earlier patch by Bogdan Cristea <cristeab@gmail.com>
REVIEW: 109115
2013-02-24 23:01:02 +01:00
Albert Astals Cid 5261272e45 test to make sure the toc reload feature works 2013-01-19 15:05:39 +01:00
Fabio D'Urso a0135a3c8e Fix reload of modified documents that take longer to be ready
SlotDoFileDirty tries to reload the file at regular intervals.
This patch fixes it so that it can actually reopen the file even if
it is not ready at the first timer shot.

BUG: 310531
2012-12-01 00:04:34 +01:00
Jaydeep Solanki b115232966 D-Bus access to non-first Okular::Part
REVIEW: 106531
BUGS: 306313
FIXED-IN: 4.10.0
2012-09-25 21:30:23 +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 a6922a4430 Don't produce unusable file if user presses "Save As" on a .okular archive
Make "Save As" behave like "Export as Document Archive" if we are
saving a .okular file.
BUG: 258475
2012-06-05 00:48:58 +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
Mailson Menezes bd9087f20a Remember position on the page in bookmark
IOW accept more than one bookmark per page
BUGS: 157198
REVIEW: 104365
2012-03-26 20:01:01 +02:00
Albert Astals Cid 56e356df61 Fix crash on close 2012-02-02 19:55:40 +01:00