Merge pull request #92 from arcan1s/development

Prerelease master update
This commit is contained in:
Evgenii Alekseev 2016-04-29 14:02:33 +04:00
commit 24d45c6d48
27 changed files with 382 additions and 374 deletions

View File

@ -84,7 +84,7 @@ Item {
// ui // ui
Text { Text {
id: text id: text
anchors.fill: Layout anchors.fill: Plasmoid.Layout
renderType: Text.NativeRendering renderType: Text.NativeRendering
textFormat: Text.RichText textFormat: Text.RichText
wrapMode: plasmoid.configuration.wrapText ? Text.WordWrap : Text.NoWrap wrapMode: plasmoid.configuration.wrapText ? Text.WordWrap : Text.NoWrap

View File

@ -71,7 +71,9 @@ Item {
title: i18n("Select a color") title: i18n("Select a color")
onAccepted: { onAccepted: {
var text = textPattern.text var text = textPattern.text
textPattern.text = "<body bgcolor=\"" + backgroundDialog.color + "\">" + text + "</body>" textPattern.text = "<body bgcolor=\"" +
backgroundDialog.color + "\">" +
text + "</body>"
} }
} }
} }
@ -292,10 +294,9 @@ Item {
onClicked: { onClicked: {
if (!tags.currentText) return if (!tags.currentText) return
if (debug) console.debug("Add tag button") if (debug) console.debug("Add tag button")
var pos = textPattern.cursorPosition
var selected = textPattern.selectedText var selected = textPattern.selectedText
textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd) textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd)
textPattern.insert(pos, selected + "$" + tags.currentText) textPattern.insert(textPattern.cursorPosition, selected + "$" + tags.currentText)
} }
} }
QtControls.Button { QtControls.Button {

View File

@ -138,10 +138,12 @@ QStringList AWKeyCache::getRequiredKeys(const QStringList &keys,
if (used.contains(QString("swaptotgb"))) if (used.contains(QString("swaptotgb")))
used << QString("swapgb") << QString("swapfreegb"); used << QString("swapgb") << QString("swapfreegb");
// network keys // network keys
QStringList netKeys(QStringList() << QString("up") << QString("upkb") QStringList netKeys(QStringList()
<< QString("upunits") << QString("down") << QString("up") << QString("upkb")
<< QString("downkb") << QString("uptotal") << QString("uptotalkb")
<< QString("downunits")); << QString("upunits") << QString("down")
<< QString("downkb") << QString("downtotal")
<< QString("downtotalkb") << QString("downunits"));
for (auto key : netKeys) { for (auto key : netKeys) {
if (!used.contains(key)) if (!used.contains(key))
continue; continue;

View File

@ -124,8 +124,12 @@ QStringList AWKeyOperations::dictKeys() const
for (int i = m_devices[QString("net")].count() - 1; i >= 0; i--) { for (int i = m_devices[QString("net")].count() - 1; i >= 0; i--) {
allKeys.append(QString("downunits%1").arg(i)); allKeys.append(QString("downunits%1").arg(i));
allKeys.append(QString("upunits%1").arg(i)); allKeys.append(QString("upunits%1").arg(i));
allKeys.append(QString("downtotalkb%1").arg(i));
allKeys.append(QString("downtotal%1").arg(i));
allKeys.append(QString("downkb%1").arg(i)); allKeys.append(QString("downkb%1").arg(i));
allKeys.append(QString("down%1").arg(i)); allKeys.append(QString("down%1").arg(i));
allKeys.append(QString("uptotalkb%1").arg(i));
allKeys.append(QString("uptotal%1").arg(i));
allKeys.append(QString("upkb%1").arg(i)); allKeys.append(QString("upkb%1").arg(i));
allKeys.append(QString("up%1").arg(i)); allKeys.append(QString("up%1").arg(i));
} }

View File

@ -21,6 +21,7 @@
#include <QJSEngine> #include <QJSEngine>
#include <QRegExp> #include <QRegExp>
#include <QThread> #include <QThread>
#include <QTimer>
#include "awdataaggregator.h" #include "awdataaggregator.h"
#include "awdataengineaggregator.h" #include "awdataengineaggregator.h"
@ -49,13 +50,16 @@ AWKeys::AWKeys(QObject *parent)
dataEngineAggregator = new AWDataEngineAggregator(this); dataEngineAggregator = new AWDataEngineAggregator(this);
keyOperator = new AWKeyOperations(this); keyOperator = new AWKeyOperations(this);
m_timer = new QTimer(this);
m_timer->setSingleShot(false);
// update key data if required // update key data if required
connect(keyOperator, SIGNAL(updateKeys(QStringList)), this, connect(keyOperator, SIGNAL(updateKeys(QStringList)), this,
SLOT(reinitKeys(QStringList))); SLOT(reinitKeys(QStringList)));
connect(m_timer, SIGNAL(timeout()), this, SLOT(updateTextData()));
// transfer signal from AWDataAggregator object to QML ui // transfer signal from AWDataAggregator object to QML ui
connect(dataAggregator, SIGNAL(toolTipPainted(const QString)), this, connect(dataAggregator, SIGNAL(toolTipPainted(const QString)), this,
SIGNAL(needToolTipToBeUpdated(const QString))); SIGNAL(needToolTipToBeUpdated(const QString)));
connect(this, SIGNAL(needToBeUpdated()), this, SLOT(updateTextData()));
connect(this, SIGNAL(dropSourceFromDataengine(QString)), connect(this, SIGNAL(dropSourceFromDataengine(QString)),
dataEngineAggregator, SLOT(dropSource(QString))); dataEngineAggregator, SLOT(dropSource(QString)));
// transfer signal from dataengine to update source list // transfer signal from dataengine to update source list
@ -68,6 +72,9 @@ AWKeys::~AWKeys()
{ {
qCDebug(LOG_AW) << __PRETTY_FUNCTION__; qCDebug(LOG_AW) << __PRETTY_FUNCTION__;
m_timer->stop();
delete m_timer;
// core // core
delete dataEngineAggregator; delete dataEngineAggregator;
delete m_threadPool; delete m_threadPool;
@ -103,7 +110,11 @@ void AWKeys::initKeys(const QString currentPattern, const int interval,
keyOperator->updateCache(); keyOperator->updateCache();
dataEngineAggregator->clear(); dataEngineAggregator->clear();
return dataEngineAggregator->initDataEngines(interval); dataEngineAggregator->initDataEngines(interval);
// timer
m_timer->setInterval(interval);
m_timer->start();
} }
@ -183,12 +194,6 @@ void AWKeys::editItem(const QString type)
void AWKeys::dataUpdated(const QString &sourceName, void AWKeys::dataUpdated(const QString &sourceName,
const Plasma::DataEngine::Data &data) const Plasma::DataEngine::Data &data)
{ {
// do not log these parameters
if (sourceName == QString("update")) {
qCInfo(LOG_AW) << "Update data";
return emit(needToBeUpdated());
}
// run concurrent data update // run concurrent data update
QtConcurrent::run(m_threadPool, this, &AWKeys::setDataBySource, sourceName, QtConcurrent::run(m_threadPool, this, &AWKeys::setDataBySource, sourceName,
data); data);
@ -268,9 +273,14 @@ void AWKeys::calculateValues()
.indexOf(values[QString("netdev")].toString()); .indexOf(values[QString("netdev")].toString());
values[QString("down")] = values[QString("down%1").arg(netIndex)]; values[QString("down")] = values[QString("down%1").arg(netIndex)];
values[QString("downkb")] = values[QString("downkb%1").arg(netIndex)]; values[QString("downkb")] = values[QString("downkb%1").arg(netIndex)];
values[QString("downtotal")] = values[QString("downtotal%1").arg(netIndex)];
values[QString("downtotalkb")]
= values[QString("downtotalkb%1").arg(netIndex)];
values[QString("downunits")] = values[QString("downunits%1").arg(netIndex)]; values[QString("downunits")] = values[QString("downunits%1").arg(netIndex)];
values[QString("up")] = values[QString("up%1").arg(netIndex)]; values[QString("up")] = values[QString("up%1").arg(netIndex)];
values[QString("upkb")] = values[QString("upkb%1").arg(netIndex)]; values[QString("upkb")] = values[QString("upkb%1").arg(netIndex)];
values[QString("uptotal")] = values[QString("uptotal%1").arg(netIndex)];
values[QString("uptotalkb")] = values[QString("uptotalkb%1").arg(netIndex)];
values[QString("upunits")] = values[QString("upunits%1").arg(netIndex)]; values[QString("upunits")] = values[QString("upunits%1").arg(netIndex)];
// swaptot* // swaptot*

View File

@ -30,6 +30,7 @@ class AWDataEngineAggregator;
class AWKeyOperations; class AWKeyOperations;
class AWKeysAggregator; class AWKeysAggregator;
class QThreadPool; class QThreadPool;
class QTimer;
class AWKeys : public QObject class AWKeys : public QObject
{ {
@ -67,7 +68,6 @@ signals:
void dropSourceFromDataengine(const QString source); void dropSourceFromDataengine(const QString source);
void needTextToBeUpdated(const QString newText) const; void needTextToBeUpdated(const QString newText) const;
void needToolTipToBeUpdated(const QString newText) const; void needToolTipToBeUpdated(const QString newText) const;
void needToBeUpdated();
private slots: private slots:
void reinitKeys(const QStringList currentKeys); void reinitKeys(const QStringList currentKeys);
@ -83,6 +83,7 @@ private:
AWDataEngineAggregator *dataEngineAggregator = nullptr; AWDataEngineAggregator *dataEngineAggregator = nullptr;
AWKeysAggregator *aggregator = nullptr; AWKeysAggregator *aggregator = nullptr;
AWKeyOperations *keyOperator = nullptr; AWKeyOperations *keyOperator = nullptr;
QTimer *m_timer = nullptr;
// variables // variables
QVariantMap m_tooltipParams; QVariantMap m_tooltipParams;
QStringList m_foundBars, m_foundKeys, m_foundLambdas, m_requiredKeys; QStringList m_foundBars, m_foundKeys, m_foundLambdas, m_requiredKeys;

View File

@ -247,6 +247,8 @@ QStringList AWKeysAggregator::registerSource(const QString &source,
QRegExp mountUsedRegExp = QRegExp(QString("partitions/.*/usedspace")); QRegExp mountUsedRegExp = QRegExp(QString("partitions/.*/usedspace"));
QRegExp netRegExp = QRegExp( QRegExp netRegExp = QRegExp(
QString("network/interfaces/.*/(receiver|transmitter)/data$")); QString("network/interfaces/.*/(receiver|transmitter)/data$"));
QRegExp netTotalRegExp = QRegExp(
QString("network/interfaces/.*/(receiver|transmitter)/dataTotal$"));
if (source == QString("battery/ac")) { if (source == QString("battery/ac")) {
// AC // AC
@ -435,6 +437,22 @@ QStringList AWKeysAggregator::registerSource(const QString &source,
m_map.insertMulti(source, key); m_map.insertMulti(source, key);
m_formater[key] = FormaterType::NetSmartUnits; m_formater[key] = FormaterType::NetSmartUnits;
} }
} else if (source.contains(netTotalRegExp)) {
// network data total
QString type = source.contains(QString("receiver")) ? QString("down")
: QString("up");
int index
= m_devices[QString("net")].indexOf(source.split(QChar('/'))[2]);
if (index > -1) {
// kb
QString key = QString("%1totalkb%2").arg(type).arg(index);
m_map[source] = key;
m_formater[key] = FormaterType::Integer;
// mb
key = QString("%1total%2").arg(type).arg(index);
m_map.insertMulti(source, key);
m_formater[key] = FormaterType::MemMBFormat;
}
} else if (source.startsWith(QString("upgrade"))) { } else if (source.startsWith(QString("upgrade"))) {
// package manager // package manager
QString key = source; QString key = source;

View File

@ -641,8 +641,8 @@ void GraphicalItem::translate()
ui->label_customValue->setText(i18n("Value")); ui->label_customValue->setText(i18n("Value"));
ui->label_max->setText(i18n("Max value")); ui->label_max->setText(i18n("Max value"));
ui->label_min->setText(i18n("Min value")); ui->label_min->setText(i18n("Min value"));
ui->label_activeImageType->setText(i18n("Active image type")); ui->label_activeImageType->setText(i18n("Active filling type"));
ui->label_inactiveImageType->setText(i18n("Inctive image type")); ui->label_inactiveImageType->setText(i18n("Inctive filling type"));
ui->label_type->setText(i18n("Type")); ui->label_type->setText(i18n("Type"));
ui->label_count->setText(i18n("Points count")); ui->label_count->setText(i18n("Points count"));
ui->label_direction->setText(i18n("Direction")); ui->label_direction->setText(i18n("Direction"));

View File

@ -226,7 +226,7 @@
<item> <item>
<widget class="QLabel" name="label_activeImageType"> <widget class="QLabel" name="label_activeImageType">
<property name="text"> <property name="text">
<string>Active image type</string> <string>Active filling type</string>
</property> </property>
<property name="alignment"> <property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
@ -261,7 +261,7 @@
<item> <item>
<widget class="QLabel" name="label_inactiveImageType"> <widget class="QLabel" name="label_inactiveImageType">
<property name="text"> <property name="text">
<string>Inactive image type</string> <string>Inactive filling type</string>
</property> </property>
<property name="alignment"> <property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>

View File

@ -20,6 +20,7 @@
#include <QColor> #include <QColor>
#include <QGraphicsEllipseItem> #include <QGraphicsEllipseItem>
#include <QGraphicsScene> #include <QGraphicsScene>
#include <QUrl>
#include <cmath> #include <cmath>
@ -54,9 +55,9 @@ void GraphicalItemHelper::setParameters(const QString active,
m_activePen.setBrush(QBrush(stringToColor(active))); m_activePen.setBrush(QBrush(stringToColor(active)));
} else { } else {
qCInfo(LOG_LIB) << "Found path, trying to load Pixmap from" << active; qCInfo(LOG_LIB) << "Found path, trying to load Pixmap from" << active;
QPixmap pixmap = QPixmap(active); QPixmap pixmap = QPixmap(QUrl(active).toLocalFile());
if (pixmap.isNull()) { if (pixmap.isNull()) {
qCInfo(LOG_LIB) << "Invalid pixmap found" << active; qCWarning(LOG_LIB) << "Invalid pixmap found" << active;
m_activePen.setBrush(QBrush(QColor(0, 0, 0, 130))); m_activePen.setBrush(QBrush(QColor(0, 0, 0, 130)));
} else { } else {
m_activePen.setBrush(QBrush(pixmap.scaled(width, height))); m_activePen.setBrush(QBrush(pixmap.scaled(width, height)));
@ -66,9 +67,9 @@ void GraphicalItemHelper::setParameters(const QString active,
m_inactivePen.setBrush(QBrush(stringToColor(inactive))); m_inactivePen.setBrush(QBrush(stringToColor(inactive)));
} else { } else {
qCInfo(LOG_LIB) << "Found path, trying to load Pixmap from" << inactive; qCInfo(LOG_LIB) << "Found path, trying to load Pixmap from" << inactive;
QPixmap pixmap = QPixmap(inactive); QPixmap pixmap = QPixmap(QUrl(inactive).toLocalFile());
if (pixmap.isNull()) { if (pixmap.isNull()) {
qCInfo(LOG_LIB) << "Invalid pixmap found" << inactive; qCWarning(LOG_LIB) << "Invalid pixmap found" << inactive;
m_inactivePen.setBrush(QBrush(QColor(255, 255, 255, 130))); m_inactivePen.setBrush(QBrush(QColor(255, 255, 255, 130)));
} else { } else {
m_inactivePen.setBrush(QBrush(pixmap.scaled(width, height))); m_inactivePen.setBrush(QBrush(pixmap.scaled(width, height)));

View File

@ -57,7 +57,7 @@ Item {
// ui // ui
GridLayout { GridLayout {
anchors.fill: parent anchors.fill: Plasmoid.Layout
columns: plasmoid.configuration.verticalLayout ? 1 : dpAdds.numberOfDesktops() columns: plasmoid.configuration.verticalLayout ? 1 : dpAdds.numberOfDesktops()
rows: plasmoid.configuration.verticalLayout ? dpAdds.numberOfDesktops() : 1 rows: plasmoid.configuration.verticalLayout ? dpAdds.numberOfDesktops() : 1

View File

@ -17,6 +17,7 @@
import QtQuick 2.0 import QtQuick 2.0
import QtQuick.Controls 1.3 as QtControls import QtQuick.Controls 1.3 as QtControls
import QtQuick.Dialogs 1.2 as QtDialogs
import org.kde.plasma.private.desktoppanel 1.0 import org.kde.plasma.private.desktoppanel 1.0
@ -54,7 +55,24 @@ Item {
height: implicitHeight height: implicitHeight
width: parent.width width: parent.width
QtControls.Button { QtControls.Button {
width: parent.width * 3 / 12 width: parent.width * 3 / 15
text: i18n("Bgcolor")
onClicked: backgroundDialog.visible = true
QtDialogs.ColorDialog {
id: backgroundDialog
title: i18n("Select a color")
onAccepted: {
var text = textPattern.text
textPattern.text = "<body bgcolor=\"" +
backgroundDialog.color + "\">" +
text + "</body>"
}
}
}
QtControls.Button {
width: parent.width * 3 / 15
text: i18n("Font") text: i18n("Font")
iconName: "font" iconName: "font"
@ -66,123 +84,119 @@ Item {
"size": plasmoid.configuration.fontSize "size": plasmoid.configuration.fontSize
} }
var font = dpAdds.getFont(defaultFont) var font = dpAdds.getFont(defaultFont)
var pos = textPattern.cursorPosition if (font.applied != 1) {
if (debug) console.debug("No font selected")
return
}
var selected = textPattern.selectedText var selected = textPattern.selectedText
textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd) textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd)
textPattern.insert(pos, "<span style=\"color:" + font.color + textPattern.insert(textPattern.cursorPosition,
"; font-family:'" + font.family + "<span style=\"color:" + font.color +
"'; font-size:" + font.size + "pt;\">" + "; font-family:'" + font.family +
selected + "</span>") "'; font-size:" + font.size + "pt;\">" +
selected + "</span>")
} }
} }
QtControls.Button { QtControls.Button {
width: parent.width / 12 width: parent.width / 15
iconName: "format-indent-more" iconName: "format-indent-more"
onClicked: { onClicked: {
if (debug) console.debug("Indent button") if (debug) console.debug("Indent button")
var pos = textPattern.cursorPosition
var selected = textPattern.selectedText var selected = textPattern.selectedText
textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd) textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd)
textPattern.insert(pos, selected + "<br>\n") textPattern.insert(textPattern.cursorPosition, selected + "<br>\n")
} }
} }
QtControls.Button { QtControls.Button {
width: parent.width / 12 width: parent.width / 15
iconName: "format-text-bold" iconName: "format-text-bold"
onClicked: { onClicked: {
if (debug) console.debug("Bold button") if (debug) console.debug("Bold button")
var pos = textPattern.cursorPosition
var selected = textPattern.selectedText var selected = textPattern.selectedText
textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd) textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd)
textPattern.insert(pos, "<b>" + selected + "</b>") textPattern.insert(textPattern.cursorPosition, "<b>" + selected + "</b>")
} }
} }
QtControls.Button { QtControls.Button {
width: parent.width / 12 width: parent.width / 15
iconName: "format-text-italic" iconName: "format-text-italic"
onClicked: { onClicked: {
if (debug) console.debug("Italic button") if (debug) console.debug("Italic button")
var pos = textPattern.cursorPosition
var selected = textPattern.selectedText var selected = textPattern.selectedText
textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd) textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd)
textPattern.insert(pos, "<i>" + selected + "</i>") textPattern.insert(textPattern.cursorPosition, "<i>" + selected + "</i>")
} }
} }
QtControls.Button { QtControls.Button {
width: parent.width / 12 width: parent.width / 15
iconName: "format-text-underline" iconName: "format-text-underline"
onClicked: { onClicked: {
if (debug) console.debug("Underline button") if (debug) console.debug("Underline button")
var pos = textPattern.cursorPosition
var selected = textPattern.selectedText var selected = textPattern.selectedText
textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd) textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd)
textPattern.insert(pos, "<u>" + selected + "</u>") textPattern.insert(textPattern.cursorPosition, "<u>" + selected + "</u>")
} }
} }
QtControls.Button { QtControls.Button {
width: parent.width / 12 width: parent.width / 15
iconName: "format-text-strikethrough" iconName: "format-text-strikethrough"
onClicked: { onClicked: {
if (debug) console.debug("Strike button") if (debug) console.debug("Strike button")
var pos = textPattern.cursorPosition
var selected = textPattern.selectedText var selected = textPattern.selectedText
textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd) textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd)
textPattern.insert(pos, "<s>" + selected + "</s>") textPattern.insert(textPattern.cursorPosition, "<s>" + selected + "</s>")
} }
} }
QtControls.Button { QtControls.Button {
width: parent.width / 12 width: parent.width / 15
iconName: "format-justify-left" iconName: "format-justify-left"
onClicked: { onClicked: {
if (debug) console.debug("Left button") if (debug) console.debug("Left button")
var pos = textPattern.cursorPosition
var selected = textPattern.selectedText var selected = textPattern.selectedText
textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd) textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd)
textPattern.insert(pos, "<p align=\"left\">" + selected + "</p>") textPattern.insert(textPattern.cursorPosition, "<p align=\"left\">" + selected + "</p>")
} }
} }
QtControls.Button { QtControls.Button {
width: parent.width / 12 width: parent.width / 15
iconName: "format-justify-center" iconName: "format-justify-center"
onClicked: { onClicked: {
if (debug) console.debug("Center button") if (debug) console.debug("Center button")
var pos = textPattern.cursorPosition
var selected = textPattern.selectedText var selected = textPattern.selectedText
textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd) textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd)
textPattern.insert(pos, "<p align=\"center\">" + selected + "</p>") textPattern.insert(textPattern.cursorPosition, "<p align=\"center\">" + selected + "</p>")
} }
} }
QtControls.Button { QtControls.Button {
width: parent.width / 12 width: parent.width / 15
iconName: "format-justify-right" iconName: "format-justify-right"
onClicked: { onClicked: {
if (debug) console.debug("Right button") if (debug) console.debug("Right button")
var pos = textPattern.cursorPosition
var selected = textPattern.selectedText var selected = textPattern.selectedText
textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd) textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd)
textPattern.insert(pos, "<p align=\"right\">" + selected + "</p>") textPattern.insert(textPattern.cursorPosition, "<p align=\"right\">" + selected + "</p>")
} }
} }
QtControls.Button { QtControls.Button {
width: parent.width / 12 width: parent.width / 15
iconName: "format-justify-fill" iconName: "format-justify-fill"
onClicked: { onClicked: {
if (debug) console.debug("Justify button") if (debug) console.debug("Justify button")
var pos = textPattern.cursorPosition
var selected = textPattern.selectedText var selected = textPattern.selectedText
textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd) textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd)
textPattern.insert(pos, "<p align=\"justify\">" + selected + "</p>") textPattern.insert(textPattern.cursorPosition, "<p align=\"justify\">" + selected + "</p>")
} }
} }
} }
@ -201,10 +215,9 @@ Item {
onClicked: { onClicked: {
if (debug) console.debug("Add tag button") if (debug) console.debug("Add tag button")
var pos = textPattern.cursorPosition
var selected = textPattern.selectedText var selected = textPattern.selectedText
textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd) textPattern.remove(textPattern.selectionStart, textPattern.selectionEnd)
textPattern.insert(pos, selected + "$" + tags.currentText) textPattern.insert(textPattern.cursorPosition, selected + "$" + tags.currentText)
} }
} }
QtControls.Button { QtControls.Button {

View File

@ -318,11 +318,14 @@ QVariantMap DPAdds::getFont(const QVariantMap defaultFont) const
qCDebug(LOG_DP) << "Default font is" << defaultFont; qCDebug(LOG_DP) << "Default font is" << defaultFont;
QVariantMap fontMap; QVariantMap fontMap;
int ret = 0;
CFont defaultCFont = CFont(defaultFont[QString("family")].toString(), CFont defaultCFont = CFont(defaultFont[QString("family")].toString(),
defaultFont[QString("size")].toInt(), 400, false, defaultFont[QString("size")].toInt(), 400, false,
defaultFont[QString("color")].toString()); defaultFont[QString("color")].toString());
CFont font CFont font = CFontDialog::getFont(i18n("Select font"), defaultCFont, false,
= CFontDialog::getFont(i18n("Select font"), defaultCFont, false, false); false, &ret);
fontMap[QString("applied")] = ret;
fontMap[QString("color")] = font.color().name(); fontMap[QString("color")] = font.color().name();
fontMap[QString("family")] = font.family(); fontMap[QString("family")] = font.family();
fontMap[QString("size")] = font.pointSize(); fontMap[QString("size")] = font.pointSize();

View File

@ -29,7 +29,6 @@
#include "sources/playersource.h" #include "sources/playersource.h"
#include "sources/processessource.h" #include "sources/processessource.h"
#include "sources/quotessource.h" #include "sources/quotessource.h"
#include "sources/updatesource.h"
#include "sources/upgradesource.h" #include "sources/upgradesource.h"
#include "sources/weathersource.h" #include "sources/weathersource.h"
#include "version.h" #include "version.h"
@ -140,10 +139,6 @@ void ExtSysMonAggregator::init(const QHash<QString, QString> config)
AbstractExtSysMonSource *quotesItem = new QuotesSource(this, QStringList()); AbstractExtSysMonSource *quotesItem = new QuotesSource(this, QStringList());
for (auto source : quotesItem->sources()) for (auto source : quotesItem->sources())
m_map[source] = quotesItem; m_map[source] = quotesItem;
// update
AbstractExtSysMonSource *updateItem = new UpdateSource(this, QStringList());
for (auto source : updateItem->sources())
m_map[source] = updateItem;
// upgrade // upgrade
AbstractExtSysMonSource *upgradeItem AbstractExtSysMonSource *upgradeItem
= new UpgradeSource(this, QStringList()); = new UpgradeSource(this, QStringList());

View File

@ -1,69 +0,0 @@
/***************************************************************************
* This file is part of awesome-widgets *
* *
* awesome-widgets 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. *
* *
* awesome-widgets 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 awesome-widgets. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#include "updatesource.h"
#include "awdebug.h"
UpdateSource::UpdateSource(QObject *parent, const QStringList args)
: AbstractExtSysMonSource(parent, args)
{
Q_ASSERT(args.count() == 0);
qCDebug(LOG_ESM) << __PRETTY_FUNCTION__;
}
UpdateSource::~UpdateSource()
{
qCDebug(LOG_ESM) << __PRETTY_FUNCTION__;
}
QVariant UpdateSource::data(QString source)
{
qCDebug(LOG_ESM) << "Source" << source;
return true;
}
QVariantMap UpdateSource::initialData(QString source) const
{
qCDebug(LOG_ESM) << "Source" << source;
QVariantMap data;
if (source == QString("update")) {
data[QString("min")] = true;
data[QString("max")] = true;
data[QString("name")] = QString("Simple value which is always true");
data[QString("type")] = QString("bool");
data[QString("units")] = QString("");
}
return data;
}
QStringList UpdateSource::sources() const
{
QStringList sources;
sources.append(QString("update"));
return sources;
}

View File

@ -1,38 +0,0 @@
/***************************************************************************
* This file is part of awesome-widgets *
* *
* awesome-widgets 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. *
* *
* awesome-widgets 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 awesome-widgets. If not, see http://www.gnu.org/licenses/ *
***************************************************************************/
#ifndef UPDATESOURCE_H
#define UPDATESOURCE_H
#include <QObject>
#include "abstractextsysmonsource.h"
class UpdateSource : public AbstractExtSysMonSource
{
public:
explicit UpdateSource(QObject *parent, const QStringList args);
virtual ~UpdateSource();
QVariant data(QString source);
QVariantMap initialData(QString source) const;
void run(){};
QStringList sources() const;
};
#endif /* UPDATESOURCE_H */

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n" "Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
"POT-Creation-Date: 2016-04-06 14:39+0300\n" "POT-Creation-Date: 2016-04-29 12:21+0300\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"
@ -330,6 +330,9 @@ msgid ""
"awesome-widgets/\">project homepage</a>" "awesome-widgets/\">project homepage</a>"
msgstr "" msgstr ""
msgid "Bgcolor"
msgstr ""
msgid "AC" msgid "AC"
msgstr "" msgstr ""
@ -547,9 +550,6 @@ msgstr ""
msgid "Use images" msgid "Use images"
msgstr "" msgstr ""
msgid "Points count"
msgstr ""
msgid "Use custom formula" msgid "Use custom formula"
msgstr "" msgstr ""
@ -562,27 +562,18 @@ msgstr ""
msgid "Min value" msgid "Min value"
msgstr "" msgstr ""
msgid "Use image for active" msgid "Active filling type"
msgstr "" msgstr ""
msgid "Active color" msgid "Inctive filling type"
msgstr ""
msgid "Active image"
msgstr ""
msgid "Use image for inactive"
msgstr ""
msgid "Inactive color"
msgstr ""
msgid "Inactive image"
msgstr "" msgstr ""
msgid "Type" msgid "Type"
msgstr "" msgstr ""
msgid "Points count"
msgstr ""
msgid "Direction" msgid "Direction"
msgstr "" msgstr ""
@ -592,6 +583,12 @@ msgstr ""
msgid "Width" msgid "Width"
msgstr "" msgstr ""
msgid "color"
msgstr ""
msgid "image"
msgstr ""
msgid "Active desktop" msgid "Active desktop"
msgstr "" msgstr ""

View File

@ -6,8 +6,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n" "Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
"POT-Creation-Date: 2016-04-06 14:39+0300\n" "POT-Creation-Date: 2016-04-29 12:21+0300\n"
"PO-Revision-Date: 2016-04-06 14:40+0300\n" "PO-Revision-Date: 2016-04-29 12:21+0300\n"
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n" "Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
"Language-Team: English <kde-russian@lists.kde.ru>\n" "Language-Team: English <kde-russian@lists.kde.ru>\n"
"Language: ru\n" "Language: ru\n"
@ -335,6 +335,9 @@ msgstr ""
"Detailed information may be found on <a href=\"https://arcanis.me/projects/" "Detailed information may be found on <a href=\"https://arcanis.me/projects/"
"awesome-widgets/\">project homepage</a>" "awesome-widgets/\">project homepage</a>"
msgid "Bgcolor"
msgstr "Bgcolor"
msgid "AC" msgid "AC"
msgstr "AC" msgstr "AC"
@ -556,9 +559,6 @@ msgstr "Timestamp"
msgid "Use images" msgid "Use images"
msgstr "Use images" msgstr "Use images"
msgid "Points count"
msgstr "Points count"
msgid "Use custom formula" msgid "Use custom formula"
msgstr "Use custom formula" msgstr "Use custom formula"
@ -571,27 +571,18 @@ msgstr "Max value"
msgid "Min value" msgid "Min value"
msgstr "Min value" msgstr "Min value"
msgid "Use image for active" msgid "Active filling type"
msgstr "Use image for active" msgstr "Active filling type"
msgid "Active color" msgid "Inctive filling type"
msgstr "Active color" msgstr "Inctive filling type"
msgid "Active image"
msgstr "Active image"
msgid "Use image for inactive"
msgstr "Use image for inactive"
msgid "Inactive color"
msgstr "Inactive color"
msgid "Inactive image"
msgstr "Inactive image"
msgid "Type" msgid "Type"
msgstr "Type" msgstr "Type"
msgid "Points count"
msgstr "Points count"
msgid "Direction" msgid "Direction"
msgstr "Direction" msgstr "Direction"
@ -601,6 +592,12 @@ msgstr "Height"
msgid "Width" msgid "Width"
msgstr "Width" msgstr "Width"
msgid "color"
msgstr "color"
msgid "image"
msgstr "image"
msgid "Active desktop" msgid "Active desktop"
msgstr "Active desktop" msgstr "Active desktop"
@ -642,6 +639,18 @@ msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails" msgid "Your emails"
msgstr "esalexeev@gmail.com" msgstr "esalexeev@gmail.com"
#~ msgid "Use image for active"
#~ msgstr "Use image for active"
#~ msgid "Active color"
#~ msgstr "Active color"
#~ msgid "Use image for inactive"
#~ msgstr "Use image for inactive"
#~ msgid "Inactive color"
#~ msgstr "Inactive color"
#~ msgid "Add lambda" #~ msgid "Add lambda"
#~ msgstr "Add lambda" #~ msgstr "Add lambda"

View File

@ -9,7 +9,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Awesome widgets\n" "Project-Id-Version: Awesome widgets\n"
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n" "Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
"POT-Creation-Date: 2016-04-06 14:39+0300\n" "POT-Creation-Date: 2016-04-29 12:21+0300\n"
"PO-Revision-Date: 2015-09-26 22:07+0000\n" "PO-Revision-Date: 2015-09-26 22:07+0000\n"
"Last-Translator: Ernesto Avilés Vázquez <whippiii@gmail.com>\n" "Last-Translator: Ernesto Avilés Vázquez <whippiii@gmail.com>\n"
"Language-Team: Spanish (http://www.transifex.com/arcanis/awesome-widgets/" "Language-Team: Spanish (http://www.transifex.com/arcanis/awesome-widgets/"
@ -340,6 +340,10 @@ msgstr ""
"Puedes encontrar información detallada en el <a href=\"https://arcanis.me/" "Puedes encontrar información detallada en el <a href=\"https://arcanis.me/"
"projects/awesome-widgets/\">sitio del proyecto</a>" "projects/awesome-widgets/\">sitio del proyecto</a>"
#, fuzzy
msgid "Bgcolor"
msgstr "Color de la CPU"
msgid "AC" msgid "AC"
msgstr "CA" msgstr "CA"
@ -561,9 +565,6 @@ msgstr "Marca de tiempo"
msgid "Use images" msgid "Use images"
msgstr "Usar imágenes" msgstr "Usar imágenes"
msgid "Points count"
msgstr ""
#, fuzzy #, fuzzy
msgid "Use custom formula" msgid "Use custom formula"
msgstr "Formato personalizado de hora" msgstr "Formato personalizado de hora"
@ -580,29 +581,19 @@ msgid "Min value"
msgstr "Mostrar valor" msgstr "Mostrar valor"
#, fuzzy #, fuzzy
msgid "Use image for active" msgid "Active filling type"
msgstr "Usar imágenes"
msgid "Active color"
msgstr "Color de activo"
#, fuzzy
msgid "Active image"
msgstr "Activo" msgstr "Activo"
msgid "Use image for inactive"
msgstr ""
msgid "Inactive color"
msgstr "Color de inactivo"
#, fuzzy #, fuzzy
msgid "Inactive image" msgid "Inctive filling type"
msgstr "Escritorio inactivo" msgstr "Escritorio inactivo"
msgid "Type" msgid "Type"
msgstr "Tipo" msgstr "Tipo"
msgid "Points count"
msgstr ""
msgid "Direction" msgid "Direction"
msgstr "Dirección" msgstr "Dirección"
@ -612,6 +603,14 @@ msgstr "Alto"
msgid "Width" msgid "Width"
msgstr "Ancho" msgstr "Ancho"
#, fuzzy
msgid "color"
msgstr "Color de la CPU"
#, fuzzy
msgid "image"
msgstr "Usar imágenes"
msgid "Active desktop" msgid "Active desktop"
msgstr "Escritorio activo" msgstr "Escritorio activo"
@ -653,5 +652,15 @@ msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails" msgid "Your emails"
msgstr "Tu correo electrónico" msgstr "Tu correo electrónico"
#, fuzzy
#~ msgid "Use image for active"
#~ msgstr "Usar imágenes"
#~ msgid "Active color"
#~ msgstr "Color de activo"
#~ msgid "Inactive color"
#~ msgstr "Color de inactivo"
#~ msgid "Add lambda" #~ msgid "Add lambda"
#~ msgstr "Añadir lambda" #~ msgstr "Añadir lambda"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n" "Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
"POT-Creation-Date: 2016-04-06 14:39+0300\n" "POT-Creation-Date: 2016-04-29 12:21+0300\n"
"PO-Revision-Date: 2015-07-31 22:16+0300\n" "PO-Revision-Date: 2015-07-31 22:16+0300\n"
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n" "Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
"Language-Team: French <kde-russian@lists.kde.ru>\n" "Language-Team: French <kde-russian@lists.kde.ru>\n"
@ -346,6 +346,10 @@ msgstr ""
"D'avantage d'informations se trouvent sur <a href=\"https://arcanis.me/" "D'avantage d'informations se trouvent sur <a href=\"https://arcanis.me/"
"projects/awesome-widgets/\">la page du projet</a>" "projects/awesome-widgets/\">la page du projet</a>"
#, fuzzy
msgid "Bgcolor"
msgstr "Couleur processeur"
msgid "AC" msgid "AC"
msgstr "" msgstr ""
@ -579,9 +583,6 @@ msgstr "Durée"
msgid "Use images" msgid "Use images"
msgstr "" msgstr ""
msgid "Points count"
msgstr ""
#, fuzzy #, fuzzy
msgid "Use custom formula" msgid "Use custom formula"
msgstr "Format de l'heure personnalisé" msgstr "Format de l'heure personnalisé"
@ -598,31 +599,20 @@ msgstr "Afficher la valeur"
msgid "Min value" msgid "Min value"
msgstr "Afficher la valeur" msgstr "Afficher la valeur"
msgid "Use image for active"
msgstr ""
#, fuzzy #, fuzzy
msgid "Active color" msgid "Active filling type"
msgstr "Batterie" msgstr "Batterie"
#, fuzzy #, fuzzy
msgid "Active image" msgid "Inctive filling type"
msgstr "Batterie"
msgid "Use image for inactive"
msgstr ""
#, fuzzy
msgid "Inactive color"
msgstr "Batterie"
#, fuzzy
msgid "Inactive image"
msgstr "Bureau inactif" msgstr "Bureau inactif"
msgid "Type" msgid "Type"
msgstr "" msgstr ""
msgid "Points count"
msgstr ""
msgid "Direction" msgid "Direction"
msgstr "" msgstr ""
@ -633,6 +623,13 @@ msgstr "léger"
msgid "Width" msgid "Width"
msgstr "" msgstr ""
#, fuzzy
msgid "color"
msgstr "Couleur processeur"
msgid "image"
msgstr ""
msgid "Active desktop" msgid "Active desktop"
msgstr "Bureau actif" msgstr "Bureau actif"
@ -674,6 +671,14 @@ msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails" msgid "Your emails"
msgstr "esalexeev@gmail.com mermouy@gmail.com" msgstr "esalexeev@gmail.com mermouy@gmail.com"
#, fuzzy
#~ msgid "Active color"
#~ msgstr "Batterie"
#, fuzzy
#~ msgid "Inactive color"
#~ msgstr "Batterie"
#~ msgid "Free space on %1 less than 10%" #~ msgid "Free space on %1 less than 10%"
#~ msgstr "Espace libre sur %1 inférieur à 10%" #~ msgstr "Espace libre sur %1 inférieur à 10%"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Awesome widgets\n" "Project-Id-Version: Awesome widgets\n"
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n" "Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
"POT-Creation-Date: 2016-04-06 14:39+0300\n" "POT-Creation-Date: 2016-04-29 12:21+0300\n"
"PO-Revision-Date: 2015-08-20 22:52+0300\n" "PO-Revision-Date: 2015-08-20 22:52+0300\n"
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n" "Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
"Language-Team: Dutch <kde-i18n-nl@kde.org>\n" "Language-Team: Dutch <kde-i18n-nl@kde.org>\n"
@ -350,6 +350,10 @@ msgstr ""
"Gedetailleerde informatie kan worden gevonden op de <a href=\"http://arcanis." "Gedetailleerde informatie kan worden gevonden op de <a href=\"http://arcanis."
"name/projects/awesome-widgets/\">projectwebsite</a>" "name/projects/awesome-widgets/\">projectwebsite</a>"
#, fuzzy
msgid "Bgcolor"
msgstr "CPU-kleur"
msgid "AC" msgid "AC"
msgstr "" msgstr ""
@ -579,9 +583,6 @@ msgstr ""
msgid "Use images" msgid "Use images"
msgstr "" msgstr ""
msgid "Points count"
msgstr ""
#, fuzzy #, fuzzy
msgid "Use custom formula" msgid "Use custom formula"
msgstr "Aangepaste tijdsopmaak" msgstr "Aangepaste tijdsopmaak"
@ -597,29 +598,20 @@ msgstr "Waarde weergeven"
msgid "Min value" msgid "Min value"
msgstr "Waarde weergeven" msgstr "Waarde weergeven"
msgid "Use image for active" #, fuzzy
msgstr "" msgid "Active filling type"
msgid "Active color"
msgstr "Actieve kleur" msgstr "Actieve kleur"
#, fuzzy #, fuzzy
msgid "Active image" msgid "Inctive filling type"
msgstr "Actieve kleur"
msgid "Use image for inactive"
msgstr ""
msgid "Inactive color"
msgstr "Inactieve kleur"
#, fuzzy
msgid "Inactive image"
msgstr "Inactieve kleur" msgstr "Inactieve kleur"
msgid "Type" msgid "Type"
msgstr "Type" msgstr "Type"
msgid "Points count"
msgstr ""
msgid "Direction" msgid "Direction"
msgstr "Richting" msgstr "Richting"
@ -629,6 +621,13 @@ msgstr "Hoogte"
msgid "Width" msgid "Width"
msgstr "Breedte" msgstr "Breedte"
#, fuzzy
msgid "color"
msgstr "CPU-kleur"
msgid "image"
msgstr ""
#, fuzzy #, fuzzy
msgid "Active desktop" msgid "Active desktop"
msgstr "Actieve kleur" msgstr "Actieve kleur"
@ -673,6 +672,12 @@ msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails" msgid "Your emails"
msgstr "vistausss@outlook.com" msgstr "vistausss@outlook.com"
#~ msgid "Active color"
#~ msgstr "Actieve kleur"
#~ msgid "Inactive color"
#~ msgstr "Inactieve kleur"
#~ msgid "Free space on %1 less than 10%" #~ msgid "Free space on %1 less than 10%"
#~ msgstr "De vrije ruimte op %1 is minder dan 10%" #~ msgstr "De vrije ruimte op %1 is minder dan 10%"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n" "Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
"POT-Creation-Date: 2016-04-06 14:39+0300\n" "POT-Creation-Date: 2016-04-29 12:21+0300\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"
@ -335,6 +335,10 @@ msgstr ""
"Szczegóły znajdziesz na <a href=\"http://arcanis.name/projects/awesome-" "Szczegóły znajdziesz na <a href=\"http://arcanis.name/projects/awesome-"
"widgets/\">stronie projektu</a>" "widgets/\">stronie projektu</a>"
#, fuzzy
msgid "Bgcolor"
msgstr "Kolor procesora"
msgid "AC" msgid "AC"
msgstr "Zasialnie zewnętrzne" msgstr "Zasialnie zewnętrzne"
@ -555,9 +559,6 @@ msgstr "Znacznik czasu"
msgid "Use images" msgid "Use images"
msgstr "Użyj obrazków" msgstr "Użyj obrazków"
msgid "Points count"
msgstr ""
#, fuzzy #, fuzzy
msgid "Use custom formula" msgid "Use custom formula"
msgstr "Twój format czasu" msgstr "Twój format czasu"
@ -574,29 +575,19 @@ msgid "Min value"
msgstr "Pokaż wartość" msgstr "Pokaż wartość"
#, fuzzy #, fuzzy
msgid "Use image for active" msgid "Active filling type"
msgstr "Użyj obrazków"
msgid "Active color"
msgstr "Kolor aktywnego"
#, fuzzy
msgid "Active image"
msgstr "Aktywny" msgstr "Aktywny"
msgid "Use image for inactive"
msgstr ""
msgid "Inactive color"
msgstr "Kolor nieaktywnego"
#, fuzzy #, fuzzy
msgid "Inactive image" msgid "Inctive filling type"
msgstr "Nie aktywny pulpit" msgstr "Nie aktywny pulpit"
msgid "Type" msgid "Type"
msgstr "Typ" msgstr "Typ"
msgid "Points count"
msgstr ""
msgid "Direction" msgid "Direction"
msgstr "Kierunek" msgstr "Kierunek"
@ -606,6 +597,14 @@ msgstr "Wysokość"
msgid "Width" msgid "Width"
msgstr "Szerokość" msgstr "Szerokość"
#, fuzzy
msgid "color"
msgstr "Kolor procesora"
#, fuzzy
msgid "image"
msgstr "Użyj obrazków"
msgid "Active desktop" msgid "Active desktop"
msgstr "AKtywny pulpit" msgstr "AKtywny pulpit"
@ -647,5 +646,15 @@ msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails" msgid "Your emails"
msgstr "terminus@linux.pl" msgstr "terminus@linux.pl"
#, fuzzy
#~ msgid "Use image for active"
#~ msgstr "Użyj obrazków"
#~ msgid "Active color"
#~ msgstr "Kolor aktywnego"
#~ msgid "Inactive color"
#~ msgstr "Kolor nieaktywnego"
#~ msgid "Add lambda" #~ msgid "Add lambda"
#~ msgstr "Dodaj różnicę" #~ msgstr "Dodaj różnicę"

View File

@ -6,7 +6,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n" "Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
"POT-Creation-Date: 2016-04-06 14:39+0300\n" "POT-Creation-Date: 2016-04-29 12:21+0300\n"
"PO-Revision-Date: 2015-07-31 22:21+0300\n" "PO-Revision-Date: 2015-07-31 22:21+0300\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"
@ -347,6 +347,10 @@ msgstr ""
"Informações detalhadas podem ser encontradas na <a href=\"http://arcanis." "Informações detalhadas podem ser encontradas na <a href=\"http://arcanis."
"name/projects/awesome-widgets/\">página do projeto</a>" "name/projects/awesome-widgets/\">página do projeto</a>"
#, fuzzy
msgid "Bgcolor"
msgstr "Cor da CPU"
msgid "AC" msgid "AC"
msgstr "" msgstr ""
@ -570,9 +574,6 @@ msgstr "Hora"
msgid "Use images" msgid "Use images"
msgstr "" msgstr ""
msgid "Points count"
msgstr ""
#, fuzzy #, fuzzy
msgid "Use custom formula" msgid "Use custom formula"
msgstr "Formato de hora personalizado" msgstr "Formato de hora personalizado"
@ -588,29 +589,20 @@ msgstr "Mostrar valor"
msgid "Min value" msgid "Min value"
msgstr "Mostrar valor" msgstr "Mostrar valor"
msgid "Use image for active" #, fuzzy
msgstr "" msgid "Active filling type"
msgid "Active color"
msgstr "Cor ativa" msgstr "Cor ativa"
#, fuzzy #, fuzzy
msgid "Active image" msgid "Inctive filling type"
msgstr "Cor ativa"
msgid "Use image for inactive"
msgstr ""
msgid "Inactive color"
msgstr "Cor inativa"
#, fuzzy
msgid "Inactive image"
msgstr "Desktop inativo" msgstr "Desktop inativo"
msgid "Type" msgid "Type"
msgstr "Tipo" msgstr "Tipo"
msgid "Points count"
msgstr ""
msgid "Direction" msgid "Direction"
msgstr "Direção" msgstr "Direção"
@ -620,6 +612,13 @@ msgstr "Altura"
msgid "Width" msgid "Width"
msgstr "Largura" msgstr "Largura"
#, fuzzy
msgid "color"
msgstr "Cor da CPU"
msgid "image"
msgstr ""
msgid "Active desktop" msgid "Active desktop"
msgstr "Desktop ativo" msgstr "Desktop ativo"
@ -661,6 +660,12 @@ msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails" msgid "Your emails"
msgstr "under@insicuri.net" msgstr "under@insicuri.net"
#~ msgid "Active color"
#~ msgstr "Cor ativa"
#~ msgid "Inactive color"
#~ msgstr "Cor inativa"
#~ msgid "Free space on %1 less than 10%" #~ msgid "Free space on %1 less than 10%"
#~ msgstr "O espaço livre em %1 é menor que 10%" #~ msgstr "O espaço livre em %1 é menor que 10%"

View File

@ -6,8 +6,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n" "Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
"POT-Creation-Date: 2016-04-06 14:39+0300\n" "POT-Creation-Date: 2016-04-29 12:21+0300\n"
"PO-Revision-Date: 2016-04-06 14:41+0300\n" "PO-Revision-Date: 2016-04-29 12:22+0300\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"
@ -335,6 +335,9 @@ msgstr ""
"Подробная информация может быть найдена на <a href=\"https://arcanis.me/ru/" "Подробная информация может быть найдена на <a href=\"https://arcanis.me/ru/"
"projects/awesome-widgets/\">домашней странице проекта</a>" "projects/awesome-widgets/\">домашней странице проекта</a>"
msgid "Bgcolor"
msgstr "Цвет фона"
msgid "AC" msgid "AC"
msgstr "Адаптор питания" msgstr "Адаптор питания"
@ -556,9 +559,6 @@ msgstr "Таймштамп"
msgid "Use images" msgid "Use images"
msgstr "Использовать изображения" msgstr "Использовать изображения"
msgid "Points count"
msgstr "Количество точек"
msgid "Use custom formula" msgid "Use custom formula"
msgstr "Использовать свою формулу" msgstr "Использовать свою формулу"
@ -571,27 +571,18 @@ msgstr "Максимальное значение"
msgid "Min value" msgid "Min value"
msgstr "Минимальное значение" msgstr "Минимальное значение"
msgid "Use image for active" msgid "Active filling type"
msgstr "Использовать изображения для активной части" msgstr "Тип активного наполнения"
msgid "Active color" msgid "Inctive filling type"
msgstr "Активный цвет" msgstr "Тип неактивного наполнения"
msgid "Active image"
msgstr "Изображение активной части"
msgid "Use image for inactive"
msgstr "Использовать изображение для неактивной части"
msgid "Inactive color"
msgstr "Неактивный цвет"
msgid "Inactive image"
msgstr "Изображение неактивной части"
msgid "Type" msgid "Type"
msgstr "Тип" msgstr "Тип"
msgid "Points count"
msgstr "Количество точек"
msgid "Direction" msgid "Direction"
msgstr "Направление" msgstr "Направление"
@ -601,6 +592,12 @@ msgstr "Высота"
msgid "Width" msgid "Width"
msgstr "Ширина" msgstr "Ширина"
msgid "color"
msgstr "цвет"
msgid "image"
msgstr "изображение"
msgid "Active desktop" msgid "Active desktop"
msgstr "Активный рабочий стол" msgstr "Активный рабочий стол"
@ -642,6 +639,18 @@ msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails" msgid "Your emails"
msgstr "esalexeev@gmail.com" msgstr "esalexeev@gmail.com"
#~ msgid "Use image for active"
#~ msgstr "Использовать изображения для активной части"
#~ msgid "Active color"
#~ msgstr "Активный цвет"
#~ msgid "Use image for inactive"
#~ msgstr "Использовать изображение для неактивной части"
#~ msgid "Inactive color"
#~ msgstr "Неактивный цвет"
#~ msgid "Add lambda" #~ msgid "Add lambda"
#~ msgstr "Добавить лямбду" #~ msgstr "Добавить лямбду"

View File

@ -6,7 +6,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n" "Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
"POT-Creation-Date: 2016-04-06 14:39+0300\n" "POT-Creation-Date: 2016-04-29 12:21+0300\n"
"PO-Revision-Date: 2015-09-27 12:37+0300\n" "PO-Revision-Date: 2015-09-27 12:37+0300\n"
"Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n" "Last-Translator: Evgeniy Alekseev <esalexeev@gmail.com>\n"
"Language-Team: Ukrainian <kde-russian@lists.kde.ru>\n" "Language-Team: Ukrainian <kde-russian@lists.kde.ru>\n"
@ -349,6 +349,10 @@ msgstr ""
"Детальна інформація може бути знайдена на <a href=\"https://arcanis.me/" "Детальна інформація може бути знайдена на <a href=\"https://arcanis.me/"
"projects/awesome-widgets/\">домашній сторінці проекту</a>" "projects/awesome-widgets/\">домашній сторінці проекту</a>"
#, fuzzy
msgid "Bgcolor"
msgstr "Колір CPU"
msgid "AC" msgid "AC"
msgstr "Адаптер живлення" msgstr "Адаптер живлення"
@ -582,9 +586,6 @@ msgstr "Відмітка часу"
msgid "Use images" msgid "Use images"
msgstr "Використовувати зображення" msgstr "Використовувати зображення"
msgid "Points count"
msgstr ""
#, fuzzy #, fuzzy
msgid "Use custom formula" msgid "Use custom formula"
msgstr "Свій формат часу" msgstr "Свій формат часу"
@ -601,31 +602,19 @@ msgid "Min value"
msgstr "Показати значення" msgstr "Показати значення"
#, fuzzy #, fuzzy
msgid "Use image for active" msgid "Active filling type"
msgstr "Використовувати зображення"
#, fuzzy
msgid "Active color"
msgstr "Активний колір"
#, fuzzy
msgid "Active image"
msgstr "Активний" msgstr "Активний"
msgid "Use image for inactive"
msgstr ""
#, fuzzy #, fuzzy
msgid "Inactive color" msgid "Inctive filling type"
msgstr "Неактивний колір"
#, fuzzy
msgid "Inactive image"
msgstr "Неактивний робочий стіл" msgstr "Неактивний робочий стіл"
msgid "Type" msgid "Type"
msgstr "Тип" msgstr "Тип"
msgid "Points count"
msgstr ""
msgid "Direction" msgid "Direction"
msgstr "Напрямок" msgstr "Напрямок"
@ -635,6 +624,14 @@ msgstr "Висота"
msgid "Width" msgid "Width"
msgstr "Ширина" msgstr "Ширина"
#, fuzzy
msgid "color"
msgstr "Колір CPU"
#, fuzzy
msgid "image"
msgstr "Використовувати зображення"
msgid "Active desktop" msgid "Active desktop"
msgstr "Активний робочий стіл" msgstr "Активний робочий стіл"
@ -676,6 +673,18 @@ msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails" msgid "Your emails"
msgstr "sarumyan@i.ua" msgstr "sarumyan@i.ua"
#, fuzzy
#~ msgid "Use image for active"
#~ msgstr "Використовувати зображення"
#, fuzzy
#~ msgid "Active color"
#~ msgstr "Активний колір"
#, fuzzy
#~ msgid "Inactive color"
#~ msgstr "Неактивний колір"
#~ msgid "Add lambda" #~ msgid "Add lambda"
#~ msgstr "Додати лямбду" #~ msgstr "Додати лямбду"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n" "Report-Msgid-Bugs-To: https://github.com/arcan1s/awesome-widgets/issues\n"
"POT-Creation-Date: 2016-04-06 14:39+0300\n" "POT-Creation-Date: 2016-04-29 12:21+0300\n"
"PO-Revision-Date: 2015-07-31 22:24+0300\n" "PO-Revision-Date: 2015-07-31 22:24+0300\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"
@ -336,6 +336,10 @@ msgstr ""
"详情请参照 <a href=\"http://arcanis.name/projects/ awesome-widgets/\">项目主" "详情请参照 <a href=\"http://arcanis.name/projects/ awesome-widgets/\">项目主"
"页</a>" "页</a>"
#, fuzzy
msgid "Bgcolor"
msgstr "CPU 颜色"
msgid "AC" msgid "AC"
msgstr "电源" msgstr "电源"
@ -557,9 +561,6 @@ msgstr "时间"
msgid "Use images" msgid "Use images"
msgstr "使用图片" msgstr "使用图片"
msgid "Points count"
msgstr ""
#, fuzzy #, fuzzy
msgid "Use custom formula" msgid "Use custom formula"
msgstr "自定义时间格式" msgstr "自定义时间格式"
@ -576,29 +577,19 @@ msgid "Min value"
msgstr "显示值" msgstr "显示值"
#, fuzzy #, fuzzy
msgid "Use image for active" msgid "Active filling type"
msgstr "使用图片"
msgid "Active color"
msgstr "使用状态提示颜色"
#, fuzzy
msgid "Active image"
msgstr "使用" msgstr "使用"
msgid "Use image for inactive"
msgstr ""
msgid "Inactive color"
msgstr "未使用状态提示颜色"
#, fuzzy #, fuzzy
msgid "Inactive image" msgid "Inctive filling type"
msgstr "未激活桌面" msgstr "未激活桌面"
msgid "Type" msgid "Type"
msgstr "类型" msgstr "类型"
msgid "Points count"
msgstr ""
msgid "Direction" msgid "Direction"
msgstr "方向" msgstr "方向"
@ -608,6 +599,14 @@ msgstr "高度"
msgid "Width" msgid "Width"
msgstr "宽度" msgstr "宽度"
#, fuzzy
msgid "color"
msgstr "CPU 颜色"
#, fuzzy
msgid "image"
msgstr "使用图片"
msgid "Active desktop" msgid "Active desktop"
msgstr "当前激活桌面" msgstr "当前激活桌面"
@ -649,6 +648,16 @@ msgctxt "EMAIL OF TRANSLATORS"
msgid "Your emails" msgid "Your emails"
msgstr "用户邮箱" msgstr "用户邮箱"
#, fuzzy
#~ msgid "Use image for active"
#~ msgstr "使用图片"
#~ msgid "Active color"
#~ msgstr "使用状态提示颜色"
#~ msgid "Inactive color"
#~ msgstr "未使用状态提示颜色"
#~ msgid "Add lambda" #~ msgid "Add lambda"
#~ msgstr "添加 lambda" #~ msgstr "添加 lambda"

View File

@ -43,9 +43,10 @@
"time,isotime,shorttime,longtime,ctime,uptime,cuptime,cpucl,cpu,gputemp," \ "time,isotime,shorttime,longtime,ctime,uptime,cuptime,cpucl,cpu,gputemp," \
"gpu,memmb,memgb,memfreemb,memfreegb,memtotmb,memtotgb,memusedmb," \ "gpu,memmb,memgb,memfreemb,memfreegb,memtotmb,memtotgb,memusedmb," \
"memusedgb,mem,swapmb,swapgb,swapfreemb,swapfreegb,swaptotmb,swaptotgb," \ "memusedgb,mem,swapmb,swapgb,swapfreemb,swapfreegb,swaptotmb,swaptotgb," \
"swap,downunits,upunits,downkb,down,upkb,up,netdev,ac,bat,album,artist," \ "swap,downunits,upunits,downkb,downtotalkb,downtotal,down,uptotalkb," \
"duration,progress,title,dalbum,dartist,dtitle,salbum,sartist,stitle," \ "uptotal,upkb,up,netdev,ac,bat,album,artist,duration,progress,title," \
"pscount,pstotal,ps,desktop,ndesktop,tdesktops,la15,la5,la1" "dalbum,dartist,dtitle,salbum,sartist,stitle,pscount,pstotal,ps,desktop," \
"ndesktop,tdesktops,la15,la5,la1"
#cmakedefine BUILD_FUTURE #cmakedefine BUILD_FUTURE
#cmakedefine BUILD_TESTING #cmakedefine BUILD_TESTING