This commit is contained in:
zhangyuanyuan1 2022-04-06 16:21:16 +08:00
parent 1d2c6020ac
commit b297c28528
21 changed files with 399 additions and 379 deletions

View File

@ -4,7 +4,7 @@ CONFIG += ordered \
qt
SUBDIRS = \
# plugins/plugin.pro \
plugins/plugin.pro \
src \
TRANSLATIONS += \

View File

@ -24,79 +24,79 @@
<context>
<name>MobileHotspotWidget</name>
<message>
<location filename="../mobilehotspotwidget.cpp" line="29"/>
<location filename="../mobilehotspotwidget.cpp" line="30"/>
<source>ukui control center</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="32"/>
<location filename="../mobilehotspotwidget.cpp" line="33"/>
<source>ukui control center desktop message</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="95"/>
<location filename="../mobilehotspotwidget.cpp" line="102"/>
<source>wirless switch is close or no wireless device</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="99"/>
<location filename="../mobilehotspotwidget.cpp" line="106"/>
<source>start to close hotspot</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="108"/>
<location filename="../mobilehotspotwidget.cpp" line="115"/>
<source>hotpots name or device is invalid</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="112"/>
<location filename="../mobilehotspotwidget.cpp" line="119"/>
<source>can not create hotspot with password length less than eight!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="115"/>
<location filename="../mobilehotspotwidget.cpp" line="122"/>
<source>start to open hotspot </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="148"/>
<location filename="../mobilehotspotwidget.cpp" line="155"/>
<source>Hotspot</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="220"/>
<location filename="../mobilehotspotwidget.cpp" line="526"/>
<location filename="../mobilehotspotwidget.cpp" line="227"/>
<location filename="../mobilehotspotwidget.cpp" line="532"/>
<source>hotspot already close</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="360"/>
<location filename="../mobilehotspotwidget.cpp" line="367"/>
<source>Open</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="381"/>
<location filename="../mobilehotspotwidget.cpp" line="388"/>
<source>Wi-Fi Name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="403"/>
<location filename="../mobilehotspotwidget.cpp" line="410"/>
<source>Password</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="442"/>
<location filename="../mobilehotspotwidget.cpp" line="448"/>
<source>Frequency band</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="467"/>
<location filename="../mobilehotspotwidget.cpp" line="473"/>
<source>Net card</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="542"/>
<location filename="../mobilehotspotwidget.cpp" line="550"/>
<location filename="../mobilehotspotwidget.cpp" line="548"/>
<location filename="../mobilehotspotwidget.cpp" line="556"/>
<source>hotspot already open</source>
<translation type="unfinished"></translation>
</message>

View File

@ -24,79 +24,79 @@
<context>
<name>MobileHotspotWidget</name>
<message>
<location filename="../mobilehotspotwidget.cpp" line="29"/>
<location filename="../mobilehotspotwidget.cpp" line="30"/>
<source>ukui control center</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="32"/>
<location filename="../mobilehotspotwidget.cpp" line="33"/>
<source>ukui control center desktop message</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="95"/>
<location filename="../mobilehotspotwidget.cpp" line="102"/>
<source>wirless switch is close or no wireless device</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="99"/>
<location filename="../mobilehotspotwidget.cpp" line="106"/>
<source>start to close hotspot</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="108"/>
<location filename="../mobilehotspotwidget.cpp" line="115"/>
<source>hotpots name or device is invalid</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="112"/>
<location filename="../mobilehotspotwidget.cpp" line="119"/>
<source>can not create hotspot with password length less than eight!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="115"/>
<location filename="../mobilehotspotwidget.cpp" line="122"/>
<source>start to open hotspot </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="148"/>
<location filename="../mobilehotspotwidget.cpp" line="155"/>
<source>Hotspot</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="220"/>
<location filename="../mobilehotspotwidget.cpp" line="526"/>
<location filename="../mobilehotspotwidget.cpp" line="227"/>
<location filename="../mobilehotspotwidget.cpp" line="532"/>
<source>hotspot already close</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="360"/>
<location filename="../mobilehotspotwidget.cpp" line="367"/>
<source>Open</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="381"/>
<location filename="../mobilehotspotwidget.cpp" line="388"/>
<source>Wi-Fi Name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="403"/>
<location filename="../mobilehotspotwidget.cpp" line="410"/>
<source>Password</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="442"/>
<location filename="../mobilehotspotwidget.cpp" line="448"/>
<source>Frequency band</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="467"/>
<location filename="../mobilehotspotwidget.cpp" line="473"/>
<source>Net card</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="542"/>
<location filename="../mobilehotspotwidget.cpp" line="550"/>
<location filename="../mobilehotspotwidget.cpp" line="548"/>
<location filename="../mobilehotspotwidget.cpp" line="556"/>
<source>hotspot already open</source>
<translation type="unfinished"></translation>
</message>

View File

