10 Commits

Author SHA1 Message Date
8dd48fa7cc release 1.3.3
fix #19
2014-10-19 17:50:24 +04:00
287405f81a try fix #19 2014-10-18 01:17:15 +04:00
fa27b80060 add some w\o 2014-10-17 13:52:46 +04:00
c2c14c4911 Merge pull request #18 from nosada/translate_to_ja
Fix translation on plasmoid
2014-10-13 11:58:23 +04:00
e2deb8751d fix translation at plasmoid 2014-10-13 16:43:37 +09:00
1fe7d6e21f change translation at plasmoid (again) 2014-10-13 16:43:37 +09:00
e68be6d4f1 change translation at plasmoid 2014-10-13 16:43:37 +09:00
45d3a42754 update tasks 2014-10-09 22:58:13 +04:00
cb0410a182 update pkgbuild #17 2014-09-27 18:25:41 +04:00
9d349461cf release 1.3.2 2014-09-22 00:56:12 +04:00
7 changed files with 82 additions and 28 deletions

View File

@ -1,3 +1,20 @@
Ver.1.3.3
---------
* all
* update Japanese translation
* dataengine
- fix #19
***
Ver.1.3.2
---------
* all
+ add Japanese translation (thanks to @nosada)
***
Ver.1.3.1 Ver.1.3.1
--------- ---------
* gui: * gui:

View File

@ -4,7 +4,7 @@ pkgbase=netctl-gui
pkgname=('libnetctlgui' 'netctlgui-helper' 'netctl-gui' pkgname=('libnetctlgui' 'netctlgui-helper' 'netctl-gui'
'libnetctlgui-qt4' 'netctlgui-helper-qt4' 'netctl-gui-qt4' 'libnetctlgui-qt4' 'netctlgui-helper-qt4' 'netctl-gui-qt4'
'kdeplasma-applets-netctl-gui') 'kdeplasma-applets-netctl-gui')
pkgver=1.3.1 pkgver=1.3.3
pkgrel=2 pkgrel=2
pkgdesc="Qt4/Qt5 GUI for netctl. Also provides a widget for KDE" pkgdesc="Qt4/Qt5 GUI for netctl. Also provides a widget for KDE"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
@ -12,7 +12,7 @@ url="http://arcanis.name/projects/netctl-gui"
license=('GPL3') license=('GPL3')
makedepends=('automoc4' 'cmake' 'kdelibs' 'qt5-base' 'qt5-tools') makedepends=('automoc4' 'cmake' 'kdelibs' 'qt5-base' 'qt5-tools')
source=("https://github.com/arcan1s/netctl-gui/releases/download/V.${pkgver}/${pkgbase}-${pkgver}-src.tar.xz") source=("https://github.com/arcan1s/netctl-gui/releases/download/V.${pkgver}/${pkgbase}-${pkgver}-src.tar.xz")
md5sums=('d57bf3773f6cd9ead91c2669a02360fb') md5sums=('9ba672ef33e9962ccc04fc4de75fad68')
prepare() { prepare() {
@ -106,6 +106,8 @@ package_netctl-gui() {
cd "${srcdir}/build-qt5/gui" cd "${srcdir}/build-qt5/gui"
make DESTDIR="${pkgdir}" install make DESTDIR="${pkgdir}" install
cd "${srcdir}/build-qt5/resources"
make DESTDIR="${pkgdir}" install
} }
@ -149,4 +151,6 @@ package_netctl-gui-qt4() {
cd "${srcdir}/build-qt4/gui" cd "${srcdir}/build-qt4/gui"
make DESTDIR="${pkgdir}" install make DESTDIR="${pkgdir}" install
cd "${srcdir}/build-qt4/resources"
make DESTDIR="${pkgdir}" install
} }

View File

