Remove the depend package libnotify-bin;User can config network by clicking information button about IP;kylin-nm enable create new wired net now.

This commit is contained in:
chenlelin 2020-03-08 10:52:02 +08:00
parent 4871e1e43a
commit 99db999388
30 changed files with 1122 additions and 685 deletions

View File

@ -33,10 +33,12 @@ ConfForm::ConfForm(QWidget *parent) :
ui->setupUi(this);
this->setWindowFlags(Qt::FramelessWindowHint);
this->setWindowTitle(tr("edit network"));//"网络设置"
this->setAttribute(Qt::WA_TranslucentBackground);
//需要添加 void paintEvent(QPaintEvent *event) 函数
this->setStyleSheet("QWidget{border-radius:6px;background-color:rgba(19,19,20,0.95);border:1px solid rgba(255, 255, 255, 0.05);}");
ui->lbName->hide();
ui->lbName->setText(tr("Network name: "));//"网络名称:"
ui->lbTxt1->setText(tr("Method: "));//"编辑IP设置"
ui->lbTxt2->setText(tr("Address: "));//"IP地址"
ui->lbTxt3->setText(tr("Netmask: "));//"子网掩码:"
@ -44,48 +46,68 @@ ConfForm::ConfForm(QWidget *parent) :
ui->lbTxt5->setText(tr("DNS 1: "));//"首选DNS"
ui->lbTxt6->setText(tr("DNS 2: "));//"备选DNS"
ui->lbTitle->setText(tr("Edit Conn"));//"网络设置"
ui->lbLeftupTitle->setText(tr("Edit Conn"));//"网络设置"
ui->cbType->addItem(tr("Auto(DHCP)"));//"自动(DHCP)"
ui->cbType->addItem(tr("Manual"));//"手动"
connect(ui->cbType, SIGNAL(currentIndexChanged(int)), this, SLOT(cbTypeChanged(int)));
ui->cbMask->addItem("255.255.255.0");
ui->cbMask->addItem("255.255.254.0");
ui->cbMask->addItem("255.255.252.0");
ui->cbMask->addItem("255.255.0.0");
ui->cbMask->addItem("255.0.0.0");
ui->btnCancel->setText(tr("Cancel"));//"取消"
ui->btnOk->setText(tr("Save"));//"确定"
ui->btnOk->setText(tr("Save"));//"保存"
ui->btnCreate->setText(tr("Ok"));//"确定"
ui->centralWidget->setStyleSheet("#centralWidget{border:1px solid #297a97;background-color:#ffffff;}");
ui->lbIcon->setStyleSheet("QLabel{background-image:url(:/res/s/setting.png)}");
ui->lbTitle->setStyleSheet("QLabel{font-size:12px;color:#ffffff;}");
ui->lbTxt1->setStyleSheet("QLabel{font-weight:100;font-size:13px;color:#000000;}");
ui->lbTxt2->setStyleSheet("QLabel{font-weight:100;font-size:13px;color:#000000;}");
ui->lbTxt3->setStyleSheet("QLabel{font-weight:100;font-size:13px;color:#000000;}");
ui->lbTxt4->setStyleSheet("QLabel{font-weight:100;font-size:13px;color:#000000;}");
ui->lbTxt5->setStyleSheet("QLabel{font-weight:100;font-size:13px;color:#000000;}");
ui->lbTxt6->setStyleSheet("QLabel{font-weight:100;font-size:13px;color:#000000;}");
ui->wdLeftup->setStyleSheet("#wdLeftup{background-color:#266ab5;}");
ui->wdHead->setStyleSheet("#wdHead{background-color:#f5f6f7}");
ui->wdBottom->setStyleSheet("#wdBottom{background-color:#f5f6f7}");
ui->lbTraingle->setStyleSheet("QLabel{background-image:url(:/res/g/triangle.png)}");
ui->cbType->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;border:1px solid #aaaaaa;}"
"QComboBox::drop-down{border:0;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}");
ui->cbMask->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;border:1px solid #aaaaaa;}"
"QComboBox::drop-down{border:0;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}");
ui->leAddr->setStyleSheet("#leAddr{padding-left:20px;font-size:13px;border:1px solid #aaaaaa;}");
ui->leGateway->setStyleSheet("#leGateway{padding-left:20px;font-size:13px;border:1px solid #aaaaaa;}");
ui->leDns->setStyleSheet("#leDns{padding-left:20px;font-size:13px;border:1px solid #aaaaaa;}");
ui->leDns2->setStyleSheet("#leDns2{padding-left:20px;font-size:13px;border:1px solid #aaaaaa;}");
ui->btnCancel->setStyleSheet("QPushButton{border:1px solid #aaaaaa;background-color:#f5f5f5;}"
"QPushButton:Hover{border:2px solid #629ee8;background-color:#eeeeee;}"
"QPushButton:Pressed{border:1px solid #aaaaaa;background-color:#d8d8d8;}");
ui->btnOk->setStyleSheet("QPushButton{border:1px solid #aaaaaa;background-color:#f5f5f5;}"
"QPushButton:Hover{border:2px solid #629ee8;background-color:#eeeeee;}"
"QPushButton:Pressed{border:1px solid #aaaaaa;background-color:#d8d8d8;}");
// ui->centralWidget->setStyleSheet("#centralWidget{border:1px solid #297a97;background-color:#ffffff;}");
ui->wdHead->setStyleSheet("#wdHead{border:none}");
ui->wgManual->setStyleSheet("#wgManual{border:none}");
ui->wdBottom->setStyleSheet("#wdBottom{border:none}");
ui->lbLeftupTitle->setStyleSheet("QLabel{border:0px;font-size:20px;color:rgba(255,255,255,0.97);background-color:transparent;}");
ui->lbName->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
ui->lbTxt1->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
ui->lbTxt2->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
ui->lbTxt3->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
ui->lbTxt4->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
ui->lbTxt5->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
ui->lbTxt6->setStyleSheet("QLabel{border:0px;color:rgba(255,255,255,0.97);background-color:transparent;}");
ui->cbType->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0px;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbType->setView(new QListView());
ui->cbMask->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0px;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
"QComboBox QAbstractItemView {border:1px solid rgba(255, 255, 255, 0.05);background-color: transparent;}"
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbMask->setView(new QListView());
ui->leName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leAddr->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leGateway->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leDns->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leDns2->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->btnCancel->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0.12);color:white;font-size:14px;}"
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(255,255,255,0.2);}"
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0.08);}");
ui->btnOk->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(61,107,229,1);color:white;font-size:14px;}"
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(107,142,235,1);}"
"QPushButton:Pressed{border-radius:4px;background-color:rgba(50,87,202,1);}");
ui->btnCreate->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(61,107,229,1);color:white;font-size:14px;}"
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(107,142,235,1);}"
"QPushButton:Pressed{border-radius:4px;background-color:rgba(50,87,202,1);}");
ui->lineUp->setStyleSheet("background:rgba(255,255,255,0.08);");
ui->lineDown->setStyleSheet("background:rgba(255,255,255,0.08);");
ui->lineUp->hide();
ui->lineDown->hide();
// IP的正则格式限制
QRegExp rx("\\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\b");
@ -110,19 +132,17 @@ void ConfForm::mousePressEvent(QMouseEvent *event){
}
void ConfForm::mouseReleaseEvent(QMouseEvent *event){
this->isPress = false;
this->setWindowOpacity(1);
}
void ConfForm::mouseMoveEvent(QMouseEvent *event){
if(this->isPress){
this->move(this->winPos - (this->dragPos - event->globalPos()));
this->setWindowOpacity(0.9);
event->accept();
}
}
void ConfForm::setProp(QString connName, QString v4method, QString addr, QString mask, QString gateway, QString dns, bool isActConf){
this->isActConf = isActConf;
ui->lbName->setText(connName);
ui->leName->setText(connName);
if(v4method == "auto" || v4method == ""){
ui->cbType->setCurrentIndex(0);
@ -147,44 +167,67 @@ void ConfForm::setProp(QString connName, QString v4method, QString addr, QString
if(mask == "24"){
ui->cbMask->setCurrentIndex(0);
}else if(mask == "16"){
}else if(mask == "23"){
ui->cbMask->setCurrentIndex(1);
}else if(mask == "8"){
}else if(mask == "22"){
ui->cbMask->setCurrentIndex(2);
}else if(mask == "16"){
ui->cbMask->setCurrentIndex(3);
}else if(mask == "8"){
ui->cbMask->setCurrentIndex(4);
}else{
ui->cbMask->setCurrentIndex(0);
}
}
void ConfForm::on_btnCreate_clicked()
{
QString cmdStr = "nmcli connection add con-name '" + ui->leName->text() + "' type ethernet";
system(cmdStr.toUtf8().data());
if(ui->cbType->currentIndex() == 1){
this->on_btnOk_clicked();
}
sleep(2);
emit this->updateNetList();
this->hide();
}
void ConfForm::on_btnOk_clicked()
{
QString mask = "";
if(ui->cbMask->currentIndex() == 0){
mask = "24";
}else if(ui->cbMask->currentIndex() == 1){
mask = "16";
mask = "23";
}else if(ui->cbMask->currentIndex() == 2){
mask = "22";
}else if(ui->cbMask->currentIndex() == 3){
mask = "16";
}else if(ui->cbMask->currentIndex() == 4){
mask = "8";
}else{
mask = "24";
}
if(ui->cbType->currentIndex() == 0){
kylin_network_set_automethod(ui->lbName->text().toUtf8().data());
kylin_network_set_automethod(ui->leName->text().toUtf8().data());
}else{
QString dnss = ui->leDns->text();
if(ui->leDns2->text() != ""){
dnss.append(",");
dnss.append(ui->leDns2->text());
}
kylin_network_set_manualall(ui->lbName->text().toUtf8().data(), ui->leAddr->text().toUtf8().data(), mask.toUtf8().data(), ui->leGateway->text().toUtf8().data(), dnss.toUtf8().data());
kylin_network_set_manualall(ui->leName->text().toUtf8().data(), ui->leAddr->text().toUtf8().data(), mask.toUtf8().data(), ui->leGateway->text().toUtf8().data(), dnss.toUtf8().data());
}
this->hide();
// 如果是修改当前连接的网络,则修改设置后简略重连网络
if(this->isActConf == true){
QString cmd = "/usr/share/kylin-nm/shell/connup.sh '" + ui->lbName->text() + "'";
//QString cmd = "/usr/share/kylin-nm/shell/connup.sh '" + ui->leName->text() + "'";
QString cmd = "nmcli connection up '" + ui->leName->text() + "'";
system(cmd.toUtf8().data());
QString txt(tr("New settings already effective"));
@ -199,16 +242,48 @@ void ConfForm::on_btnCancel_clicked()
}
void ConfForm::cbTypeChanged(int index){
if (isShowSaveBtn){
ui->btnOk->show();
ui->btnCreate->hide();
ui->lbLeftupTitle->setText(tr("edit network"));
}
if(index == 0){
ui->lineUp->hide();
ui->lineDown->hide();
ui->wgManual->hide();
ui->centralWidget->resize(432, 178);
ui->wdBottom->move(1, 117);
this->resize(432, 178);
ui->centralWidget->resize(432, 223);
ui->wdBottom->move(1, 162);
this->resize(432, 223);
}
if(index == 1){
ui->lineUp->show();
ui->lineDown->show();
ui->wgManual->show();
ui->centralWidget->resize(432, 442);
ui->wdBottom->move(1, 381);
this->resize(432, 442);
ui->centralWidget->resize(432, 487);
ui->wdBottom->move(1, 426);
this->resize(432, 487);
}
if(index == 3){
ui->btnOk->hide();
ui->btnCreate->show();
ui->lbLeftupTitle->setText(tr("add wired network"));
isShowSaveBtn = false;
ui->lineUp->hide();
ui->lineDown->hide();
ui->wgManual->hide();
ui->centralWidget->resize(432, 223);
ui->wdBottom->move(1, 162);
this->resize(432, 223);
}
}
void ConfForm::paintEvent(QPaintEvent *event)
{
QStyleOption opt;
opt.init(this);
QPainter p(this);
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
QWidget::paintEvent(event);
}

View File

@ -23,6 +23,8 @@
#include <QMouseEvent>
#include <QDebug>
#include <QPoint>
#include <QPainter>
#include <QListView>
namespace Ui {
class ConfForm;
@ -38,10 +40,17 @@ public:
void setProp(QString connName, QString v4method, QString addr, QString mask, QString gateway, QString dns, bool isActConf);
public slots:
void cbTypeChanged(int index);
protected:
void paintEvent(QPaintEvent *event);
private slots:
void on_btnOk_clicked();
void on_btnCancel_clicked();
void cbTypeChanged(int index);
void on_btnCreate_clicked();
private:
Ui::ConfForm *ui;
@ -54,6 +63,10 @@ private:
QPoint winPos;
QPoint dragPos;
bool isActConf;
bool isShowSaveBtn = true;
signals:
void updateNetList();
};
#endif // CONFFORM_H

View File

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>432</width>
<height>442</height>
<height>487</height>
</rect>
</property>
<property name="windowTitle">
@ -19,14 +19,14 @@
<x>0</x>
<y>0</y>
<width>432</width>
<height>442</height>
<height>487</height>
</rect>
</property>
<widget class="QWidget" name="wgManual" native="true">
<property name="geometry">
<rect>
<x>1</x>
<y>131</y>
<y>176</y>
<width>430</width>
<height>250</height>
</rect>
@ -35,51 +35,76 @@
<property name="geometry">
<rect>
<x>175</x>
<y>20</y>
<y>15</y>
<width>182</width>
<height>32</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
</widget>
<widget class="QComboBox" name="cbMask">
<property name="geometry">
<rect>
<x>175</x>
<y>65</y>
<y>60</y>
<width>182</width>
<height>32</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
</widget>
<widget class="QLineEdit" name="leGateway">
<property name="geometry">
<rect>
<x>175</x>
<y>110</y>
<y>105</y>
<width>182</width>
<height>32</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
</widget>
<widget class="QLineEdit" name="leDns">
<property name="geometry">
<rect>
<x>175</x>
<y>155</y>
<y>150</y>
<width>182</width>
<height>32</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
</widget>
<widget class="QLabel" name="lbTxt2">
<property name="geometry">
<rect>
<x>76</x>
<y>26</y>
<y>20</y>
<width>80</width>
<height>20</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string/>
</property>
@ -88,11 +113,16 @@
<property name="geometry">
<rect>
<x>76</x>
<y>71</y>
<y>65</y>
<width>80</width>
<height>20</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string/>
</property>
@ -101,11 +131,16 @@
<property name="geometry">
<rect>
<x>76</x>
<y>116</y>
<y>110</y>
<width>80</width>
<height>20</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string/>
</property>
@ -114,11 +149,16 @@
<property name="geometry">
<rect>
<x>76</x>
<y>161</y>
<y>155</y>
<width>80</width>
<height>20</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string/>
</property>
@ -127,126 +167,117 @@
<property name="geometry">
<rect>
<x>175</x>
<y>200</y>
<y>195</y>
<width>182</width>
<height>32</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
</widget>
<widget class="QLabel" name="lbTxt6">
<property name="geometry">
<rect>
<x>76</x>
<y>206</y>
<y>200</y>
<width>80</width>
<height>20</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string/>
</property>
</widget>
</widget>
<widget class="QLabel" name="lbName">
<property name="geometry">
<rect>
<x>151</x>
<y>1</y>
<width>100</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QWidget" name="wdHead" native="true">
<property name="geometry">
<rect>
<x>1</x>
<y>1</y>
<width>430</width>
<height>116</height>
<height>161</height>
</rect>
</property>
<widget class="QComboBox" name="cbType">
<property name="geometry">
<rect>
<x>175</x>
<y>55</y>
<y>105</y>
<width>182</width>
<height>32</height>
</rect>
</property>
</widget>
<widget class="QWidget" name="wdLeftup" native="true">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>100</width>
<height>32</height>
</rect>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<widget class="QLabel" name="lbIcon">
<property name="geometry">
<rect>
<x>9</x>
<y>9</y>
<width>16</width>
<height>15</height>
</rect>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="lbTitle">
<property name="geometry">
<rect>
<x>34</x>
<y>6</y>
<width>60</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string/>
</property>
</widget>
</widget>
<widget class="QLabel" name="lbTxt1">
<property name="geometry">
<rect>
<x>76</x>
<y>60</y>
<y>110</y>
<width>80</width>
<height>20</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string/>
</property>
</widget>
</widget>
<widget class="QLabel" name="lbTraingle">
<property name="geometry">
<rect>
<x>204</x>
<y>117</y>
<width>22</width>
<height>14</height>
</rect>
</property>
<property name="text">
<string/>
</property>
<widget class="QLabel" name="lbName">
<property name="geometry">
<rect>
<x>76</x>
<y>65</y>
<width>80</width>
<height>20</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLineEdit" name="leName">
<property name="geometry">
<rect>
<x>175</x>
<y>60</y>
<width>182</width>
<height>32</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
</widget>
</widget>
<widget class="QWidget" name="wdBottom" native="true">
<property name="geometry">
<rect>
<x>1</x>
<y>381</y>
<y>426</y>
<width>430</width>
<height>60</height>
</rect>
@ -260,6 +291,11 @@
<height>30</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string/>
</property>
@ -273,10 +309,67 @@
<height>30</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QPushButton" name="btnCreate">
<property name="geometry">
<rect>
<x>315</x>
<y>15</y>
<width>90</width>
<height>30</height>
</rect>
</property>
<property name="text">
<string/>
</property>
</widget>
</widget>
<widget class="QLabel" name="lbLeftupTitle">
<property name="geometry">
<rect>
<x>30</x>
<y>15</y>
<width>140</width>
<height>22</height>
</rect>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="Line" name="lineUp">
<property name="geometry">
<rect>
<x>10</x>
<y>165</y>
<width>412</width>
<height>1</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="Line" name="lineDown">
<property name="geometry">
<rect>
<x>10</x>
<y>423</y>
<width>412</width>
<height>1</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</widget>
</widget>

4
debian/changelog vendored
View File

@ -7,6 +7,10 @@ kylin-nm (1.2.0-1) unstable; urgency=medium
[ lixiang ]
* update kylin-nm.pro and rules.
* Remove the depend package libnotify-bin.
* User can config network by clicking information button about IP.
* kylin-nm enable create new wired net now.
-- handsome_feng <jianfengli@ubuntukylin.com> Tue, 25 Feb 2020 14:12:29 +0800
kylin-nm (1.0.4-1) unstable; urgency=medium

2
debian/control vendored
View File

@ -10,7 +10,6 @@ Build-Depends: debhelper-compat (= 12),
qtscript5-dev,
qttools5-dev-tools,
qtbase5-dev-tools,
libnotify-bin,
libqt5x11extras5-dev,
Standards-Version: 4.5.0
Rules-Requires-Root: no
@ -21,7 +20,6 @@ Vcs-Browser: https://github.com/ukui/kylin-nm
Package: kylin-nm
Architecture: any
Depends: network-manager (>=1.12.4),
libnotify-bin,
${shlibs:Depends},
${misc:Depends}
Description: Gui Applet tool for display and edit network simply

View File

@ -20,11 +20,11 @@
LoadingDiv::LoadingDiv(QWidget *parent) : QWidget(parent)
{
this->resize(480, 500);
this->resize(480, 538);
this->loadingGif = new QLabel(this);
this->loadingGif->resize(96, 96);
this->loadingGif->move(this->width() / 2 - 96 / 2 + 20, this->height() / 2 - 96 / 2);
this->loadingGif->move(this->width()/2 - 96/2 + 41/2, this->height()/2 + 20);
this->loadingGif->show();

View File

@ -38,21 +38,20 @@ MainWindow::MainWindow(QWidget *parent) :
// 如果使用Qt::ToolTip, Qt::Tool + Qt::WindowStaysOnTopHint, Qt::X11BypassWindowManagerHint等flag则会导致X事件失效
this->setWindowFlags(Qt::FramelessWindowHint | Qt::Popup);//QTool
// this->setWindowFlags(Qt::FramelessWindowHint | Qt::Tool | Qt::WindowStaysOnTopHint);
//this->setWindowFlags(Qt::FramelessWindowHint);
//this->setWindowOpacity(0.7);
this->setAttribute(Qt::WA_TranslucentBackground);//设置窗口背景透明
//this->setStyleSheet("QWidget{border-top-left-radius:6px;border-top-right-radius:6px;}");
this->setStyleSheet("QWidget{border:none;border-radius:6px;}");
this->setStyleSheet("QToolTip{background:rgba(26,26,26,0.95);"
this->setStyleSheet("QToolTip{background:rgba(26,26,26,0.7);"
"font: 14px;"
"color:rgba(255,255,255,1);"
"border-radius: 2px;"
"border:1px solid rgba(255,255,255,0.45);"
"border-radius: 3px;"
"border:1px solid rgba(255,255,255,0.2);"
"padding: 0px 5px;"
"outline:none;}");
ui->centralWidget->setStyleSheet("#centralWidget{border:1px solid rgba(255,255,255,0.05);border-radius:6px;background:rgba(19,19,20,0.85);}");
ui->centralWidget->setStyleSheet("#centralWidget{border:1px solid rgba(255,255,255,0.05);border-radius:6px;background:rgba(19,19,20,0.95);}");
lname = "-1";
wname = "-1";
@ -68,53 +67,80 @@ MainWindow::MainWindow(QWidget *parent) :
loading = new LoadingDiv(this);
topLanListWidget = new QWidget(ui->centralWidget);
topLanListWidget->move(41, 52);
topLanListWidget->resize(435, 60 + 46);
topLanListWidget->move(41, 57);
topLanListWidget->resize(435, 60 + 10 + 46);
/*顶部的一个item*/
lbTopLanList = new QLabel(topLanListWidget);
lbTopLanList->setText(tr("Ethernet Networks"));//"可用网络列表"
lbTopLanList->resize(260, 46);
lbTopLanList->move(12, 60);
lbTopLanList->move(19, 60 + 10);
lbTopLanList->setStyleSheet("QLabel{font-size:14px;color:rgba(255,255,255,0.97);}");
lbTopLanList->show();
lbLoadDown = new QLabel(ui->centralWidget);
lbLoadDown->move(41 + 132, 52 + 32);
lbLoadDown->resize(65, 20);
lbLoadUp = new QLabel(ui->centralWidget);
lbLoadUp->move(41 + 217, 52 + 32);
lbLoadUp->resize(65, 20);
/*新建有线网按钮*/
btnCreateNet = new QPushButton(topLanListWidget);
btnCreateNet->resize(57, 14);
btnCreateNet->move(365, 77 + 10);
btnCreateNet->setText(tr("Create Lan Net"));//"新建网络"
btnCreateNet->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0);color:rgba(107,142,235,0.97);font-size:14px;}"
"QPushButton:Hover{border:0px;border-radius:4px;background-color:rgba(255,255,255,0);color:rgba(151,175,241,0.97);font-size:14px;}"
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0);color:rgba(61,107,229,0.97);font-size:14px;}");
btnCreateNet->setFocusPolicy(Qt::NoFocus);
btnCreateNet->show();
connect(btnCreateNet,SIGNAL(clicked()),this,SLOT(onBtnCreateNetClicked()));
topWifiListWidget = new QWidget(ui->centralWidget);
topWifiListWidget->move(41, 52);
topWifiListWidget->resize(435, 60 + 46);
topWifiListWidget->move(41, 57);
topWifiListWidget->resize(435, 60 + 10 + 46);
/*顶部的一个item*/
lbTopWifiList = new QLabel(topWifiListWidget);
lbTopWifiList->setText(tr("Wifi Networks"));//"可用网络列表"
lbTopWifiList->resize(120, 46);
lbTopWifiList->move(12, 60);
lbTopWifiList->move(19, 60 + 10);
lbTopWifiList->setStyleSheet("QLabel{font-size:14px;color:rgba(255,255,255,0.97);}");
lbTopWifiList->show();
/*新建有线网按钮*/
btnAddNet = new QPushButton(topWifiListWidget);
btnAddNet->resize(57, 14);
btnAddNet->move(365, 77);
btnAddNet->setText(tr("Add Hide Network"));
btnAddNet->move(365, 77 + 10);
btnAddNet->setText(tr("Add Hide Network"));//"加入网络"
btnAddNet->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0);color:rgba(107,142,235,0.97);font-size:14px;}"
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(255,255,255,0);}"
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0.08);}");
"QPushButton:Hover{border:0px;border-radius:4px;background-color:rgba(255,255,255,0);color:rgba(151,175,241,0.97);font-size:14px;}"
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0);color:rgba(61,107,229,0.97);font-size:14px;}");
btnAddNet->setFocusPolicy(Qt::NoFocus);
btnAddNet->show();
connect(btnAddNet,SIGNAL(clicked()),this,SLOT(onBtnAddNetClicked()));
lbLoadDown = new QLabel(ui->centralWidget);
lbLoadDown->move(41 + 132, 57 + 32);
lbLoadDown->resize(65, 20);
lbLoadUp = new QLabel(ui->centralWidget);
lbLoadUp->move(41 + 217, 57 + 32);
lbLoadUp->resize(65, 20);
lbNoItemImg = new QLabel(ui->centralWidget);
lbNoItemImg->resize(96, 96);
lbNoItemImg->move(this->width()/2 - 96/2 + 41/2, this->height()/2 - 10);
lbNoItemImg->setStyleSheet("QLabel{background-image:url(:/res/s/nonet.png);}");
lbNoItemImg->hide();
lbNoItemTip = new QLabel(ui->centralWidget);
lbNoItemTip->resize(200, 20);
lbNoItemTip->move(this->width()/2 - 200/2 + 41/2, this->height()/2 + 96);
lbNoItemTip->setStyleSheet("QLabel{boder:none;background:transparent;font-size:14px;color:rgba(255,255,255,0.91);}");
lbNoItemTip->setText(tr("No usable network in the list"));//列表暂无可连接网络
lbNoItemTip->setAlignment(Qt::AlignCenter);
lbNoItemTip->hide();
scrollAreal = new QScrollArea(ui->centralWidget);
scrollAreal->move(41, 158);
scrollAreal->resize(440, 356);
scrollAreal->move(41, 57 + 60 + 10 + 46 + 5);
scrollAreal->resize(440, 360);
scrollAreal->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
scrollAreal->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
scrollAreal->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
scrollAreaw = new QScrollArea(ui->centralWidget);
scrollAreaw->move(41, 158);
scrollAreaw->resize(440, 356);
scrollAreaw->move(41, 57 + 60 + 10 + 46 + 5);
scrollAreaw->resize(440, 360);
scrollAreaw->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
scrollAreaw->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
scrollAreaw->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
lanListWidget = new QWidget(scrollAreal);
wifiListWidget = new QWidget(scrollAreaw);
@ -126,11 +152,6 @@ MainWindow::MainWindow(QWidget *parent) :
btnBgOffQss = "QLabel{min-width: 48px; min-height: 22px;max-width:48px; max-height: 22px;border-radius: 10px; background-color:rgba(255,255,255,0.2)}";
btnBgOnQss = "QLabel{min-width: 48px; min-height: 22px;max-width:48px; max-height: 22px;border-radius: 10px; background-color:rgba(61,107,229,1);}";
//ui->centralWidget->setStyleSheet("#centralWidget{border:0px solid #626c6e;border-radius:6px;background-color:#151a1e;}");
ui->wdgHead->setStyleSheet("#wdgHead{background:rgba(14,19,22,0.75);}");
ui->wdgHead->hide();
ui->lbNetwork->setStyleSheet("QLabel{font-size:20px;color:rgba(255,255,255,0.97);}");
ui->lbNetwork->show();
@ -147,13 +168,13 @@ MainWindow::MainWindow(QWidget *parent) :
scrollAreal->setStyleSheet("QScrollArea{border:none;}");
scrollAreal->viewport()->setStyleSheet("background-color:transparent;");
scrollAreal->verticalScrollBar()->setStyleSheet("QScrollBar:vertical{margin:0px 0px 0px 0px;background:transparent;border:0px;width:3px;}"
scrollAreal->verticalScrollBar()->setStyleSheet("QScrollBar:vertical{width:10px;background:rgba(48,48,51,1);border-radius:6px;}"
"QScrollBar::up-arrow:vertical{height:0px;}"
"QScrollBar::sub-line:vertical{border:0px solid;height:0px}"
"QScrollBar::sub-page:vertical{background:transparent;}"
"QScrollBar::handle:vertical{background:rgba(255,255,255,0.25);}"
"QScrollBar::handle:vertical:hover{background:rgba(255,255,255,1);}"
"QScrollBar::handle:vertical:pressed{background:rgba(255,255,255,1);}"
"QScrollBar::handle:vertical{width:4px;background:rgba(72,72,76,1);border-radius:3px;}"
"QScrollBar::handle:vertical:hover{width:4px;background:rgba(97,97,102,1);border-radius:3px;}"
"QScrollBar::handle:vertical:pressed{width:4px;background:rgba(133,133,140,1);border-radius:3px;}"
"QScrollBar::add-page:vertical{background:transparent;}"
"QScrollBar::add-line:vertical{border:0px solid;height:0px}"
"QScrollBar::down-arrow:vertical{height:0px;}");
@ -161,13 +182,13 @@ MainWindow::MainWindow(QWidget *parent) :
scrollAreaw->setStyleSheet("QScrollArea{border:none;}");
scrollAreaw->viewport()->setStyleSheet("background-color:transparent;");
scrollAreaw->verticalScrollBar()->setStyleSheet("QScrollBar:vertical{margin:0px 0px 0px 0px;background:transparent;border:0px;width:10px;}"
scrollAreaw->verticalScrollBar()->setStyleSheet("QScrollBar:vertical{width:10px;background:rgba(48,48,51,1);border-radius:6px;}"
"QScrollBar::up-arrow:vertical{height:0px;}"
"QScrollBar::sub-line:vertical{border:0px solid;height:0px}"
"QScrollBar::sub-page:vertical{background:transparent;}"
"QScrollBar::handle:vertical{background:rgba(255,255,255,0.25);}"
"QScrollBar::handle:vertical:hover{background:rgba(255,255,255,1);}"
"QScrollBar::handle:vertical:pressed{background:rgba(255,255,255,1);}"
"QScrollBar::handle:vertical{width:4px;background:rgba(72,72,76,1);border-radius:3px;}"
"QScrollBar::handle:vertical:hover{width:4px;background:rgba(97,97,102,1);border-radius:3px;}"
"QScrollBar::handle:vertical:pressed{width:4px;background:rgba(133,133,140,1);border-radius:3px;}"
"QScrollBar::add-page:vertical{background:transparent;}"
"QScrollBar::add-line:vertical{border:0px solid;height:0px}"
"QScrollBar::down-arrow:vertical{height:0px;}");
@ -226,8 +247,6 @@ MainWindow::MainWindow(QWidget *parent) :
ui->lbBtnConfBG->hide();
ui->lbBtnConfBG->setStyleSheet(btnOffQss);
ui->line->hide();
createTrayIcon();
connect(trayIcon, &QSystemTrayIcon::activated, this, &MainWindow::iconActivated);
@ -405,19 +424,15 @@ void MainWindow::handleIconClicked()
//QRect deskRect = pDesktopWidget->availableGeometry();//可用区域
//QRect screenRect = pDesktopWidget->screenGeometry();//屏幕区域
//qDebug()<<" ";
//qDebug()<<"trayIcon:"<<trayIcon->geometry();
//qDebug()<<"screenGeometry: "<<screenGeometry;
//qDebug()<<"availableGeometry: "<<availableGeometry;
// qDebug()<<" ";
// qDebug()<<"trayIcon:"<<trayIcon->geometry();
// qDebug()<<"screenGeometry: "<<screenGeometry;
// qDebug()<<"availableGeometry: "<<availableGeometry;
if (screenGeometry.width() == availableGeometry.width()){
if (trayIcon->geometry().y() > availableGeometry.height()/2){
//任务栏在下侧
if (screenGeometry.height() != availableGeometry.height()) {
this->move(availableGeometry.x() + availableGeometry.width() - this->width(), availableGeometry.height() - this->height());
}else {
this->move(availableGeometry.x() + availableGeometry.width() - this->width(), availableGeometry.height() - this->height() - 40);
}
this->move(availableGeometry.x() + availableGeometry.width() - this->width(), availableGeometry.height() - this->height());
}else{
//任务栏在上侧
this->move(availableGeometry.x() + availableGeometry.width() - this->width(), screenGeometry.height() - availableGeometry.height());
@ -891,19 +906,32 @@ void MainWindow::getLanListDone(QStringList slist)
// 清空top列表
delete topLanListWidget;
topLanListWidget = new QWidget(ui->centralWidget);
topLanListWidget->move(41, 52);
topLanListWidget->resize(435, 60 + 46);
topLanListWidget->move(41, 57);
topLanListWidget->resize(435, 60 + 10 + 46);
lbTopLanList = new QLabel(topLanListWidget);
lbTopLanList->setText(tr("Ethernet Networks"));//"可用网络列表"
lbTopLanList->resize(260, 46);
lbTopLanList->move(12, 60);
lbTopLanList->move(19, 60 + 10);
lbTopLanList->setStyleSheet("QLabel{font-size:14px;color:rgba(255,255,255,0.97);}");
lbTopLanList->show();
btnCreateNet = new QPushButton(topLanListWidget);
btnCreateNet->resize(57, 14);
btnCreateNet->move(365, 77 + 10);
btnCreateNet->setText(tr("Create Lan Net"));//"新建网络"
btnCreateNet->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0);color:rgba(107,142,235,0.97);font-size:14px;}"
"QPushButton:Hover{border:0px;border-radius:4px;background-color:rgba(255,255,255,0);color:rgba(151,175,241,0.97);font-size:14px;}"
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0);color:rgba(61,107,229,0.97);font-size:14px;}");
btnCreateNet->setFocusPolicy(Qt::NoFocus);
btnCreateNet->show();
connect(btnCreateNet,SIGNAL(clicked()),this,SLOT(onBtnCreateNetClicked()));
// 清空lan列表
lanListWidget = new QWidget(scrollAreal);
lanListWidget->resize(440, 60 + 108);
scrollAreal->setWidget(lanListWidget);
scrollAreal->move(41, 158);
scrollAreal->move(41, 178);
lbNoItemImg->hide();
lbNoItemTip->hide();
// 获取当前连接的lan name
QString actLanName = "--";
@ -924,10 +952,12 @@ void MainWindow::getLanListDone(QStringList slist)
ccf->setIcon(false);
ccf->setConnedString(1, tr("Disconnected"));//"未连接"
ccf->isConnected = false;
lbLoadDown->hide();
lbLoadUp->hide();
ccf->setTopItem(false);
}
ccf->setAct(true);
ccf->move(0, 0);
ccf->move(4, 0);
ccf->show();
// 填充可用网络列表
@ -954,6 +984,8 @@ void MainWindow::getLanListDone(QStringList slist)
ccf->setLanInfo(objKyDBus->dbusLanIpv4, objKyDBus->dbusLanIpv6, mwBandWidth, objKyDBus->dbusLanMac);
ccf->setConnedString(1, tr("Connected"));//"已连接"
ccf->isConnected = true;
lbLoadDown->show();
lbLoadUp->show();
ccf->setTopItem(false);
currSelNetName = "";
syslog(LOG_DEBUG, "already insert an active lannet in the top of lan list");
@ -967,7 +999,7 @@ void MainWindow::getLanListDone(QStringList slist)
ocf->setLine(true);
ocf->setLanInfo(objKyDBus->dbusLanIpv4, objKyDBus->dbusLanIpv6, tr("Disconnected"), objKyDBus->dbusLanMac);
ocf->setConnedString(0, tr("Disconnected"));//"未连接"
ocf->move(0, j * 60);
ocf->move(4, j * 60);
ocf->show();
j ++;
@ -980,6 +1012,9 @@ void MainWindow::getLanListDone(QStringList slist)
if (n >= 1){
OneLancForm *lastItem = itemList.at(n-1);
lastItem->setLine(false);
} else{
lbNoItemImg->show();
lbNoItemTip->show();
}
this->lanListWidget->show();
@ -1010,30 +1045,33 @@ void MainWindow::loadWifiListDone(QStringList slist)
//清空top列表
delete topWifiListWidget;
topWifiListWidget = new QWidget(ui->centralWidget);
topWifiListWidget->move(41, 52);
topWifiListWidget->resize(435, 60 + 46);
topWifiListWidget->move(41, 57);
topWifiListWidget->resize(435, 60 + 10 + 46);
lbTopWifiList = new QLabel(topWifiListWidget);
lbTopWifiList->setText(tr("Wifi Networks"));//"可用网络列表"
lbTopWifiList->resize(260, 46);
lbTopWifiList->move(12, 60);
lbTopWifiList->move(19, 60 + 10);
lbTopWifiList->setStyleSheet("QLabel{font-size:14px;color:rgba(255,255,255,0.97);}");
lbTopWifiList->show();
btnAddNet = new QPushButton(topWifiListWidget);
btnAddNet->resize(57, 14);
btnAddNet->move(365, 77);
btnAddNet->move(365, 77 + 10);
btnAddNet->setText(tr("Add Hide Network"));
btnAddNet->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0);color:rgba(107,142,235,0.97);font-size:14px;}"
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(255,255,255,0);}"
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0.08);}");
"QPushButton:Hover{border:0px;border-radius:4px;background-color:rgba(255,255,255,0);color:rgba(151,175,241,0.97);font-size:14px;}"
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0);color:rgba(61,107,229,0.97);font-size:14px;}");
btnAddNet->setFocusPolicy(Qt::NoFocus);
btnAddNet->show();
connect(btnAddNet,SIGNAL(clicked()),this,SLOT(onBtnAddNetClicked()));
lbNoItemImg->hide();
lbNoItemTip->hide();
// 清空wifi列表
wifiListWidget = new QWidget(scrollAreaw);
wifiListWidget->resize(440, /*60 + */88);
scrollAreaw->setWidget(wifiListWidget);
scrollAreaw->move(41, 158);
scrollAreaw->move(41, 178);
// 获取当前连接的wifi name
QString actWifiName = "--";
@ -1055,10 +1093,12 @@ void MainWindow::loadWifiListDone(QStringList slist)
activeWifiSignalLv = 0;
ccf->setConnedString(1, tr("Disconnected"), "");//"未连接"
ccf->isConnected = false;
lbLoadDown->hide();
lbLoadUp->hide();
ccf->setTopItem(false);
}
ccf->setAct(true);
ccf->move(0, 0);
ccf->move(4, 0);
ccf->show();
// 填充可用网络列表
@ -1097,6 +1137,8 @@ void MainWindow::loadWifiListDone(QStringList slist)
ccf->setWifiInfo(wsecu, wsignal, objKyDBus->dbusWifiMac);
ccf->setConnedString(1, tr("Connected"), wsecu);//"已连接"
ccf->isConnected = true;
lbLoadDown->show();
lbLoadUp->show();
ccf->setTopItem(false);
currSelNetName = "";
@ -1113,7 +1155,7 @@ void MainWindow::loadWifiListDone(QStringList slist)
objKyDBus->getWifiMac(wname, i-1);
ocf->setWifiInfo(wsecu, wsignal, objKyDBus->dbusWifiMac);
ocf->setConnedString(0, tr("Disconnected"), wsecu);
ocf->move(0, j * 60);
ocf->move(4, j * 60);
ocf->setSelected(false, false);
ocf->show();
@ -1130,6 +1172,9 @@ void MainWindow::loadWifiListDone(QStringList slist)
if (n >= 1){
OneConnForm *lastItem = itemList.at(n-1);
lastItem->setLine(false);
} else {
lbNoItemImg->show();
lbNoItemTip->show();
}
this->lanListWidget->hide();
@ -1236,7 +1281,7 @@ void MainWindow::updateWifiListDone(QStringList slist)
objKyDBus->getWifiMac(wname, i-1);
addItem->setWifiInfo(wsecu, wsignal, objKyDBus->dbusWifiMac);
addItem->setConnedString(0, tr("Disconnected"), wsecu);//"未连接"
addItem->move(0, posY);
addItem->move(4, posY);
addItem->setSelected(false, false);
addItem->show();
@ -1286,6 +1331,7 @@ void MainWindow::on_btnWifi_clicked()
// 网络开关关闭时点击Wifi开关时程序先打开有线开关
if(checkLanOn()){
if(checkWlOn()){
btnAddNet->hide();
QThread *t = new QThread();
BackThread *bt = new BackThread();
bt->moveToThread(t);
@ -1299,6 +1345,9 @@ void MainWindow::on_btnWifi_clicked()
if (is_fly_mode_on == 0){
on_btnWifiList_clicked();
is_stop_check_net_state = 1;
btnAddNet->show();
lbNoItemImg->hide();
lbNoItemTip->hide();
QThread *t = new QThread();
BackThread *bt = new BackThread();
bt->moveToThread(t);
@ -1319,6 +1368,7 @@ void MainWindow::on_btnWifi_clicked()
on_btnWifiList_clicked();
is_stop_check_net_state = 1;
btnAddNet->show();
QThread *t = new QThread();
BackThread *bt = new BackThread();
bt->moveToThread(t);
@ -1333,6 +1383,7 @@ void MainWindow::on_btnWifi_clicked()
}
//this->startLoading();
} else {
btnAddNet->hide();
QString txt(tr("please insert the wireless network adapter"));
QString cmd = "export LANG='en_US.UTF-8';export LANGUAGE='en_US';notify-send '" + txt + "' -t 3800";
system(cmd.toUtf8().data());
@ -1357,10 +1408,16 @@ void MainWindow::onBtnNetListClicked(int flag)
ui->lbNetListBG->setStyleSheet(btnOnQss);
ui->lbWifiListBG->setStyleSheet(btnOffQss);
lbLoadDown->hide();
lbLoadUp->hide();
lbNoItemImg->hide();
lbNoItemTip->hide();
ui->lbNetwork->setText(tr("Ethernet"));
ui->btnWifi->hide();
ui->lbBtnWifiBG->hide();
ui->lbBtnWifiBall->hide();
ui->lbBtnWifiBall->hide();
// 强行设置为打开
if(flag == 1){
@ -1378,7 +1435,6 @@ void MainWindow::onBtnNetListClicked(int flag)
this->startLoading();
this->ksnm->execGetLanList();
} else {
QString strSlist;
system("nmcli connection show -active>/tmp/kylin-nm-connshow");
QFile file("/tmp/kylin-nm-connshow");
if(!file.open(QIODevice::ReadOnly | QIODevice::Text)){
@ -1400,20 +1456,33 @@ void MainWindow::onBtnNetListClicked(int flag)
// 清空top列表
delete topLanListWidget;
topLanListWidget = new QWidget(ui->centralWidget);
topLanListWidget->move(41, 52);
topLanListWidget->resize(435, 60 + 46);
topLanListWidget->move(41, 57);
topLanListWidget->resize(435, 60 + 10 + 46);
lbTopLanList = new QLabel(topLanListWidget);
lbTopLanList->setText(tr("Ethernet Networks"));//"可用网络列表"
lbTopLanList->resize(260, 46);
lbTopLanList->move(12, 60);
lbTopLanList->move(19, 60 + 10);
lbTopLanList->setStyleSheet("QLabel{font-size:14px;color:rgba(255,255,255,0.97);}");
lbTopLanList->show();
btnCreateNet = new QPushButton(topLanListWidget);
btnCreateNet->resize(57, 14);
btnCreateNet->move(365, 77 + 10);
btnCreateNet->setText(tr("Create Lan Net"));//"新建网络"
btnCreateNet->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0);color:rgba(107,142,235,0.97);font-size:14px;}"
"QPushButton:Hover{border:0px;border-radius:4px;background-color:rgba(255,255,255,0);color:rgba(151,175,241,0.97);font-size:14px;}"
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0);color:rgba(61,107,229,0.97);font-size:14px;}");
btnCreateNet->setFocusPolicy(Qt::NoFocus);
btnCreateNet->show();
connect(btnCreateNet,SIGNAL(clicked()),this,SLOT(onBtnCreateNetClicked()));
lbNoItemImg->show();
lbNoItemTip->show();
// 清空lan列表
lanListWidget = new QWidget(scrollAreal);
lanListWidget->resize(440, 60 + 108);
scrollAreal->setWidget(lanListWidget);
scrollAreal->move(41, 158);
scrollAreal->move(41, 178);
// 当前连接的lan
OneLancForm *ccf = new OneLancForm(topLanListWidget, this, confForm, ksnm);
@ -1421,7 +1490,7 @@ void MainWindow::onBtnNetListClicked(int flag)
ccf->setIcon(false);
ccf->setConnedString(1, tr("Disconnected"));//"未连接"
ccf->setAct(true);
ccf->move(0, 0);
ccf->move(4, 0);
ccf->show();
this->lanListWidget->show();
@ -1443,41 +1512,50 @@ void MainWindow::on_btnWifiList_clicked()
ui->lbNetListBG->setStyleSheet(btnOffQss);
ui->lbWifiListBG->setStyleSheet(btnOnQss);
lbLoadDown->hide();
lbLoadUp->hide();
lbNoItemImg->hide();
lbNoItemTip->hide();
ui->lbNetwork->setText(tr("Wifi"));
ui->btnWifi->show();
ui->lbBtnWifiBG->show();
ui->lbBtnWifiBall->show();
if(checkWlOn()){
btnAddNet->show();
this->startLoading();
this->ksnm->execGetWifiList();
}else{
delete topWifiListWidget;
topWifiListWidget = new QWidget(ui->centralWidget);
topWifiListWidget->move(41, 52);
topWifiListWidget->resize(435, 60 + 46);
topWifiListWidget->move(41, 57);
topWifiListWidget->resize(435, 60 + 10 + 46);
lbTopWifiList = new QLabel(topWifiListWidget);
lbTopWifiList->setText(tr("Wifi Networks"));//"可用网络列表"
lbTopWifiList->resize(260, 46);
lbTopWifiList->move(12, 60);
lbTopWifiList->move(19, 60 + 10);
lbTopWifiList->setStyleSheet("QLabel{font-size:14px;color:rgba(255,255,255,0.97);}");
lbTopWifiList->show();
btnAddNet = new QPushButton(topWifiListWidget);
btnAddNet->resize(57, 14);
btnAddNet->move(365, 77);
btnAddNet->move(365, 77 + 10);
btnAddNet->setText(tr("Add Hide Network"));
btnAddNet->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0);color:rgba(107,142,235,0.97);font-size:14px;}"
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(255,255,255,0);}"
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0.08);}");
"QPushButton:Hover{border:0px;border-radius:4px;background-color:rgba(255,255,255,0);color:rgba(151,175,241,0.97);font-size:14px;}"
"QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0);color:rgba(61,107,229,0.97);font-size:14px;}");
btnAddNet->setFocusPolicy(Qt::NoFocus);
btnAddNet->show();
connect(btnAddNet,SIGNAL(clicked()),this,SLOT(onBtnAddNetClicked()));
btnAddNet->hide();
lbNoItemImg->show();
lbNoItemTip->show();
// 清空wifi列表
wifiListWidget = new QWidget(scrollAreaw);
wifiListWidget->resize(440, /*60 + */88);
scrollAreaw->setWidget(wifiListWidget);
scrollAreaw->move(41, 158);
scrollAreaw->move(41, 178);
// 当前连接的wifi
OneConnForm *ccf = new OneConnForm(topWifiListWidget, this, confForm, ksnm);
@ -1488,7 +1566,7 @@ void MainWindow::on_btnWifiList_clicked()
ccf->isConnected = false;
ccf->setTopItem(false);
ccf->setAct(true);
ccf->move(0, 0);
ccf->move(4, 0);
ccf->show();
this->lanListWidget->hide();
@ -1772,10 +1850,10 @@ void MainWindow::oneLanFormSelected(QString lanName)
for(int i = 0, j = 0;i < lanList.size(); i ++){
OneLancForm *ocf = lanList.at(i);
if(ocf->isActive == true){
ocf->move(0, 0);
ocf->move(4, 0);
}
if(ocf->isActive == false){
ocf->move(0, j * 60);
ocf->move(4, j * 60);
j ++;
}
}
@ -1810,7 +1888,7 @@ void MainWindow::oneLanFormSelected(QString lanName)
for(int i = 0;i < lanList.size(); i ++){
OneLancForm *ocf = lanList.at(i);
if(ocf->y() > selectY){
ocf->move(0, ocf->y() + 108);
ocf->move(4, ocf->y() + 108);
}
}
@ -1831,9 +1909,13 @@ void MainWindow::oneTopLanFormSelected(QString lanName)
if (currSelNetName == lanName){
// 与上一次选中同一个网络框,缩小当前选项卡
topLanListWidget->resize(435, 60 + 46);
lbTopLanList->move(12, 60);
scrollAreal->move(41, 158);
topLanListWidget->resize(435, 60 + 10 + 46);
lbTopLanList->move(19, 60 + 10);
btnCreateNet->move(365, 77 + 10);
scrollAreal->move(41, 178);
lbNoItemImg->move(this->width()/2 - 96/2 + 41/2, this->height()/2 - 10);
lbNoItemTip->move(this->width()/2 - 200/2 + 41/2, this->height()/2 + 96);
OneLancForm *ocf = lanList.at(0);
ocf->setTopItem(false);
@ -1841,9 +1923,13 @@ void MainWindow::oneTopLanFormSelected(QString lanName)
currSelNetName = "";
} else {
// 没有与上一次选中同一个网络框,放大当前选项卡
topLanListWidget->resize(435, 60 + 108 + 46);
lbTopLanList->move(12, 60 + 108);
scrollAreal->move(41, 158 + 108);
topLanListWidget->resize(435, 60 + 108 + 10 + 46);
lbTopLanList->move(19, 60 + 108 + 10);
btnCreateNet->move(365, 77 + 10 + 108);
scrollAreal->move(41, 178 + 108);
lbNoItemImg->move(this->width()/2 - 96/2 + 41/2, this->height()/2 - 10 + 54);
lbNoItemTip->move(this->width()/2 - 200/2 + 41/2, this->height()/2 + 96 + 54);
OneLancForm *ocf = lanList.at(0);
ocf->setTopItem(true);
@ -1860,10 +1946,10 @@ void MainWindow::oneWifiFormSelected(QString wifiName, int extendLength)
for(int i = 0, j = 0;i < wifiList.size(); i ++){
OneConnForm *ocf = wifiList.at(i);
if(ocf->isActive == true){
ocf->move(0, 0);
ocf->move(4, 0);
}
if(ocf->isActive == false){
ocf->move(0, j * 60);
ocf->move(4, j * 60);
j ++;
}
}
@ -1915,7 +2001,7 @@ void MainWindow::oneWifiFormSelected(QString wifiName, int extendLength)
for(int i = 0;i < wifiList.size(); i ++){
OneConnForm *ocf = wifiList.at(i);
if(ocf->y() > selectY){
ocf->move(0, ocf->y() + extendLength);
ocf->move(4, ocf->y() + extendLength);
}
}
@ -1935,10 +2021,13 @@ void MainWindow::oneTopWifiFormSelected(QString wifiName, int extendLength)
if (currSelNetName == wifiName){
// 与上一次选中同一个网络框,缩小当前选项卡
topWifiListWidget->resize(435, 60 + 46);
lbTopWifiList->move(12, 60);
btnAddNet->move(365, 77);
scrollAreaw->move(41, 158);
topWifiListWidget->resize(435, 60 + 10 + 46);
lbTopWifiList->move(19, 60 + 10);
btnAddNet->move(365, 77 + 10);
scrollAreaw->move(41, 178);
lbNoItemImg->move(this->width()/2 - 96/2 + 41/2, this->height()/2 - 10);
lbNoItemTip->move(this->width()/2 - 200/2 + 41/2, this->height()/2 + 96);
OneConnForm *ocf = wifiList.at(0);
ocf->setTopItem(false);
@ -1946,10 +2035,13 @@ void MainWindow::oneTopWifiFormSelected(QString wifiName, int extendLength)
currSelNetName = "";
} else {
// 没有与上一次选中同一个网络框,放大当前选项卡
topWifiListWidget->resize(435, 60 + 88 + 46);
lbTopWifiList->move(12, 60 + 88);
btnAddNet->move(365, 77 + 88);
scrollAreaw->move(41, 158 + 88);
topWifiListWidget->resize(435, 60 + 88 + 10 + 46);
lbTopWifiList->move(19, 60 + 88 + 10);
btnAddNet->move(365, 77 + 10 + 88);
scrollAreaw->move(41, 178 + 88);
lbNoItemImg->move(this->width()/2 - 96/2 + 41/2, this->height()/2 - 10 + 44);
lbNoItemTip->move(this->width()/2 - 200/2 + 41/2, this->height()/2 + 96 + 44);
OneConnForm *ocf = wifiList.at(0);
ocf->setTopItem(true);
@ -2038,20 +2130,21 @@ void MainWindow::disNetDone()
// 清空top列表
delete topLanListWidget;
topLanListWidget = new QWidget(ui->centralWidget);
topLanListWidget->move(41, 52);
topLanListWidget->resize(435, 60 + 46);
topLanListWidget->move(41, 57);
topLanListWidget->resize(435, 60 + 10 + 46);
lbTopLanList = new QLabel(topLanListWidget);
lbTopLanList->setText(tr("Ethernet Networks"));//"可用网络列表"
lbTopLanList->resize(260, 46);
lbTopLanList->move(12, 60);
lbTopLanList->move(19, 60 + 10);
lbTopLanList->setStyleSheet("QLabel{font-size:14px;color:rgba(255,255,255,0.97);}");
lbTopLanList->show();
btnCreateNet->move(365, 77 + 10);
// 清空lan列表
lanListWidget = new QWidget(scrollAreal);
lanListWidget->resize(440, 60 + 108);
scrollAreal->setWidget(lanListWidget);
scrollAreal->move(41, 158);
scrollAreal->move(41, 178);
// 当前连接的lan
OneLancForm *ccf = new OneLancForm(topLanListWidget, this, confForm, ksnm);
@ -2061,7 +2154,7 @@ void MainWindow::disNetDone()
ccf->isConnected = false;
ccf->setTopItem(false);
ccf->setAct(true);
ccf->move(0, 0);
ccf->move(4, 0);
ccf->show();
ui->lbBtnNetBG->setStyleSheet(btnOffQss);
@ -2106,12 +2199,11 @@ void MainWindow::disWifiDone()
wifiListWidget = new QWidget(scrollAreaw);
wifiListWidget->resize(440, /*60 + */88);
scrollAreaw->setWidget(wifiListWidget);
scrollAreaw->move(41, 158);
btnAddNet->move(365, 77);
scrollAreaw->move(41, 178);
lbTopWifiList->move(12, 60);
btnAddNet->move(365, 77);
topWifiListWidget->resize(435, 60 + 46);
lbTopWifiList->move(19, 60 + 10);
btnAddNet->move(365, 77 + 10);
topWifiListWidget->resize(435, 60 + 10 + 46);
QList<OneConnForm *> wifiList = topWifiListWidget->findChildren<OneConnForm *>();
for(int i = 0; i < wifiList.size(); i ++){
@ -2122,6 +2214,8 @@ void MainWindow::disWifiDone()
ocf->setSignal("0", "--");
ocf->setConnedString(1, tr("Disconnected"), "");//"未连接"
ocf->isConnected = false;
lbLoadDown->hide();
lbLoadUp->hide();
ocf->setTopItem(false);
disconnect(ocf, SIGNAL(selectedOneWifiForm(QString,int)), this, SLOT(oneTopWifiFormSelected(QString,int)));
}else{
@ -2145,6 +2239,8 @@ void MainWindow::disWifiDone()
syslog(LOG_DEBUG, "Already turn off the switch of wifi network");
this->stopLoading();
lbNoItemImg->show();
lbNoItemTip->show();
}
void MainWindow::keepDisWifiState()
@ -2157,11 +2253,11 @@ void MainWindow::keepDisWifiState()
wifiListWidget = new QWidget(scrollAreaw);
wifiListWidget->resize(440, /*60 + */88);
scrollAreaw->setWidget(wifiListWidget);
scrollAreaw->move(41, 158);
scrollAreaw->move(41, 178);
lbTopWifiList->move(12, 60);
btnAddNet->move(365, 77);
topWifiListWidget->resize(435, 60 + 46);
lbTopWifiList->move(19, 60 + 10);
btnAddNet->move(365, 77 + 10);
topWifiListWidget->resize(435, 60 + 10 + 46);
QList<OneConnForm *> wifiList = topWifiListWidget->findChildren<OneConnForm *>();
for(int i = 0; i < wifiList.size(); i ++){
@ -2268,3 +2364,11 @@ void MainWindow::onBtnAddNetClicked()
connect(connHidWifi, SIGNAL(reSetWifiList() ), this, SLOT(on_btnWifiList_clicked()) );
connHidWifi->show();
}
void MainWindow::onBtnCreateNetClicked()
{
ConfForm *m_cf = new ConfForm();
connect(m_cf, SIGNAL(updateNetList()), this, SLOT(onBtnNetListClicked()));
m_cf->cbTypeChanged(3);
m_cf->show();
}

View File

@ -53,6 +53,7 @@
#include "ksimplenm.h"
#include "loadingdiv.h"
#include "networkspeed.h"
#include "confform.h"
#include "kylin-dbus-interface.h"
#include "kylin-network-interface.h"
@ -150,10 +151,15 @@ private:
QLabel *lbLoadDown;
QLabel *lbLoadUp;
QLabel *lbNoItemImg;
QLabel *lbNoItemTip;
QScrollArea *scrollAreal, *scrollAreaw;
QLabel *lbTopLanList, *lbTopWifiList, *lbLanList, *lbWifiList;
QLabel *lbBb;
QPushButton *btnAddNet;
QPushButton *btnCreateNet;
ConfForm *cf;
QSystemTrayIcon *trayIcon;
QMenu *trayIconMenu;
@ -235,6 +241,7 @@ private slots:
void on_btnFlyMode_clicked();
void onBtnAddNetClicked();
void onBtnCreateNetClicked();
signals:
void deleteRedundantNet();

View File

@ -7,23 +7,13 @@
<x>0</x>
<y>0</y>
<width>480</width>
<height>515</height>
<height>538</height>
</rect>
</property>
<property name="windowTitle">
<string>kylin-nm</string>
</property>
<widget class="QWidget" name="centralWidget">
<widget class="QWidget" name="wdgHead" native="true">
<property name="geometry">
<rect>
<x>1</x>
<y>1</y>
<width>41</width>
<height>513</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="lbBtnNetBG">
<property name="geometry">
<rect>
@ -80,7 +70,7 @@
<property name="geometry">
<rect>
<x>2</x>
<y>460</y>
<y>490</y>
<width>37</width>
<height>37</height>
</rect>
@ -93,7 +83,7 @@
<property name="geometry">
<rect>
<x>10</x>
<y>468</y>
<y>498</y>
<width>22</width>
<height>22</height>
</rect>
@ -106,7 +96,7 @@
<property name="geometry">
<rect>
<x>2</x>
<y>460</y>
<y>490</y>
<width>37</width>
<height>37</height>
</rect>
@ -297,29 +287,13 @@
<string/>
</property>
</widget>
<widget class="Line" name="line">
<property name="geometry">
<rect>
<x>2</x>
<y>442</y>
<width>35</width>
<height>1</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 255, 255,0.06);</string>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="Line" name="line_2">
<widget class="Line" name="vLine">
<property name="geometry">
<rect>
<x>41</x>
<y>0</y>
<width>1</width>
<height>515</height>
<height>538</height>
</rect>
</property>
<property name="styleSheet">
@ -329,7 +303,6 @@
<enum>Qt::Vertical</enum>
</property>
</widget>
<zorder>wdgHead</zorder>
<zorder>lbFlyBG</zorder>
<zorder>lbHotBG</zorder>
<zorder>lbFlyImg</zorder>
@ -351,8 +324,7 @@
<zorder>btnNetList</zorder>
<zorder>btnWifiList</zorder>
<zorder>lbNetwork</zorder>
<zorder>line</zorder>
<zorder>line_2</zorder>
<zorder>vLine</zorder>
</widget>
</widget>
<layoutdefault spacing="6" margin="11"/>

View File

@ -99,5 +99,6 @@
<file>res/s/conning-a/6.png</file>
<file>res/s/conning-a/7.png</file>
<file>res/s/conning-a/8.png</file>
<file>res/s/nonet.png</file>
</qresource>
</RCC>

View File

@ -29,13 +29,6 @@ OneConnForm::OneConnForm(QWidget *parent, MainWindow *mainWindow, ConfForm *conf
{
ui->setupUi(this);
this->setStyleSheet("QToolTip{background:rgba(26,26,26,0.95);"
"font: 14px;"
"color:rgba(255,255,255,1);"
"border-radius: 2px;"
"border:1px solid rgba(255,255,255,0.45);"
"outline:none;}");
ui->btnConnSub->setText(tr("Connect"));//"设置"
ui->btnConn->setText(tr("Connect"));//"连接"
ui->btnConnPWD->setText(tr("Connect"));//"连接"
@ -49,7 +42,8 @@ OneConnForm::OneConnForm(QWidget *parent, MainWindow *mainWindow, ConfForm *conf
ui->lePassword->setEchoMode(QLineEdit::Normal);
ui->btnConnPWD->setEnabled(false);
ui->lbInfo->setStyleSheet("QLabel{font-size:14px;color:rgba(255,255,255,0.57);}");
ui->lbInfo->setStyleSheet("QLabel{font-size:14px;color:rgba(255,255,255,0.85);}");
ui->btnInfo->setStyleSheet("QPushButton{border:none;background:transparent;}");
ui->wbg->setStyleSheet("#wbg{border-radius:4px;background-color:rgba(255,255,255,0);}");
// "#wbg:Hover{border-radius:4px;background-color:rgba(255,255,255,0.1);}");
ui->wbg_2->setStyleSheet("#wbg_2{border-radius:4px;background-color:rgba(255,255,255,0.1);}");
@ -83,6 +77,7 @@ OneConnForm::OneConnForm(QWidget *parent, MainWindow *mainWindow, ConfForm *conf
ui->lbWaiting->setStyleSheet("QLabel{border:0px;border-radius:4px;background-color:rgba(61,107,229,1);}");
ui->lbWaitingIcon->setStyleSheet("QLabel{border:0px;background-color:transparent;}");
ui->btnInfo->setCursor(QCursor(Qt::PointingHandCursor));
ui->checkBoxPwd->setFocusPolicy(Qt::NoFocus);
ui->btnConnSub->setFocusPolicy(Qt::NoFocus);
ui->btnConn->setFocusPolicy(Qt::NoFocus);
@ -106,8 +101,11 @@ OneConnForm::OneConnForm(QWidget *parent, MainWindow *mainWindow, ConfForm *conf
ui->line->show();
ui->lbLoadDownImg->hide();
ui->lbLoadUpImg->hide();
ui->lbLoadUp->hide();
ui->lbLoadDown->hide();
ui->lbWaiting->hide();
ui->lbWaitingIcon->hide();
ui->btnInfo->hide();
this->mw = mainWindow;
this->cf = confForm;
@ -120,6 +118,8 @@ OneConnForm::OneConnForm(QWidget *parent, MainWindow *mainWindow, ConfForm *conf
this->installEventFilter(this);
ui->lePassword->setAttribute(Qt::WA_Hover,true);
ui->lePassword->installEventFilter(this);
ui->btnInfo->setAttribute(Qt::WA_Hover,true);
ui->btnInfo->installEventFilter(this);
connect(ui->lePassword, SIGNAL(returnPressed()), this, SLOT(on_btnConnPWD_clicked()));
ui->btnConn->setShortcut(Qt::Key_Return);//将字母区回车键与登录按钮绑定在一起
@ -142,7 +142,15 @@ void OneConnForm::mousePressEvent(QMouseEvent *){
//事件过滤器
bool OneConnForm::eventFilter(QObject *obj, QEvent *event)
{
if (obj == this){
if (obj == ui->btnInfo){
if(event->type() == QEvent::HoverEnter) {
ui->lbInfo->setStyleSheet("QLabel{font-size:14px;color:rgba(255,255,255,0.97);}");
return true;
} else if(event->type() == QEvent::HoverLeave){
ui->lbInfo->setStyleSheet("QLabel{font-size:14px;color:rgba(255,255,255,0.85);}");
return true;
}
}else if (obj == this){
if(event->type() == QEvent::HoverEnter) {
if (!this->isTopItem){
if (!this->isSelected){
@ -218,23 +226,21 @@ void OneConnForm::setTopItem(bool isSelected){
ui->btnConn->hide();
ui->btnConnPWD->hide();
ui->btnHideConn->hide();
ui->lbLoadUpImg->show();
ui->lbLoadDownImg->show();
ui->btnInfo->show();
if (isConnected){
// ui->lbLoadUp->setText("0Kb/s");
// ui->lbLoadDown->setText("0Kb/s");
ui->lbLoadUp->hide();
ui->lbLoadDown->hide();
ui->lbLoadUpImg->show();
ui->lbLoadDownImg->show();
if (this->isWaiting){
ui->btnDisConn->hide();
}else{
ui->btnDisConn->show();
}
}else{
// ui->lbLoadUp->setText("0Kb/s");
// ui->lbLoadDown->setText("0Kb/s");
ui->lbLoadUp->hide();
ui->lbLoadDown->hide();
ui->lbLoadUpImg->hide();
ui->lbLoadDownImg->hide();
ui->btnDisConn->hide();
}
@ -279,10 +285,10 @@ void OneConnForm::setSelected(bool isSelected, bool isCurrName){
ui->lePassword->hide();
ui->checkBoxPwd->hide();
ui->btnConnPWD->hide();
ui->lbSignal->show();
ui->btnDisConn->hide();
ui->btnHideConn->hide();
ui->btnInfo->hide();
this->isTopItem = false;
}
@ -331,11 +337,9 @@ QString OneConnForm::getName()
}
void OneConnForm::setRate(QString rate){
QString txt(tr("Rate"));//"速率"
//this->setToolTip("<span style=\"font-size:14px;border:none;background-color:#3593b5;color:white;\">&nbsp; " + txt + ": " + rate + " &nbsp;</span>");
//this->setToolTip(txt + ":" + rate);
QString rateStr = rate.split(" ").at(0);
int rateNum = rateStr.toInt();
// QString txt(tr("Rate"));//"速率"
// this->setToolTip("<span style=\"font-size:14px;border:none;background-color:#3593b5;color:white;\">&nbsp; " + txt + ": " + rate + " &nbsp;</span>");
// this->setToolTip(txt + ":" + rate);
}
void OneConnForm::setLine(bool isShow)
@ -419,6 +423,9 @@ void OneConnForm::slotConnWifiPWD(){
//点击后断开wifi网络
void OneConnForm::on_btnDisConn_clicked()
{
syslog(LOG_DEBUG, "DisConnect button about wifi net is clicked, current wifi name is %s .", ui->lbName->text().toUtf8().data());
qDebug()<<"DisConnect button about wifi net is clicked, current wifi name is "<<ui->lbName->text();
this->startWaiting(false);
mw->is_stop_check_net_state = 1;
@ -426,9 +433,6 @@ void OneConnForm::on_btnDisConn_clicked()
kylin_network_set_con_down(ui->lbName->text().toUtf8().data());
disconnect(this, SIGNAL(selectedOneWifiForm(QString,int)), mw, SLOT(oneWifiFormSelected(QString,int)));
emit disconnActiveWifi();
syslog(LOG_DEBUG, "DisConnect button about wifi net is clicked, current wifi name is %s .", ui->lbName->text().toUtf8().data());
qDebug()<<"DisConnect button about wifi net is clicked, current wifi name is "<<ui->lbName->text();
}
//点击列表item扩展时会出现该按钮 用于连接网络
@ -539,6 +543,50 @@ void OneConnForm::on_lePassword_textEdited(const QString &arg1)
}
}
void OneConnForm::on_btnInfo_clicked()
{
QPoint pos = QCursor::pos();
QRect primaryGeometry;
for (QScreen *screen : qApp->screens()) {
if (screen->geometry().contains(pos)) {
primaryGeometry = screen->geometry();
}
}
if (primaryGeometry.isEmpty()) {
primaryGeometry = qApp->primaryScreen()->geometry();
}
BackThread *bt = new BackThread();
QString connProp = bt->getConnProp(ui->lbName->text());
QStringList propList = connProp.split("|");
QString v4method, addr, mask, gateway, dns;
foreach (QString line, propList) {
if(line.startsWith("method:")){
v4method = line.split(":").at(1);
}
if(line.startsWith("addr:")){
addr = line.split(":").at(1);
}
if(line.startsWith("mask:")){
mask = line.split(":").at(1);
}
if(line.startsWith("gateway:")){
gateway= line.split(":").at(1);
}
if(line.startsWith("dns:")){
dns = line.split(":").at(1);
}
}
// qDebug()<<v4method<<addr<<mask<<gateway<<dns;
cf->setProp(ui->lbName->text(), v4method, addr, mask, gateway, dns, this->isActive);
//cf->move(primaryGeometry.width() / 2 - cf->width() / 2, primaryGeometry.height() / 2 - cf->height() / 2);
cf->show();
cf->raise();
}
// Wifi连接结果0成功 1失败 2没有配置文件
void OneConnForm::slotConnWifiResult(int connFlag){
qDebug()<<"Function slotConnWifiResult receives a number: "<<connFlag;

View File

@ -104,6 +104,8 @@ private slots:
void startWaiting(bool isConn);
void stopWaiting();
void on_btnInfo_clicked();
private:
QTimer *waitTimer;
int waitPage;

View File

@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>422</width>
<width>424</width>
<height>60</height>
</rect>
</property>
@ -83,7 +83,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>422</width>
<width>424</width>
<height>118</height>
</rect>
</property>
@ -155,7 +155,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>422</width>
<width>424</width>
<height>148</height>
</rect>
</property>
@ -172,13 +172,26 @@
<string/>
</property>
</widget>
<widget class="QPushButton" name="btnInfo">
<property name="geometry">
<rect>
<x>63</x>
<y>71</y>
<width>230</width>
<height>61</height>
</rect>
</property>
<property name="text">
<string/>
</property>
</widget>
</widget>
<widget class="Line" name="line">
<property name="geometry">
<rect>
<x>0</x>
<y>58</y>
<width>422</width>
<width>424</width>
<height>1</height>
</rect>
</property>
@ -220,7 +233,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>422</width>
<width>424</width>
<height>60</height>
</rect>
</property>

View File

@ -36,7 +36,8 @@ OneLancForm::OneLancForm(QWidget *parent, MainWindow *mainWindow, ConfForm *conf
ui->lbLoadUp->setAlignment(Qt::AlignLeft);
ui->lbLoadDown->setAlignment(Qt::AlignLeft);
ui->lbInfo->setStyleSheet("QLabel{font-size:14px;color:rgba(255,255,255,0.57);}");
ui->lbInfo->setStyleSheet("QLabel{font-size:14px;color:rgba(255,255,255,0.97);}");
ui->btnInfo->setStyleSheet("QPushButton{border:none;background:transparent;}");
ui->wbg->setStyleSheet("#wbg{border-radius:4px;background-color:rgba(255,255,255,0.1);}");
ui->wbg_2->setStyleSheet("#wbg_2{border-radius:4px;background-color:rgba(255,255,255,0);}");
//"#wbg_2:Hover{border-radius:4px;background-color:rgba(255,255,255,0.1);}");
@ -58,6 +59,7 @@ OneLancForm::OneLancForm(QWidget *parent, MainWindow *mainWindow, ConfForm *conf
ui->lbWaiting->setStyleSheet("QLabel{border:0px;border-radius:4px;background-color:rgba(61,107,229,1);}");
ui->lbWaitingIcon->setStyleSheet("QLabel{border:0px;background-color:transparent;}");
ui->btnInfo->setCursor(QCursor(Qt::PointingHandCursor));
ui->btnConnSub->setFocusPolicy(Qt::NoFocus);
ui->btnConn->setFocusPolicy(Qt::NoFocus);
ui->btnDisConn->setFocusPolicy(Qt::NoFocus);
@ -71,6 +73,8 @@ OneLancForm::OneLancForm(QWidget *parent, MainWindow *mainWindow, ConfForm *conf
ui->line->show();
ui->lbLoadDownImg->hide();
ui->lbLoadUpImg->hide();
ui->lbLoadUp->hide();
ui->lbLoadDown->hide();
ui->lbWaiting->hide();
ui->lbWaitingIcon->hide();
@ -83,6 +87,8 @@ OneLancForm::OneLancForm(QWidget *parent, MainWindow *mainWindow, ConfForm *conf
this->setAttribute(Qt::WA_Hover,true);
this->installEventFilter(this);
ui->btnInfo->setAttribute(Qt::WA_Hover,true);
ui->btnInfo->installEventFilter(this);
this->waitTimer = new QTimer(this);
connect(waitTimer, SIGNAL(timeout()), this, SLOT(waitAnimStep()));
@ -104,7 +110,15 @@ void OneLancForm::mousePressEvent(QMouseEvent *){
//事件过滤器
bool OneLancForm::eventFilter(QObject *obj, QEvent *event)
{
if (obj == this){
if (obj == ui->btnInfo){
if(event->type() == QEvent::HoverEnter) {
ui->lbInfo->setStyleSheet("QLabel{font-size:14px;color:rgba(255,255,255,0.97);}");
return true;
} else if(event->type() == QEvent::HoverLeave){
ui->lbInfo->setStyleSheet("QLabel{font-size:14px;color:rgba(255,255,255,0.85);}");
return true;
}
}else if (obj == this){
if(event->type() == QEvent::HoverEnter) {
if (!this->isTopItem){
if (!this->isSelected){
@ -185,24 +199,20 @@ void OneLancForm::setTopItem(bool isSelected)
this->isSelected = false;
}
if (isConnected){
// ui->lbLoadUp->setText("0Kb/s");
// ui->lbLoadDown->setText("0Kb/s");
ui->lbLoadUp->hide();
ui->lbLoadDown->hide();
ui->lbLoadUpImg->show();
ui->lbLoadDownImg->show();
ui->btnDisConn->show();
} else {
// ui->lbLoadUp->setText("0Kb/s");
// ui->lbLoadDown->setText("0Kb/s");
ui->lbLoadUp->hide();
ui->lbLoadDown->hide();
ui->lbLoadUpImg->hide();
ui->lbLoadDownImg->hide();
ui->btnDisConn->hide();
}
ui->btnConn->hide();
ui->wbg_2->hide();
ui->line->hide();
ui->lbLoadUpImg->show();
ui->lbLoadDownImg->show();
this->isTopItem = true;
}
@ -260,6 +270,9 @@ void OneLancForm::slotConnLan(){
void OneLancForm::on_btnDisConn_clicked()
{
syslog(LOG_DEBUG, "DisConnect button about lan net is clicked, current wired net name is %s .", ui->lbName->text().toUtf8().data());
qDebug()<<"DisConnect button about lan net is clicked, current wired net name is "<<ui->lbName->text();
this->startWaiting(false);
kylin_network_set_con_down(ui->lbName->text().toUtf8().data());
@ -267,9 +280,6 @@ void OneLancForm::on_btnDisConn_clicked()
disconnect(this, SIGNAL(selectedOneLanForm(QString)), mw, SLOT(oneLanFormSelected(QString)));
emit disconnActiveLan();
syslog(LOG_DEBUG, "DisConnect button about lan net is clicked, current wired net name is %s .", ui->lbName->text().toUtf8().data());
qDebug()<<"DisConnect button about lan net is clicked, current wired net name is "<<ui->lbName->text();
}
void OneLancForm::on_btnConn_clicked()
@ -304,6 +314,50 @@ void OneLancForm::on_btnConnSub_clicked()
t->start();
}
void OneLancForm::on_btnInfo_clicked()
{
QPoint pos = QCursor::pos();
QRect primaryGeometry;
for (QScreen *screen : qApp->screens()) {
if (screen->geometry().contains(pos)) {
primaryGeometry = screen->geometry();
}
}
if (primaryGeometry.isEmpty()) {
primaryGeometry = qApp->primaryScreen()->geometry();
}
BackThread *bt = new BackThread();
QString connProp = bt->getConnProp(ui->lbName->text());
QStringList propList = connProp.split("|");
QString v4method, addr, mask, gateway, dns;
foreach (QString line, propList) {
if(line.startsWith("method:")){
v4method = line.split(":").at(1);
}
if(line.startsWith("addr:")){
addr = line.split(":").at(1);
}
if(line.startsWith("mask:")){
mask = line.split(":").at(1);
}
if(line.startsWith("gateway:")){
gateway= line.split(":").at(1);
}
if(line.startsWith("dns:")){
dns = line.split(":").at(1);
}
}
// qDebug()<<v4method<<addr<<mask<<gateway<<dns;
cf->setProp(ui->lbName->text(), v4method, addr, mask, gateway, dns, this->isActive);
//cf->move(primaryGeometry.width() / 2 - cf->width() / 2, primaryGeometry.height() / 2 - cf->height() / 2);
cf->show();
cf->raise();
}
void OneLancForm::waitAnimStep(){
QString qpmQss = "QLabel{background-image:url(':/res/s/conning-a/";
qpmQss.append(QString::number(this->waitPage));

View File

@ -82,6 +82,8 @@ private slots:
void startWaiting(bool isConn);
void stopWaiting();
void on_btnInfo_clicked();
private:
QTimer *waitTimer;
int waitPage;

View File

@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>422</width>
<width>424</width>
<height>60</height>
</rect>
</property>
@ -83,7 +83,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>422</width>
<width>424</width>
<height>168</height>
</rect>
</property>
@ -100,6 +100,19 @@
<string/>
</property>
</widget>
<widget class="QPushButton" name="btnInfo">
<property name="geometry">
<rect>
<x>63</x>
<y>71</y>
<width>238</width>
<height>85</height>
</rect>
</property>
<property name="text">
<string/>
</property>
</widget>
</widget>
<widget class="QLabel" name="lbIcon">
<property name="geometry">
@ -119,7 +132,7 @@
<rect>
<x>0</x>
<y>58</y>
<width>422</width>
<width>424</width>
<height>1</height>
</rect>
</property>
@ -187,7 +200,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>422</width>
<width>424</width>
<height>60</height>
</rect>
</property>

BIN
res/s/nonet.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -12,70 +12,86 @@
<context>
<name>ConfForm</name>
<message>
<location filename="../confform.cpp" line="37"/>
<location filename="../confform.cpp" line="36"/>
<location filename="../confform.cpp" line="248"/>
<source>edit network</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../confform.cpp" line="40"/>
<source>Method: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../confform.cpp" line="41"/>
<source>Address: </source>
<source>Network name: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../confform.cpp" line="42"/>
<source>Netmask: </source>
<source>Method: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../confform.cpp" line="43"/>
<source>Gateway: </source>
<source>Address: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../confform.cpp" line="44"/>
<source>DNS 1: </source>
<source>Netmask: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../confform.cpp" line="45"/>
<source>DNS 2: </source>
<source>Gateway: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../confform.cpp" line="46"/>
<source>DNS 1: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../confform.cpp" line="47"/>
<source>Edit Conn</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../confform.cpp" line="48"/>
<source>Auto(DHCP)</source>
<source>DNS 2: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../confform.cpp" line="49"/>
<source>Edit Conn</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../confform.cpp" line="50"/>
<source>Auto(DHCP)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../confform.cpp" line="51"/>
<source>Manual</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../confform.cpp" line="57"/>
<location filename="../confform.cpp" line="61"/>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../confform.cpp" line="58"/>
<location filename="../confform.cpp" line="62"/>
<source>Save</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../confform.cpp" line="190"/>
<location filename="../confform.cpp" line="63"/>
<source>Ok</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../confform.cpp" line="233"/>
<source>New settings already effective</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../confform.cpp" line="270"/>
<source>add wired network</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>DlgConnHidWifi</name>
@ -473,143 +489,143 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="126"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="120"/>
<source>Add hidden Wi-Fi</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="127"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="121"/>
<source>Connection</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="128"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="122"/>
<source>Network name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="129"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="123"/>
<source>Wi-Fi security</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="130"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="124"/>
<source>Authentication</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="131"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="125"/>
<source>Anonymous identity</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="132"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="126"/>
<source>Domain</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="133"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="127"/>
<source>CA certificate</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="134"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="128"/>
<source>CA certificate password</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="135"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="129"/>
<source>No CA certificate is required</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="136"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="130"/>
<source>PEAP version</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="137"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="131"/>
<source>Inner authentication</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="138"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="132"/>
<source>Username</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="139"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="133"/>
<source>Password</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="140"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="134"/>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="141"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="135"/>
<source>Connect</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="160"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="183"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="154"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="177"/>
<source>None</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="161"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="155"/>
<source>WPA &amp; WPA2 Personal</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="162"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="156"/>
<source>WEP 40/128-bit Key (Hex or ASCII)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="163"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="157"/>
<source>WEP 128-bit Passphrase</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="165"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="159"/>
<source>Dynamic WEP (802.1X)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="166"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="160"/>
<source>WPA &amp; WPA2 Enterprise</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="178"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="172"/>
<source>Tunneled TLS</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="179"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="173"/>
<source>Protected EAP (PEAP)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="184"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="178"/>
<source>Choose from file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="187"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="181"/>
<source>Automatic</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="188"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="182"/>
<source>Version 0</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="189"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="183"/>
<source>Version 1</source>
<translation type="unfinished"></translation>
</message>
@ -622,92 +638,92 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="88"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="85"/>
<source>Add hidden Wi-Fi</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="89"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="86"/>
<source>Connection</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="90"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="87"/>
<source>Network name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="91"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="88"/>
<source>Wi-Fi security</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="92"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="89"/>
<source>Authentication</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="93"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="90"/>
<source>Username</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="94"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="91"/>
<source>Password</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="95"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="92"/>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="96"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="93"/>
<source>Connect</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="98"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="95"/>
<source>C_reate</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="115"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="112"/>
<source>None</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="116"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="113"/>
<source>WPA &amp; WPA2 Personal</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="117"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="114"/>
<source>WEP 40/128-bit Key (Hex or ASCII)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="118"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="115"/>
<source>WEP 128-bit Passphrase</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="120"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="117"/>
<source>Dynamic WEP (802.1X)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="121"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="118"/>
<source>WPA &amp; WPA2 Enterprise</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="133"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="130"/>
<source>Tunneled TLS</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="134"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="131"/>
<source>Protected EAP (PEAP)</source>
<translation type="unfinished"></translation>
</message>
@ -863,128 +879,128 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="116"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="113"/>
<source>Add hidden Wi-Fi</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="117"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="114"/>
<source>Connection</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="118"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="115"/>
<source>Network name</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="119"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="116"/>
<source>Wi-Fi security</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="120"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="117"/>
<source>Authentication</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="121"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="118"/>
<source>Anonymous identity</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="122"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="119"/>
<source>Domain</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="123"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="120"/>
<source>CA certificate</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="124"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="121"/>
<source>CA certificate password</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="125"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="122"/>
<source>No CA certificate is required</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="126"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="123"/>
<source>Inner authentication</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="127"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="124"/>
<source>Username</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="128"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="125"/>
<source>Password</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="129"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="126"/>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="130"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="127"/>
<source>Connect</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="132"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="129"/>
<source>C_reate</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="149"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="172"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="146"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="169"/>
<source>None</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="150"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="147"/>
<source>WPA &amp; WPA2 Personal</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="151"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="148"/>
<source>WEP 40/128-bit Key (Hex or ASCII)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="152"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="149"/>
<source>WEP 128-bit Passphrase</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="154"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="151"/>
<source>Dynamic WEP (802.1X)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="155"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="152"/>
<source>WPA &amp; WPA2 Enterprise</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="167"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="164"/>
<source>Tunneled TLS</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="168"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="165"/>
<source>Protected EAP (PEAP)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="173"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="170"/>
<source>Choose from file</source>
<translation type="unfinished"></translation>
</message>
@ -1222,124 +1238,136 @@
<name>MainWindow</name>
<message>
<location filename="../mainwindow.ui" line="14"/>
<location filename="../mainwindow.cpp" line="294"/>
<location filename="../mainwindow.cpp" line="313"/>
<source>kylin-nm</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="223"/>
<location filename="../mainwindow.cpp" line="317"/>
<location filename="../mainwindow.cpp" line="244"/>
<location filename="../mainwindow.cpp" line="336"/>
<source>Advanced</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="176"/>
<location filename="../mainwindow.cpp" line="1361"/>
<location filename="../mainwindow.cpp" line="197"/>
<location filename="../mainwindow.cpp" line="1417"/>
<source>Ethernet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="182"/>
<location filename="../mainwindow.cpp" line="1447"/>
<location filename="../mainwindow.cpp" line="203"/>
<location filename="../mainwindow.cpp" line="1521"/>
<source>Wifi</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="199"/>
<location filename="../mainwindow.cpp" line="220"/>
<source>HotSpot</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="211"/>
<location filename="../mainwindow.cpp" line="232"/>
<source>FlyMode</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="924"/>
<location filename="../mainwindow.cpp" line="1054"/>
<location filename="../mainwindow.cpp" line="1421"/>
<location filename="../mainwindow.cpp" line="1485"/>
<location filename="../mainwindow.cpp" line="2059"/>
<location filename="../mainwindow.cpp" line="2122"/>
<location filename="../mainwindow.cpp" line="2172"/>
<location filename="../mainwindow.cpp" line="951"/>
<location filename="../mainwindow.cpp" line="1091"/>
<location filename="../mainwindow.cpp" line="1489"/>
<location filename="../mainwindow.cpp" line="1562"/>
<location filename="../mainwindow.cpp" line="2139"/>
<location filename="../mainwindow.cpp" line="2201"/>
<location filename="../mainwindow.cpp" line="2255"/>
<source>Not connected</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="926"/>
<location filename="../mainwindow.cpp" line="969"/>
<location filename="../mainwindow.cpp" line="970"/>
<location filename="../mainwindow.cpp" line="1057"/>
<location filename="../mainwindow.cpp" line="1116"/>
<location filename="../mainwindow.cpp" line="1239"/>
<location filename="../mainwindow.cpp" line="1423"/>
<location filename="../mainwindow.cpp" line="1488"/>
<location filename="../mainwindow.cpp" line="2061"/>
<location filename="../mainwindow.cpp" line="2124"/>
<location filename="../mainwindow.cpp" line="2174"/>
<location filename="../mainwindow.cpp" line="953"/>
<location filename="../mainwindow.cpp" line="1000"/>
<location filename="../mainwindow.cpp" line="1001"/>
<location filename="../mainwindow.cpp" line="1094"/>
<location filename="../mainwindow.cpp" line="1157"/>
<location filename="../mainwindow.cpp" line="1283"/>
<location filename="../mainwindow.cpp" line="1491"/>
<location filename="../mainwindow.cpp" line="1565"/>
<location filename="../mainwindow.cpp" line="2141"/>
<location filename="../mainwindow.cpp" line="2203"/>
<location filename="../mainwindow.cpp" line="2257"/>
<source>Disconnected</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="74"/>
<location filename="../mainwindow.cpp" line="898"/>
<location filename="../mainwindow.cpp" line="1407"/>
<location filename="../mainwindow.cpp" line="2045"/>
<location filename="../mainwindow.cpp" line="912"/>
<location filename="../mainwindow.cpp" line="1462"/>
<location filename="../mainwindow.cpp" line="2124"/>
<source>Ethernet Networks</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="956"/>
<location filename="../mainwindow.cpp" line="1099"/>
<location filename="../mainwindow.cpp" line="985"/>
<location filename="../mainwindow.cpp" line="1138"/>
<source>Connected</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="91"/>
<location filename="../mainwindow.cpp" line="1017"/>
<location filename="../mainwindow.cpp" line="1461"/>
<location filename="../mainwindow.cpp" line="96"/>
<location filename="../mainwindow.cpp" line="1051"/>
<location filename="../mainwindow.cpp" line="1536"/>
<source>Wifi Networks</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="99"/>
<location filename="../mainwindow.cpp" line="1025"/>
<location filename="../mainwindow.cpp" line="1469"/>
<location filename="../mainwindow.cpp" line="83"/>
<location filename="../mainwindow.cpp" line="920"/>
<location filename="../mainwindow.cpp" line="1470"/>
<source>Create Lan Net</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="105"/>
<location filename="../mainwindow.cpp" line="1059"/>
<location filename="../mainwindow.cpp" line="1544"/>
<source>Add Hide Network</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="316"/>
<location filename="../mainwindow.cpp" line="129"/>
<source>No usable network in the list</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="335"/>
<source>Show MainWindow</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1317"/>
<location filename="../mainwindow.cpp" line="1365"/>
<source>keep wired network switch is on before turning on wireless switch</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1337"/>
<location filename="../mainwindow.cpp" line="1387"/>
<source>please insert the wireless network adapter</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1391"/>
<location filename="../mainwindow.cpp" line="1446"/>
<source>Abnormal connection exist, program will delete it</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1560"/>
<location filename="../mainwindow.cpp" line="1637"/>
<source>Conn Ethernet Success</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1571"/>
<location filename="../mainwindow.cpp" line="1648"/>
<source>Conn Ethernet Fail</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1691"/>
<location filename="../mainwindow.cpp" line="1768"/>
<source>Conn Wifi Success</source>
<translation type="unfinished"></translation>
</message>
@ -1352,41 +1380,36 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../oneconnform.cpp" line="39"/>
<location filename="../oneconnform.cpp" line="40"/>
<location filename="../oneconnform.cpp" line="41"/>
<location filename="../oneconnform.cpp" line="43"/>
<location filename="../oneconnform.cpp" line="32"/>
<location filename="../oneconnform.cpp" line="33"/>
<location filename="../oneconnform.cpp" line="34"/>
<location filename="../oneconnform.cpp" line="36"/>
<source>Connect</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../oneconnform.cpp" line="42"/>
<location filename="../oneconnform.cpp" line="35"/>
<source>Disconnect</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../oneconnform.cpp" line="44"/>
<location filename="../oneconnform.cpp" line="258"/>
<location filename="../oneconnform.cpp" line="37"/>
<location filename="../oneconnform.cpp" line="264"/>
<source>Input Password...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../oneconnform.cpp" line="324"/>
<location filename="../oneconnform.cpp" line="330"/>
<source>Connect to Hidden Wi-Fi Network</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../oneconnform.cpp" line="334"/>
<source>Rate</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../oneconnform.cpp" line="402"/>
<location filename="../oneconnform.cpp" line="406"/>
<source>None</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../oneconnform.cpp" line="571"/>
<location filename="../oneconnform.cpp" line="619"/>
<source>Conn Wifi Failed</source>
<translation type="unfinished"></translation>
</message>
@ -1410,8 +1433,8 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onelancform.cpp" line="227"/>
<location filename="../onelancform.cpp" line="231"/>
<location filename="../onelancform.cpp" line="237"/>
<location filename="../onelancform.cpp" line="241"/>
<source>no configuration</source>
<translation type="unfinished"></translation>
</message>

Binary file not shown.

View File

@ -12,70 +12,86 @@
<context>
<name>ConfForm</name>
<message>
<location filename="../confform.cpp" line="37"/>
<location filename="../confform.cpp" line="36"/>
<location filename="../confform.cpp" line="248"/>
<source>edit network</source>
<translation></translation>
</message>
<message>
<location filename="../confform.cpp" line="40"/>
<location filename="../confform.cpp" line="41"/>
<source>Network name: </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../confform.cpp" line="42"/>
<source>Method: </source>
<translation>IP设置: </translation>
</message>
<message>
<location filename="../confform.cpp" line="41"/>
<location filename="../confform.cpp" line="43"/>
<source>Address: </source>
<translation>IP地址: </translation>
</message>
<message>
<location filename="../confform.cpp" line="42"/>
<location filename="../confform.cpp" line="44"/>
<source>Netmask: </source>
<translation>: </translation>
</message>
<message>
<location filename="../confform.cpp" line="43"/>
<location filename="../confform.cpp" line="45"/>
<source>Gateway: </source>
<translation>: </translation>
</message>
<message>
<location filename="../confform.cpp" line="44"/>
<location filename="../confform.cpp" line="46"/>
<source>DNS 1: </source>
<translation>DNS: </translation>
</message>
<message>
<location filename="../confform.cpp" line="45"/>
<location filename="../confform.cpp" line="47"/>
<source>DNS 2: </source>
<translation>DNS: </translation>
</message>
<message>
<location filename="../confform.cpp" line="47"/>
<location filename="../confform.cpp" line="49"/>
<source>Edit Conn</source>
<translation></translation>
</message>
<message>
<location filename="../confform.cpp" line="48"/>
<location filename="../confform.cpp" line="50"/>
<source>Auto(DHCP)</source>
<translation>(DHCP)</translation>
</message>
<message>
<location filename="../confform.cpp" line="49"/>
<location filename="../confform.cpp" line="51"/>
<source>Manual</source>
<translation></translation>
</message>
<message>
<location filename="../confform.cpp" line="57"/>
<location filename="../confform.cpp" line="61"/>
<source>Cancel</source>
<translation></translation>
</message>
<message>
<location filename="../confform.cpp" line="58"/>
<location filename="../confform.cpp" line="62"/>
<source>Save</source>
<translation></translation>
</message>
<message>
<location filename="../confform.cpp" line="190"/>
<location filename="../confform.cpp" line="63"/>
<source>Ok</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../confform.cpp" line="233"/>
<source>New settings already effective</source>
<translation></translation>
</message>
<message>
<location filename="../confform.cpp" line="270"/>
<source>add wired network</source>
<translation type="unfinished">线</translation>
</message>
</context>
<context>
<name>DlgConnHidWifi</name>
@ -473,143 +489,143 @@
<translation> Wi-Fi </translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="126"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="120"/>
<source>Add hidden Wi-Fi</source>
<translation type="unfinished">Wi-Fi</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="127"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="121"/>
<source>Connection</source>
<translation type="unfinished">:</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="128"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="122"/>
<source>Network name</source>
<translation type="unfinished">:</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="129"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="123"/>
<source>Wi-Fi security</source>
<translation type="unfinished">Wi-Fi :</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="130"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="124"/>
<source>Authentication</source>
<translation type="unfinished">:</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="131"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="125"/>
<source>Anonymous identity</source>
<translation type="unfinished">:</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="132"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="126"/>
<source>Domain</source>
<translation>:</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="133"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="127"/>
<source>CA certificate</source>
<translation>CA :</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="134"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="128"/>
<source>CA certificate password</source>
<translation>CA :</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="135"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="129"/>
<source>No CA certificate is required</source>
<translation>CA证书</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="136"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="130"/>
<source>PEAP version</source>
<translation>PEAP版本:</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="137"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="131"/>
<source>Inner authentication</source>
<translation type="unfinished">:</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="138"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="132"/>
<source>Username</source>
<translation type="unfinished">:</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="139"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="133"/>
<source>Password</source>
<translation type="unfinished">:</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="140"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="134"/>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="141"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="135"/>
<source>Connect</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="160"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="183"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="154"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="177"/>
<source>None</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="161"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="155"/>
<source>WPA &amp; WPA2 Personal</source>
<translation type="unfinished">WPA WPA2 </translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="162"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="156"/>
<source>WEP 40/128-bit Key (Hex or ASCII)</source>
<translation type="unfinished">WEP 40/128 (ASCII)</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="163"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="157"/>
<source>WEP 128-bit Passphrase</source>
<translation type="unfinished">WEP 128 </translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="165"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="159"/>
<source>Dynamic WEP (802.1X)</source>
<translation type="unfinished"> WEP (802.1x)</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="166"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="160"/>
<source>WPA &amp; WPA2 Enterprise</source>
<translation type="unfinished">WPA WPA2 </translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="178"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="172"/>
<source>Tunneled TLS</source>
<translation type="unfinished"> TLS</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="179"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="173"/>
<source>Protected EAP (PEAP)</source>
<translation type="unfinished"> EAP</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="184"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="178"/>
<source>Choose from file</source>
<translation>...</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="187"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="181"/>
<source>Automatic</source>
<translation></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="188"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="182"/>
<source>Version 0</source>
<translation> 0</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="189"/>
<location filename="../wireless-security/dlgconnhidwifisecpeap.cpp" line="183"/>
<source>Version 1</source>
<translation> 1</translation>
</message>
@ -622,92 +638,92 @@
<translation> Wi-Fi </translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="88"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="85"/>
<source>Add hidden Wi-Fi</source>
<translation type="unfinished">Wi-Fi</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="89"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="86"/>
<source>Connection</source>
<translation type="unfinished">:</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="90"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="87"/>
<source>Network name</source>
<translation type="unfinished">:</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="91"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="88"/>
<source>Wi-Fi security</source>
<translation type="unfinished">Wi-Fi :</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="92"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="89"/>
<source>Authentication</source>
<translation type="unfinished">:</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="93"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="90"/>
<source>Username</source>
<translation type="unfinished">:</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="94"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="91"/>
<source>Password</source>
<translation type="unfinished">:</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="95"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="92"/>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="96"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="93"/>
<source>Connect</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="98"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="95"/>
<source>C_reate</source>
<translation type="unfinished">...</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="115"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="112"/>
<source>None</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="116"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="113"/>
<source>WPA &amp; WPA2 Personal</source>
<translation type="unfinished">WPA WPA2 </translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="117"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="114"/>
<source>WEP 40/128-bit Key (Hex or ASCII)</source>
<translation type="unfinished">WEP 40/128 (ASCII)</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="118"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="115"/>
<source>WEP 128-bit Passphrase</source>
<translation type="unfinished">WEP 128 </translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="120"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="117"/>
<source>Dynamic WEP (802.1X)</source>
<translation type="unfinished"> WEP (802.1x)</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="121"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="118"/>
<source>WPA &amp; WPA2 Enterprise</source>
<translation type="unfinished">WPA WPA2 </translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="133"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="130"/>
<source>Tunneled TLS</source>
<translation type="unfinished"> TLS</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="134"/>
<location filename="../wireless-security/dlgconnhidwifisecpwd.cpp" line="131"/>
<source>Protected EAP (PEAP)</source>
<translation type="unfinished"> EAP</translation>
</message>
@ -863,128 +879,128 @@
<translation> Wi-Fi </translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="116"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="113"/>
<source>Add hidden Wi-Fi</source>
<translation type="unfinished">Wi-Fi</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="117"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="114"/>
<source>Connection</source>
<translation type="unfinished">:</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="118"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="115"/>
<source>Network name</source>
<translation type="unfinished">:</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="119"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="116"/>
<source>Wi-Fi security</source>
<translation type="unfinished">Wi-Fi :</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="120"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="117"/>
<source>Authentication</source>
<translation type="unfinished">:</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="121"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="118"/>
<source>Anonymous identity</source>
<translation type="unfinished">:</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="122"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="119"/>
<source>Domain</source>
<translation type="unfinished">:</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="123"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="120"/>
<source>CA certificate</source>
<translation type="unfinished">CA :</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="124"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="121"/>
<source>CA certificate password</source>
<translation type="unfinished">CA :</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="125"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="122"/>
<source>No CA certificate is required</source>
<translation>CA证书</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="126"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="123"/>
<source>Inner authentication</source>
<translation type="unfinished">:</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="127"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="124"/>
<source>Username</source>
<translation type="unfinished">:</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="128"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="125"/>
<source>Password</source>
<translation type="unfinished">:</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="129"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="126"/>
<source>Cancel</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="130"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="127"/>
<source>Connect</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="132"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="129"/>
<source>C_reate</source>
<translation type="unfinished">...</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="149"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="172"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="146"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="169"/>
<source>None</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="150"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="147"/>
<source>WPA &amp; WPA2 Personal</source>
<translation type="unfinished">WPA WPA2 </translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="151"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="148"/>
<source>WEP 40/128-bit Key (Hex or ASCII)</source>
<translation type="unfinished">WEP 40/128 (ASCII)</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="152"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="149"/>
<source>WEP 128-bit Passphrase</source>
<translation type="unfinished">WEP 128 </translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="154"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="151"/>
<source>Dynamic WEP (802.1X)</source>
<translation type="unfinished"> WEP (802.1x)</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="155"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="152"/>
<source>WPA &amp; WPA2 Enterprise</source>
<translation type="unfinished">WPA WPA2 </translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="167"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="164"/>
<source>Tunneled TLS</source>
<translation type="unfinished"> TLS</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="168"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="165"/>
<source>Protected EAP (PEAP)</source>
<translation type="unfinished"> EAP</translation>
</message>
<message>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="173"/>
<location filename="../wireless-security/dlgconnhidwifisectunneltls.cpp" line="170"/>
<source>Choose from file</source>
<translation type="unfinished">...</translation>
</message>
@ -1222,7 +1238,7 @@
<name>MainWindow</name>
<message>
<location filename="../mainwindow.ui" line="14"/>
<location filename="../mainwindow.cpp" line="294"/>
<location filename="../mainwindow.cpp" line="313"/>
<source>kylin-nm</source>
<translation></translation>
</message>
@ -1231,14 +1247,14 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="223"/>
<location filename="../mainwindow.cpp" line="317"/>
<location filename="../mainwindow.cpp" line="244"/>
<location filename="../mainwindow.cpp" line="336"/>
<source>Advanced</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="176"/>
<location filename="../mainwindow.cpp" line="1361"/>
<location filename="../mainwindow.cpp" line="197"/>
<location filename="../mainwindow.cpp" line="1417"/>
<source>Ethernet</source>
<translation>线</translation>
</message>
@ -1247,8 +1263,8 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="182"/>
<location filename="../mainwindow.cpp" line="1447"/>
<location filename="../mainwindow.cpp" line="203"/>
<location filename="../mainwindow.cpp" line="1521"/>
<source>Wifi</source>
<translation>线</translation>
</message>
@ -1261,71 +1277,83 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="199"/>
<location filename="../mainwindow.cpp" line="220"/>
<source>HotSpot</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="211"/>
<location filename="../mainwindow.cpp" line="232"/>
<source>FlyMode</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="316"/>
<location filename="../mainwindow.cpp" line="335"/>
<source>Show MainWindow</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="924"/>
<location filename="../mainwindow.cpp" line="1054"/>
<location filename="../mainwindow.cpp" line="1421"/>
<location filename="../mainwindow.cpp" line="1485"/>
<location filename="../mainwindow.cpp" line="2059"/>
<location filename="../mainwindow.cpp" line="2122"/>
<location filename="../mainwindow.cpp" line="2172"/>
<location filename="../mainwindow.cpp" line="951"/>
<location filename="../mainwindow.cpp" line="1091"/>
<location filename="../mainwindow.cpp" line="1489"/>
<location filename="../mainwindow.cpp" line="1562"/>
<location filename="../mainwindow.cpp" line="2139"/>
<location filename="../mainwindow.cpp" line="2201"/>
<location filename="../mainwindow.cpp" line="2255"/>
<source>Not connected</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="926"/>
<location filename="../mainwindow.cpp" line="969"/>
<location filename="../mainwindow.cpp" line="970"/>
<location filename="../mainwindow.cpp" line="1057"/>
<location filename="../mainwindow.cpp" line="1116"/>
<location filename="../mainwindow.cpp" line="1239"/>
<location filename="../mainwindow.cpp" line="1423"/>
<location filename="../mainwindow.cpp" line="1488"/>
<location filename="../mainwindow.cpp" line="2061"/>
<location filename="../mainwindow.cpp" line="2124"/>
<location filename="../mainwindow.cpp" line="2174"/>
<location filename="../mainwindow.cpp" line="953"/>
<location filename="../mainwindow.cpp" line="1000"/>
<location filename="../mainwindow.cpp" line="1001"/>
<location filename="../mainwindow.cpp" line="1094"/>
<location filename="../mainwindow.cpp" line="1157"/>
<location filename="../mainwindow.cpp" line="1283"/>
<location filename="../mainwindow.cpp" line="1491"/>
<location filename="../mainwindow.cpp" line="1565"/>
<location filename="../mainwindow.cpp" line="2141"/>
<location filename="../mainwindow.cpp" line="2203"/>
<location filename="../mainwindow.cpp" line="2257"/>
<source>Disconnected</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="74"/>
<location filename="../mainwindow.cpp" line="898"/>
<location filename="../mainwindow.cpp" line="1407"/>
<location filename="../mainwindow.cpp" line="2045"/>
<location filename="../mainwindow.cpp" line="912"/>
<location filename="../mainwindow.cpp" line="1462"/>
<location filename="../mainwindow.cpp" line="2124"/>
<source>Ethernet Networks</source>
<translation>线</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="99"/>
<location filename="../mainwindow.cpp" line="1025"/>
<location filename="../mainwindow.cpp" line="1469"/>
<location filename="../mainwindow.cpp" line="83"/>
<location filename="../mainwindow.cpp" line="920"/>
<location filename="../mainwindow.cpp" line="1470"/>
<source>Create Lan Net</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="105"/>
<location filename="../mainwindow.cpp" line="1059"/>
<location filename="../mainwindow.cpp" line="1544"/>
<source>Add Hide Network</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="956"/>
<location filename="../mainwindow.cpp" line="1099"/>
<location filename="../mainwindow.cpp" line="129"/>
<source>No usable network in the list</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="985"/>
<location filename="../mainwindow.cpp" line="1138"/>
<source>Connected</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="91"/>
<location filename="../mainwindow.cpp" line="1017"/>
<location filename="../mainwindow.cpp" line="1461"/>
<location filename="../mainwindow.cpp" line="96"/>
<location filename="../mainwindow.cpp" line="1051"/>
<location filename="../mainwindow.cpp" line="1536"/>
<source>Wifi Networks</source>
<translation>线</translation>
</message>
@ -1334,17 +1362,17 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1317"/>
<location filename="../mainwindow.cpp" line="1365"/>
<source>keep wired network switch is on before turning on wireless switch</source>
<translation>线线</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1337"/>
<location filename="../mainwindow.cpp" line="1387"/>
<source>please insert the wireless network adapter</source>
<translation>线</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1391"/>
<location filename="../mainwindow.cpp" line="1446"/>
<source>Abnormal connection exist, program will delete it</source>
<translation></translation>
</message>
@ -1357,17 +1385,17 @@
<translation type="vanished"> Wi-Fi列表</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1560"/>
<location filename="../mainwindow.cpp" line="1637"/>
<source>Conn Ethernet Success</source>
<translation>线</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1571"/>
<location filename="../mainwindow.cpp" line="1648"/>
<source>Conn Ethernet Fail</source>
<translation>线</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1691"/>
<location filename="../mainwindow.cpp" line="1768"/>
<source>Conn Wifi Success</source>
<translation>线</translation>
</message>
@ -1388,26 +1416,26 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../oneconnform.cpp" line="39"/>
<location filename="../oneconnform.cpp" line="40"/>
<location filename="../oneconnform.cpp" line="41"/>
<location filename="../oneconnform.cpp" line="43"/>
<location filename="../oneconnform.cpp" line="32"/>
<location filename="../oneconnform.cpp" line="33"/>
<location filename="../oneconnform.cpp" line="34"/>
<location filename="../oneconnform.cpp" line="36"/>
<source>Connect</source>
<translation></translation>
</message>
<message>
<location filename="../oneconnform.cpp" line="42"/>
<location filename="../oneconnform.cpp" line="35"/>
<source>Disconnect</source>
<translation></translation>
</message>
<message>
<location filename="../oneconnform.cpp" line="44"/>
<location filename="../oneconnform.cpp" line="258"/>
<location filename="../oneconnform.cpp" line="37"/>
<location filename="../oneconnform.cpp" line="264"/>
<source>Input Password...</source>
<translation type="unfinished">...</translation>
</message>
<message>
<location filename="../oneconnform.cpp" line="324"/>
<location filename="../oneconnform.cpp" line="330"/>
<source>Connect to Hidden Wi-Fi Network</source>
<translation> Wi-Fi </translation>
</message>
@ -1420,17 +1448,16 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../oneconnform.cpp" line="334"/>
<source>Rate</source>
<translation></translation>
<translation type="vanished"></translation>
</message>
<message>
<location filename="../oneconnform.cpp" line="402"/>
<location filename="../oneconnform.cpp" line="406"/>
<source>None</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../oneconnform.cpp" line="571"/>
<location filename="../oneconnform.cpp" line="619"/>
<source>Conn Wifi Failed</source>
<translation>线</translation>
</message>
@ -1458,8 +1485,8 @@
<translation></translation>
</message>
<message>
<location filename="../onelancform.cpp" line="227"/>
<location filename="../onelancform.cpp" line="231"/>
<location filename="../onelancform.cpp" line="237"/>
<location filename="../onelancform.cpp" line="241"/>
<source>no configuration</source>
<translation type="unfinished"></translation>
</message>

View File

@ -52,7 +52,7 @@ DlgConnHidWifi::DlgConnHidWifi(int type, MainWindow *mainWindow, QWidget *parent
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxConn->setView(new QListView());
ui->leNetName->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leNetName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->cbxSecurity->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0px;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"

View File

@ -47,9 +47,9 @@ DlgConnHidWifiLeap::DlgConnHidWifiLeap(QWidget *parent) :
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxConn->setView(new QListView());
ui->leNetName->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leUserName->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->lePassword->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leNetName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leUserName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->lePassword->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->cbxSecurity->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0px;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"

View File

@ -54,7 +54,7 @@ DlgConnHidWifiSecFast::DlgConnHidWifiSecFast(int type, QWidget *parent) :
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxConn->setView(new QListView());
ui->leNetName->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leNetName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->cbxSecurity->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0px;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
@ -69,7 +69,7 @@ DlgConnHidWifiSecFast::DlgConnHidWifiSecFast(int type, QWidget *parent) :
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxAuth->setView(new QListView());
ui->leAnonyId->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leAnonyId->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->cbxAutoPCA->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0px;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
@ -77,7 +77,7 @@ DlgConnHidWifiSecFast::DlgConnHidWifiSecFast(int type, QWidget *parent) :
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxAutoPCA->setView(new QListView());
ui->lePCAfile->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->lePCAfile->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->cbxInnerAuth->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0px;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
@ -85,8 +85,8 @@ DlgConnHidWifiSecFast::DlgConnHidWifiSecFast(int type, QWidget *parent) :
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxInnerAuth->setView(new QListView());
ui->leUserName->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->lePassword->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leUserName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->lePassword->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->checkBoxPwd->setStyleSheet("QCheckBox {border:none;background:transparent;}"
"QCheckBox::indicator {width: 18px; height: 9px;}"
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"

View File

@ -50,7 +50,7 @@ DlgConnHidWifiSecLeap::DlgConnHidWifiSecLeap(int type, QWidget *parent) :
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxConn->setView(new QListView());
ui->leNetName->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leNetName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->cbxSecurity->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0px;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
@ -65,8 +65,8 @@ DlgConnHidWifiSecLeap::DlgConnHidWifiSecLeap(int type, QWidget *parent) :
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxAuth->setView(new QListView());
ui->leUserName->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->lePassword->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leUserName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->lePassword->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->checkBox->setStyleSheet("QCheckBox {border:none;background:transparent;}"
"QCheckBox::indicator {width: 18px; height: 9px;}"
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"

View File

@ -56,7 +56,7 @@ DlgConnHidWifiSecPeap::DlgConnHidWifiSecPeap(int type, QWidget *parent) :
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxConn->setView(new QListView());
ui->leNetName->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leNetName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->cbxSecurity->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0px;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
@ -64,9 +64,6 @@ DlgConnHidWifiSecPeap::DlgConnHidWifiSecPeap(int type, QWidget *parent) :
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxSecurity->setView(new QListView());
ui->cbxAuth->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,1);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}");
ui->cbxAuth->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0px;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
@ -74,8 +71,8 @@ DlgConnHidWifiSecPeap::DlgConnHidWifiSecPeap(int type, QWidget *parent) :
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxAuth->setView(new QListView());
ui->leAnonyId->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leDomain->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leAnonyId->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leDomain->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->cbxCA->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0px;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
@ -83,15 +80,12 @@ DlgConnHidWifiSecPeap::DlgConnHidWifiSecPeap(int type, QWidget *parent) :
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxCA->setView(new QListView());
ui->leCaPwd->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leCaPwd->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->checkBoxPwd->setStyleSheet("QCheckBox {border:none;background:transparent;}"
"QCheckBox::indicator {width: 18px; height: 9px;}"
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"
"QCheckBox::indicator:unchecked {image: url(:/res/h/hide-pwd.png);}");
ui->checkBoxCA->setStyleSheet("QCheckBox{color:rgba(255,255,255,0.97);background-color:transparent;}");
ui->cbxPEAPver->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,1);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}");
ui->cbxPEAPver->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0px;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
@ -106,8 +100,8 @@ DlgConnHidWifiSecPeap::DlgConnHidWifiSecPeap(int type, QWidget *parent) :
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxInnerAuth->setView(new QListView());
ui->leUserName->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->lePassword->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leUserName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->lePassword->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->checkBoxPwdSec->setStyleSheet("QCheckBox {border:none;background:transparent;}"
"QCheckBox::indicator {width: 18px; height: 9px;}"
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"

View File

@ -50,7 +50,7 @@ DlgConnHidWifiSecPwd::DlgConnHidWifiSecPwd(int type, QWidget *parent) :
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxConn->setView(new QListView());
ui->leNetName->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leNetName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->cbxSecurity->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0px;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
@ -58,9 +58,6 @@ DlgConnHidWifiSecPwd::DlgConnHidWifiSecPwd(int type, QWidget *parent) :
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxSecurity->setView(new QListView());
ui->cbxAuth->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,1);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}");
ui->cbxAuth->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0px;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
@ -68,8 +65,8 @@ DlgConnHidWifiSecPwd::DlgConnHidWifiSecPwd(int type, QWidget *parent) :
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxAuth->setView(new QListView());
ui->leUserName->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->lePassword->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leUserName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->lePassword->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->checkBox->setStyleSheet("QCheckBox {border:none;background:transparent;}"
"QCheckBox::indicator {width: 18px; height: 9px;}"
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"

View File

@ -55,7 +55,7 @@ DlgConnHidWifiSecTls::DlgConnHidWifiSecTls(int type, QWidget *parent) :
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxConn->setView(new QListView());
ui->leNetName->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leNetName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->cbxSecurity->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0px;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
@ -70,8 +70,8 @@ DlgConnHidWifiSecTls::DlgConnHidWifiSecTls(int type, QWidget *parent) :
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxAuth->setView(new QListView());
ui->leIdentity->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leDomain->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leIdentity->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leDomain->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->cbxCA->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0px;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
@ -79,7 +79,7 @@ DlgConnHidWifiSecTls::DlgConnHidWifiSecTls(int type, QWidget *parent) :
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxCA->setView(new QListView());
ui->leCaPwd->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leCaPwd->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->checkBoxPwd->setStyleSheet("QCheckBox {border:none;background:transparent;}"
"QCheckBox::indicator {width: 18px; height: 9px;}"
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"
@ -92,7 +92,7 @@ DlgConnHidWifiSecTls::DlgConnHidWifiSecTls(int type, QWidget *parent) :
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxUserCertify->setView(new QListView());
ui->leUserCertifyPwd->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leUserCertifyPwd->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->cbxUserPriKey->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0px;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
@ -100,7 +100,7 @@ DlgConnHidWifiSecTls::DlgConnHidWifiSecTls(int type, QWidget *parent) :
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxUserPriKey->setView(new QListView());
ui->leUserKeyPwd->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leUserKeyPwd->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->checkBoxPwdSec->setStyleSheet("QCheckBox {border:none;background:transparent;}"
"QCheckBox::indicator {width: 18px; height: 9px;}"
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"

View File

@ -55,7 +55,7 @@ DlgConnHidWifiSecTunnelTLS::DlgConnHidWifiSecTunnelTLS(int type, QWidget *parent
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxConn->setView(new QListView());
ui->leNetName->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leNetName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->cbxSecurity->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0px;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
@ -63,9 +63,6 @@ DlgConnHidWifiSecTunnelTLS::DlgConnHidWifiSecTunnelTLS(int type, QWidget *parent
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxSecurity->setView(new QListView());
ui->cbxAuth->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,1);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}");
ui->cbxAuth->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0px;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
@ -73,8 +70,8 @@ DlgConnHidWifiSecTunnelTLS::DlgConnHidWifiSecTunnelTLS(int type, QWidget *parent
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxAuth->setView(new QListView());
ui->leAnonyId->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leDomain->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leAnonyId->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leDomain->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->cbxCA->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0px;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"
@ -82,7 +79,7 @@ DlgConnHidWifiSecTunnelTLS::DlgConnHidWifiSecTunnelTLS(int type, QWidget *parent
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxCA->setView(new QListView());
ui->leCaPwd->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leCaPwd->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->checkBoxPwd->setStyleSheet("QCheckBox {border:none;background:transparent;}"
"QCheckBox::indicator {width: 18px; height: 9px;}"
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"
@ -95,8 +92,8 @@ DlgConnHidWifiSecTunnelTLS::DlgConnHidWifiSecTunnelTLS(int type, QWidget *parent
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxInnerAuth->setView(new QListView());
ui->leUserName->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->lePassword->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leUserName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->lePassword->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->checkBoxPwdSec->setStyleSheet("QCheckBox {border:none;background:transparent;}"
"QCheckBox::indicator {width: 18px; height: 9px;}"
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"

View File

@ -49,8 +49,8 @@ DlgConnHidWifiWep::DlgConnHidWifiWep(int type, QWidget *parent) :
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxConn->setView(new QListView());
ui->leNetName->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leKey->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leNetName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leKey->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->checkBoxPwd->setStyleSheet("QCheckBox {border:none;background:transparent;}"
"QCheckBox::indicator {width: 18px; height: 9px;}"
"QCheckBox::indicator:checked {image: url(:/res/h/show-pwd.png);}"

View File

@ -52,8 +52,8 @@ DlgConnHidWifiWpa::DlgConnHidWifiWpa(int type, MainWindow *mainWindow, QWidget *
"QComboBox QAbstractItemView::item{font-size:13px;color:rgba(255,255,255,0.91);height: 32px;background-color: rgba(19,19,20,0.95);}"
"QComboBox QAbstractItemView::item:selected{font-size:13px;color:rgba(0,0,0,0.91);background-color:lightgray;}");
ui->cbxConn->setView(new QListView());
ui->leNetName->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->lePassword->setStyleSheet("QLineEdit{color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->leNetName->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->lePassword->setStyleSheet("QLineEdit{padding-left:20px;color:rgba(255,255,255,0.97);background:rgba(255,255,255,0.08);}");
ui->cbxSecurity->setStyleSheet("QComboBox{padding-left:20px;font-size:13px;color:rgba(255,255,255,0.91);border:1px solid rgba(255, 255, 255, 0.05);background:rgba(255,255,255,0.08);}"
"QComboBox::drop-down{border:0px;width:30px;}"
"QComboBox::down-arrow{image:url(:/res/g/down_arrow.png);}"