@ -24,79 +24,79 @@
<context>
<name>MobileHotspotWidget</name>
<message>
<location filename="../mobilehotspotwidget.cpp" line="29"/>
<location filename="../mobilehotspotwidget.cpp" line="30"/>
<source>ukui control center</source>
<translation></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="32"/>
<location filename="../mobilehotspotwidget.cpp" line="33"/>
<source>ukui control center desktop message</source>
<translation></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="95"/>
<location filename="../mobilehotspotwidget.cpp" line="102"/>
<source>wirless switch is close or no wireless device</source>
<translation>线线</translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="99"/>
<location filename="../mobilehotspotwidget.cpp" line="106"/>
<source>start to close hotspot</source>
<translation></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="108"/>
<location filename="../mobilehotspotwidget.cpp" line="115"/>
<source>hotpots name or device is invalid</source>
<translation></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="112"/>
<location filename="../mobilehotspotwidget.cpp" line="119"/>
<source>can not create hotspot with password length less than eight!</source>
<translation></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="115"/>
<location filename="../mobilehotspotwidget.cpp" line="122"/>
<source>start to open hotspot </source>
<translation></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="148"/>
<location filename="../mobilehotspotwidget.cpp" line="155"/>
<source>Hotspot</source>
<translation></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="220"/>
<location filename="../mobilehotspotwidget.cpp" line="526"/>
<location filename="../mobilehotspotwidget.cpp" line="227"/>
<location filename="../mobilehotspotwidget.cpp" line="532"/>
<source>hotspot already close</source>
<translation></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="360"/>
<location filename="../mobilehotspotwidget.cpp" line="367"/>
<source>Open</source>
<translation></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="381"/>
<location filename="../mobilehotspotwidget.cpp" line="388"/>
<source>Wi-Fi Name</source>
<translation>Wi-Fi名称</translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="403"/>
<location filename="../mobilehotspotwidget.cpp" line="410"/>
<source>Password</source>
<translation></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="442"/>
<location filename="../mobilehotspotwidget.cpp" line="448"/>
<source>Frequency band</source>
<translation></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="467"/>
<location filename="../mobilehotspotwidget.cpp" line="473"/>
<source>Net card</source>
<translation></translation>
</message>
<message>
<location filename="../mobilehotspotwidget.cpp" line="542"/>
<location filename="../mobilehotspotwidget.cpp" line="550"/>
<location filename="../mobilehotspotwidget.cpp" line="548"/>
<location filename="../mobilehotspotwidget.cpp" line="556"/>
<source>hotspot already open</source>
<translation></translation>
</message>

View File

@ -53,7 +53,7 @@
</message>
<message>
<location filename="../netconnect.cpp" line="426"/>
<location filename="../netconnect.cpp" line="835"/>
<location filename="../netconnect.cpp" line="833"/>
<source>connected</source>
<translation type="unfinished"></translation>
</message>

View File

@ -53,7 +53,7 @@
</message>
<message>
<location filename="../netconnect.cpp" line="426"/>
<location filename="../netconnect.cpp" line="835"/>
<location filename="../netconnect.cpp" line="833"/>
<source>connected</source>
<translation type="unfinished"></translation>
</message>

View File

@ -53,7 +53,7 @@
</message>
<message>
<location filename="../netconnect.cpp" line="426"/>
<location filename="../netconnect.cpp" line="835"/>
<location filename="../netconnect.cpp" line="833"/>
<source>connected</source>
<translation></translation>
</message>

View File

@ -5,54 +5,54 @@
<name>WlanConnect</name>
<message>
<location filename="../wlanconnect.ui" line="14"/>
<location filename="../wlanconnect.cpp" line="93"/>
<location filename="../wlanconnect.cpp" line="97"/>
<source>WlanConnect</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wlanconnect.ui" line="35"/>
<location filename="../wlanconnect.cpp" line="164"/>
<location filename="../wlanconnect.cpp" line="168"/>
<source>WLAN</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wlanconnect.ui" line="94"/>
<location filename="../wlanconnect.cpp" line="166"/>
<location filename="../wlanconnect.cpp" line="170"/>
<source>open</source>
<translation type="unfinished"></translation>
<extra-contents_path>/wlanconnect/open</extra-contents_path>
</message>
<message>
<location filename="../wlanconnect.ui" line="147"/>
<location filename="../wlanconnect.cpp" line="163"/>
<location filename="../wlanconnect.cpp" line="167"/>
<source>Advanced settings</source>
<translation type="unfinished"></translation>
<extra-contents_path>/wlanconnect/Advanced settings&quot;</extra-contents_path>
</message>
<message>
<location filename="../wlanconnect.cpp" line="76"/>
<location filename="../wlanconnect.cpp" line="80"/>
<source>ukui control center</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wlanconnect.cpp" line="79"/>
<location filename="../wlanconnect.cpp" line="83"/>
<source>ukui control center desktop message</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wlanconnect.cpp" line="188"/>
<location filename="../wlanconnect.cpp" line="192"/>
<source>No wireless network card detected</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wlanconnect.cpp" line="326"/>
<location filename="../wlanconnect.cpp" line="916"/>
<location filename="../wlanconnect.cpp" line="980"/>
<location filename="../wlanconnect.cpp" line="330"/>
<location filename="../wlanconnect.cpp" line="933"/>
<location filename="../wlanconnect.cpp" line="995"/>
<source>connected</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wlanconnect.cpp" line="869"/>
<location filename="../wlanconnect.cpp" line="879"/>
<source>card</source>
<translation type="unfinished"></translation>
</message>

View File