@ -11,7 +11,7 @@ set (PROJECT_CONTACT "esalexeev@gmail.com")
set (PROJECT_LICENSE "GPLv3") set (PROJECT_LICENSE "GPLv3")
set (PROJECT_VERSION_MAJOR 1) set (PROJECT_VERSION_MAJOR 1)
set (PROJECT_VERSION_MINOR 3) set (PROJECT_VERSION_MINOR 3)
set (PROJECT_VERSION_PATCH 2) set (PROJECT_VERSION_PATCH 3)
set (PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}) set (PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
string (TIMESTAMP CURRENT_DATE "%Y-%m-%d %H:%M" UTC) string (TIMESTAMP CURRENT_DATE "%Y-%m-%d %H:%M" UTC)
string (TIMESTAMP CURRENT_YEAR "%Y") string (TIMESTAMP CURRENT_YEAR "%Y")

View File

@ -46,6 +46,7 @@ Netctl::Netctl(QObject *parent, const QVariantList &args)
setMinimumPollingInterval(333); setMinimumPollingInterval(333);
readConfiguration(); readConfiguration();
initSources();
} }
@ -185,6 +186,8 @@ QString Netctl::getExtIp(const QString cmd)
if (debug) qDebug() << PDEBUG; if (debug) qDebug() << PDEBUG;
if (debug) qDebug() << PDEBUG << ":" << "Cmd" << cmd; if (debug) qDebug() << PDEBUG << ":" << "Cmd" << cmd;
// test network connection
if (!isNetworkActive()) return QString("N\\A");
TaskResult process = runTask(cmd); TaskResult process = runTask(cmd);
if (debug) qDebug() << PDEBUG << ":" << "Cmd returns" << process.exitCode; if (debug) qDebug() << PDEBUG << ":" << "Cmd returns" << process.exitCode;
if (process.exitCode != 0) if (process.exitCode != 0)
@ -317,6 +320,32 @@ QString Netctl::getStatus(const QString cmdNetctl, const QString cmdNetctlAuto)
} }
void Netctl::initSources()
{
if (debug) qDebug() << PDEBUG;
QStringList sourcesList = sources();
for (int i=0; i<sourcesList.count(); i++)
setData(sourcesList[i], QString("value"), QString("N\\A"));
}
bool Netctl::isNetworkActive()
{
if (debug) qDebug() << PDEBUG;
QString cmd = QString("ping -c 1 google.com");
if (debug) qDebug() << PDEBUG << ":" << "Cmd" << cmd;
TaskResult process = runTask(cmd);
if (debug) qDebug() << PDEBUG << ":" << "Cmd returns" << process.exitCode;
if (process.exitCode == 0)
return true;
else
return false;
}
bool Netctl::updateSourceEvent(const QString &source) bool Netctl::updateSourceEvent(const QString &source)
{ {
if (debug) qDebug() << PDEBUG; if (debug) qDebug() << PDEBUG;

View File

@ -37,6 +37,10 @@ public:
QStringList getProfileList(const QString cmdNetctl, const QString cmdNetctlAuto); QStringList getProfileList(const QString cmdNetctl, const QString cmdNetctlAuto);
QStringList getProfileStringStatus(const QString cmdNetctl, const QString cmdNetctlAuto); QStringList getProfileStringStatus(const QString cmdNetctl, const QString cmdNetctlAuto);
QString getStatus(const QString cmdNetctl, const QString cmdNetctlAuto); QString getStatus(const QString cmdNetctl, const QString cmdNetctlAuto);
bool isNetworkActive();
public slots:
void initSources();
protected: protected:
bool sourceRequestEvent(const QString &name); bool sourceRequestEvent(const QString &name);

View File

@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/arcan1s/netctl-gui/issues\n" "Report-Msgid-Bugs-To: https://github.com/arcan1s/netctl-gui/issues\n"
"POT-Creation-Date: 2014-08-24 16:44+0400\n" "POT-Creation-Date: 2014-08-24 16:44+0400\n"
"PO-Revision-Date: 2014-09-19 13:49+0900\n" "PO-Revision-Date: 2014-10-13 16:37+0900\n"
"Last-Translator: NOGISAKA Sadata <ngsksdt@gmail.com>\n" "Last-Translator: NOGISAKA Sadata <ngsksdt@gmail.com>\n"
"Language-Team: Japanese <kde-i18n-doc@kde.org>\n" "Language-Team: Japanese <kde-i18n-doc@kde.org>\n"
"Language: ja\n" "Language: ja\n"
@ -27,27 +27,27 @@ msgstr "プロファイル %1 を有効にする"
#: netctl.cpp:294 #: netctl.cpp:294
msgid "Restart profile %1" msgid "Restart profile %1"
msgstr "プロファイル %1 を再開する" msgstr "プロファイル %1 の利用を再開"
#: netctl.cpp:315 #: netctl.cpp:315
msgid "Start profile %1" msgid "Start profile %1"
msgstr "プロファイル %1 を開始する" msgstr "プロファイル %1 の利用を開始"
#: netctl.cpp:341 #: netctl.cpp:341
msgid "Stop profile %1" msgid "Stop profile %1"
msgstr "プロファイル %1 を停止する" msgstr "プロファイル %1 の利用を停止する"
#: netctl.cpp:361 netctl.cpp:499 #: netctl.cpp:361 netctl.cpp:499
msgid "Stop all profiles" msgid "Stop all profiles"
msgstr "全てのプロファイルを停止する" msgstr "全てのプロファイルの利用を停止する"
#: netctl.cpp:381 #: netctl.cpp:381
msgid "Switch to profile %1" msgid "Switch to profile %1"
msgstr "プロファイル %1 へ切り替える" msgstr "プロファイル %1 へ切り替える"
#: netctl.cpp:454 #: netctl.cpp:454
msgid "Start another profile" msgid "Start another profile"
msgstr "他のプロファイルを起動する" msgstr "他のプロファイルの利用を開始"
#: netctl.cpp:455 #: netctl.cpp:455
msgid "Stop %1" msgid "Stop %1"
@ -55,7 +55,7 @@ msgstr "%1 を停止"
#: netctl.cpp:456 #: netctl.cpp:456
msgid "Restart %1" msgid "Restart %1"
msgstr "%1 を再開する" msgstr "%1 を再開"
#: netctl.cpp:458 #: netctl.cpp:458
msgid "Disable %1" msgid "Disable %1"
@ -67,23 +67,23 @@ msgstr "%1 を有効にする"
#: netctl.cpp:463 netctl.cpp:486 #: netctl.cpp:463 netctl.cpp:486
msgid "Start profile" msgid "Start profile"
msgstr "このプロファイルを開始する" msgstr "プロファイルの利用を開始"
#: netctl.cpp:494 #: netctl.cpp:494
msgid "Stop profile" msgid "Stop profile"
msgstr "このプロファイルを停止する" msgstr "プロファイルの利用を停止する"
#: netctl.cpp:504 #: netctl.cpp:504
msgid "Switch to profile" msgid "Switch to profile"
msgstr "このプロファイル切り替える" msgstr "プロファイル切り替える"
#: netctl.cpp:512 #: netctl.cpp:512
msgid "Restart profile" msgid "Restart profile"
msgstr "このプロファイルを再開する" msgstr "プロファイルの利用を再開"
#: netctl.cpp:517 #: netctl.cpp:517
msgid "Enable profile" msgid "Enable profile"
msgstr "このプロファイルを有効にする" msgstr "プロファイルを有効にする"
#: netctl.cpp:521 #: netctl.cpp:521
msgid "Show netctl-gui" msgid "Show netctl-gui"
@ -95,19 +95,19 @@ msgstr "WiFi メニューを表示"
#: netctl.cpp:553 #: netctl.cpp:553
msgid "Start GUI" msgid "Start GUI"
msgstr "GUI を開始する" msgstr "GUI を開始"
#: netctl.cpp:564 #: netctl.cpp:564
msgid "Start WiFi menu" msgid "Start WiFi menu"
msgstr "WiFi メニューを開始する" msgstr "WiFi メニューを開始"
#: netctl.cpp:604 #: netctl.cpp:604
msgid "Network is up" msgid "Network is up"
msgstr "ネットワーク有効" msgstr "ネットワーク有効です"
#: netctl.cpp:608 #: netctl.cpp:608
msgid "Network is down" msgid "Network is down"
msgstr "ネットワーク無効" msgstr "ネットワーク無効です"
#: netctl.cpp:798 #: netctl.cpp:798
msgid "" msgid ""
@ -139,7 +139,7 @@ msgstr "バグトラッカ"
#: netctl.cpp:804 #: netctl.cpp:804
msgid "Translation issue" msgid "Translation issue"
msgstr "翻訳についての issue" msgstr "翻訳に関する issue"
#: netctl.cpp:805 #: netctl.cpp:805
msgid "AUR packages" msgid "AUR packages"
@ -147,7 +147,7 @@ msgstr "AUR パッケージ"
#: netctl.cpp:807 #: netctl.cpp:807
msgid "This software is licensed under %1" msgid "This software is licensed under %1"
msgstr "このソフトウェアは %1 の下で利用を許可されます" msgstr "このソフトウェアは %1 の下で許諾されます"
#: netctl.cpp:815 #: netctl.cpp:815
msgid "Translators: %1" msgid "Translators: %1"
@ -177,7 +177,7 @@ msgstr "概要"
#. i18n: ectx: property (text), widget (QLabel, label_inactiveIcon) #. i18n: ectx: property (text), widget (QLabel, label_inactiveIcon)
#: po/rc.cpp:3 rc.cpp:3 #: po/rc.cpp:3 rc.cpp:3
msgid "Inactive icon" msgid "Inactive icon"
msgstr "非活性化時のアイコン" msgstr "非アクティブ時のアイコン"
#. i18n: file: appearance.ui:63 #. i18n: file: appearance.ui:63
#. i18n: ectx: property (text), widget (QPushButton, pushButton_inactiveIcon) #. i18n: ectx: property (text), widget (QPushButton, pushButton_inactiveIcon)
@ -233,7 +233,7 @@ msgstr "非活性化時のアイコン"
#: rc.cpp:66 rc.cpp:72 rc.cpp:81 rc.cpp:87 rc.cpp:93 rc.cpp:99 rc.cpp:105 #: rc.cpp:66 rc.cpp:72 rc.cpp:81 rc.cpp:87 rc.cpp:93 rc.cpp:99 rc.cpp:105
#: rc.cpp:111 #: rc.cpp:111
msgid "Browse" msgid "Browse"
msgstr "見る" msgstr "参照"
#. i18n: file: appearance.ui:80 #. i18n: file: appearance.ui:80
#. i18n: ectx: property (text), widget (QLabel, label_fontColor) #. i18n: ectx: property (text), widget (QLabel, label_fontColor)
@ -299,7 +299,7 @@ msgstr "フォントを設定する"
#. i18n: ectx: property (text), widget (QLabel, label_activeIcon) #. i18n: ectx: property (text), widget (QLabel, label_activeIcon)
#: po/rc.cpp:39 rc.cpp:39 #: po/rc.cpp:39 rc.cpp:39
msgid "Active icon" msgid "Active icon"
msgstr "活性化時のアイコン" msgstr "アクティブ時のアイコン"
#. i18n: file: appearance.ui:408 #. i18n: file: appearance.ui:408
#. i18n: ectx: property (text), widget (QLabel, label_textAlign) #. i18n: ectx: property (text), widget (QLabel, label_textAlign)
@ -365,13 +365,13 @@ msgstr "GUIへのパス"
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_helper) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_helper)
#: po/rc.cpp:84 rc.cpp:84 #: po/rc.cpp:84 rc.cpp:84
msgid "Use helper" msgid "Use helper"
msgstr "ヘルパを使" msgstr "ヘルパを使用する"
#. i18n: file: widget.ui:227 #. i18n: file: widget.ui:227
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_sudo) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_sudo)
#: po/rc.cpp:102 rc.cpp:102 #: po/rc.cpp:102 rc.cpp:102
msgid "Use sudo for netctl" msgid "Use sudo for netctl"
msgstr "netctl にて sudo を使" msgstr "netctl に対して sudo を使用する"
#. i18n: file: widget.ui:263 #. i18n: file: widget.ui:263
#. i18n: ectx: property (text), widget (QCheckBox, checkBox_wifi) #. i18n: ectx: property (text), widget (QCheckBox, checkBox_wifi)