mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 15:37:23 +00:00
refactor: remove innclude guards, use pragma instead
This commit is contained in:
parent
f27050afbc
commit
0bcceefd47
6
sources/3rdparty/fontdialog/fontdialog.cpp
vendored
6
sources/3rdparty/fontdialog/fontdialog.cpp
vendored
@ -58,7 +58,7 @@ CFontDialog::CFontDialog(QWidget *parent, bool needWeight, bool needItalic)
|
||||
setLayout(mainGrid);
|
||||
|
||||
colorBox = new QComboBox(this);
|
||||
connect(colorBox, SIGNAL(currentIndexChanged(QString)), this, SLOT(updateColor(QString)));
|
||||
connect(colorBox, &QComboBox::currentTextChanged, this, &CFontDialog::updateColor);
|
||||
QStringList colorNames = QColor::colorNames();
|
||||
int index = 0;
|
||||
for (int i=0; i<colorNames.count(); i++) {
|
||||
@ -81,8 +81,8 @@ CFontDialog::CFontDialog(QWidget *parent, bool needWeight, bool needItalic)
|
||||
|
||||
buttons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel,
|
||||
Qt::Horizontal, this);
|
||||
QObject::connect(buttons, SIGNAL(accepted()), this, SLOT(accept()));
|
||||
QObject::connect(buttons, SIGNAL(rejected()), this, SLOT(reject()));
|
||||
QObject::connect(buttons, &QDialogButtonBox::accepted, this, &CFontDialog::accept);
|
||||
QObject::connect(buttons, &QDialogButtonBox::rejected, this, &CFontDialog::reject);
|
||||
mainGrid->addWidget(buttons, 1, 0, 1, 5);
|
||||
|
||||
italicBox->setHidden(!needItalic);
|
||||
|
6
sources/3rdparty/fontdialog/fontdialog.h
vendored
6
sources/3rdparty/fontdialog/fontdialog.h
vendored
@ -15,8 +15,7 @@
|
||||
* License along with this library. *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef FONTDIALOG_H
|
||||
#define FONTDIALOG_H
|
||||
#pragma once
|
||||
|
||||
#include <QComboBox>
|
||||
#include <QDialog>
|
||||
@ -72,6 +71,3 @@ private:
|
||||
QSpinBox *sizeBox;
|
||||
QSpinBox *weightBox;
|
||||
};
|
||||
|
||||
|
||||
#endif /* FONTDIALOG_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWDEBUG_H
|
||||
#define AWDEBUG_H
|
||||
#pragma once
|
||||
|
||||
#include <QLoggingCategory>
|
||||
|
||||
@ -42,6 +40,3 @@ Q_DECLARE_LOGGING_CATEGORY(LOG_DP)
|
||||
Q_DECLARE_LOGGING_CATEGORY(LOG_ESM)
|
||||
Q_DECLARE_LOGGING_CATEGORY(LOG_ESS)
|
||||
Q_DECLARE_LOGGING_CATEGORY(LOG_LIB)
|
||||
|
||||
|
||||
#endif /* AWDEBUG_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWABSTRACTPAIRCONFIG_H
|
||||
#define AWABSTRACTPAIRCONFIG_H
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
@ -67,6 +65,3 @@ private:
|
||||
[[nodiscard]] QPair<QStringList, QStringList> initKeys() const;
|
||||
void updateDialog();
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWABSTRACTPAIRCONFIG_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWABSTRACTPAIRHELPER_H
|
||||
#define AWABSTRACTPAIRHELPER_H
|
||||
#pragma once
|
||||
|
||||
#include <QHash>
|
||||
|
||||
@ -46,6 +44,3 @@ private:
|
||||
QString m_filePath;
|
||||
QString m_section;
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWABSTRACTPAIRHELPER_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWABSTRACTSELECTOR_H
|
||||
#define AWABSTRACTSELECTOR_H
|
||||
#pragma once
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
@ -43,6 +41,3 @@ signals:
|
||||
private:
|
||||
Ui::AWAbstractSelector *ui = nullptr;
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWABSTRACTSELECTOR_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWACTIONS_H
|
||||
#define AWACTIONS_H
|
||||
#pragma once
|
||||
|
||||
#include <QMap>
|
||||
#include <QObject>
|
||||
@ -47,6 +45,3 @@ public slots:
|
||||
private:
|
||||
AWUpdateHelper *m_updateHelper = nullptr;
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWACTIONS_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWBUGREPORTER_H
|
||||
#define AWBUGREPORTER_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -48,6 +46,3 @@ private slots:
|
||||
private:
|
||||
QString m_lastBugUrl;
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWBUGREPORTER_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWCONFIGHELPER_H
|
||||
#define AWCONFIGHELPER_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QVariant>
|
||||
@ -52,6 +50,3 @@ private:
|
||||
QString m_baseDir;
|
||||
QStringList m_dirs = {"desktops", "quotes", "scripts", "upgrade", "weather", "formatters"};
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWCONFIGHELPER_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWCUSTOMKEYSCONFIG_H
|
||||
#define AWCUSTOMKEYSCONFIG_H
|
||||
#pragma once
|
||||
|
||||
#include "awabstractpairconfig.h"
|
||||
|
||||
@ -30,6 +28,3 @@ public:
|
||||
explicit AWCustomKeysConfig(QWidget *_parent = nullptr, const QStringList &_keys = QStringList());
|
||||
~AWCustomKeysConfig() override;
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWCUSTOMKEYSCONFIG_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWCUSTOMKEYSHELPER_H
|
||||
#define AWCUSTOMKEYSHELPER_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -42,6 +40,3 @@ public:
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWCUSTOMKEYSHELPER_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWTOOLTIP_H
|
||||
#define AWTOOLTIP_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QVariant>
|
||||
@ -68,6 +66,3 @@ private:
|
||||
bool m_enablePopup = false;
|
||||
QStringList requiredKeys;
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWTOOLTIP_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWDATAENGINEMAPPER_H
|
||||
#define AWDATAENGINEMAPPER_H
|
||||
#pragma once
|
||||
|
||||
#include <ksysguard/formatter/Unit.h>
|
||||
|
||||
@ -50,6 +48,3 @@ private:
|
||||
QHash<QString, AWKeysAggregator::FormatterType> m_formatter;
|
||||
QMultiHash<QString, QString> m_map;
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWDATAENGINEMAPPER_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWDBUSADAPTOR_H
|
||||
#define AWDBUSADAPTOR_H
|
||||
#pragma once
|
||||
|
||||
#include <QDBusAbstractAdaptor>
|
||||
|
||||
@ -50,6 +48,3 @@ private:
|
||||
AWKeys *m_plugin = nullptr;
|
||||
QStringList m_logLevels = {"debug", "info", "warning", "critical"};
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWDBUSADAPTOR_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWPLUGIN_H
|
||||
#define AWPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QQmlExtensionPlugin>
|
||||
|
||||
@ -30,6 +28,3 @@ class AWPlugin : public QQmlExtensionPlugin
|
||||
public:
|
||||
void registerTypes(const char *uri) override;
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWPLUGIN_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWFORMATTERCONFIG_H
|
||||
#define AWFORMATTERCONFIG_H
|
||||
#pragma once
|
||||
|
||||
#include "awabstractpairconfig.h"
|
||||
|
||||
@ -30,6 +28,3 @@ public:
|
||||
explicit AWFormatterConfig(QWidget *_parent = nullptr, const QStringList &_keys = QStringList());
|
||||
~AWFormatterConfig() override;
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWFORMATTERCONFIG_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWFORMATTERHELPER_H
|
||||
#define AWFORMATTERHELPER_H
|
||||
#pragma once
|
||||
|
||||
#include "abstractextitemaggregator.h"
|
||||
#include "awabstractformatter.h"
|
||||
@ -56,6 +54,3 @@ private:
|
||||
QHash<QString, AWAbstractFormatter *> m_formatters;
|
||||
QHash<QString, AWAbstractFormatter *> m_formattersClasses;
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWFORMATTERHELPER_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWKEYCACHE_H
|
||||
#define AWKEYCACHE_H
|
||||
#pragma once
|
||||
|
||||
#include <QHash>
|
||||
#include <QString>
|
||||
@ -31,6 +29,3 @@ QStringList getRequiredKeys(const QStringList &_keys, const QStringList &_bars,
|
||||
const QStringList &_userKeys, const QStringList &_allKeys);
|
||||
QHash<QString, QStringList> loadKeysFromCache();
|
||||
} // namespace AWKeyCache
|
||||
|
||||
|
||||
#endif /* AWKEYCACHE_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWKEYOPERATIONS_H
|
||||
#define AWKEYOPERATIONS_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -78,6 +76,3 @@ private:
|
||||
QHash<QString, QStringList> m_devices;
|
||||
QString m_pattern;
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWKEYOPERATIONS_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWKEYS_H
|
||||
#define AWKEYS_H
|
||||
#pragma once
|
||||
|
||||
#include <QMutex>
|
||||
#include <QObject>
|
||||
@ -90,6 +88,3 @@ private:
|
||||
QThreadPool *m_threadPool = nullptr;
|
||||
QMutex m_mutex;
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWKEYS_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWKEYSAGGREGATOR_H
|
||||
#define AWKEYSAGGREGATOR_H
|
||||
#pragma once
|
||||
|
||||
#include <ksysguard/formatter/Unit.h>
|
||||
|
||||
@ -103,6 +101,3 @@ private:
|
||||
QString m_tempUnits;
|
||||
bool m_translate = false;
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWKEYSAGGREGATOR_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWPAIRCONFIGFACTORY_H
|
||||
#define AWPAIRCONFIGFACTORY_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -34,6 +32,3 @@ public:
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWPAIRCONFIGFACTORY_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWPATTERNFUNCTIONS_H
|
||||
#define AWPATTERNFUNCTIONS_H
|
||||
#pragma once
|
||||
|
||||
#include <QString>
|
||||
#include <QVariant>
|
||||
@ -47,6 +45,3 @@ QString insertMacros(QString _code);
|
||||
QStringList findKeys(const QString &_code, const QStringList &_keys, bool _isBars);
|
||||
QStringList findLambdas(const QString &_code);
|
||||
} // namespace AWPatternFunctions
|
||||
|
||||
|
||||
#endif /* AWPATTERNFUNCTIONS_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWTELEMETRYHANDLER_H
|
||||
#define AWTELEMETRYHANDLER_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -52,6 +50,3 @@ private:
|
||||
int m_storeCount = 0;
|
||||
bool m_uploadEnabled = false;
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWTELEMETRYHANDLER_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWUPDATEHELPER_H
|
||||
#define AWUPDATEHELPER_H
|
||||
#pragma once
|
||||
|
||||
#include <QMessageBox>
|
||||
#include <QObject>
|
||||
@ -48,6 +46,3 @@ private:
|
||||
QVersionNumber m_foundVersion;
|
||||
QString m_genericConfig;
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWUPDATEHELPER_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef ABSTRACTEXTITEM_H
|
||||
#define ABSTRACTEXTITEM_H
|
||||
#pragma once
|
||||
|
||||
#include <QVariant>
|
||||
|
||||
@ -102,6 +101,3 @@ private:
|
||||
QLocalServer *m_socket = nullptr;
|
||||
QString m_socketFile = "";
|
||||
};
|
||||
|
||||
|
||||
#endif /* ABSTRACTEXTITEM_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef ABSTRACTEXTITEMAGGREGATOR_H
|
||||
#define ABSTRACTEXTITEMAGGREGATOR_H
|
||||
#pragma once
|
||||
|
||||
#include <QStandardPaths>
|
||||
|
||||
@ -80,6 +79,3 @@ private:
|
||||
// ui methods
|
||||
virtual void doCreateItem(QListWidget *_widget) = 0;
|
||||
};
|
||||
|
||||
|
||||
#endif /* ABSTRACTEXTITEMAGGREGATOR_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef ABSTRACTQUOTESPROVIDER_H
|
||||
#define ABSTRACTQUOTESPROVIDER_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QUrl>
|
||||
@ -40,6 +39,3 @@ public:
|
||||
};
|
||||
[[nodiscard]] virtual QUrl url() const = 0;
|
||||
};
|
||||
|
||||
|
||||
#endif /* ABSTRACTQUOTESPROVIDER_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef ABSTRACTWEATHERPROVIDER_H
|
||||
#define ABSTRACTWEATHERPROVIDER_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QUrl>
|
||||
@ -40,6 +39,3 @@ public:
|
||||
};
|
||||
[[nodiscard]] virtual QUrl url() const = 0;
|
||||
};
|
||||
|
||||
|
||||
#endif /* ABSTRACTWEATHERPROVIDER_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef AWABSTRACTFORMATTER_H
|
||||
#define AWABSTRACTFORMATTER_H
|
||||
#pragma once
|
||||
|
||||
#include <QRegularExpression>
|
||||
|
||||
@ -52,6 +51,3 @@ private:
|
||||
// properties
|
||||
FormatterClass m_type = FormatterClass::NoFormat;
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWABSTRACTFORMATTER_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef AWDATETIMEFORMATTER_H
|
||||
#define AWDATETIMEFORMATTER_H
|
||||
#pragma once
|
||||
|
||||
#include <QLocale>
|
||||
|
||||
@ -52,6 +51,3 @@ private:
|
||||
QString m_format = "";
|
||||
bool m_translate = true;
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWDATETIMEFORMATTER_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef AWFLOATFORMATTER_H
|
||||
#define AWFLOATFORMATTER_H
|
||||
#pragma once
|
||||
|
||||
#include "awabstractformatter.h"
|
||||
|
||||
@ -68,6 +67,3 @@ private:
|
||||
int m_precision = -1;
|
||||
double m_summand = 0.0;
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWFLOATFORMATTER_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef AWJSONFORMATTER_H
|
||||
#define AWJSONFORMATTER_H
|
||||
#pragma once
|
||||
|
||||
#include "awabstractformatter.h"
|
||||
|
||||
@ -49,6 +48,3 @@ private:
|
||||
QString m_path;
|
||||
QVariantList m_splittedPath;
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWJSONFORMATTER_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef AWLISTFORMATTER_H
|
||||
#define AWLISTFORMATTER_H
|
||||
#pragma once
|
||||
|
||||
#include "awabstractformatter.h"
|
||||
|
||||
@ -53,6 +52,3 @@ private:
|
||||
bool m_sorted = false;
|
||||
QRegularExpression m_regex;
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWLISTFORMATTER_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef AWNOFORMATTER_H
|
||||
#define AWNOFORMATTER_H
|
||||
#pragma once
|
||||
|
||||
#include "awabstractformatter.h"
|
||||
|
||||
@ -37,6 +36,3 @@ private:
|
||||
void translate(void *_ui) override;
|
||||
// properties
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWNOFORMATTER_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef AWSCRIPTFORMATTER_H
|
||||
#define AWSCRIPTFORMATTER_H
|
||||
#pragma once
|
||||
|
||||
#include "awabstractformatter.h"
|
||||
|
||||
@ -56,6 +55,3 @@ private:
|
||||
bool m_hasReturn = false;
|
||||
QString m_program;
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWSCRIPTFORMATTER_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef AWSTRINGFORMATTER_H
|
||||
#define AWSTRINGFORMATTER_H
|
||||
#pragma once
|
||||
|
||||
#include "awabstractformatter.h"
|
||||
|
||||
@ -52,6 +51,3 @@ private:
|
||||
QChar m_fillChar = QChar();
|
||||
bool m_forceWidth = false;
|
||||
};
|
||||
|
||||
|
||||
#endif /* AWSTRINGFORMATTER_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef EXTITEMAGGREGATOR_H
|
||||
#define EXTITEMAGGREGATOR_H
|
||||
#pragma once
|
||||
|
||||
#include <KI18n/KLocalizedString>
|
||||
|
||||
@ -150,6 +149,3 @@ private:
|
||||
return items;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
#endif /* EXTITEMAGGREGATOR_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef EXTNETWORKREQUEST_H
|
||||
#define EXTNETWORKREQUEST_H
|
||||
#pragma once
|
||||
|
||||
#include <QNetworkReply>
|
||||
|
||||
@ -59,6 +58,3 @@ private:
|
||||
// values
|
||||
QVariantHash m_values;
|
||||
};
|
||||
|
||||
|
||||
#endif /* EXTNETWORKREQUEST_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef EXTQUOTES_H
|
||||
#define EXTQUOTES_H
|
||||
#pragma once
|
||||
|
||||
#include <QNetworkReply>
|
||||
|
||||
@ -61,6 +60,3 @@ private:
|
||||
// values
|
||||
QVariantHash m_values;
|
||||
};
|
||||
|
||||
|
||||
#endif /* EXTQUOTES_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef EXTSCRIPT_H
|
||||
#define EXTSCRIPT_H
|
||||
#pragma once
|
||||
|
||||
#include <QProcess>
|
||||
|
||||
@ -76,6 +75,3 @@ private:
|
||||
QVariantMap m_jsonFilters;
|
||||
QVariantHash m_values;
|
||||
};
|
||||
|
||||
|
||||
#endif /* EXTSCRIPT_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef EXTUPGRADE_H
|
||||
#define EXTUPGRADE_H
|
||||
#pragma once
|
||||
|
||||
#include <QProcess>
|
||||
|
||||
@ -64,6 +63,3 @@ private:
|
||||
// internal properties
|
||||
QVariantHash m_values;
|
||||
};
|
||||
|
||||
|
||||
#endif /* EXTUPGRADE_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef EXTWEATHER_H
|
||||
#define EXTWEATHER_H
|
||||
#pragma once
|
||||
|
||||
#include <QNetworkReply>
|
||||
|
||||
@ -90,6 +89,3 @@ private:
|
||||
// values
|
||||
QVariantHash m_values;
|
||||
};
|
||||
|
||||
|
||||
#endif /* EXTWEATHER_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef GRAPHICALITEM_H
|
||||
#define GRAPHICALITEM_H
|
||||
#pragma once
|
||||
|
||||
#include <QColor>
|
||||
|
||||
@ -118,6 +117,3 @@ private:
|
||||
QStringList m_usedKeys;
|
||||
int m_width = 100;
|
||||
};
|
||||
|
||||
|
||||
#endif /* GRAPHICALITEM_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef GRAPHICALITEMHELPER_H
|
||||
#define GRAPHICALITEMHELPER_H
|
||||
#pragma once
|
||||
|
||||
#include <QColor>
|
||||
#include <QObject>
|
||||
@ -56,6 +55,3 @@ private:
|
||||
// list of values which will be used to store data for graph type only
|
||||
QList<float> m_values;
|
||||
};
|
||||
|
||||
|
||||
#endif /* GRAPHICALITEMHELPER_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef OWMWEATHERPROVIDER_H
|
||||
#define OWMWEATHERPROVIDER_H
|
||||
#pragma once
|
||||
|
||||
#include "abstractweatherprovider.h"
|
||||
|
||||
@ -42,6 +41,3 @@ private:
|
||||
int m_ts = 0;
|
||||
QUrl m_url;
|
||||
};
|
||||
|
||||
|
||||
#endif /* OWMWEATHERPROVIDER_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef QCRONSCHEDULER_H
|
||||
#define QCRONSCHEDULER_H
|
||||
#pragma once
|
||||
|
||||
#include "QObject"
|
||||
|
||||
@ -58,6 +57,3 @@ private:
|
||||
QTimer *m_timer = nullptr;
|
||||
static QList<int> parseField(const QString &_value, int _min, int _max);
|
||||
};
|
||||
|
||||
|
||||
#endif /* QCRONSCHEDULER_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef STOOQQUOTESPROVIDER_H
|
||||
#define STOOQQUOTESPROVIDER_H
|
||||
#pragma once
|
||||
|
||||
#include "abstractquotesprovider.h"
|
||||
|
||||
@ -37,6 +36,3 @@ public:
|
||||
private:
|
||||
QUrl m_url;
|
||||
};
|
||||
|
||||
|
||||
#endif /* STOOQQUOTESPROVIDER_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef YAHOOQUOTESPROVIDER_H
|
||||
#define YAHOOQUOTESPROVIDER_H
|
||||
#pragma once
|
||||
|
||||
#include "abstractquotesprovider.h"
|
||||
|
||||
@ -38,6 +37,3 @@ public:
|
||||
private:
|
||||
QUrl m_url;
|
||||
};
|
||||
|
||||
|
||||
#endif /* YAHOOQUOTESPROVIDER_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef YAHOOWEATHERPROVIDER_H
|
||||
#define YAHOOWEATHERPROVIDER_H
|
||||
#pragma once
|
||||
|
||||
#include "abstractweatherprovider.h"
|
||||
|
||||
@ -43,6 +42,3 @@ private:
|
||||
int m_ts = 0;
|
||||
QUrl m_url;
|
||||
};
|
||||
|
||||
|
||||
#endif /* YAHOOWEATHERPROVIDER_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef DPPLUGIN_H
|
||||
#define DPPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QQmlExtensionPlugin>
|
||||
|
||||
@ -30,6 +28,3 @@ class DPPlugin : public QQmlExtensionPlugin
|
||||
public:
|
||||
void registerTypes(const char *uri) override;
|
||||
};
|
||||
|
||||
|
||||
#endif /* DPPLUGIN_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef DPADDS_H
|
||||
#define DPADDS_H
|
||||
#pragma once
|
||||
|
||||
// ui library required by WId definition
|
||||
#include <QGuiApplication>
|
||||
@ -78,6 +76,3 @@ private:
|
||||
QString m_tooltipColor = "#000000";
|
||||
QString m_tooltipType = "none";
|
||||
};
|
||||
|
||||
|
||||
#endif /* DPADDS_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef EXTSYSMON_H
|
||||
#define EXTSYSMON_H
|
||||
#pragma once
|
||||
|
||||
#include <ksysguard/systemstats/SensorPlugin.h>
|
||||
|
||||
@ -36,6 +35,3 @@ private:
|
||||
void readConfiguration();
|
||||
[[nodiscard]] static QHash<QString, QString> updateConfiguration(QHash<QString, QString> _rawConfig);
|
||||
};
|
||||
|
||||
|
||||
#endif /* EXTSYSMON_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef ABSTRACTEXTSYSMONSOURCE_H
|
||||
#define ABSTRACTEXTSYSMONSOURCE_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QRegularExpression>
|
||||
@ -50,6 +49,3 @@ public:
|
||||
signals:
|
||||
void dataReceived(const QVariantHash &);
|
||||
};
|
||||
|
||||
|
||||
#endif /* ABSTRACTEXTSYSMONSOURCE_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef BATTERYSOURCE_H
|
||||
#define BATTERYSOURCE_H
|
||||
#pragma once
|
||||
|
||||
#include <QDateTime>
|
||||
#include <QObject>
|
||||
@ -50,6 +49,3 @@ private:
|
||||
QHash<int, QList<int>> m_trend;
|
||||
QVariantHash m_values;
|
||||
};
|
||||
|
||||
|
||||
#endif /* BATTERYSOURCE_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef CUSTOMSOURCE_H
|
||||
#define CUSTOMSOURCE_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -44,6 +43,3 @@ private:
|
||||
ExtItemAggregator<ExtScript> *m_extScripts = nullptr;
|
||||
QStringList m_sources;
|
||||
};
|
||||
|
||||
|
||||
#endif /* CUSTOMSOURCE_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef DESKTOPSOURCE_H
|
||||
#define DESKTOPSOURCE_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -42,6 +41,3 @@ public:
|
||||
private:
|
||||
TaskManager::VirtualDesktopInfo *m_vdi = nullptr;
|
||||
};
|
||||
|
||||
|
||||
#endif /* DESKTOPSOURCE_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef EXTSYSMONSENSOR_H
|
||||
#define EXTSYSMONSENSOR_H
|
||||
#pragma once
|
||||
|
||||
#include <ksysguard/systemstats/SensorObject.h>
|
||||
|
||||
@ -40,6 +39,3 @@ private:
|
||||
AbstractExtSysMonSource *m_source = nullptr;
|
||||
QTimer *m_timer = nullptr;
|
||||
};
|
||||
|
||||
|
||||
#endif /* EXTSYSMONSENSOR_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef LOADSOURCE_H
|
||||
#define LOADSOURCE_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -35,6 +34,3 @@ public:
|
||||
void run() override{};
|
||||
[[nodiscard]] QStringList sources() const override;
|
||||
};
|
||||
|
||||
|
||||
#endif /* LOADSOURCE_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef NETWORKSOURCE_H
|
||||
#define NETWORKSOURCE_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -45,6 +44,3 @@ private:
|
||||
QProcess *m_process = nullptr;
|
||||
static QString getCurrentDevice();
|
||||
};
|
||||
|
||||
|
||||
#endif /* NETWORKSOURCE_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef PLAYERSOURCE_H
|
||||
#define PLAYERSOURCE_H
|
||||
#pragma once
|
||||
|
||||
#include <QMutex>
|
||||
#include <QObject>
|
||||
@ -68,6 +67,3 @@ private:
|
||||
QStringList m_metadata = QStringList({"album", "artist", "title"});
|
||||
QVariantHash m_values;
|
||||
};
|
||||
|
||||
|
||||
#endif /* PLAYERSOURCE_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef PROCESSESSOURCE_H
|
||||
#define PROCESSESSOURCE_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -39,6 +38,3 @@ private:
|
||||
// configuration and values
|
||||
QVariantHash m_values;
|
||||
};
|
||||
|
||||
|
||||
#endif /* PROCESSESSOURCE_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef QUOTESSOURCE_H
|
||||
#define QUOTESSOURCE_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -45,6 +44,3 @@ private:
|
||||
QStringList m_sources;
|
||||
QVariantHash m_values;
|
||||
};
|
||||
|
||||
|
||||
#endif /* QUOTESSOURCE_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef REQUESTSOURCE_H
|
||||
#define REQUESTSOURCE_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -45,6 +44,3 @@ private:
|
||||
QStringList m_sources;
|
||||
QVariantHash m_values;
|
||||
};
|
||||
|
||||
|
||||
#endif /* REQUESTSOURCE_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef SYSTEMINFOSOURCE_H
|
||||
#define SYSTEMINFOSOURCE_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -44,6 +43,3 @@ private:
|
||||
static QVariant sendDBusRequest(const QString &destination, const QString &path, const QString &interface,
|
||||
const QString &method, const QVariantList &args = QVariantList());
|
||||
};
|
||||
|
||||
|
||||
#endif /* SYSTEMINFOSOURCE_H */
|
||||
|
@ -20,7 +20,6 @@
|
||||
#include <QObject>
|
||||
|
||||
#include "abstractextsysmonsource.h"
|
||||
#include "extitemaggregator.h"
|
||||
|
||||
|
||||
class TimeSource : public AbstractExtSysMonSource
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef UPGRADESOURCE_H
|
||||
#define UPGRADESOURCE_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -44,6 +43,3 @@ private:
|
||||
ExtItemAggregator<ExtUpgrade> *m_extUpgrade = nullptr;
|
||||
QStringList m_sources;
|
||||
};
|
||||
|
||||
|
||||
#endif /* UPGRADESOURCE_H */
|
||||
|
@ -15,8 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef WEATHERSOURCE_H
|
||||
#define WEATHERSOURCE_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -45,6 +44,3 @@ private:
|
||||
QStringList m_sources;
|
||||
QVariantHash m_values;
|
||||
};
|
||||
|
||||
|
||||
#endif /* WEATHERSOURCE_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef AWTESTLIBRARY_H
|
||||
#define AWTESTLIBRARY_H
|
||||
#pragma once
|
||||
|
||||
#include <QPair>
|
||||
#include <QStringList>
|
||||
@ -34,6 +32,3 @@ QString randomString(const int _min = 1, const int _max = 100);
|
||||
QStringList randomStringList(const int _max = 100);
|
||||
QStringList randomSelect(const QStringList &_available);
|
||||
} // namespace AWTestLibrary
|
||||
|
||||
|
||||
#endif /* AWTESTLIBRARY_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTABSTRACTEXTITEM_H
|
||||
#define TESTABSTRACTEXTITEM_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -49,6 +47,3 @@ private:
|
||||
QString fileName;
|
||||
QString writeFileName;
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTABSTRACTEXTITEM_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTABSTRACTFORMATTER_H
|
||||
#define TESTABSTRACTFORMATTER_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -40,6 +38,3 @@ private slots:
|
||||
private:
|
||||
AWNoFormatter *formatter = nullptr;
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTABSTRACTFORMATTER_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTAWBUGREPORTER_H
|
||||
#define TESTAWBUGREPORTER_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -40,6 +38,3 @@ private:
|
||||
AWBugReporter *plugin = nullptr;
|
||||
QStringList data;
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTAWBUGREPORTER_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTAWCONFIGHELPER_H
|
||||
#define TESTAWCONFIGHELPER_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QQmlPropertyMap>
|
||||
@ -47,6 +45,3 @@ private:
|
||||
QQmlPropertyMap map;
|
||||
QVariantMap deConfig;
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTAWCONFIGHELPER_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTAWKEYCACHE_H
|
||||
#define TESTAWKEYCACHE_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -34,6 +32,3 @@ private slots:
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTAWKEYCACHE_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTAWKEYS_H
|
||||
#define TESTAWKEYS_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -47,6 +45,3 @@ private:
|
||||
QString pattern;
|
||||
int interval = 1000;
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTAWKEYS_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTAWPATTERNFUNCTIONS_H
|
||||
#define TESTAWPATTERNFUNCTIONS_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -38,6 +36,3 @@ private slots:
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTAWPATTERNFUNCTIONS_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTAWTELEMETRYHANDLER_H
|
||||
#define TESTAWTELEMETRYHANDLER_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -46,6 +44,3 @@ private:
|
||||
QString telemetryStatus = "saved";
|
||||
QString telemetryValidGroup = "awwidgetconfig";
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTAWTELEMETRYHANDLER_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTAWUPDATEHELPER_H
|
||||
#define TESTAWUPDATEHELPER_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -38,6 +36,3 @@ private slots:
|
||||
private:
|
||||
AWUpdateHelper *plugin = nullptr;
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTAWUPDATEHELPER_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTBATTERYSOURCE_H
|
||||
#define TESTBATTERYSOURCE_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QPair>
|
||||
@ -42,6 +40,3 @@ private:
|
||||
QString acpiPath = "/sys/class/power_supply/";
|
||||
QPair<int, int> battery = QPair<int, int>(0, 100);
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTBATTERYSOURCE_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTDATETIMEFORMATTER_H
|
||||
#define TESTDATETIMEFORMATTER_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -41,6 +39,3 @@ private:
|
||||
AWDateTimeFormatter *formatter = nullptr;
|
||||
QString format;
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTDATETIMEFORMATTER_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTDESKTOPSOURCE_H
|
||||
#define TESTDESKTOPSOURCE_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -39,6 +37,3 @@ private slots:
|
||||
private:
|
||||
DesktopSource *source = nullptr;
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTDESKTOPSOURCE_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTDPPLUGIN_H
|
||||
#define TESTDPPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -44,6 +42,3 @@ private:
|
||||
bool m_isKwinActive = false;
|
||||
QString pattern = "$";
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTDPPLUGIN_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTEXTITEMAGGREGATOR_H
|
||||
#define TESTEXTITEMAGGREGATOR_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -40,6 +38,3 @@ private:
|
||||
ExtItemAggregator<AWNoFormatter> *aggregator = nullptr;
|
||||
QString type = "tmp";
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTEXTITEMAGGREGATOR_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTEXTQUOTES_H
|
||||
#define TESTEXTQUOTES_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QVariant>
|
||||
@ -47,6 +45,3 @@ private:
|
||||
// we assume that price will not be differ more than in 2 times
|
||||
QPair<double, double> price = QPair<double, double>(0.0, 2.0);
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTEXTQUOTES_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTEXTSCRIPT_H
|
||||
#define TESTEXTSCRIPT_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -42,6 +40,3 @@ private:
|
||||
ExtScript *extScript = nullptr;
|
||||
QString randomString;
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTEXTSCRIPT_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTEXTUPGRADE_H
|
||||
#define TESTEXTUPGRADE_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -44,6 +42,3 @@ private:
|
||||
QString cmd;
|
||||
QStringList randomStrings;
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTEXTUPGRADE_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTEXTWEATHER_H
|
||||
#define TESTEXTWEATHER_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QPair>
|
||||
@ -52,6 +50,3 @@ private:
|
||||
// dont know about temperature, but I suppose it will be between -40 and 40
|
||||
QPair<float, float> temp = QPair<float, float>(-40.0f, 40.0f);
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTEXTWEATHER_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTFLOATFORMATTER_H
|
||||
#define TESTFLOATFORMATTER_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -47,6 +45,3 @@ private:
|
||||
void doRandom();
|
||||
AWFloatFormatter *formatter = nullptr;
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTFLOATFORMATTER_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTJSONFORMATTER_H
|
||||
#define TESTJSONFORMATTER_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QVariant>
|
||||
@ -45,6 +43,3 @@ private:
|
||||
QString path;
|
||||
QString value;
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTJSONFORMATTER_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTLISTFORMATTER_H
|
||||
#define TESTLISTFORMATTER_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -43,6 +41,3 @@ private:
|
||||
AWListFormatter *formatter = nullptr;
|
||||
QString separator;
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTLISTFORMATTER_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTNETWORKSOURCE_H
|
||||
#define TESTNETWORKSOURCE_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -39,6 +37,3 @@ private slots:
|
||||
private:
|
||||
NetworkSource *source = nullptr;
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTNETWORKSOURCE_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTNOFORMATTER_H
|
||||
#define TESTNOFORMATTER_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -40,6 +38,3 @@ private slots:
|
||||
private:
|
||||
AWNoFormatter *formatter = nullptr;
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTNOFORMATTER_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTPLAYERSOURCE_H
|
||||
#define TESTPLAYERSOURCE_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -44,6 +42,3 @@ private:
|
||||
QString mpdAddress = "localhost";
|
||||
int mpdPort = 6600;
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTPLAYERSOURCE_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTPROCESSESSOURCE_H
|
||||
#define TESTPROCESSESSOURCE_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -39,6 +37,3 @@ private slots:
|
||||
private:
|
||||
ProcessesSource *source = nullptr;
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTPROCESSESSOURCE_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTSCRIPTFORMATTER_H
|
||||
#define TESTSCRIPTFORMATTER_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -45,6 +43,3 @@ private:
|
||||
QString codeWithReturn = QString("%1; return output;").arg(code);
|
||||
QString fullCode = QString("(function(value) { %1 })").arg(codeWithReturn);
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTSCRIPTFORMATTER_H */
|
||||
|
@ -15,9 +15,7 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef TESTSTRINGFORMATTER_H
|
||||
#define TESTSTRINGFORMATTER_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@ -43,6 +41,3 @@ private:
|
||||
void doRandom();
|
||||
AWStringFormatter *formatter = nullptr;
|
||||
};
|
||||
|
||||
|
||||
#endif /* TESTSTRINGFORMATTER_H */
|
||||
|
@ -1,5 +1,4 @@
|
||||
#ifndef VERSION_H
|
||||
#define VERSION_H
|
||||
#pragma once
|
||||
|
||||
|
||||
// information
|
||||
@ -7,23 +6,28 @@ const char NAME[] = "Awesome Widgets";
|
||||
const char VERSION[] = "@PROJECT_VERSION@";
|
||||
const char COMMIT_SHA[] = "@PROJECT_COMMIT_SHA@";
|
||||
const char AUTHOR[] = "@PROJECT_AUTHOR@";
|
||||
const char TRANSLATORS[] = "Ernesto Aviles Vzqz (Spanish),Mermouy "
|
||||
"(French),underr (Brazillian Portuguese),Viktor "
|
||||
"Slobodyan (Ukrainian),Lemueler (Chinese),Heimen "
|
||||
"Stoffels (Dutch),Mariusz Kocoń (Polish),Ibnu "
|
||||
"Daru Aji (Indonesian),Antonio Vivace (Italian)";
|
||||
const char TRANSLATORS[] = "Ernesto Aviles Vzqz (Spanish),"
|
||||
"Mermouy (French),"
|
||||
"underr (Brazillian Portuguese),"
|
||||
"Viktor Slobodyan (Ukrainian),"
|
||||
"Lemueler (Chinese),"
|
||||
"Heimen Stoffels (Dutch),"
|
||||
"Mariusz Kocoń (Polish),"
|
||||
"Ibnu Daru Aji (Indonesian),"
|
||||
"Antonio Vivace (Italian)";
|
||||
const char EMAIL[] = "@PROJECT_CONTACT@";
|
||||
const char LICENSE[] = "@PROJECT_LICENSE@";
|
||||
const char TRDPARTY_LICENSE[] = "QReplyTimeout "
|
||||
"wrapper,no,http://"
|
||||
"codereview.stackexchange.com/questions/30031/"
|
||||
"qnetworkreply-network-reply-timeout-helper";
|
||||
const char SPECIAL_THANKS[] = "Stooq,https://stooq.com/;Yahoo! "
|
||||
"Weather,https://weather.yahoo.com/;JetBrains,https://"
|
||||
"www.jetbrains.com/;OpenWeatherMap,http://openweathermap.org/";
|
||||
const char SPECIAL_THANKS[] = "Stooq,https://stooq.com/;"
|
||||
"Yahoo! Weather,https://weather.yahoo.com/;"
|
||||
"JetBrains,https://www.jetbrains.com/;"
|
||||
"OpenWeatherMap,http://openweathermap.org/";
|
||||
const char CHANGELOG[] = "@PROJECT_CHANGELOG@";
|
||||
|
||||
// configuraion
|
||||
// configuration
|
||||
// graphical items api version
|
||||
const int AW_GRAPHITEM_API = 6;
|
||||
// extquotes api version
|
||||
@ -50,16 +54,80 @@ const int REQUEST_TIMEOUT = 3000;
|
||||
// available time keys
|
||||
const char TIME_KEYS[] = "d,dd,ddd,dddd,M,MM,MMM,MMMM,yy,yyyy,h,hh,H,HH,m,mm,s,ss,t,a,ap,A,AP";
|
||||
// static keys
|
||||
const char STATIC_FUNCTIONS[] = "{{\n\n}},template{{\n\n}},aw_all<>{{}},aw_"
|
||||
"count<>{{}},aw_keys<>{{}},aw_macro<>{{}},aw_"
|
||||
"names<>{{}}";
|
||||
const char STATIC_KEYS[] = "time,isotime,shorttime,longtime,tstime,ctime,uptime,cuptime,cpucl,cpu,"
|
||||
"gpu,memmb,memgb,memfreemb,memfreegb,memtotmb,memtotgb,memusedmb,"
|
||||
"memusedgb,mem,swapmb,swapgb,swapfreemb,swapfreegb,swaptotmb,swaptotgb,"
|
||||
"swap,downunits,upunits,downkb,downtotkb,downtot,down,uptotkb,uptot,upkb,"
|
||||
"up,netdev,ac,bat,batleft,batnow,batrate,battotal,album,artist,duration,"
|
||||
"progress,title,dalbum,dartist,dtitle,salbum,sartist,stitle,pscount,pstot"
|
||||
",ps,desktop,ndesktop,tdesktops,la15,la5,la1,ssid,volume,brightness";
|
||||
const char STATIC_FUNCTIONS[] = "{{\n\n}},"
|
||||
"template{{\n\n}},"
|
||||
"aw_all<>{{}},"
|
||||
"aw_count<>{{}},"
|
||||
"aw_keys<>{{}},"
|
||||
"aw_macro<>{{}},"
|
||||
"aw_names<>{{}}";
|
||||
const char STATIC_KEYS[] = "time,"
|
||||
"isotime,"
|
||||
"shorttime,"
|
||||
"longtime,"
|
||||
"tstime,"
|
||||
"ctime,"
|
||||
"uptime,"
|
||||
"cuptime,"
|
||||
"cpucl,"
|
||||
"cpu,"
|
||||
"gpu,"
|
||||
"memmb,"
|
||||
"memgb,"
|
||||
"memfreemb,"
|
||||
"memfreegb,"
|
||||
"memtotmb,"
|
||||
"memtotgb,"
|
||||
"memusedmb,"
|
||||
"memusedgb,"
|
||||
"mem,"
|
||||
"swapmb,"
|
||||
"swapgb,"
|
||||
"swapfreemb,"
|
||||
"swapfreegb,"
|
||||
"swaptotmb,"
|
||||
"swaptotgb,"
|
||||
"swap,"
|
||||
"downunits,"
|
||||
"upunits,"
|
||||
"downkb,"
|
||||
"downtotkb,"
|
||||
"downtot,"
|
||||
"down,"
|
||||
"uptotkb,"
|
||||
"uptot,"
|
||||
"upkb,"
|
||||
"up,"
|
||||
"netdev,"
|
||||
"ac,"
|
||||
"bat,"
|
||||
"batleft,"
|
||||
"batnow,"
|
||||
"batrate,"
|
||||
"battotal,"
|
||||
"album,"
|
||||
"artist,"
|
||||
"duration,"
|
||||
"progress,"
|
||||
"title,"
|
||||
"dalbum,"
|
||||
"dartist,"
|
||||
"dtitle,"
|
||||
"salbum,"
|
||||
"sartist,"
|
||||
"stitle,"
|
||||
"pscount,"
|
||||
"pstot,"
|
||||
"ps,"
|
||||
"desktop,"
|
||||
"ndesktop,"
|
||||
"tdesktops,"
|
||||
"la15,"
|
||||
"la5,"
|
||||
"la1,"
|
||||
"ssid,"
|
||||
"volume,"
|
||||
"brightness";
|
||||
#cmakedefine BUILD_FUTURE
|
||||
#cmakedefine BUILD_LOAD
|
||||
#cmakedefine BUILD_TESTING
|
||||
@ -105,6 +173,3 @@ const char CPPCHECK_EXECUTABLE[] = "@CPPCHECK_EXECUTABLE@";
|
||||
const char PROP_FUTURE[] = "@BUILD_FUTURE@";
|
||||
const char PROP_LOAD[] = "@BUILD_LOAD@";
|
||||
const char PROP_TEST[] = "@BUILD_TESTING@";
|
||||
|
||||
|
||||
#endif /* VERSION_H */
|
||||
|
Loading…
Reference in New Issue
Block a user