@ -5,54 +5,54 @@
<name>WlanConnect</name>
<message>
<location filename="../wlanconnect.ui" line="14"/>
<location filename="../wlanconnect.cpp" line="93"/>
<location filename="../wlanconnect.cpp" line="97"/>
<source>WlanConnect</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wlanconnect.ui" line="35"/>
<location filename="../wlanconnect.cpp" line="164"/>
<location filename="../wlanconnect.cpp" line="168"/>
<source>WLAN</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wlanconnect.ui" line="94"/>
<location filename="../wlanconnect.cpp" line="166"/>
<location filename="../wlanconnect.cpp" line="170"/>
<source>open</source>
<translation type="unfinished"></translation>
<extra-contents_path>/wlanconnect/open</extra-contents_path>
</message>
<message>
<location filename="../wlanconnect.ui" line="147"/>
<location filename="../wlanconnect.cpp" line="163"/>
<location filename="../wlanconnect.cpp" line="167"/>
<source>Advanced settings</source>
<translation type="unfinished"></translation>
<extra-contents_path>/wlanconnect/Advanced settings&quot;</extra-contents_path>
</message>
<message>
<location filename="../wlanconnect.cpp" line="76"/>
<location filename="../wlanconnect.cpp" line="80"/>
<source>ukui control center</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wlanconnect.cpp" line="79"/>
<location filename="../wlanconnect.cpp" line="83"/>
<source>ukui control center desktop message</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wlanconnect.cpp" line="188"/>
<location filename="../wlanconnect.cpp" line="192"/>
<source>No wireless network card detected</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wlanconnect.cpp" line="326"/>
<location filename="../wlanconnect.cpp" line="916"/>
<location filename="../wlanconnect.cpp" line="980"/>
<location filename="../wlanconnect.cpp" line="330"/>
<location filename="../wlanconnect.cpp" line="933"/>
<location filename="../wlanconnect.cpp" line="995"/>
<source>connected</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wlanconnect.cpp" line="869"/>
<location filename="../wlanconnect.cpp" line="879"/>
<source>card</source>
<translation type="unfinished"></translation>
</message>

View File

@ -5,54 +5,54 @@
<name>WlanConnect</name>
<message>
<location filename="../wlanconnect.ui" line="14"/>
<location filename="../wlanconnect.cpp" line="93"/>
<location filename="../wlanconnect.cpp" line="97"/>
<source>WlanConnect</source>
<translation>线</translation>
</message>
<message>
<location filename="../wlanconnect.ui" line="35"/>
<location filename="../wlanconnect.cpp" line="164"/>
<location filename="../wlanconnect.cpp" line="168"/>
<source>WLAN</source>
<translation>线</translation>
</message>
<message>
<location filename="../wlanconnect.ui" line="94"/>
<location filename="../wlanconnect.cpp" line="166"/>
<location filename="../wlanconnect.cpp" line="170"/>
<source>open</source>
<translation></translation>
<extra-contents_path>/wlanconnect/open</extra-contents_path>
</message>
<message>
<location filename="../wlanconnect.ui" line="147"/>
<location filename="../wlanconnect.cpp" line="163"/>
<location filename="../wlanconnect.cpp" line="167"/>
<source>Advanced settings</source>
<translation></translation>
<extra-contents_path>/wlanconnect/Advanced settings&quot;</extra-contents_path>
</message>
<message>
<location filename="../wlanconnect.cpp" line="76"/>
<location filename="../wlanconnect.cpp" line="80"/>
<source>ukui control center</source>
<translation></translation>
</message>
<message>
<location filename="../wlanconnect.cpp" line="79"/>
<location filename="../wlanconnect.cpp" line="83"/>
<source>ukui control center desktop message</source>
<translation></translation>
</message>
<message>
<location filename="../wlanconnect.cpp" line="188"/>
<location filename="../wlanconnect.cpp" line="192"/>
<source>No wireless network card detected</source>
<translation>线</translation>
</message>
<message>
<location filename="../wlanconnect.cpp" line="326"/>
<location filename="../wlanconnect.cpp" line="916"/>
<location filename="../wlanconnect.cpp" line="980"/>
<location filename="../wlanconnect.cpp" line="330"/>
<location filename="../wlanconnect.cpp" line="933"/>
<location filename="../wlanconnect.cpp" line="995"/>
<source>connected</source>
<translation></translation>
</message>
<message>
<location filename="../wlanconnect.cpp" line="869"/>
<location filename="../wlanconnect.cpp" line="879"/>
<source>card</source>
<translation></translation>
</message>

View File

