Commit graph

57 commits

Author SHA1 Message Date
Montel Laurent
e03e6f6863 Use Q_DECL_OVERRIDE 2015-08-04 15:22:41 +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
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
16f13c04d2 kdelibs4support-- 2014-10-17 23:30:54 +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
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
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
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
Frederik Gladhorn
c7e003d7bc Port to QCommandLineParser 2014-08-09 13:27:12 +02:00
Frederik Gladhorn
4cf3df32e3 Fix includes and KQAction 2014-08-09 00:21:04 +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
Jonathan Doman
375c72dc66 Make tabs rearrangeable
BUGS: 334018
FIXED-IN: 4.14.0
REVIEW: 118685
2014-07-31 00:15:21 +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
0a982319f4 Tabbed interface
GUI
BUGS: 155515
REVIEW: 110914
2014-02-08 11:44:26 +01:00
Albert Astals Cid
3f3f82afa1 Fix my email address 2013-03-14 23:09:07 +01:00
Ivan Čukić
09a2fdab8c Activities support for Okular
REVIEW: 106685
2012-10-04 20:17:13 +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
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
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
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
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
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
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
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
Albert Astals Cid
b0339a4e40 fix some easy krazy issues
svn path=/trunk/KDE/kdegraphics/okular/; revision=654317
2007-04-15 19:11:10 +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
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
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
Pino Toscano
d37f6a80ff no need to include config.h anymore
svn path=/trunk/playground/graphics/okular/; revision=628210
2007-01-29 14:35:07 +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
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
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
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
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
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
c2da771144 compile
svn path=/branches/work/kde4/playground/graphics/okular/; revision=538754
2006-05-08 19:26:45 +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
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