mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-07-13 13:55:51 +00:00
release 1.1.0
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.0" language="en">
|
||||
<TS version="2.1" language="en">
|
||||
<context>
|
||||
<name>BridgeWidget</name>
|
||||
<message>
|
||||
@ -133,7 +133,7 @@
|
||||
<source>Skip no carrier</source>
|
||||
<translation>Skip no carrier</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<message>
|
||||
<source>Set to ‘yes’ to use 802.1x authentication</source>
|
||||
<translation>Set to ‘yes’ to use 802.1x authentication</translation>
|
||||
</message>
|
||||
@ -268,7 +268,7 @@
|
||||
<source>A command that is executed before a connection is brought down</source>
|
||||
<translation>A command that is executed before a connection is brought down</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<message>
|
||||
<source>Set to ‘yes’ to force connecting even if the interface is up</source>
|
||||
<translation>Set to ‘yes’ to force connecting even if the interface is up</translation>
|
||||
</message>
|
||||
@ -319,7 +319,7 @@
|
||||
<source>Add</source>
|
||||
<translation>Add</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<message>
|
||||
<source>An array of IP addresses suffixed with ‘/<netmask>’</source>
|
||||
<translation>An array of IP addresses suffixed with ‘/<netmask>’</translation>
|
||||
</message>
|
||||
@ -399,7 +399,7 @@
|
||||
<source>Timeout DAD</source>
|
||||
<translation>Timeout DAD</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<message>
|
||||
<source>Set to ‘yes’ to release the DHCP lease when the profile is stopped</source>
|
||||
<translation>Set to ‘yes’ to release the DHCP lease when the profile is stopped</translation>
|
||||
</message>
|
||||
@ -459,7 +459,7 @@
|
||||
<source>DNS domain</source>
|
||||
<translation>DNS domain</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<message>
|
||||
<source>A ‘domain’ line for /etc/resolv.conf</source>
|
||||
<translation>A ‘domain’ line for /etc/resolv.conf</translation>
|
||||
</message>
|
||||
@ -467,7 +467,7 @@
|
||||
<source>DNS search</source>
|
||||
<translation>DNS search</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<message>
|
||||
<source>A ‘search’ line for /etc/resolv.conf</source>
|
||||
<translation>A ‘search’ line for /etc/resolv.conf</translation>
|
||||
</message>
|
||||
@ -475,11 +475,11 @@
|
||||
<source>DNS options</source>
|
||||
<translation>DNS options</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<message>
|
||||
<source>An array of ‘options’ lines for /etc/resolv.conf</source>
|
||||
<translation>An array of ‘options’ lines for /etc/resolv.conf</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<message>
|
||||
<source>Maximum time, in seconds, to wait for IPv6’s Duplicate Address Detection to succeed</source>
|
||||
<translation>Maximum time, in seconds, to wait for IPv6’s Duplicate Address Detection to succeed</translation>
|
||||
</message>
|
||||
@ -879,7 +879,7 @@
|
||||
<source>Idle timeout</source>
|
||||
<translation>Idle timeout</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<message>
|
||||
<source>This option specifies the idle time (in seconds) after which ‘pppd’ should disconnect</source>
|
||||
<translation>This option specifies the idle time (in seconds) after which ‘pppd’ should disconnect</translation>
|
||||
</message>
|
||||
@ -919,7 +919,7 @@
|
||||
<source>LCP echo interval</source>
|
||||
<translation>LCP echo interval</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<message>
|
||||
<source>These options override default LCP parameters from ‘/etc/ppp/options’</source>
|
||||
<translation>These options override default LCP parameters from ‘/etc/ppp/options’</translation>
|
||||
</message>
|
||||
@ -1236,7 +1236,7 @@
|
||||
<source>tap</source>
|
||||
<translation>tap</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<message>
|
||||
<source>Either ‘tun’, or ‘tap’</source>
|
||||
<translation>Either ‘tun’, or ‘tap’</translation>
|
||||
</message>
|
||||
@ -1450,5 +1450,9 @@
|
||||
<source>Exclude auto</source>
|
||||
<translation>Exclude auto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Frequency</source>
|
||||
<translation>Frequency</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.0" language="ru">
|
||||
<TS version="2.1" language="ru">
|
||||
<context>
|
||||
<name>BridgeWidget</name>
|
||||
<message>
|
||||
@ -133,7 +133,7 @@
|
||||
<source>Skip no carrier</source>
|
||||
<translation>Пропустить отсутствие оператора</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<message>
|
||||
<source>Set to ‘yes’ to use 802.1x authentication</source>
|
||||
<translation>Установить "да", чтобы использовать 802.1x авторизацию</translation>
|
||||
</message>
|
||||
@ -268,7 +268,7 @@
|
||||
<source>A command that is executed before a connection is brought down</source>
|
||||
<translation>Команда, которая будет запущена перед отключением</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<message>
|
||||
<source>Set to ‘yes’ to force connecting even if the interface is up</source>
|
||||
<translation>Установить "да", чтобы запустить соединение, даже если интерфейс уже поднят</translation>
|
||||
</message>
|
||||
@ -319,7 +319,7 @@
|
||||
<source>Add</source>
|
||||
<translation>Добавить</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<message>
|
||||
<source>An array of IP addresses suffixed with ‘/<netmask>’</source>
|
||||
<translation>Массив IP адресов с суффиксом ‘/<netmask>’</translation>
|
||||
</message>
|
||||
@ -399,7 +399,7 @@
|
||||
<source>Timeout DAD</source>
|
||||
<translation>Таймаут DAD</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<message>
|
||||
<source>Set to ‘yes’ to release the DHCP lease when the profile is stopped</source>
|
||||
<translation>Установить "да", чтобы оставить выделенный DHCP, когда профиль отключен</translation>
|
||||
</message>
|
||||
@ -459,7 +459,7 @@
|
||||
<source>DNS domain</source>
|
||||
<translation>DNS домен</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<message>
|
||||
<source>A ‘domain’ line for /etc/resolv.conf</source>
|
||||
<translation>Строка ‘domain’ в /etc/resolv.conf</translation>
|
||||
</message>
|
||||
@ -467,7 +467,7 @@
|
||||
<source>DNS search</source>
|
||||
<translation>Поиск DNS</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<message>
|
||||
<source>A ‘search’ line for /etc/resolv.conf</source>
|
||||
<translation>Строка ‘search’ в /etc/resolv.conf</translation>
|
||||
</message>
|
||||
@ -475,11 +475,11 @@
|
||||
<source>DNS options</source>
|
||||
<translation>Опции DNS</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<message>
|
||||
<source>An array of ‘options’ lines for /etc/resolv.conf</source>
|
||||
<translation>Массив строк ‘options’ в /etc/resolv.conf</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<message>
|
||||
<source>Maximum time, in seconds, to wait for IPv6’s Duplicate Address Detection to succeed</source>
|
||||
<translation>Максимальное время в секундах для ожидания выполнения детектирования дубликации IPv6 адресов</translation>
|
||||
</message>
|
||||
@ -879,7 +879,7 @@
|
||||
<source>Idle timeout</source>
|
||||
<translation>Таймаут простоя</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<message>
|
||||
<source>This option specifies the idle time (in seconds) after which ‘pppd’ should disconnect</source>
|
||||
<translation>Указывает таймаут простоя в секундах, после чего 'pppd' будет отключен</translation>
|
||||
</message>
|
||||
@ -919,7 +919,7 @@
|
||||
<source>LCP echo interval</source>
|
||||
<translation>LCP echo интервал</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<message>
|
||||
<source>These options override default LCP parameters from ‘/etc/ppp/options’</source>
|
||||
<translation>Эти опции заместят стандартные опции LCP из ‘/etc/ppp/options’</translation>
|
||||
</message>
|
||||
@ -1236,7 +1236,7 @@
|
||||
<source>tap</source>
|
||||
<translation>tap</translation>
|
||||
</message>
|
||||
<message utf8="true">
|
||||
<message>
|
||||
<source>Either ‘tun’, or ‘tap’</source>
|
||||
<translation>‘tun’ или ‘tap’</translation>
|
||||
</message>
|
||||
@ -1450,5 +1450,9 @@
|
||||
<source>Exclude auto</source>
|
||||
<translation>Исключить профиль</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Frequency</source>
|
||||
<translation>Частота</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
@ -190,16 +190,7 @@ bool Netctl::isProfileActive(const QString profile)
|
||||
|
||||
bool Netctl::isProfileEnabled(const QString profile)
|
||||
{
|
||||
bool status = false;
|
||||
QString cmdOutput = getNetctlOutput(false, QString("status"), profile);
|
||||
if (!cmdOutput.isEmpty()) {
|
||||
QStringList profileStatus = cmdOutput.split(QString("\n"), QString::SkipEmptyParts);
|
||||
for (int i=0; i<profileStatus.count(); i++)
|
||||
if (profileStatus[i].split(QString(" "), QString::SkipEmptyParts)[0] == QString("Loaded:"))
|
||||
if (profileStatus[i].contains(QString("enabled")))
|
||||
status = true;
|
||||
}
|
||||
return status;
|
||||
return netctlCall(false, QString("is-enabled"), profile);
|
||||
}
|
||||
|
||||
|
||||
|
@ -56,6 +56,7 @@ void WirelessWidget::clear()
|
||||
ui->spinBox_freq->setValue(2412);
|
||||
ui->listWidget_freq->setCurrentRow(-1);
|
||||
ui->listWidget_freq->clear();
|
||||
ui->spinBox_frequency->setValue(2000);
|
||||
ui->spinBox_priority->setValue(0);
|
||||
ui->lineEdit_country->clear();
|
||||
ui->lineEdit_wpaGroup->setText(QString("wheel"));
|
||||
@ -240,6 +241,8 @@ QMap<QString, QString> WirelessWidget::getSettings()
|
||||
freqs.append(ui->listWidget_freq->item(i)->text());
|
||||
wirelessSettings[QString("ScanFrequencies")] = freqs.join(QString(" "));
|
||||
}
|
||||
if (ui->spinBox_frequency->value() != 2000)
|
||||
wirelessSettings[QString("Frequency")] = QString::number(ui->spinBox_frequency->value());
|
||||
if (ui->spinBox_priority->value() != 0)
|
||||
wirelessSettings[QString("Priority")] = QString::number(ui->spinBox_priority->value());
|
||||
if (!ui->lineEdit_country->text().isEmpty())
|
||||
@ -324,6 +327,8 @@ void WirelessWidget::setSettings(const QMap<QString, QString> settings)
|
||||
ui->checkBox_adhoc->setCheckState(Qt::Checked);
|
||||
if (wirelessSettings.contains(QString("ScanFrequencies")))
|
||||
ui->listWidget_freq->addItems(wirelessSettings[QString("ScanFrequencies")].split(QString("\n")));
|
||||
if (wirelessSettings.contains(QString("Frequency")))
|
||||
ui->spinBox_frequency->setValue(wirelessSettings[QString("Frequency")].toInt());
|
||||
if (wirelessSettings.contains(QString("Priority")))
|
||||
ui->spinBox_priority->setValue(wirelessSettings[QString("Priority")].toInt());
|
||||
if (wirelessSettings.contains(QString("Country")))
|
||||
|
@ -305,6 +305,36 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_frequency">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_frequency">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>150</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Frequency</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QSpinBox" name="spinBox_frequency">
|
||||
<property name="toolTip">
|
||||
<string>Priority group for the network</string>
|
||||
</property>
|
||||
<property name="minimum">
|
||||
<number>2000</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>6000</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="layout_priority">
|
||||
<item>
|
||||
@ -525,6 +555,7 @@
|
||||
<tabstop>spinBox_freq</tabstop>
|
||||
<tabstop>pushButton_freq</tabstop>
|
||||
<tabstop>listWidget_freq</tabstop>
|
||||
<tabstop>spinBox_frequency</tabstop>
|
||||
<tabstop>spinBox_priority</tabstop>
|
||||
<tabstop>lineEdit_country</tabstop>
|
||||
<tabstop>lineEdit_wpaGroup</tabstop>
|
||||
|
Reference in New Issue
Block a user