mirror of
https://invent.kde.org/graphics/okular
synced 2024-07-02 15:49:03 +00:00
Compare commits
4 Commits
3ce2faa151
...
30370b1da3
Author | SHA1 | Date | |
---|---|---|---|
|
30370b1da3 | ||
|
e5900f9a4f | ||
|
b0ba4a343d | ||
|
10e622c356 |
|
@ -487,6 +487,7 @@ if (TARGET Qt6::Qml)
|
||||||
core/script/js_util.cpp
|
core/script/js_util.cpp
|
||||||
core/script/js_event.cpp
|
core/script/js_event.cpp
|
||||||
core/script/js_ocg.cpp
|
core/script/js_ocg.cpp
|
||||||
|
core/script/js_global.cpp
|
||||||
)
|
)
|
||||||
target_link_libraries(okularcore PRIVATE Qt6::Qml)
|
target_link_libraries(okularcore PRIVATE Qt6::Qml)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
#include "js_event_p.h"
|
#include "js_event_p.h"
|
||||||
#include "js_field_p.h"
|
#include "js_field_p.h"
|
||||||
#include "js_fullscreen_p.h"
|
#include "js_fullscreen_p.h"
|
||||||
|
#include "js_global_p.h"
|
||||||
#include "js_ocg_p.h"
|
#include "js_ocg_p.h"
|
||||||
#include "js_spell_p.h"
|
#include "js_spell_p.h"
|
||||||
#include "js_util_p.h"
|
#include "js_util_p.h"
|
||||||
|
@ -71,6 +72,7 @@ void ExecutorJSPrivate::initTypes()
|
||||||
m_interpreter.globalObject().setProperty(QStringLiteral("display"), m_interpreter.newQObject(new JSDisplay));
|
m_interpreter.globalObject().setProperty(QStringLiteral("display"), m_interpreter.newQObject(new JSDisplay));
|
||||||
m_interpreter.globalObject().setProperty(QStringLiteral("spell"), m_interpreter.newQObject(new JSSpell));
|
m_interpreter.globalObject().setProperty(QStringLiteral("spell"), m_interpreter.newQObject(new JSSpell));
|
||||||
m_interpreter.globalObject().setProperty(QStringLiteral("util"), m_interpreter.newQObject(new JSUtil));
|
m_interpreter.globalObject().setProperty(QStringLiteral("util"), m_interpreter.newQObject(new JSUtil));
|
||||||
|
m_interpreter.globalObject().setProperty(QStringLiteral("global"), m_interpreter.newQObject(new JSGlobal));
|
||||||
}
|
}
|
||||||
|
|
||||||
ExecutorJS::ExecutorJS(DocumentPrivate *doc)
|
ExecutorJS::ExecutorJS(DocumentPrivate *doc)
|
||||||
|
|
16
core/script/js_global.cpp
Normal file
16
core/script/js_global.cpp
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
/*
|
||||||
|
SPDX-FileCopyrightText: 2024 Pratham Gandhi <ppg.1382@gmail.com>
|
||||||
|
|
||||||
|
SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "js_global_p.h"
|
||||||
|
|
||||||
|
using namespace Okular;
|
||||||
|
|
||||||
|
JSGlobal::JSGlobal(QObject *parent)
|
||||||
|
: QObject(parent)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
JSGlobal::~JSGlobal() = default;
|
25
core/script/js_global_p.h
Normal file
25
core/script/js_global_p.h
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
/*
|
||||||
|
SPDX-FileCopyrightText: 2024 Pratham Gandhi <ppg.1382@gmail.com>
|
||||||
|
|
||||||
|
SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef OKULAR_SCRIPT_JS_GLOBAL_P_H
|
||||||
|
#define OKULAR_SCRIPT_JS_GLOBAL_P_H
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
|
||||||
|
namespace Okular
|
||||||
|
{
|
||||||
|
|
||||||
|
class JSGlobal : public QObject
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit JSGlobal(QObject *parent = nullptr);
|
||||||
|
~JSGlobal() override;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
#endif
|
|
@ -21,7 +21,7 @@ msgstr ""
|
||||||
"Project-Id-Version: kdegraphics-kde4\n"
|
"Project-Id-Version: kdegraphics-kde4\n"
|
||||||
"Report-Msgid-Bugs-To: https://bugs.kde.org\n"
|
"Report-Msgid-Bugs-To: https://bugs.kde.org\n"
|
||||||
"POT-Creation-Date: 2024-06-20 00:38+0000\n"
|
"POT-Creation-Date: 2024-06-20 00:38+0000\n"
|
||||||
"PO-Revision-Date: 2024-03-22 16:14+0300\n"
|
"PO-Revision-Date: 2024-06-22 13:04+0300\n"
|
||||||
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
|
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
|
||||||
"Language-Team: Turkish <kde-l10n-tr@kde.org>\n"
|
"Language-Team: Turkish <kde-l10n-tr@kde.org>\n"
|
||||||
"Language: tr\n"
|
"Language: tr\n"
|
||||||
|
@ -29,7 +29,7 @@ msgstr ""
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||||
"X-Generator: Lokalize 24.02.1\n"
|
"X-Generator: Lokalize 24.07.70\n"
|
||||||
|
|
||||||
#, kde-format
|
#, kde-format
|
||||||
msgctxt "NAME OF TRANSLATORS"
|
msgctxt "NAME OF TRANSLATORS"
|
||||||
|
@ -4768,7 +4768,7 @@ msgstr "Küçük görselleri sayfa ile eşzamanla"
|
||||||
#: part/part.cpp:3126
|
#: part/part.cpp:3126
|
||||||
#, kde-format
|
#, kde-format
|
||||||
msgid "Add Bookmark"
|
msgid "Add Bookmark"
|
||||||
msgstr "Yer İmi Ekle"
|
msgstr "Yer İmi Koy"
|
||||||
|
|
||||||
#: part/part.cpp:3148
|
#: part/part.cpp:3148
|
||||||
#, kde-format
|
#, kde-format
|
||||||
|
|
|
@ -2887,7 +2887,7 @@ msgstr "启用图像抗锯齿"
|
||||||
#, kde-format
|
#, kde-format
|
||||||
msgctxt "@option:check Config dialog, performance page"
|
msgctxt "@option:check Config dialog, performance page"
|
||||||
msgid "Enable text hinting"
|
msgid "Enable text hinting"
|
||||||
msgstr "启用文字微调"
|
msgstr "启用字体轮廓微调"
|
||||||
|
|
||||||
#: part/dlgperformance.cpp:77
|
#: part/dlgperformance.cpp:77
|
||||||
#, kde-format
|
#, kde-format
|
||||||
|
|
Loading…
Reference in New Issue
Block a user