vpn merge
This commit is contained in:
parent
c8e801e65c
commit
4b8ad410a9
|
@ -1,3 +1,9 @@
|
||||||
|
kylin-nm (3.14.0.0+0512-2k10) v101; urgency=medium
|
||||||
|
|
||||||
|
* 托盘vpn需求
|
||||||
|
|
||||||
|
-- zhaoshixu <zhaoshixu@kylinos.cn> Thu, 20 Oct 2022 20:21:39 +0800
|
||||||
|
|
||||||
kylin-nm (3.14.0.0+0512-1k10) yangtz; urgency=medium
|
kylin-nm (3.14.0.0+0512-1k10) yangtz; urgency=medium
|
||||||
|
|
||||||
* 同步3.22需求
|
* 同步3.22需求
|
||||||
|
|
|
@ -10,6 +10,7 @@ Build-Depends: debhelper (>=9),
|
||||||
libkf5networkmanagerqt-dev (>= 5.36.0),
|
libkf5networkmanagerqt-dev (>= 5.36.0),
|
||||||
libkf5windowsystem-dev,
|
libkf5windowsystem-dev,
|
||||||
libkysdk-qtwidgets-dev(>= 1.2.0),
|
libkysdk-qtwidgets-dev(>= 1.2.0),
|
||||||
|
libkysdk-sysinfo-dev,
|
||||||
libkysdk-waylandhelper-dev(>= 1.2.0kylin2),
|
libkysdk-waylandhelper-dev(>= 1.2.0kylin2),
|
||||||
libnm-dev,
|
libnm-dev,
|
||||||
libnma-dev,
|
libnma-dev,
|
||||||
|
@ -39,6 +40,7 @@ Depends: libkysdk-qtwidgets(>= 1.2.0),
|
||||||
network-manager (>=1.2.6),
|
network-manager (>=1.2.6),
|
||||||
ukui-control-center (>= 3.1.1+1217),
|
ukui-control-center (>= 3.1.1+1217),
|
||||||
dpkg-dev,
|
dpkg-dev,
|
||||||
|
libkysdk-sysinfo,
|
||||||
${shlibs:Depends},
|
${shlibs:Depends},
|
||||||
${misc:Depends}
|
${misc:Depends}
|
||||||
Description: Gui Applet tool for display and edit network simply
|
Description: Gui Applet tool for display and edit network simply
|
||||||
|
|
|
@ -162,6 +162,55 @@ KyConnectItem * KyConnectResourse::getConnectionItemByUuid(QString connectUuid,
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void KyConnectResourse::getVpnAndVirtualConnections(QList<KyConnectItem *> &connectItemList)
|
||||||
|
{
|
||||||
|
int index = 0;
|
||||||
|
NetworkManager::Connection::List connectList;
|
||||||
|
|
||||||
|
qDebug()<<"[KyConnectResourse]"<<"get vpn && virtual connections";
|
||||||
|
|
||||||
|
connectList.clear();
|
||||||
|
connectList = m_networkResourceInstance->getConnectList();
|
||||||
|
|
||||||
|
if (connectList.empty()) {
|
||||||
|
qWarning()<<"[KyConnectResourse]"<<"get vpn connections failed, the connect list is empty";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
NetworkManager::Connection::Ptr connectPtr = nullptr;
|
||||||
|
for (index = 0; index < connectList.size(); index++) {
|
||||||
|
connectPtr = connectList.at(index);
|
||||||
|
if (connectPtr.isNull()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (NetworkManager::ConnectionSettings::ConnectionType::Vpn != connectPtr->settings()->connectionType()
|
||||||
|
&& NetworkManager::ConnectionSettings::ConnectionType::Bond != connectPtr->settings()->connectionType()
|
||||||
|
&& NetworkManager::ConnectionSettings::ConnectionType::Bridge != connectPtr->settings()->connectionType()
|
||||||
|
&& NetworkManager::ConnectionSettings::ConnectionType::Vlan != connectPtr->settings()->connectionType()
|
||||||
|
&& NetworkManager::ConnectionSettings::ConnectionType::Team != connectPtr->settings()->connectionType()
|
||||||
|
&& NetworkManager::ConnectionSettings::ConnectionType::IpTunnel != connectPtr->settings()->connectionType()
|
||||||
|
&& NetworkManager::ConnectionSettings::ConnectionType::Wired != connectPtr->settings()->connectionType()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
NetworkManager::Device::Ptr devicePtr = nullptr;
|
||||||
|
devicePtr = m_networkResourceInstance->findDeviceInterface(connectPtr->settings()->interfaceName());
|
||||||
|
if (NetworkManager::ConnectionSettings::ConnectionType::Wired == connectPtr->settings()->connectionType() && !devicePtr->udi().startsWith("/sys/devices/virtual/net")) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
QString devName = "";
|
||||||
|
if (!devicePtr.isNull()) {
|
||||||
|
devName = devicePtr->interfaceName();
|
||||||
|
}
|
||||||
|
|
||||||
|
KyConnectItem *connectItem = getConnectionItem(connectPtr, devName);
|
||||||
|
if (nullptr != connectItem) {
|
||||||
|
connectItemList << connectItem;
|
||||||
|
}
|
||||||
|
|
||||||
|
connectPtr = nullptr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void KyConnectResourse::getConnectionList(QString deviceName,
|
void KyConnectResourse::getConnectionList(QString deviceName,
|
||||||
NetworkManager::ConnectionSettings::ConnectionType connectionType,
|
NetworkManager::ConnectionSettings::ConnectionType connectionType,
|
||||||
QList<KyConnectItem *> &connectItemList)
|
QList<KyConnectItem *> &connectItemList)
|
||||||
|
@ -694,6 +743,35 @@ void KyConnectResourse::getApConnections(QList<KyApConnectItem *> &apConnectItem
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool KyConnectResourse::isVirtualConncection(QString uuid)
|
||||||
|
{
|
||||||
|
NetworkManager::Connection::Ptr connectPtr = nullptr;
|
||||||
|
|
||||||
|
connectPtr = m_networkResourceInstance->getConnect(uuid);
|
||||||
|
if (nullptr == connectPtr) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (NetworkManager::ConnectionSettings::ConnectionType::Vpn == connectPtr->settings()->connectionType()
|
||||||
|
||NetworkManager::ConnectionSettings::ConnectionType::Bond == connectPtr->settings()->connectionType()
|
||||||
|
||NetworkManager::ConnectionSettings::ConnectionType::Bridge == connectPtr->settings()->connectionType()
|
||||||
|
||NetworkManager::ConnectionSettings::ConnectionType::Vlan == connectPtr->settings()->connectionType()
|
||||||
|
||NetworkManager::ConnectionSettings::ConnectionType::Team == connectPtr->settings()->connectionType()
|
||||||
|
||NetworkManager::ConnectionSettings::ConnectionType::IpTunnel == connectPtr->settings()->connectionType()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
NetworkManager::Device::Ptr devicePtr = nullptr;
|
||||||
|
devicePtr = m_networkResourceInstance->findDeviceInterface(connectPtr->settings()->interfaceName());
|
||||||
|
if (devicePtr.isNull()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (devicePtr->udi().startsWith("/sys/devices/virtual/net")) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
bool KyConnectResourse::isWiredConnection(QString uuid)
|
bool KyConnectResourse::isWiredConnection(QString uuid)
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,6 +20,7 @@ public:
|
||||||
public:
|
public:
|
||||||
KyConnectItem *getConnectionItemByUuid(QString connectUuid, bool checkActive = true);
|
KyConnectItem *getConnectionItemByUuid(QString connectUuid, bool checkActive = true);
|
||||||
KyConnectItem *getConnectionItemByUuid(QString connectUuid, QString deviceName);
|
KyConnectItem *getConnectionItemByUuid(QString connectUuid, QString deviceName);
|
||||||
|
void getVpnAndVirtualConnections(QList<KyConnectItem *> &connectItemList);
|
||||||
void getConnectionList(QString deviceName,
|
void getConnectionList(QString deviceName,
|
||||||
NetworkManager::ConnectionSettings::ConnectionType connectionType,
|
NetworkManager::ConnectionSettings::ConnectionType connectionType,
|
||||||
QList<KyConnectItem *> &connectItemList);
|
QList<KyConnectItem *> &connectItemList);
|
||||||
|
@ -33,6 +34,7 @@ public:
|
||||||
bool getInterfaceByUuid(QString &deviceName, const QString connUuid);
|
bool getInterfaceByUuid(QString &deviceName, const QString connUuid);
|
||||||
void getConnectivity(NetworkManager::Connectivity &connectivity);
|
void getConnectivity(NetworkManager::Connectivity &connectivity);
|
||||||
|
|
||||||
|
bool isVirtualConncection(QString uuid);
|
||||||
bool isWiredConnection(QString uuid);
|
bool isWiredConnection(QString uuid);
|
||||||
bool isWirelessConnection(QString uuid);
|
bool isWirelessConnection(QString uuid);
|
||||||
bool isActivatedConnection(QString uuid);
|
bool isActivatedConnection(QString uuid);
|
||||||
|
|
|
@ -5,6 +5,7 @@ include(tab-pages/tab-pages.pri)
|
||||||
include(list-items/list-items.pri)
|
include(list-items/list-items.pri)
|
||||||
include(netdetails/netdetails.pri)
|
include(netdetails/netdetails.pri)
|
||||||
include(enterprise-wlan/enterprise-wlan.pri)
|
include(enterprise-wlan/enterprise-wlan.pri)
|
||||||
|
include(single-pages/single-pages.pri)
|
||||||
|
|
||||||
FORMS += \
|
FORMS += \
|
||||||
$$PWD/wificonfigdialog.ui
|
$$PWD/wificonfigdialog.ui
|
||||||
|
@ -12,9 +13,11 @@ FORMS += \
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
$$PWD/customstyle.h \
|
$$PWD/customstyle.h \
|
||||||
$$PWD/mainwindow.h \
|
$$PWD/mainwindow.h \
|
||||||
|
$$PWD/vpnmainwindow.h \
|
||||||
$$PWD/wificonfigdialog.h
|
$$PWD/wificonfigdialog.h
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
$$PWD/customstyle.cpp \
|
$$PWD/customstyle.cpp \
|
||||||
$$PWD/mainwindow.cpp \
|
$$PWD/mainwindow.cpp \
|
||||||
|
$$PWD/vpnmainwindow.cpp \
|
||||||
$$PWD/wificonfigdialog.cpp
|
$$PWD/wificonfigdialog.cpp
|
||||||
|
|
|
@ -8,11 +8,13 @@ HEADERS += \
|
||||||
$$PWD/lanlistitem.h \
|
$$PWD/lanlistitem.h \
|
||||||
$$PWD/listitem.h \
|
$$PWD/listitem.h \
|
||||||
$$PWD/wlanlistitem.h \
|
$$PWD/wlanlistitem.h \
|
||||||
$$PWD/wlanmoreitem.h
|
$$PWD/wlanmoreitem.h \
|
||||||
|
$$PWD/vpnlistitem.h
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
$$PWD/lanlistitem.cpp \
|
$$PWD/lanlistitem.cpp \
|
||||||
$$PWD/listitem.cpp \
|
$$PWD/listitem.cpp \
|
||||||
$$PWD/wlanlistitem.cpp \
|
$$PWD/wlanlistitem.cpp \
|
||||||
$$PWD/wlanmoreitem.cpp
|
$$PWD/wlanmoreitem.cpp \
|
||||||
|
$$PWD/vpnlistitem.cpp
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,241 @@
|
||||||
|
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 Tianjin KYLIN Information Technology Co., Ltd.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#include "vpnlistitem.h"
|
||||||
|
#include "backend/dbus-interface/kylinconnectitem.h"
|
||||||
|
|
||||||
|
#include <QDebug>
|
||||||
|
|
||||||
|
#define LOG_FLAG "[VpnListItem]"
|
||||||
|
|
||||||
|
VpnListItem::VpnListItem(const KyConnectItem *lanConnectItem, QWidget *parent):ListItem(parent)
|
||||||
|
{
|
||||||
|
m_infoButton->setVisible(false);
|
||||||
|
m_connectOperation = new KyWiredConnectOperation(this);
|
||||||
|
m_deviceResource = new KyNetworkDeviceResourse(this);
|
||||||
|
|
||||||
|
connectItemCopy(lanConnectItem);
|
||||||
|
|
||||||
|
m_nameLabel->setText(m_vpnConnectItem.m_connectName);
|
||||||
|
m_netButton->setButtonIcon(QIcon::fromTheme("ukui-vpn-symbolic"));
|
||||||
|
|
||||||
|
qDebug() << "VpnListItem init:" << m_vpnConnectItem.m_connectName << m_vpnConnectItem.m_connectState << m_vpnConnectItem.m_ifaceName;
|
||||||
|
|
||||||
|
if (Deactivated == m_vpnConnectItem.m_connectState || Activated == m_vpnConnectItem.m_connectState) {
|
||||||
|
m_netButton->stopLoading();
|
||||||
|
if (m_vpnConnectItem.m_connectState == Activated) {
|
||||||
|
setIcon(true);
|
||||||
|
} else {
|
||||||
|
setIcon(false);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
m_netButton->startLoading();
|
||||||
|
}
|
||||||
|
|
||||||
|
m_itemFrame->installEventFilter(this);
|
||||||
|
connect(this->m_infoButton, &InfoButton::clicked, this, &VpnListItem::onInfoButtonClicked);
|
||||||
|
connect(m_menu, &QMenu::triggered, this, &VpnListItem::onMenuTriggered);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
VpnListItem::VpnListItem(QWidget *parent) : ListItem(parent)
|
||||||
|
{
|
||||||
|
m_isActive = false;
|
||||||
|
m_netButton->setButtonIcon(QIcon::fromTheme("ukui-vpn-symbolic"));
|
||||||
|
setIcon(false);
|
||||||
|
const QString str=tr("Not connected");
|
||||||
|
m_nameLabel->setText(str);
|
||||||
|
this->m_infoButton->hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
VpnListItem::~VpnListItem()
|
||||||
|
{
|
||||||
|
qDebug()<<"[LanPage] lan list item is deleted." << m_vpnConnectItem.m_connectName;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnListItem::setIcon(bool isOn)
|
||||||
|
{
|
||||||
|
if (isOn) {
|
||||||
|
m_netButton->setActive(true); //设置图标显示不同颜色
|
||||||
|
} else {
|
||||||
|
m_netButton->setActive(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnListItem::connectItemCopy(const KyConnectItem *lanConnectItem)
|
||||||
|
{
|
||||||
|
if (lanConnectItem) {
|
||||||
|
m_vpnConnectItem.m_connectName = lanConnectItem->m_connectName;
|
||||||
|
m_vpnConnectItem.m_connectPath = lanConnectItem->m_connectPath;
|
||||||
|
m_vpnConnectItem.m_connectState = lanConnectItem->m_connectState;
|
||||||
|
m_vpnConnectItem.m_connectUuid = lanConnectItem->m_connectUuid;
|
||||||
|
m_vpnConnectItem.m_ifaceName = lanConnectItem->m_ifaceName;
|
||||||
|
m_vpnConnectItem.m_itemType = lanConnectItem->m_itemType;
|
||||||
|
} else {
|
||||||
|
qDebug() << LOG_FLAG <<"the connect item is nullptr";
|
||||||
|
m_vpnConnectItem.m_connectName = "";
|
||||||
|
m_vpnConnectItem.m_connectPath = "";
|
||||||
|
m_vpnConnectItem.m_connectState = NetworkManager::ActiveConnection::State::Unknown;
|
||||||
|
m_vpnConnectItem.m_connectUuid = "";
|
||||||
|
m_vpnConnectItem.m_ifaceName = "";
|
||||||
|
m_vpnConnectItem.m_itemType = NetworkManager::ConnectionSettings::ConnectionType::Unknown;
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
//void VpnListItem::changeState(QString uuid,
|
||||||
|
// NetworkManager::ActiveConnection::State state,
|
||||||
|
// NetworkManager::ActiveConnection::Reason reason)
|
||||||
|
//{
|
||||||
|
|
||||||
|
//}
|
||||||
|
|
||||||
|
void VpnListItem::onNetButtonClicked()
|
||||||
|
{
|
||||||
|
if (m_vpnConnectItem.m_connectUuid.isEmpty()) {
|
||||||
|
qDebug()<<"--cxc--"<<Q_FUNC_INFO<<__LINE__;
|
||||||
|
qDebug() << LOG_FLAG << "connect is empty, so can not connect or disconnect.";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Deactivated == m_vpnConnectItem.m_connectState) {
|
||||||
|
//断开的连接,点击激活连接
|
||||||
|
m_connectOperation->activateVpnConnection(m_vpnConnectItem.m_connectUuid);
|
||||||
|
qDebug() << LOG_FLAG << "it will activate connection" << m_vpnConnectItem.m_connectName;
|
||||||
|
m_netButton->startLoading();
|
||||||
|
} else {
|
||||||
|
qDebug() << LOG_FLAG <<"the connection" << m_vpnConnectItem.m_connectName
|
||||||
|
<< "is not deactived, so it can not be operation.";
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnListItem::onRightButtonClicked()
|
||||||
|
{
|
||||||
|
//右键点击事件
|
||||||
|
qDebug()<< LOG_FLAG <<"onRightButtonClicked";
|
||||||
|
if (!m_menu) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
m_menu->clear();
|
||||||
|
if (Activated == m_vpnConnectItem.m_connectState || Activating == m_vpnConnectItem.m_connectState) {
|
||||||
|
m_menu->addAction(new QAction(tr("Disconnect"), this));
|
||||||
|
} else if (Deactivated == m_vpnConnectItem.m_connectState) {
|
||||||
|
m_menu->addAction(new QAction(tr("Connect"), this));
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
m_menu->move(cursor().pos());
|
||||||
|
m_menu->show();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnListItem::onMenuTriggered(QAction *action)
|
||||||
|
{
|
||||||
|
if (action->text() == tr("Connect")) {
|
||||||
|
this->onNetButtonClicked();
|
||||||
|
} else if (action->text() == tr("Disconnect")) {
|
||||||
|
m_connectOperation->deactivateWiredConnection(m_vpnConnectItem.m_connectName, m_vpnConnectItem.m_connectUuid);
|
||||||
|
qDebug() << LOG_FLAG << "it will disconnect connection" << m_vpnConnectItem.m_connectName;
|
||||||
|
m_netButton->startLoading();
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void VpnListItem::onInfoButtonClicked()
|
||||||
|
{
|
||||||
|
// if (m_vpnConnectItem.m_connectUuid.isEmpty()) {
|
||||||
|
// qDebug() << LOG_FLAG << "connect is empty, so can not show detail info.";
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if(netDetail != nullptr){
|
||||||
|
// netDetail->activateWindow();
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// qDebug()<< LOG_FLAG << "the info button of lan is clicked! uuid = "
|
||||||
|
// << m_vpnConnectItem.m_connectUuid << "; name = " << m_vpnConnectItem.m_connectName
|
||||||
|
// << "." <<Q_FUNC_INFO << __LINE__;
|
||||||
|
|
||||||
|
// bool isActivated = false;
|
||||||
|
// if (Activated == m_vpnConnectItem.m_connectState) {
|
||||||
|
// isActivated = true;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// netDetail = new NetDetail(m_deviceName, m_vpnConnectItem.m_connectName,
|
||||||
|
// m_vpnConnectItem.m_connectUuid, isActivated,false, false);
|
||||||
|
|
||||||
|
// connect(netDetail, &NetDetail::destroyed, [&](){
|
||||||
|
// if (netDetail != nullptr) {
|
||||||
|
// netDetail = nullptr;
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
|
||||||
|
// netDetail->show();
|
||||||
|
// Q_EMIT this->detailShow(true);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnListItem::updateConnectionState(ConnectState state)
|
||||||
|
{
|
||||||
|
m_vpnConnectItem.m_connectState = (NetworkManager::ActiveConnection::State)state;
|
||||||
|
|
||||||
|
if (Deactivated == state || Activated == state) {
|
||||||
|
m_netButton->stopLoading();
|
||||||
|
if (state == Activated) {
|
||||||
|
setIcon(true);
|
||||||
|
} else {
|
||||||
|
setIcon(false);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
m_netButton->startLoading();
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
QString VpnListItem::getConnectionName()
|
||||||
|
{
|
||||||
|
return m_vpnConnectItem.m_connectName;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnListItem::updateConnectionName(QString connectionName)
|
||||||
|
{
|
||||||
|
m_vpnConnectItem.m_connectName = connectionName;
|
||||||
|
m_nameLabel->setText(m_vpnConnectItem.m_connectName);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
QString VpnListItem::getConnectionPath()
|
||||||
|
{
|
||||||
|
return m_vpnConnectItem.m_connectPath;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnListItem::updateConnectionPath(QString connectionPath)
|
||||||
|
{
|
||||||
|
m_vpnConnectItem.m_connectPath = connectionPath;
|
||||||
|
}
|
|
@ -0,0 +1,69 @@
|
||||||
|
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 Tianjin KYLIN Information Technology Co., Ltd.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#ifndef VPNLISTITEM_H
|
||||||
|
#define VPNLISTITEM_H
|
||||||
|
#include "listitem.h"
|
||||||
|
#include "kylinactiveconnectresource.h"
|
||||||
|
|
||||||
|
#include <QDBusInterface>
|
||||||
|
#include <QEvent>
|
||||||
|
#include <QAction>
|
||||||
|
|
||||||
|
class VpnListItem : public ListItem
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
VpnListItem(const KyConnectItem *lanConnectItem, QWidget *parent = nullptr);
|
||||||
|
VpnListItem(QWidget *parent = nullptr);
|
||||||
|
|
||||||
|
~VpnListItem();
|
||||||
|
|
||||||
|
public:
|
||||||
|
void updateConnectionState(ConnectState state);
|
||||||
|
|
||||||
|
QString getConnectionName();
|
||||||
|
void updateConnectionName(QString connectionName);
|
||||||
|
|
||||||
|
QString getConnectionPath();
|
||||||
|
void updateConnectionPath(QString connectionPath);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void setIcon(bool isOn);
|
||||||
|
void onRightButtonClicked();
|
||||||
|
|
||||||
|
private:
|
||||||
|
void connectItemCopy(const KyConnectItem *lanConnectItem);
|
||||||
|
|
||||||
|
private Q_SLOTS:
|
||||||
|
void onInfoButtonClicked();
|
||||||
|
void onNetButtonClicked();
|
||||||
|
void onMenuTriggered(QAction *action);
|
||||||
|
|
||||||
|
private:
|
||||||
|
KyConnectItem m_vpnConnectItem;
|
||||||
|
|
||||||
|
KyWiredConnectOperation *m_connectOperation = nullptr;
|
||||||
|
KyNetworkDeviceResourse *m_deviceResource = nullptr;
|
||||||
|
|
||||||
|
QString m_deviceName = "";
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // VPNLISTITEM_H
|
|
@ -30,6 +30,7 @@ const QString intel = "V10SP1-edu";
|
||||||
|
|
||||||
#include <kwindowsystem.h>
|
#include <kwindowsystem.h>
|
||||||
#include <kwindowsystem_export.h>
|
#include <kwindowsystem_export.h>
|
||||||
|
#include "kysdk/kysdk-system/libkysysinfo.h"
|
||||||
|
|
||||||
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
|
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
|
||||||
{
|
{
|
||||||
|
@ -148,16 +149,19 @@ void MainWindow::secondaryStart()
|
||||||
*/
|
*/
|
||||||
void MainWindow::initPlatform()
|
void MainWindow::initPlatform()
|
||||||
{
|
{
|
||||||
if(v10Sp1.compare(KDKGetPrjCodeName().c_str(),Qt::CaseInsensitive) == 0) {
|
char* projectName = kdk_system_get_projectName();
|
||||||
QString feature = KDKGetOSRelease(KEY_PRODUCT_FEATURES).c_str();
|
QString strProjectName(projectName);
|
||||||
if (feature.toInt() == 3) {
|
free(projectName);
|
||||||
|
projectName = NULL;
|
||||||
|
if(v10Sp1.compare(strProjectName,Qt::CaseInsensitive) == 0) {
|
||||||
|
unsigned int feature = kdk_system_get_productFeatures();
|
||||||
|
if (feature == 3) {
|
||||||
m_isShowInCenter = true;
|
m_isShowInCenter = true;
|
||||||
}
|
}
|
||||||
} else if (intel.compare(KDKGetPrjCodeName().c_str(),Qt::CaseInsensitive) == 0) {
|
} else if (intel.compare(strProjectName,Qt::CaseInsensitive) == 0) {
|
||||||
m_isShowInCenter = true;
|
m_isShowInCenter = true;
|
||||||
}
|
}
|
||||||
|
qDebug() << "projectName" << projectName << m_isShowInCenter;
|
||||||
qDebug() << KDKGetPrjCodeName().c_str() << KDKGetOSRelease(KEY_PRODUCT_FEATURES).c_str() << "m_isShowInCenter" << m_isShowInCenter;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
#include "lanpage.h"
|
#include "lanpage.h"
|
||||||
#include "wlanpage.h"
|
#include "wlanpage.h"
|
||||||
#include "netdetails/netdetail.h"
|
#include "netdetails/netdetail.h"
|
||||||
#include <ukuisdk/kylin-com4cxx.h>
|
|
||||||
|
|
||||||
#ifdef WITHKYSEC
|
#ifdef WITHKYSEC
|
||||||
#include <kysec/libkysec.h>
|
#include <kysec/libkysec.h>
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
INCLUDEPATH += $$PWD
|
||||||
|
|
||||||
|
HEADERS += \
|
||||||
|
$$PWD/vpnpage.h \
|
||||||
|
$$PWD/singlepage.h
|
||||||
|
|
||||||
|
SOURCES += \
|
||||||
|
$$PWD/vpnpage.cpp \
|
||||||
|
$$PWD/singlepage.cpp
|
||||||
|
|
|
@ -0,0 +1,109 @@
|
||||||
|
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 Tianjin KYLIN Information Technology Co., Ltd.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#include "singlepage.h"
|
||||||
|
#include <qsettings.h>
|
||||||
|
#include <QDBusInterface>
|
||||||
|
#include <QLabel>
|
||||||
|
#include <QApplication>
|
||||||
|
#include <QDBusReply>
|
||||||
|
|
||||||
|
SinglePage::SinglePage(QWidget *parent) : QWidget(parent)
|
||||||
|
{
|
||||||
|
initUI();
|
||||||
|
}
|
||||||
|
|
||||||
|
SinglePage::~SinglePage()
|
||||||
|
{
|
||||||
|
delete m_netDivider;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SinglePage::initUI()
|
||||||
|
{
|
||||||
|
m_mainLayout = new QVBoxLayout(this);
|
||||||
|
m_mainLayout->setContentsMargins(MAIN_LAYOUT_MARGINS);
|
||||||
|
m_mainLayout->setSpacing(MAIN_LAYOUT_SPACING);
|
||||||
|
this->setLayout(m_mainLayout);
|
||||||
|
|
||||||
|
m_netFrame = new QFrame(this);
|
||||||
|
m_netFrame->setMinimumHeight(INACTIVE_AREA_MIN_HEIGHT);
|
||||||
|
m_netLayout = new QVBoxLayout(m_netFrame);
|
||||||
|
m_netLayout->setContentsMargins(NET_LAYOUT_MARGINS);
|
||||||
|
m_netFrame->setLayout(m_netLayout);
|
||||||
|
|
||||||
|
m_netLabel = new QLabel(m_netFrame);
|
||||||
|
m_netLabel->setContentsMargins(TEXT_MARGINS);
|
||||||
|
m_netLabel->setFixedHeight(TEXT_HEIGHT);
|
||||||
|
|
||||||
|
m_netListArea = new QWidget(m_netFrame);
|
||||||
|
m_netAreaLayout = new QVBoxLayout(m_netListArea);
|
||||||
|
m_netAreaLayout->setSpacing(MAIN_LAYOUT_SPACING);
|
||||||
|
m_netAreaLayout->setContentsMargins(MAIN_LAYOUT_MARGINS);
|
||||||
|
|
||||||
|
m_netLayout->addWidget(m_netLabel);
|
||||||
|
m_netLayout->addWidget(m_netListArea);
|
||||||
|
|
||||||
|
m_netDivider = new Divider(this);
|
||||||
|
m_settingsFrame = new QFrame(this);
|
||||||
|
m_settingsFrame->setFixedHeight(TITLE_FRAME_HEIGHT);
|
||||||
|
|
||||||
|
m_settingsLayout = new QHBoxLayout(m_settingsFrame);
|
||||||
|
m_settingsLayout->setContentsMargins(SETTINGS_LAYOUT_MARGINS);
|
||||||
|
|
||||||
|
m_settingsLabel = new KyLable(m_settingsFrame);
|
||||||
|
m_settingsLabel->setCursor(Qt::PointingHandCursor);
|
||||||
|
m_settingsLabel->setText(tr("Settings"));
|
||||||
|
m_settingsLabel->setScaledContents(true);
|
||||||
|
|
||||||
|
m_settingsLayout->addWidget(m_settingsLabel);
|
||||||
|
m_settingsLayout->addStretch();
|
||||||
|
m_settingsFrame->setLayout(m_settingsLayout);
|
||||||
|
|
||||||
|
m_mainLayout->addWidget(m_netFrame);
|
||||||
|
m_mainLayout->addStretch();
|
||||||
|
m_mainLayout->addWidget(m_netDivider);
|
||||||
|
m_mainLayout->addWidget(m_settingsFrame);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void SinglePage::showDesktopNotify(const QString &message, QString soundName)
|
||||||
|
{
|
||||||
|
QDBusInterface iface("org.freedesktop.Notifications",
|
||||||
|
"/org/freedesktop/Notifications",
|
||||||
|
"org.freedesktop.Notifications",
|
||||||
|
QDBusConnection::sessionBus());
|
||||||
|
QStringList actions; //跳转动作
|
||||||
|
actions.append("kylin-nm");
|
||||||
|
actions.append("default"); //默认动作:点击消息体时打开麒麟录音
|
||||||
|
QMap<QString, QVariant> hints;
|
||||||
|
if (!soundName.isEmpty()) {
|
||||||
|
hints.insert("sound-name",soundName); //添加声音
|
||||||
|
}
|
||||||
|
QList<QVariant> args;
|
||||||
|
args<<(tr("Kylin NM"))
|
||||||
|
<<((unsigned int) 0)
|
||||||
|
<<QString("gnome-dev-ethernet")
|
||||||
|
<<tr("kylin network applet desktop message") //显示的是什么类型的信息
|
||||||
|
<<message //显示的具体信息
|
||||||
|
<<actions
|
||||||
|
<<hints
|
||||||
|
<<(int)-1;
|
||||||
|
iface.callWithArgumentList(QDBus::AutoDetect,"Notify",args);
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,113 @@
|
||||||
|
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 Tianjin KYLIN Information Technology Co., Ltd.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#ifndef SINGLEPAGE_H
|
||||||
|
#define SINGLEPAGE_H
|
||||||
|
|
||||||
|
#include "divider.h"
|
||||||
|
#include "kylable.h"
|
||||||
|
#include <QVBoxLayout>
|
||||||
|
#include <QHBoxLayout>
|
||||||
|
#include <QFormLayout>
|
||||||
|
#include <QLabel>
|
||||||
|
#include <QScrollArea>
|
||||||
|
#include <QListWidget>
|
||||||
|
#include <QDir>
|
||||||
|
#include <QComboBox>
|
||||||
|
#include <QEvent>
|
||||||
|
#include <QProcess>
|
||||||
|
#include <QDebug>
|
||||||
|
#include "kylinnetworkdeviceresource.h"
|
||||||
|
#include "kwidget.h"
|
||||||
|
#include "kswitchbutton.h"
|
||||||
|
//#include "kborderlessbutton.h"
|
||||||
|
|
||||||
|
using namespace kdk;
|
||||||
|
|
||||||
|
#define MAIN_LAYOUT_MARGINS 0,0,0,0
|
||||||
|
#define MAIN_LAYOUT_SPACING 0
|
||||||
|
#define TITLE_FRAME_HEIGHT 50 //TabWidget的tab和widget有间隙,和设计稿看起来一致就不能设为设计稿里的高度
|
||||||
|
#define TITLE_LAYOUT_MARGINS 24,0,24,0
|
||||||
|
#define DEVICE_LAYOUT_MARGINS 24,0,24,8
|
||||||
|
#define DEVICE_COMBOBOX_WIDTH 180
|
||||||
|
#define ACTIVE_NET_LAYOUT_MARGINS 8,8,8,8
|
||||||
|
#define NET_LAYOUT_MARGINS 8,8,0,1
|
||||||
|
#define NET_LAYOUT_SPACING 8
|
||||||
|
#define NET_LIST_SPACING 0
|
||||||
|
#define TEXT_MARGINS 16,0,0,0
|
||||||
|
#define TEXT_HEIGHT 20
|
||||||
|
//#define SCROLL_AREA_HEIGHT 200
|
||||||
|
#define SETTINGS_LAYOUT_MARGINS 23,0,24,0
|
||||||
|
#define TRANSPARENT_COLOR QColor(0,0,0,0)
|
||||||
|
#define INACTIVE_AREA_MIN_HEIGHT 170
|
||||||
|
#define ACTIVE_AREA_MAX_HEIGHT 92
|
||||||
|
|
||||||
|
#define MAX_ITEMS 4
|
||||||
|
#define MAX_WIDTH 412
|
||||||
|
#define MIN_WIDTH 404
|
||||||
|
|
||||||
|
#define SCROLL_STEP 4
|
||||||
|
|
||||||
|
class SinglePage : public QWidget
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
explicit SinglePage(QWidget *parent = nullptr);
|
||||||
|
~SinglePage();
|
||||||
|
|
||||||
|
static void showDesktopNotify(const QString &message, QString soundName);
|
||||||
|
|
||||||
|
void hideSetting() {
|
||||||
|
if (nullptr != m_settingsFrame) {
|
||||||
|
m_settingsFrame->hide();
|
||||||
|
m_netDivider->hide();
|
||||||
|
m_netFrame->setMinimumHeight(INACTIVE_AREA_MIN_HEIGHT + 100);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
void showSetting() {
|
||||||
|
if (nullptr != m_settingsFrame) {
|
||||||
|
m_netFrame->setMinimumHeight(INACTIVE_AREA_MIN_HEIGHT);
|
||||||
|
m_settingsFrame->show();
|
||||||
|
m_netDivider->show();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Q_SIGNALS:
|
||||||
|
void activateFailed(QString errorMessage);
|
||||||
|
void deactivateFailed(QString errorMessage);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void initUI();
|
||||||
|
QVBoxLayout * m_mainLayout = nullptr;
|
||||||
|
|
||||||
|
QFrame * m_netFrame = nullptr;
|
||||||
|
QVBoxLayout * m_netLayout = nullptr;
|
||||||
|
QLabel * m_netLabel = nullptr;
|
||||||
|
QWidget * m_netListArea = nullptr;
|
||||||
|
QVBoxLayout * m_netAreaLayout = nullptr;
|
||||||
|
|
||||||
|
Divider * m_netDivider = nullptr;
|
||||||
|
|
||||||
|
QFrame * m_settingsFrame = nullptr;
|
||||||
|
QHBoxLayout * m_settingsLayout = nullptr;
|
||||||
|
KyLable * m_settingsLabel = nullptr;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // TABPAGE_H
|
|
@ -0,0 +1,656 @@
|
||||||
|
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 Tianjin KYLIN Information Technology Co., Ltd.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#include "vpnpage.h"
|
||||||
|
#include <QDebug>
|
||||||
|
#include <QScrollBar>
|
||||||
|
|
||||||
|
#define MAIN_LAYOUT_MARGINS 0,0,0,0
|
||||||
|
#define MAIN_LAYOUT_SPACING 0
|
||||||
|
#define TITLE_FRAME_HEIGHT 52
|
||||||
|
#define TITLE_LAYOUT_MARGINS 24,0,24,0
|
||||||
|
#define LAN_LIST_SPACING 0
|
||||||
|
#define TEXT_MARGINS 16,0,0,0
|
||||||
|
#define SETTINGS_LAYOUT_MARGINS 24,16,24,16
|
||||||
|
#define TRANSPARENT_COLOR QColor(0,0,0,0)
|
||||||
|
#define ITEM_HEIGHT 48
|
||||||
|
|
||||||
|
|
||||||
|
#define LOG_FLAG "[VpnPage]"
|
||||||
|
|
||||||
|
const QString EMPTY_CONNECT_UUID = "emptyconnect";
|
||||||
|
|
||||||
|
const QString WIRED_SWITCH = "wiredswitch";
|
||||||
|
|
||||||
|
VpnPage::VpnPage(QWidget *parent) : SinglePage(parent)
|
||||||
|
{
|
||||||
|
m_activeResourse = new KyActiveConnectResourse(this);
|
||||||
|
m_connectResourse = new KyConnectResourse(this);
|
||||||
|
// m_deviceResource = new KyNetworkDeviceResourse(this);
|
||||||
|
// m_wiredConnectOperation = new KyWiredConnectOperation(this);
|
||||||
|
|
||||||
|
initUI();
|
||||||
|
initVpnArea();
|
||||||
|
|
||||||
|
connect(m_activeResourse, &KyActiveConnectResourse::stateChangeReason, this, &VpnPage::onConnectionStateChange);
|
||||||
|
connect(m_activeResourse, &KyActiveConnectResourse::activeConnectRemove, this, [=] (QString activeConnectUuid) {
|
||||||
|
sendVpnStateChangeSignal(activeConnectUuid,Deactivated);
|
||||||
|
} );
|
||||||
|
|
||||||
|
connect(m_connectResourse, &KyConnectResourse::connectionAdd, this, &VpnPage::onAddConnection);
|
||||||
|
connect(m_connectResourse, &KyConnectResourse::connectionRemove, this, &VpnPage::onRemoveConnection);
|
||||||
|
connect(m_connectResourse, &KyConnectResourse::connectionUpdate, this, &VpnPage::onUpdateConnection);
|
||||||
|
|
||||||
|
// connect(m_wiredConnectOperation, &KyWiredConnectOperation::activateConnectionError, this, &VpnPage::activateFailed);
|
||||||
|
// connect(m_wiredConnectOperation, &KyWiredConnectOperation::deactivateConnectionError, this, &VpnPage::deactivateFailed);
|
||||||
|
}
|
||||||
|
|
||||||
|
VpnPage::~VpnPage()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnPage::deleteConnectionMapItem(QMap<QString, QListWidgetItem *> &connectMap,
|
||||||
|
QListWidget *lanListWidget, QString uuid)
|
||||||
|
{
|
||||||
|
QListWidgetItem *p_listWidgetItem = connectMap.value(uuid);
|
||||||
|
if (p_listWidgetItem) {
|
||||||
|
connectMap.remove(uuid);
|
||||||
|
VpnListItem *p_lanItem = (VpnListItem *)lanListWidget->itemWidget(p_listWidgetItem);
|
||||||
|
lanListWidget->removeItemWidget(p_listWidgetItem);
|
||||||
|
|
||||||
|
delete p_lanItem;
|
||||||
|
p_lanItem = nullptr;
|
||||||
|
|
||||||
|
delete p_listWidgetItem;
|
||||||
|
p_listWidgetItem = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnPage::clearConnectionMap(QMap<QString, QListWidgetItem *> &connectMap,
|
||||||
|
QListWidget *lanListWidget)
|
||||||
|
{
|
||||||
|
QMap<QString, QListWidgetItem *>::iterator iter;
|
||||||
|
|
||||||
|
iter = connectMap.begin();
|
||||||
|
while (iter != connectMap.end()) {
|
||||||
|
qDebug()<<"[VpnPage] clear connection map item"<< iter.key();
|
||||||
|
|
||||||
|
QListWidgetItem *p_widgetItem = iter.value();
|
||||||
|
VpnListItem *p_lanItem = (VpnListItem *)lanListWidget->itemWidget(p_widgetItem);
|
||||||
|
lanListWidget->removeItemWidget(p_widgetItem);
|
||||||
|
|
||||||
|
delete p_lanItem;
|
||||||
|
p_lanItem = nullptr;
|
||||||
|
|
||||||
|
delete p_widgetItem;
|
||||||
|
p_widgetItem = nullptr;
|
||||||
|
|
||||||
|
iter = connectMap.erase(iter);
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnPage::constructActiveConnectionArea()
|
||||||
|
{
|
||||||
|
QList<KyConnectItem *> activedList;
|
||||||
|
QList<KyConnectItem *> netList;
|
||||||
|
|
||||||
|
activedList.clear();
|
||||||
|
netList.clear();
|
||||||
|
clearConnectionMap(m_activeConnectionMap, m_vpnListWidget);
|
||||||
|
|
||||||
|
m_connectResourse->getVpnAndVirtualConnections(netList);
|
||||||
|
KyConnectItem *p_newItem = nullptr;
|
||||||
|
if (!netList.isEmpty()) {
|
||||||
|
for (int index = 0; index < netList.size(); index++) {
|
||||||
|
KyConnectItem *p_netConnectionItem = netList.at(index);
|
||||||
|
p_newItem = m_activeResourse->getActiveConnectionByUuid(p_netConnectionItem->m_connectUuid);
|
||||||
|
if (p_newItem == nullptr) {
|
||||||
|
qDebug()<<"---cxc---"<<Q_FUNC_INFO<<__LINE__<<p_netConnectionItem->m_connectUuid<<p_netConnectionItem->m_connectName<<p_netConnectionItem->m_connectState;
|
||||||
|
if (m_netConnectionMap.contains(p_netConnectionItem->m_connectUuid)) {
|
||||||
|
qDebug()<<LOG_FLAG << "has contain uuid" << p_netConnectionItem->m_connectUuid;
|
||||||
|
}
|
||||||
|
QListWidgetItem *p_listWidgetItem = addNewItem(p_netConnectionItem, m_vpnListWidget);
|
||||||
|
m_netConnectionMap.insert(p_netConnectionItem->m_connectUuid, p_listWidgetItem);
|
||||||
|
} else {
|
||||||
|
qDebug()<<"---cxc---"<<Q_FUNC_INFO<<__LINE__<<p_netConnectionItem->m_connectUuid<<p_netConnectionItem->m_connectName<<p_netConnectionItem->m_connectState;
|
||||||
|
if (m_activeConnectionMap.contains(p_netConnectionItem->m_connectUuid)) {
|
||||||
|
qDebug()<<LOG_FLAG << "has contain uuid" << p_netConnectionItem->m_connectUuid;
|
||||||
|
}
|
||||||
|
// p_netConnectionItem->m_connectState = NetworkManager::ActiveConnection::Activated;
|
||||||
|
QListWidgetItem *p_listWidgetItem = addNewItem(p_newItem, m_vpnListWidget);
|
||||||
|
m_activeConnectionMap.insert(p_netConnectionItem->m_connectUuid, p_listWidgetItem);
|
||||||
|
}
|
||||||
|
|
||||||
|
delete p_netConnectionItem;
|
||||||
|
p_netConnectionItem = nullptr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (m_vpnListWidget->count() <= MAX_ITEMS) {
|
||||||
|
m_vpnListWidget->setFixedWidth(MIN_WIDTH);
|
||||||
|
} else {
|
||||||
|
m_vpnListWidget->setFixedWidth(MAX_WIDTH);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnPage::constructConnectionArea()
|
||||||
|
{
|
||||||
|
QList<KyConnectItem *> netList;
|
||||||
|
|
||||||
|
netList.clear();
|
||||||
|
clearConnectionMap(m_netConnectionMap, m_vpnListWidget);
|
||||||
|
|
||||||
|
m_connectResourse->getVpnAndVirtualConnections(netList);
|
||||||
|
qDebug() << "[VpnPage]construct connection area get connection list size:" << netList.size();
|
||||||
|
if (!netList.isEmpty()) {
|
||||||
|
for (int index = 0; index < netList.size(); index++) {
|
||||||
|
KyConnectItem *p_netConnectionItem = netList.at(index);
|
||||||
|
qDebug()<<"[VpnPage] construct connection area add deactive item"<<p_netConnectionItem->m_connectName;
|
||||||
|
QListWidgetItem *p_listWidgetItem = addNewItem(p_netConnectionItem, m_vpnListWidget);
|
||||||
|
if (m_netConnectionMap.contains(p_netConnectionItem->m_connectUuid)) {
|
||||||
|
qDebug()<<LOG_FLAG << "has contain uuid" << p_netConnectionItem->m_connectUuid;
|
||||||
|
}
|
||||||
|
m_netConnectionMap.insert(p_netConnectionItem->m_connectUuid, p_listWidgetItem);
|
||||||
|
|
||||||
|
delete p_netConnectionItem;
|
||||||
|
p_netConnectionItem = nullptr;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (m_vpnListWidget->count() <= MAX_ITEMS) {
|
||||||
|
m_vpnListWidget->setFixedWidth(MIN_WIDTH);
|
||||||
|
} else {
|
||||||
|
m_vpnListWidget->setFixedWidth(MAX_WIDTH);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnPage::initVpnArea()
|
||||||
|
{
|
||||||
|
m_netFrame->show();
|
||||||
|
constructActiveConnectionArea();
|
||||||
|
// constructConnectionArea();
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool VpnPage::removeConnectionItem(QMap<QString, QListWidgetItem *> &connectMap,
|
||||||
|
QListWidget *lanListWidget, QString path)
|
||||||
|
{
|
||||||
|
QMap<QString, QListWidgetItem *>::iterator iter;
|
||||||
|
for (iter = connectMap.begin(); iter != connectMap.end(); ++iter) {
|
||||||
|
QListWidgetItem *p_listWidgetItem = iter.value();
|
||||||
|
VpnListItem *p_lanItem = (VpnListItem*)lanListWidget->itemWidget(p_listWidgetItem);
|
||||||
|
if (p_lanItem->getConnectionPath() == path) {
|
||||||
|
qDebug()<<"[VpnPage] Remove a connection from list";
|
||||||
|
|
||||||
|
lanListWidget->removeItemWidget(p_listWidgetItem);
|
||||||
|
|
||||||
|
delete p_lanItem;
|
||||||
|
p_lanItem = nullptr;
|
||||||
|
|
||||||
|
delete p_listWidgetItem;
|
||||||
|
p_listWidgetItem = nullptr;
|
||||||
|
|
||||||
|
iter = connectMap.erase(iter);
|
||||||
|
if (m_vpnListWidget->count() <= MAX_ITEMS) {
|
||||||
|
m_vpnListWidget->setFixedWidth(MIN_WIDTH);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnPage::onRemoveConnection(QString path) //删除时后端会自动断开激活,将其从未激活列表中删除
|
||||||
|
{
|
||||||
|
//for dbus
|
||||||
|
qDebug() << "[VpnPage] emit lanRemove because onRemoveConnection " << path;
|
||||||
|
Q_EMIT vpnRemove(path);
|
||||||
|
|
||||||
|
if (removeConnectionItem(m_netConnectionMap, m_vpnListWidget, path)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnPage::onAddConnection(QString uuid) //新增一个有线连接,将其加入到激活列表
|
||||||
|
{
|
||||||
|
if (!m_connectResourse->isVirtualConncection(uuid)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
KyConnectItem *p_newItem = nullptr;
|
||||||
|
p_newItem = m_connectResourse->getConnectionItemByUuid(uuid);
|
||||||
|
if (nullptr == p_newItem) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
sendVpnAddSignal(p_newItem);
|
||||||
|
|
||||||
|
qDebug()<<"[VpnPage] Add a new connection, name:"<<p_newItem->m_connectName;
|
||||||
|
QListWidgetItem *p_listWidgetItem = insertNewItem(p_newItem, m_vpnListWidget);
|
||||||
|
if (m_netConnectionMap.contains(p_newItem->m_connectUuid)) {
|
||||||
|
qDebug()<<LOG_FLAG << "the connection is exsit" << p_newItem->m_connectUuid;
|
||||||
|
}
|
||||||
|
m_netConnectionMap.insert(p_newItem->m_connectUuid, p_listWidgetItem);
|
||||||
|
|
||||||
|
delete p_newItem;
|
||||||
|
p_newItem = nullptr;
|
||||||
|
if (m_vpnListWidget->count() > MAX_ITEMS) {
|
||||||
|
m_vpnListWidget->setFixedWidth(MAX_WIDTH);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnPage::onShowControlCenter()
|
||||||
|
{
|
||||||
|
QProcess process;
|
||||||
|
process.startDetached("ukui-control-center -m vpn");
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnPage::initUI()
|
||||||
|
{
|
||||||
|
m_netLabel->setText(tr("VPN Connection"));
|
||||||
|
m_vpnListWidget = new QListWidget(m_netListArea);
|
||||||
|
m_vpnListWidget->setFrameShape(QFrame::Shape::NoFrame);
|
||||||
|
m_vpnListWidget->setSpacing(LAN_LIST_SPACING);
|
||||||
|
m_vpnListWidget->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||||
|
m_vpnListWidget->setVerticalScrollMode(QAbstractItemView::ScrollMode::ScrollPerPixel);
|
||||||
|
m_vpnListWidget->verticalScrollBar()->setProperty("drawScrollBarGroove",false); //去除滚动条的外侧黑框
|
||||||
|
m_vpnListWidget->verticalScrollBar()->setSingleStep(SCROLL_STEP);
|
||||||
|
m_vpnListWidget->verticalScrollBar()->setContextMenuPolicy(Qt::NoContextMenu);
|
||||||
|
m_netAreaLayout->addWidget(m_vpnListWidget);
|
||||||
|
|
||||||
|
QPalette pal = m_vpnListWidget->palette();
|
||||||
|
pal.setBrush(QPalette::Base, QColor(0,0,0,0)); //背景透明
|
||||||
|
m_vpnListWidget->setPalette(pal);
|
||||||
|
|
||||||
|
m_settingsLabel->setText(tr("VPN Settings"));
|
||||||
|
m_settingsLabel->installEventFilter(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
QListWidgetItem *VpnPage::insertNewItem(KyConnectItem *itemData, QListWidget *listWidget)
|
||||||
|
{
|
||||||
|
int index = 0;
|
||||||
|
|
||||||
|
for(index = 0; index < m_vpnListWidget->count(); index++) {
|
||||||
|
QListWidgetItem *p_listWidgetItem = m_vpnListWidget->item(index);
|
||||||
|
VpnListItem *p_lanItem = (VpnListItem *)m_vpnListWidget->itemWidget(p_listWidgetItem);
|
||||||
|
QString name1 = p_lanItem->getConnectionName();
|
||||||
|
QString name2 = itemData->m_connectName;
|
||||||
|
if (QString::compare(name1, name2, Qt::CaseInsensitive) > 0) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
QListWidgetItem *p_sortListWidgetItem = new QListWidgetItem();
|
||||||
|
p_sortListWidgetItem->setFlags(p_sortListWidgetItem->flags() & (~Qt::ItemIsSelectable)); //设置不可被选中
|
||||||
|
p_sortListWidgetItem->setSizeHint(QSize(listWidget->width(),ITEM_HEIGHT));
|
||||||
|
|
||||||
|
listWidget->insertItem(index, p_sortListWidgetItem);
|
||||||
|
|
||||||
|
VpnListItem *p_sortLanItem = nullptr;
|
||||||
|
p_sortLanItem = new VpnListItem(itemData);
|
||||||
|
listWidget->setItemWidget(p_sortListWidgetItem, p_sortLanItem);
|
||||||
|
|
||||||
|
return p_sortListWidgetItem;
|
||||||
|
}
|
||||||
|
|
||||||
|
QListWidgetItem *VpnPage::addNewItem(KyConnectItem *itemData, QListWidget *listWidget)
|
||||||
|
{
|
||||||
|
QListWidgetItem *p_listWidgetItem = new QListWidgetItem();
|
||||||
|
p_listWidgetItem->setFlags(p_listWidgetItem->flags() & (~Qt::ItemIsSelectable));
|
||||||
|
p_listWidgetItem->setSizeHint(QSize(listWidget->width(), ITEM_HEIGHT));
|
||||||
|
listWidget->addItem(p_listWidgetItem);
|
||||||
|
VpnListItem *p_lanItem = nullptr;
|
||||||
|
if (itemData != nullptr) {
|
||||||
|
p_lanItem = new VpnListItem(itemData);
|
||||||
|
qDebug() << "[VpnPage] addNewItem, connection: " << itemData->m_connectName;
|
||||||
|
} else {
|
||||||
|
p_lanItem = new VpnListItem();
|
||||||
|
qDebug() << "[VpnPage] Add nullItem!";
|
||||||
|
}
|
||||||
|
|
||||||
|
listWidget->setItemWidget(p_listWidgetItem, p_lanItem);
|
||||||
|
return p_listWidgetItem;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnPage::updateActivatedConnectionArea(KyConnectItem *p_newItem)
|
||||||
|
{
|
||||||
|
if (m_activeConnectionMap.contains(p_newItem->m_connectUuid)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
deleteConnectionMapItem(m_netConnectionMap, m_vpnListWidget, p_newItem->m_connectUuid);
|
||||||
|
qDebug()<<"[VpnPage]update active connection item"<<p_newItem->m_connectName;
|
||||||
|
deleteConnectionMapItem(m_activeConnectionMap, m_vpnListWidget, p_newItem->m_connectUuid);
|
||||||
|
QListWidgetItem *p_listWidgetItem = addNewItem(p_newItem, m_vpnListWidget);
|
||||||
|
m_activeConnectionMap.insert(p_newItem->m_connectUuid, p_listWidgetItem);
|
||||||
|
if (m_vpnListWidget->count() <= MAX_ITEMS) {
|
||||||
|
m_vpnListWidget->setFixedWidth(MIN_WIDTH);
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnPage::updateConnectionArea(KyConnectItem *p_newItem)
|
||||||
|
{
|
||||||
|
if (m_netConnectionMap.contains(p_newItem->m_connectUuid)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
deleteConnectionMapItem(m_activeConnectionMap, m_vpnListWidget, p_newItem->m_connectUuid);
|
||||||
|
qDebug()<<"[VpnPage] update connection item"<<p_newItem->m_connectName;
|
||||||
|
QListWidgetItem *p_listWidgetItem = insertNewItem(p_newItem, m_vpnListWidget);
|
||||||
|
m_netConnectionMap.insert(p_newItem->m_connectUuid, p_listWidgetItem);
|
||||||
|
|
||||||
|
if (m_vpnListWidget->count() <= MAX_ITEMS) {
|
||||||
|
m_vpnListWidget->setFixedWidth(MIN_WIDTH);
|
||||||
|
} else {
|
||||||
|
m_vpnListWidget->setFixedWidth(MAX_WIDTH);
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnPage::updateConnectionState(QMap<QString, QListWidgetItem *> &connectMap,
|
||||||
|
QListWidget *lanListWidget, QString uuid, ConnectState state)
|
||||||
|
{
|
||||||
|
qDebug() << LOG_FLAG << "update connection state";
|
||||||
|
|
||||||
|
QListWidgetItem *p_listWidgetItem = connectMap.value(uuid);
|
||||||
|
if (p_listWidgetItem) {
|
||||||
|
VpnListItem *p_lanItem = (VpnListItem *)lanListWidget->itemWidget(p_listWidgetItem);
|
||||||
|
p_lanItem->updateConnectionState(state);
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnPage::onConnectionStateChange(QString uuid,
|
||||||
|
NetworkManager::ActiveConnection::State state,
|
||||||
|
NetworkManager::ActiveConnection::Reason reason)
|
||||||
|
{
|
||||||
|
qDebug()<<"--cxc--"<<Q_FUNC_INFO<<__LINE__<<uuid<<state<<reason;
|
||||||
|
//VpnPage函数内持续监听连接状态的变化并记录供其他函数调用获取状态
|
||||||
|
if (!m_connectResourse->isVirtualConncection(uuid)) {
|
||||||
|
qDebug() << "[VpnPage] connection state change signal but not wired";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
sendVpnStateChangeSignal(uuid, (ConnectState)state);
|
||||||
|
|
||||||
|
if (m_activeConnectionMap.keys().contains(uuid) && state == NetworkManager::ActiveConnection::State::Activated) {
|
||||||
|
qDebug()<<"--cxc--"<<Q_FUNC_INFO<<__LINE__<<uuid<<state;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
qDebug()<<"[VpnPage] connection uuid"<< uuid
|
||||||
|
<< "state change slot:"<< state;
|
||||||
|
|
||||||
|
KyConnectItem *p_newItem = nullptr;
|
||||||
|
QString deviceName = "";
|
||||||
|
QString ssid = "";
|
||||||
|
|
||||||
|
if (state == NetworkManager::ActiveConnection::State::Activated) {
|
||||||
|
p_newItem = m_activeResourse->getActiveConnectionByUuid(uuid);
|
||||||
|
if (nullptr == p_newItem) {
|
||||||
|
qWarning()<<"[VpnPage] get active connection failed, connection uuid" << uuid;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
ssid = p_newItem->m_connectName;
|
||||||
|
updateActivatedConnectionArea(p_newItem);
|
||||||
|
updateConnectionState(m_activeConnectionMap, m_vpnListWidget, uuid, (ConnectState)state);
|
||||||
|
} else if (state == NetworkManager::ActiveConnection::State::Deactivated) {
|
||||||
|
p_newItem = m_connectResourse->getConnectionItemByUuid(uuid);
|
||||||
|
qDebug() << "[VpnPage] deactivated reason" << reason;
|
||||||
|
if (nullptr == p_newItem) {
|
||||||
|
qWarning()<<"[VpnPage] get active connection failed, connection uuid" << uuid;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
ssid = p_newItem->m_connectName;
|
||||||
|
updateConnectionArea(p_newItem);
|
||||||
|
updateConnectionState(m_netConnectionMap, m_vpnListWidget, uuid, (ConnectState)state);
|
||||||
|
} else if (state == NetworkManager::ActiveConnection::State::Activating) {
|
||||||
|
updateConnectionState(m_netConnectionMap, m_vpnListWidget, uuid, (ConnectState)state);
|
||||||
|
} else if (state == NetworkManager::ActiveConnection::State::Deactivating) {
|
||||||
|
updateConnectionState(m_activeConnectionMap, m_vpnListWidget, uuid, (ConnectState)state);
|
||||||
|
}
|
||||||
|
|
||||||
|
Q_EMIT vpnActiveConnectionStateChanged(deviceName, uuid, state);
|
||||||
|
|
||||||
|
if (p_newItem) {
|
||||||
|
delete p_newItem;
|
||||||
|
p_newItem = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void VpnPage::getVirtualList(QMap<QString, QVector<QStringList> > &map)
|
||||||
|
{
|
||||||
|
QList<KyConnectItem *> netConnectList;
|
||||||
|
QVector<QStringList> vector;
|
||||||
|
m_connectResourse->getVpnAndVirtualConnections(netConnectList); //未激活列表的显示
|
||||||
|
if (!netConnectList.isEmpty()) {
|
||||||
|
for (int i = 0; i < netConnectList.size(); i++) {
|
||||||
|
vector.clear();
|
||||||
|
vector.append(QStringList()<<netConnectList.at(i)->m_connectName<<netConnectList.at(i)->m_connectUuid << netConnectList.at(i)->m_connectPath);
|
||||||
|
map.insert(netConnectList.at(i)->m_connectUuid, vector);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnPage::sendVpnUpdateSignal(KyConnectItem *p_connectItem)
|
||||||
|
{
|
||||||
|
QStringList info;
|
||||||
|
info << p_connectItem->m_connectName << p_connectItem->m_connectUuid << p_connectItem->m_connectPath;
|
||||||
|
Q_EMIT vpnUpdate(p_connectItem->m_ifaceName, info);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnPage::sendVpnAddSignal(KyConnectItem *p_connectItem)
|
||||||
|
{
|
||||||
|
QStringList info;
|
||||||
|
info << p_connectItem->m_connectName << p_connectItem->m_connectUuid << p_connectItem->m_connectPath;
|
||||||
|
qDebug() << "[VpnPage] emit vpnAdd because addConnection ";
|
||||||
|
Q_EMIT vpnAdd(p_connectItem->m_ifaceName, info);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnPage::sendVpnStateChangeSignal(QString uuid, ConnectState state)
|
||||||
|
{
|
||||||
|
if (state == Activating || state == Deactivating) {
|
||||||
|
if (m_activeResourse->connectionIsVirtual(uuid)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Q_EMIT this->vpnConnectChanged(state);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnPage::updateConnectionProperty(KyConnectItem *p_connectItem)
|
||||||
|
{
|
||||||
|
QString newUuid = p_connectItem->m_connectUuid;
|
||||||
|
|
||||||
|
if (m_netConnectionMap.contains(newUuid)) {
|
||||||
|
QListWidgetItem *p_listWidgetItem = m_netConnectionMap.value(newUuid);
|
||||||
|
VpnListItem *p_lanItem = (VpnListItem*)m_vpnListWidget->itemWidget(p_listWidgetItem);
|
||||||
|
if (p_connectItem->m_connectName != p_lanItem->getConnectionName()){
|
||||||
|
//只要名字改变就要删除,重新插入,主要是为了排序
|
||||||
|
deleteConnectionMapItem(m_netConnectionMap, m_vpnListWidget, newUuid);
|
||||||
|
QListWidgetItem *p_sortListWidgetItem = insertNewItem(p_connectItem, m_vpnListWidget);
|
||||||
|
if (m_netConnectionMap.contains(newUuid)) {
|
||||||
|
qDebug()<<LOG_FLAG << "has contained connection" << newUuid;
|
||||||
|
}
|
||||||
|
m_netConnectionMap.insert(newUuid, p_sortListWidgetItem);
|
||||||
|
} else if (p_connectItem->m_connectPath != p_lanItem->getConnectionPath()) {
|
||||||
|
p_lanItem->updateConnectionPath(p_connectItem->m_connectPath);
|
||||||
|
}
|
||||||
|
} else if (!m_activeConnectionMap.contains(newUuid)){
|
||||||
|
if (p_connectItem->m_ifaceName.isEmpty()) {
|
||||||
|
QListWidgetItem *p_listWidgetItem = insertNewItem(p_connectItem, m_vpnListWidget);
|
||||||
|
if (m_netConnectionMap.contains(newUuid)) {
|
||||||
|
qDebug()<<LOG_FLAG << "has contained connection uuid" << newUuid;
|
||||||
|
}
|
||||||
|
m_netConnectionMap.insert(newUuid, p_listWidgetItem);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
qWarning() << LOG_FLAG << newUuid <<" is in activemap, so not process.";
|
||||||
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnPage::updateActiveConnectionProperty(KyConnectItem *p_connectItem)
|
||||||
|
{
|
||||||
|
QString newUuid = p_connectItem->m_connectUuid;
|
||||||
|
|
||||||
|
if (m_activeConnectionMap.contains(newUuid)) {
|
||||||
|
QListWidgetItem *p_listWidgetItem = m_activeConnectionMap.value(newUuid);
|
||||||
|
VpnListItem *p_lanItem = (VpnListItem *)m_vpnListWidget->itemWidget(p_listWidgetItem);
|
||||||
|
if (p_lanItem->getConnectionName() != p_connectItem->m_connectName) {
|
||||||
|
p_lanItem->updateConnectionName(p_connectItem->m_connectName);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (p_lanItem->getConnectionName() != p_connectItem->m_connectPath) {
|
||||||
|
p_lanItem->updateConnectionPath(p_connectItem->m_connectPath);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnPage::onUpdateConnection(QString uuid)
|
||||||
|
{
|
||||||
|
if (!m_connectResourse->isWiredConnection(uuid)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
qDebug() << "[VpnPage]:Connection property Changed." << Q_FUNC_INFO << __LINE__;
|
||||||
|
|
||||||
|
KyConnectItem *p_newItem = nullptr;
|
||||||
|
if (m_connectResourse->isActivatedConnection(uuid)) {
|
||||||
|
p_newItem = m_activeResourse->getActiveConnectionByUuid(uuid);
|
||||||
|
if (nullptr == p_newItem) {
|
||||||
|
qWarning()<<"[VpnPage] get item failed, when update activate connection."
|
||||||
|
<<"connection uuid" << uuid;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
updateActiveConnectionProperty(p_newItem);
|
||||||
|
} else {
|
||||||
|
p_newItem = m_connectResourse->getConnectionItemByUuid(uuid);
|
||||||
|
if (nullptr == p_newItem) {
|
||||||
|
qWarning()<<"[VpnPage] get item failed, when update connection."
|
||||||
|
<<"connection uuid"<<uuid;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
updateConnectionProperty(p_newItem);
|
||||||
|
}
|
||||||
|
|
||||||
|
sendVpnUpdateSignal(p_newItem);
|
||||||
|
|
||||||
|
delete p_newItem;
|
||||||
|
p_newItem = nullptr;
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool VpnPage::eventFilter(QObject *watched, QEvent *event)
|
||||||
|
{
|
||||||
|
if (watched == m_settingsLabel) {
|
||||||
|
if (event->type() == QEvent::MouseButtonRelease) {
|
||||||
|
onShowControlCenter();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return QWidget::eventFilter(watched, event);
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnPage::activateVpn(const QString& connUuid)
|
||||||
|
{
|
||||||
|
// qDebug() << "[VpnPage] activateVpn" << connUuid;
|
||||||
|
// if (!m_deviceResource->wiredDeviceIsCarriered(devName)) {
|
||||||
|
// qDebug() << LOG_FLAG << devName << "is not carried, so can not activate connection";
|
||||||
|
// this->showDesktopNotify(tr("Wired Device not carried"), "networkwrong");
|
||||||
|
// } else {
|
||||||
|
// m_wiredConnectOperation->activateConnection(connUuid, devName);
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnPage::deactivateVpn(const QString& connUuid)
|
||||||
|
{
|
||||||
|
qDebug() << "[VpnPage] deactivateVpn" << connUuid;
|
||||||
|
QString name("");
|
||||||
|
// m_wiredConnectOperation->deactivateWiredConnection(name, connUuid);
|
||||||
|
}
|
||||||
|
|
||||||
|
void VpnPage::showDetailPage(QString devName, QString uuid)
|
||||||
|
{
|
||||||
|
#ifdef VPN_DETAIL
|
||||||
|
KyConnectItem *p_item = nullptr;
|
||||||
|
bool isActive = true;
|
||||||
|
|
||||||
|
if (m_connectResourse->isActivatedConnection(uuid)) {
|
||||||
|
p_item = m_activeResourse->getActiveConnectionByUuid(uuid);
|
||||||
|
isActive = true;
|
||||||
|
} else {
|
||||||
|
p_item = m_connectResourse->getConnectionItemByUuid(uuid);
|
||||||
|
isActive = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (nullptr == p_item) {
|
||||||
|
qWarning()<<"[VpnPage] GetConnectionItemByUuid is empty when showDetailPage."
|
||||||
|
<<"device name"<<devName
|
||||||
|
<<"connect uuid"<<uuid;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
NetDetail *netDetail = new NetDetail(devName, p_item->m_connectName, uuid, isActive, false, false);
|
||||||
|
netDetail->show();
|
||||||
|
|
||||||
|
delete p_item;
|
||||||
|
p_item = nullptr;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
bool VpnPage::vpnIsConnected()
|
||||||
|
{
|
||||||
|
if (m_activeResourse->wiredConnectIsActived()) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,124 @@
|
||||||
|
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 Tianjin KYLIN Information Technology Co., Ltd.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#ifndef VPNPAGE_H
|
||||||
|
#define VPNPAGE_H
|
||||||
|
|
||||||
|
#include "divider.h"
|
||||||
|
#include <QVBoxLayout>
|
||||||
|
#include <QHBoxLayout>
|
||||||
|
#include <QLabel>
|
||||||
|
#include <QScrollArea>
|
||||||
|
#include <QListWidget>
|
||||||
|
#include <QMap>
|
||||||
|
#include <QGSettings>
|
||||||
|
|
||||||
|
#include "list-items/listitem.h"
|
||||||
|
#include "list-items/vpnlistitem.h"
|
||||||
|
#include "single-pages/singlepage.h"
|
||||||
|
|
||||||
|
#define VPNPAGE_LAYOUT_MARGINS 0,0,0,0
|
||||||
|
|
||||||
|
class VpnListItem;
|
||||||
|
|
||||||
|
class VpnPage : public SinglePage
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
explicit VpnPage(QWidget *parent = nullptr);
|
||||||
|
~VpnPage();
|
||||||
|
|
||||||
|
//for dbus
|
||||||
|
void getVirtualList(QMap<QString, QVector<QStringList> > &map);
|
||||||
|
void activateVpn(const QString& connUuid);
|
||||||
|
void deactivateVpn(const QString& connUuid);
|
||||||
|
void showDetailPage(QString devName, QString uuid);
|
||||||
|
|
||||||
|
bool vpnIsConnected();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
bool eventFilter(QObject *watched, QEvent *event);
|
||||||
|
|
||||||
|
private:
|
||||||
|
void initUI();
|
||||||
|
void initVpnArea();
|
||||||
|
|
||||||
|
inline void initDeviceCombox() { return; }
|
||||||
|
|
||||||
|
QListWidgetItem *insertNewItem(KyConnectItem *itemData, QListWidget *listWidget);
|
||||||
|
QListWidgetItem *addNewItem(KyConnectItem *itemData, QListWidget *listWidget);
|
||||||
|
bool removeConnectionItem(QMap<QString, QListWidgetItem *> &connectMap,
|
||||||
|
QListWidget *lanListWidget, QString path);
|
||||||
|
|
||||||
|
void constructConnectionArea();
|
||||||
|
void constructActiveConnectionArea();
|
||||||
|
|
||||||
|
void updateConnectionArea(KyConnectItem *p_newItem);
|
||||||
|
void updateActivatedConnectionArea(KyConnectItem *p_newItem);
|
||||||
|
void updateConnectionState(QMap<QString, QListWidgetItem *> &connectMap,
|
||||||
|
QListWidget *lanListWidget, QString uuid, ConnectState state);
|
||||||
|
|
||||||
|
void updateActiveConnectionProperty(KyConnectItem *p_connectItem);
|
||||||
|
void updateConnectionProperty(KyConnectItem *p_connectItem);
|
||||||
|
|
||||||
|
void sendVpnUpdateSignal(KyConnectItem *p_connectItem);
|
||||||
|
void sendVpnAddSignal(KyConnectItem *p_connectItem);
|
||||||
|
void sendVpnStateChangeSignal(QString uuid, ConnectState state);
|
||||||
|
|
||||||
|
void clearConnectionMap(QMap<QString, QListWidgetItem *> &connectMap,
|
||||||
|
QListWidget *lanListWidget);
|
||||||
|
void deleteConnectionMapItem(QMap<QString, QListWidgetItem *> &connectMap,
|
||||||
|
QListWidget *lanListWidget, QString uuid);
|
||||||
|
|
||||||
|
Q_SIGNALS:
|
||||||
|
void vpnAdd(QString devName, QStringList info);
|
||||||
|
void vpnRemove(QString dbusPath);
|
||||||
|
void vpnUpdate(QString devName, QStringList info);
|
||||||
|
|
||||||
|
void vpnActiveConnectionStateChanged(QString interface, QString uuid, int status);
|
||||||
|
void vpnConnectChanged(int state);
|
||||||
|
|
||||||
|
private Q_SLOTS:
|
||||||
|
void onConnectionStateChange(QString uuid, NetworkManager::ActiveConnection::State state,
|
||||||
|
NetworkManager::ActiveConnection::Reason reason);
|
||||||
|
|
||||||
|
void onAddConnection(QString uuid);
|
||||||
|
void onRemoveConnection(QString path);
|
||||||
|
void onUpdateConnection(QString uuid);
|
||||||
|
|
||||||
|
void onShowControlCenter();
|
||||||
|
|
||||||
|
// void onStateChange();
|
||||||
|
|
||||||
|
private:
|
||||||
|
QListWidget * m_vpnListWidget = nullptr;
|
||||||
|
|
||||||
|
// KyNetworkDeviceResourse *m_deviceResource = nullptr;
|
||||||
|
// KyWiredConnectOperation *m_wiredConnectOperation = nullptr;
|
||||||
|
KyActiveConnectResourse *m_activeResourse = nullptr; //激活的连接
|
||||||
|
KyConnectResourse *m_connectResourse = nullptr; //未激活的连接
|
||||||
|
|
||||||
|
QMap<QString, QListWidgetItem *> m_netConnectionMap;
|
||||||
|
QMap<QString, QListWidgetItem *> m_activeConnectionMap;
|
||||||
|
|
||||||
|
public Q_SLOTS:
|
||||||
|
inline void onDeviceComboxIndexChanged(int currentIndex) { return; }
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // LANPAGE_H
|
|
@ -0,0 +1,717 @@
|
||||||
|
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 Tianjin KYLIN Information Technology Co., Ltd.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#include "vpnmainwindow.h"
|
||||||
|
#include "customstyle.h"
|
||||||
|
#include <KWindowEffects>
|
||||||
|
#include <QApplication>
|
||||||
|
#include <QDebug>
|
||||||
|
#include <QDBusReply>
|
||||||
|
#include <QKeyEvent>
|
||||||
|
#include <QProcess>
|
||||||
|
|
||||||
|
#include "kylinnetworkdeviceresource.h"
|
||||||
|
#include "../backend/dbus-interface/kylinagentinterface.h"
|
||||||
|
|
||||||
|
#include "ukuistylehelper/ukuistylehelper.h"
|
||||||
|
#include "windowmanager/windowmanager.h"
|
||||||
|
#include "kysdk/kysdk-system/libkysysinfo.h"
|
||||||
|
|
||||||
|
#define MAINWINDOW_WIDTH 420
|
||||||
|
#define MAINWINDOW_HEIGHT 300
|
||||||
|
#define VPN_LAYOUT_MARGINS 0,12,0,12
|
||||||
|
#define THEME_SCHAME "org.ukui.style"
|
||||||
|
#define COLOR_THEME "styleName"
|
||||||
|
|
||||||
|
const QString v10Sp1 = "V10SP1";
|
||||||
|
const QString intel = "V10SP1-edu";
|
||||||
|
|
||||||
|
#define KEY_PRODUCT_FEATURES "PRODUCT_FEATURES"
|
||||||
|
|
||||||
|
#include <kwindowsystem.h>
|
||||||
|
#include <kwindowsystem_export.h>
|
||||||
|
|
||||||
|
vpnMainWindow::vpnMainWindow(QWidget *parent): QMainWindow(parent)
|
||||||
|
{
|
||||||
|
firstlyStart();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief vpnMainWindow::showMainwindow show主窗口,同时也作为dbus接口提供给外部组件调用
|
||||||
|
*/
|
||||||
|
void vpnMainWindow::showMainwindow()
|
||||||
|
{
|
||||||
|
if (!m_loadFinished) {
|
||||||
|
m_secondaryStartTimer->stop();
|
||||||
|
secondaryStart();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设置主界面跳过任务栏和分页器的属性,隐藏再次展示有可能辉冲刷掉该属性,需要展示时重新设置
|
||||||
|
*/
|
||||||
|
QString platform = QGuiApplication::platformName();
|
||||||
|
if(!platform.startsWith(QLatin1String("wayland"),Qt::CaseInsensitive))
|
||||||
|
{
|
||||||
|
const KWindowInfo info(this->winId(), NET::WMState);
|
||||||
|
if (!info.hasState(NET::SkipTaskbar) || !info.hasState(NET::SkipPager)) {
|
||||||
|
KWindowSystem::setState(this->winId(), NET::SkipTaskbar | NET::SkipPager);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
this->showByWaylandHelper();
|
||||||
|
this->raise();
|
||||||
|
this->activateWindow();
|
||||||
|
Q_EMIT this->mainWindowVisibleChanged(true);
|
||||||
|
#ifdef WITHKYSEC
|
||||||
|
// if (!kysec_is_disabled() && kysec_get_3adm_status() && (getuid() || geteuid())){
|
||||||
|
// if (nullptr != m_vpnPage) {
|
||||||
|
// m_vpnPage->hideSetting();
|
||||||
|
// }
|
||||||
|
// } else {
|
||||||
|
// if (nullptr != m_vpnPage) {
|
||||||
|
// m_vpnPage->showSetting();
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
#endif
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief MainWindow::hideMainwindow 隐藏主页面时要进行的操作,后续可以添加到此函数
|
||||||
|
*/
|
||||||
|
void vpnMainWindow::hideMainwindow()
|
||||||
|
{
|
||||||
|
this->hide();
|
||||||
|
Q_EMIT this->mainWindowVisibleChanged(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
///**
|
||||||
|
// * @brief MainWindow::setWiredDefaultDevice 设置有线设备默认网卡
|
||||||
|
// */
|
||||||
|
//void MainWindow::setWiredDefaultDevice(QString deviceName)
|
||||||
|
//{
|
||||||
|
//// m_vpnPage->updateDefaultDevice(deviceName);
|
||||||
|
//}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief MainWindow::firstlyStart 一级启动,执行重要且不耗时的启动操作
|
||||||
|
*/
|
||||||
|
void vpnMainWindow::firstlyStart()
|
||||||
|
{
|
||||||
|
initWindowProperties();
|
||||||
|
initTransparency();
|
||||||
|
initUI();
|
||||||
|
initDbusConnnect();
|
||||||
|
initWindowTheme();
|
||||||
|
initTrayIcon();
|
||||||
|
initPlatform();
|
||||||
|
installEventFilter(this);
|
||||||
|
m_secondaryStartTimer = new QTimer(this);
|
||||||
|
connect(m_secondaryStartTimer, &QTimer::timeout, this, [ = ]() {
|
||||||
|
m_secondaryStartTimer->stop();
|
||||||
|
secondaryStart();//满足条件后执行比较耗时的二级启动
|
||||||
|
});
|
||||||
|
m_secondaryStartTimer->start(5 * 1000);
|
||||||
|
|
||||||
|
m_createPagePtrMap.clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief vpnMainWindow::secondaryStart 二级启动,可以将较耗时的初始化操作放到此处执行
|
||||||
|
*/
|
||||||
|
void vpnMainWindow::secondaryStart()
|
||||||
|
{
|
||||||
|
if (m_loadFinished)
|
||||||
|
return;
|
||||||
|
m_loadFinished = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief vpnMainWindow::initPlatform 初始化平台信息
|
||||||
|
*/
|
||||||
|
void vpnMainWindow::initPlatform()
|
||||||
|
{
|
||||||
|
char* projectName = kdk_system_get_projectName();
|
||||||
|
QString strProjectName(projectName);
|
||||||
|
free(projectName);
|
||||||
|
projectName = NULL;
|
||||||
|
if(v10Sp1.compare(strProjectName,Qt::CaseInsensitive) == 0) {
|
||||||
|
unsigned int feature = kdk_system_get_productFeatures();
|
||||||
|
if (feature == 3) {
|
||||||
|
m_isShowInCenter = true;
|
||||||
|
}
|
||||||
|
} else if (intel.compare(strProjectName,Qt::CaseInsensitive) == 0) {
|
||||||
|
m_isShowInCenter = true;
|
||||||
|
}
|
||||||
|
qDebug() << "projectName" << projectName << m_isShowInCenter;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief vpnMainWindow::initWindowProperties 初始化一些窗口属性
|
||||||
|
*/
|
||||||
|
void vpnMainWindow::initWindowProperties()
|
||||||
|
{
|
||||||
|
this->setWindowTitle(tr("kylin-vpn"));
|
||||||
|
// this->setFixedSize(MAINWINDOW_WIDTH, MAINWINDOW_HEIGHT);
|
||||||
|
// //绘制毛玻璃特效
|
||||||
|
// this->setAttribute(Qt::WA_TranslucentBackground, true); //透明
|
||||||
|
this->setFocusPolicy(Qt::NoFocus);
|
||||||
|
|
||||||
|
QString platform = QGuiApplication::platformName();
|
||||||
|
if(!platform.startsWith(QLatin1String("wayland"),Qt::CaseInsensitive))
|
||||||
|
{
|
||||||
|
QPainterPath path;
|
||||||
|
auto rect = this->rect();
|
||||||
|
// path.addRoundedRect(rect, 12, 12);
|
||||||
|
path.addRect(rect);
|
||||||
|
KWindowEffects::enableBlurBehind(this->winId(), true, QRegion(path.toFillPolygon().toPolygon())); //背景模糊
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void vpnMainWindow::paintEvent(QPaintEvent *event)
|
||||||
|
{
|
||||||
|
QPainter painter(this);
|
||||||
|
painter.setRenderHint(QPainter::Antialiasing); // 反锯齿;
|
||||||
|
painter.setPen(Qt::transparent);
|
||||||
|
// auto rect = this->rect();
|
||||||
|
// painter.drawRoundedRect(rect, 12, 12); //窗口圆角
|
||||||
|
}
|
||||||
|
|
||||||
|
void vpnMainWindow::initTransparency()
|
||||||
|
{
|
||||||
|
if(QGSettings::isSchemaInstalled(TRANSPARENCY_GSETTINGS)) {
|
||||||
|
m_transGsettings = new QGSettings(TRANSPARENCY_GSETTINGS);
|
||||||
|
if(m_transGsettings->keys().contains(QString("transparency"))) {
|
||||||
|
m_transparency = m_transGsettings->get("transparency").toDouble() + 0.15;
|
||||||
|
m_transparency = (m_transparency > 1) ? 1 : m_transparency;
|
||||||
|
connect(m_transGsettings, &QGSettings::changed, this, &vpnMainWindow::onTransChanged);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void vpnMainWindow::onTransChanged()
|
||||||
|
{
|
||||||
|
m_transparency = m_transGsettings->get("transparency").toDouble() + 0.15;
|
||||||
|
m_transparency = (m_transparency > 1) ? 1 : m_transparency;
|
||||||
|
paintWithTrans();
|
||||||
|
}
|
||||||
|
|
||||||
|
void vpnMainWindow::paintWithTrans()
|
||||||
|
{
|
||||||
|
QPalette pal = this->palette();
|
||||||
|
QColor color = qApp->palette().base().color();
|
||||||
|
color.setAlphaF(m_transparency);
|
||||||
|
pal.setColor(QPalette::Window, color);
|
||||||
|
this->setPalette(pal);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief vpnMainWindow::initUI 初始化窗口内控件
|
||||||
|
*/
|
||||||
|
void vpnMainWindow::initUI()
|
||||||
|
{
|
||||||
|
m_vpnWidget = new QWidget(this);
|
||||||
|
this->setCentralWidget(m_vpnWidget);
|
||||||
|
m_vpnLayout = new QVBoxLayout(m_vpnWidget);
|
||||||
|
m_vpnLayout->setContentsMargins(VPN_LAYOUT_MARGINS);
|
||||||
|
m_vpnWidget->setLayout(m_vpnLayout);
|
||||||
|
m_vpnWidget->setAttribute(Qt::WA_TranslucentBackground, true); // 背景透明 解决切换黑屏问题
|
||||||
|
|
||||||
|
m_vpnPage = new VpnPage(m_vpnWidget);
|
||||||
|
m_vpnLayout->addWidget(m_vpnPage);
|
||||||
|
|
||||||
|
paintWithTrans();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief vpnMainWindow::initTrayIcon 初始化托盘图标和托盘右键菜单
|
||||||
|
*/
|
||||||
|
void vpnMainWindow::initTrayIcon()
|
||||||
|
{
|
||||||
|
m_vpnTrayIcon = new QSystemTrayIcon(this);
|
||||||
|
m_vpnTrayIconMenu = new QMenu();
|
||||||
|
// m_showMainwindowAction = new QAction(tr("Show MainWindow"),this);
|
||||||
|
// m_showSettingsAction = new QAction(tr("Settings"),this);
|
||||||
|
|
||||||
|
m_vpnTrayIcon->setToolTip(QString(tr("vpn tool")));
|
||||||
|
m_vpnTrayIcon->setIcon(QIcon::fromTheme("ukui-vpn-symbolic"));
|
||||||
|
// m_showSettingsAction->setIcon(QIcon::fromTheme("document-page-setup-symbolic", QIcon(":/res/x/setup.png")) );
|
||||||
|
//// m_vpnTrayIconMenu->addAction(m_showMainwindowAction);
|
||||||
|
// m_vpnTrayIconMenu->addAction(m_showSettingsAction);
|
||||||
|
// m_vpnTrayIcon->setContextMenu(m_vpnTrayIconMenu);
|
||||||
|
// m_vpnTrayIcon->setIcon(QIcon::fromTheme("network-wired-signal-excellent-symbolic"));
|
||||||
|
// m_iconStatus = IconActiveType::LAN_CONNECTED;
|
||||||
|
// onRefreshTrayIcon();
|
||||||
|
|
||||||
|
connect(m_vpnTrayIcon, &QSystemTrayIcon::activated, this, &vpnMainWindow::onTrayIconActivated);
|
||||||
|
//// connect(m_showMainwindowAction, &QAction::triggered, this, &MainWindow::onShowMainwindowActionTriggled);
|
||||||
|
// connect(m_showSettingsAction, &QAction::triggered, this, &MainWindow::onShowSettingsActionTriggled);
|
||||||
|
m_vpnTrayIcon->show();
|
||||||
|
}
|
||||||
|
|
||||||
|
void vpnMainWindow::initDbusConnnect()
|
||||||
|
{
|
||||||
|
// connect(m_vpnPage, &LanPage::deviceStatusChanged, this, &MainWindow::deviceStatusChanged);
|
||||||
|
// connect(m_vpnPage, &LanPage::deviceNameChanged, this, &MainWindow::deviceNameChanged);
|
||||||
|
// connect(m_vpnPage, &LanPage::activateFailed, this, &MainWindow::activateFailed);
|
||||||
|
// connect(m_vpnPage, &LanPage::deactivateFailed, this, &MainWindow::deactivateFailed);
|
||||||
|
|
||||||
|
connect(m_vpnPage, &VpnPage::vpnAdd, this, &vpnMainWindow::vpnAdd);
|
||||||
|
connect(m_vpnPage, &VpnPage::vpnRemove, this, &vpnMainWindow::vpnRemove);
|
||||||
|
connect(m_vpnPage, &VpnPage::vpnUpdate, this, &vpnMainWindow::vpnUpdate);
|
||||||
|
connect(m_vpnPage, &VpnPage::vpnActiveConnectionStateChanged, this, &vpnMainWindow::vpnActiveConnectionStateChanged);
|
||||||
|
// connect(m_vpnPage, &LanPage::lanConnectChanged, this, &MainWindow::onLanConnectStatusToChangeTrayIcon);
|
||||||
|
|
||||||
|
// //模式切换
|
||||||
|
// QDBusConnection::sessionBus().connect(QString("com.kylin.statusmanager.interfacer"),
|
||||||
|
// QString("/"),
|
||||||
|
// QString("com.kylin.statusmanager.interface"),
|
||||||
|
// QString("mode_change_signal"), this, SLOT(onTabletModeChanged(bool)));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief vpnMainWindow::resetWindowPosition 重新计算窗口位置
|
||||||
|
*/
|
||||||
|
void vpnMainWindow::resetWindowPosition()
|
||||||
|
{
|
||||||
|
|
||||||
|
if (m_isShowInCenter) {
|
||||||
|
QRect availableGeometry = qApp->primaryScreen()->availableGeometry();
|
||||||
|
QRect rect((availableGeometry.width() - this->width())/2, (availableGeometry.height() - this->height())/2,
|
||||||
|
this->width(), this->height());
|
||||||
|
kdk::WindowManager::setGeometry(this->windowHandle(), rect);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
#define MARGIN 4
|
||||||
|
#define PANEL_TOP 1
|
||||||
|
#define PANEL_LEFT 2
|
||||||
|
#define PANEL_RIGHT 3
|
||||||
|
//#define PANEL_BOTTOM 4
|
||||||
|
if (!m_positionInterface) {
|
||||||
|
m_positionInterface = new QDBusInterface("org.ukui.panel",
|
||||||
|
"/panel/position",
|
||||||
|
"org.ukui.panel",
|
||||||
|
QDBusConnection::sessionBus());
|
||||||
|
}
|
||||||
|
QRect rect;
|
||||||
|
QDBusReply<QVariantList> reply = m_positionInterface->call("GetPrimaryScreenGeometry");
|
||||||
|
//reply获取的参数共5个,分别是 主屏可用区域的起点x坐标,主屏可用区域的起点y坐标,主屏可用区域的宽度,主屏可用区域高度,任务栏位置
|
||||||
|
if (!m_positionInterface->isValid() || !reply.isValid() || reply.value().size() < 5) {
|
||||||
|
qCritical() << QDBusConnection::sessionBus().lastError().message();
|
||||||
|
kdk::WindowManager::setGeometry(this->windowHandle(), QRect(0, 0, this->width(), this->height()));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
QVariantList position_list = reply.value();
|
||||||
|
int position = position_list.at(4).toInt();
|
||||||
|
switch(position){
|
||||||
|
case PANEL_TOP:
|
||||||
|
//任务栏位于上方
|
||||||
|
rect = QRect(position_list.at(0).toInt() + position_list.at(2).toInt() - this->width() - MARGIN,
|
||||||
|
position_list.at(1).toInt() + MARGIN,
|
||||||
|
this->width(), this->height());
|
||||||
|
break;
|
||||||
|
//任务栏位于左边
|
||||||
|
case PANEL_LEFT:
|
||||||
|
rect = QRect(position_list.at(0).toInt() + MARGIN,
|
||||||
|
position_list.at(1).toInt() + reply.value().at(3).toInt() - this->height() - MARGIN,
|
||||||
|
this->width(), this->height());
|
||||||
|
break;
|
||||||
|
//任务栏位于右边
|
||||||
|
case PANEL_RIGHT:
|
||||||
|
rect = QRect(position_list.at(0).toInt() + position_list.at(2).toInt() - this->width() - MARGIN,
|
||||||
|
position_list.at(1).toInt() + reply.value().at(3).toInt() - this->height() - MARGIN,
|
||||||
|
this->width(), this->height());
|
||||||
|
break;
|
||||||
|
//任务栏位于下方
|
||||||
|
default:
|
||||||
|
rect = QRect(position_list.at(0).toInt() + position_list.at(2).toInt() - this->width() - MARGIN,
|
||||||
|
position_list.at(1).toInt() + reply.value().at(3).toInt() - this->height() - MARGIN,
|
||||||
|
this->width(), this->height());
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
kdk::WindowManager::setGeometry(this->windowHandle(), rect);
|
||||||
|
qDebug() << " Position of ukui-panel is " << position << "; Position of mainwindow is " << this->geometry() << "." << Q_FUNC_INFO << __LINE__;
|
||||||
|
}
|
||||||
|
|
||||||
|
///**
|
||||||
|
// * @brief MainWindow::resetTrayIconTool 重新获取网络连接状态并重新设置图标和tooltip
|
||||||
|
// */
|
||||||
|
//void MainWindow::resetTrayIconTool()
|
||||||
|
//{
|
||||||
|
// //ZJP_TODO 检测当前连接的是有线还是无线,是否可用,设置图标和tooltip,图标最好提前define
|
||||||
|
//// int connectivity = objKyDBus->getNetworkConectivity();
|
||||||
|
//// qDebug() << "Value of current network Connectivity property : "<< connectivity;
|
||||||
|
//// switch (connectivity) {
|
||||||
|
//// case UnknownConnectivity:
|
||||||
|
//// case Portal:
|
||||||
|
//// case Limited:
|
||||||
|
//// setTrayIcon(iconLanOnlineNoInternet);
|
||||||
|
//// trayIcon->setToolTip(QString(tr("Network Connected But Can Not Access Internet")));
|
||||||
|
//// break;
|
||||||
|
//// case NoConnectivity:
|
||||||
|
//// case Full:
|
||||||
|
//// setTrayIcon(iconLanOnline);
|
||||||
|
//// trayIcon->setToolTip(QString(tr("kylin-nm")));
|
||||||
|
//// break;
|
||||||
|
//// }
|
||||||
|
// qDebug() << "Has set tray icon to be XXX." << Q_FUNC_INFO << __LINE__;
|
||||||
|
//}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief vpnMainWindow::initWindowTheme 初始化窗口主题并创建信号槽
|
||||||
|
*/
|
||||||
|
void vpnMainWindow::initWindowTheme()
|
||||||
|
{
|
||||||
|
const QByteArray style_id(THEME_SCHAME);
|
||||||
|
if (QGSettings::isSchemaInstalled(style_id)) {
|
||||||
|
m_styleGsettings = new QGSettings(style_id);
|
||||||
|
connect(m_styleGsettings, &QGSettings::changed, this, &vpnMainWindow::onThemeChanged);
|
||||||
|
} else {
|
||||||
|
qWarning() << "Gsettings interface \"org.ukui.style\" is not exist!" << Q_FUNC_INFO << __LINE__;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
///**
|
||||||
|
// * @brief MainWindow::resetWindowTheme 读取和设置窗口主题
|
||||||
|
// */
|
||||||
|
//void MainWindow::resetWindowTheme()
|
||||||
|
//{
|
||||||
|
// if (!m_styleGsettings) { return; }
|
||||||
|
// QString currentTheme = m_styleGsettings->get(COLOR_THEME).toString();
|
||||||
|
// auto app = static_cast<QApplication*>(QCoreApplication::instance());
|
||||||
|
// if(currentTheme == "ukui-dark" || currentTheme == "ukui-black"){
|
||||||
|
// app->setStyle(new CustomStyle("ukui-dark"));
|
||||||
|
// qDebug() << "Has set color theme to ukui-dark." << Q_FUNC_INFO << __LINE__;
|
||||||
|
// Q_EMIT qApp->paletteChanged(qApp->palette());
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// app->setStyle(new CustomStyle("ukui-light"));
|
||||||
|
// qDebug() << "Has set color theme to " << currentTheme << Q_FUNC_INFO << __LINE__;
|
||||||
|
// Q_EMIT qApp->paletteChanged(qApp->palette());
|
||||||
|
// return;
|
||||||
|
//}
|
||||||
|
|
||||||
|
///**
|
||||||
|
// * @brief MainWindow::showControlCenter 打开控制面板网络界面
|
||||||
|
// */
|
||||||
|
//void MainWindow::showControlCenter()
|
||||||
|
//{
|
||||||
|
// QProcess process;
|
||||||
|
// if (!m_vpnPage->lanIsConnected() && m_wlanWidget->checkWlanStatus(NetworkManager::ActiveConnection::State::Activated)){
|
||||||
|
// process.startDetached("ukui-control-center -m wlanconnect");
|
||||||
|
// } else {
|
||||||
|
// process.startDetached("ukui-control-center -m netconnect");
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
|
void vpnMainWindow::showByWaylandHelper()
|
||||||
|
{
|
||||||
|
//去除窗管标题栏,传入参数为QWidget*
|
||||||
|
kdk::UkuiStyleHelper::self()->removeHeader(this);
|
||||||
|
this->show();
|
||||||
|
resetWindowPosition();
|
||||||
|
//设置窗体位置,传入参数为QWindow*,QRect
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void vpnMainWindow::setCentralWidgetType(IconActiveType iconStatus)
|
||||||
|
{
|
||||||
|
if (iconStatus == WLAN_CONNECTED || iconStatus == WLAN_CONNECTED_LIMITED) {
|
||||||
|
// m_vpnWidget->setCurrentIndex(WLAN_PAGE_INDEX);
|
||||||
|
} else if (iconStatus == ACTIVATING) {
|
||||||
|
// if (m_wlanWidget->checkWlanStatus(NetworkManager::ActiveConnection::State::Activating)) {
|
||||||
|
// m_vpnWidget->setCurrentIndex(WLAN_PAGE_INDEX);
|
||||||
|
// } else {
|
||||||
|
// m_vpnWidget->setCurrentIndex(LAN_PAGE_INDEX);
|
||||||
|
// }
|
||||||
|
} else {
|
||||||
|
// m_vpnWidget->setCurrentIndex(LAN_PAGE_INDEX);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief vpnMainWindow::onTrayIconActivated 点击托盘图标的槽函数
|
||||||
|
*/
|
||||||
|
void vpnMainWindow::onTrayIconActivated(QSystemTrayIcon::ActivationReason reason)
|
||||||
|
{
|
||||||
|
setCentralWidgetType(m_iconStatus);
|
||||||
|
switch(reason) {
|
||||||
|
case QSystemTrayIcon::Context:
|
||||||
|
m_vpnTrayIconMenu->popup(QCursor::pos());
|
||||||
|
break;
|
||||||
|
case QSystemTrayIcon::Trigger:
|
||||||
|
if (this->isVisible()) {
|
||||||
|
qDebug() << "Received signal of tray icon activated, will hide mainwindow." << Q_FUNC_INFO << __LINE__;
|
||||||
|
hideMainwindow();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
qDebug() << "Received signal of tray icon activated, will show mainwindow." << Q_FUNC_INFO << __LINE__;
|
||||||
|
this->showMainwindow();
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
// if (reason == QSystemTrayIcon::ActivationReason::Context) {
|
||||||
|
// m_vpnTrayIconMenu->popup(QCursor::pos());
|
||||||
|
// } else {
|
||||||
|
// if (this->isVisible()) {
|
||||||
|
// qDebug() << "Received signal of tray icon activated, will hide mainwindow." << Q_FUNC_INFO << __LINE__;
|
||||||
|
// hideMainwindow();
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// qDebug() << "Received signal of tray icon activated, will show mainwindow." << Q_FUNC_INFO << __LINE__;
|
||||||
|
// this->showMainwindow();
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
|
||||||
|
//void MainWindow::onShowMainwindowActionTriggled()
|
||||||
|
//{
|
||||||
|
// showMainwindow();
|
||||||
|
//}
|
||||||
|
|
||||||
|
//void MainWindow::onShowSettingsActionTriggled()
|
||||||
|
//{
|
||||||
|
// showControlCenter();
|
||||||
|
//}
|
||||||
|
|
||||||
|
void vpnMainWindow::onThemeChanged(const QString &key)
|
||||||
|
{
|
||||||
|
if (key == COLOR_THEME) {
|
||||||
|
qDebug() << "Received signal of theme changed, will reset theme." << Q_FUNC_INFO << __LINE__;
|
||||||
|
paintWithTrans();
|
||||||
|
Q_EMIT qApp->paletteChanged(qApp->palette());
|
||||||
|
} else {
|
||||||
|
qDebug() << "Received signal of theme changed, key=" << key << " will do nothing." << Q_FUNC_INFO << __LINE__;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void vpnMainWindow::onRefreshTrayIcon()
|
||||||
|
{
|
||||||
|
//更新托盘图标显示
|
||||||
|
// m_iconTimer->stop();
|
||||||
|
// if (m_vpnPage->lanIsConnected()) {
|
||||||
|
// m_vpnTrayIcon->setIcon(QIcon::fromTheme("network-wired-connected-symbolic"));
|
||||||
|
// m_iconStatus = IconActiveType::LAN_CONNECTED;
|
||||||
|
// } else {
|
||||||
|
// m_vpnTrayIcon->setIcon(QIcon::fromTheme("network-wired-disconnected-symbolic"));
|
||||||
|
// m_iconStatus = IconActiveType::NOT_CONNECTED;
|
||||||
|
// }
|
||||||
|
|
||||||
|
NetworkManager::Connectivity connecttivity;
|
||||||
|
if (connecttivity != NetworkManager::Connectivity::Full) {
|
||||||
|
if (m_iconStatus == IconActiveType::LAN_CONNECTED) {
|
||||||
|
m_vpnTrayIcon->setIcon(QIcon::fromTheme("network-error-symbolic"));
|
||||||
|
m_iconStatus = IconActiveType::LAN_CONNECTED_LIMITED;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//void vpnMainWindow::onSetTrayIconLoading()
|
||||||
|
//{
|
||||||
|
// if (m_currentIconIndex > 11) {
|
||||||
|
// m_currentIconIndex = 0;
|
||||||
|
// }
|
||||||
|
// m_vpnTrayIcon->setIcon(m_loadIcons.at(m_currentIconIndex));
|
||||||
|
// m_iconStatus = IconActiveType::ACTIVATING;
|
||||||
|
// m_currentIconIndex ++;
|
||||||
|
//}
|
||||||
|
|
||||||
|
//void MainWindow::onLanConnectStatusToChangeTrayIcon(int state)
|
||||||
|
//{
|
||||||
|
// qDebug() << "lan state:" << state << Q_FUNC_INFO << __LINE__;
|
||||||
|
// if (state==1 || state==3){
|
||||||
|
// m_lanIsLoading = true;
|
||||||
|
// m_iconTimer->start(LOADING_TRAYICON_TIMER_MS);
|
||||||
|
// } else {
|
||||||
|
// m_lanIsLoading = false;
|
||||||
|
// if (m_wlanIsLoading == false) {
|
||||||
|
// onRefreshTrayIcon();
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
|
//void MainWindow::onTabletModeChanged(bool mode)
|
||||||
|
//{
|
||||||
|
// qDebug() << "TabletMode change" << mode;
|
||||||
|
// Q_UNUSED(mode)
|
||||||
|
// //模式切换时,隐藏主界面
|
||||||
|
// hideMainwindow();
|
||||||
|
//}
|
||||||
|
|
||||||
|
//void MainWindow::onShowMainWindow(int type)
|
||||||
|
//{
|
||||||
|
// m_vpnWidget->setCurrentIndex(type);
|
||||||
|
|
||||||
|
// if(QApplication::activeWindow() != this) {
|
||||||
|
// this->showMainwindow();
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
|
//void MainWindow::onConnectivityChanged(NetworkManager::Connectivity connectivity)
|
||||||
|
//{
|
||||||
|
// if (!m_vpnTrayIcon) {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if (m_iconStatus == ACTIVATING) {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// onRefreshTrayIcon();
|
||||||
|
//}
|
||||||
|
|
||||||
|
///**
|
||||||
|
// * @brief MainWindow::keyPressEvent 按esc键关闭主界面
|
||||||
|
// * @param event
|
||||||
|
// */
|
||||||
|
//void MainWindow::keyPressEvent(QKeyEvent *event)
|
||||||
|
//{
|
||||||
|
// if (event->key() == Qt::Key_Escape) {
|
||||||
|
// hideMainwindow();
|
||||||
|
// }
|
||||||
|
// return QWidget::keyPressEvent(event);
|
||||||
|
//}
|
||||||
|
|
||||||
|
///**
|
||||||
|
// * @brief MainWindow::eventFilter 事件过滤器
|
||||||
|
// * @param watched
|
||||||
|
// * @param event
|
||||||
|
// * @return
|
||||||
|
// */
|
||||||
|
bool vpnMainWindow::eventFilter(QObject *watched, QEvent *event)
|
||||||
|
{
|
||||||
|
if (event->type() == QEvent::ActivationChange) {
|
||||||
|
if(QApplication::activeWindow() != this) {
|
||||||
|
hideMainwindow();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return QMainWindow::eventFilter(watched,event);
|
||||||
|
}
|
||||||
|
|
||||||
|
void vpnMainWindow::getVirtualList(QMap<QString, QVector<QStringList>> &map)
|
||||||
|
{
|
||||||
|
map.clear();
|
||||||
|
if (nullptr != m_vpnPage) {
|
||||||
|
m_vpnPage->getVirtualList(map);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//void MainWindow::setWiredDeviceEnable(const QString& devName, bool enable)
|
||||||
|
//{
|
||||||
|
// m_vpnPage->setWiredDeviceEnable(devName, enable);
|
||||||
|
//}
|
||||||
|
//void MainWindow::showPropertyWidget(QString devName, QString ssid)
|
||||||
|
//{
|
||||||
|
// KyNetworkDeviceResourse *devResourse = new KyNetworkDeviceResourse();
|
||||||
|
// QStringList wiredDeviceList;
|
||||||
|
// wiredDeviceList.clear();
|
||||||
|
// devResourse->getNetworkDeviceList(NetworkManager::Device::Type::Ethernet, wiredDeviceList);
|
||||||
|
// if (wiredDeviceList.contains(devName)) {
|
||||||
|
// qDebug() << "showPropertyWidget device type wired device name " << devName << " uuid " << ssid;
|
||||||
|
// m_vpnPage->showDetailPage(devName, ssid);
|
||||||
|
// delete devResourse;
|
||||||
|
// devResourse = nullptr;
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// QStringList wirelessDeviceList;
|
||||||
|
// wirelessDeviceList.clear();
|
||||||
|
// devResourse->getNetworkDeviceList(NetworkManager::Device::Type::Wifi, wirelessDeviceList);
|
||||||
|
// if (wirelessDeviceList.contains(devName)) {
|
||||||
|
// qDebug() << "showPropertyWidget device type wireless device name " << devName << " ssid " << ssid;
|
||||||
|
// m_wlanWidget->showDetailPage(devName, ssid);
|
||||||
|
// delete devResourse;
|
||||||
|
// devResourse = nullptr;
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// qWarning() << "showPropertyWidget no such device " << devName;
|
||||||
|
// delete devResourse;
|
||||||
|
// devResourse = nullptr;
|
||||||
|
//}
|
||||||
|
|
||||||
|
//void MainWindow::showCreateWiredConnectWidget(const QString devName)
|
||||||
|
//{
|
||||||
|
// qDebug() << "showCreateWiredConnectWidget! devName = " << devName;
|
||||||
|
// if (m_createPagePtrMap.contains(devName)) {
|
||||||
|
// if (m_createPagePtrMap[devName] != nullptr) {
|
||||||
|
// qDebug() << "showCreateWiredConnectWidget" << devName << "already create,just raise";
|
||||||
|
|
||||||
|
// KWindowSystem::raiseWindow(m_createPagePtrMap[devName]->winId());
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// NetDetail *netDetail = new NetDetail(devName, "", "", false, false, true, this);
|
||||||
|
// connect(netDetail, &NetDetail::createPageClose, [&](QString interfaceName){
|
||||||
|
// if (m_createPagePtrMap.contains(interfaceName)) {
|
||||||
|
// m_createPagePtrMap[interfaceName] = nullptr;
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
// m_createPagePtrMap.insert(devName, netDetail);
|
||||||
|
// netDetail->show();
|
||||||
|
//}
|
||||||
|
|
||||||
|
//void MainWindow::showAddOtherWlanWidget(QString devName)
|
||||||
|
//{
|
||||||
|
// qDebug() << "showAddOtherWlanWidget! devName = " << devName;
|
||||||
|
// if (m_addOtherPagePtrMap.contains(devName)) {
|
||||||
|
// if (m_addOtherPagePtrMap[devName] != nullptr) {
|
||||||
|
// qDebug() << "showAddOtherWlanWidget" << devName << "already create,just raise";
|
||||||
|
|
||||||
|
// KWindowSystem::raiseWindow(m_addOtherPagePtrMap[devName]->winId());
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
//#if 0
|
||||||
|
// NetDetail *netDetail = new NetDetail(devName, "", "", false, true, true, this);
|
||||||
|
// connect(netDetail, &NetDetail::createPageClose, [&](QString interfaceName){
|
||||||
|
// if (m_addOtherPagePtrMap.contains(interfaceName)) {
|
||||||
|
// m_addOtherPagePtrMap[interfaceName] = nullptr;
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
// m_addOtherPagePtrMap.insert(devName, netDetail);
|
||||||
|
// netDetail->show();
|
||||||
|
//#endif
|
||||||
|
|
||||||
|
// JoinHiddenWiFiPage *hiddenWiFi =new JoinHiddenWiFiPage(devName);
|
||||||
|
// connect(hiddenWiFi, &JoinHiddenWiFiPage::hiddenWiFiPageClose, [&](QString interfaceName){
|
||||||
|
// if (m_addOtherPagePtrMap.contains(interfaceName)) {
|
||||||
|
// m_addOtherPagePtrMap[interfaceName] = nullptr;
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
// m_addOtherPagePtrMap.insert(devName, hiddenWiFi);
|
||||||
|
// connect(hiddenWiFi, &JoinHiddenWiFiPage::showWlanList, this, &MainWindow::onShowMainWindow);
|
||||||
|
// hiddenWiFi->show();
|
||||||
|
//}
|
||||||
|
|
||||||
|
//有线连接断开
|
||||||
|
void vpnMainWindow::activateVpn(const QString& connUuid)
|
||||||
|
{
|
||||||
|
m_vpnPage->activateVpn(connUuid);
|
||||||
|
}
|
||||||
|
void vpnMainWindow::deactivateVpn(const QString& connUuid)
|
||||||
|
{
|
||||||
|
m_vpnPage->deactivateVpn(connUuid);
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,167 @@
|
||||||
|
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||||
|
*
|
||||||
|
* Copyright (C) 2022 Tianjin KYLIN Information Technology Co., Ltd.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#ifndef VPNMAINWINDOW_H
|
||||||
|
#define VPNMAINWINDOW_H
|
||||||
|
|
||||||
|
#include <QMainWindow>
|
||||||
|
#include <QTableWidget>
|
||||||
|
#include <QGSettings/QGSettings>
|
||||||
|
#include <QTimer>
|
||||||
|
#include <QSystemTrayIcon>
|
||||||
|
#include <QMenu>
|
||||||
|
#include <QAction>
|
||||||
|
#include <QDBusInterface>
|
||||||
|
#include <QMap>
|
||||||
|
#include <QScreen>
|
||||||
|
#include "vpnpage.h"
|
||||||
|
#include "mainwindow.h"
|
||||||
|
|
||||||
|
#ifdef WITHKYSEC
|
||||||
|
#include <kysec/libkysec.h>
|
||||||
|
#include <kysec/status.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
//enum IconActiveType {
|
||||||
|
// NOT_CONNECTED = 0,
|
||||||
|
// LAN_CONNECTED,
|
||||||
|
// WLAN_CONNECTED,
|
||||||
|
// LAN_CONNECTED_LIMITED,
|
||||||
|
// WLAN_CONNECTED_LIMITED,
|
||||||
|
// ACTIVATING,
|
||||||
|
//};
|
||||||
|
|
||||||
|
//const QByteArray TRANSPARENCY_GSETTINGS = "org.ukui.control-center.personalise";
|
||||||
|
|
||||||
|
class VpnPage;
|
||||||
|
|
||||||
|
class vpnMainWindow : public QMainWindow
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
explicit vpnMainWindow(QWidget *parent = nullptr);
|
||||||
|
void showMainwindow();
|
||||||
|
void hideMainwindow();
|
||||||
|
|
||||||
|
void getVirtualList(QMap<QString, QVector<QStringList>> &map);
|
||||||
|
|
||||||
|
// void setWiredDefaultDevice(QString deviceName);
|
||||||
|
|
||||||
|
// //有线连接断开
|
||||||
|
void activateVpn(const QString& connUuid);
|
||||||
|
void deactivateVpn(const QString& connUuid);
|
||||||
|
|
||||||
|
// //唤起属性页 根据网卡类型 参数2 为ssid/uuid
|
||||||
|
// void showPropertyWidget(QString devName, QString ssid);
|
||||||
|
// //唤起新建有线连接界面
|
||||||
|
// void showCreateWiredConnectWidget(const QString devName);
|
||||||
|
|
||||||
|
Q_SIGNALS:
|
||||||
|
// //设备插拔
|
||||||
|
// void deviceStatusChanged();
|
||||||
|
// //设备名称变化
|
||||||
|
// void deviceNameChanged(QString oldName, QString newName, int type);
|
||||||
|
void vpnAdd(QString devName, QStringList info);
|
||||||
|
void vpnRemove(QString dbusPath);
|
||||||
|
void vpnUpdate(QString devName, QStringList info);
|
||||||
|
void vpnActiveConnectionStateChanged(QString devName, QString uuid, int status);
|
||||||
|
// void activateFailed(QString errorMessage);
|
||||||
|
// void deactivateFailed(QString errorMessage);
|
||||||
|
void mainWindowVisibleChanged(const bool &visible);
|
||||||
|
// //列表排序
|
||||||
|
// void timeToUpdate();
|
||||||
|
public Q_SLOTS:
|
||||||
|
|
||||||
|
protected:
|
||||||
|
// void keyPressEvent(QKeyEvent *event);
|
||||||
|
bool eventFilter(QObject *watched, QEvent *event) override;
|
||||||
|
void paintEvent(QPaintEvent *event);
|
||||||
|
|
||||||
|
private:
|
||||||
|
void firstlyStart(); //一级启动
|
||||||
|
void secondaryStart(); //二级启动
|
||||||
|
bool m_loadFinished = false; //是否二级启动已执行完
|
||||||
|
QTimer * m_secondaryStartTimer = nullptr; //执行二级启动的倒计时
|
||||||
|
void initPlatform();
|
||||||
|
void initWindowProperties();
|
||||||
|
void initTransparency();
|
||||||
|
void paintWithTrans();
|
||||||
|
void initUI();
|
||||||
|
void initDbusConnnect();
|
||||||
|
void initTrayIcon();
|
||||||
|
// void resetTrayIconTool();
|
||||||
|
void initWindowTheme();
|
||||||
|
// void resetWindowTheme();
|
||||||
|
// void showControlCenter();
|
||||||
|
void showByWaylandHelper();
|
||||||
|
void setCentralWidgetType(IconActiveType iconStatus);
|
||||||
|
double m_transparency=1.0; //透明度
|
||||||
|
QGSettings * m_transGsettings; //透明度配置文件
|
||||||
|
int m_currentIconIndex = 0;
|
||||||
|
QList<QIcon> m_loadIcons;
|
||||||
|
QTimer *m_iconTimer = nullptr;
|
||||||
|
|
||||||
|
// //主窗口的主要构成控件
|
||||||
|
QWidget * m_vpnWidget = nullptr;
|
||||||
|
// QHBoxLayout * m_tabBarLayout = nullptr;
|
||||||
|
QLabel * m_lanLabel = nullptr;
|
||||||
|
VpnPage * m_vpnPage = nullptr;
|
||||||
|
QVBoxLayout * m_vpnLayout = nullptr;
|
||||||
|
|
||||||
|
//监听主题的Gsettings
|
||||||
|
QGSettings * m_styleGsettings = nullptr;
|
||||||
|
|
||||||
|
// //获取和重置窗口位置
|
||||||
|
void resetWindowPosition();
|
||||||
|
QDBusInterface * m_positionInterface = nullptr;
|
||||||
|
|
||||||
|
// //托盘图标,托盘图标右键菜单
|
||||||
|
QSystemTrayIcon * m_vpnTrayIcon = nullptr;
|
||||||
|
QMenu * m_vpnTrayIconMenu = nullptr;
|
||||||
|
// QAction * m_showMainwindowAction = nullptr;
|
||||||
|
// QAction * m_showSettingsAction = nullptr;
|
||||||
|
|
||||||
|
// bool m_lanIsLoading = false;
|
||||||
|
|
||||||
|
bool m_isShowInCenter = false;
|
||||||
|
|
||||||
|
IconActiveType m_iconStatus = IconActiveType::NOT_CONNECTED;
|
||||||
|
|
||||||
|
QMap<QString, NetDetail*> m_createPagePtrMap;
|
||||||
|
//// QMap<QString, NetDetail*> m_addOtherPagePtrMap;
|
||||||
|
// QMap<QString, JoinHiddenWiFiPage*> m_addOtherPagePtrMap;
|
||||||
|
|
||||||
|
public Q_SLOTS:
|
||||||
|
// void onShowMainWindow(int type);
|
||||||
|
|
||||||
|
private Q_SLOTS:
|
||||||
|
void onTransChanged();
|
||||||
|
void onTrayIconActivated(QSystemTrayIcon::ActivationReason reason);
|
||||||
|
// void onShowMainwindowActionTriggled();
|
||||||
|
// void onShowSettingsActionTriggled();
|
||||||
|
void onThemeChanged(const QString &key);
|
||||||
|
void onRefreshTrayIcon();
|
||||||
|
// void onSetTrayIconLoading();
|
||||||
|
// void onLanConnectStatusToChangeTrayIcon(int state);
|
||||||
|
// void onWlanConnectStatusToChangeTrayIcon(int state);
|
||||||
|
// void onConnectivityChanged(NetworkManager::Connectivity connectivity);
|
||||||
|
// void onTabletModeChanged(bool mode);
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // MAINWINDOW_H
|
|
@ -16,8 +16,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//#include "mainwindow.h"
|
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
|
#include "vpnmainwindow.h"
|
||||||
#include "dbusadaptor.h"
|
#include "dbusadaptor.h"
|
||||||
#include <QTranslator>
|
#include <QTranslator>
|
||||||
#include <QLocale>
|
#include <QLocale>
|
||||||
|
@ -148,6 +148,9 @@ int main(int argc, char *argv[])
|
||||||
::usleep(1000);
|
::usleep(1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vpnMainWindow vpnwindow;
|
||||||
|
vpnwindow.setProperty("useStyleWindowManager", false); //禁用拖动
|
||||||
|
|
||||||
MainWindow w;
|
MainWindow w;
|
||||||
a.setActivationWindow(&w);
|
a.setActivationWindow(&w);
|
||||||
w.setProperty("useStyleWindowManager", false); //禁用拖动
|
w.setProperty("useStyleWindowManager", false); //禁用拖动
|
||||||
|
|
|
@ -15,10 +15,11 @@ CONFIG += c++14 qt warn_on link_pkgconfig
|
||||||
#CONFIG += release
|
#CONFIG += release
|
||||||
|
|
||||||
PKGCONFIG +=gio-2.0 glib-2.0 gio-unix-2.0 libnm libnma libsecret-1 gtk+-3.0 gsettings-qt libcap kysdk-qtwidgets kysdk-waylandhelper
|
PKGCONFIG +=gio-2.0 glib-2.0 gio-unix-2.0 libnm libnma libsecret-1 gtk+-3.0 gsettings-qt libcap kysdk-qtwidgets kysdk-waylandhelper
|
||||||
|
PKGCONFIG +=kysdk-sysinfo
|
||||||
|
|
||||||
INCLUDEPATH += /usr/include/KF5/NetworkManagerQt
|
INCLUDEPATH += /usr/include/KF5/NetworkManagerQt
|
||||||
|
|
||||||
LIBS += -L/usr/lib/ -lgsettings-qt -lX11 -lKF5NetworkManagerQt -lukui-log4qt -lukui-com4c -lukui-com4cxx
|
LIBS += -L/usr/lib/ -lgsettings-qt -lX11 -lKF5NetworkManagerQt -lukui-log4qt
|
||||||
#LIBS += -lkysec
|
#LIBS += -lkysec
|
||||||
target.path = /usr/bin
|
target.path = /usr/bin
|
||||||
target.source += $$TARGET
|
target.source += $$TARGET
|
||||||
|
|
|
@ -29,22 +29,18 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="36"/>
|
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="159"/>
|
||||||
<source>Prefs DNS</source>
|
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="160"/>
|
||||||
|
<source>Required</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="37"/>
|
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="55"/>
|
||||||
<source>Alternative DNS</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="48"/>
|
|
||||||
<source>Auto(DHCP)</source>
|
<source>Auto(DHCP)</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="49"/>
|
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="56"/>
|
||||||
<source>Manual</source>
|
<source>Manual</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -52,82 +48,82 @@
|
||||||
<context>
|
<context>
|
||||||
<name>DetailPage</name>
|
<name>DetailPage</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="234"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="243"/>
|
||||||
<source>Auto Connection</source>
|
<source>Auto Connection</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="190"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="199"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="283"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="292"/>
|
||||||
<source>SSID:</source>
|
<source>SSID:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="120"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="129"/>
|
||||||
<source>Copied successfully!</source>
|
<source>Copied successfully!</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="164"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="173"/>
|
||||||
<source>Copy all</source>
|
<source>Copy all</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="184"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="193"/>
|
||||||
<source>Please input SSID:</source>
|
<source>Please input SSID:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="194"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="203"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="284"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="293"/>
|
||||||
<source>Protocol:</source>
|
<source>Protocol:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="198"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="207"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="285"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="294"/>
|
||||||
<source>Security Type:</source>
|
<source>Security Type:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="202"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="211"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="286"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="295"/>
|
||||||
<source>Hz:</source>
|
<source>Hz:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="206"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="215"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="287"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="296"/>
|
||||||
<source>Chan:</source>
|
<source>Chan:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="210"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="219"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="288"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="297"/>
|
||||||
<source>BandWidth:</source>
|
<source>BandWidth:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="224"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="233"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="291"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="300"/>
|
||||||
<source>IPV6:</source>
|
<source>IPV6:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="214"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="223"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="289"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="298"/>
|
||||||
<source>IPV4:</source>
|
<source>IPV4:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="218"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="227"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="290"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="299"/>
|
||||||
<source>IPV4 Dns:</source>
|
<source>IPV4 Dns:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="228"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="237"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="292"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="301"/>
|
||||||
<source>Mac:</source>
|
<source>Mac:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -173,22 +169,12 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv4page.cpp" line="30"/>
|
<location filename="../src/frontend/netdetails/ipv4page.cpp" line="46"/>
|
||||||
<source>Prefs DNS</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/frontend/netdetails/ipv4page.cpp" line="31"/>
|
|
||||||
<source>Alternative DNS</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/frontend/netdetails/ipv4page.cpp" line="41"/>
|
|
||||||
<source>Auto(DHCP)</source>
|
<source>Auto(DHCP)</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv4page.cpp" line="42"/>
|
<location filename="../src/frontend/netdetails/ipv4page.cpp" line="47"/>
|
||||||
<source>Manual</source>
|
<source>Manual</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -196,42 +182,32 @@
|
||||||
<context>
|
<context>
|
||||||
<name>Ipv6Page</name>
|
<name>Ipv6Page</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="108"/>
|
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="123"/>
|
||||||
<source>Ipv6Config</source>
|
<source>Ipv6Config</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="109"/>
|
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="124"/>
|
||||||
<source>Address</source>
|
<source>Address</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="110"/>
|
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="125"/>
|
||||||
<source>Subnet prefix Length</source>
|
<source>Subnet prefix Length</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="111"/>
|
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="126"/>
|
||||||
<source>Default Gateway</source>
|
<source>Default Gateway</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="112"/>
|
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="142"/>
|
||||||
<source>Prefs DNS</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="113"/>
|
|
||||||
<source>Alternative DNS</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="124"/>
|
|
||||||
<source>Auto(DHCP)</source>
|
<source>Auto(DHCP)</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="125"/>
|
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="143"/>
|
||||||
<source>Manual</source>
|
<source>Manual</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -264,37 +240,37 @@
|
||||||
<context>
|
<context>
|
||||||
<name>LanPage</name>
|
<name>LanPage</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="202"/>
|
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="1194"/>
|
||||||
<source>No ethernet device avaliable</source>
|
<source>No ethernet device avaliable</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="756"/>
|
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="735"/>
|
||||||
<source>LAN</source>
|
<source>LAN</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="758"/>
|
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="737"/>
|
||||||
<source>Activated LAN</source>
|
<source>Activated LAN</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="767"/>
|
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="746"/>
|
||||||
<source>Inactivated LAN</source>
|
<source>Inactivated LAN</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="845"/>
|
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="825"/>
|
||||||
<source>LAN Connected Successfully</source>
|
<source>LAN Connected Successfully</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="869"/>
|
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="849"/>
|
||||||
<source>LAN Disconnected Successfully</source>
|
<source>LAN Disconnected Successfully</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="1209"/>
|
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="1218"/>
|
||||||
<source>Wired Device not carried</source>
|
<source>Wired Device not carried</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -302,12 +278,12 @@
|
||||||
<context>
|
<context>
|
||||||
<name>ListItem</name>
|
<name>ListItem</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/list-items/listitem.cpp" line="62"/>
|
<location filename="../src/frontend/list-items/listitem.cpp" line="69"/>
|
||||||
<source>Kylin NM</source>
|
<source>Kylin NM</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/list-items/listitem.cpp" line="65"/>
|
<location filename="../src/frontend/list-items/listitem.cpp" line="72"/>
|
||||||
<source>kylin network applet desktop message</source>
|
<source>kylin network applet desktop message</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -315,143 +291,151 @@
|
||||||
<context>
|
<context>
|
||||||
<name>MainWindow</name>
|
<name>MainWindow</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/mainwindow.cpp" line="121"/>
|
<location filename="../src/frontend/mainwindow.cpp" line="168"/>
|
||||||
<location filename="../src/frontend/mainwindow.cpp" line="237"/>
|
<location filename="../src/frontend/mainwindow.cpp" line="289"/>
|
||||||
<source>kylin-nm</source>
|
<source>kylin-nm</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/mainwindow.cpp" line="199"/>
|
<location filename="../src/frontend/mainwindow.cpp" line="251"/>
|
||||||
<source>LAN</source>
|
<source>LAN</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/mainwindow.cpp" line="201"/>
|
<location filename="../src/frontend/mainwindow.cpp" line="253"/>
|
||||||
<source>WLAN</source>
|
<source>WLAN</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/mainwindow.cpp" line="235"/>
|
<location filename="../src/frontend/mainwindow.cpp" line="287"/>
|
||||||
<source>Settings</source>
|
<source>Settings</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/mainwindow.cpp" line="234"/>
|
<location filename="../src/frontend/mainwindow.cpp" line="286"/>
|
||||||
<source>Show MainWindow</source>
|
<source>Show MainWindow</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>MultipleDnsWidget</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/netdetails/multiplednswidget.cpp" line="42"/>
|
||||||
|
<source>DNS server:</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>NetDetail</name>
|
<name>NetDetail</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="38"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="49"/>
|
||||||
<source>Kylin NM</source>
|
<source>Kylin NM</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="41"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="52"/>
|
||||||
<source>kylin network desktop message</source>
|
<source>kylin network desktop message</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="218"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="241"/>
|
||||||
<source>Detail</source>
|
<source>Detail</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="223"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="242"/>
|
||||||
<source>Ipv4</source>
|
<source>Ipv4</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="227"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="243"/>
|
||||||
<source>Ipv6</source>
|
<source>Ipv6</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="231"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="245"/>
|
||||||
<source>Security</source>
|
<source>Security</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="250"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="260"/>
|
||||||
<source>Confirm</source>
|
<source>Confirm</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="253"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="263"/>
|
||||||
<source>Cancel</source>
|
<source>Cancel</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="256"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="266"/>
|
||||||
<source>Forget this network</source>
|
<source>Forget this network</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="286"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="296"/>
|
||||||
<source>Add Lan Connect</source>
|
<source>Add Lan Connect</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="295"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="301"/>
|
||||||
<source>connect hiddin wlan</source>
|
<source>connect hiddin wlan</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="453"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="449"/>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="465"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="461"/>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="932"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="930"/>
|
||||||
<source>None</source>
|
<source>None</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="562"/>
|
||||||
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="563"/>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="564"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="564"/>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="565"/>
|
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="566"/>
|
|
||||||
<source>Auto</source>
|
<source>Auto</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="682"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="680"/>
|
||||||
<source>start check ipv4 address conflict</source>
|
<source>start check ipv4 address conflict</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="699"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="697"/>
|
||||||
<source>start check ipv6 address conflict</source>
|
<source>start check ipv6 address conflict</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="745"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="743"/>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="796"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="794"/>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="884"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="882"/>
|
||||||
<source>ipv4 address conflict!</source>
|
<source>ipv4 address conflict!</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="804"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="802"/>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="892"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="890"/>
|
||||||
<source>ipv6 address conflict!</source>
|
<source>ipv6 address conflict!</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="928"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="926"/>
|
||||||
<source>this wifi no support enterprise type</source>
|
<source>this wifi no support enterprise type</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="933"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="931"/>
|
||||||
<source>this wifi no support None type</source>
|
<source>this wifi no support None type</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="938"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="936"/>
|
||||||
<source>this wifi no support WPA2 type</source>
|
<source>this wifi no support WPA2 type</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="941"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="939"/>
|
||||||
<source>this wifi no support WPA3 type</source>
|
<source>this wifi no support WPA3 type</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -545,11 +529,11 @@
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="100"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="100"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="103"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="103"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="106"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="106"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="228"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="175"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="727"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="674"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="782"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="695"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="804"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="717"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="827"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="740"/>
|
||||||
<source>None</source>
|
<source>None</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -576,20 +560,38 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="772"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="685"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="795"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="708"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="817"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="730"/>
|
||||||
<source>Choose a CA certificate</source>
|
<source>Choose a CA certificate</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="773"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="686"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="796"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="709"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="818"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="731"/>
|
||||||
<source>CA Files (*.pem *.der *.p12 *.crt *.cer *.pfx)</source>
|
<source>CA Files (*.pem *.der *.p12 *.crt *.cer *.pfx)</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>SinglePage</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/single-pages/singlepage.cpp" line="71"/>
|
||||||
|
<source>Settings</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/single-pages/singlepage.cpp" line="99"/>
|
||||||
|
<source>Kylin NM</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/single-pages/singlepage.cpp" line="102"/>
|
||||||
|
<source>kylin network applet desktop message</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>TabPage</name>
|
<name>TabPage</name>
|
||||||
<message>
|
<message>
|
||||||
|
@ -608,16 +610,49 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/tabpage.cpp" line="148"/>
|
<location filename="../src/frontend/tab-pages/tabpage.cpp" line="154"/>
|
||||||
<source>Kylin NM</source>
|
<source>Kylin NM</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/tabpage.cpp" line="151"/>
|
<location filename="../src/frontend/tab-pages/tabpage.cpp" line="157"/>
|
||||||
<source>kylin network applet desktop message</source>
|
<source>kylin network applet desktop message</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>VpnListItem</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/list-items/vpnlistitem.cpp" line="62"/>
|
||||||
|
<source>Not connected</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/list-items/vpnlistitem.cpp" line="142"/>
|
||||||
|
<location filename="../src/frontend/list-items/vpnlistitem.cpp" line="158"/>
|
||||||
|
<source>Disconnect</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/list-items/vpnlistitem.cpp" line="144"/>
|
||||||
|
<location filename="../src/frontend/list-items/vpnlistitem.cpp" line="156"/>
|
||||||
|
<source>Connect</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>VpnPage</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/single-pages/vpnpage.cpp" line="276"/>
|
||||||
|
<source>VPN Connection</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/single-pages/vpnpage.cpp" line="291"/>
|
||||||
|
<source>VPN Settings</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>WiFiConfigDialog</name>
|
<name>WiFiConfigDialog</name>
|
||||||
<message>
|
<message>
|
||||||
|
@ -626,37 +661,37 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/wificonfigdialog.cpp" line="21"/>
|
<location filename="../src/frontend/wificonfigdialog.cpp" line="23"/>
|
||||||
<source>WLAN Authentication</source>
|
<source>WLAN Authentication</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/wificonfigdialog.cpp" line="32"/>
|
<location filename="../src/frontend/wificonfigdialog.cpp" line="34"/>
|
||||||
<source>Input WLAN Information Please</source>
|
<source>Input WLAN Information Please</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/wificonfigdialog.cpp" line="33"/>
|
<location filename="../src/frontend/wificonfigdialog.cpp" line="35"/>
|
||||||
<source>WLAN ID:</source>
|
<source>WLAN ID:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/wificonfigdialog.cpp" line="34"/>
|
<location filename="../src/frontend/wificonfigdialog.cpp" line="36"/>
|
||||||
<source>WLAN Name:</source>
|
<source>WLAN Name:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/wificonfigdialog.cpp" line="35"/>
|
<location filename="../src/frontend/wificonfigdialog.cpp" line="37"/>
|
||||||
<source>Password:</source>
|
<source>Password:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/wificonfigdialog.cpp" line="36"/>
|
<location filename="../src/frontend/wificonfigdialog.cpp" line="38"/>
|
||||||
<source>Cancl</source>
|
<source>Cancl</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/wificonfigdialog.cpp" line="37"/>
|
<location filename="../src/frontend/wificonfigdialog.cpp" line="39"/>
|
||||||
<source>Ok</source>
|
<source>Ok</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -664,31 +699,31 @@
|
||||||
<context>
|
<context>
|
||||||
<name>WlanListItem</name>
|
<name>WlanListItem</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="42"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="43"/>
|
||||||
<source>Not connected</source>
|
<source>Not connected</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="138"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="136"/>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="565"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="565"/>
|
||||||
<source>Disconnect</source>
|
<source>Disconnect</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="140"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="138"/>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="267"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="251"/>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="563"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="563"/>
|
||||||
<source>Connect</source>
|
<source>Connect</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="147"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="145"/>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="570"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="570"/>
|
||||||
<source>Forget</source>
|
<source>Forget</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="288"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="272"/>
|
||||||
<source>Auto Connect</source>
|
<source>Auto Connect</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -704,35 +739,66 @@
|
||||||
<context>
|
<context>
|
||||||
<name>WlanPage</name>
|
<name>WlanPage</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="74"/>
|
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="86"/>
|
||||||
<source>WLAN</source>
|
<source>WLAN</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="76"/>
|
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="88"/>
|
||||||
<source>Activated WLAN</source>
|
<source>Activated WLAN</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="86"/>
|
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="98"/>
|
||||||
<source>Other WLAN</source>
|
<source>Other WLAN</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="127"/>
|
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="70"/>
|
||||||
<source>No wireless network card detected</source>
|
<source>No wireless network card detected</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="810"/>
|
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="798"/>
|
||||||
<source>WLAN Connected Successfully</source>
|
<source>WLAN Connected Successfully</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="554"/>
|
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="543"/>
|
||||||
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="806"/>
|
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="794"/>
|
||||||
<source>WLAN Disconnected Successfully</source>
|
<source>WLAN Disconnected Successfully</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>main</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/main.cpp" line="96"/>
|
||||||
|
<source>kylinnm</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/main.cpp" line="100"/>
|
||||||
|
<source>show kylin-nm wifi page</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/main.cpp" line="101"/>
|
||||||
|
<source>show kylin-nm lan page</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>vpnMainWindow</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/vpnmainwindow.cpp" line="170"/>
|
||||||
|
<source>kylin-vpn</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/vpnmainwindow.cpp" line="252"/>
|
||||||
|
<source>vpn tool</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
</TS>
|
</TS>
|
||||||
|
|
|
@ -127,22 +127,18 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="36"/>
|
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="159"/>
|
||||||
<source>Prefs DNS</source>
|
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="160"/>
|
||||||
|
<source>Required</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="37"/>
|
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="55"/>
|
||||||
<source>Alternative DNS</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="48"/>
|
|
||||||
<source>Auto(DHCP)</source>
|
<source>Auto(DHCP)</source>
|
||||||
<translation type="unfinished">Oto(DHCP)</translation>
|
<translation type="unfinished">Oto(DHCP)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="49"/>
|
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="56"/>
|
||||||
<source>Manual</source>
|
<source>Manual</source>
|
||||||
<translation type="unfinished">Elle</translation>
|
<translation type="unfinished">Elle</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -150,82 +146,82 @@
|
||||||
<context>
|
<context>
|
||||||
<name>DetailPage</name>
|
<name>DetailPage</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="234"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="243"/>
|
||||||
<source>Auto Connection</source>
|
<source>Auto Connection</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="190"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="199"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="283"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="292"/>
|
||||||
<source>SSID:</source>
|
<source>SSID:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="120"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="129"/>
|
||||||
<source>Copied successfully!</source>
|
<source>Copied successfully!</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="164"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="173"/>
|
||||||
<source>Copy all</source>
|
<source>Copy all</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="184"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="193"/>
|
||||||
<source>Please input SSID:</source>
|
<source>Please input SSID:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="194"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="203"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="284"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="293"/>
|
||||||
<source>Protocol:</source>
|
<source>Protocol:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="198"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="207"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="285"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="294"/>
|
||||||
<source>Security Type:</source>
|
<source>Security Type:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="202"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="211"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="286"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="295"/>
|
||||||
<source>Hz:</source>
|
<source>Hz:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="206"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="215"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="287"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="296"/>
|
||||||
<source>Chan:</source>
|
<source>Chan:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="210"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="219"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="288"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="297"/>
|
||||||
<source>BandWidth:</source>
|
<source>BandWidth:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="224"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="233"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="291"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="300"/>
|
||||||
<source>IPV6:</source>
|
<source>IPV6:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="214"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="223"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="289"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="298"/>
|
||||||
<source>IPV4:</source>
|
<source>IPV4:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="218"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="227"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="290"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="299"/>
|
||||||
<source>IPV4 Dns:</source>
|
<source>IPV4 Dns:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="228"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="237"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="292"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="301"/>
|
||||||
<source>Mac:</source>
|
<source>Mac:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -1192,22 +1188,12 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv4page.cpp" line="30"/>
|
<location filename="../src/frontend/netdetails/ipv4page.cpp" line="46"/>
|
||||||
<source>Prefs DNS</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/frontend/netdetails/ipv4page.cpp" line="31"/>
|
|
||||||
<source>Alternative DNS</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/frontend/netdetails/ipv4page.cpp" line="41"/>
|
|
||||||
<source>Auto(DHCP)</source>
|
<source>Auto(DHCP)</source>
|
||||||
<translation type="unfinished">Oto(DHCP)</translation>
|
<translation type="unfinished">Oto(DHCP)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv4page.cpp" line="42"/>
|
<location filename="../src/frontend/netdetails/ipv4page.cpp" line="47"/>
|
||||||
<source>Manual</source>
|
<source>Manual</source>
|
||||||
<translation type="unfinished">Elle</translation>
|
<translation type="unfinished">Elle</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -1215,42 +1201,32 @@
|
||||||
<context>
|
<context>
|
||||||
<name>Ipv6Page</name>
|
<name>Ipv6Page</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="108"/>
|
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="123"/>
|
||||||
<source>Ipv6Config</source>
|
<source>Ipv6Config</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="109"/>
|
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="124"/>
|
||||||
<source>Address</source>
|
<source>Address</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="110"/>
|
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="125"/>
|
||||||
<source>Subnet prefix Length</source>
|
<source>Subnet prefix Length</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="111"/>
|
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="126"/>
|
||||||
<source>Default Gateway</source>
|
<source>Default Gateway</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="112"/>
|
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="142"/>
|
||||||
<source>Prefs DNS</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="113"/>
|
|
||||||
<source>Alternative DNS</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="124"/>
|
|
||||||
<source>Auto(DHCP)</source>
|
<source>Auto(DHCP)</source>
|
||||||
<translation type="unfinished">Oto(DHCP)</translation>
|
<translation type="unfinished">Oto(DHCP)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="125"/>
|
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="143"/>
|
||||||
<source>Manual</source>
|
<source>Manual</source>
|
||||||
<translation type="unfinished">Elle</translation>
|
<translation type="unfinished">Elle</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -1290,37 +1266,37 @@
|
||||||
<context>
|
<context>
|
||||||
<name>LanPage</name>
|
<name>LanPage</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="202"/>
|
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="1194"/>
|
||||||
<source>No ethernet device avaliable</source>
|
<source>No ethernet device avaliable</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="756"/>
|
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="735"/>
|
||||||
<source>LAN</source>
|
<source>LAN</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="758"/>
|
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="737"/>
|
||||||
<source>Activated LAN</source>
|
<source>Activated LAN</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="767"/>
|
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="746"/>
|
||||||
<source>Inactivated LAN</source>
|
<source>Inactivated LAN</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="845"/>
|
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="825"/>
|
||||||
<source>LAN Connected Successfully</source>
|
<source>LAN Connected Successfully</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="869"/>
|
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="849"/>
|
||||||
<source>LAN Disconnected Successfully</source>
|
<source>LAN Disconnected Successfully</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="1209"/>
|
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="1218"/>
|
||||||
<source>Wired Device not carried</source>
|
<source>Wired Device not carried</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -1328,12 +1304,12 @@
|
||||||
<context>
|
<context>
|
||||||
<name>ListItem</name>
|
<name>ListItem</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/list-items/listitem.cpp" line="62"/>
|
<location filename="../src/frontend/list-items/listitem.cpp" line="69"/>
|
||||||
<source>Kylin NM</source>
|
<source>Kylin NM</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/list-items/listitem.cpp" line="65"/>
|
<location filename="../src/frontend/list-items/listitem.cpp" line="72"/>
|
||||||
<source>kylin network applet desktop message</source>
|
<source>kylin network applet desktop message</source>
|
||||||
<translation type="unfinished">Kylin ağ uygulaması masaüstü mesajı</translation>
|
<translation type="unfinished">Kylin ağ uygulaması masaüstü mesajı</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -1341,8 +1317,8 @@
|
||||||
<context>
|
<context>
|
||||||
<name>MainWindow</name>
|
<name>MainWindow</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/mainwindow.cpp" line="121"/>
|
<location filename="../src/frontend/mainwindow.cpp" line="168"/>
|
||||||
<location filename="../src/frontend/mainwindow.cpp" line="237"/>
|
<location filename="../src/frontend/mainwindow.cpp" line="289"/>
|
||||||
<source>kylin-nm</source>
|
<source>kylin-nm</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -1363,17 +1339,17 @@
|
||||||
<translation type="vanished">Gizli Ağı Bağlan</translation>
|
<translation type="vanished">Gizli Ağı Bağlan</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/mainwindow.cpp" line="199"/>
|
<location filename="../src/frontend/mainwindow.cpp" line="251"/>
|
||||||
<source>LAN</source>
|
<source>LAN</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/mainwindow.cpp" line="201"/>
|
<location filename="../src/frontend/mainwindow.cpp" line="253"/>
|
||||||
<source>WLAN</source>
|
<source>WLAN</source>
|
||||||
<translation>WLAN</translation>
|
<translation>WLAN</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/mainwindow.cpp" line="235"/>
|
<location filename="../src/frontend/mainwindow.cpp" line="287"/>
|
||||||
<source>Settings</source>
|
<source>Settings</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -1390,7 +1366,7 @@
|
||||||
<translation type="vanished">HotSpot</translation>
|
<translation type="vanished">HotSpot</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/mainwindow.cpp" line="234"/>
|
<location filename="../src/frontend/mainwindow.cpp" line="286"/>
|
||||||
<source>Show MainWindow</source>
|
<source>Show MainWindow</source>
|
||||||
<translation>Ana Pencereyi Göster</translation>
|
<translation>Ana Pencereyi Göster</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -1483,117 +1459,125 @@
|
||||||
<translation type="vanished">WLAN Bağlantısı Başarılı</translation>
|
<translation type="vanished">WLAN Bağlantısı Başarılı</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>MultipleDnsWidget</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/netdetails/multiplednswidget.cpp" line="42"/>
|
||||||
|
<source>DNS server:</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>NetDetail</name>
|
<name>NetDetail</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="38"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="49"/>
|
||||||
<source>Kylin NM</source>
|
<source>Kylin NM</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="41"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="52"/>
|
||||||
<source>kylin network desktop message</source>
|
<source>kylin network desktop message</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="218"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="241"/>
|
||||||
<source>Detail</source>
|
<source>Detail</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="223"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="242"/>
|
||||||
<source>Ipv4</source>
|
<source>Ipv4</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="227"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="243"/>
|
||||||
<source>Ipv6</source>
|
<source>Ipv6</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="231"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="245"/>
|
||||||
<source>Security</source>
|
<source>Security</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="250"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="260"/>
|
||||||
<source>Confirm</source>
|
<source>Confirm</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="253"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="263"/>
|
||||||
<source>Cancel</source>
|
<source>Cancel</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="256"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="266"/>
|
||||||
<source>Forget this network</source>
|
<source>Forget this network</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="286"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="296"/>
|
||||||
<source>Add Lan Connect</source>
|
<source>Add Lan Connect</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="295"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="301"/>
|
||||||
<source>connect hiddin wlan</source>
|
<source>connect hiddin wlan</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="453"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="449"/>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="465"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="461"/>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="932"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="930"/>
|
||||||
<source>None</source>
|
<source>None</source>
|
||||||
<translation type="unfinished">Yok</translation>
|
<translation type="unfinished">Yok</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="562"/>
|
||||||
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="563"/>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="564"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="564"/>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="565"/>
|
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="566"/>
|
|
||||||
<source>Auto</source>
|
<source>Auto</source>
|
||||||
<translation type="unfinished">Oto</translation>
|
<translation type="unfinished">Oto</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="682"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="680"/>
|
||||||
<source>start check ipv4 address conflict</source>
|
<source>start check ipv4 address conflict</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="699"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="697"/>
|
||||||
<source>start check ipv6 address conflict</source>
|
<source>start check ipv6 address conflict</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="745"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="743"/>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="796"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="794"/>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="884"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="882"/>
|
||||||
<source>ipv4 address conflict!</source>
|
<source>ipv4 address conflict!</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="804"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="802"/>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="892"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="890"/>
|
||||||
<source>ipv6 address conflict!</source>
|
<source>ipv6 address conflict!</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="928"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="926"/>
|
||||||
<source>this wifi no support enterprise type</source>
|
<source>this wifi no support enterprise type</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="933"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="931"/>
|
||||||
<source>this wifi no support None type</source>
|
<source>this wifi no support None type</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="938"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="936"/>
|
||||||
<source>this wifi no support WPA2 type</source>
|
<source>this wifi no support WPA2 type</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="941"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="939"/>
|
||||||
<source>this wifi no support WPA3 type</source>
|
<source>this wifi no support WPA3 type</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -1885,11 +1869,11 @@
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="100"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="100"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="103"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="103"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="106"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="106"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="228"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="175"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="727"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="674"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="782"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="695"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="804"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="717"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="827"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="740"/>
|
||||||
<source>None</source>
|
<source>None</source>
|
||||||
<translation type="unfinished">Yok</translation>
|
<translation type="unfinished">Yok</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -1916,20 +1900,38 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="772"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="685"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="795"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="708"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="817"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="730"/>
|
||||||
<source>Choose a CA certificate</source>
|
<source>Choose a CA certificate</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="773"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="686"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="796"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="709"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="818"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="731"/>
|
||||||
<source>CA Files (*.pem *.der *.p12 *.crt *.cer *.pfx)</source>
|
<source>CA Files (*.pem *.der *.p12 *.crt *.cer *.pfx)</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>SinglePage</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/single-pages/singlepage.cpp" line="71"/>
|
||||||
|
<source>Settings</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/single-pages/singlepage.cpp" line="99"/>
|
||||||
|
<source>Kylin NM</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/single-pages/singlepage.cpp" line="102"/>
|
||||||
|
<source>kylin network applet desktop message</source>
|
||||||
|
<translation type="unfinished">Kylin ağ uygulaması masaüstü mesajı</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>TabPage</name>
|
<name>TabPage</name>
|
||||||
<message>
|
<message>
|
||||||
|
@ -1948,12 +1950,12 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/tabpage.cpp" line="148"/>
|
<location filename="../src/frontend/tab-pages/tabpage.cpp" line="154"/>
|
||||||
<source>Kylin NM</source>
|
<source>Kylin NM</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/tabpage.cpp" line="151"/>
|
<location filename="../src/frontend/tab-pages/tabpage.cpp" line="157"/>
|
||||||
<source>kylin network applet desktop message</source>
|
<source>kylin network applet desktop message</source>
|
||||||
<translation type="unfinished">Kylin ağ uygulaması masaüstü mesajı</translation>
|
<translation type="unfinished">Kylin ağ uygulaması masaüstü mesajı</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -1965,6 +1967,39 @@
|
||||||
<translation type="obsolete">Kylin ağ uygulaması masaüstü mesajı</translation>
|
<translation type="obsolete">Kylin ağ uygulaması masaüstü mesajı</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>VpnListItem</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/list-items/vpnlistitem.cpp" line="62"/>
|
||||||
|
<source>Not connected</source>
|
||||||
|
<translation type="unfinished">Bağlanamadı</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/list-items/vpnlistitem.cpp" line="142"/>
|
||||||
|
<location filename="../src/frontend/list-items/vpnlistitem.cpp" line="158"/>
|
||||||
|
<source>Disconnect</source>
|
||||||
|
<translation type="unfinished">Bağlantıyı Kes</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/list-items/vpnlistitem.cpp" line="144"/>
|
||||||
|
<location filename="../src/frontend/list-items/vpnlistitem.cpp" line="156"/>
|
||||||
|
<source>Connect</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>VpnPage</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/single-pages/vpnpage.cpp" line="276"/>
|
||||||
|
<source>VPN Connection</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/single-pages/vpnpage.cpp" line="291"/>
|
||||||
|
<source>VPN Settings</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>WiFiConfigDialog</name>
|
<name>WiFiConfigDialog</name>
|
||||||
<message>
|
<message>
|
||||||
|
@ -1973,37 +2008,37 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/wificonfigdialog.cpp" line="21"/>
|
<location filename="../src/frontend/wificonfigdialog.cpp" line="23"/>
|
||||||
<source>WLAN Authentication</source>
|
<source>WLAN Authentication</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/wificonfigdialog.cpp" line="32"/>
|
<location filename="../src/frontend/wificonfigdialog.cpp" line="34"/>
|
||||||
<source>Input WLAN Information Please</source>
|
<source>Input WLAN Information Please</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/wificonfigdialog.cpp" line="33"/>
|
<location filename="../src/frontend/wificonfigdialog.cpp" line="35"/>
|
||||||
<source>WLAN ID:</source>
|
<source>WLAN ID:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/wificonfigdialog.cpp" line="34"/>
|
<location filename="../src/frontend/wificonfigdialog.cpp" line="36"/>
|
||||||
<source>WLAN Name:</source>
|
<source>WLAN Name:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/wificonfigdialog.cpp" line="35"/>
|
<location filename="../src/frontend/wificonfigdialog.cpp" line="37"/>
|
||||||
<source>Password:</source>
|
<source>Password:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/wificonfigdialog.cpp" line="36"/>
|
<location filename="../src/frontend/wificonfigdialog.cpp" line="38"/>
|
||||||
<source>Cancl</source>
|
<source>Cancl</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/wificonfigdialog.cpp" line="37"/>
|
<location filename="../src/frontend/wificonfigdialog.cpp" line="39"/>
|
||||||
<source>Ok</source>
|
<source>Ok</source>
|
||||||
<translation type="unfinished">Tamam</translation>
|
<translation type="unfinished">Tamam</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -2011,31 +2046,31 @@
|
||||||
<context>
|
<context>
|
||||||
<name>WlanListItem</name>
|
<name>WlanListItem</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="42"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="43"/>
|
||||||
<source>Not connected</source>
|
<source>Not connected</source>
|
||||||
<translation type="unfinished">Bağlanamadı</translation>
|
<translation type="unfinished">Bağlanamadı</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="138"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="136"/>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="565"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="565"/>
|
||||||
<source>Disconnect</source>
|
<source>Disconnect</source>
|
||||||
<translation type="unfinished">Bağlantıyı Kes</translation>
|
<translation type="unfinished">Bağlantıyı Kes</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="140"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="138"/>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="267"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="251"/>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="563"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="563"/>
|
||||||
<source>Connect</source>
|
<source>Connect</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="147"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="145"/>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="570"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="570"/>
|
||||||
<source>Forget</source>
|
<source>Forget</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="288"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="272"/>
|
||||||
<source>Auto Connect</source>
|
<source>Auto Connect</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -2051,33 +2086,33 @@
|
||||||
<context>
|
<context>
|
||||||
<name>WlanPage</name>
|
<name>WlanPage</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="74"/>
|
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="86"/>
|
||||||
<source>WLAN</source>
|
<source>WLAN</source>
|
||||||
<translation type="unfinished">WLAN</translation>
|
<translation type="unfinished">WLAN</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="76"/>
|
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="88"/>
|
||||||
<source>Activated WLAN</source>
|
<source>Activated WLAN</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="86"/>
|
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="98"/>
|
||||||
<source>Other WLAN</source>
|
<source>Other WLAN</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="127"/>
|
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="70"/>
|
||||||
<source>No wireless network card detected</source>
|
<source>No wireless network card detected</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="810"/>
|
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="798"/>
|
||||||
<source>WLAN Connected Successfully</source>
|
<source>WLAN Connected Successfully</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="554"/>
|
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="543"/>
|
||||||
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="806"/>
|
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="794"/>
|
||||||
<source>WLAN Disconnected Successfully</source>
|
<source>WLAN Disconnected Successfully</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -2097,4 +2132,35 @@
|
||||||
<translation type="obsolete">Yok</translation>
|
<translation type="obsolete">Yok</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>main</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/main.cpp" line="96"/>
|
||||||
|
<source>kylinnm</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/main.cpp" line="100"/>
|
||||||
|
<source>show kylin-nm wifi page</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/main.cpp" line="101"/>
|
||||||
|
<source>show kylin-nm lan page</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>vpnMainWindow</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/vpnmainwindow.cpp" line="170"/>
|
||||||
|
<source>kylin-vpn</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/vpnmainwindow.cpp" line="252"/>
|
||||||
|
<source>vpn tool</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
</TS>
|
</TS>
|
||||||
|
|
Binary file not shown.
|
@ -75,118 +75,109 @@
|
||||||
<translation>默认网关</translation>
|
<translation>默认网关</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="36"/>
|
|
||||||
<source>Prefs DNS</source>
|
<source>Prefs DNS</source>
|
||||||
<translation>首选DNS</translation>
|
<translation type="vanished">首选DNS</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="37"/>
|
|
||||||
<source>Alternative DNS</source>
|
<source>Alternative DNS</source>
|
||||||
<translation>备选DNS</translation>
|
<translation type="vanished">备选DNS</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="48"/>
|
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="55"/>
|
||||||
<source>Auto(DHCP)</source>
|
<source>Auto(DHCP)</source>
|
||||||
<translation>自动(DHCP)</translation>
|
<translation>自动(DHCP)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="49"/>
|
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="56"/>
|
||||||
<source>Manual</source>
|
<source>Manual</source>
|
||||||
<translation>手动</translation>
|
<translation>手动</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="173"/>
|
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="159"/>
|
||||||
|
<location filename="../src/frontend/netdetails/creatnetpage.cpp" line="160"/>
|
||||||
<source>Required</source>
|
<source>Required</source>
|
||||||
<translation>必填</translation>
|
<translation>必填</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
|
||||||
<name>MultipleDnsWidget</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../src/frontend/netdetails/multiplednswidget.cpp" line="42"/>
|
|
||||||
<source>DNS server:</source>
|
|
||||||
<translation>DNS服务器:</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
<context>
|
||||||
<name>DetailPage</name>
|
<name>DetailPage</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="234"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="243"/>
|
||||||
<source>Auto Connection</source>
|
<source>Auto Connection</source>
|
||||||
<translation>自动连接</translation>
|
<translation>自动连接</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="190"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="199"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="283"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="292"/>
|
||||||
<source>SSID:</source>
|
<source>SSID:</source>
|
||||||
<translation>SSID:</translation>
|
<translation>SSID:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="120"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="129"/>
|
||||||
<source>Copied successfully!</source>
|
<source>Copied successfully!</source>
|
||||||
<translation>复制成功!</translation>
|
<translation>复制成功!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="164"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="173"/>
|
||||||
<source>Copy all</source>
|
<source>Copy all</source>
|
||||||
<translation>复制全部</translation>
|
<translation>复制全部</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="184"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="193"/>
|
||||||
<source>Please input SSID:</source>
|
<source>Please input SSID:</source>
|
||||||
<translation>请输入SSID:</translation>
|
<translation>请输入SSID:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="194"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="203"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="284"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="293"/>
|
||||||
<source>Protocol:</source>
|
<source>Protocol:</source>
|
||||||
<translation>协议:</translation>
|
<translation>协议:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="198"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="207"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="285"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="294"/>
|
||||||
<source>Security Type:</source>
|
<source>Security Type:</source>
|
||||||
<translation>安全类型:</translation>
|
<translation>安全类型:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="202"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="211"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="286"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="295"/>
|
||||||
<source>Hz:</source>
|
<source>Hz:</source>
|
||||||
<translation>网络频带:</translation>
|
<translation>网络频带:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="206"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="215"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="287"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="296"/>
|
||||||
<source>Chan:</source>
|
<source>Chan:</source>
|
||||||
<translation>网络通道:</translation>
|
<translation>网络通道:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="210"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="219"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="288"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="297"/>
|
||||||
<source>BandWidth:</source>
|
<source>BandWidth:</source>
|
||||||
<translation>带宽:</translation>
|
<translation>带宽:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="224"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="233"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="291"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="300"/>
|
||||||
<source>IPV6:</source>
|
<source>IPV6:</source>
|
||||||
<translation>本地链接IPV6地址:</translation>
|
<translation>本地链接IPV6地址:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="214"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="223"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="289"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="298"/>
|
||||||
<source>IPV4:</source>
|
<source>IPV4:</source>
|
||||||
<translation>IPV4地址:</translation>
|
<translation>IPV4地址:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="218"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="227"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="290"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="299"/>
|
||||||
<source>IPV4 Dns:</source>
|
<source>IPV4 Dns:</source>
|
||||||
<translation>IPV4 DNS服务器:</translation>
|
<translation>IPV4 DNS服务器:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="228"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="237"/>
|
||||||
<location filename="../src/frontend/netdetails/detailpage.cpp" line="292"/>
|
<location filename="../src/frontend/netdetails/detailpage.cpp" line="301"/>
|
||||||
<source>Mac:</source>
|
<source>Mac:</source>
|
||||||
<translation>物理地址:</translation>
|
<translation>物理地址:</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -466,22 +457,20 @@
|
||||||
<translation>默认网关</translation>
|
<translation>默认网关</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv4page.cpp" line="30"/>
|
|
||||||
<source>Prefs DNS</source>
|
<source>Prefs DNS</source>
|
||||||
<translation>首选DNS</translation>
|
<translation type="vanished">首选DNS</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv4page.cpp" line="31"/>
|
|
||||||
<source>Alternative DNS</source>
|
<source>Alternative DNS</source>
|
||||||
<translation>备选DNS</translation>
|
<translation type="vanished">备选DNS</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv4page.cpp" line="41"/>
|
<location filename="../src/frontend/netdetails/ipv4page.cpp" line="46"/>
|
||||||
<source>Auto(DHCP)</source>
|
<source>Auto(DHCP)</source>
|
||||||
<translation>自动</translation>
|
<translation>自动</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv4page.cpp" line="42"/>
|
<location filename="../src/frontend/netdetails/ipv4page.cpp" line="47"/>
|
||||||
<source>Manual</source>
|
<source>Manual</source>
|
||||||
<translation>手动</translation>
|
<translation>手动</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -489,42 +478,40 @@
|
||||||
<context>
|
<context>
|
||||||
<name>Ipv6Page</name>
|
<name>Ipv6Page</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="108"/>
|
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="123"/>
|
||||||
<source>Ipv6Config</source>
|
<source>Ipv6Config</source>
|
||||||
<translation>Ipv6配置</translation>
|
<translation>Ipv6配置</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="109"/>
|
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="124"/>
|
||||||
<source>Address</source>
|
<source>Address</source>
|
||||||
<translation>地址</translation>
|
<translation>地址</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="110"/>
|
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="125"/>
|
||||||
<source>Subnet prefix Length</source>
|
<source>Subnet prefix Length</source>
|
||||||
<translation>子网前缀长度</translation>
|
<translation>子网前缀长度</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="111"/>
|
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="126"/>
|
||||||
<source>Default Gateway</source>
|
<source>Default Gateway</source>
|
||||||
<translation>默认网关</translation>
|
<translation>默认网关</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="112"/>
|
|
||||||
<source>Prefs DNS</source>
|
<source>Prefs DNS</source>
|
||||||
<translation>首选DNS</translation>
|
<translation type="vanished">首选DNS</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="113"/>
|
|
||||||
<source>Alternative DNS</source>
|
<source>Alternative DNS</source>
|
||||||
<translation>备选DNS</translation>
|
<translation type="vanished">备选DNS</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="124"/>
|
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="142"/>
|
||||||
<source>Auto(DHCP)</source>
|
<source>Auto(DHCP)</source>
|
||||||
<translation>自动</translation>
|
<translation>自动</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="125"/>
|
<location filename="../src/frontend/netdetails/ipv6page.cpp" line="143"/>
|
||||||
<source>Manual</source>
|
<source>Manual</source>
|
||||||
<translation>手动</translation>
|
<translation>手动</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -557,37 +544,37 @@
|
||||||
<context>
|
<context>
|
||||||
<name>LanPage</name>
|
<name>LanPage</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="202"/>
|
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="1194"/>
|
||||||
<source>No ethernet device avaliable</source>
|
<source>No ethernet device avaliable</source>
|
||||||
<translation>未检测到有线设备</translation>
|
<translation>未检测到有线设备</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="756"/>
|
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="735"/>
|
||||||
<source>LAN</source>
|
<source>LAN</source>
|
||||||
<translation>有线网络</translation>
|
<translation>有线网络</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="758"/>
|
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="737"/>
|
||||||
<source>Activated LAN</source>
|
<source>Activated LAN</source>
|
||||||
<translation>我的网络</translation>
|
<translation>我的网络</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="767"/>
|
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="746"/>
|
||||||
<source>Inactivated LAN</source>
|
<source>Inactivated LAN</source>
|
||||||
<translation>其他网络</translation>
|
<translation>其他网络</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="869"/>
|
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="849"/>
|
||||||
<source>LAN Disconnected Successfully</source>
|
<source>LAN Disconnected Successfully</source>
|
||||||
<translation>有线网络已断开</translation>
|
<translation>有线网络已断开</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="1209"/>
|
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="1218"/>
|
||||||
<source>Wired Device not carried</source>
|
<source>Wired Device not carried</source>
|
||||||
<translation>未插入网线</translation>
|
<translation>未插入网线</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="845"/>
|
<location filename="../src/frontend/tab-pages/lanpage.cpp" line="825"/>
|
||||||
<source>LAN Connected Successfully</source>
|
<source>LAN Connected Successfully</source>
|
||||||
<translation>有线网络已连接</translation>
|
<translation>有线网络已连接</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -595,12 +582,12 @@
|
||||||
<context>
|
<context>
|
||||||
<name>ListItem</name>
|
<name>ListItem</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/list-items/listitem.cpp" line="62"/>
|
<location filename="../src/frontend/list-items/listitem.cpp" line="69"/>
|
||||||
<source>Kylin NM</source>
|
<source>Kylin NM</source>
|
||||||
<translation>麒麟网络设置工具</translation>
|
<translation>麒麟网络设置工具</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/list-items/listitem.cpp" line="65"/>
|
<location filename="../src/frontend/list-items/listitem.cpp" line="72"/>
|
||||||
<source>kylin network applet desktop message</source>
|
<source>kylin network applet desktop message</source>
|
||||||
<translation>网络提示消息</translation>
|
<translation>网络提示消息</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -608,64 +595,72 @@
|
||||||
<context>
|
<context>
|
||||||
<name>MainWindow</name>
|
<name>MainWindow</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/mainwindow.cpp" line="121"/>
|
<location filename="../src/frontend/mainwindow.cpp" line="168"/>
|
||||||
<location filename="../src/frontend/mainwindow.cpp" line="237"/>
|
<location filename="../src/frontend/mainwindow.cpp" line="289"/>
|
||||||
<source>kylin-nm</source>
|
<source>kylin-nm</source>
|
||||||
<translation>网络工具</translation>
|
<translation>网络工具</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/mainwindow.cpp" line="199"/>
|
<location filename="../src/frontend/mainwindow.cpp" line="251"/>
|
||||||
<source>LAN</source>
|
<source>LAN</source>
|
||||||
<translatorcomment>有线网络</translatorcomment>
|
<translatorcomment>有线网络</translatorcomment>
|
||||||
<translation>有线网络</translation>
|
<translation>有线网络</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/mainwindow.cpp" line="201"/>
|
<location filename="../src/frontend/mainwindow.cpp" line="253"/>
|
||||||
<source>WLAN</source>
|
<source>WLAN</source>
|
||||||
<translatorcomment>无线局域网</translatorcomment>
|
<translatorcomment>无线局域网</translatorcomment>
|
||||||
<translation>无线局域网</translation>
|
<translation>无线局域网</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/mainwindow.cpp" line="234"/>
|
<location filename="../src/frontend/mainwindow.cpp" line="286"/>
|
||||||
<source>Show MainWindow</source>
|
<source>Show MainWindow</source>
|
||||||
<translation>打开网络工具</translation>
|
<translation>打开网络工具</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/mainwindow.cpp" line="235"/>
|
<location filename="../src/frontend/mainwindow.cpp" line="287"/>
|
||||||
<source>Settings</source>
|
<source>Settings</source>
|
||||||
<translatorcomment>设置网络项</translatorcomment>
|
<translatorcomment>设置网络项</translatorcomment>
|
||||||
<translation>设置网络项</translation>
|
<translation>设置网络项</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>MultipleDnsWidget</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/netdetails/multiplednswidget.cpp" line="42"/>
|
||||||
|
<source>DNS server:</source>
|
||||||
|
<translation>DNS服务器:</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>NetDetail</name>
|
<name>NetDetail</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="38"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="49"/>
|
||||||
<source>Kylin NM</source>
|
<source>Kylin NM</source>
|
||||||
<translation>麒麟网络设置工具</translation>
|
<translation>麒麟网络设置工具</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="41"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="52"/>
|
||||||
<source>kylin network desktop message</source>
|
<source>kylin network desktop message</source>
|
||||||
<translation>网络提示消息</translation>
|
<translation>网络提示消息</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="218"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="241"/>
|
||||||
<source>Detail</source>
|
<source>Detail</source>
|
||||||
<translation>详情</translation>
|
<translation>详情</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="223"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="242"/>
|
||||||
<source>Ipv4</source>
|
<source>Ipv4</source>
|
||||||
<translation>Ipv4</translation>
|
<translation>Ipv4</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="227"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="243"/>
|
||||||
<source>Ipv6</source>
|
<source>Ipv6</source>
|
||||||
<translation>Ipv6</translation>
|
<translation>Ipv6</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="231"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="245"/>
|
||||||
<source>Security</source>
|
<source>Security</source>
|
||||||
<translation>安全</translation>
|
<translation>安全</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -674,84 +669,84 @@
|
||||||
<translation type="vanished">关闭</translation>
|
<translation type="vanished">关闭</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="250"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="260"/>
|
||||||
<source>Confirm</source>
|
<source>Confirm</source>
|
||||||
<translation>确定</translation>
|
<translation>确定</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="253"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="263"/>
|
||||||
<source>Cancel</source>
|
<source>Cancel</source>
|
||||||
<translation>取消</translation>
|
<translation>取消</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="256"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="266"/>
|
||||||
<source>Forget this network</source>
|
<source>Forget this network</source>
|
||||||
<translation>忘记此网络</translation>
|
<translation>忘记此网络</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="286"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="296"/>
|
||||||
<source>Add Lan Connect</source>
|
<source>Add Lan Connect</source>
|
||||||
<translation>添加有线网络</translation>
|
<translation>添加有线网络</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="295"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="301"/>
|
||||||
<source>connect hiddin wlan</source>
|
<source>connect hiddin wlan</source>
|
||||||
<translation>连接到隐藏WLAN</translation>
|
<translation>连接到隐藏WLAN</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="453"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="449"/>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="465"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="461"/>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="932"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="930"/>
|
||||||
<source>None</source>
|
<source>None</source>
|
||||||
<translation>无</translation>
|
<translation>无</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="562"/>
|
||||||
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="563"/>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="564"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="564"/>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="565"/>
|
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="566"/>
|
|
||||||
<source>Auto</source>
|
<source>Auto</source>
|
||||||
<translation>自动</translation>
|
<translation>自动</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="682"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="680"/>
|
||||||
<source>start check ipv4 address conflict</source>
|
<source>start check ipv4 address conflict</source>
|
||||||
<translation>开始检测ipv4地址冲突</translation>
|
<translation>开始检测ipv4地址冲突</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="699"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="697"/>
|
||||||
<source>start check ipv6 address conflict</source>
|
<source>start check ipv6 address conflict</source>
|
||||||
<translation>开始检测ipv6地址冲突</translation>
|
<translation>开始检测ipv6地址冲突</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="745"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="743"/>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="796"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="794"/>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="884"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="882"/>
|
||||||
<source>ipv4 address conflict!</source>
|
<source>ipv4 address conflict!</source>
|
||||||
<translation>ipv4地址冲突!</translation>
|
<translation>ipv4地址冲突!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="804"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="802"/>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="892"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="890"/>
|
||||||
<source>ipv6 address conflict!</source>
|
<source>ipv6 address conflict!</source>
|
||||||
<translation>ipv6地址冲突!</translation>
|
<translation>ipv6地址冲突!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="928"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="926"/>
|
||||||
<source>this wifi no support enterprise type</source>
|
<source>this wifi no support enterprise type</source>
|
||||||
<translation>此wifi不支持企业网类型</translation>
|
<translation>此wifi不支持企业网类型</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="933"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="931"/>
|
||||||
<source>this wifi no support None type</source>
|
<source>this wifi no support None type</source>
|
||||||
<translation>此wifi不支持空类型</translation>
|
<translation>此wifi不支持空类型</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="938"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="936"/>
|
||||||
<source>this wifi no support WPA2 type</source>
|
<source>this wifi no support WPA2 type</source>
|
||||||
<translation>此wifi不支持WPA2类型</translation>
|
<translation>此wifi不支持WPA2类型</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/netdetail.cpp" line="941"/>
|
<location filename="../src/frontend/netdetails/netdetail.cpp" line="939"/>
|
||||||
<source>this wifi no support WPA3 type</source>
|
<source>this wifi no support WPA3 type</source>
|
||||||
<translation>此wifi不支持WPA3类型</translation>
|
<translation>此wifi不支持WPA3类型</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -937,11 +932,11 @@
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="100"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="100"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="103"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="103"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="106"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="106"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="228"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="175"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="727"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="674"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="782"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="695"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="804"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="717"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="827"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="740"/>
|
||||||
<source>None</source>
|
<source>None</source>
|
||||||
<translation>无</translation>
|
<translation>无</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -968,20 +963,38 @@
|
||||||
<translation>从文件选择...</translation>
|
<translation>从文件选择...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="772"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="685"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="795"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="708"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="817"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="730"/>
|
||||||
<source>Choose a CA certificate</source>
|
<source>Choose a CA certificate</source>
|
||||||
<translation>选择一个CA证书</translation>
|
<translation>选择一个CA证书</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="773"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="686"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="796"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="709"/>
|
||||||
<location filename="../src/frontend/netdetails/securitypage.cpp" line="818"/>
|
<location filename="../src/frontend/netdetails/securitypage.cpp" line="731"/>
|
||||||
<source>CA Files (*.pem *.der *.p12 *.crt *.cer *.pfx)</source>
|
<source>CA Files (*.pem *.der *.p12 *.crt *.cer *.pfx)</source>
|
||||||
<translation>CA 证书 (*.pem *.der *.p12 *.crt *.cer *.pfx)</translation>
|
<translation>CA 证书 (*.pem *.der *.p12 *.crt *.cer *.pfx)</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>SinglePage</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/single-pages/singlepage.cpp" line="71"/>
|
||||||
|
<source>Settings</source>
|
||||||
|
<translation>设置</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/single-pages/singlepage.cpp" line="99"/>
|
||||||
|
<source>Kylin NM</source>
|
||||||
|
<translation>网络工具</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/single-pages/singlepage.cpp" line="102"/>
|
||||||
|
<source>kylin network applet desktop message</source>
|
||||||
|
<translation>网络提示消息</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>TabPage</name>
|
<name>TabPage</name>
|
||||||
<message>
|
<message>
|
||||||
|
@ -1000,16 +1013,49 @@
|
||||||
<translation>网络设置</translation>
|
<translation>网络设置</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/tabpage.cpp" line="148"/>
|
<location filename="../src/frontend/tab-pages/tabpage.cpp" line="154"/>
|
||||||
<source>Kylin NM</source>
|
<source>Kylin NM</source>
|
||||||
<translation>麒麟网络设置工具</translation>
|
<translation>麒麟网络设置工具</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/tabpage.cpp" line="151"/>
|
<location filename="../src/frontend/tab-pages/tabpage.cpp" line="157"/>
|
||||||
<source>kylin network applet desktop message</source>
|
<source>kylin network applet desktop message</source>
|
||||||
<translation>网络提示消息</translation>
|
<translation>网络提示消息</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>VpnListItem</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/list-items/vpnlistitem.cpp" line="62"/>
|
||||||
|
<source>Not connected</source>
|
||||||
|
<translation>未连接</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/list-items/vpnlistitem.cpp" line="142"/>
|
||||||
|
<location filename="../src/frontend/list-items/vpnlistitem.cpp" line="158"/>
|
||||||
|
<source>Disconnect</source>
|
||||||
|
<translation>断开</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/list-items/vpnlistitem.cpp" line="144"/>
|
||||||
|
<location filename="../src/frontend/list-items/vpnlistitem.cpp" line="156"/>
|
||||||
|
<source>Connect</source>
|
||||||
|
<translation>连接</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>VpnPage</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/single-pages/vpnpage.cpp" line="276"/>
|
||||||
|
<source>VPN Connection</source>
|
||||||
|
<translation>VPN连接</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/single-pages/vpnpage.cpp" line="291"/>
|
||||||
|
<source>VPN Settings</source>
|
||||||
|
<translation>VPN设置</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>WiFiConfigDialog</name>
|
<name>WiFiConfigDialog</name>
|
||||||
<message>
|
<message>
|
||||||
|
@ -1018,37 +1064,37 @@
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/wificonfigdialog.cpp" line="21"/>
|
<location filename="../src/frontend/wificonfigdialog.cpp" line="23"/>
|
||||||
<source>WLAN Authentication</source>
|
<source>WLAN Authentication</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/wificonfigdialog.cpp" line="32"/>
|
<location filename="../src/frontend/wificonfigdialog.cpp" line="34"/>
|
||||||
<source>Input WLAN Information Please</source>
|
<source>Input WLAN Information Please</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/wificonfigdialog.cpp" line="33"/>
|
<location filename="../src/frontend/wificonfigdialog.cpp" line="35"/>
|
||||||
<source>WLAN ID:</source>
|
<source>WLAN ID:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/wificonfigdialog.cpp" line="34"/>
|
<location filename="../src/frontend/wificonfigdialog.cpp" line="36"/>
|
||||||
<source>WLAN Name:</source>
|
<source>WLAN Name:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/wificonfigdialog.cpp" line="35"/>
|
<location filename="../src/frontend/wificonfigdialog.cpp" line="37"/>
|
||||||
<source>Password:</source>
|
<source>Password:</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/wificonfigdialog.cpp" line="36"/>
|
<location filename="../src/frontend/wificonfigdialog.cpp" line="38"/>
|
||||||
<source>Cancl</source>
|
<source>Cancl</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/wificonfigdialog.cpp" line="37"/>
|
<location filename="../src/frontend/wificonfigdialog.cpp" line="39"/>
|
||||||
<source>Ok</source>
|
<source>Ok</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -1056,31 +1102,31 @@
|
||||||
<context>
|
<context>
|
||||||
<name>WlanListItem</name>
|
<name>WlanListItem</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="42"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="43"/>
|
||||||
<source>Not connected</source>
|
<source>Not connected</source>
|
||||||
<translation>未连接</translation>
|
<translation>未连接</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="138"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="136"/>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="565"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="565"/>
|
||||||
<source>Disconnect</source>
|
<source>Disconnect</source>
|
||||||
<translation>断开</translation>
|
<translation>断开</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="140"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="138"/>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="267"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="251"/>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="563"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="563"/>
|
||||||
<source>Connect</source>
|
<source>Connect</source>
|
||||||
<translation>连接</translation>
|
<translation>连接</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="147"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="145"/>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="570"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="570"/>
|
||||||
<source>Forget</source>
|
<source>Forget</source>
|
||||||
<translation>忘记此网络</translation>
|
<translation>忘记此网络</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="288"/>
|
<location filename="../src/frontend/list-items/wlanlistitem.cpp" line="272"/>
|
||||||
<source>Auto Connect</source>
|
<source>Auto Connect</source>
|
||||||
<translation>自动加入该网络</translation>
|
<translation>自动加入该网络</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -1100,22 +1146,22 @@
|
||||||
<context>
|
<context>
|
||||||
<name>WlanPage</name>
|
<name>WlanPage</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="74"/>
|
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="86"/>
|
||||||
<source>WLAN</source>
|
<source>WLAN</source>
|
||||||
<translation>无线局域网</translation>
|
<translation>无线局域网</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="127"/>
|
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="70"/>
|
||||||
<source>No wireless network card detected</source>
|
<source>No wireless network card detected</source>
|
||||||
<translation>未检测到无线网卡</translation>
|
<translation>未检测到无线网卡</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="76"/>
|
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="88"/>
|
||||||
<source>Activated WLAN</source>
|
<source>Activated WLAN</source>
|
||||||
<translation>我的网络</translation>
|
<translation>我的网络</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="86"/>
|
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="98"/>
|
||||||
<source>Other WLAN</source>
|
<source>Other WLAN</source>
|
||||||
<translation>其他网络</translation>
|
<translation>其他网络</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -1124,13 +1170,13 @@
|
||||||
<translation type="vanished">更多...</translation>
|
<translation type="vanished">更多...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="810"/>
|
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="798"/>
|
||||||
<source>WLAN Connected Successfully</source>
|
<source>WLAN Connected Successfully</source>
|
||||||
<translation>无线网络已连接</translation>
|
<translation>无线网络已连接</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="554"/>
|
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="543"/>
|
||||||
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="806"/>
|
<location filename="../src/frontend/tab-pages/wlanpage.cpp" line="794"/>
|
||||||
<source>WLAN Disconnected Successfully</source>
|
<source>WLAN Disconnected Successfully</source>
|
||||||
<translation>无线网络已断开</translation>
|
<translation>无线网络已断开</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -1190,4 +1236,35 @@
|
||||||
<translation type="obsolete">不需要CA证书</translation>
|
<translation type="obsolete">不需要CA证书</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>main</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/main.cpp" line="96"/>
|
||||||
|
<source>kylinnm</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/main.cpp" line="100"/>
|
||||||
|
<source>show kylin-nm wifi page</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/main.cpp" line="101"/>
|
||||||
|
<source>show kylin-nm lan page</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>vpnMainWindow</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/vpnmainwindow.cpp" line="170"/>
|
||||||
|
<source>kylin-vpn</source>
|
||||||
|
<translation>VPN工具</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../src/frontend/vpnmainwindow.cpp" line="252"/>
|
||||||
|
<source>vpn tool</source>
|
||||||
|
<translation>VPN工具</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
</TS>
|
</TS>
|
||||||
|
|
Loading…
Reference in New Issue