diff --git a/applets/CMakeLists.txt b/applets/CMakeLists.txt index 8e006bea8..7d35c17bb 100644 --- a/applets/CMakeLists.txt +++ b/applets/CMakeLists.txt @@ -1,40 +1,41 @@ plasma_install_package(activitypager org.kde.plasma.activitypager) add_subdirectory(fifteenPuzzle) add_subdirectory(fuzzy-clock) +add_subdirectory(binary-clock) add_subdirectory(calculator) add_subdirectory(colorpicker) add_subdirectory(mediaframe) add_subdirectory(notes) add_subdirectory(timer) find_package(KDEExperimentalPurpose QUIET) set_package_properties(KDEExperimentalPurpose PROPERTIES DESCRIPTION "EXPERIMENTAL. Support for QuickShare sharing" URL "https://projects.kde.org/projects/playground/libs/purpose" TYPE RUNTIME ) add_subdirectory(quickshare) if(NOT WIN32) # uses the command line tool 'quota', does not make sense on Windows add_subdirectory(diskquota) add_subdirectory(systemloadviewer) endif(NOT WIN32) add_subdirectory(showdesktop) add_subdirectory(minimizeall) plasma_install_package(webbrowser org.kde.plasma.webbrowser) add_subdirectory(comic) plasma_install_package(konsoleprofiles/package org.kde.plasma.konsoleprofiles) plasma_install_package(kickerdash org.kde.plasma.kickerdash) add_subdirectory(quicklaunch) #This applet is disabled because although ported it does not work # add_subdirectory(eyes) add_subdirectory(userswitcher) add_subdirectory(weather) add_subdirectory(grouping) diff --git a/applets/binary-clock/CMakeLists.txt b/applets/binary-clock/CMakeLists.txt index 0e13b5486..e3551360a 100644 --- a/applets/binary-clock/CMakeLists.txt +++ b/applets/binary-clock/CMakeLists.txt @@ -1,10 +1,3 @@ -set(binaryclock_SRCS binaryclock.cpp) +project(binaryclock) -kde4_add_ui_files(binaryclock_SRCS clockConfig.ui) -kde4_add_plugin(plasma_applet_binaryclock ${binaryclock_SRCS}) - -target_link_libraries(plasma_applet_binaryclock ${KDE4WORKSPACE_PLASMACLOCK_LIBRARY} ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS}) - -install(TARGETS plasma_applet_binaryclock DESTINATION ${PLUGIN_INSTALL_DIR}) - -install(FILES plasma-applet-binaryclock.desktop DESTINATION ${SERVICES_INSTALL_DIR}) +plasma_install_package(package org.kde.plasma.binaryclock) diff --git a/applets/binary-clock/Messages.sh b/applets/binary-clock/Messages.sh index 40a3686ff..303c9a80b 100755 --- a/applets/binary-clock/Messages.sh +++ b/applets/binary-clock/Messages.sh @@ -1,3 +1,4 @@ #! /usr/bin/env bash -$EXTRACTRC *.ui >> rc.cpp -$XGETTEXT *.cpp -o $podir/plasma_applet_binaryclock.pot +$EXTRACTRC `find . -name \*.rc -o -name \*.ui -o -name \*.kcfg` >> rc.cpp +$XGETTEXT `find . -name \*.qml -o -name \*.cpp` -o $podir/plasma_applet_org.kde.plasma.binaryclock.pot +rm -f rc.cpp diff --git a/applets/binary-clock/binaryclock.h b/applets/binary-clock/binaryclock.h deleted file mode 100644 index 5ae83dfff..000000000 --- a/applets/binary-clock/binaryclock.h +++ /dev/null @@ -1,87 +0,0 @@ -/*************************************************************************** - * Copyright 2007 by Riccardo Iaconelli * - * Copyright 2007 by Davide Bettio * - * * - * This program 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 2 of the License, or * - * (at your option) any later version. * - * * - * This program 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 this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * - ***************************************************************************/ - -#ifndef BINARYCLOCK_H -#define BINARYCLOCK_H - -#include - -#include - -#include "ui_clockConfig.h" - -class QTime; -class QColor; - -namespace Plasma { - class DataEngine; -} - -class BinaryClock : public ClockApplet -{ - Q_OBJECT - public: - BinaryClock(QObject *parent, const QVariantList &args); - ~BinaryClock(); - - void init(); - void paintInterface(QPainter *painter, const QStyleOptionGraphicsItem *option, const QRect& contentsRect); - void constraintsEvent(Plasma::Constraints constraints); - - public slots: - void dataUpdated(const QString &name, const Plasma::DataEngine::Data &data); - - protected: - void createClockConfigurationInterface(KConfigDialog *parent); - void clockConfigAccepted(); - void clockConfigChanged(); - void changeEngineTimezone(const QString &oldTimezone, const QString &newTimezone); - - private slots: - void updateColors(); - - private: - void connectToEngine(); - - int getWidthFromHeight(int h) const; - int getHeightFromWidth(int w) const; - - bool m_showSeconds; - bool m_showOffLeds; - bool m_showGrid; - - bool m_customOnLedsColor; - bool m_customOffLedsColor; - bool m_customGridColor; - - QColor m_onLedsColor; - QColor m_offLedsColor; - QColor m_gridColor; - - QTime m_lastTimeSeen; - QTime m_time; - int m_updateIndex; - - Ui::clockConfig ui; -}; - -K_EXPORT_PLASMA_APPLET(binaryclock, BinaryClock) - -#endif diff --git a/applets/binary-clock/clockConfig.ui b/applets/binary-clock/clockConfig.ui deleted file mode 100644 index 0c2cec792..000000000 --- a/applets/binary-clock/clockConfig.ui +++ /dev/null @@ -1,423 +0,0 @@ - - clockConfig - - - - 0 - 0 - 586 - 349 - - - - - 400 - 300 - - - - - - - - 75 - true - - - - Appearance - - - - - - - Active LEDs: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - - Use custom color for active LEDs: - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - Qt::Vertical - - - QSizePolicy::Fixed - - - - 20 - 7 - - - - - - - - Inactive LEDs: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - Show the inactive LEDs - - - Check this if you want to see the inactive LEDs. - - - Show - - - true - - - - - - - Use theme color - - - - - - - - - - 0 - 0 - - - - Use custom color for inactive LEDs: - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - Qt::Vertical - - - QSizePolicy::Fixed - - - - 20 - 7 - - - - - - - - Grid: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - Show the grid - - - Check this if you want to see a grid around leds. - - - Show - - - true - - - - - - - Use theme color - - - - - - - - - Use custom grid color: - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - Qt::Vertical - - - QSizePolicy::Fixed - - - - 20 - 13 - - - - - - - - - 75 - true - - - - Information - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - Use theme color - - - - - - - Seconds: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - Show the seconds LEDs - - - Check this if you want to display seconds LEDs in order to see the seconds. - - - Show - - - - - - - - KColorButton - QPushButton -
kcolorbutton.h
-
-
- - - - onLedsDefaultColorRadioButton - toggled(bool) - onLedsCustomColorButton - setDisabled(bool) - - - 558 - 55 - - - 423 - 82 - - - - - offLedsDefaultColorRadioButton - toggled(bool) - offLedsCustomColorButton - setDisabled(bool) - - - 566 - 148 - - - 424 - 172 - - - - - gridDefaultColorRadioButton - toggled(bool) - gridCustomColorButton - setDisabled(bool) - - - 547 - 243 - - - 395 - 267 - - - - - showOffLedsCheckBox - toggled(bool) - offLedsDefaultColorRadioButton - setEnabled(bool) - - - 164 - 124 - - - 184 - 147 - - - - - showOffLedsCheckBox - toggled(bool) - offLedsCustomColorRadioButton - setEnabled(bool) - - - 296 - 120 - - - 296 - 176 - - - - - showGridCheckBox - toggled(bool) - gridDefaultColorRadioButton - setEnabled(bool) - - - 165 - 217 - - - 191 - 238 - - - - - showGridCheckBox - toggled(bool) - gridCustomColorRadioButton - setEnabled(bool) - - - 264 - 210 - - - 256 - 268 - - - - -
diff --git a/applets/binary-clock/package/contents/config/config.qml b/applets/binary-clock/package/contents/config/config.qml new file mode 100644 index 000000000..9132043a1 --- /dev/null +++ b/applets/binary-clock/package/contents/config/config.qml @@ -0,0 +1,32 @@ +/* + * Copyright 2014 Joseph Wenninger + * + * Based on analog-clock config.qml: + * Copyright 2013 Marco Martin + * + * This program 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 2 of the License, or + * (at your option) any later version. + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. + */ + +import QtQuick 2.0 + +import org.kde.plasma.configuration 2.0 + +ConfigModel { + ConfigCategory { + name: i18n("Appearance") + icon: "preferences-desktop-color" + source: "configGeneral.qml" + } +} diff --git a/applets/binary-clock/package/contents/config/main.xml b/applets/binary-clock/package/contents/config/main.xml new file mode 100644 index 000000000..86bc47bfc --- /dev/null +++ b/applets/binary-clock/package/contents/config/main.xml @@ -0,0 +1,38 @@ + + + + + + + true + + + true + + + true + + + false + + + green + + + false + + + red + + + false + + + blue + + + + diff --git a/applets/binary-clock/package/contents/ui/BinaryClock.qml b/applets/binary-clock/package/contents/ui/BinaryClock.qml new file mode 100644 index 000000000..b8f0befff --- /dev/null +++ b/applets/binary-clock/package/contents/ui/BinaryClock.qml @@ -0,0 +1,146 @@ +/* + * Rewrite of the KDE4-Plasma Binary Clock for KF5/Plasma/QML + * + * Copyright 2014 Joseph Wenninger + * + * Original code (KDE4): + * Copyright 2007 by Riccardo Iaconelli * + * Copyright 2007 by Davide Bettio + * + * Based on FuzzyClock.qml: + * Copyright 2013 Heena Mahour + * Copyright 2013 Sebastian Kügler + * Copyright 2013 Martin Klapetek + * Copyright 2014 David Edmundson + * Copyright 2014 Kai Uwe Broulik + * + * This program 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 2 of + * the License, or (at your option) any later version. + * + * This program 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 this program. If not, see . + */ + +import QtQuick 2.0 +import QtQuick.Layouts 1.1 +import org.kde.plasma.core 2.0 as PlasmaCore +import org.kde.plasma.components 2.0 as Components + +Item { + id: main + + property real w1: (main.height-5*units.smallSpacing)*dots/4 + + Layout.minimumWidth: w1 < 20 ? 20 : w1 + Layout.maximumWidth: Infinity + Layout.preferredWidth: Layout.minimumWidth + + Layout.minimumHeight: 16+(units.smallSpacing * 5) + // Layout.maximumHeight: vertical ? Layout.minimumHeight : Infinity + //Layout.preferredHeight: Layout.minimumHeight + + + property int formFactor: plasmoid.formFactor + property int timePixelSize: theme.defaultFont.pixelSize + + property bool constrained: formFactor == PlasmaCore.Types.Vertical || formFactor == PlasmaCore.Types.Horizontal + + property bool showSeconds: root.showSeconds + + property int hours:root.hours + property int minutes:root.minutes + property int seconds:root.seconds + + property bool showOffLeds: plasmoid.configuration.showOffLeds + property bool showGrid: plasmoid.configuration.showGrid + + property int dots: showSeconds? 6:4 + + property color onColor: plasmoid.configuration.useCustomColorForActive?plasmoid.configuration.customColorForActive: theme.textColor + property color offColor: plasmoid.configuration.useCustomColorForInactive?plasmoid.configuration.customColorForInactive:Qt.rgba(onColor.r,onColor.g,onColor.b,0.4) + property color gridColor: plasmoid.configuration.useCustomColorForGrid?plasmoid.configuration.customColorForGrid:Qt.rgba(onColor.r,onColor.g,onColor.b,0.6) + + property real dotSize: Math.min((height-5*units.smallSpacing)/4,(width-(dots+1)*units.smallSpacing)/dots) + property real displayTop: (height - 4*dotSize-3*units.smallSpacing) /2 + property real displayLeft: (width - dots*dotSize-(dots-1)*units.smallSpacing) /2 + + MouseArea { + id: mouseArea + anchors.fill: parent + hoverEnabled: true + onClicked: plasmoid.expanded = !plasmoid.expanded + } + + + /*hours*/ + DotColumn { + x:displayLeft + y:displayTop + val:hours + startbit:4 + } + DotColumn { + x:displayLeft+(dotSize+units.smallSpacing) + y:displayTop + val:hours + startbit:0 + } + + + /*minutes*/ + DotColumn { + x:displayLeft+(dotSize+units.smallSpacing)*2 + y:displayTop + val:minutes + startbit:4 + } + DotColumn { + x:displayLeft+(dotSize+units.smallSpacing)*3 + y:displayTop + val:minutes + startbit:0 + } + + /* seconds */ + DotColumn { + x:displayLeft+(dotSize+units.smallSpacing)*4 + y:displayTop + val:seconds + startbit:4 + visible:showSeconds + } + + DotColumn { + x:displayLeft+(dotSize+units.smallSpacing)*5 + y:displayTop + val:seconds + startbit:0 + visible:showSeconds + } + + Rectangle { + x:displayLeft-units.smallSpacing + y:displayTop-units.smallSpacing + width:dots*(dotSize+units.smallSpacing)+units.smallSpacing + height:units.smallSpacing + visible:showGrid + color:gridColor + } + + Rectangle { + x:displayLeft-units.smallSpacing + y:displayTop + width:units.smallSpacing + height:4*(dotSize+units.smallSpacing) + visible:showGrid + color:gridColor + } + +} diff --git a/applets/binary-clock/package/contents/ui/Dot.qml b/applets/binary-clock/package/contents/ui/Dot.qml new file mode 100644 index 000000000..527246985 --- /dev/null +++ b/applets/binary-clock/package/contents/ui/Dot.qml @@ -0,0 +1,54 @@ +/* + * Rewrite of the KDE4-Plasma Binary Clock for KF5/Plasma/QML + * + * Copyright 2014 Joseph Wenninger + * + * Original code (KDE4): + * Copyright 2007 by Riccardo Iaconelli * + * Copyright 2007 by Davide Bettio + * + * This program 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 2 of + * the License, or (at your option) any later version. + * + * This program 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 this program. If not, see . + */ + +import QtQuick 2.0 + +Item { + property int val + property int bit + + Rectangle { + width: main.dotSize + height: width + color: (val & bit) ? main.onColor:main.offColor + x:0 + y:0 + visible:main.showOffLeds || color!=main.offColor + } + Rectangle { + visible:main.showGrid + x:0 + y:main.dotSize + width:main.dotSize + height:units.smallSpacing + color:main.gridColor; + } + Rectangle { + visible:main.showGrid + x:main.dotSize + y:0 + width:units.smallSpacing + height:main.dotSize+units.smallSpacing + color:main.gridColor + } +} \ No newline at end of file diff --git a/applets/binary-clock/package/contents/ui/DotColumn.qml b/applets/binary-clock/package/contents/ui/DotColumn.qml new file mode 100644 index 000000000..331c867d8 --- /dev/null +++ b/applets/binary-clock/package/contents/ui/DotColumn.qml @@ -0,0 +1,54 @@ +/* + * Rewrite of the KDE4-Plasma Binary Clock for KF5/Plasma/QML + * + * Copyright 2014 Joseph Wenninger + * + * Original code (KDE4): + * Copyright 2007 by Riccardo Iaconelli * + * Copyright 2007 by Davide Bettio + * + * This program 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 2 of + * the License, or (at your option) any later version. + * + * This program 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 this program. If not, see . + */ + +import QtQuick 2.0 + + +Item { + property int val + property int startbit + Dot { + x:0 + y:0 + val:parent.val + bit:1<<(startbit+3) + } + Dot { + x:0 + y:(dotSize+units.smallSpacing) + val:parent.val + bit:1<<(startbit+2) + } + Dot { + x:0 + y:2*(dotSize+units.smallSpacing) + val:parent.val + bit:1<<(startbit+1) + } + Dot { + x:0 + y:3*(dotSize+units.smallSpacing) + val:parent.val + bit:1< + * + * Based on analog-clock configGeneral.qml: + * Copyright 2013 David Edmundson + * + * This program 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 2 of the License, or + * (at your option) any later version. + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA. + */ + +import QtQuick 2.0 +import QtQuick.Controls 1.0 as QtControls +import QtQuick.Dialogs 1.1 +import QtQuick.Layouts 1.1 + + +QtControls.GroupBox { + width: childrenRect.width + height: childrenRect.height + + flat: true + title: i18n("Appearance") + + property alias cfg_showGrid: showGridCheckBox.checked + property alias cfg_showOffLeds: showOffLedsCheckBox.checked + property alias cfg_showSeconds: showSecondsCheckBox.checked + property alias cfg_useCustomColorForActive: useCustomColorForActiveCheckBox.checked + property alias cfg_customColorForActive: customColorForActive.color + property alias cfg_useCustomColorForInactive: useCustomColorForInactiveCheckBox.checked + property alias cfg_customColorForInactive: customColorForInactive.color + property alias cfg_useCustomColorForGrid: useCustomColorForGridCheckBox.checked + property alias cfg_customColorForGrid: customColorForGrid.color + + ColorDialog { + property var element; + id: colorDialog + visible: false + modality: Qt.WindowModal + title: "Choose a color" + showAlphaChannel: true + onAccepted: { element.color=color } + onRejected: { } + } + + + ColumnLayout { + QtControls.CheckBox { + id: showGridCheckBox + text: i18n("Draw grid") + } + QtControls.CheckBox { + id: showOffLedsCheckBox + text: i18n("Show inactive LEDs:") + } + QtControls.CheckBox { + id: showSecondsCheckBox + text: i18n("Display seconds") + } + QtControls.Label { + text: i18n("Colors:") + } + GridLayout { + columns: 2; + QtControls.CheckBox { + id: useCustomColorForActiveCheckBox + text: i18n("Use custom color for active LEDs") + } + Rectangle { + width:20 + height:20 + id:customColorForActive + MouseArea { + anchors.fill: parent + onClicked: { + colorDialog.element=parent; + colorDialog.color=parent.color; + colorDialog.open(); + } + } + } + + QtControls.CheckBox { + id: useCustomColorForInactiveCheckBox + text: i18n("Use custom color for inactive LEDs") + } + Rectangle { + width:20 + height:20 + id:customColorForInactive + MouseArea { + anchors.fill: parent + onClicked: { + colorDialog.element=parent; + colorDialog.color=parent.color; + colorDialog.open(); + } + } + } + + QtControls.CheckBox { + id: useCustomColorForGridCheckBox + text: i18n("Use custom color for grid") + } + Rectangle { + width:20 + height:20 + id:customColorForGrid + MouseArea { + anchors.fill: parent + onClicked: { + colorDialog.element=parent; + colorDialog.color=parent.color; + colorDialog.open(); + } + } + } + } + } +} diff --git a/applets/binary-clock/package/contents/ui/main.qml b/applets/binary-clock/package/contents/ui/main.qml new file mode 100644 index 000000000..b7dc105b9 --- /dev/null +++ b/applets/binary-clock/package/contents/ui/main.qml @@ -0,0 +1,70 @@ +/* + * Copyright 2014 Joseph Wenninger + * + * Based on fuzzy-clock main.qml: + * Copyright 2013 Heena Mahour + * Copyright 2013 Sebastian Kügler + * Copyright 2014 Kai Uwe Broulik + * + * This program 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 2 of + * the License, or (at your option) any later version. + * + * This program 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 this program. If not, see . + */ +import QtQuick 2.0 +import QtQuick.Layouts 1.1 + +import org.kde.plasma.plasmoid 2.0 +import org.kde.plasma.core 2.0 as PlasmaCore +import org.kde.plasma.components 2.0 as PlasmaComponents +import org.kde.plasma.extras 2.0 as PlasmaExtras +import org.kde.plasma.calendar 2.0 as PlasmaCalendar + +Item { + id: root + + property bool showSeconds:plasmoid.configuration.showSeconds + property int hours + property int minutes + property int seconds + width: units.gridUnit * 10 + height: units.gridUnit * 4 + + Plasmoid.preferredRepresentation: Plasmoid.compactRepresentation + + Plasmoid.toolTipMainText: Qt.formatDate(dataSource.data["Local"]["DateTime"],"dddd") + Plasmoid.toolTipSubText: Qt.formatDate(dataSource.data["Local"]["DateTime"], Qt.locale().dateFormat(Locale.LongFormat).replace(/(^dddd.?\s)|(,?\sdddd$)/, "")) + + PlasmaCore.DataSource { + id: dataSource + engine: "time" + connectedSources: ["Local"] + interval: showSeconds?1000:30000 + onDataChanged: { + var date = new Date(data["Local"]["DateTime"]); + hours = date.getHours(); + minutes = date.getMinutes(); + seconds = date.getSeconds(); + } + Component.onCompleted: { + onDataChanged(); + } + } + + Plasmoid.compactRepresentation: BinaryClock { } + + Plasmoid.fullRepresentation: PlasmaCalendar.MonthView { + Layout.minimumWidth: units.gridUnit * 20 + Layout.minimumHeight: units.gridUnit * 20 + + today: dataSource.data["Local"]["DateTime"] + } +} diff --git a/applets/binary-clock/plasma-applet-binaryclock.desktop b/applets/binary-clock/package/metadata.desktop similarity index 89% rename from applets/binary-clock/plasma-applet-binaryclock.desktop rename to applets/binary-clock/package/metadata.desktop index 8c78723d9..f5fb12cb3 100644 --- a/applets/binary-clock/plasma-applet-binaryclock.desktop +++ b/applets/binary-clock/package/metadata.desktop @@ -1,127 +1,129 @@ [Desktop Entry] Name=Binary Clock Name[ar]=ساعة ثنائية Name[bs]=Binarni sat Name[ca]=Rellotge binari Name[ca@valencia]=Rellotge binari Name[cs]=Binární hodiny Name[da]=Binært ur Name[de]=Binäre Uhr Name[el]=Δυαδικό ρολόι Name[en_GB]=Binary Clock Name[es]=Reloj binario Name[et]=Binaarkell Name[eu]=Ordulari bitarra Name[fi]=Binaarikello Name[fr]=Horloge binaire Name[ga]=Clog Dénártha Name[gl]=Reloxo binario Name[he]=שעון בִּינָרִי Name[hr]=Binarni sat Name[hu]=Bináris óra Name[is]=Tvíundarklukka Name[it]=Orologio binario Name[ja]=バイナリ時計 Name[kk]=Бинарлы сағат Name[km]=នាឡិកា​គោល​ពីរ Name[ko]=바이너리 시계 Name[ku]=Demjimêra Cot Name[lt]=Dvejetainis laikrodis Name[lv]=Binārs pulkstenis Name[mr]=बायनरी घड्याळ Name[nb]=Binær klokke Name[nds]=Bineerklock Name[nl]=Binaire klok Name[nn]=Binærklokke Name[pa]=ਬਾਈਨਰੀ ਘੜੀ Name[pl]=Zegar dwójkowy Name[pt]=Relógio Binário Name[pt_BR]=Relógio binário Name[ro]=Ceas binar Name[ru]=Двоичные часы Name[sk]=Binárne hodiny Name[sl]=Dvojiška ura Name[sq]=Orë Bianre Name[sr]=бинарни сат Name[sr@ijekavian]=бинарни сат Name[sr@ijekavianlatin]=binarni sat Name[sr@latin]=binarni sat Name[sv]=Binärklocka Name[th]=นาฬิกาไบนารี Name[tr]=İkili Saat Name[uk]=Двійковий годинник Name[wa]=Ôrlodje binaire Name[x-test]=xxBinary Clockxx Name[zh_CN]=二进制时钟 Name[zh_TW]=二進制時鐘 Comment=Time displayed in binary format Comment[ar]=الوقت يظهر بالتنسيق الثنائي Comment[bs]=Vrijeme prikazano u binarnom obliku Comment[ca]=Mostra l'hora en format binari Comment[ca@valencia]=Mostra l'hora en format binari Comment[cs]=Zobrazení času v binárním formátu Comment[da]=Tiden vist i binært format Comment[de]=Zeitanzeige im Binärformat Comment[el]=Εμφάνιση της ώρας σε δυαδική μορφή Comment[en_GB]=Time displayed in binary format Comment[es]=Hora mostrada en formato binario Comment[et]=Aja näitamine binaarkujul Comment[eu]=Ordua formatu bitarrean bistaratuta Comment[fi]=Binaarimuotoinen ajanesitys Comment[fr]=Heure affichée au format numérique Comment[ga]=An t-am i bhformáid dhénártha Comment[gl]=Mostra a hora no formato binario Comment[he]=השעה מוצגת בפורמט בִּינָרִי Comment[hr]=Vrijeme je prikazano u binarnom formatu Comment[hu]=Bináris óra Comment[is]=Sýnir tímann á tvíundarformi Comment[it]=Ora mostrata in formato binario Comment[ja]=時間をバイナリ形式で表示します Comment[kk]=Бинарлы пішімдегі уақыт Comment[km]=បាន​បង្ហាញ​ពេលវេលា​គិត​ជា​ទ្រង់ទ្រាយ​គោល​ពីរ Comment[ko]=이진수로 시각 표시 Comment[ku]=Dem di teşeya cot-bûyî de dê bê nîşandan Comment[lt]=Laikas rodomas skaitmeniniu formatu Comment[lv]=Rāda laiku binārā formātā Comment[mr]=बायनरी पद्धतिने वेळ दर्शविली जाते Comment[nb]=Tiden vist i binærformat Comment[nds]=Tiet in Bineerformaat wiest Comment[nl]=De tijd in binair formaat Comment[nn]=Klokka vist i binærformat Comment[pa]=ਬਾਈਨਰੀ ਫਾਰਮੈਟ ਵਿੱਚ ਸਮਾਂ ਵੇਖੋ Comment[pl]=Wyświetla czas w formacie dwójkowym Comment[pt]=Hora mostrada no formato binário Comment[pt_BR]=Hora exibida em formato binário Comment[ro]=Ora afișată în format binar Comment[ru]=Время в двоичной записи Comment[sk]=Čas zobrazený v binárnom formáte Comment[sl]=Čas je prikazan v dvojiški obliki Comment[sr]=Време приказано у бинарном облику Comment[sr@ijekavian]=Вријеме приказано у бинарном облику Comment[sr@ijekavianlatin]=Vrijeme prikazano u binarnom obliku Comment[sr@latin]=Vreme prikazano u binarnom obliku Comment[sv]=Tid visad med binärformat Comment[th]=แสดงเวลาในรูปแบบไบนารี Comment[tr]=Saati ikili biçimde görüntüle Comment[uk]=Час, показаний у двійковому форматі Comment[wa]=Eure håynêye e cogne binaire Comment[x-test]=xxTime displayed in binary formatxx Comment[zh_CN]=以二进制格式显示的时间 Comment[zh_TW]=以二進位格式顯示時間 Icon=clock + Type=Service ServiceTypes=Plasma/Applet - -X-KDE-Library=plasma_applet_binaryclock -X-KDE-PluginInfo-Author=Davide Bettio -X-KDE-PluginInfo-Email=davide.bettio@kdemail.net -X-KDE-PluginInfo-Name=binaryclock -X-KDE-PluginInfo-Version=1.0 -X-KDE-PluginInfo-Website=http://plasma.kde.org/ +X-KDE-PluginInfo-Author=Joseph Wenninger,Davide Bettio +X-KDE-PluginInfo-Email=jowenn@kde.org, davide.bettio@kdemail.net +X-KDE-PluginInfo-Name=org.kde.plasma.binaryclock +X-KDE-PluginInfo-Version=2.0 +X-KDE-PluginInfo-Website=plasma.kde.org +X-KDE-PluginInfo-Category=Date and Time +X-Plasma-Provides=org.kde.plasma.time,org.kde.plasma.date X-KDE-PluginInfo-Category=Date and Time -X-KDE-PluginInfo-Depends= -X-KDE-PluginInfo-License=GPL -X-KDE-PluginInfo-EnabledByDefault=true +X-Plasma-API=declarativeappletscript +X-Plasma-MainScript=ui/main.qml +X-Plasma-RemoteLocation= +-X-KDE-PluginInfo-Depends= +-X-KDE-PluginInfo-License=GPL +-X-KDE-PluginInfo-EnabledByDefault=true -X-Plasma-Requires-FileDialog=Unused -X-Plasma-Requires-LaunchApp=Unused