Feat: 触摸屏插件增加平板模式启用/禁用开关功能
This commit is contained in:
parent
61041fbed5
commit
fed4d7bff4
|
@ -0,0 +1,160 @@
|
|||
#include "tabletmodewidget.h"
|
||||
|
||||
#include <ukcc/interface/ukcccommon.h>
|
||||
#include <kysdk/applications/kswitchbutton.h>
|
||||
#include <QLabel>
|
||||
#include <QHBoxLayout>
|
||||
#include <QDBusInterface>
|
||||
#include <QDBusReply>
|
||||
#include <QDebug>
|
||||
|
||||
static const char* ICON_NAME = "dialog-warning";
|
||||
|
||||
TabletModeWidget::TabletModeWidget(QWidget* parent)
|
||||
: QFrame(parent)
|
||||
, m_tabletModeButton(nullptr)
|
||||
, m_tabletTextWidegt(nullptr)
|
||||
{
|
||||
setContentsMargins(16, 10, 16, 10);
|
||||
setFrameShape(QFrame::Shape::Box);
|
||||
|
||||
initLayout();
|
||||
|
||||
initTabletModeWidget();
|
||||
initConnect();
|
||||
}
|
||||
|
||||
void TabletModeWidget::initLayout()
|
||||
{
|
||||
QVBoxLayout* tabletModeVLayout = new QVBoxLayout;
|
||||
tabletModeVLayout->setMargin(0);
|
||||
setLayout(tabletModeVLayout);
|
||||
}
|
||||
|
||||
void TabletModeWidget::initTabletModeWidget()
|
||||
{
|
||||
QWidget* tabletModeWidget = createTabletModeWidget();
|
||||
tabletModeWidget->setMinimumHeight(40);
|
||||
layout()->addWidget(tabletModeWidget);
|
||||
|
||||
if (getCurrentTabletMode()) {
|
||||
m_tabletTextWidegt = createTabletTextWidget();
|
||||
layout()->setSpacing(0);
|
||||
layout()->addWidget(m_tabletTextWidegt);
|
||||
}
|
||||
}
|
||||
|
||||
void TabletModeWidget::initConnect()
|
||||
{
|
||||
QDBusConnection::sessionBus().connect("com.kylin.statusmanager.interface",
|
||||
"/",
|
||||
"com.kylin.statusmanager.interface",
|
||||
"modeChangeSignal",
|
||||
this,
|
||||
SLOT(onTabletModeChangedState(bool)));
|
||||
}
|
||||
|
||||
QWidget* TabletModeWidget::createTabletModeWidget()
|
||||
{
|
||||
QWidget* tabletModeWidget = new QWidget;
|
||||
QLabel* tabletModeText = new QLabel(tr("Tablet mode"));
|
||||
m_tabletModeButton = new kdk::KSwitchButton(tabletModeWidget);
|
||||
m_tabletModeButton->setChecked(getTabletModeEnabled());
|
||||
m_tabletModeButton->setEnabled(!getCurrentTabletMode());
|
||||
connect(m_tabletModeButton, &kdk::KSwitchButton::clicked, this, [this](bool checked) {
|
||||
setTabletModeEnabled(checked);
|
||||
ukcc::UkccCommon::buriedSettings("TouchScreen", "setTabletModeEnabled", "settings", checked ? "true":"false");
|
||||
});
|
||||
|
||||
QHBoxLayout* tabletModeLayout = new QHBoxLayout(tabletModeWidget);
|
||||
tabletModeLayout->setContentsMargins(0, 0, 0, 0);
|
||||
tabletModeLayout->addWidget(tabletModeText);
|
||||
tabletModeLayout->addStretch();
|
||||
tabletModeLayout->addWidget(m_tabletModeButton);
|
||||
tabletModeWidget->setLayout(tabletModeLayout);
|
||||
|
||||
return tabletModeWidget;
|
||||
}
|
||||
|
||||
QWidget* TabletModeWidget::createTabletTextWidget() const
|
||||
{
|
||||
QWidget* tabletTextWidget = new QWidget;
|
||||
QLabel* tabletModeText = new QLabel(tr("Currently in tablet mode, please exit tablet mode if you want to close it"));
|
||||
QLabel* tabletModeIcon = new QLabel;
|
||||
QPixmap iconPixmap = QIcon::fromTheme(ICON_NAME).pixmap(16,16);
|
||||
tabletModeIcon->setPixmap(iconPixmap);
|
||||
|
||||
QHBoxLayout* tabletTextLayout = new QHBoxLayout(tabletTextWidget);
|
||||
tabletTextLayout->setContentsMargins(0, 0, 0, 0);
|
||||
tabletTextLayout->addWidget(tabletModeIcon);
|
||||
tabletTextLayout->addWidget(tabletModeText);
|
||||
tabletTextLayout->addStretch();
|
||||
tabletTextWidget->setLayout(tabletTextLayout);
|
||||
|
||||
if(QGSettings::isSchemaInstalled("org.ukui.style")) {
|
||||
QGSettings* styleSettings = new QGSettings("org.ukui.style", QByteArray(), tabletTextWidget);
|
||||
connect(styleSettings, &QGSettings::changed, tabletModeIcon, [tabletModeIcon](const QString& key){
|
||||
if(key == "iconThemeName") {
|
||||
QPixmap iconPixmap = QIcon::fromTheme(ICON_NAME).pixmap(16,16);
|
||||
tabletModeIcon->setPixmap(iconPixmap);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return tabletTextWidget;
|
||||
}
|
||||
|
||||
bool TabletModeWidget::getTabletModeEnabled() const
|
||||
{
|
||||
QDBusInterface statusManager("com.kylin.statusmanager.interface",
|
||||
"/",
|
||||
"com.kylin.statusmanager.interface");
|
||||
QDBusReply<bool> reply = statusManager.call("isTabletModeEnabled");
|
||||
if (!reply.isValid()) {
|
||||
qWarning() << reply.error();
|
||||
return false;
|
||||
}
|
||||
|
||||
return reply.value();
|
||||
}
|
||||
|
||||
bool TabletModeWidget::getCurrentTabletMode() const
|
||||
{
|
||||
QDBusInterface statusManager("com.kylin.statusmanager.interface",
|
||||
"/",
|
||||
"com.kylin.statusmanager.interface");
|
||||
QDBusReply<bool> reply = statusManager.call("getCurrentTabletMode");
|
||||
if (!reply.isValid()) {
|
||||
qWarning() << reply.error();
|
||||
return false;
|
||||
}
|
||||
|
||||
return reply.value();
|
||||
}
|
||||
|
||||
void TabletModeWidget::setTabletModeEnabled(bool enabled)
|
||||
{
|
||||
QDBusInterface statusManager("com.kylin.statusmanager.interface",
|
||||
"/",
|
||||
"com.kylin.statusmanager.interface");
|
||||
QDBusMessage res = statusManager.call("setTabletModeEnabled",
|
||||
QVariant(enabled));
|
||||
|
||||
if (res.type() == QDBusMessage::ErrorMessage) {
|
||||
qWarning() << res.errorName() << res.errorMessage();
|
||||
}
|
||||
}
|
||||
|
||||
void TabletModeWidget::onTabletModeChangedState(bool state)
|
||||
{
|
||||
if (state && nullptr == m_tabletTextWidegt) {
|
||||
m_tabletTextWidegt = createTabletTextWidget();
|
||||
this->layout()->setSpacing(0);
|
||||
this->layout()->addWidget(m_tabletTextWidegt);
|
||||
} else if (m_tabletTextWidegt != nullptr) {
|
||||
delete m_tabletTextWidegt;
|
||||
m_tabletTextWidegt = nullptr;
|
||||
}
|
||||
|
||||
m_tabletModeButton->setEnabled(!state);
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
#ifndef TABLETMODEWIDGET_H
|
||||
#define TABLETMODEWIDGET_H
|
||||
|
||||
#include <QFrame>
|
||||
|
||||
namespace kdk {
|
||||
class KSwitchButton;
|
||||
}
|
||||
class TabletModeWidget : public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TabletModeWidget(QWidget* parent = nullptr);
|
||||
~TabletModeWidget() = default;
|
||||
|
||||
private:
|
||||
kdk::KSwitchButton* m_tabletModeButton;
|
||||
QWidget* m_tabletTextWidegt;
|
||||
|
||||
void initLayout();
|
||||
void initTabletModeWidget();
|
||||
void initConnect();
|
||||
QWidget* createTabletModeWidget();
|
||||
QWidget* createTabletTextWidget() const;
|
||||
|
||||
bool getCurrentTabletMode() const;
|
||||
void setTabletModeEnabled(bool enabled);
|
||||
bool getTabletModeEnabled() const;
|
||||
|
||||
private slots:
|
||||
void onTabletModeChangedState(bool state);
|
||||
};
|
||||
|
||||
#endif // TABLETMODEWIDGET_H
|
|
@ -112,7 +112,7 @@ QWidget *TouchscreenSettings::pluginUi()
|
|||
QObject::tr("show sidebar"), ":/gif/resources/右边缘左划显示侧边栏.gif")
|
||||
|
||||
};
|
||||
pluginWidget = new TouchScreen(defaultGestureTypes, tr("Tablet Mode"), tr("auto switch tablet mode"));
|
||||
pluginWidget = new TouchScreen(defaultGestureTypes, tr("Tablet Mode"), tr("Automatically switch tablet mode when plugging and unplugging keyboard"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -37,11 +37,13 @@ include(../settings-common/settings-common.pri)
|
|||
|
||||
SOURCES += \
|
||||
gestureguidance.cpp \
|
||||
tabletmodewidget.cpp \
|
||||
touchscreen-settings.cpp \
|
||||
touchscreen.cpp
|
||||
|
||||
HEADERS += \
|
||||
gestureguidance.h \
|
||||
tabletmodewidget.h \
|
||||
touchscreen-settings.h \
|
||||
touchscreen.h
|
||||
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
#include "gesturewidget.h"
|
||||
#include "touchscreen-settings.h"
|
||||
#include "settingscommon.h"
|
||||
#include "tabletmodewidget.h"
|
||||
|
||||
#define KYLIN_USER_GUIDE_PATH "/"
|
||||
#define KYLIN_USER_GUIDE_SERVICE "com.kylinUserGuide.hotel"
|
||||
|
@ -107,30 +108,14 @@ void TouchScreen::initUI()
|
|||
//~ contents_path /TouchScreen/Tablet Mode
|
||||
ui->switchTablet_label->setText(m_modeTypeText);
|
||||
|
||||
QHBoxLayout* switchTabletLayout = new QHBoxLayout();
|
||||
ui->switchTablet_frame->setFrameShape(QFrame::Shape::Box);
|
||||
ui->switchTablet_frame->setLayout(switchTabletLayout);
|
||||
QLabel* autoSwtich = new QLabel(m_autoSwitchText);
|
||||
switchTabletLayout->addWidget(autoSwtich);
|
||||
switchTabletLayout->addStretch();
|
||||
switchTabletLayout->setContentsMargins(16, 0, 16, 0);
|
||||
m_autoSwitchTablet = new kdk::KSwitchButton();
|
||||
m_autoSwitchTablet->setChecked(this->autoSwitchTablet());
|
||||
switchTabletLayout->addWidget(m_autoSwitchTablet);
|
||||
connect(m_autoSwitchTablet, &kdk::KSwitchButton::clicked, this, [this](bool checked) {
|
||||
setAutoSwitchTablet(checked);
|
||||
buriedSettings("AutoSwitchTabletModeButton", "settings", checked ? "true":"false");
|
||||
});
|
||||
TabletModeWidget* tabletModeWidget = new TabletModeWidget;
|
||||
ui->verticalLayout->insertWidget(2, tabletModeWidget);
|
||||
|
||||
QDBusConnection::sessionBus().connect("com.kylin.statusmanager.interface",
|
||||
"/",
|
||||
"com.kylin.statusmanager.interface",
|
||||
"modemonitor_change_signal",
|
||||
this,
|
||||
SLOT(setAutoSwitchTabletBtn(bool)));
|
||||
initAutoTabletModeWidget();
|
||||
|
||||
//! \note Do not show tablet mode if os without tablet mode
|
||||
if (!SettingsCommon::isTabletProductFeat()) {
|
||||
tabletModeWidget->deleteLater();
|
||||
ui->switchTablet_label->hide();
|
||||
ui->switchTablet_frame->hide();
|
||||
ui->horizontalLayout_4->deleteLater();
|
||||
|
@ -160,6 +145,31 @@ void TouchScreen::initUI()
|
|||
});
|
||||
}
|
||||
|
||||
void TouchScreen::initAutoTabletModeWidget()
|
||||
{
|
||||
QHBoxLayout* switchTabletLayout = new QHBoxLayout();
|
||||
ui->switchTablet_frame->setFrameShape(QFrame::Shape::Box);
|
||||
ui->switchTablet_frame->setLayout(switchTabletLayout);
|
||||
QLabel* autoSwtich = new QLabel(m_autoSwitchText);
|
||||
switchTabletLayout->addWidget(autoSwtich);
|
||||
switchTabletLayout->addStretch();
|
||||
switchTabletLayout->setContentsMargins(16, 0, 16, 0);
|
||||
m_autoSwitchTablet = new kdk::KSwitchButton();
|
||||
m_autoSwitchTablet->setChecked(this->autoSwitchTablet());
|
||||
switchTabletLayout->addWidget(m_autoSwitchTablet);
|
||||
connect(m_autoSwitchTablet, &kdk::KSwitchButton::clicked, this, [this](bool checked) {
|
||||
setAutoSwitchTablet(checked);
|
||||
buriedSettings("AutoSwitchTabletModeButton", "settings", checked ? "true":"false");
|
||||
});
|
||||
|
||||
QDBusConnection::sessionBus().connect("com.kylin.statusmanager.interface",
|
||||
"/",
|
||||
"com.kylin.statusmanager.interface",
|
||||
"modemonitor_change_signal",
|
||||
this,
|
||||
SLOT(setAutoSwitchTabletBtn(bool)));
|
||||
}
|
||||
|
||||
void TouchScreen::buriedSettings(QString settingsName, QString action, QString value) const
|
||||
{
|
||||
ukcc::UkccCommon::buriedSettings("TouchScreen", settingsName, action, value);
|
||||
|
|
|
@ -87,6 +87,7 @@ private:
|
|||
GestureWidget * createGestureWidget(const TouchGestureInfo& gestureInfo);
|
||||
QList<GestureWidget*> createGestureWidgets();
|
||||
void initUI();
|
||||
void initAutoTabletModeWidget();
|
||||
void loadGif();
|
||||
void playGif(const QString& gifPath);
|
||||
bool autoSwitchTablet();
|
||||
|
|
|
@ -58,6 +58,17 @@
|
|||
<translation>འགྲེམས་སྟོན་གྱི་གཞོགས་ངོས་མངོན་པ།</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TabletModeWidget</name>
|
||||
<message>
|
||||
<source>Tablet mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TouchScreen</name>
|
||||
<message>
|
||||
|
@ -145,6 +156,14 @@
|
|||
<translation>ལག་བརྡ་དེ་བས་མང་བ།</translation>
|
||||
<extra-contents_path>/TouchScreen/more gesture</extra-contents_path>
|
||||
</message>
|
||||
<message>
|
||||
<source>Tablet mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TouchscreenSettings</name>
|
||||
|
@ -185,8 +204,8 @@
|
|||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>auto switch tablet mode</source>
|
||||
<translation></translation>
|
||||
<source>Automatically switch tablet mode when plugging and unplugging keyboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
|
|
@ -76,6 +76,19 @@
|
|||
<translation>Seitenleiste anzeigen</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TabletModeWidget</name>
|
||||
<message>
|
||||
<location filename="../tabletmodewidget.cpp" line="38"/>
|
||||
<source>Tablet mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tabletmodewidget.cpp" line="66"/>
|
||||
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TouchScreen</name>
|
||||
<message>
|
||||
|
@ -89,12 +102,12 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.ui" line="133"/>
|
||||
<location filename="../touchscreen.ui" line="152"/>
|
||||
<source>Label1</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.ui" line="247"/>
|
||||
<location filename="../touchscreen.ui" line="266"/>
|
||||
<source>Label2</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
|
@ -161,17 +174,27 @@
|
|||
<translation type="vanished">Wechseln von Fenstern</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="104"/>
|
||||
<location filename="../touchscreen.cpp" line="108"/>
|
||||
<source>Touchscreen gesture</source>
|
||||
<translation>Touchscreen-Geste</translation>
|
||||
<extra-contents_path>/TouchScreen/touchscreen gesture</extra-contents_path>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="106"/>
|
||||
<location filename="../touchscreen.cpp" line="110"/>
|
||||
<source>More gesture</source>
|
||||
<translation>Mehr Geste</translation>
|
||||
<extra-contents_path>/TouchScreen/more gesture</extra-contents_path>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="202"/>
|
||||
<source>Tablet mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="230"/>
|
||||
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TouchscreenSettings</name>
|
||||
|
@ -223,8 +246,12 @@
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen-settings.cpp" line="115"/>
|
||||
<source>Automatically switch tablet mode when plugging and unplugging keyboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>auto switch tablet mode</source>
|
||||
<translation>Automatisches Umschalten des Tablet-Modus</translation>
|
||||
<translation type="vanished">Automatisches Umschalten des Tablet-Modus</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
|
|
@ -76,6 +76,19 @@
|
|||
<translation>Mostrar barra lateral</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TabletModeWidget</name>
|
||||
<message>
|
||||
<location filename="../tabletmodewidget.cpp" line="38"/>
|
||||
<source>Tablet mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tabletmodewidget.cpp" line="66"/>
|
||||
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TouchScreen</name>
|
||||
<message>
|
||||
|
@ -89,12 +102,12 @@
|
|||
<translation type="unfinished">Etiqueta de texto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.ui" line="133"/>
|
||||
<location filename="../touchscreen.ui" line="152"/>
|
||||
<source>Label1</source>
|
||||
<translation>Etiqueta1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.ui" line="247"/>
|
||||
<location filename="../touchscreen.ui" line="266"/>
|
||||
<source>Label2</source>
|
||||
<translation>Etiqueta2</translation>
|
||||
</message>
|
||||
|
@ -161,17 +174,27 @@
|
|||
<translation type="vanished">Cambiar de ventana</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="104"/>
|
||||
<location filename="../touchscreen.cpp" line="108"/>
|
||||
<source>Touchscreen gesture</source>
|
||||
<translation>Gesto de la pantalla táctil</translation>
|
||||
<extra-contents_path>/TouchScreen/touchscreen gesture</extra-contents_path>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="106"/>
|
||||
<location filename="../touchscreen.cpp" line="110"/>
|
||||
<source>More gesture</source>
|
||||
<translation>Más gesto</translation>
|
||||
<extra-contents_path>/TouchScreen/more gesture</extra-contents_path>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="202"/>
|
||||
<source>Tablet mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="230"/>
|
||||
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TouchscreenSettings</name>
|
||||
|
@ -223,8 +246,12 @@
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen-settings.cpp" line="115"/>
|
||||
<source>Automatically switch tablet mode when plugging and unplugging keyboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>auto switch tablet mode</source>
|
||||
<translation>Cambiar automáticamente el modo de tableta</translation>
|
||||
<translation type="vanished">Cambiar automáticamente el modo de tableta</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
|
|
@ -76,6 +76,19 @@
|
|||
<translation>Afficher la barre latérale</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TabletModeWidget</name>
|
||||
<message>
|
||||
<location filename="../tabletmodewidget.cpp" line="38"/>
|
||||
<source>Tablet mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tabletmodewidget.cpp" line="66"/>
|
||||
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TouchScreen</name>
|
||||
<message>
|
||||
|
@ -89,12 +102,12 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.ui" line="133"/>
|
||||
<location filename="../touchscreen.ui" line="152"/>
|
||||
<source>Label1</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.ui" line="247"/>
|
||||
<location filename="../touchscreen.ui" line="266"/>
|
||||
<source>Label2</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
|
@ -161,17 +174,27 @@
|
|||
<translation type="vanished">Changer de fenêtre</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="104"/>
|
||||
<location filename="../touchscreen.cpp" line="108"/>
|
||||
<source>Touchscreen gesture</source>
|
||||
<translation>Geste sur l’écran tactile</translation>
|
||||
<extra-contents_path>/TouchScreen/touchscreen gesture</extra-contents_path>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="106"/>
|
||||
<location filename="../touchscreen.cpp" line="110"/>
|
||||
<source>More gesture</source>
|
||||
<translation>Plus de gestes</translation>
|
||||
<extra-contents_path>/TouchScreen/more gesture</extra-contents_path>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="202"/>
|
||||
<source>Tablet mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="230"/>
|
||||
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TouchscreenSettings</name>
|
||||
|
@ -223,8 +246,12 @@
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen-settings.cpp" line="115"/>
|
||||
<source>Automatically switch tablet mode when plugging and unplugging keyboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>auto switch tablet mode</source>
|
||||
<translation>Basculer automatiquement en mode tablette</translation>
|
||||
<translation type="vanished">Basculer automatiquement en mode tablette</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
|
|
@ -77,6 +77,19 @@
|
|||
<translation>бүйірлік тақтаны көрсету</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TabletModeWidget</name>
|
||||
<message>
|
||||
<location filename="../tabletmodewidget.cpp" line="38"/>
|
||||
<source>Tablet mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tabletmodewidget.cpp" line="66"/>
|
||||
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TouchScreen</name>
|
||||
<message>
|
||||
|
@ -90,27 +103,37 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.ui" line="133"/>
|
||||
<location filename="../touchscreen.ui" line="152"/>
|
||||
<source>Label1</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.ui" line="247"/>
|
||||
<location filename="../touchscreen.ui" line="266"/>
|
||||
<source>Label2</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="104"/>
|
||||
<location filename="../touchscreen.cpp" line="108"/>
|
||||
<source>Touchscreen gesture</source>
|
||||
<translation>Сенсорлы экран қимылы</translation>
|
||||
<extra-contents_path>/TouchScreen/touchscreen gesture</extra-contents_path>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="106"/>
|
||||
<location filename="../touchscreen.cpp" line="110"/>
|
||||
<source>More gesture</source>
|
||||
<translation>Қосымша қимыл</translation>
|
||||
<extra-contents_path>/TouchScreen/more gesture</extra-contents_path>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="202"/>
|
||||
<source>Tablet mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="230"/>
|
||||
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TouchscreenSettings</name>
|
||||
|
@ -162,8 +185,12 @@
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen-settings.cpp" line="115"/>
|
||||
<source>Automatically switch tablet mode when plugging and unplugging keyboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>auto switch tablet mode</source>
|
||||
<translation>Планшет режимін автоматты түрде ауыстыру</translation>
|
||||
<translation type="vanished">Планшет режимін автоматты түрде ауыстыру</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
|
|
@ -76,6 +76,19 @@
|
|||
<translation>сидербар көрсөтүү</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TabletModeWidget</name>
|
||||
<message>
|
||||
<location filename="../tabletmodewidget.cpp" line="38"/>
|
||||
<source>Tablet mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tabletmodewidget.cpp" line="66"/>
|
||||
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TouchScreen</name>
|
||||
<message>
|
||||
|
@ -89,27 +102,37 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.ui" line="133"/>
|
||||
<location filename="../touchscreen.ui" line="152"/>
|
||||
<source>Label1</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.ui" line="247"/>
|
||||
<location filename="../touchscreen.ui" line="266"/>
|
||||
<source>Label2</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="104"/>
|
||||
<location filename="../touchscreen.cpp" line="108"/>
|
||||
<source>Touchscreen gesture</source>
|
||||
<translation>Сенсордук экрандын кыймылдары</translation>
|
||||
<extra-contents_path>/TouchScreen/touchscreen gesture</extra-contents_path>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="106"/>
|
||||
<location filename="../touchscreen.cpp" line="110"/>
|
||||
<source>More gesture</source>
|
||||
<translation>Дагы ымыркай</translation>
|
||||
<extra-contents_path>/TouchScreen/more gesture</extra-contents_path>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="202"/>
|
||||
<source>Tablet mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="230"/>
|
||||
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TouchscreenSettings</name>
|
||||
|
@ -161,8 +184,12 @@
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen-settings.cpp" line="115"/>
|
||||
<source>Automatically switch tablet mode when plugging and unplugging keyboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>auto switch tablet mode</source>
|
||||
<translation>Планшет режимин автоматтык түрдө которуу</translation>
|
||||
<translation type="vanished">Планшет режимин автоматтык түрдө которуу</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
|
|
@ -76,6 +76,19 @@
|
|||
<translation>ᠬᠠᠵᠠᠭᠤ ᠪᠠᠭᠠᠷ ᠢ ᠳᠠᠭᠤᠳᠠᠬᠤ</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TabletModeWidget</name>
|
||||
<message>
|
||||
<location filename="../tabletmodewidget.cpp" line="38"/>
|
||||
<source>Tablet mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tabletmodewidget.cpp" line="66"/>
|
||||
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TouchScreen</name>
|
||||
<message>
|
||||
|
@ -89,12 +102,12 @@
|
|||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.ui" line="133"/>
|
||||
<location filename="../touchscreen.ui" line="152"/>
|
||||
<source>Label1</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.ui" line="247"/>
|
||||
<location filename="../touchscreen.ui" line="266"/>
|
||||
<source>Label2</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
|
@ -161,17 +174,27 @@
|
|||
<translation type="vanished">ᠨᠡᠬᠡᠬᠡᠭ᠌ᠰᠡᠨ ᠴᠤᠩᠬᠤᠨ ᠤ ᠬᠤᠭᠤᠷᠤᠨᠳᠤ ᠰᠤᠯᠢᠬᠤ</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="104"/>
|
||||
<location filename="../touchscreen.cpp" line="108"/>
|
||||
<source>Touchscreen gesture</source>
|
||||
<translation>ᠬᠦᠷᠦᠯᠴᠡᠬᠦᠢ ᠳᠡᠯᠬᠡᠴᠡ ᠶ᠋ᠢᠨ ᠭᠠᠷ ᠤᠨ ᠲᠤᠬᠢᠶᠠ</translation>
|
||||
<extra-contents_path>/TouchScreen/touchscreen gesture</extra-contents_path>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="106"/>
|
||||
<location filename="../touchscreen.cpp" line="110"/>
|
||||
<source>More gesture</source>
|
||||
<translation>ᠨᠡᠩ ᠤᠯᠠᠨ ᠭᠠᠷ ᠤᠨ ᠲᠤᠬᠢᠶᠠ</translation>
|
||||
<extra-contents_path>/TouchScreen/more gesture</extra-contents_path>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="202"/>
|
||||
<source>Tablet mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="230"/>
|
||||
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TouchscreenSettings</name>
|
||||
|
@ -223,7 +246,7 @@
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen-settings.cpp" line="115"/>
|
||||
<source>auto switch tablet mode</source>
|
||||
<source>Automatically switch tablet mode when plugging and unplugging keyboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
|
|
|
@ -76,6 +76,19 @@
|
|||
<translation>يانبالدىقى كۆرسىتىش</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TabletModeWidget</name>
|
||||
<message>
|
||||
<location filename="../tabletmodewidget.cpp" line="38"/>
|
||||
<source>Tablet mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tabletmodewidget.cpp" line="66"/>
|
||||
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TouchScreen</name>
|
||||
<message>
|
||||
|
@ -89,27 +102,37 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.ui" line="133"/>
|
||||
<location filename="../touchscreen.ui" line="152"/>
|
||||
<source>Label1</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.ui" line="247"/>
|
||||
<location filename="../touchscreen.ui" line="266"/>
|
||||
<source>Label2</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="104"/>
|
||||
<location filename="../touchscreen.cpp" line="108"/>
|
||||
<source>Touchscreen gesture</source>
|
||||
<translation>سېزىمچان ئېكرانلىق قول ئىشارىسى </translation>
|
||||
<extra-contents_path>/TouchScreen/touchscreen gesture</extra-contents_path>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="106"/>
|
||||
<location filename="../touchscreen.cpp" line="110"/>
|
||||
<source>More gesture</source>
|
||||
<translation>كۆپ قول ئىشارىسى</translation>
|
||||
<extra-contents_path>/TouchScreen/more gesture</extra-contents_path>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="202"/>
|
||||
<source>Tablet mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="230"/>
|
||||
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TouchscreenSettings</name>
|
||||
|
@ -161,8 +184,12 @@
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen-settings.cpp" line="115"/>
|
||||
<source>Automatically switch tablet mode when plugging and unplugging keyboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>auto switch tablet mode</source>
|
||||
<translation>ئاپتوماتىك تەكشى تاختىلىق ئەندىزىنى ئالماشتۇرۇش </translation>
|
||||
<translation type="vanished">ئاپتوماتىك تەكشى تاختىلىق ئەندىزىنى ئالماشتۇرۇش </translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
|
|
@ -76,6 +76,19 @@
|
|||
<translation>呼出侧边栏</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TabletModeWidget</name>
|
||||
<message>
|
||||
<location filename="../tabletmodewidget.cpp" line="38"/>
|
||||
<source>Tablet mode</source>
|
||||
<translation>平板模式</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tabletmodewidget.cpp" line="66"/>
|
||||
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
||||
<translation>当前为平板环境,如要关闭请退出平板模式。</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TouchScreen</name>
|
||||
<message>
|
||||
|
@ -89,12 +102,12 @@
|
|||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.ui" line="133"/>
|
||||
<location filename="../touchscreen.ui" line="152"/>
|
||||
<source>Label1</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.ui" line="247"/>
|
||||
<location filename="../touchscreen.ui" line="266"/>
|
||||
<source>Label2</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
|
@ -178,19 +191,29 @@
|
|||
<translation type="vanished">在打开的窗口之间切换</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="104"/>
|
||||
<location filename="../touchscreen.cpp" line="108"/>
|
||||
<source>Touchscreen gesture</source>
|
||||
<translatorcomment>触摸屏手势</translatorcomment>
|
||||
<translation>触摸屏手势</translation>
|
||||
<extra-contents_path>/TouchScreen/touchscreen gesture</extra-contents_path>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="106"/>
|
||||
<location filename="../touchscreen.cpp" line="110"/>
|
||||
<source>More gesture</source>
|
||||
<translatorcomment>更多手势</translatorcomment>
|
||||
<translation>更多手势</translation>
|
||||
<extra-contents_path>/TouchScreen/more gesture</extra-contents_path>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="202"/>
|
||||
<source>Tablet mode</source>
|
||||
<translation>平板模式</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="230"/>
|
||||
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
||||
<translation>当前为平板环境,如要关闭请退出平板模式。</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TouchscreenSettings</name>
|
||||
|
@ -244,8 +267,12 @@
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen-settings.cpp" line="115"/>
|
||||
<source>Automatically switch tablet mode when plugging and unplugging keyboard</source>
|
||||
<translation>插拔键盘时自动切换平板模式</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>auto switch tablet mode</source>
|
||||
<translation>自动切换平板模式</translation>
|
||||
<translation type="vanished">自动切换平板模式</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
|
|
@ -76,6 +76,19 @@
|
|||
<translation>呼出側邊欄</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TabletModeWidget</name>
|
||||
<message>
|
||||
<location filename="../tabletmodewidget.cpp" line="38"/>
|
||||
<source>Tablet mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tabletmodewidget.cpp" line="66"/>
|
||||
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TouchScreen</name>
|
||||
<message>
|
||||
|
@ -89,12 +102,12 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.ui" line="133"/>
|
||||
<location filename="../touchscreen.ui" line="152"/>
|
||||
<source>Label1</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.ui" line="247"/>
|
||||
<location filename="../touchscreen.ui" line="266"/>
|
||||
<source>Label2</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
|
@ -161,17 +174,27 @@
|
|||
<translation type="vanished">在打開的視窗之間切換</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="104"/>
|
||||
<location filename="../touchscreen.cpp" line="108"/>
|
||||
<source>Touchscreen gesture</source>
|
||||
<translation>觸摸屏手勢</translation>
|
||||
<extra-contents_path>/TouchScreen/touchscreen gesture</extra-contents_path>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="106"/>
|
||||
<location filename="../touchscreen.cpp" line="110"/>
|
||||
<source>More gesture</source>
|
||||
<translation>更多手勢</translation>
|
||||
<extra-contents_path>/TouchScreen/more gesture</extra-contents_path>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="202"/>
|
||||
<source>Tablet mode</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen.cpp" line="230"/>
|
||||
<source>Currently in tablet mode, please exit tablet mode if you want to close it</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TouchscreenSettings</name>
|
||||
|
@ -223,7 +246,7 @@
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../touchscreen-settings.cpp" line="115"/>
|
||||
<source>auto switch tablet mode</source>
|
||||
<source>Automatically switch tablet mode when plugging and unplugging keyboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
|
|
Loading…
Reference in New Issue