Alex Richardson
1b2de0d1d0
Fix mainshelltest (and as a side-effect docdata saving)
...
Try fixing mainshelltest: one more passes now
QUrl is not automatically exposed to DBus so the DBus call would fail.
Changed the parameter to QString instead so that DBus invocation works.
mainshelltest: set QStandardPaths to test mode
Parse command line flags with a single dash as a long option
Unlike KCmdLineArgs QCommandLineParser treats options starting with a
single minus as multiple short options by default.
Previously okular -unique would fail with the following error:
Unknown options: u, n, i, q, u, e.
Also changed mainshelltest to use two dashes in case this behaviour
should change in the future.
mainshelltest failures have been reduced from 15 to 4 by this commit.
Fix docdata saving and added a warning message if it fails
If the ~/.local/okular/docdata directory didn't exist previously
creating the docdata file would fail as there are missing paths.
It seems that KStandardDirs used to create the okular/docdata directory
automatically, with QStandardPaths we have to create it manually.
mainshelltest is down to one failed test now
Fix final test case in mainshelltest
as we call QProcess::terminate the exit code will not be 0
REVIEW: 126192
10 years ago
Leslie Zhai
71950016aa
Fix i18n issue missing setApplicationDomain
...
REVIEW: 126445
10 years ago
Montel Laurent
e03e6f6863
Use Q_DECL_OVERRIDE
11 years ago
Jonathan Doman
1cfb007b63
Fix session restore/save with multiple tabs
...
BUGS: 335852
REVIEW: 122570
11 years ago
Montel Laurent
c4f224f1e8
Port to new connect api
11 years ago
Montel Laurent
16f13c04d2
kdelibs4support--
12 years ago
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)
12 years ago
Frederik Gladhorn
1703f2df7c
Port KAboutData
12 years ago
Frederik Gladhorn
c7e003d7bc
Port to QCommandLineParser
12 years ago
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
12 years ago
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
12 years ago
Albert Astals Cid
49dc7dcb59
Indent
12 years ago
Jonathan Doman
89fd56c23b
Launch documents from external sources in new tabs
...
FIXED-IN: 4.13.0
BUGS: 331872
BUGS: 332238
REVIEW: 116700
12 years ago
Tomáš Poledný
5ab30aae15
Open print dialog from command line
...
BUGS: 252462
REVIEW: 109096
FIXED-IN: 4.11.0
GUI
13 years ago
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
13 years ago
Jaydeep Solanki
8765a06f52
Add warnings about --unique errors
...
BUGS: 306312
REVIEW: 106476
FIXED-IN: 4.10.0
14 years ago
Albert Astals Cid
09067debaf
Make --unique also raise the window
...
BUGS: 304526
FIXED-IN: 4.10.0
14 years ago
Myreal Name
2149fb46ef
Another message
15 years ago
Myreal Name
61f4fe32a8
test
15 years ago
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
15 years ago
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
16 years ago
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
17 years ago
Pino Toscano
d77c997f94
Document that we can read from stdin when called with '-' as command line argument.
...
BUG: 175653
svn path=/trunk/KDE/kdegraphics/okular/; revision=906809
17 years ago
Pino Toscano
5d94111ce8
i18n fixes
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=886194
18 years ago
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
18 years ago
Pino Toscano
1ed3928811
set the about data icon name in the right place
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=801281
18 years ago
Friedrich W. H. Kossebau
56e1842069
set global program icon via KAboutData, not directly
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=799282
18 years ago
Pino Toscano
a0a3c239e2
Standardize our naming: Okular.
...
CCMAIL: okular-devel@kde.org
svn path=/trunk/KDE/kdegraphics/okular/; revision=763904
18 years ago
Albert Astals Cid
c68ae02dcc
this is a dummy commit to check if i still can commit as i'm having problems commiting to www/media, but while at it i update the C year and mail :-D
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=724219
19 years ago
Pino Toscano
02d6dab204
adapt to the new icon names
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=720180
19 years ago
Pino Toscano
211ab15c2e
use KAboutData by value, and remove an old static method of the part
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=719241
19 years ago
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
19 years ago
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
19 years ago
Laurent Montel
01f27ec687
Minor fix mem leak
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=672263
19 years ago
Pino Toscano
9a10418505
move the about data in an own file, so it can be used from both the shell and the part
...
svn path=/trunk/playground/graphics/okular/; revision=641337
19 years ago
Pino Toscano
beb8b93787
bump version to 0.5.82
...
svn path=/trunk/playground/graphics/okular/; revision=634987
19 years ago
Albert Astals Cid
2904258674
I for one welcome our new overlord^Wmantainer
...
svn path=/trunk/playground/graphics/okular/; revision=623465
19 years ago
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
19 years ago
Pino Toscano
bd7f6f8071
bump version
...
svn path=/trunk/playground/graphics/okular/; revision=594923
20 years ago
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
20 years ago
Albert Astals Cid
e5d59dfca7
update my adress to the shiny kde one
...
svn path=/trunk/playground/graphics/okular/; revision=553056
20 years ago
Albert Astals Cid
b95bcc5867
DjVu renderer and beign the only dude on http://cia.navi.cx/stats/project/kde/oKular guarantess a place in the about box i think
...
svn path=/trunk/playground/graphics/okular/; revision=553055
20 years ago
Albert Astals Cid
eabbaeaead
oKular is now okular
...
svn path=/branches/work/kde4/playground/graphics/okular/; revision=550782
20 years ago
Albert Astals Cid
f35231d39c
Piotr is not acting as mantainer, so the file is lying
...
svn path=/branches/work/kde4/playground/graphics/okular/; revision=540833
20 years ago
Albert Astals Cid
b261381531
shell builds
...
svn path=/branches/work/kde4/playground/graphics/okular/; revision=521181
20 years ago
Albert Astals Cid
30c2f8067d
oKular goes poppler
...
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=520367
20 years ago
Albert Astals Cid
d81d2ccde8
as said no more xpdf
...
svn path=/trunk/KDE/kdegraphics/kpdf/; revision=516091
20 years ago
Albert Astals Cid
6cf12beee4
Piotr is the mantainer of oKular
...
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=493541
20 years ago
Laurent Montel
a01673b6ef
Deprecated--
...
svn path=/trunk/KDE/kdegraphics/kpdf/; revision=474252
21 years ago
Albert Astals Cid
3a09624824
some more kpdf -> oKular
...
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=471466
21 years ago