@ -21,6 +21,8 @@ void DetailPage::setSSID(const QString &ssid) {
if (isCreate) {
return;
}
// this->mSSIDLabel->setText(ssid);
m_formerlSsid = ssid;
this->mSSIDLabel->setText(fontMetrics().elidedText(ssid, Qt::ElideRight, 136, Qt::TextShowMnemonic));
}
@ -53,6 +55,7 @@ void DetailPage::setIpv4Dns(const QString &ipv4Dns) {
}
void DetailPage::setIpv6(const QString &ipv6) {
m_formerIPV6 = ipv6;
this->mIPV6->setText(ipv6);
}
@ -116,7 +119,8 @@ void DetailPage::initUI() {
mSSIDLabel = new QLabel(this);
mSSIDLabel->adjustSize();
mSSIDLabel->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
m_ssidWidget = new FirstDetailWidget(qobject_cast<QWidget *>(mSSIDLabel), m_listWidget);
m_netCopyButton = new CopyButton();
m_ssidWidget = new FirstDetailWidget(qobject_cast<QWidget *>(mSSIDLabel), m_netCopyButton, m_listWidget);
// mSSID->setStyleSheet("background:transparent;border-width:0px;border-style:none");
// mSSID->setFocusPolicy(Qt::NoFocus);
} else {
@ -127,9 +131,12 @@ void DetailPage::initUI() {
mSSIDEdit->setStyleSheet("border-top:0px solid;border-bottom:1px solid;border-left:0px solid;border-right: 0px solid;background:transparent");
mSSIDEdit->setPlaceholderText(tr("Please input SSID:"));
mSSIDEdit->setMaxLength(MAX_NAME_LENGTH);
m_ssidWidget = new FirstDetailWidget(qobject_cast<QWidget *>(mSSIDEdit), m_listWidget);
m_ssidWidget = new FirstDetailWidget(qobject_cast<QWidget *>(mSSIDEdit), m_netCopyButton, m_listWidget);
}
m_netCopyButton->setIcon(QIcon::fromTheme("edit-copy-symbolic"));
connect(m_netCopyButton, &QPushButton::clicked, this, &DetailPage::on_btnCopyNetDetail_clicked);
m_ssidWidget->setKey(tr("SSID:"));
mProtocol = new QLabel(this);
@ -218,3 +225,39 @@ void DetailPage::setEnableOfSaveBtn() {
}
emit setDetailPageState(saveEnable);
}
//获取列表信息
void DetailPage::on_btnCopyNetDetail_clicked()
{
if (!isCopyOk) {
m_ssidCopy += m_formerlSsid;
m_protocolCopy += this->mProtocol->text();
m_netDetailList << m_ssidCopy << m_protocolCopy;
if(mIsWlan)
{
m_securityCopy += this->mSecType->text();
m_hzCopy += this->mHz->text();
m_chanCopy += this->mChan->text();
m_netDetailList << m_securityCopy << m_hzCopy << m_chanCopy;
}
m_bandwithCopy += this->mBandWidth->text();
m_ipv6Copy += m_formerIPV6;
m_ipv4Copy += this->mIPV4->text();
m_ipv4dnsCopy += this->mIPV4Dns->text();
m_macCopy += this->mMac->text();
m_netDetailList << m_bandwithCopy << m_ipv4Copy << m_ipv4dnsCopy << m_ipv6Copy << m_macCopy;
isCopyOk = true;
}
qDebug() << m_netDetailList;
//设置剪贴板内容
m_netDetailCopyText = m_netDetailList.join("\n");
m_clipboard = QApplication::clipboard();
m_clipboard->setText(m_netDetailCopyText);
}

View File

@ -9,6 +9,8 @@
#include <QDebug>
#include <QListWidget>
#include <QApplication>
#include <QPushButton>
#include <QClipboard>
#include "detailwidget.h"
#include "coninfo.h"
@ -53,6 +55,7 @@ public:
DetailWidget * m_ipv6Widget = nullptr;
DetailWidget * m_macWidget = nullptr;
CopyButton * m_netCopyButton;
LineEdit *mSSIDEdit;
// FixLabel *mSSIDLabel;
QLabel *mSSIDLabel;
@ -75,8 +78,30 @@ private:
QCheckBox *forgetNetBox;
bool mIsWlan;
bool isCreate;
QClipboard * m_clipboard ;
QStringList m_netDetailList;
QString m_formerlSsid;
QString m_formerIPV6;
QString m_ssidCopy = tr("SSID:");
QString m_protocolCopy = tr("Protocol:");
QString m_securityCopy = tr("Security Type:");
QString m_hzCopy= tr ("Hz:");
QString m_chanCopy= tr ("Chan:");
QString m_bandwithCopy = tr("BandWidth:");
QString m_ipv4Copy = tr("IPV4:");
QString m_ipv4dnsCopy = tr("IPV4 Dns:");
QString m_ipv6Copy = tr("IPV6:");
QString m_macCopy = tr("Mac:");
QString m_netDetailCopyText;
bool isCopyOk = false;
private slots:
void setEnableOfSaveBtn();
void on_btnCopyNetDetail_clicked();
signals:
void setDetailPageState(bool);

View File

