mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 23:47:20 +00:00
prepare to add updateText function
This commit is contained in:
parent
23cd74132a
commit
7c5e02217b
2
PKGBUILD
2
PKGBUILD
@ -20,7 +20,7 @@ optdepends=("amarok: for music player monitor"
|
|||||||
makedepends=('automoc4' 'cmake')
|
makedepends=('automoc4' 'cmake')
|
||||||
source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz)
|
source=(https://github.com/arcan1s/pytextmonitor/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz)
|
||||||
install=${pkgname}.install
|
install=${pkgname}.install
|
||||||
md5sums=('5291688590116e77dd5407f9b23e22d7')
|
md5sums=('89a9d482ce0f92f5438b9eb706dccd2a')
|
||||||
backup=('usr/share/config/extsysmon.conf')
|
backup=('usr/share/config/extsysmon.conf')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
|
@ -109,6 +109,8 @@ class pyTextWidget(plasmascript.Applet):
|
|||||||
QObject.connect(self.ptmActions['ksysguard'], SIGNAL("triggered(bool)"), self.runKsysguard)
|
QObject.connect(self.ptmActions['ksysguard'], SIGNAL("triggered(bool)"), self.runKsysguard)
|
||||||
self.ptmActions['readme'] = QAction(i18n("Show README"), self)
|
self.ptmActions['readme'] = QAction(i18n("Show README"), self)
|
||||||
QObject.connect(self.ptmActions['readme'], SIGNAL("triggered(bool)"), self.showReadme)
|
QObject.connect(self.ptmActions['readme'], SIGNAL("triggered(bool)"), self.showReadme)
|
||||||
|
self.ptmActions['update'] = QAction(i18n("Update text"), self)
|
||||||
|
QObject.connect(self.ptmActions['update'], SIGNAL("triggered(bool)"), self.updateText)
|
||||||
|
|
||||||
|
|
||||||
def contextualActions(self):
|
def contextualActions(self):
|
||||||
@ -116,6 +118,7 @@ class pyTextWidget(plasmascript.Applet):
|
|||||||
contextMenu = []
|
contextMenu = []
|
||||||
contextMenu.append(self.ptmActions['ksysguard'])
|
contextMenu.append(self.ptmActions['ksysguard'])
|
||||||
contextMenu.append(self.ptmActions['readme'])
|
contextMenu.append(self.ptmActions['readme'])
|
||||||
|
contextMenu.append(self.ptmActions['update'])
|
||||||
return contextMenu
|
return contextMenu
|
||||||
|
|
||||||
|
|
||||||
@ -147,6 +150,10 @@ class pyTextWidget(plasmascript.Applet):
|
|||||||
os.system("kioclient exec " + str(filePath) + " &")
|
os.system("kioclient exec " + str(filePath) + " &")
|
||||||
|
|
||||||
|
|
||||||
|
def updateText(self):
|
||||||
|
"""function to force update text"""
|
||||||
|
|
||||||
|
|
||||||
# internal functions
|
# internal functions
|
||||||
def addDiskDevice(self, sourceName):
|
def addDiskDevice(self, sourceName):
|
||||||
diskRegexp = QRegExp("disk/(?:md|sd|hd)[a-z|0-9]_.*/Rate/(?:rblk)")
|
diskRegexp = QRegExp("disk/(?:md|sd|hd)[a-z|0-9]_.*/Rate/(?:rblk)")
|
||||||
|
@ -6,8 +6,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
||||||
"POT-Creation-Date: 2014-05-23 12:08+0400\n"
|
"POT-Creation-Date: 2014-05-24 14:15+0400\n"
|
||||||
"PO-Revision-Date: 2014-05-19 11:56+0400\n"
|
"PO-Revision-Date: 2014-05-24 14:15+0400\n"
|
||||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||||
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
|
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
|
||||||
"Language: ru\n"
|
"Language: ru\n"
|
||||||
@ -26,6 +26,10 @@ msgstr "Run ksysguard"
|
|||||||
msgid "Show README"
|
msgid "Show README"
|
||||||
msgstr "Show README"
|
msgstr "Show README"
|
||||||
|
|
||||||
|
#: code/main.py:112
|
||||||
|
msgid "Update text"
|
||||||
|
msgstr "Update text"
|
||||||
|
|
||||||
#: rc.cpp:3
|
#: rc.cpp:3
|
||||||
msgid "Form"
|
msgid "Form"
|
||||||
msgstr "Form"
|
msgstr "Form"
|
||||||
|
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
||||||
"POT-Creation-Date: 2014-05-23 12:08+0400\n"
|
"POT-Creation-Date: 2014-05-24 14:15+0400\n"
|
||||||
"PO-Revision-Date: 2014-05-19 23:02+0400\n"
|
"PO-Revision-Date: 2014-05-19 23:02+0400\n"
|
||||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||||
"Language-Team: Spanish <kde-russian@lists.kde.ru>\n"
|
"Language-Team: Spanish <kde-russian@lists.kde.ru>\n"
|
||||||
@ -26,6 +26,10 @@ msgstr "Ejecutar ksysguard"
|
|||||||
msgid "Show README"
|
msgid "Show README"
|
||||||
msgstr "Mostrar el README"
|
msgstr "Mostrar el README"
|
||||||
|
|
||||||
|
#: code/main.py:112
|
||||||
|
msgid "Update text"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: rc.cpp:3
|
#: rc.cpp:3
|
||||||
msgid "Form"
|
msgid "Form"
|
||||||
msgstr "Formulario"
|
msgstr "Formulario"
|
||||||
|
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
||||||
"POT-Creation-Date: 2014-05-23 12:08+0400\n"
|
"POT-Creation-Date: 2014-05-24 14:15+0400\n"
|
||||||
"PO-Revision-Date: 2014-05-21 16:45+0200\n"
|
"PO-Revision-Date: 2014-05-21 16:45+0200\n"
|
||||||
"Last-Translator: Mermouy <mermouy@gmail.com>\n"
|
"Last-Translator: Mermouy <mermouy@gmail.com>\n"
|
||||||
"Language-Team: French <kde-i18n-doc@kde.org>\n"
|
"Language-Team: French <kde-i18n-doc@kde.org>\n"
|
||||||
@ -27,6 +27,10 @@ msgstr "Lancer ksysguard"
|
|||||||
msgid "Show README"
|
msgid "Show README"
|
||||||
msgstr "Voir le README"
|
msgstr "Voir le README"
|
||||||
|
|
||||||
|
#: code/main.py:112
|
||||||
|
msgid "Update text"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: rc.cpp:3
|
#: rc.cpp:3
|
||||||
msgid "Form"
|
msgid "Form"
|
||||||
msgstr "Entrées"
|
msgstr "Entrées"
|
||||||
|
@ -6,7 +6,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
||||||
"POT-Creation-Date: 2014-05-23 12:08+0400\n"
|
"POT-Creation-Date: 2014-05-24 14:15+0400\n"
|
||||||
"PO-Revision-Date: 2014-05-21 19:10-0300\n"
|
"PO-Revision-Date: 2014-05-21 19:10-0300\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: Brazilian Portuguese <kde-i18n-pt_BR@kde.org>\n"
|
"Language-Team: Brazilian Portuguese <kde-i18n-pt_BR@kde.org>\n"
|
||||||
@ -25,6 +25,10 @@ msgstr "Abrir ksysguard"
|
|||||||
msgid "Show README"
|
msgid "Show README"
|
||||||
msgstr "Mostrar README"
|
msgstr "Mostrar README"
|
||||||
|
|
||||||
|
#: code/main.py:112
|
||||||
|
msgid "Update text"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: rc.cpp:3
|
#: rc.cpp:3
|
||||||
msgid "Form"
|
msgid "Form"
|
||||||
msgstr "Forma"
|
msgstr "Forma"
|
||||||
|
@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
||||||
"POT-Creation-Date: 2014-05-23 12:08+0400\n"
|
"POT-Creation-Date: 2014-05-24 14:15+0400\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@ -25,6 +25,10 @@ msgstr ""
|
|||||||
msgid "Show README"
|
msgid "Show README"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: code/main.py:112
|
||||||
|
msgid "Update text"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: rc.cpp:3
|
#: rc.cpp:3
|
||||||
msgid "Form"
|
msgid "Form"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -6,8 +6,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
"Report-Msgid-Bugs-To: http://kde-look.org/content/show.php?content=157124\n"
|
||||||
"POT-Creation-Date: 2014-05-23 12:08+0400\n"
|
"POT-Creation-Date: 2014-05-24 14:15+0400\n"
|
||||||
"PO-Revision-Date: 2014-05-22 02:33+0400\n"
|
"PO-Revision-Date: 2014-05-24 14:15+0400\n"
|
||||||
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
|
||||||
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
|
"Language-Team: Russian <kde-russian@lists.kde.ru>\n"
|
||||||
"Language: ru\n"
|
"Language: ru\n"
|
||||||
@ -26,6 +26,10 @@ msgstr "Запутить ksysguard"
|
|||||||
msgid "Show README"
|
msgid "Show README"
|
||||||
msgstr "Показать README"
|
msgstr "Показать README"
|
||||||
|
|
||||||
|
#: code/main.py:112
|
||||||
|
msgid "Update text"
|
||||||
|
msgstr "Обновить текст"
|
||||||
|
|
||||||
#: rc.cpp:3
|
#: rc.cpp:3
|
||||||
msgid "Form"
|
msgid "Form"
|
||||||
msgstr "Form"
|
msgstr "Form"
|
||||||
|
Loading…
Reference in New Issue
Block a user