mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 23:47:20 +00:00
rewrite DP configuration interface
This commit is contained in:
parent
99049164be
commit
1d1fe469f8
@ -3,6 +3,7 @@ Ver.2.0.2:
|
|||||||
+ add Chinese translation (thanks to @Lemueler)
|
+ add Chinese translation (thanks to @Lemueler)
|
||||||
- remove ps stats from notification
|
- remove ps stats from notification
|
||||||
* yet another fix cpu* and cpucl*
|
* yet another fix cpu* and cpucl*
|
||||||
|
* rewrite DP configuration interface
|
||||||
|
|
||||||
Ver.2.0.1:
|
Ver.2.0.1:
|
||||||
+ add support of custom interfaces
|
+ add support of custom interfaces
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
+ добавлен китайский перевод (спасибо @Lemueler)
|
+ добавлен китайский перевод (спасибо @Lemueler)
|
||||||
- удалено ps stats из уведомлений
|
- удалено ps stats из уведомлений
|
||||||
* еще один фикс тегов cpu* и cpucl
|
* еще один фикс тегов cpu* и cpucl
|
||||||
|
* переписан конфигурационный интерфейс DP
|
||||||
|
|
||||||
Вер.2.0.1:
|
Вер.2.0.1:
|
||||||
+ добавлена поддержка кастомных интерфейсов
|
+ добавлена поддержка кастомных интерфейсов
|
||||||
|
@ -154,15 +154,18 @@ QString DesktopPanel::panelLocationToStr(Plasma::Location loc)
|
|||||||
QString DesktopPanel::parsePattern(const QString rawLine, const int num)
|
QString DesktopPanel::parsePattern(const QString rawLine, const int num)
|
||||||
{
|
{
|
||||||
if (debug) qDebug() << PDEBUG;
|
if (debug) qDebug() << PDEBUG;
|
||||||
if (debug) qDebug() << PDEBUG << ":" << "Run function with raw line" << rawLine;
|
if (debug) qDebug() << PDEBUG << ":" << "Raw line" << rawLine;
|
||||||
if (debug) qDebug() << PDEBUG << ":" << "Run function with number" << num;
|
if (debug) qDebug() << PDEBUG << ":" << "Number" << num;
|
||||||
|
|
||||||
QString line, mark;
|
QString line, fullMark, mark;
|
||||||
line = rawLine;
|
line = rawLine;
|
||||||
if (currentDesktop == num + 1)
|
if (currentDesktop == num + 1)
|
||||||
mark = configuration[QString("mark")];
|
mark = configuration[QString("mark")];
|
||||||
else
|
else
|
||||||
mark = QString("");
|
mark = QString("");
|
||||||
|
fullMark = QString("%1").arg(mark, configuration[QString("mark")].count(), QLatin1Char(' '));
|
||||||
|
if (line.contains(QString("$fullmark")))
|
||||||
|
line.replace(QString("$fullmark"), fullMark);
|
||||||
if (line.contains(QString("$mark")))
|
if (line.contains(QString("$mark")))
|
||||||
line.replace(QString("$mark"), mark);
|
line.replace(QString("$mark"), mark);
|
||||||
if (line.contains(QString("$name")))
|
if (line.contains(QString("$name")))
|
||||||
@ -207,6 +210,7 @@ void DesktopPanel::reinit()
|
|||||||
// labels
|
// labels
|
||||||
for (int i=0; i<desktopNames.count(); i++) {
|
for (int i=0; i<desktopNames.count(); i++) {
|
||||||
labels.append(new CustomPlasmaLabel(this, i));
|
labels.append(new CustomPlasmaLabel(this, i));
|
||||||
|
labels[i]->setWordWrap(false);
|
||||||
layout->addItem(labels[i]);
|
layout->addItem(labels[i]);
|
||||||
}
|
}
|
||||||
// right stretch
|
// right stretch
|
||||||
@ -281,7 +285,7 @@ void DesktopPanel::updateText()
|
|||||||
void DesktopPanel::dataUpdated(const QString &sourceName, const Plasma::DataEngine::Data &data)
|
void DesktopPanel::dataUpdated(const QString &sourceName, const Plasma::DataEngine::Data &data)
|
||||||
{
|
{
|
||||||
if (debug) qDebug() << PDEBUG;
|
if (debug) qDebug() << PDEBUG;
|
||||||
if (debug) qDebug() << PDEBUG << ":" << "Run function with source name" << sourceName;
|
if (debug) qDebug() << PDEBUG << ":" << "Source name" << sourceName;
|
||||||
|
|
||||||
if (data.keys().count() == 0)
|
if (data.keys().count() == 0)
|
||||||
return;
|
return;
|
||||||
@ -308,6 +312,7 @@ void DesktopPanel::createConfigurationInterface(KConfigDialog *parent)
|
|||||||
QWidget *toggleWidget = new QWidget;
|
QWidget *toggleWidget = new QWidget;
|
||||||
uiToggleConfig.setupUi(toggleWidget);
|
uiToggleConfig.setupUi(toggleWidget);
|
||||||
|
|
||||||
|
uiWidConfig.textEdit_elements->setPlainText(configuration[QString("pattern")]);
|
||||||
if (configuration[QString("background")].toInt() == 0)
|
if (configuration[QString("background")].toInt() == 0)
|
||||||
uiWidConfig.checkBox_background->setCheckState(Qt::Unchecked);
|
uiWidConfig.checkBox_background->setCheckState(Qt::Unchecked);
|
||||||
else
|
else
|
||||||
@ -327,7 +332,6 @@ void DesktopPanel::createConfigurationInterface(KConfigDialog *parent)
|
|||||||
uiWidConfig.spinBox_interval->setValue(configuration[QString("interval")].toInt());
|
uiWidConfig.spinBox_interval->setValue(configuration[QString("interval")].toInt());
|
||||||
uiWidConfig.comboBox_mark->setItemText(uiWidConfig.comboBox_mark->count()-1, configuration[QString("mark")]);
|
uiWidConfig.comboBox_mark->setItemText(uiWidConfig.comboBox_mark->count()-1, configuration[QString("mark")]);
|
||||||
uiWidConfig.comboBox_mark->setCurrentIndex(uiWidConfig.comboBox_mark->count()-1);
|
uiWidConfig.comboBox_mark->setCurrentIndex(uiWidConfig.comboBox_mark->count()-1);
|
||||||
uiWidConfig.lineEdit_pattern->setText(configuration[QString("pattern")]);
|
|
||||||
uiWidConfig.lineEdit_desktopcmd->setText(configuration[QString("desktopcmd")]);
|
uiWidConfig.lineEdit_desktopcmd->setText(configuration[QString("desktopcmd")]);
|
||||||
|
|
||||||
KConfigGroup cg = config();
|
KConfigGroup cg = config();
|
||||||
@ -376,6 +380,18 @@ void DesktopPanel::createConfigurationInterface(KConfigDialog *parent)
|
|||||||
parent->addPage(appWidget, i18n("Appearance"), QString("preferences-desktop-theme"));
|
parent->addPage(appWidget, i18n("Appearance"), QString("preferences-desktop-theme"));
|
||||||
parent->addPage(toggleWidget, i18n("Toggle panels"), QString("plasma"));
|
parent->addPage(toggleWidget, i18n("Toggle panels"), QString("plasma"));
|
||||||
|
|
||||||
|
connect(uiWidConfig.pushButton_tags, SIGNAL(clicked(bool)), this, SLOT(setFormating()));
|
||||||
|
connect(uiWidConfig.pushButton_br, SIGNAL(clicked(bool)), this, SLOT(setFormating()));
|
||||||
|
connect(uiWidConfig.pushButton_font, SIGNAL(clicked(bool)), this, SLOT(setFontFormating()));
|
||||||
|
connect(uiWidConfig.pushButton_bold, SIGNAL(clicked(bool)), this, SLOT(setFormating()));
|
||||||
|
connect(uiWidConfig.pushButton_italic, SIGNAL(clicked(bool)), this, SLOT(setFormating()));
|
||||||
|
connect(uiWidConfig.pushButton_underline, SIGNAL(clicked(bool)), this, SLOT(setFormating()));
|
||||||
|
connect(uiWidConfig.pushButton_strike, SIGNAL(clicked(bool)), this, SLOT(setFormating()));
|
||||||
|
connect(uiWidConfig.pushButton_left, SIGNAL(clicked(bool)), this, SLOT(setFormating()));
|
||||||
|
connect(uiWidConfig.pushButton_center, SIGNAL(clicked(bool)), this, SLOT(setFormating()));
|
||||||
|
connect(uiWidConfig.pushButton_right, SIGNAL(clicked(bool)), this, SLOT(setFormating()));
|
||||||
|
connect(uiWidConfig.pushButton_fill, SIGNAL(clicked(bool)), this, SLOT(setFormating()));
|
||||||
|
|
||||||
connect(parent, SIGNAL(okClicked()), this, SLOT(configAccepted()));
|
connect(parent, SIGNAL(okClicked()), this, SLOT(configAccepted()));
|
||||||
connect(parent, SIGNAL(applyClicked()), this, SLOT(configAccepted()));
|
connect(parent, SIGNAL(applyClicked()), this, SLOT(configAccepted()));
|
||||||
}
|
}
|
||||||
@ -388,13 +404,13 @@ void DesktopPanel::configAccepted()
|
|||||||
extsysmonEngine->disconnectSource(QString("desktop"), this);
|
extsysmonEngine->disconnectSource(QString("desktop"), this);
|
||||||
KConfigGroup cg = config();
|
KConfigGroup cg = config();
|
||||||
|
|
||||||
|
cg.writeEntry("pattern", uiWidConfig.textEdit_elements->toPlainText());
|
||||||
cg.writeEntry("background", QString::number(uiWidConfig.checkBox_background->checkState()));
|
cg.writeEntry("background", QString::number(uiWidConfig.checkBox_background->checkState()));
|
||||||
cg.writeEntry("layout", QString::number(uiWidConfig.checkBox_layout->checkState()));
|
cg.writeEntry("layout", QString::number(uiWidConfig.checkBox_layout->checkState()));
|
||||||
cg.writeEntry("leftStretch", QString::number(uiWidConfig.checkBox_leftStretch->checkState()));
|
cg.writeEntry("leftStretch", QString::number(uiWidConfig.checkBox_leftStretch->checkState()));
|
||||||
cg.writeEntry("rightStretch", QString::number(uiWidConfig.checkBox_rightStretch->checkState()));
|
cg.writeEntry("rightStretch", QString::number(uiWidConfig.checkBox_rightStretch->checkState()));
|
||||||
cg.writeEntry("interval", QString::number(uiWidConfig.spinBox_interval->value()));
|
cg.writeEntry("interval", QString::number(uiWidConfig.spinBox_interval->value()));
|
||||||
cg.writeEntry("mark", uiWidConfig.comboBox_mark->currentText());
|
cg.writeEntry("mark", uiWidConfig.comboBox_mark->currentText());
|
||||||
cg.writeEntry("pattern", uiWidConfig.lineEdit_pattern->text());
|
|
||||||
cg.writeEntry("desktopcmd", uiWidConfig.lineEdit_desktopcmd->text());
|
cg.writeEntry("desktopcmd", uiWidConfig.lineEdit_desktopcmd->text());
|
||||||
|
|
||||||
cg.writeEntry("currentFontFamily", uiAppConfig.fontComboBox_fontActive->currentFont().family());
|
cg.writeEntry("currentFontFamily", uiAppConfig.fontComboBox_fontActive->currentFont().family());
|
||||||
@ -426,6 +442,7 @@ void DesktopPanel::configChanged()
|
|||||||
|
|
||||||
KConfigGroup cg = config();
|
KConfigGroup cg = config();
|
||||||
|
|
||||||
|
configuration[QString("pattern")] = cg.readEntry("pattern", "[$fullmark$number/$total: $name]");
|
||||||
configuration[QString("background")] = cg.readEntry("background", "2");
|
configuration[QString("background")] = cg.readEntry("background", "2");
|
||||||
configuration[QString("desktopcmd")] = cg.readEntry("desktopcmd", "qdbus org.kde.kwin /KWin setCurrentDesktop $number");
|
configuration[QString("desktopcmd")] = cg.readEntry("desktopcmd", "qdbus org.kde.kwin /KWin setCurrentDesktop $number");
|
||||||
configuration[QString("interval")] = cg.readEntry("interval", "1000");
|
configuration[QString("interval")] = cg.readEntry("interval", "1000");
|
||||||
@ -433,7 +450,6 @@ void DesktopPanel::configChanged()
|
|||||||
configuration[QString("leftStretch")] = cg.readEntry("leftStretch", "2");
|
configuration[QString("leftStretch")] = cg.readEntry("leftStretch", "2");
|
||||||
configuration[QString("mark")] = cg.readEntry("mark", "¤");
|
configuration[QString("mark")] = cg.readEntry("mark", "¤");
|
||||||
configuration[QString("panels")] = cg.readEntry("panels", "-1");
|
configuration[QString("panels")] = cg.readEntry("panels", "-1");
|
||||||
configuration[QString("pattern")] = cg.readEntry("pattern", "[$mark$number/$total: $name]");
|
|
||||||
configuration[QString("rightStretch")] = cg.readEntry("rightStretch", "2");
|
configuration[QString("rightStretch")] = cg.readEntry("rightStretch", "2");
|
||||||
|
|
||||||
extsysmonEngine->connectSource(QString("desktop"), this, configuration[QString("interval")].toInt());
|
extsysmonEngine->connectSource(QString("desktop"), this, configuration[QString("interval")].toInt());
|
||||||
@ -479,4 +495,49 @@ void DesktopPanel::configChanged()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void DesktopPanel::setFontFormating()
|
||||||
|
{
|
||||||
|
if (debug) qDebug() << PDEBUG;
|
||||||
|
|
||||||
|
CFont defaultFont = CFont(uiAppConfig.fontComboBox_fontInactive->currentFont().family(),
|
||||||
|
uiAppConfig.spinBox_fontSizeInactive->value(),
|
||||||
|
400, false, uiAppConfig.kcolorcombo_fontColorInactive->color());
|
||||||
|
CFont font = CFontDialog::getFont(i18n("Select font"), defaultFont,
|
||||||
|
false, false);
|
||||||
|
QString selectedText = uiWidConfig.textEdit_elements->textCursor().selectedText();
|
||||||
|
uiWidConfig.textEdit_elements->insertPlainText(QString("<font color=\"%1\" face=\"%2\" size=\"%3\">")
|
||||||
|
.arg(font.color().name()).arg(font.family()).arg(font.pointSize()) +
|
||||||
|
selectedText + QString("</font>"));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void DesktopPanel::setFormating()
|
||||||
|
{
|
||||||
|
if (debug) qDebug() << PDEBUG;
|
||||||
|
if (debug) qDebug() << PDEBUG << ":" << "Sender" << sender();
|
||||||
|
|
||||||
|
QString selectedText = uiWidConfig.textEdit_elements->textCursor().selectedText();
|
||||||
|
if (sender() == uiWidConfig.pushButton_tags)
|
||||||
|
uiWidConfig.textEdit_elements->insertPlainText(QString("$") + uiWidConfig.comboBox_tags->currentText());
|
||||||
|
else if (sender() == uiWidConfig.pushButton_br)
|
||||||
|
uiWidConfig.textEdit_elements->insertPlainText(QString("<br>\n"));
|
||||||
|
else if (sender() == uiWidConfig.pushButton_bold)
|
||||||
|
uiWidConfig.textEdit_elements->insertPlainText(QString("<b>") + selectedText + QString("</b>"));
|
||||||
|
else if (sender() == uiWidConfig.pushButton_italic)
|
||||||
|
uiWidConfig.textEdit_elements->insertPlainText(QString("<i>") + selectedText + QString("</i>"));
|
||||||
|
else if (sender() == uiWidConfig.pushButton_underline)
|
||||||
|
uiWidConfig.textEdit_elements->insertPlainText(QString("<u>") + selectedText + QString("</u>"));
|
||||||
|
else if (sender() == uiWidConfig.pushButton_strike)
|
||||||
|
uiWidConfig.textEdit_elements->insertPlainText(QString("<s>") + selectedText + QString("</s>"));
|
||||||
|
else if (sender() == uiWidConfig.pushButton_left)
|
||||||
|
uiWidConfig.textEdit_elements->insertPlainText(QString("<p align=\"left\">") + selectedText + QString("</p>"));
|
||||||
|
else if (sender() == uiWidConfig.pushButton_center)
|
||||||
|
uiWidConfig.textEdit_elements->insertPlainText(QString("<p align=\"center\">") + selectedText + QString("</p>"));
|
||||||
|
else if (sender() == uiWidConfig.pushButton_right)
|
||||||
|
uiWidConfig.textEdit_elements->insertPlainText(QString("<p align=\"right\">") + selectedText + QString("</p>"));
|
||||||
|
else if (sender() == uiWidConfig.pushButton_fill)
|
||||||
|
uiWidConfig.textEdit_elements->insertPlainText(QString("<p align=\"justify\">") + selectedText + QString("</p>"));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#include "desktop-panel.moc"
|
#include "desktop-panel.moc"
|
||||||
|
@ -76,6 +76,8 @@ public slots:
|
|||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void reinit();
|
void reinit();
|
||||||
|
void setFontFormating();
|
||||||
|
void setFormating();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void createConfigurationInterface(KConfigDialog *parent);
|
void createConfigurationInterface(KConfigDialog *parent);
|
||||||
@ -100,9 +102,7 @@ private:
|
|||||||
Ui::ToggleWindow uiToggleConfig;
|
Ui::ToggleWindow uiToggleConfig;
|
||||||
// configuration
|
// configuration
|
||||||
QMap<QString, QString> configuration;
|
QMap<QString, QString> configuration;
|
||||||
QStringList desktopNames;
|
QStringList desktopNames, currentFormatLine, formatLine;
|
||||||
QStringList currentFormatLine;
|
|
||||||
QStringList formatLine;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
K_EXPORT_PLASMA_APPLET(desktop-panel, DesktopPanel)
|
K_EXPORT_PLASMA_APPLET(desktop-panel, DesktopPanel)
|
||||||
|
@ -6,13 +6,13 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>480</width>
|
<width>729</width>
|
||||||
<height>343</height>
|
<height>428</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>480</width>
|
<width>700</width>
|
||||||
<height>320</height>
|
<height>320</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
@ -20,267 +20,400 @@
|
|||||||
<string notr="true">Widget</string>
|
<string notr="true">Widget</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="0">
|
<item row="6" column="0">
|
||||||
<widget class="QScrollArea" name="scrollArea">
|
<layout class="QHBoxLayout" name="layout_interval">
|
||||||
<property name="widgetResizable">
|
<item>
|
||||||
<bool>true</bool>
|
<widget class="QLabel" name="label_interval">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>200</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Time interval</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="spacer_interval">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QSpinBox" name="spinBox_interval">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>180</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
<property name="minimum">
|
||||||
|
<number>1</number>
|
||||||
|
</property>
|
||||||
|
<property name="maximum">
|
||||||
|
<number>10000</number>
|
||||||
|
</property>
|
||||||
|
<property name="singleStep">
|
||||||
|
<number>500</number>
|
||||||
|
</property>
|
||||||
|
<property name="value">
|
||||||
|
<number>1000</number>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="0">
|
||||||
|
<widget class="QCheckBox" name="checkBox_leftStretch">
|
||||||
|
<property name="text">
|
||||||
|
<string>Add stretch to left/top of the layout</string>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="scrollAreaWidgetContents">
|
</widget>
|
||||||
<property name="geometry">
|
</item>
|
||||||
<rect>
|
<item row="2" column="0">
|
||||||
<x>0</x>
|
<widget class="QCheckBox" name="checkBox_background">
|
||||||
<y>0</y>
|
<property name="text">
|
||||||
<width>464</width>
|
<string>Enable background</string>
|
||||||
<height>327</height>
|
</property>
|
||||||
</rect>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<item row="7" column="0">
|
||||||
|
<layout class="QHBoxLayout" name="layout_mark">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_mark">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>200</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Mark</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QComboBox" name="comboBox_mark">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>A mark which will be shown if this desktop is active</string>
|
||||||
|
</property>
|
||||||
|
<property name="editable">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="checkBox_background">
|
<property name="text">
|
||||||
<property name="text">
|
<string notr="true">#</string>
|
||||||
<string>Enable background</string>
|
</property>
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="checkBox_layout">
|
<property name="text">
|
||||||
<property name="text">
|
<string notr="true">$</string>
|
||||||
<string>Vertical layout</string>
|
</property>
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="checkBox_leftStretch">
|
<property name="text">
|
||||||
<property name="text">
|
<string notr="true">%</string>
|
||||||
<string>Add stretch to left/top of the layout</string>
|
</property>
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="checkBox_rightStretch">
|
<property name="text">
|
||||||
<property name="text">
|
<string notr="true">&</string>
|
||||||
<string>Add stretch to right/bottom of the layout</string>
|
</property>
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="layout_interval">
|
<property name="text">
|
||||||
<item>
|
<string notr="true">*</string>
|
||||||
<widget class="QLabel" name="label_interval">
|
</property>
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Time interval</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="spacer_interval">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QSpinBox" name="spinBox_interval">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>180</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
<property name="minimum">
|
|
||||||
<number>1</number>
|
|
||||||
</property>
|
|
||||||
<property name="maximum">
|
|
||||||
<number>10000</number>
|
|
||||||
</property>
|
|
||||||
<property name="singleStep">
|
|
||||||
<number>500</number>
|
|
||||||
</property>
|
|
||||||
<property name="value">
|
|
||||||
<number>1000</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="layout_mark">
|
<property name="text">
|
||||||
<item>
|
<string notr="true">@</string>
|
||||||
<widget class="QLabel" name="label_mark">
|
</property>
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Mark</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QComboBox" name="comboBox_mark">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>A mark which will be shown if this desktop is active</string>
|
|
||||||
</property>
|
|
||||||
<property name="editable">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">#</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">$</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">%</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">&</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">*</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">@</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">¤</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">¶</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">·</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">º</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">×</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">†</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">•</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">(current)</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="layout_pattern">
|
<property name="text">
|
||||||
<item>
|
<string notr="true">¤</string>
|
||||||
<widget class="QLabel" name="label_pattern">
|
</property>
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Pattern</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="lineEdit_pattern">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>$mark - show mark if the current desktop is active
|
|
||||||
$name - desktop name
|
|
||||||
$number - desktop number
|
|
||||||
$total - total number of desktops</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="layout_desktopcmd">
|
<property name="text">
|
||||||
<item>
|
<string notr="true">¶</string>
|
||||||
<widget class="QLabel" name="label_desktopcmd">
|
</property>
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>200</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Command to change desktop</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="lineEdit_desktopcmd">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Command which will change the current desktop</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="spacer_widget">
|
<property name="text">
|
||||||
<property name="orientation">
|
<string notr="true">·</string>
|
||||||
<enum>Qt::Vertical</enum>
|
</property>
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>152</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
<item>
|
||||||
</widget>
|
<property name="text">
|
||||||
|
<string notr="true">º</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">×</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">†</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">•</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">(current)</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="0">
|
||||||
|
<widget class="QCheckBox" name="checkBox_rightStretch">
|
||||||
|
<property name="text">
|
||||||
|
<string>Add stretch to right/bottom of the layout</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QCheckBox" name="checkBox_layout">
|
||||||
|
<property name="text">
|
||||||
|
<string>Vertical layout</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="8" column="0">
|
||||||
|
<layout class="QHBoxLayout" name="layout_desktopcmd">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_desktopcmd">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>200</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Command to change desktop</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="lineEdit_desktopcmd">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Command which will change the current desktop</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<layout class="QHBoxLayout" name="layput_mainFormating">
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButton_font">
|
||||||
|
<property name="text">
|
||||||
|
<string>Font</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButton_br">
|
||||||
|
<property name="icon">
|
||||||
|
<iconset theme="stock_text_indent">
|
||||||
|
<normaloff>../awesome-widget</normaloff>../awesome-widget</iconset>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="spacer_mainFormatingCenter1">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeType">
|
||||||
|
<enum>QSizePolicy::Fixed</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButton_bold">
|
||||||
|
<property name="icon">
|
||||||
|
<iconset theme="format-text-bold">
|
||||||
|
<normaloff>../awesome-widget</normaloff>../awesome-widget</iconset>
|
||||||
|
</property>
|
||||||
|
<property name="shortcut">
|
||||||
|
<string>Ctrl+B</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButton_italic">
|
||||||
|
<property name="icon">
|
||||||
|
<iconset theme="format-text-italic">
|
||||||
|
<normaloff>../awesome-widget</normaloff>../awesome-widget</iconset>
|
||||||
|
</property>
|
||||||
|
<property name="shortcut">
|
||||||
|
<string>Ctrl+I</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButton_underline">
|
||||||
|
<property name="icon">
|
||||||
|
<iconset theme="format-text-underline">
|
||||||
|
<normaloff>../awesome-widget</normaloff>../awesome-widget</iconset>
|
||||||
|
</property>
|
||||||
|
<property name="shortcut">
|
||||||
|
<string>Ctrl+U</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButton_strike">
|
||||||
|
<property name="icon">
|
||||||
|
<iconset theme="format-text-strikethrough">
|
||||||
|
<normaloff>../awesome-widget</normaloff>../awesome-widget</iconset>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="spacer_mainFormatingCenter2">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeType">
|
||||||
|
<enum>QSizePolicy::Fixed</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButton_left">
|
||||||
|
<property name="icon">
|
||||||
|
<iconset theme="format-justify-left">
|
||||||
|
<normaloff>../awesome-widget</normaloff>../awesome-widget</iconset>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButton_center">
|
||||||
|
<property name="icon">
|
||||||
|
<iconset theme="format-justify-center">
|
||||||
|
<normaloff>../awesome-widget</normaloff>../awesome-widget</iconset>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButton_right">
|
||||||
|
<property name="icon">
|
||||||
|
<iconset theme="format-justify-right">
|
||||||
|
<normaloff>../awesome-widget</normaloff>../awesome-widget</iconset>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButton_fill">
|
||||||
|
<property name="icon">
|
||||||
|
<iconset theme="format-justify-fill">
|
||||||
|
<normaloff>../awesome-widget</normaloff>../awesome-widget</iconset>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="spacer_mainFormatingCenter3">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeType">
|
||||||
|
<enum>QSizePolicy::Fixed</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QComboBox" name="comboBox_tags">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">fullmark</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">mark</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">name</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">number</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true">total</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButton_tags">
|
||||||
|
<property name="text">
|
||||||
|
<string>Add</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QTextEdit" name="textEdit_elements">
|
||||||
|
<property name="lineWrapMode">
|
||||||
|
<enum>QTextEdit::NoWrap</enum>
|
||||||
|
</property>
|
||||||
|
<property name="acceptRichText">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
Loading…
Reference in New Issue
Block a user