From 0462bb186e2172b672e9560085e4325e54e3da17 Mon Sep 17 00:00:00 2001 From: arcan1s Date: Wed, 9 Jul 2014 01:00:24 +0400 Subject: [PATCH] Started work on ptm-desktop-panel widget --- sources/CMakeLists.txt | 1 + sources/desktop-panel/CMakeLists.txt | 31 + sources/desktop-panel/appearance.ui | 683 ++++++++++++++++++ sources/desktop-panel/desktop-panel.cpp | 274 +++++++ sources/desktop-panel/desktop-panel.h | 80 ++ .../plasma-applet-desktoppanel.desktop | 25 + sources/desktop-panel/po/CMakeLists.txt | 24 + sources/desktop-panel/po/background.list | 0 sources/desktop-panel/po/create_list_files.sh | 15 + sources/desktop-panel/po/extract_messages.sh | 81 +++ .../po/plasma_applet_ptm-desktop-panel.pot | 287 ++++++++ sources/desktop-panel/po/satellite.list | 0 sources/desktop-panel/widget.ui | 189 +++++ sources/ptm/metadata.desktop | 2 +- 14 files changed, 1691 insertions(+), 1 deletion(-) create mode 100644 sources/desktop-panel/CMakeLists.txt create mode 100644 sources/desktop-panel/appearance.ui create mode 100644 sources/desktop-panel/desktop-panel.cpp create mode 100644 sources/desktop-panel/desktop-panel.h create mode 100644 sources/desktop-panel/plasma-applet-desktoppanel.desktop create mode 100644 sources/desktop-panel/po/CMakeLists.txt create mode 100644 sources/desktop-panel/po/background.list create mode 100755 sources/desktop-panel/po/create_list_files.sh create mode 100755 sources/desktop-panel/po/extract_messages.sh create mode 100644 sources/desktop-panel/po/plasma_applet_ptm-desktop-panel.pot create mode 100644 sources/desktop-panel/po/satellite.list create mode 100644 sources/desktop-panel/widget.ui diff --git a/sources/CMakeLists.txt b/sources/CMakeLists.txt index cbc7fcf..8c493de 100644 --- a/sources/CMakeLists.txt +++ b/sources/CMakeLists.txt @@ -24,5 +24,6 @@ else () endif () add_subdirectory (ext-sysmon) +add_subdirectory (desktop-panel) add_subdirectory (ptm) add_subdirectory (readme) diff --git a/sources/desktop-panel/CMakeLists.txt b/sources/desktop-panel/CMakeLists.txt new file mode 100644 index 0000000..02cbf17 --- /dev/null +++ b/sources/desktop-panel/CMakeLists.txt @@ -0,0 +1,31 @@ +# set project name +set (SUBPROJECT plasma_applet_ptm-desktop-panel) +message (STATUS "Subproject ${SUBPROJECT}") + +# find required libaries +find_package (KDE4 REQUIRED) +add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS}) + +add_subdirectory (po) + +include (KDE4Defaults) +include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/../) + +# set sources +set (PLUGIN_NAME ${SUBPROJECT}) +file (GLOB SUBPROJECT_DESKTOP_IN *.desktop) +file (RELATIVE_PATH SUBPROJECT_DESKTOP ${CMAKE_SOURCE_DIR} ${SUBPROJECT_DESKTOP_IN}) +file (GLOB SUBPROJECT_SOURCE *.cpp) +file (GLOB SUBPROJECT_UI *.ui) + +# prepare +configure_file (${SUBPROJECT_DESKTOP_IN} ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT_DESKTOP}) + +# make +kde4_add_ui_files (SUBPROJECT_SOURCE ${SUBPROJECT_UI}) +kde4_add_plugin (${PLUGIN_NAME} ${SUBPROJECT_SOURCE}) +target_link_libraries (${PLUGIN_NAME} ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS}) + +# install +install (TARGETS ${PLUGIN_NAME} DESTINATION ${PLUGIN_INSTALL_DIR}) +install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT_DESKTOP} DESTINATION ${SERVICES_INSTALL_DIR}) diff --git a/sources/desktop-panel/appearance.ui b/sources/desktop-panel/appearance.ui new file mode 100644 index 0000000..86ff2fe --- /dev/null +++ b/sources/desktop-panel/appearance.ui @@ -0,0 +1,683 @@ + + + AppearanceWidget + + + + 0 + 0 + 480 + 343 + + + + + 480 + 320 + + + + Configuration Window + + + + + + 0 + + + + Active desktop + + + + + + true + + + + + 0 + 0 + 448 + 289 + + + + + + + + + + 200 + 0 + + + + Font + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 180 + 23 + + + + Set font family + + + + + + + + + + + + 200 + 0 + + + + Font size + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 100 + 23 + + + + Set font size + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + 7 + + + 48 + + + 12 + + + + + + + + + + + + 200 + 0 + + + + Font color + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 100 + 23 + + + + Set font color + + + + + + + + + + + + 200 + 0 + + + + Font weight + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 100 + 23 + + + + Set font weight + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + 300 + + + 600 + + + 50 + + + 400 + + + + + + + + + + + + 200 + 0 + + + + Font style + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 100 + 23 + + + + Set font style + + + + normal + + + + + italic + + + + + + + + + + Qt::Vertical + + + + 20 + 119 + + + + + + + + + + + + + Inactive desktop + + + + + + true + + + + + 0 + 0 + 448 + 289 + + + + + + + + + + 200 + 0 + + + + Font + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 180 + 23 + + + + Set font family + + + + + + + + + + + + 200 + 0 + + + + Font size + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 100 + 23 + + + + Set font size + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + 7 + + + 48 + + + 12 + + + + + + + + + + + + 200 + 0 + + + + Font color + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 100 + 23 + + + + Set font color + + + + + + + + + + + + 200 + 0 + + + + Font weight + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 100 + 23 + + + + Set font weight + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + 300 + + + 600 + + + 50 + + + 400 + + + + + + + + + + + + 200 + 0 + + + + Font style + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 100 + 23 + + + + Set font style + + + + normal + + + + + italic + + + + + + + + + + Qt::Vertical + + + + 20 + 119 + + + + + + + + + + + + + + + + + KColorCombo + QComboBox +
kcolorcombo.h
+
+
+ + +
diff --git a/sources/desktop-panel/desktop-panel.cpp b/sources/desktop-panel/desktop-panel.cpp new file mode 100644 index 0000000..836cac9 --- /dev/null +++ b/sources/desktop-panel/desktop-panel.cpp @@ -0,0 +1,274 @@ +/*************************************************************************** + * This file is part of pytextmonitor * + * * + * pytextmonitor is free software: you can redistribute it and/or * + * modify it under the terms of the GNU General Public License as * + * published by the Free Software Foundation, either version 3 of the * + * License, or (at your option) any later version. * + * * + * pytextmonitor is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with pytextmonitor. If not, see http://www.gnu.org/licenses/ * + ***************************************************************************/ + +#include "desktop-panel.h" +#include "ui_appearance.h" +#include "ui_widget.h" + +#include +#include +#include +#include +#include +#include +#include +#include + + +DesktopPanel::DesktopPanel(QObject *parent, const QVariantList &args) + : Plasma::Applet(parent, args) +{ + // debug + QProcessEnvironment environment = QProcessEnvironment::systemEnvironment(); + QString debugEnv = environment.value(QString("PTM_DEBUG"), QString("no")); + if (debugEnv == QString("yes")) + debug = true; + else + debug = false; + + setHasConfigurationInterface(true); + // text format init + currentFormatLine.append(QString("")); + currentFormatLine.append(QString("")); + formatLine.append(QString("")); + formatLine.append(QString("")); +} + + +DesktopPanel::~DesktopPanel() +{ +// for (int i=0; isetContentsMargins(1, 1, 1, 1); + setLayout(layout); + + currentDesktop = 1; + + // read variables + configChanged(); +} + + +QStringList DesktopPanel::getDesktopNames() +{ + if (debug) qDebug() << "[PTM-DP]" << "[getDesktopNames]"; + QStringList list; + QString fileName = KGlobal::dirs()->findResource("config", "kwinrc"); + if (debug) qDebug() << "[PTM-DP]" << "[getDesktopNames]" << ":" << "Configuration file" << fileName; + QFile confFile(fileName); + if (!confFile.open(QIODevice::ReadOnly)) return list; + + QString fileStr; + QStringList value; + bool desktopSection = false; + while (true) { + fileStr = QString(confFile.readLine()).trimmed(); + if (fileStr[0] == QChar('#')) continue; + if (fileStr[0] == QChar(';')) continue; + if (fileStr[0] == QChar('[')) desktopSection = false; + if (fileStr == QString("[Desktops]")) desktopSection = true; + if (desktopSection) { + if (fileStr.contains(QChar('='))) { + value.clear(); + for (int i=1; i
");
+    currentFormatLine[1] = ("

"); + + fontFamily = cg.readEntry("fontFamily", "Terminus"); + fontSize = cg.readEntry("fontSize", 10); + fontColor = cg.readEntry("fontColor", "#000000"); + fontWeight = cg.readEntry("fontWeight", 400); + fontStyle = cg.readEntry("fontStyle", "normal"); + formatLine[0] = ("

");
+    formatLine[1] = ("

"); + + reinit(); +} + + +#include "desktop-panel.moc" diff --git a/sources/desktop-panel/desktop-panel.h b/sources/desktop-panel/desktop-panel.h new file mode 100644 index 0000000..1e05a78 --- /dev/null +++ b/sources/desktop-panel/desktop-panel.h @@ -0,0 +1,80 @@ +/*************************************************************************** + * This file is part of pytextmonitor * + * * + * pytextmonitor is free software: you can redistribute it and/or * + * modify it under the terms of the GNU General Public License as * + * published by the Free Software Foundation, either version 3 of the * + * License, or (at your option) any later version. * + * * + * pytextmonitor is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with pytextmonitor. If not, see http://www.gnu.org/licenses/ * + ***************************************************************************/ + + +#ifndef DESKTOP_PANEL_H +#define DESKTOP_PANEL_H + +#include +#include +#include + +#include +#include + + +class QGraphicsLinearLayout; + +class DesktopPanel : public Plasma::Applet +{ + Q_OBJECT + +public: + DesktopPanel(QObject *parent, const QVariantList &args); + ~DesktopPanel(); + void init(); + +public slots: + // dataengine + void dataUpdated(const QString &sourceName, const Plasma::DataEngine::Data &data); + // configuration interface + void configAccepted(); + void configChanged(); + +private slots: + void reinit(); + void setCurrentDesktop(); + +protected: + void createConfigurationInterface(KConfigDialog *parent); + +private: + // functions + QStringList getDesktopNames(); + void updateText(); + // ui + QGraphicsLinearLayout *layout; + QList labels; + // debug + bool debug; + // data engine + int currentDesktop; + Plasma::DataEngine *extsysmonEngine; + // configuration interface + Ui::AppearanceWidget uiAppConfig; + Ui::ConfigWindow uiWidConfig; + // configuration + QMap configuration; + QStringList desktopNames; + QStringList currentFormatLine; + QStringList formatLine; +}; + +K_EXPORT_PLASMA_APPLET(ptm-desktop-panel, DesktopPanel) + + +#endif /* DESKTOP_PANEL_H */ diff --git a/sources/desktop-panel/plasma-applet-desktoppanel.desktop b/sources/desktop-panel/plasma-applet-desktoppanel.desktop new file mode 100644 index 0000000..f0bcbba --- /dev/null +++ b/sources/desktop-panel/plasma-applet-desktoppanel.desktop @@ -0,0 +1,25 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=PTM Desktop Panel +Comment=A minimalistic Plasmoid script written on Python2 +Comment[en]=A minimalistic Plasmoid script written on Python2 +Comment[es]=Un plasmoide minimalista escrito en Python2 +Comment[es]=Un script Plasmoïde minimaliste écrit sur Python2 +Comment[pt_BR]=Um script Plasmoid escrito em Python2 +Comment[ru]=Минималистичный плазмоид скрипт, написанный на Python2 +Comment[uk]=Мінімалістичний плазмоїд, що написаний на Python2 +X-KDE-ServiceTypes=Plasma/Applet +Type=Service +Icon=utilities-system-monitor + +X-KDE-Library=plasma_applet_ptm-desktop-panel + +X-KDE-PluginInfo-Author=Evgeniy Alekseev aka arcanis +X-KDE-PluginInfo-Email=esalexeev@gmail.com +X-KDE-PluginInfo-Name=ptm-desktop-panel +X-KDE-PluginInfo-Version=@PROJECT_VERSION@ +X-KDE-PluginInfo-Website=http://arcanis.name/projects/pytextmonitor/ +X-KDE-PluginInfo-Category=System Information +X-KDE-PluginInfo-Depends= +X-KDE-PluginInfo-License=GPLv3 +X-KDE-PluginInfo-EnabledByDefault=true diff --git a/sources/desktop-panel/po/CMakeLists.txt b/sources/desktop-panel/po/CMakeLists.txt new file mode 100644 index 0000000..43779b4 --- /dev/null +++ b/sources/desktop-panel/po/CMakeLists.txt @@ -0,0 +1,24 @@ +find_package(KDE4 REQUIRED) +find_package(Gettext REQUIRED) + +if (NOT GETTEXT_MSGFMT_EXECUTABLE) + message(FATAL_ERROR "Please install the msgfmt binary") +endif (NOT GETTEXT_MSGFMT_EXECUTABLE) + +file (GLOB _po_files *.po) + +set (_gmoFiles) + +foreach (_current_PO_FILE ${_po_files}) + get_filename_component (_lang ${_current_PO_FILE} NAME_WE) + set (_gmoFile ${CMAKE_CURRENT_BINARY_DIR}/${_lang}.gmo) + add_custom_command (OUTPUT ${_gmoFile} + COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -o ${_gmoFile} ${_current_PO_FILE} + WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" + DEPENDS ${_current_PO_FILE} + ) + + install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${_lang}.gmo DESTINATION ${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES/ RENAME plasma_applet_netctl.mo) + list (APPEND _gmoFiles ${_gmoFile}) +endforeach (_current_PO_FILE) +add_custom_target (pofiles ALL DEPENDS ${_gmoFiles}) diff --git a/sources/desktop-panel/po/background.list b/sources/desktop-panel/po/background.list new file mode 100644 index 0000000..e69de29 diff --git a/sources/desktop-panel/po/create_list_files.sh b/sources/desktop-panel/po/create_list_files.sh new file mode 100755 index 0000000..16453d6 --- /dev/null +++ b/sources/desktop-panel/po/create_list_files.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +WDIR=`pwd` # working dir +SATELLITE_LIST=satellite.list +BACKGROUND_LIST=background.list + +# Background list +cd "$WDIR" +cd ../images +ls -1 background_* | sed -e "s/background_//g" | sed -e "s/_/ /g" | sed -e "s/\.jpg//g" | sed -e "s/\.png//g" | sed -e "s/\.gif//g" | grep -v '^$' | sort --unique --ignore-leading-blanks > "$WDIR/background.list" + +# Satellite list +cd "$WDIR" +cd ../data +cat satellite_images.xml | grep image\ name | sed -e "s/.*/g" | grep -v '^$' | sort --unique --ignore-leading-blanks > "$WDIR/satellite.list" diff --git a/sources/desktop-panel/po/extract_messages.sh b/sources/desktop-panel/po/extract_messages.sh new file mode 100755 index 0000000..9742d2d --- /dev/null +++ b/sources/desktop-panel/po/extract_messages.sh @@ -0,0 +1,81 @@ +#!/bin/sh +BASEDIR="../" # root of translatable sources +PROJECT="plasma_applet_ptm-desktop-panel" # project name +BUGADDR="https://github.com/arcan1s/pytextmonitor/issues" # MSGID-Bugs +WDIR=`pwd` # working dir +SATELLITE_LIST=satellite.list +BACKGROUND_LIST=background.list + +add_list() +{ + LIST=$1 + + if [ -z "$LIST" ] + then + echo ">>ERR<< add_list() - missing parameter LIST - exiting" + return + fi + + if [ -f "$LIST" ] + then + cat $LIST | while read ROW + do + echo "tr2i18n(\"${ROW}\")" >> ${WDIR}/rc.cpp + done + else + echo ">>ERR<< add_list() - file $LIST does not exist." + fi + +} + +echo "Preparing rc files" +cd ${BASEDIR} +# we use simple sorting to make sure the lines do not jump around too much from system to system +find . -name '*.rc' -o -name '*.ui' -o -name '*.kcfg' | sort > ${WDIR}/rcfiles.list +xargs --arg-file=${WDIR}/rcfiles.list extractrc > ${WDIR}/rc.cpp + +# additional string for KAboutData +echo 'i18nc("NAME OF TRANSLATORS","Your names");' >> ${WDIR}/rc.cpp +echo 'i18nc("EMAIL OF TRANSLATORS","Your emails");' >> ${WDIR}/rc.cpp + +cd ${WDIR} + +# Add Satellite list +add_list "$SATELLITE_LIST" + +# Add Background list +add_list "$BACKGROUND_LIST" + +echo "Done preparing rc files" + + +echo "Extracting messages" +cd ${BASEDIR} +# see above on sorting +find . -name '*.cpp' -o -name '*.h' -o -name '*.c' | sort > ${WDIR}/infiles.list +echo "rc.cpp" >> ${WDIR}/infiles.list +cd ${WDIR} +xgettext --from-code=UTF-8 -C -kde -ci18n -ki18n:1 -ki18nc:1c,2 -ki18np:1,2 -ki18ncp:1c,2,3 -ktr2i18n:1 \ +-kI18N_NOOP:1 -kI18N_NOOP2:1c,2 -kaliasLocale -kki18n:1 -kki18nc:1c,2 -kki18np:1,2 -kki18ncp:1c,2,3 \ +--msgid-bugs-address="${BUGADDR}" \ +--files-from=infiles.list -D ${BASEDIR} -D ${WDIR} -o ${PROJECT}.pot || { echo "error while calling xgettext. aborting."; exit 1; } +echo "Done extracting messages" + + +echo "Merging translations" +catalogs=`find . -name '*.po'` +for cat in $catalogs; do +echo $cat +msgmerge -o $cat.new $cat ${PROJECT}.pot +mv $cat.new $cat +done +echo "Done merging translations" + + +echo "Cleaning up" +cd ${WDIR} +rm rcfiles.list +rm infiles.list +rm rc.cpp +echo "Done" + diff --git a/sources/desktop-panel/po/plasma_applet_ptm-desktop-panel.pot b/sources/desktop-panel/po/plasma_applet_ptm-desktop-panel.pot new file mode 100644 index 0000000..0301c67 --- /dev/null +++ b/sources/desktop-panel/po/plasma_applet_ptm-desktop-panel.pot @@ -0,0 +1,287 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: https://github.com/arcan1s/pytextmonitor/issues\n" +"POT-Creation-Date: 2014-07-08 22:44+0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: desktop-panel.cpp:112 +msgid "Set profile %1 disabled" +msgstr "" + +#: desktop-panel.cpp:116 +msgid "Set profile %1 enabled" +msgstr "" + +#: desktop-panel.cpp:132 +msgid "Start profile %1" +msgstr "" + +#: desktop-panel.cpp:151 +msgid "Stop profile %1" +msgstr "" + +#: desktop-panel.cpp:165 +msgid "Restart profile %1" +msgstr "" + +#: desktop-panel.cpp:184 +msgid "Start another profile" +msgstr "" + +#: desktop-panel.cpp:186 +msgid "Stop " +msgstr "" + +#: desktop-panel.cpp:188 +msgid "Restart " +msgstr "" + +#: desktop-panel.cpp:191 +msgid "Disable " +msgstr "" + +#: desktop-panel.cpp:193 +msgid "Enable " +msgstr "" + +#: desktop-panel.cpp:196 desktop-panel.cpp:223 +msgid "Start profile" +msgstr "" + +#: desktop-panel.cpp:230 +msgid "Stop profile" +msgstr "" + +#: desktop-panel.cpp:234 +msgid "Restart profile" +msgstr "" + +#: desktop-panel.cpp:238 +msgid "Enable profile" +msgstr "" + +#: desktop-panel.cpp:242 +msgid "Show WiFi menu" +msgstr "" + +#: desktop-panel.cpp:262 +msgid "Start GUI" +msgstr "" + +#: desktop-panel.cpp:270 +msgid "Start WiFi menu" +msgstr "" + +#: desktop-panel.cpp:334 +msgid "Network is up" +msgstr "" + +#: desktop-panel.cpp:340 +msgid "Network is down" +msgstr "" + +#: desktop-panel.cpp:477 +msgid "Netctl plasmoid" +msgstr "" + +#. i18n: file: configwindow.ui:30 +#. i18n: ectx: attribute (title), widget (QWidget, tabConfiguration) +#: po/rc.cpp:3 rc.cpp:3 +msgid "Configuration" +msgstr "" + +#. i18n: file: configwindow.ui:54 +#. i18n: ectx: property (text), widget (QLabel, label_autoUpdate) +#: po/rc.cpp:6 rc.cpp:6 +msgid "Auto update interval, msec" +msgstr "" + +#. i18n: file: configwindow.ui:112 +#. i18n: ectx: property (text), widget (QLabel, label_gui) +#: po/rc.cpp:9 rc.cpp:9 +msgid "Path to GUI" +msgstr "" + +#. i18n: file: configwindow.ui:128 +#. i18n: ectx: property (text), widget (QPushButton, pushButton_gui) +#. i18n: file: configwindow.ui:161 +#. i18n: ectx: property (text), widget (QPushButton, pushButton_netctl) +#. i18n: file: configwindow.ui:197 +#. i18n: ectx: property (text), widget (QPushButton, pushButton_sudo) +#. i18n: file: configwindow.ui:233 +#. i18n: ectx: property (text), widget (QPushButton, pushButton_wifi) +#. i18n: file: configwindow.ui:621 +#. i18n: ectx: property (text), widget (QPushButton, pushButton_activeIcon) +#. i18n: file: configwindow.ui:654 +#. i18n: ectx: property (text), widget (QPushButton, pushButton_inactiveIcon) +#. i18n: file: configwindow.ui:128 +#. i18n: ectx: property (text), widget (QPushButton, pushButton_gui) +#. i18n: file: configwindow.ui:161 +#. i18n: ectx: property (text), widget (QPushButton, pushButton_netctl) +#. i18n: file: configwindow.ui:197 +#. i18n: ectx: property (text), widget (QPushButton, pushButton_sudo) +#. i18n: file: configwindow.ui:233 +#. i18n: ectx: property (text), widget (QPushButton, pushButton_wifi) +#. i18n: file: configwindow.ui:621 +#. i18n: ectx: property (text), widget (QPushButton, pushButton_activeIcon) +#. i18n: file: configwindow.ui:654 +#. i18n: ectx: property (text), widget (QPushButton, pushButton_inactiveIcon) +#: po/rc.cpp:12 po/rc.cpp:18 po/rc.cpp:24 po/rc.cpp:30 po/rc.cpp:87 +#: po/rc.cpp:93 rc.cpp:12 rc.cpp:18 rc.cpp:24 rc.cpp:30 rc.cpp:87 rc.cpp:93 +msgid "Browse" +msgstr "" + +#. i18n: file: configwindow.ui:145 +#. i18n: ectx: property (text), widget (QLabel, label_netctl) +#: po/rc.cpp:15 rc.cpp:15 +msgid "Path to netctl" +msgstr "" + +#. i18n: file: configwindow.ui:178 +#. i18n: ectx: property (text), widget (QCheckBox, checkBox_sudo) +#: po/rc.cpp:21 rc.cpp:21 +msgid "Use sudo for netctl" +msgstr "" + +#. i18n: file: configwindow.ui:214 +#. i18n: ectx: property (text), widget (QCheckBox, checkBox_wifi) +#: po/rc.cpp:27 rc.cpp:27 +msgid "Show 'Start WiFi menu'" +msgstr "" + +#. i18n: file: configwindow.ui:242 +#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showBigInterface) +#: po/rc.cpp:33 rc.cpp:33 +msgid "Show more detailed interface" +msgstr "" + +#. i18n: file: configwindow.ui:252 +#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showNetDev) +#: po/rc.cpp:36 rc.cpp:36 +msgid "Show network devices" +msgstr "" + +#. i18n: file: configwindow.ui:262 +#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showExtIp) +#: po/rc.cpp:39 rc.cpp:39 +msgid "Show external IP" +msgstr "" + +#. i18n: file: configwindow.ui:272 +#. i18n: ectx: property (text), widget (QCheckBox, checkBox_showIntIp) +#: po/rc.cpp:42 rc.cpp:42 +msgid "Show internal IP" +msgstr "" + +#. i18n: file: configwindow.ui:296 +#. i18n: ectx: attribute (title), widget (QWidget, tabAppearance) +#: po/rc.cpp:45 rc.cpp:45 +msgid "Appearance" +msgstr "" + +#. i18n: file: configwindow.ui:310 +#. i18n: ectx: property (text), widget (QLabel, label_font) +#: po/rc.cpp:48 rc.cpp:48 +msgid "Font" +msgstr "" + +#. i18n: file: configwindow.ui:342 +#. i18n: ectx: property (toolTip), widget (QFontComboBox, fontComboBox_font) +#: po/rc.cpp:51 rc.cpp:51 +msgid "Set font family" +msgstr "" + +#. i18n: file: configwindow.ui:359 +#. i18n: ectx: property (text), widget (QLabel, label_fontSize) +#: po/rc.cpp:54 rc.cpp:54 +msgid "Font size" +msgstr "" + +#. i18n: file: configwindow.ui:391 +#. i18n: ectx: property (toolTip), widget (QSpinBox, spinBox_fontSize) +#: po/rc.cpp:57 rc.cpp:57 +msgid "Set font size" +msgstr "" + +#. i18n: file: configwindow.ui:420 +#. i18n: ectx: property (text), widget (QLabel, label_fontColor) +#: po/rc.cpp:60 rc.cpp:60 +msgid "Font color" +msgstr "" + +#. i18n: file: configwindow.ui:452 +#. i18n: ectx: property (toolTip), widget (KColorCombo, kcolorcombo_fontColor) +#: po/rc.cpp:63 rc.cpp:63 +msgid "Set font color" +msgstr "" + +#. i18n: file: configwindow.ui:469 +#. i18n: ectx: property (text), widget (QLabel, label_fontWeight) +#: po/rc.cpp:66 rc.cpp:66 +msgid "Font weight" +msgstr "" + +#. i18n: file: configwindow.ui:501 +#. i18n: ectx: property (toolTip), widget (QSpinBox, spinBox_fontWeight) +#: po/rc.cpp:69 rc.cpp:69 +msgid "Set font weight" +msgstr "" + +#. i18n: file: configwindow.ui:533 +#. i18n: ectx: property (text), widget (QLabel, label_fontStyle) +#: po/rc.cpp:72 rc.cpp:72 +msgid "Font style" +msgstr "" + +#. i18n: file: configwindow.ui:565 +#. i18n: ectx: property (toolTip), widget (QComboBox, comboBox_fontStyle) +#: po/rc.cpp:75 rc.cpp:75 +msgid "Set font style" +msgstr "" + +#. i18n: file: configwindow.ui:569 +#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_fontStyle) +#: po/rc.cpp:78 rc.cpp:78 +msgid "normal" +msgstr "" + +#. i18n: file: configwindow.ui:574 +#. i18n: ectx: property (text), item, widget (QComboBox, comboBox_fontStyle) +#: po/rc.cpp:81 rc.cpp:81 +msgid "italic" +msgstr "" + +#. i18n: file: configwindow.ui:605 +#. i18n: ectx: property (text), widget (QLabel, label_activeIcon) +#: po/rc.cpp:84 rc.cpp:84 +msgid "Active icon" +msgstr "" + +#. i18n: file: configwindow.ui:638 +#. i18n: ectx: property (text), widget (QLabel, label_inactiveIcon) +#: po/rc.cpp:90 rc.cpp:90 +msgid "Inactive icon" +msgstr "" + +#: po/rc.cpp:94 rc.cpp:94 +msgctxt "NAME OF TRANSLATORS" +msgid "Your names" +msgstr "" + +#: po/rc.cpp:95 rc.cpp:95 +msgctxt "EMAIL OF TRANSLATORS" +msgid "Your emails" +msgstr "" diff --git a/sources/desktop-panel/po/satellite.list b/sources/desktop-panel/po/satellite.list new file mode 100644 index 0000000..e69de29 diff --git a/sources/desktop-panel/widget.ui b/sources/desktop-panel/widget.ui new file mode 100644 index 0000000..8dfe17a --- /dev/null +++ b/sources/desktop-panel/widget.ui @@ -0,0 +1,189 @@ + + + ConfigWindow + + + + 0 + 0 + 480 + 343 + + + + + 480 + 320 + + + + Configuration Window + + + + + + true + + + + + 0 + 0 + 464 + 327 + + + + + + + Enable background + + + + + + + Vertical layout + + + + + + + Add stretch to left/top of the layout + + + + + + + Add stretch to right/bottom of the layout + + + + + + + + + + 200 + 0 + + + + Time interval + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 180 + 0 + + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + 1 + + + 10000 + + + 500 + + + 1000 + + + + + + + + + + + + 200 + 0 + + + + Mark + + + + + + + + + + + + + + + 200 + 0 + + + + Pattern + + + + + + + $mark - show mark if the current desktop is active +$name - desktop name +$number - desktop number +$total - total number of desktops + + + + + + + + + Qt::Vertical + + + + 20 + 152 + + + + + + + + + + + + + diff --git a/sources/ptm/metadata.desktop b/sources/ptm/metadata.desktop index d641386..fbce211 100644 --- a/sources/ptm/metadata.desktop +++ b/sources/ptm/metadata.desktop @@ -8,7 +8,7 @@ Comment[es]=Un script Plasmoïde minimaliste écrit sur Python2 Comment[pt_BR]=Um script Plasmoid escrito em Python2 Comment[ru]=Минималистичный плазмоид скрипт, написанный на Python2 Comment[uk]=Мінімалістичний плазмоїд, що написаний на Python2 -ServiceTypes=Plasma/Applet +X-KDE-ServiceTypes=Plasma/Applet Type=Service Icon=utilities-system-monitor