@ -1,6 +1,7 @@
#include "detailwidget.h"
#include <QFontMetrics>
#include <QDebug>
#include <QApplication>
#define ITEM_HEIGHT 36
#define ITEM_MARGINS 18,0,16,0
@ -74,8 +75,8 @@ void DetailWidget::setKey(const QString &keyLabel)
FirstDetailWidget::FirstDetailWidget(QWidget *valueWidget, QWidget *parent)
: m_valueWidget(valueWidget) , QWidget(parent)
FirstDetailWidget::FirstDetailWidget(QWidget *valueWidget,QWidget *button, QWidget *parent)
: m_valueWidget(valueWidget) , m_copyButton (button) ,QWidget(parent)
{
initUI();
}
@ -88,13 +89,6 @@ FirstDetailWidget::~FirstDetailWidget()
void FirstDetailWidget::initUI()
{
this->setFixedHeight(ITEM_HEIGHT);
CopyButton *m_copyButton = new CopyButton();
// QToolButton *m_copyButton = new QToolButton();
// m_copyButton->setProperty("useButtonPalette",true);
// m_copyButton->setf
connect(m_copyButton,&QToolButton::clicked,[=](){
emit sig_click();
});
m_mainLayout = new QHBoxLayout(this);
m_mainLayout->setContentsMargins(ITEM_MARGINS);
@ -102,11 +96,15 @@ void FirstDetailWidget::initUI()
m_keyLabel = new FixLabel(this);
m_keyLabel->setMaximumWidth(MAX_LABEL_WIDTH);
m_keyLabel->setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
m_copyButton->setMaximumWidth(ITEM_HEIGHT-8);
m_copyButton->setMaximumHeight(ITEM_HEIGHT-8);
m_mainLayout->addWidget(m_keyLabel);
m_mainLayout->addStretch();
m_mainLayout->addWidget(m_copyButton);
m_mainLayout->addWidget(m_valueWidget);
m_valueWidget->setMaximumWidth(100000000000);
m_valueWidget->setMaximumWidth(1000);
}
void FirstDetailWidget::setKey(const QString &keyLabel)
@ -116,43 +114,69 @@ void FirstDetailWidget::setKey(const QString &keyLabel)
CopyButton::CopyButton()
{
this->setMaximumWidth(ITEM_HEIGHT-4);
this->setMaximumHeight(ITEM_HEIGHT-4);
this->setToolTip("复制全部");
this->setIcon(QIcon::fromTheme("edit-copy-symbolic"));
// this->setProperty("useButtonPalette",true);
// this->setFlat(true);
//按钮背景颜色-透明
btnPal = this->palette();
color = qApp->palette().color(QPalette::Background);
color.setAlphaF(0);
btnPal.setColor(QPalette::Button, color);
this->setPalette(btnPal);
//设置“复制成功”消息弹窗格式
m_copiedTip = new KBallonTip();
// m_copiedTip->setTipType(Normal);
// m_copiedTip->setFixedSize(73 + 37, 32);
m_copiedTip->setTipType(Nothing);
m_copiedTip->setFixedSize(73, 32);
m_copiedTip->setContentsMargins(6, 4, 4, 6);
m_copiedTip->setWindowFlags(Qt::FramelessWindowHint);
}
CopyButton::~CopyButton()
{
if (m_copiedTip != nullptr)
{
m_copiedTip = nullptr;
delete m_copiedTip;
}
}
void CopyButton::mousePressEvent(QMouseEvent *event)
{
// qDebug()<<"mousePressEvent";
// //按钮背景颜色
// color.setAlphaF(1);
// btnPal.setColor(QPalette::Button, color);
// this->setPalette(btnPal);
return QPushButton:: mousePressEvent(event);
}
void CopyButton::mouseReleaseEvent(QMouseEvent *event)
{
// qDebug()<<"mouseReleaseEvent";
//设置弹窗位置并显示
m_mousePosition = event->globalPos();
m_copiedTip->move(m_mousePosition.x() + 0, m_mousePosition.y() + 20);
m_copiedTip->setText(tr("Copied successfully"));
m_copiedTip->setTipTime(5500);
m_copiedTip->showInfo();
return QPushButton::mouseReleaseEvent(event);
}
void CopyButton::enterEvent(QEvent *event)
{
// qDebug()<<"enterEvent";
this->setToolTip(tr("Copy all"));
return QPushButton::enterEvent(event);
}
void CopyButton::leaveEvent(QEvent *event)
{
// qDebug()<<"leaveEvent";
if (m_copiedTip != nullptr) {
m_copiedTip->close();
}
//按钮背景颜色
color.setAlphaF(0);
btnPal.setColor(QPalette::Button, color);
this->setPalette(btnPal);
return QPushButton::leaveEvent(event);
}
bool CopyButton::event(QEvent *e)
{
qDebug()<<e->type();
return QPushButton::event(e);
}

View File

@ -7,7 +7,11 @@
#include <QPushButton>
#include <QEvent>
#include <QToolButton>
#include "kwidget.h"
#include "ktabbar.h"
#include "kballontip.h"
using namespace kdk;
//文本长自动省略并添加悬浮
class FixLabel : public QLabel
@ -34,8 +38,6 @@ public:
void setKey(const QString &keyLabel);
// void firstDetailWidget();
private:
QHBoxLayout * m_mainLayout = nullptr;
FixLabel * m_keyLabel = nullptr;
@ -51,7 +53,7 @@ class FirstDetailWidget : public QWidget
{
Q_OBJECT
public:
explicit FirstDetailWidget(QWidget *valueWidget = nullptr, QWidget *parent = nullptr);
explicit FirstDetailWidget(QWidget *valueWidget = nullptr, QWidget *button = nullptr, QWidget *parent = nullptr);
~FirstDetailWidget();
void setKey(const QString &keyLabel);
@ -60,12 +62,9 @@ private:
QHBoxLayout * m_mainLayout = nullptr;
FixLabel * m_keyLabel = nullptr;
QWidget * m_valueWidget = nullptr;
QWidget *m_copyButton;
void initUI();
signals:
void sig_click();
};
class CopyButton : public QPushButton
@ -75,13 +74,20 @@ public:
explicit CopyButton();
~CopyButton();
public:
KBallonTip * m_copiedTip = nullptr;
private:
QPoint m_mousePosition;
QPalette btnPal;
QColor color;
protected:
// void paintEvent(QPaintEvent *event);
void mousePressEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
void enterEvent(QEvent *event);
void leaveEvent(QEvent *event);
bool event(QEvent *e);
};
#endif // DetailWidget_H

