feat:(frontend):适配多display场景下dbus唤起功能
This commit is contained in:
parent
0557dd2eed
commit
fad3f9cd2e
|
@ -51,3 +51,8 @@ compile_commands.json
|
||||||
|
|
||||||
# QtCreator local machine specific files for imported projects
|
# QtCreator local machine specific files for imported projects
|
||||||
*creator.user*
|
*creator.user*
|
||||||
|
|
||||||
|
.idea
|
||||||
|
CMakeFiles
|
||||||
|
cmake_install.cmake
|
||||||
|
*_autogen
|
||||||
|
|
|
@ -49,6 +49,13 @@ set(UKUI_SEARCH_SRC
|
||||||
view/result-view.cpp view/result-view.h
|
view/result-view.cpp view/result-view.h
|
||||||
view/result-view-delegate.cpp view/result-view-delegate.h
|
view/result-view-delegate.cpp view/result-view-delegate.h
|
||||||
)
|
)
|
||||||
|
if(COMMAND qt_add_dbus_adaptor)
|
||||||
|
qt_add_dbus_adaptor(UKUI_SEARCH_SRC org.ukui.search.service.xml ukui-search-dbus-service.h UkuiSearch::UkuiSearchDbusServices)
|
||||||
|
qt_add_dbus_interface(UKUI_SEARCH_SRC org.ukui.search.service.xml service_interface)
|
||||||
|
else()
|
||||||
|
qt5_add_dbus_adaptor(UKUI_SEARCH_SRC org.ukui.search.service.xml ukui-search-dbus-service.h UkuiSearch::UkuiSearchDbusServices)
|
||||||
|
qt5_add_dbus_interface(UKUI_SEARCH_SRC org.ukui.search.service.xml service_interface)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(QRC_FILES resource.qrc)
|
set(QRC_FILES resource.qrc)
|
||||||
|
|
||||||
|
|
|
@ -64,12 +64,17 @@ int main(int argc, char *argv[]) {
|
||||||
QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
||||||
#endif
|
#endif
|
||||||
QString display;
|
QString display;
|
||||||
if(KWindowSystem::isPlatformWayland()) {
|
QString sessionType;
|
||||||
|
if(QString(getenv("XDG_SESSION_TYPE")) == "wayland") {
|
||||||
|
sessionType = "wayland";
|
||||||
display = getenv("WAYLAND_DISPLAY");
|
display = getenv("WAYLAND_DISPLAY");
|
||||||
} else if (KWindowSystem::isPlatformX11()) {
|
} else {
|
||||||
|
sessionType = "x11";
|
||||||
display = getenv("DISPLAY");
|
display = getenv("DISPLAY");
|
||||||
}
|
}
|
||||||
UkuiSearchGui app(argc, argv, QString("ukui-search-gui-%1").arg(display));
|
qDebug() << "Current DISPLAY: " << display;
|
||||||
|
UkuiSearchGui app(argc, argv, display, sessionType);
|
||||||
|
|
||||||
if (app.isRunning())
|
if (app.isRunning())
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
||||||
|
<node>
|
||||||
|
<interface name="org.ukui.search.service">
|
||||||
|
<method name="showWindow"/>
|
||||||
|
<method name="searchKeyword">
|
||||||
|
<arg name="keyword" type="s" direction="in"/>
|
||||||
|
</method>
|
||||||
|
<method name="mainWindowSwitch"/>
|
||||||
|
<signal name="showWindowSignal">
|
||||||
|
<arg name="display" type="s" direction="out"/>
|
||||||
|
</signal>
|
||||||
|
<signal name="searchKeywordSignal">
|
||||||
|
<arg name="display" type="s" direction="out"/>
|
||||||
|
<arg name="keyword" type="s" direction="out"/>
|
||||||
|
</signal>
|
||||||
|
<signal name="mainWindowSwitchSignal">
|
||||||
|
<arg name="display" type="s" direction="out"/>
|
||||||
|
</signal>
|
||||||
|
</interface>
|
||||||
|
</node>
|
|
@ -18,42 +18,193 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#include "ukui-search-dbus-service.h"
|
#include "ukui-search-dbus-service.h"
|
||||||
|
#include <KWindowSystem>
|
||||||
|
#include <utility>
|
||||||
|
#include "serviceadaptor.h"
|
||||||
|
|
||||||
using namespace UkuiSearch;
|
using namespace UkuiSearch;
|
||||||
void UkuiSearchDbusServices::showWindow(){
|
void UkuiSearchDbusServices::showWindow()
|
||||||
qDebug() << "showWindow called";
|
{
|
||||||
m_mainWindow->bootOptionsFilter("-s");
|
QString display = checkDisplay();
|
||||||
|
qDebug() << "showWindow called, from display:" << display << "current display: " << m_display;
|
||||||
|
if(!display.isEmpty() && display != m_display) {
|
||||||
|
Q_EMIT showWindowSignal(display);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
onShowWindow(m_display);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UkuiSearchDbusServices::searchKeyword(QString keyword)
|
void UkuiSearchDbusServices::searchKeyword(QString keyword)
|
||||||
{
|
{
|
||||||
showWindow();
|
QString display = checkDisplay();
|
||||||
m_mainWindow->setText(keyword);
|
qDebug() << "searchKeyword called, from display:" << display << "current display: " << m_display;
|
||||||
|
if(!display.isEmpty() && display != m_display) {
|
||||||
|
Q_EMIT searchKeywordSignal(display, keyword);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
onSearchKeyword(m_display, keyword);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UkuiSearchDbusServices::mainWindowSwitch()
|
void UkuiSearchDbusServices::mainWindowSwitch()
|
||||||
{
|
{
|
||||||
|
QString display = checkDisplay();
|
||||||
|
qDebug() << "mainWindowSwitch called, from display:" << display << "current display: " << m_display;
|
||||||
|
if(!display.isEmpty() && display != m_display) {
|
||||||
|
Q_EMIT mainWindowSwitchSignal(display);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
onMainWindowSwitch(m_display);
|
||||||
|
}
|
||||||
|
|
||||||
|
UkuiSearchDbusServices::UkuiSearchDbusServices(MainWindow *m, QObject *parent):
|
||||||
|
QObject(parent),
|
||||||
|
m_mainWindow(m)
|
||||||
|
{
|
||||||
|
m_mainWindow = m;
|
||||||
|
m_display = qApp->property("display").toString();
|
||||||
|
//注册服务
|
||||||
|
bool isServiceRegistered = QDBusConnection::sessionBus().interface()->isServiceRegistered(QStringLiteral("com.ukui.search.service"));
|
||||||
|
if(isServiceRegistered) {
|
||||||
|
initWatcher();
|
||||||
|
} else {
|
||||||
|
if(!registerService()) {
|
||||||
|
initWatcher();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
UkuiSearchDbusServices::~UkuiSearchDbusServices()
|
||||||
|
{
|
||||||
|
if(m_watcher) {
|
||||||
|
delete m_watcher;
|
||||||
|
m_watcher = nullptr;
|
||||||
|
}
|
||||||
|
if(m_serviceIface) {
|
||||||
|
delete m_serviceIface;
|
||||||
|
m_serviceIface = nullptr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void UkuiSearchDbusServices::initWatcher()
|
||||||
|
{
|
||||||
|
m_watcher = new QDBusServiceWatcher(QStringLiteral("com.ukui.search.service"),QDBusConnection::sessionBus(), QDBusServiceWatcher::WatchForOwnerChange);
|
||||||
|
connect(m_watcher, &QDBusServiceWatcher::serviceOwnerChanged, this, &UkuiSearchDbusServices::onServiceOwnerChanged);
|
||||||
|
connectToService();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool UkuiSearchDbusServices::registerService()
|
||||||
|
{
|
||||||
|
if(!m_adaptor) {
|
||||||
|
m_adaptor = new ServiceAdaptor(this);
|
||||||
|
}
|
||||||
|
QDBusConnection conn = QDBusConnection::sessionBus();
|
||||||
|
auto reply = conn.interface()->registerService(QStringLiteral("com.ukui.search.service"),
|
||||||
|
QDBusConnectionInterface::ReplaceExistingService,
|
||||||
|
QDBusConnectionInterface::DontAllowReplacement);
|
||||||
|
if (reply.value() == QDBusConnectionInterface::ServiceNotRegistered) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool res = QDBusConnection::sessionBus().registerObject("/", this);
|
||||||
|
if (!res) {
|
||||||
|
QDBusConnection::sessionBus().interface()->unregisterService(QStringLiteral("com.ukui.search.service"));
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
UkuiSearchDbusServices::onServiceOwnerChanged(const QString &service, const QString &oldOwner, const QString &newOwner)
|
||||||
|
{
|
||||||
|
if (newOwner.isEmpty()) {
|
||||||
|
bool success = registerService();
|
||||||
|
if (success) {
|
||||||
|
disConnectToService();
|
||||||
|
m_watcher->deleteLater();
|
||||||
|
}
|
||||||
|
qDebug() << "try to register service:" << success;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
uint newOwnerPid = QDBusConnection::sessionBus().interface()->servicePid(newOwner);
|
||||||
|
qDebug() << "newOwnerPid:" << newOwnerPid << ", myPid:" << QCoreApplication::applicationPid() << ", display:" << m_display;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UkuiSearchDbusServices::connectToService()
|
||||||
|
{
|
||||||
|
if(!m_serviceIface) {
|
||||||
|
m_serviceIface = new OrgUkuiSearchServiceInterface(QStringLiteral("com.ukui.search.service"), "/", QDBusConnection::sessionBus());
|
||||||
|
}
|
||||||
|
connect(m_serviceIface, &OrgUkuiSearchServiceInterface::showWindowSignal, this, &UkuiSearchDbusServices::onShowWindow);
|
||||||
|
connect(m_serviceIface, &OrgUkuiSearchServiceInterface::searchKeywordSignal, this, &UkuiSearchDbusServices::onSearchKeyword);
|
||||||
|
connect(m_serviceIface, &OrgUkuiSearchServiceInterface::mainWindowSwitchSignal, this, &UkuiSearchDbusServices::onMainWindowSwitch);
|
||||||
|
}
|
||||||
|
|
||||||
|
void UkuiSearchDbusServices::disConnectToService()
|
||||||
|
{
|
||||||
|
if(m_serviceIface) {
|
||||||
|
m_serviceIface->disconnect();
|
||||||
|
delete m_serviceIface;
|
||||||
|
m_serviceIface = nullptr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void UkuiSearchDbusServices::onShowWindow(const QString &display)
|
||||||
|
{
|
||||||
|
if(m_display == display) {
|
||||||
|
m_mainWindow->bootOptionsFilter("-s");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void UkuiSearchDbusServices::onSearchKeyword(const QString &display, const QString &keyword)
|
||||||
|
{
|
||||||
|
if(m_display == display) {
|
||||||
|
m_mainWindow->bootOptionsFilter("-s");
|
||||||
|
m_mainWindow->setText(keyword);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void UkuiSearchDbusServices::onMainWindowSwitch(const QString &display)
|
||||||
|
{
|
||||||
|
if(m_display == display) {
|
||||||
if (m_mainWindow->isActiveWindow()) {
|
if (m_mainWindow->isActiveWindow()) {
|
||||||
m_mainWindow->tryHide();
|
m_mainWindow->tryHide();
|
||||||
} else {
|
} else {
|
||||||
m_mainWindow->bootOptionsFilter("-s");
|
m_mainWindow->bootOptionsFilter("-s");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
UkuiSearchDbusServices::UkuiSearchDbusServices(MainWindow *m)
|
QString UkuiSearchDbusServices::checkDisplay()
|
||||||
{
|
{
|
||||||
m_mainWindow = m;
|
uint pid = 0;
|
||||||
//注册服务
|
QDBusReply<uint> pidReply = connection().interface()->servicePid(message().service());
|
||||||
QDBusConnection sessionBus = QDBusConnection::sessionBus();
|
qDebug() << "caller pid: " << pidReply.value();
|
||||||
QDBusConnection::sessionBus().unregisterService("com.ukui.search.service");
|
if(pidReply.isValid()) {
|
||||||
if(!sessionBus.registerService("com.ukui.search.service")){
|
pid = pidReply.value();
|
||||||
qWarning() << "ukui-search dbus register service failed reason:" << sessionBus.lastError();
|
} else {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
return UkuiSearchDbusServices::displayFromPid(pid);;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!sessionBus.registerObject("/", this, QDBusConnection::ExportAllSlots)){
|
QString UkuiSearchDbusServices::displayFromPid(uint pid)
|
||||||
qWarning() << "ukui-search dbus register object failed reason:" << sessionBus.lastError();
|
{
|
||||||
|
QFile environFile(QStringLiteral("/proc/%1/environ").arg(QString::number(pid)));
|
||||||
|
if (environFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||||
|
const QByteArray DISPLAY = qApp->property("sessionType").toString() == "wayland" ? QByteArrayLiteral("WAYLAND_DISPLAY")
|
||||||
|
: QByteArrayLiteral("DISPLAY");
|
||||||
|
const auto lines = environFile.readAll().split('\0');
|
||||||
|
for (const QByteArray &line : lines) {
|
||||||
|
const int equalsIdx = line.indexOf('=');
|
||||||
|
if (equalsIdx <= 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
const QByteArray key = line.left(equalsIdx);
|
||||||
|
if (key == DISPLAY) {
|
||||||
|
const QByteArray value = line.mid(equalsIdx + 1);
|
||||||
|
return value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
UkuiSearchDbusServices::~UkuiSearchDbusServices(){
|
return {};
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,18 +22,21 @@
|
||||||
|
|
||||||
#include <QDBusConnection>
|
#include <QDBusConnection>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
#include <QDBusContext>
|
||||||
|
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
|
#include "service_interface.h"
|
||||||
|
|
||||||
|
class ServiceAdaptor;
|
||||||
namespace UkuiSearch {
|
namespace UkuiSearch {
|
||||||
|
|
||||||
class UkuiSearchDbusServices: public QObject{
|
class UkuiSearchDbusServices: public QObject, public QDBusContext
|
||||||
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
Q_CLASSINFO("D-Bus Interface","org.ukui.search.service")
|
Q_CLASSINFO("D-Bus Interface","org.ukui.search.service")
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit UkuiSearchDbusServices(MainWindow *m);
|
explicit UkuiSearchDbusServices(MainWindow *m, QObject *parent = nullptr);
|
||||||
~UkuiSearchDbusServices();
|
~UkuiSearchDbusServices();
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
|
@ -41,8 +44,32 @@ public Q_SLOTS:
|
||||||
void searchKeyword(QString keyword);
|
void searchKeyword(QString keyword);
|
||||||
void mainWindowSwitch();
|
void mainWindowSwitch();
|
||||||
|
|
||||||
|
Q_SIGNALS:
|
||||||
|
void showWindowSignal(const QString &display);
|
||||||
|
void searchKeywordSignal(const QString &display, QString keyword);
|
||||||
|
void mainWindowSwitchSignal(const QString &display);
|
||||||
|
|
||||||
|
private Q_SLOTS:
|
||||||
|
void onShowWindow(const QString &display);
|
||||||
|
void onSearchKeyword(const QString &display, const QString &keyword);
|
||||||
|
void onMainWindowSwitch(const QString &display);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void initWatcher();
|
||||||
|
bool registerService();
|
||||||
|
void onServiceOwnerChanged(const QString &service, const QString &oldOwner, const QString &newOwner);
|
||||||
|
void connectToService();
|
||||||
|
void disConnectToService();
|
||||||
|
QString checkDisplay();
|
||||||
|
QString displayFromPid(uint pid);
|
||||||
|
|
||||||
MainWindow *m_mainWindow = nullptr;
|
MainWindow *m_mainWindow = nullptr;
|
||||||
|
QDBusServiceWatcher *m_watcher = nullptr;
|
||||||
|
QString m_display;
|
||||||
|
OrgUkuiSearchServiceInterface *m_serviceIface = nullptr;
|
||||||
|
ServiceAdaptor * m_adaptor = nullptr;
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,13 +24,19 @@
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QCommandLineParser>
|
#include <QCommandLineParser>
|
||||||
#include "plugin-manager.h"
|
#include "plugin-manager.h"
|
||||||
#include "search-plugin-manager.h"
|
|
||||||
#include "icon-loader.h"
|
#include "icon-loader.h"
|
||||||
|
|
||||||
using namespace UkuiSearch;
|
using namespace UkuiSearch;
|
||||||
UkuiSearchGui::UkuiSearchGui(int &argc, char *argv[], const QString &applicationName): QtSingleApplication (applicationName, argc, argv)
|
UkuiSearchGui::UkuiSearchGui(int &argc,
|
||||||
|
char *argv[],
|
||||||
|
const QString &display,
|
||||||
|
const QString &sessionType,
|
||||||
|
const QString &applicationName):
|
||||||
|
QtSingleApplication (applicationName + display, argc, argv)
|
||||||
{
|
{
|
||||||
qDebug()<<"ukui search gui constructor start" << applicationName;
|
qDebug()<<"ukui search gui constructor start, session type:" << sessionType << "display:" << display;
|
||||||
|
qApp->setProperty("display", display);
|
||||||
|
qApp->setProperty("sessionType", sessionType);
|
||||||
setApplicationVersion(QString("v%1").arg(VERSION));
|
setApplicationVersion(QString("v%1").arg(VERSION));
|
||||||
if (!this->isRunning()) {
|
if (!this->isRunning()) {
|
||||||
connect(this, &QtSingleApplication::messageReceived, [=](QString msg) {
|
connect(this, &QtSingleApplication::messageReceived, [=](QString msg) {
|
||||||
|
@ -39,10 +45,6 @@ UkuiSearchGui::UkuiSearchGui(int &argc, char *argv[], const QString &application
|
||||||
|
|
||||||
setQuitOnLastWindowClosed(false);
|
setQuitOnLastWindowClosed(false);
|
||||||
|
|
||||||
// qRegisterMetaType<QPair<QString, QStringList>>("QPair<QString,QStringList>");
|
|
||||||
// qRegisterMetaType<UkuiSearch::Document>("Document");
|
|
||||||
|
|
||||||
|
|
||||||
//load translations.
|
//load translations.
|
||||||
QTranslator *translator = new QTranslator(this);
|
QTranslator *translator = new QTranslator(this);
|
||||||
try {
|
try {
|
||||||
|
@ -73,7 +75,7 @@ UkuiSearchGui::UkuiSearchGui(int &argc, char *argv[], const QString &application
|
||||||
PluginManager::getInstance();
|
PluginManager::getInstance();
|
||||||
|
|
||||||
m_mainWindow = new UkuiSearch::MainWindow();
|
m_mainWindow = new UkuiSearch::MainWindow();
|
||||||
m_dbusService = new UkuiSearch::UkuiSearchDbusServices(m_mainWindow);
|
m_dbusService = new UkuiSearch::UkuiSearchDbusServices(m_mainWindow, this);
|
||||||
qApp->setWindowIcon(IconLoader::loadIconQt("kylin-search"));
|
qApp->setWindowIcon(IconLoader::loadIconQt("kylin-search"));
|
||||||
this->setActivationWindow(m_mainWindow);
|
this->setActivationWindow(m_mainWindow);
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@ class UkuiSearchGui : public QtSingleApplication
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
UkuiSearchGui(int &argc, char *argv[], const QString &applicationName = "ukui-search-gui");
|
UkuiSearchGui(int &argc, char *argv[] , const QString &display, const QString &sessionType, const QString &applicationName = "ukui-search-gui");
|
||||||
~UkuiSearchGui();
|
~UkuiSearchGui();
|
||||||
|
|
||||||
protected Q_SLOTS:
|
protected Q_SLOTS:
|
||||||
|
|
|
@ -22,22 +22,27 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="95"/>
|
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="78"/>
|
||||||
<source>Creating index can help you getting results quickly, whether to create or not?</source>
|
<source>close</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="106"/>
|
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="96"/>
|
||||||
|
<source>Creating index can help you get results more quickly. Would you like to create one?</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="107"/>
|
||||||
<source>Don't remind</source>
|
<source>Don't remind</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="117"/>
|
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="118"/>
|
||||||
<source>No</source>
|
<source>No</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="119"/>
|
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="120"/>
|
||||||
<source>Yes</source>
|
<source>Yes</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -66,32 +71,32 @@
|
||||||
<context>
|
<context>
|
||||||
<name>UkuiSearch::UkuiSearchGui</name>
|
<name>UkuiSearch::UkuiSearchGui</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../../frontend/ukui-search-gui.cpp" line="107"/>
|
<location filename="../../../frontend/ukui-search-gui.cpp" line="109"/>
|
||||||
<source>Quit ukui-search application</source>
|
<source>Quit ukui-search application</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../../frontend/ukui-search-gui.cpp" line="110"/>
|
<location filename="../../../frontend/ukui-search-gui.cpp" line="112"/>
|
||||||
<source>Show main window</source>
|
<source>Show main window</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../../frontend/ukui-search-gui.cpp" line="113"/>
|
<location filename="../../../frontend/ukui-search-gui.cpp" line="115"/>
|
||||||
<source>unregister a plugin with <pluginName></source>
|
<source>unregister a plugin with <pluginName></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../../frontend/ukui-search-gui.cpp" line="116"/>
|
<location filename="../../../frontend/ukui-search-gui.cpp" line="118"/>
|
||||||
<source>register a plugin with <pluginName></source>
|
<source>register a plugin with <pluginName></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../../frontend/ukui-search-gui.cpp" line="119"/>
|
<location filename="../../../frontend/ukui-search-gui.cpp" line="121"/>
|
||||||
<source>move <pluginName> to the target pos</source>
|
<source>move <pluginName> to the target pos</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../../frontend/ukui-search-gui.cpp" line="122"/>
|
<location filename="../../../frontend/ukui-search-gui.cpp" line="124"/>
|
||||||
<source>move plugin to <index></source>
|
<source>move plugin to <index></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -22,22 +22,27 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="95"/>
|
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="78"/>
|
||||||
<source>Creating index can help you getting results quickly, whether to create or not?</source>
|
<source>close</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="106"/>
|
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="96"/>
|
||||||
|
<source>Creating index can help you get results more quickly. Would you like to create one?</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="107"/>
|
||||||
<source>Don't remind</source>
|
<source>Don't remind</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="117"/>
|
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="118"/>
|
||||||
<source>No</source>
|
<source>No</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="119"/>
|
<location filename="../../../frontend/control/create-index-ask-dialog.cpp" line="120"/>
|
||||||
<source>Yes</source>
|
<source>Yes</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -66,32 +71,32 @@
|
||||||
<context>
|
<context>
|
||||||
<name>UkuiSearch::UkuiSearchGui</name>
|
<name>UkuiSearch::UkuiSearchGui</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../../frontend/ukui-search-gui.cpp" line="107"/>
|
<location filename="../../../frontend/ukui-search-gui.cpp" line="109"/>
|
||||||
<source>Quit ukui-search application</source>
|
<source>Quit ukui-search application</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../../frontend/ukui-search-gui.cpp" line="110"/>
|
<location filename="../../../frontend/ukui-search-gui.cpp" line="112"/>
|
||||||
<source>Show main window</source>
|
<source>Show main window</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../../frontend/ukui-search-gui.cpp" line="113"/>
|
<location filename="../../../frontend/ukui-search-gui.cpp" line="115"/>
|
||||||
<source>unregister a plugin with <pluginName></source>
|
<source>unregister a plugin with <pluginName></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../../frontend/ukui-search-gui.cpp" line="116"/>
|
<location filename="../../../frontend/ukui-search-gui.cpp" line="118"/>
|
||||||
<source>register a plugin with <pluginName></source>
|
<source>register a plugin with <pluginName></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../../frontend/ukui-search-gui.cpp" line="119"/>
|
<location filename="../../../frontend/ukui-search-gui.cpp" line="121"/>
|
||||||
<source>move <pluginName> to the target pos</source>
|
<source>move <pluginName> to the target pos</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../../frontend/ukui-search-gui.cpp" line="122"/>
|
<location filename="../../../frontend/ukui-search-gui.cpp" line="124"/>
|
||||||
<source>move plugin to <index></source>
|
<source>move plugin to <index></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -18,10 +18,6 @@
|
||||||
<source>Search</source>
|
<source>Search</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Creating index can help you getting results quickly, whether to create or not?</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Don't remind</source>
|
<source>Don't remind</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
@ -34,6 +30,14 @@
|
||||||
<source>Yes</source>
|
<source>Yes</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>close</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Creating index can help you get results more quickly. Would you like to create one?</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>UkuiSearch::MainWindow</name>
|
<name>UkuiSearch::MainWindow</name>
|
||||||
|
|
|
@ -205,32 +205,32 @@
|
||||||
<context>
|
<context>
|
||||||
<name>UkuiSearch::UkuiSearchGui</name>
|
<name>UkuiSearch::UkuiSearchGui</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="107"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="109"/>
|
||||||
<source>Quit ukui-search application</source>
|
<source>Quit ukui-search application</source>
|
||||||
<translation>ཉེར་སྤྱོད་གོ་རིམ་ལས་ཕྱིར་འཐེན་བྱ།</translation>
|
<translation>ཉེར་སྤྱོད་གོ་རིམ་ལས་ཕྱིར་འཐེན་བྱ།</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="110"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="112"/>
|
||||||
<source>Show main window</source>
|
<source>Show main window</source>
|
||||||
<translation>སྒེའུ་ཁུང་གཙོ་བོ་མངོན་པ།</translation>
|
<translation>སྒེའུ་ཁུང་གཙོ་བོ་མངོན་པ།</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="113"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="115"/>
|
||||||
<source>unregister a plugin with <pluginName></source>
|
<source>unregister a plugin with <pluginName></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="116"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="118"/>
|
||||||
<source>register a plugin with <pluginName></source>
|
<source>register a plugin with <pluginName></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="119"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="121"/>
|
||||||
<source>move <pluginName> to the target pos</source>
|
<source>move <pluginName> to the target pos</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="122"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="124"/>
|
||||||
<source>move plugin to <index></source>
|
<source>move plugin to <index></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -205,32 +205,32 @@
|
||||||
<context>
|
<context>
|
||||||
<name>UkuiSearch::UkuiSearchGui</name>
|
<name>UkuiSearch::UkuiSearchGui</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="107"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="109"/>
|
||||||
<source>Quit ukui-search application</source>
|
<source>Quit ukui-search application</source>
|
||||||
<translation>ᠬᠠᠢᠯᠲᠠᠶᠢᠨ ᠬᠡᠷᠡᠭᠯᠡᠯᠳᠡᠡᠴᠡ ᠪᠤᠴᠠᠵᠤ ᠭᠠᠷᠬᠤ</translation>
|
<translation>ᠬᠠᠢᠯᠲᠠᠶᠢᠨ ᠬᠡᠷᠡᠭᠯᠡᠯᠳᠡᠡᠴᠡ ᠪᠤᠴᠠᠵᠤ ᠭᠠᠷᠬᠤ</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="110"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="112"/>
|
||||||
<source>Show main window</source>
|
<source>Show main window</source>
|
||||||
<translation>ᠭᠤᠤᠯ ᠨᠢᠭᠤᠷ ᠬᠠᠭᠤᠳᠠᠰᠤᠶᠢ ᠢᠯᠡᠷᠡᠬᠦᠯᠬᠦ᠌</translation>
|
<translation>ᠭᠤᠤᠯ ᠨᠢᠭᠤᠷ ᠬᠠᠭᠤᠳᠠᠰᠤᠶᠢ ᠢᠯᠡᠷᠡᠬᠦᠯᠬᠦ᠌</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="113"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="115"/>
|
||||||
<source>unregister a plugin with <pluginName></source>
|
<source>unregister a plugin with <pluginName></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="116"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="118"/>
|
||||||
<source>register a plugin with <pluginName></source>
|
<source>register a plugin with <pluginName></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="119"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="121"/>
|
||||||
<source>move <pluginName> to the target pos</source>
|
<source>move <pluginName> to the target pos</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="122"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="124"/>
|
||||||
<source>move plugin to <index></source>
|
<source>move plugin to <index></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -541,32 +541,32 @@
|
||||||
<context>
|
<context>
|
||||||
<name>UkuiSearch::UkuiSearchGui</name>
|
<name>UkuiSearch::UkuiSearchGui</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="107"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="109"/>
|
||||||
<source>Quit ukui-search application</source>
|
<source>Quit ukui-search application</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="110"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="112"/>
|
||||||
<source>Show main window</source>
|
<source>Show main window</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="113"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="115"/>
|
||||||
<source>unregister a plugin with <pluginName></source>
|
<source>unregister a plugin with <pluginName></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="116"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="118"/>
|
||||||
<source>register a plugin with <pluginName></source>
|
<source>register a plugin with <pluginName></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="119"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="121"/>
|
||||||
<source>move <pluginName> to the target pos</source>
|
<source>move <pluginName> to the target pos</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="122"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="124"/>
|
||||||
<source>move plugin to <index></source>
|
<source>move plugin to <index></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -351,32 +351,32 @@
|
||||||
<context>
|
<context>
|
||||||
<name>UkuiSearch::UkuiSearchGui</name>
|
<name>UkuiSearch::UkuiSearchGui</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="107"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="109"/>
|
||||||
<source>Quit ukui-search application</source>
|
<source>Quit ukui-search application</source>
|
||||||
<translation>退出搜索应用</translation>
|
<translation>退出搜索应用</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="110"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="112"/>
|
||||||
<source>Show main window</source>
|
<source>Show main window</source>
|
||||||
<translation>显示主页面</translation>
|
<translation>显示主页面</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="113"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="115"/>
|
||||||
<source>unregister a plugin with <pluginName></source>
|
<source>unregister a plugin with <pluginName></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="116"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="118"/>
|
||||||
<source>register a plugin with <pluginName></source>
|
<source>register a plugin with <pluginName></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="119"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="121"/>
|
||||||
<source>move <pluginName> to the target pos</source>
|
<source>move <pluginName> to the target pos</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../frontend/ukui-search-gui.cpp" line="122"/>
|
<location filename="../../frontend/ukui-search-gui.cpp" line="124"/>
|
||||||
<source>move plugin to <index></source>
|
<source>move plugin to <index></source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
Loading…
Reference in New Issue