mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 19:50:27 +00:00
![Andreas Naumann](/assets/img/avatar_default.png)
Adds the option "editor-cmd" for the [feature request](https://bugs.kde.org/show_bug.cgi?id=263732) . BUG: 263732
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
/*
|
|
SPDX-FileCopyrightText: 2009 Pino Toscano <pino@kde.org>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef OKULAR_SHELLUTILS_H
|
|
#define OKULAR_SHELLUTILS_H
|
|
|
|
#include <QString>
|
|
|
|
class QUrl;
|
|
|
|
class QCommandLineParser;
|
|
|
|
namespace ShellUtils
|
|
{
|
|
typedef bool (*FileExistFunc)(const QString &fileName);
|
|
|
|
FileExistFunc qfileExistFunc();
|
|
QUrl urlFromArg(const QString &_arg, FileExistFunc exist_func, const QString &pageArg = QString());
|
|
QString serializeOptions(const QCommandLineParser &args);
|
|
QString serializeOptions(bool startInPresentation, bool showPrintDialog, bool showPrintDialogAndExit, bool unique, bool noRaise, const QString &page, const QString &find, const QString &editorCmd);
|
|
bool unique(const QString &serializedOptions);
|
|
bool noRaise(const QString &serializedOptions);
|
|
bool startInPresentation(const QString &serializedOptions);
|
|
bool showPrintDialog(const QString &serializedOptions);
|
|
bool showPrintDialogAndExit(const QString &serializedOptions);
|
|
QString page(const QString &serializedOptions);
|
|
QString find(const QString &serializedOptions);
|
|
QString editorCmd(const QString &serializedOptions);
|
|
|
|
}
|
|
|
|
#endif
|