View File

@ -143,6 +143,7 @@ void NetDetail::onPaletteChanged()
setFramePalette(ipv6Page, pal);
setFramePalette(securityPage, pal);
setFramePalette(createNetPage, pal);
// setFramePalette(detailPage->m_netCopyButton->m_copiedTip, pal);
QPalette listwidget_pal(detailPage->m_listWidget->palette());
listwidget_pal.setColor(QPalette::Base, this->palette().base().color());
@ -182,8 +183,6 @@ void NetDetail::initUI()
detailPage = new DetailPage(isWlan, m_name.isEmpty(), this);
connect(detailPage->m_ssidWidget,&FirstDetailWidget::sig_click,this,&NetDetail::on_BtnCopyNetDetail_clicked);
ipv4Page = new Ipv4Page(this);
ipv6Page = new Ipv6Page(this);
securityPage = new SecurityPage(this);
@ -959,38 +958,3 @@ bool NetDetail::eventFilter(QObject *w, QEvent *event)
}
return QWidget::eventFilter(w, event);
}
//获取列表信息
void NetDetail::on_BtnCopyNetDetail_clicked()
{
if (!isCopyOk) {
m_ssidCopy += m_name;
m_protocolCopy += m_info.strConType;
m_netDetailList << m_ssidCopy << m_protocolCopy;
if(isWlan)
{
m_securityCopy += m_info.strSecType;
m_hzCopy += m_info.strHz;
m_chanCopy += m_info.strChan;
m_netDetailList << m_securityCopy << m_hzCopy << m_chanCopy;
}
m_bandwithCopy += m_info.strBandWidth;
m_ipv4Copy += m_info.strDynamicIpv4;
m_ipv4dnsCopy += m_info.strDynamicIpv4Dns;
m_ipv6Copy += m_info.strDynamicIpv6;
m_macCopy += m_info.strMac;
m_netDetailList << m_bandwithCopy << m_ipv4Copy << m_ipv4dnsCopy << m_ipv6Copy << m_macCopy;
isCopyOk = true;
}
qDebug() << m_netDetailList;
//设置剪贴板内容
m_netDetailCopyText = m_netDetailList.join("\n");
m_clipboard = QApplication::clipboard();
m_clipboard->setText(m_netDetailCopyText);
}

View File

@ -21,8 +21,6 @@
#include <QDBusReply>
#include <QCloseEvent>
#include <QClipboard>
#include "detailpage.h"
#include "ipv4page.h"
#include "ipv6page.h"
@ -108,23 +106,9 @@ private:
QPushButton * securityBtn;
QFrame * pageFrame;
QClipboard * m_clipboard ;
QStringList m_netDetailList;
QString m_name;
QString m_uuid;
QString m_deviceName;
QString m_ssidCopy=tr("SSID:");
QString m_protocolCopy=tr("Protocol:");
QString m_securityCopy;
QString m_hzCopy=tr("Hz:");
QString m_chanCopy=tr("Chan:");
QString m_bandwithCopy=tr("BandWidth:");
QString m_ipv4Copy=tr("IPV4:");
QString m_ipv4dnsCopy=tr("IPV4 Dns:");
QString m_ipv6Copy=tr("IPV6:");
QString m_macCopy=tr("Mac:");
QString m_netDetailCopyText;
bool isWlan;
bool m_isCreateNet;
@ -138,8 +122,6 @@ private:
bool isSecuOk;
bool isConfirmBtnEnable;
bool isCopyOk = false;
ConInfo m_info;
QButtonGroup *m_group;
@ -148,7 +130,6 @@ private slots:
void on_btnConfirm_clicked();
void on_btnForget_clicked();
void onPaletteChanged();
void on_BtnCopyNetDetail_clicked();
signals:
void detailPageClose(bool on);

View File

@ -66,3 +66,13 @@ unix {
DISTFILES += \
org.ukui.kylin-nm.switch.gschema.xml
CONFIG += link_pkgconfig
PKGCONFIG += kysdk-qtwidgets
INCLUDEPATH += \
/usr/include/kysdk/kysdk-base/ \
/usr/lib/kysdk/kysdk-base/
LIBS += -L/usr/lib/kysdk/kysdk-base/ -lkylog -lkyconf -lpthread -lsystemd

View File

@ -1,6 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="bo_CN">
<context>
<name>CopyButton</name>
<message>
<location filename="../src/frontend/netdetails/detailwidget.cpp" line="133"/>
<source>Copied successfully</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailwidget.cpp" line="140"/>
<source>Copy all</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>CreatNetPage</name>
<message>
@ -58,16 +71,18 @@
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="138"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="86"/>
<source>SSID:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="133"/>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="129"/>
<source>Please input SSID:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="142"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="87"/>
<source>Protocol:</source>
<translation type="unfinished"></translation>
</message>
@ -78,36 +93,43 @@
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="150"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="89"/>
<source>Hz:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="154"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="90"/>
<source>Chan:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="158"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="91"/>
<source>BandWidth:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="172"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="94"/>
<source>IPV6:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="162"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="92"/>
<source>IPV4:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="166"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="93"/>
<source>IPV4 Dns:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="176"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="95"/>
<source>Mac:</source>
<translation type="unfinished"></translation>
</message>
@ -324,162 +346,117 @@
<context>
<name>NetDetail</name>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="37"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="38"/>
<source>Kylin NM</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="40"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="41"/>
<source>kylin network desktop message</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="217"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="213"/>
<source>Detail</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="222"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="218"/>
<source>Ipv4</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="226"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="222"/>
<source>Ipv6</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="230"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="226"/>
<source>Security</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="249"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="245"/>
<source>Confirm</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="252"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="248"/>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="255"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="251"/>
<source>Forget this network</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="285"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="281"/>
<source>Add Lan Connect</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="294"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="290"/>
<source>connect hiddin wlan</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="452"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="464"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="931"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="448"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="460"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="927"/>
<source>None</source>
<translation type="unfinished"></translation>
</message>
<message>
<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="565"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="559"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="560"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="561"/>
<source>Auto</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="681"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="677"/>
<source>start check ipv4 address conflict</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="698"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="694"/>
<source>start check ipv6 address conflict</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="744"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="795"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="883"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="740"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="791"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="879"/>
<source>ipv4 address conflict!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="803"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="891"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="799"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="887"/>
<source>ipv6 address conflict!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="927"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="923"/>
<source>this wifi no support enterprise type</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="932"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="928"/>
<source>this wifi no support None type</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="937"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="933"/>
<source>this wifi no support WPA2 type</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="940"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="936"/>
<source>this wifi no support WPA3 type</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="112"/>
<source>SSID:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="113"/>
<source>Protocol:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="115"/>
<source>Hz:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="116"/>
<source>Chan:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="117"/>
<source>BandWidth:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="118"/>
<source>IPV4:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="119"/>
<source>IPV4 Dns:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="120"/>
<source>IPV6:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="121"/>
<source>Mac:</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>OneConnForm</name>

View File

@ -99,6 +99,19 @@
<translation type="vanished">Yeni ayarlar zaten etkili</translation>
</message>
</context>
<context>
<name>CopyButton</name>
<message>
<location filename="../src/frontend/netdetails/detailwidget.cpp" line="133"/>
<source>Copied successfully</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailwidget.cpp" line="140"/>
<source>Copy all</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>CreatNetPage</name>
<message>
@ -156,16 +169,18 @@
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="138"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="86"/>
<source>SSID:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="133"/>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="129"/>
<source>Please input SSID:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="142"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="87"/>
<source>Protocol:</source>
<translation type="unfinished"></translation>
</message>
@ -176,36 +191,43 @@
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="150"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="89"/>
<source>Hz:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="154"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="90"/>
<source>Chan:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="158"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="91"/>
<source>BandWidth:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="172"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="94"/>
<source>IPV6:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="162"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="92"/>
<source>IPV4:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="166"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="93"/>
<source>IPV4 Dns:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="176"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="95"/>
<source>Mac:</source>
<translation type="unfinished"></translation>
</message>
@ -1466,162 +1488,117 @@
<context>
<name>NetDetail</name>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="37"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="38"/>
<source>Kylin NM</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="40"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="41"/>
<source>kylin network desktop message</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="217"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="213"/>
<source>Detail</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="222"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="218"/>
<source>Ipv4</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="226"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="222"/>
<source>Ipv6</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="230"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="226"/>
<source>Security</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="249"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="245"/>
<source>Confirm</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="252"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="248"/>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="255"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="251"/>
<source>Forget this network</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="285"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="281"/>
<source>Add Lan Connect</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="294"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="290"/>
<source>connect hiddin wlan</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="452"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="464"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="931"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="448"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="460"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="927"/>
<source>None</source>
<translation type="unfinished">Yok</translation>
</message>
<message>
<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="565"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="559"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="560"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="561"/>
<source>Auto</source>
<translation type="unfinished">Oto</translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="681"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="677"/>
<source>start check ipv4 address conflict</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="698"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="694"/>
<source>start check ipv6 address conflict</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="744"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="795"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="883"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="740"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="791"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="879"/>
<source>ipv4 address conflict!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="803"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="891"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="799"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="887"/>
<source>ipv6 address conflict!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="927"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="923"/>
<source>this wifi no support enterprise type</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="932"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="928"/>
<source>this wifi no support None type</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="937"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="933"/>
<source>this wifi no support WPA2 type</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="940"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="936"/>
<source>this wifi no support WPA3 type</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="112"/>
<source>SSID:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="113"/>
<source>Protocol:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="115"/>
<source>Hz:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="116"/>
<source>Chan:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="117"/>
<source>BandWidth:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="118"/>
<source>IPV4:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="119"/>
<source>IPV4 Dns:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="120"/>
<source>IPV6:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="121"/>
<source>Mac:</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>NotifySend</name>

Binary file not shown.

View File

@ -32,6 +32,19 @@
<translation type="obsolete">ip地址冲突ip {6 ?}</translation>
</message>
</context>
<context>
<name>CopyButton</name>
<message>
<location filename="../src/frontend/netdetails/detailwidget.cpp" line="133"/>
<source>Copied successfully</source>
<translation></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailwidget.cpp" line="140"/>
<source>Copy all</source>
<translation></translation>
</message>
</context>
<context>
<name>CreatNetPage</name>
<message>
@ -89,16 +102,18 @@
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="138"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="86"/>
<source>SSID:</source>
<translation>SSID</translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="133"/>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="129"/>
<source>Please input SSID:</source>
<translation>SSID:</translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="142"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="87"/>
<source>Protocol:</source>
<translation></translation>
</message>
@ -109,36 +124,43 @@
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="150"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="89"/>
<source>Hz:</source>
<translation></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="154"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="90"/>
<source>Chan:</source>
<translation></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="158"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="91"/>
<source>BandWidth:</source>
<translation></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="172"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="94"/>
<source>IPV6:</source>
<translation>IPV6地址</translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="162"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="92"/>
<source>IPV4:</source>
<translation>IPV4地址</translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="166"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="93"/>
<source>IPV4 Dns:</source>
<translation>IPV4 DNS服务器</translation>
</message>
<message>
<location filename="../src/frontend/netdetails/detailpage.cpp" line="176"/>
<location filename="../src/frontend/netdetails/detailpage.h" line="95"/>
<source>Mac:</source>
<translation></translation>
</message>
@ -592,32 +614,32 @@
<context>
<name>NetDetail</name>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="37"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="38"/>
<source>Kylin NM</source>
<translation></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="40"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="41"/>
<source>kylin network desktop message</source>
<translation></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="217"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="213"/>
<source>Detail</source>
<translation></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="222"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="218"/>
<source>Ipv4</source>
<translation>Ipv4</translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="226"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="222"/>
<source>Ipv6</source>
<translation>Ipv6</translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="230"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="226"/>
<source>Security</source>
<translation></translation>
</message>
@ -626,131 +648,122 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="249"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="245"/>
<source>Confirm</source>
<translation></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="252"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="248"/>
<source>Cancel</source>
<translation></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="255"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="251"/>
<source>Forget this network</source>
<translation></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="285"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="281"/>
<source>Add Lan Connect</source>
<translation>线</translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="294"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="290"/>
<source>connect hiddin wlan</source>
<translation>WLAN</translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="452"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="464"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="931"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="448"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="460"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="927"/>
<source>None</source>
<translation></translation>
</message>
<message>
<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="565"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="559"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="560"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="561"/>
<source>Auto</source>
<translation></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="681"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="677"/>
<source>start check ipv4 address conflict</source>
<translation>ipv4地址冲突</translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="698"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="694"/>
<source>start check ipv6 address conflict</source>
<translation>ipv6地址冲突</translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="744"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="795"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="883"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="740"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="791"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="879"/>
<source>ipv4 address conflict!</source>
<translation>ipv4地址冲突</translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="803"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="891"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="799"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="887"/>
<source>ipv6 address conflict!</source>
<translation>ipv6地址冲突</translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="927"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="923"/>
<source>this wifi no support enterprise type</source>
<translation>wifi不支持企业网类型</translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="932"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="928"/>
<source>this wifi no support None type</source>
<translation>wifi不支持空类型</translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="937"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="933"/>
<source>this wifi no support WPA2 type</source>
<translation>wifi不支持WPA2类型</translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="940"/>
<location filename="../src/frontend/netdetails/netdetail.cpp" line="936"/>
<source>this wifi no support WPA3 type</source>
<translation>wifi不支持WPA3类型</translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="112"/>
<source>SSID:</source>
<translation type="unfinished">SSID</translation>
<translation type="obsolete">SSID</translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="113"/>
<source>Protocol:</source>
<translation type="unfinished"></translation>
<translation type="obsolete"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="115"/>
<source>Hz:</source>
<translation type="unfinished"></translation>
<translation type="obsolete"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="116"/>
<source>Chan:</source>
<translation type="unfinished"></translation>
<translation type="obsolete"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="117"/>
<source>BandWidth:</source>
<translation type="unfinished"></translation>
<translation type="obsolete"></translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="118"/>
<source>IPV4:</source>
<translation type="unfinished">IPV4地址</translation>
<translation type="obsolete">IPV4地址</translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="119"/>
<source>IPV4 Dns:</source>
<translation type="unfinished">IPV4 DNS服务器</translation>
<translation type="obsolete">IPV4 DNS服务器</translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="120"/>
<source>IPV6:</source>
<translation type="unfinished">IPV6地址</translation>
<translation type="obsolete">IPV6地址</translation>
</message>
<message>
<location filename="../src/frontend/netdetails/netdetail.h" line="121"/>
<source>Mac:</source>
<translation type="unfinished"></translation>
<translation type="obsolete"></translation>
</message>
</context>
<context>