tweaked clang format
This commit is contained in:
parent
217374071d
commit
a29d4b80bb
@ -92,11 +92,11 @@ IncludeCategories:
|
|||||||
SortPriority: 0
|
SortPriority: 0
|
||||||
CaseSensitive: false
|
CaseSensitive: false
|
||||||
- Regex: '^<[A-Z]'
|
- Regex: '^<[A-Z]'
|
||||||
Priority: 3
|
Priority: 4
|
||||||
SortPriority: 0
|
SortPriority: 0
|
||||||
CaseSensitive: true
|
CaseSensitive: true
|
||||||
- Regex: '^<[a-z0-9]'
|
- Regex: '^<[a-z0-9]'
|
||||||
Priority: 4
|
Priority: 3
|
||||||
SortPriority: 0
|
SortPriority: 0
|
||||||
CaseSensitive: true
|
CaseSensitive: true
|
||||||
IncludeIsMainRegex: '(Test)?$'
|
IncludeIsMainRegex: '(Test)?$'
|
||||||
|
@ -2,6 +2,16 @@
|
|||||||
|
|
||||||
#include "src/gui/formdiscoverfeeds.h"
|
#include "src/gui/formdiscoverfeeds.h"
|
||||||
|
|
||||||
|
#include "src/definitions.h"
|
||||||
|
#include "src/gui/formstandardfeeddetails.h"
|
||||||
|
#include "src/parsers/atomparser.h"
|
||||||
|
#include "src/parsers/icalparser.h"
|
||||||
|
#include "src/parsers/jsonparser.h"
|
||||||
|
#include "src/parsers/rdfparser.h"
|
||||||
|
#include "src/parsers/rssparser.h"
|
||||||
|
#include "src/parsers/sitemapparser.h"
|
||||||
|
#include "src/standardfeed.h"
|
||||||
|
|
||||||
#include <librssguard/3rd-party/boolinq/boolinq.h>
|
#include <librssguard/3rd-party/boolinq/boolinq.h>
|
||||||
#include <librssguard/database/databasequeries.h>
|
#include <librssguard/database/databasequeries.h>
|
||||||
#include <librssguard/gui/guiutilities.h>
|
#include <librssguard/gui/guiutilities.h>
|
||||||
@ -10,16 +20,6 @@
|
|||||||
#include <librssguard/miscellaneous/settings.h>
|
#include <librssguard/miscellaneous/settings.h>
|
||||||
#include <librssguard/services/abstract/category.h>
|
#include <librssguard/services/abstract/category.h>
|
||||||
#include <librssguard/services/abstract/serviceroot.h>
|
#include <librssguard/services/abstract/serviceroot.h>
|
||||||
#include "src/definitions.h"
|
|
||||||
#include "src/gui/formstandardfeeddetails.h"
|
|
||||||
#include "src/standardfeed.h"
|
|
||||||
|
|
||||||
#include "src/parsers/atomparser.h"
|
|
||||||
#include "src/parsers/icalparser.h"
|
|
||||||
#include "src/parsers/jsonparser.h"
|
|
||||||
#include "src/parsers/rdfparser.h"
|
|
||||||
#include "src/parsers/rssparser.h"
|
|
||||||
#include "src/parsers/sitemapparser.h"
|
|
||||||
|
|
||||||
#include <QtConcurrentMap>
|
#include <QtConcurrentMap>
|
||||||
|
|
||||||
|
@ -7,11 +7,11 @@
|
|||||||
|
|
||||||
#include "ui_formdiscoverfeeds.h"
|
#include "ui_formdiscoverfeeds.h"
|
||||||
|
|
||||||
|
#include <librssguard/services/abstract/accountcheckmodel.h>
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QFutureWatcher>
|
#include <QFutureWatcher>
|
||||||
|
|
||||||
#include <librssguard/services/abstract/accountcheckmodel.h>
|
|
||||||
|
|
||||||
class ServiceRoot;
|
class ServiceRoot;
|
||||||
class RootItem;
|
class RootItem;
|
||||||
class Category;
|
class Category;
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
#include "src/gui/formstandardfeeddetails.h"
|
#include "src/gui/formstandardfeeddetails.h"
|
||||||
|
|
||||||
|
#include "src/gui/standardfeeddetails.h"
|
||||||
|
#include "src/standardfeed.h"
|
||||||
|
|
||||||
#include <librssguard/database/databasequeries.h>
|
#include <librssguard/database/databasequeries.h>
|
||||||
#include <librssguard/exceptions/applicationexception.h>
|
#include <librssguard/exceptions/applicationexception.h>
|
||||||
#include <librssguard/miscellaneous/application.h>
|
#include <librssguard/miscellaneous/application.h>
|
||||||
@ -10,8 +13,6 @@
|
|||||||
#include <librssguard/services/abstract/category.h>
|
#include <librssguard/services/abstract/category.h>
|
||||||
#include <librssguard/services/abstract/gui/authenticationdetails.h>
|
#include <librssguard/services/abstract/gui/authenticationdetails.h>
|
||||||
#include <librssguard/services/abstract/serviceroot.h>
|
#include <librssguard/services/abstract/serviceroot.h>
|
||||||
#include "src/gui/standardfeeddetails.h"
|
|
||||||
#include "src/standardfeed.h"
|
|
||||||
|
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
#include <QDialogButtonBox>
|
#include <QDialogButtonBox>
|
||||||
|
@ -2,15 +2,15 @@
|
|||||||
|
|
||||||
#include "src/gui/formstandardimportexport.h"
|
#include "src/gui/formstandardimportexport.h"
|
||||||
|
|
||||||
|
#include "src/standardfeedsimportexportmodel.h"
|
||||||
|
#include "src/standardserviceroot.h"
|
||||||
|
|
||||||
#include <librssguard/exceptions/ioexception.h>
|
#include <librssguard/exceptions/ioexception.h>
|
||||||
#include <librssguard/gui/guiutilities.h>
|
#include <librssguard/gui/guiutilities.h>
|
||||||
#include <librssguard/miscellaneous/application.h>
|
#include <librssguard/miscellaneous/application.h>
|
||||||
#include <librssguard/miscellaneous/iconfactory.h>
|
#include <librssguard/miscellaneous/iconfactory.h>
|
||||||
#include <librssguard/services/abstract/category.h>
|
#include <librssguard/services/abstract/category.h>
|
||||||
|
|
||||||
#include "src/standardfeedsimportexportmodel.h"
|
|
||||||
#include "src/standardserviceroot.h"
|
|
||||||
|
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QTextStream>
|
#include <QTextStream>
|
||||||
|
|
||||||
|
@ -2,9 +2,10 @@
|
|||||||
|
|
||||||
#include "src/gui/standardaccountdetails.h"
|
#include "src/gui/standardaccountdetails.h"
|
||||||
|
|
||||||
|
#include "src/standardserviceentrypoint.h"
|
||||||
|
|
||||||
#include <librssguard/3rd-party/boolinq/boolinq.h>
|
#include <librssguard/3rd-party/boolinq/boolinq.h>
|
||||||
#include <librssguard/miscellaneous/iconfactory.h>
|
#include <librssguard/miscellaneous/iconfactory.h>
|
||||||
#include "src/standardserviceentrypoint.h"
|
|
||||||
|
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QImageReader>
|
#include <QImageReader>
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
#include "src/gui/standardfeeddetails.h"
|
#include "src/gui/standardfeeddetails.h"
|
||||||
|
|
||||||
|
#include "src/definitions.h"
|
||||||
|
|
||||||
#include <librssguard/3rd-party/boolinq/boolinq.h>
|
#include <librssguard/3rd-party/boolinq/boolinq.h>
|
||||||
#include <librssguard/exceptions/applicationexception.h>
|
#include <librssguard/exceptions/applicationexception.h>
|
||||||
#include <librssguard/exceptions/networkexception.h>
|
#include <librssguard/exceptions/networkexception.h>
|
||||||
@ -10,7 +12,6 @@
|
|||||||
#include <librssguard/miscellaneous/textfactory.h>
|
#include <librssguard/miscellaneous/textfactory.h>
|
||||||
#include <librssguard/network-web/networkfactory.h>
|
#include <librssguard/network-web/networkfactory.h>
|
||||||
#include <librssguard/services/abstract/category.h>
|
#include <librssguard/services/abstract/category.h>
|
||||||
#include "src/definitions.h"
|
|
||||||
|
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QImageReader>
|
#include <QImageReader>
|
||||||
|
@ -2,13 +2,14 @@
|
|||||||
|
|
||||||
#include "src/parsers/atomparser.h"
|
#include "src/parsers/atomparser.h"
|
||||||
|
|
||||||
|
#include "src/definitions.h"
|
||||||
|
#include "src/standardfeed.h"
|
||||||
|
|
||||||
#include <librssguard/definitions/definitions.h>
|
#include <librssguard/definitions/definitions.h>
|
||||||
#include <librssguard/exceptions/applicationexception.h>
|
#include <librssguard/exceptions/applicationexception.h>
|
||||||
#include <librssguard/miscellaneous/application.h>
|
#include <librssguard/miscellaneous/application.h>
|
||||||
#include <librssguard/miscellaneous/settings.h>
|
#include <librssguard/miscellaneous/settings.h>
|
||||||
#include <librssguard/miscellaneous/textfactory.h>
|
#include <librssguard/miscellaneous/textfactory.h>
|
||||||
#include "src/definitions.h"
|
|
||||||
#include "src/standardfeed.h"
|
|
||||||
|
|
||||||
#include <QTextCodec>
|
#include <QTextCodec>
|
||||||
|
|
||||||
|
@ -5,11 +5,11 @@
|
|||||||
|
|
||||||
#include "src/parsers/feedparser.h"
|
#include "src/parsers/feedparser.h"
|
||||||
|
|
||||||
|
#include <librssguard/core/message.h>
|
||||||
|
|
||||||
#include <QDomDocument>
|
#include <QDomDocument>
|
||||||
#include <QList>
|
#include <QList>
|
||||||
|
|
||||||
#include <librssguard/core/message.h>
|
|
||||||
|
|
||||||
class AtomParser : public FeedParser {
|
class AtomParser : public FeedParser {
|
||||||
public:
|
public:
|
||||||
explicit AtomParser(const QString& data);
|
explicit AtomParser(const QString& data);
|
||||||
|
@ -9,13 +9,12 @@
|
|||||||
#include <librssguard/exceptions/feedfetchexception.h>
|
#include <librssguard/exceptions/feedfetchexception.h>
|
||||||
#include <librssguard/miscellaneous/iofactory.h>
|
#include <librssguard/miscellaneous/iofactory.h>
|
||||||
#include <librssguard/network-web/webfactory.h>
|
#include <librssguard/network-web/webfactory.h>
|
||||||
|
#include <utility>
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
|
|
||||||
#include <utility>
|
|
||||||
|
|
||||||
FeedParser::FeedParser(QString data, DataType is_xml)
|
FeedParser::FeedParser(QString data, DataType is_xml)
|
||||||
: m_dataType(is_xml), m_data(std::move(data)), m_mrssNamespace(QSL("http://search.yahoo.com/mrss/")) {
|
: m_dataType(is_xml), m_data(std::move(data)), m_mrssNamespace(QSL("http://search.yahoo.com/mrss/")) {
|
||||||
if (m_data.isEmpty()) {
|
if (m_data.isEmpty()) {
|
||||||
|
@ -5,15 +5,15 @@
|
|||||||
|
|
||||||
#include "src/standardfeed.h"
|
#include "src/standardfeed.h"
|
||||||
|
|
||||||
|
#include <librssguard/core/message.h>
|
||||||
|
#include <librssguard/definitions/typedefs.h>
|
||||||
|
|
||||||
#include <QDomDocument>
|
#include <QDomDocument>
|
||||||
#include <QJsonArray>
|
#include <QJsonArray>
|
||||||
#include <QJsonDocument>
|
#include <QJsonDocument>
|
||||||
#include <QJsonObject>
|
#include <QJsonObject>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
#include <librssguard/core/message.h>
|
|
||||||
#include <librssguard/definitions/typedefs.h>
|
|
||||||
|
|
||||||
// Base class for all XML-based feed parsers.
|
// Base class for all XML-based feed parsers.
|
||||||
class FeedParser {
|
class FeedParser {
|
||||||
public:
|
public:
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
#include "src/parsers/icalparser.h"
|
#include "src/parsers/icalparser.h"
|
||||||
|
|
||||||
|
#include "src/definitions.h"
|
||||||
|
|
||||||
#include <librssguard/3rd-party/boolinq/boolinq.h>
|
#include <librssguard/3rd-party/boolinq/boolinq.h>
|
||||||
#include <librssguard/definitions/definitions.h>
|
#include <librssguard/definitions/definitions.h>
|
||||||
#include <librssguard/exceptions/applicationexception.h>
|
#include <librssguard/exceptions/applicationexception.h>
|
||||||
@ -9,7 +11,6 @@
|
|||||||
#include <librssguard/miscellaneous/application.h>
|
#include <librssguard/miscellaneous/application.h>
|
||||||
#include <librssguard/miscellaneous/settings.h>
|
#include <librssguard/miscellaneous/settings.h>
|
||||||
#include <librssguard/miscellaneous/textfactory.h>
|
#include <librssguard/miscellaneous/textfactory.h>
|
||||||
#include "src/definitions.h"
|
|
||||||
|
|
||||||
IcalParser::IcalParser(const QString& data)
|
IcalParser::IcalParser(const QString& data)
|
||||||
: FeedParser(data, DataType::Other), m_iCalendar(Icalendar(m_data.toUtf8())) {}
|
: FeedParser(data, DataType::Other), m_iCalendar(Icalendar(m_data.toUtf8())) {}
|
||||||
|
@ -2,14 +2,15 @@
|
|||||||
|
|
||||||
#include "src/parsers/jsonparser.h"
|
#include "src/parsers/jsonparser.h"
|
||||||
|
|
||||||
|
#include "src/definitions.h"
|
||||||
|
#include "src/standardfeed.h"
|
||||||
|
|
||||||
#include <librssguard/definitions/definitions.h>
|
#include <librssguard/definitions/definitions.h>
|
||||||
#include <librssguard/definitions/typedefs.h>
|
#include <librssguard/definitions/typedefs.h>
|
||||||
#include <librssguard/exceptions/applicationexception.h>
|
#include <librssguard/exceptions/applicationexception.h>
|
||||||
#include <librssguard/exceptions/feedrecognizedbutfailedexception.h>
|
#include <librssguard/exceptions/feedrecognizedbutfailedexception.h>
|
||||||
#include <librssguard/miscellaneous/settings.h>
|
#include <librssguard/miscellaneous/settings.h>
|
||||||
#include <librssguard/miscellaneous/textfactory.h>
|
#include <librssguard/miscellaneous/textfactory.h>
|
||||||
#include "src/definitions.h"
|
|
||||||
#include "src/standardfeed.h"
|
|
||||||
|
|
||||||
#include <QJsonArray>
|
#include <QJsonArray>
|
||||||
#include <QJsonDocument>
|
#include <QJsonDocument>
|
||||||
|
@ -2,11 +2,12 @@
|
|||||||
|
|
||||||
#include "src/parsers/rdfparser.h"
|
#include "src/parsers/rdfparser.h"
|
||||||
|
|
||||||
|
#include "src/definitions.h"
|
||||||
|
#include "src/standardfeed.h"
|
||||||
|
|
||||||
#include <librssguard/exceptions/applicationexception.h>
|
#include <librssguard/exceptions/applicationexception.h>
|
||||||
#include <librssguard/miscellaneous/settings.h>
|
#include <librssguard/miscellaneous/settings.h>
|
||||||
#include <librssguard/miscellaneous/textfactory.h>
|
#include <librssguard/miscellaneous/textfactory.h>
|
||||||
#include "src/definitions.h"
|
|
||||||
#include "src/standardfeed.h"
|
|
||||||
|
|
||||||
#include <QDomDocument>
|
#include <QDomDocument>
|
||||||
#include <QTextCodec>
|
#include <QTextCodec>
|
||||||
|
@ -2,13 +2,14 @@
|
|||||||
|
|
||||||
#include "src/parsers/rssparser.h"
|
#include "src/parsers/rssparser.h"
|
||||||
|
|
||||||
|
#include "src/definitions.h"
|
||||||
|
#include "src/standardfeed.h"
|
||||||
|
|
||||||
#include <librssguard/exceptions/applicationexception.h>
|
#include <librssguard/exceptions/applicationexception.h>
|
||||||
#include <librssguard/miscellaneous/application.h>
|
#include <librssguard/miscellaneous/application.h>
|
||||||
#include <librssguard/miscellaneous/settings.h>
|
#include <librssguard/miscellaneous/settings.h>
|
||||||
#include <librssguard/miscellaneous/textfactory.h>
|
#include <librssguard/miscellaneous/textfactory.h>
|
||||||
#include <librssguard/network-web/networkfactory.h>
|
#include <librssguard/network-web/networkfactory.h>
|
||||||
#include "src/definitions.h"
|
|
||||||
#include "src/standardfeed.h"
|
|
||||||
|
|
||||||
#include <QDomDocument>
|
#include <QDomDocument>
|
||||||
#include <QTextCodec>
|
#include <QTextCodec>
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "src/definitions.h"
|
#include "src/definitions.h"
|
||||||
|
|
||||||
#include <librssguard/definitions/definitions.h>
|
#include <librssguard/definitions/definitions.h>
|
||||||
#include <librssguard/exceptions/applicationexception.h>
|
#include <librssguard/exceptions/applicationexception.h>
|
||||||
#include <librssguard/exceptions/feedrecognizedbutfailedexception.h>
|
#include <librssguard/exceptions/feedrecognizedbutfailedexception.h>
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
#define SITEMAPPARSER_H
|
#define SITEMAPPARSER_H
|
||||||
|
|
||||||
#include "src/parsers/feedparser.h"
|
#include "src/parsers/feedparser.h"
|
||||||
|
|
||||||
#include "src/standardfeed.h"
|
#include "src/standardfeed.h"
|
||||||
|
|
||||||
class SitemapParser : public FeedParser {
|
class SitemapParser : public FeedParser {
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
#include "src/gui/formstandardfeeddetails.h"
|
#include "src/gui/formstandardfeeddetails.h"
|
||||||
#include "src/standardserviceroot.h"
|
#include "src/standardserviceroot.h"
|
||||||
|
|
||||||
#include <librssguard/database/databasequeries.h>
|
#include <librssguard/database/databasequeries.h>
|
||||||
#include <librssguard/definitions/definitions.h>
|
#include <librssguard/definitions/definitions.h>
|
||||||
#include <librssguard/exceptions/applicationexception.h>
|
#include <librssguard/exceptions/applicationexception.h>
|
||||||
|
@ -3,9 +3,8 @@
|
|||||||
#ifndef FEEDSMODELFEED_H
|
#ifndef FEEDSMODELFEED_H
|
||||||
#define FEEDSMODELFEED_H
|
#define FEEDSMODELFEED_H
|
||||||
|
|
||||||
#include <librssguard/services/abstract/feed.h>
|
|
||||||
|
|
||||||
#include <librssguard/network-web/networkfactory.h>
|
#include <librssguard/network-web/networkfactory.h>
|
||||||
|
#include <librssguard/services/abstract/feed.h>
|
||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
|
@ -2,15 +2,16 @@
|
|||||||
|
|
||||||
#include "src/standardfeedsimportexportmodel.h"
|
#include "src/standardfeedsimportexportmodel.h"
|
||||||
|
|
||||||
|
#include "src/definitions.h"
|
||||||
|
#include "src/standardcategory.h"
|
||||||
|
#include "src/standardfeed.h"
|
||||||
|
#include "src/standardserviceroot.h"
|
||||||
|
|
||||||
#include <librssguard/3rd-party/boolinq/boolinq.h>
|
#include <librssguard/3rd-party/boolinq/boolinq.h>
|
||||||
#include <librssguard/definitions/definitions.h>
|
#include <librssguard/definitions/definitions.h>
|
||||||
#include <librssguard/exceptions/applicationexception.h>
|
#include <librssguard/exceptions/applicationexception.h>
|
||||||
#include <librssguard/miscellaneous/application.h>
|
#include <librssguard/miscellaneous/application.h>
|
||||||
#include <librssguard/miscellaneous/iconfactory.h>
|
#include <librssguard/miscellaneous/iconfactory.h>
|
||||||
#include "src/definitions.h"
|
|
||||||
#include "src/standardcategory.h"
|
|
||||||
#include "src/standardfeed.h"
|
|
||||||
#include "src/standardserviceroot.h"
|
|
||||||
|
|
||||||
#include <QDomAttr>
|
#include <QDomAttr>
|
||||||
#include <QDomDocument>
|
#include <QDomDocument>
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
#include "src/gui/formeditstandardaccount.h"
|
#include "src/gui/formeditstandardaccount.h"
|
||||||
#include "src/standardserviceroot.h"
|
#include "src/standardserviceroot.h"
|
||||||
|
|
||||||
#include <librssguard/database/databasequeries.h>
|
#include <librssguard/database/databasequeries.h>
|
||||||
#include <librssguard/definitions/definitions.h>
|
#include <librssguard/definitions/definitions.h>
|
||||||
#include <librssguard/miscellaneous/application.h>
|
#include <librssguard/miscellaneous/application.h>
|
||||||
|
@ -2,19 +2,6 @@
|
|||||||
|
|
||||||
#include "src/standardserviceroot.h"
|
#include "src/standardserviceroot.h"
|
||||||
|
|
||||||
#include <librssguard/database/databasequeries.h>
|
|
||||||
#include <librssguard/definitions/definitions.h>
|
|
||||||
#include <librssguard/exceptions/applicationexception.h>
|
|
||||||
#include <librssguard/exceptions/feedfetchexception.h>
|
|
||||||
#include <librssguard/exceptions/scriptexception.h>
|
|
||||||
#include <librssguard/gui/messagebox.h>
|
|
||||||
#include <librssguard/miscellaneous/application.h>
|
|
||||||
#include <librssguard/miscellaneous/iconfactory.h>
|
|
||||||
#include <librssguard/miscellaneous/mutex.h>
|
|
||||||
#include <librssguard/miscellaneous/settings.h>
|
|
||||||
#include <librssguard/network-web/networkfactory.h>
|
|
||||||
#include <librssguard/services/abstract/gui/formcategorydetails.h>
|
|
||||||
|
|
||||||
#include "src/definitions.h"
|
#include "src/definitions.h"
|
||||||
#include "src/gui/formdiscoverfeeds.h"
|
#include "src/gui/formdiscoverfeeds.h"
|
||||||
#include "src/gui/formeditstandardaccount.h"
|
#include "src/gui/formeditstandardaccount.h"
|
||||||
@ -31,6 +18,19 @@
|
|||||||
#include "src/standardfeedsimportexportmodel.h"
|
#include "src/standardfeedsimportexportmodel.h"
|
||||||
#include "src/standardserviceentrypoint.h"
|
#include "src/standardserviceentrypoint.h"
|
||||||
|
|
||||||
|
#include <librssguard/database/databasequeries.h>
|
||||||
|
#include <librssguard/definitions/definitions.h>
|
||||||
|
#include <librssguard/exceptions/applicationexception.h>
|
||||||
|
#include <librssguard/exceptions/feedfetchexception.h>
|
||||||
|
#include <librssguard/exceptions/scriptexception.h>
|
||||||
|
#include <librssguard/gui/messagebox.h>
|
||||||
|
#include <librssguard/miscellaneous/application.h>
|
||||||
|
#include <librssguard/miscellaneous/iconfactory.h>
|
||||||
|
#include <librssguard/miscellaneous/mutex.h>
|
||||||
|
#include <librssguard/miscellaneous/settings.h>
|
||||||
|
#include <librssguard/network-web/networkfactory.h>
|
||||||
|
#include <librssguard/services/abstract/gui/formcategorydetails.h>
|
||||||
|
|
||||||
#if defined(NO_LITE)
|
#if defined(NO_LITE)
|
||||||
#include <librssguard/gui/webviewers/webengine/webengineviewer.h>
|
#include <librssguard/gui/webviewers/webengine/webengineviewer.h>
|
||||||
#include <librssguard/network-web/webengine/webenginepage.h>
|
#include <librssguard/network-web/webengine/webenginepage.h>
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
#ifndef STANDARDSERVICEROOT_H
|
#ifndef STANDARDSERVICEROOT_H
|
||||||
#define STANDARDSERVICEROOT_H
|
#define STANDARDSERVICEROOT_H
|
||||||
|
|
||||||
#include <librssguard/services/abstract/serviceroot.h>
|
|
||||||
|
|
||||||
#include "src/standardfeed.h"
|
#include "src/standardfeed.h"
|
||||||
|
|
||||||
|
#include <librssguard/services/abstract/serviceroot.h>
|
||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QPair>
|
#include <QPair>
|
||||||
|
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
#ifndef ARTICLELISTNOTIFICATIONMODEL_H
|
#ifndef ARTICLELISTNOTIFICATIONMODEL_H
|
||||||
#define ARTICLELISTNOTIFICATIONMODEL_H
|
#define ARTICLELISTNOTIFICATIONMODEL_H
|
||||||
|
|
||||||
#include <QAbstractListModel>
|
|
||||||
|
|
||||||
#include "core/message.h"
|
#include "core/message.h"
|
||||||
|
|
||||||
|
#include <QAbstractListModel>
|
||||||
|
|
||||||
class ArticleListNotificationModel : public QAbstractListModel {
|
class ArticleListNotificationModel : public QAbstractListModel {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
#ifndef FEEDDOWNLOADER_H
|
#ifndef FEEDDOWNLOADER_H
|
||||||
#define FEEDDOWNLOADER_H
|
#define FEEDDOWNLOADER_H
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
|
|
||||||
#include "core/message.h"
|
#include "core/message.h"
|
||||||
#include "exceptions/applicationexception.h"
|
#include "exceptions/applicationexception.h"
|
||||||
#include "services/abstract/cacheforserviceroot.h"
|
#include "services/abstract/cacheforserviceroot.h"
|
||||||
@ -12,6 +10,7 @@
|
|||||||
|
|
||||||
#include <QFutureWatcher>
|
#include <QFutureWatcher>
|
||||||
#include <QHash>
|
#include <QHash>
|
||||||
|
#include <QObject>
|
||||||
#include <QPair>
|
#include <QPair>
|
||||||
|
|
||||||
class MessageFilter;
|
class MessageFilter;
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
#ifndef FEEDSMODEL_H
|
#ifndef FEEDSMODEL_H
|
||||||
#define FEEDSMODEL_H
|
#define FEEDSMODEL_H
|
||||||
|
|
||||||
#include <QAbstractItemModel>
|
|
||||||
|
|
||||||
#include "services/abstract/rootitem.h"
|
#include "services/abstract/rootitem.h"
|
||||||
|
|
||||||
|
#include <QAbstractItemModel>
|
||||||
|
|
||||||
class Category;
|
class Category;
|
||||||
class Feed;
|
class Feed;
|
||||||
class ServiceRoot;
|
class ServiceRoot;
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
#ifndef FEEDSPROXYMODEL_H
|
#ifndef FEEDSPROXYMODEL_H
|
||||||
#define FEEDSPROXYMODEL_H
|
#define FEEDSPROXYMODEL_H
|
||||||
|
|
||||||
#include <QSortFilterProxyModel>
|
|
||||||
|
|
||||||
#include "services/abstract/rootitem.h"
|
#include "services/abstract/rootitem.h"
|
||||||
|
|
||||||
|
#include <QSortFilterProxyModel>
|
||||||
|
|
||||||
class FeedsModel;
|
class FeedsModel;
|
||||||
class FeedsView;
|
class FeedsView;
|
||||||
|
|
||||||
|
@ -3,12 +3,11 @@
|
|||||||
#ifndef MESSAGEFILTER_H
|
#ifndef MESSAGEFILTER_H
|
||||||
#define MESSAGEFILTER_H
|
#define MESSAGEFILTER_H
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
|
|
||||||
#include "core/message.h"
|
#include "core/message.h"
|
||||||
#include "core/messageobject.h"
|
#include "core/messageobject.h"
|
||||||
|
|
||||||
#include <QJSEngine>
|
#include <QJSEngine>
|
||||||
|
#include <QObject>
|
||||||
|
|
||||||
// Class which represents one message filter.
|
// Class which represents one message filter.
|
||||||
class RSSGUARD_DLLSPEC MessageFilter : public QObject {
|
class RSSGUARD_DLLSPEC MessageFilter : public QObject {
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
#ifndef MESSAGEOBJECT_H
|
#ifndef MESSAGEOBJECT_H
|
||||||
#define MESSAGEOBJECT_H
|
#define MESSAGEOBJECT_H
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
|
|
||||||
#include "services/abstract/label.h"
|
#include "services/abstract/label.h"
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
|
||||||
class MessageObject : public QObject {
|
class MessageObject : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
@ -3,16 +3,15 @@
|
|||||||
#ifndef MESSAGESFORFILTERSMODEL_H
|
#ifndef MESSAGESFORFILTERSMODEL_H
|
||||||
#define MESSAGESFORFILTERSMODEL_H
|
#define MESSAGESFORFILTERSMODEL_H
|
||||||
|
|
||||||
#include <QAbstractTableModel>
|
|
||||||
|
|
||||||
#include "core/messageobject.h"
|
#include "core/messageobject.h"
|
||||||
|
|
||||||
|
#include <QAbstractTableModel>
|
||||||
#include <QJSEngine>
|
#include <QJSEngine>
|
||||||
|
|
||||||
class MessageFilter;
|
class MessageFilter;
|
||||||
|
|
||||||
class MessagesForFiltersModel : public QAbstractTableModel {
|
class MessagesForFiltersModel : public QAbstractTableModel {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit MessagesForFiltersModel(QObject* parent = nullptr);
|
explicit MessagesForFiltersModel(QObject* parent = nullptr);
|
||||||
|
@ -17,13 +17,13 @@
|
|||||||
#include "services/abstract/recyclebin.h"
|
#include "services/abstract/recyclebin.h"
|
||||||
#include "services/abstract/serviceroot.h"
|
#include "services/abstract/serviceroot.h"
|
||||||
|
|
||||||
|
#include <cmath>
|
||||||
|
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QPainterPath>
|
#include <QPainterPath>
|
||||||
#include <QSqlError>
|
#include <QSqlError>
|
||||||
#include <QSqlField>
|
#include <QSqlField>
|
||||||
|
|
||||||
#include <cmath>
|
|
||||||
|
|
||||||
MessagesModel::MessagesModel(QObject* parent)
|
MessagesModel::MessagesModel(QObject* parent)
|
||||||
: QSqlQueryModel(parent), m_view(nullptr), m_cache(new MessagesModelCache(this)),
|
: QSqlQueryModel(parent), m_view(nullptr), m_cache(new MessagesModelCache(this)),
|
||||||
m_messageHighlighter(MessageHighlighter::NoHighlighting), m_customDateFormat(QString()),
|
m_messageHighlighter(MessageHighlighter::NoHighlighting), m_customDateFormat(QString()),
|
||||||
|
@ -3,15 +3,14 @@
|
|||||||
#ifndef MESSAGESMODEL_H
|
#ifndef MESSAGESMODEL_H
|
||||||
#define MESSAGESMODEL_H
|
#define MESSAGESMODEL_H
|
||||||
|
|
||||||
#include "core/messagesmodelsqllayer.h"
|
|
||||||
#include <QSqlQueryModel>
|
|
||||||
|
|
||||||
#include "core/message.h"
|
#include "core/message.h"
|
||||||
|
#include "core/messagesmodelsqllayer.h"
|
||||||
#include "definitions/definitions.h"
|
#include "definitions/definitions.h"
|
||||||
#include "services/abstract/rootitem.h"
|
#include "services/abstract/rootitem.h"
|
||||||
|
|
||||||
#include <QFont>
|
#include <QFont>
|
||||||
#include <QIcon>
|
#include <QIcon>
|
||||||
|
#include <QSqlQueryModel>
|
||||||
|
|
||||||
class MessagesView;
|
class MessagesView;
|
||||||
class MessagesModelCache;
|
class MessagesModelCache;
|
||||||
|
@ -3,15 +3,14 @@
|
|||||||
#ifndef MESSAGESMODELCACHE_H
|
#ifndef MESSAGESMODELCACHE_H
|
||||||
#define MESSAGESMODELCACHE_H
|
#define MESSAGESMODELCACHE_H
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
|
|
||||||
#include "core/message.h"
|
#include "core/message.h"
|
||||||
|
|
||||||
#include <QModelIndex>
|
#include <QModelIndex>
|
||||||
|
#include <QObject>
|
||||||
#include <QVariant>
|
#include <QVariant>
|
||||||
|
|
||||||
class MessagesModelCache : public QObject {
|
class MessagesModelCache : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit MessagesModelCache(QObject* parent = nullptr);
|
explicit MessagesModelCache(QObject* parent = nullptr);
|
||||||
|
@ -3,11 +3,10 @@
|
|||||||
#ifndef MESSAGESMODELSQLLAYER_H
|
#ifndef MESSAGESMODELSQLLAYER_H
|
||||||
#define MESSAGESMODELSQLLAYER_H
|
#define MESSAGESMODELSQLLAYER_H
|
||||||
|
|
||||||
#include <QSqlDatabase>
|
|
||||||
|
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QMap>
|
#include <QMap>
|
||||||
#include <QPair>
|
#include <QPair>
|
||||||
|
#include <QSqlDatabase>
|
||||||
|
|
||||||
struct SortColumnsAndOrders {
|
struct SortColumnsAndOrders {
|
||||||
QList<int> m_columns;
|
QList<int> m_columns;
|
||||||
|
@ -4,20 +4,19 @@
|
|||||||
#define DATABASECLEANER_H
|
#define DATABASECLEANER_H
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
|
||||||
#include <QSqlDatabase>
|
#include <QSqlDatabase>
|
||||||
|
|
||||||
struct CleanerOrders {
|
struct CleanerOrders {
|
||||||
bool m_removeReadMessages;
|
bool m_removeReadMessages;
|
||||||
bool m_shrinkDatabase;
|
bool m_shrinkDatabase;
|
||||||
bool m_removeOldMessages;
|
bool m_removeOldMessages;
|
||||||
bool m_removeRecycleBin;
|
bool m_removeRecycleBin;
|
||||||
bool m_removeStarredMessages;
|
bool m_removeStarredMessages;
|
||||||
int m_barrierForRemovingOldMessagesInDays;
|
int m_barrierForRemovingOldMessagesInDays;
|
||||||
};
|
};
|
||||||
|
|
||||||
class DatabaseCleaner : public QObject {
|
class DatabaseCleaner : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit DatabaseCleaner(QObject* parent = nullptr);
|
explicit DatabaseCleaner(QObject* parent = nullptr);
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
#define DATABASEDRIVER_H
|
#define DATABASEDRIVER_H
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
|
||||||
#include <QSqlDatabase>
|
#include <QSqlDatabase>
|
||||||
#include <QSqlQuery>
|
#include <QSqlQuery>
|
||||||
|
|
||||||
|
@ -3,10 +3,9 @@
|
|||||||
#ifndef DATABASEFACTORY_H
|
#ifndef DATABASEFACTORY_H
|
||||||
#define DATABASEFACTORY_H
|
#define DATABASEFACTORY_H
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
|
|
||||||
#include "database/databasedriver.h"
|
#include "database/databasedriver.h"
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
#include <QSqlDatabase>
|
#include <QSqlDatabase>
|
||||||
|
|
||||||
class RSSGUARD_DLLSPEC DatabaseFactory : public QObject {
|
class RSSGUARD_DLLSPEC DatabaseFactory : public QObject {
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
#ifndef DATABASEQUERIES_H
|
#ifndef DATABASEQUERIES_H
|
||||||
#define DATABASEQUERIES_H
|
#define DATABASEQUERIES_H
|
||||||
|
|
||||||
#include "services/abstract/rootitem.h"
|
|
||||||
|
|
||||||
#include "core/messagefilter.h"
|
#include "core/messagefilter.h"
|
||||||
#include "definitions/typedefs.h"
|
#include "definitions/typedefs.h"
|
||||||
#include "miscellaneous/application.h"
|
#include "miscellaneous/application.h"
|
||||||
@ -12,6 +10,7 @@
|
|||||||
#include "miscellaneous/textfactory.h"
|
#include "miscellaneous/textfactory.h"
|
||||||
#include "services/abstract/category.h"
|
#include "services/abstract/category.h"
|
||||||
#include "services/abstract/label.h"
|
#include "services/abstract/label.h"
|
||||||
|
#include "services/abstract/rootitem.h"
|
||||||
#include "services/abstract/search.h"
|
#include "services/abstract/search.h"
|
||||||
#include "services/abstract/serviceroot.h"
|
#include "services/abstract/serviceroot.h"
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include "database/databasedriver.h"
|
#include "database/databasedriver.h"
|
||||||
|
|
||||||
class MariaDbDriver : public DatabaseDriver {
|
class MariaDbDriver : public DatabaseDriver {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum class MariaDbError {
|
enum class MariaDbError {
|
||||||
@ -21,8 +21,11 @@ class MariaDbDriver : public DatabaseDriver {
|
|||||||
|
|
||||||
explicit MariaDbDriver(QObject* parent = nullptr);
|
explicit MariaDbDriver(QObject* parent = nullptr);
|
||||||
|
|
||||||
MariaDbError testConnection(const QString& hostname, int port, const QString& w_database,
|
MariaDbError testConnection(const QString& hostname,
|
||||||
const QString& username, const QString& password);
|
int port,
|
||||||
|
const QString& w_database,
|
||||||
|
const QString& username,
|
||||||
|
const QString& password);
|
||||||
|
|
||||||
virtual QString location() const;
|
virtual QString location() const;
|
||||||
virtual QString humanDriverType() const;
|
virtual QString humanDriverType() const;
|
||||||
@ -36,7 +39,8 @@ class MariaDbDriver : public DatabaseDriver {
|
|||||||
virtual bool finishRestoration();
|
virtual bool finishRestoration();
|
||||||
virtual qint64 databaseDataSize();
|
virtual qint64 databaseDataSize();
|
||||||
virtual QSqlDatabase connection(const QString& connection_name,
|
virtual QSqlDatabase connection(const QString& connection_name,
|
||||||
DatabaseDriver::DesiredStorageType desired_type = DatabaseDriver::DesiredStorageType::FromSettings);
|
DatabaseDriver::DesiredStorageType desired_type =
|
||||||
|
DatabaseDriver::DesiredStorageType::FromSettings);
|
||||||
virtual QString autoIncrementPrimaryKey() const;
|
virtual QString autoIncrementPrimaryKey() const;
|
||||||
virtual QString blob() const;
|
virtual QString blob() const;
|
||||||
|
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
#ifndef TYPEDEFS_H
|
#ifndef TYPEDEFS_H
|
||||||
#define TYPEDEFS_H
|
#define TYPEDEFS_H
|
||||||
|
|
||||||
#include <QList>
|
|
||||||
#include <QPair>
|
|
||||||
|
|
||||||
#include "core/message.h"
|
#include "core/message.h"
|
||||||
#include "services/abstract/rootitem.h"
|
#include "services/abstract/rootitem.h"
|
||||||
|
|
||||||
|
#include <QList>
|
||||||
|
#include <QPair>
|
||||||
|
|
||||||
// First item here represents ID (int, primary key) of the item.
|
// First item here represents ID (int, primary key) of the item.
|
||||||
typedef QList<QPair<int, RootItem*>> Assignment;
|
typedef QList<QPair<int, RootItem*>> Assignment;
|
||||||
typedef QPair<int, RootItem*> AssignmentItem;
|
typedef QPair<int, RootItem*> AssignmentItem;
|
||||||
|
@ -9,7 +9,6 @@ class QAction;
|
|||||||
|
|
||||||
class DynamicShortcuts {
|
class DynamicShortcuts {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Checks the application settings and then initializes shortcut of
|
// Checks the application settings and then initializes shortcut of
|
||||||
// each action from actions from the settings.
|
// each action from actions from the settings.
|
||||||
static void load(const QList<QAction*>& actions);
|
static void load(const QList<QAction*>& actions);
|
||||||
@ -19,7 +18,6 @@ class DynamicShortcuts {
|
|||||||
static void save(const QList<QAction*>& actions);
|
static void save(const QList<QAction*>& actions);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
// Constructor.
|
// Constructor.
|
||||||
explicit DynamicShortcuts() = default;
|
explicit DynamicShortcuts() = default;
|
||||||
};
|
};
|
||||||
|
@ -49,7 +49,8 @@ void DynamicShortcutsWidget::updateShortcuts() {
|
|||||||
void DynamicShortcutsWidget::populate(QList<QAction*> actions) {
|
void DynamicShortcutsWidget::populate(QList<QAction*> actions) {
|
||||||
m_actionBindings.clear();
|
m_actionBindings.clear();
|
||||||
std::sort(actions.begin(), actions.end(), [](QAction* lhs, QAction* rhs) {
|
std::sort(actions.begin(), actions.end(), [](QAction* lhs, QAction* rhs) {
|
||||||
return QString::localeAwareCompare(lhs->text().replace(QL1S("&"), QString()), rhs->text().replace(QL1S("&"), QString())) < 0;
|
return QString::localeAwareCompare(lhs->text().replace(QL1S("&"), QString()),
|
||||||
|
rhs->text().replace(QL1S("&"), QString())) < 0;
|
||||||
});
|
});
|
||||||
int row_id = 0;
|
int row_id = 0;
|
||||||
|
|
||||||
@ -82,7 +83,7 @@ void DynamicShortcutsWidget::populate(QList<QAction*> actions) {
|
|||||||
action_label->setToolTip(action->toolTip());
|
action_label->setToolTip(action->toolTip());
|
||||||
action_label->setWordWrap(true);
|
action_label->setWordWrap(true);
|
||||||
|
|
||||||
//action_label->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
|
// action_label->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
|
||||||
|
|
||||||
auto* action_icon = new QLabel(this);
|
auto* action_icon = new QLabel(this);
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ class ShortcutCatcher;
|
|||||||
typedef QPair<QAction*, ShortcutCatcher*> ActionBinding;
|
typedef QPair<QAction*, ShortcutCatcher*> ActionBinding;
|
||||||
|
|
||||||
class DynamicShortcutsWidget : public QWidget {
|
class DynamicShortcutsWidget : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit DynamicShortcutsWidget(QWidget* parent = nullptr);
|
explicit DynamicShortcutsWidget(QWidget* parent = nullptr);
|
||||||
|
@ -10,7 +10,7 @@ class QHBoxLayout;
|
|||||||
class QKeySequenceEdit;
|
class QKeySequenceEdit;
|
||||||
|
|
||||||
class ShortcutCatcher : public QWidget {
|
class ShortcutCatcher : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit ShortcutCatcher(QWidget* parent = nullptr);
|
explicit ShortcutCatcher(QWidget* parent = nullptr);
|
||||||
|
@ -5,9 +5,8 @@
|
|||||||
#include "network-web/networkfactory.h"
|
#include "network-web/networkfactory.h"
|
||||||
|
|
||||||
NetworkException::NetworkException(QNetworkReply::NetworkError error, const QString& message)
|
NetworkException::NetworkException(QNetworkReply::NetworkError error, const QString& message)
|
||||||
: ApplicationException(message.simplified().isEmpty()
|
: ApplicationException(message.simplified().isEmpty() ? NetworkFactory::networkErrorText(error) : message),
|
||||||
? NetworkFactory::networkErrorText(error)
|
m_networkError(error) {}
|
||||||
: message), m_networkError(error) {}
|
|
||||||
|
|
||||||
QNetworkReply::NetworkError NetworkException::networkError() const {
|
QNetworkReply::NetworkError NetworkException::networkError() const {
|
||||||
return m_networkError;
|
return m_networkError;
|
||||||
|
@ -2,8 +2,10 @@
|
|||||||
|
|
||||||
#include "exceptions/processexception.h"
|
#include "exceptions/processexception.h"
|
||||||
|
|
||||||
ProcessException::ProcessException(int exit_code, QProcess::ExitStatus exit_status,
|
ProcessException::ProcessException(int exit_code,
|
||||||
QProcess::ProcessError error, const QString& message)
|
QProcess::ExitStatus exit_status,
|
||||||
|
QProcess::ProcessError error,
|
||||||
|
const QString& message)
|
||||||
: ApplicationException(message), m_error(error), m_exitStatus(exit_status), m_exitCode(exit_code) {}
|
: ApplicationException(message), m_error(error), m_exitStatus(exit_status), m_exitCode(exit_code) {}
|
||||||
|
|
||||||
QProcess::ExitStatus ProcessException::exitStatus() const {
|
QProcess::ExitStatus ProcessException::exitStatus() const {
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
#ifndef FORMABOUT_H
|
#ifndef FORMABOUT_H
|
||||||
#define FORMABOUT_H
|
#define FORMABOUT_H
|
||||||
|
|
||||||
#include <QDialog>
|
|
||||||
|
|
||||||
#include "ui_formabout.h"
|
#include "ui_formabout.h"
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
class RSSGUARD_DLLSPEC FormAbout : public QDialog {
|
class RSSGUARD_DLLSPEC FormAbout : public QDialog {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
@ -3,18 +3,20 @@
|
|||||||
#ifndef FORMADDACCOUNT_H
|
#ifndef FORMADDACCOUNT_H
|
||||||
#define FORMADDACCOUNT_H
|
#define FORMADDACCOUNT_H
|
||||||
|
|
||||||
#include <QDialog>
|
|
||||||
|
|
||||||
#include "ui_formaddaccount.h"
|
#include "ui_formaddaccount.h"
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
class ServiceEntryPoint;
|
class ServiceEntryPoint;
|
||||||
class FeedsModel;
|
class FeedsModel;
|
||||||
|
|
||||||
class FormAddAccount : public QDialog {
|
class FormAddAccount : public QDialog {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FormAddAccount(const QList<ServiceEntryPoint*>& entry_points, FeedsModel* model, QWidget* parent = nullptr);
|
explicit FormAddAccount(const QList<ServiceEntryPoint*>& entry_points,
|
||||||
|
FeedsModel* model,
|
||||||
|
QWidget* parent = nullptr);
|
||||||
virtual ~FormAddAccount();
|
virtual ~FormAddAccount();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
#ifndef FORMBACKUPDATABASECONFIG_H
|
#ifndef FORMBACKUPDATABASECONFIG_H
|
||||||
#define FORMBACKUPDATABASECONFIG_H
|
#define FORMBACKUPDATABASECONFIG_H
|
||||||
|
|
||||||
#include <QDialog>
|
|
||||||
|
|
||||||
#include "ui_formbackupdatabasesettings.h"
|
#include "ui_formbackupdatabasesettings.h"
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
class FormBackupDatabaseSettings : public QDialog {
|
class FormBackupDatabaseSettings : public QDialog {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FormBackupDatabaseSettings(QWidget* parent = nullptr);
|
explicit FormBackupDatabaseSettings(QWidget* parent = nullptr);
|
||||||
|
@ -3,14 +3,14 @@
|
|||||||
#ifndef FORMDATABASECLEANUP_H
|
#ifndef FORMDATABASECLEANUP_H
|
||||||
#define FORMDATABASECLEANUP_H
|
#define FORMDATABASECLEANUP_H
|
||||||
|
|
||||||
#include <QDialog>
|
#include "database/databasecleaner.h"
|
||||||
|
|
||||||
#include "ui_formdatabasecleanup.h"
|
#include "ui_formdatabasecleanup.h"
|
||||||
|
|
||||||
#include "database/databasecleaner.h"
|
#include <QDialog>
|
||||||
|
|
||||||
class FormDatabaseCleanup : public QDialog {
|
class FormDatabaseCleanup : public QDialog {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FormDatabaseCleanup(QWidget* parent = nullptr);
|
explicit FormDatabaseCleanup(QWidget* parent = nullptr);
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
#ifndef FORMLOG_H
|
#ifndef FORMLOG_H
|
||||||
#define FORMLOG_H
|
#define FORMLOG_H
|
||||||
|
|
||||||
#include <QDialog>
|
|
||||||
|
|
||||||
#include "ui_formlog.h"
|
#include "ui_formlog.h"
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
class FormLog : public QDialog {
|
class FormLog : public QDialog {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
#ifndef FORMMAIN_H
|
#ifndef FORMMAIN_H
|
||||||
#define FORMMAIN_H
|
#define FORMMAIN_H
|
||||||
|
|
||||||
#include <QMainWindow>
|
|
||||||
|
|
||||||
#include "ui_formmain.h"
|
#include "ui_formmain.h"
|
||||||
|
|
||||||
|
#include <QMainWindow>
|
||||||
|
|
||||||
class StatusBar;
|
class StatusBar;
|
||||||
class QWidgetAction;
|
class QWidgetAction;
|
||||||
|
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
#ifndef FORMMESSAGEFILTERSMANAGER_H
|
#ifndef FORMMESSAGEFILTERSMANAGER_H
|
||||||
#define FORMMESSAGEFILTERSMANAGER_H
|
#define FORMMESSAGEFILTERSMANAGER_H
|
||||||
|
|
||||||
#include <QDialog>
|
|
||||||
|
|
||||||
#include "services/abstract/serviceroot.h"
|
#include "services/abstract/serviceroot.h"
|
||||||
|
|
||||||
#include "ui_formmessagefiltersmanager.h"
|
#include "ui_formmessagefiltersmanager.h"
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
class AccountCheckSortedModel;
|
class AccountCheckSortedModel;
|
||||||
class MessageFilter;
|
class MessageFilter;
|
||||||
class FeedReader;
|
class FeedReader;
|
||||||
|
@ -3,15 +3,14 @@
|
|||||||
#ifndef FORMRESTOREDATABASESETTINGS_H
|
#ifndef FORMRESTOREDATABASESETTINGS_H
|
||||||
#define FORMRESTOREDATABASESETTINGS_H
|
#define FORMRESTOREDATABASESETTINGS_H
|
||||||
|
|
||||||
#include <QDialog>
|
|
||||||
|
|
||||||
#include "ui_formrestoredatabasesettings.h"
|
#include "ui_formrestoredatabasesettings.h"
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
class FormRestoreDatabaseSettings : public QDialog {
|
class FormRestoreDatabaseSettings : public QDialog {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructors and destructors.
|
// Constructors and destructors.
|
||||||
explicit FormRestoreDatabaseSettings(QWidget& parent);
|
explicit FormRestoreDatabaseSettings(QWidget& parent);
|
||||||
virtual ~FormRestoreDatabaseSettings();
|
virtual ~FormRestoreDatabaseSettings();
|
||||||
|
@ -3,12 +3,8 @@
|
|||||||
#include "gui/dialogs/formsettings.h"
|
#include "gui/dialogs/formsettings.h"
|
||||||
|
|
||||||
#include "definitions/definitions.h"
|
#include "definitions/definitions.h"
|
||||||
#include "gui/messagebox.h"
|
|
||||||
#include "miscellaneous/application.h"
|
|
||||||
#include "miscellaneous/iconfactory.h"
|
|
||||||
#include "miscellaneous/settings.h"
|
|
||||||
|
|
||||||
#include "gui/guiutilities.h"
|
#include "gui/guiutilities.h"
|
||||||
|
#include "gui/messagebox.h"
|
||||||
#include "gui/settings/settingsbrowsermail.h"
|
#include "gui/settings/settingsbrowsermail.h"
|
||||||
#include "gui/settings/settingsdatabase.h"
|
#include "gui/settings/settingsdatabase.h"
|
||||||
#include "gui/settings/settingsdownloads.h"
|
#include "gui/settings/settingsdownloads.h"
|
||||||
@ -20,6 +16,9 @@
|
|||||||
#include "gui/settings/settingsnodejs.h"
|
#include "gui/settings/settingsnodejs.h"
|
||||||
#include "gui/settings/settingsnotifications.h"
|
#include "gui/settings/settingsnotifications.h"
|
||||||
#include "gui/settings/settingsshortcuts.h"
|
#include "gui/settings/settingsshortcuts.h"
|
||||||
|
#include "miscellaneous/application.h"
|
||||||
|
#include "miscellaneous/iconfactory.h"
|
||||||
|
#include "miscellaneous/settings.h"
|
||||||
|
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QScrollArea>
|
#include <QScrollArea>
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
#ifndef FORMSETTINGS_H
|
#ifndef FORMSETTINGS_H
|
||||||
#define FORMSETTINGS_H
|
#define FORMSETTINGS_H
|
||||||
|
|
||||||
#include <QDialog>
|
|
||||||
|
|
||||||
#include "ui_formsettings.h"
|
#include "ui_formsettings.h"
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
class Settings;
|
class Settings;
|
||||||
class SettingsPanel;
|
class SettingsPanel;
|
||||||
|
|
||||||
|
@ -3,13 +3,12 @@
|
|||||||
#ifndef FORMUPDATE_H
|
#ifndef FORMUPDATE_H
|
||||||
#define FORMUPDATE_H
|
#define FORMUPDATE_H
|
||||||
|
|
||||||
#include <QDialog>
|
|
||||||
|
|
||||||
#include "ui_formupdate.h"
|
|
||||||
|
|
||||||
#include "miscellaneous/systemfactory.h"
|
#include "miscellaneous/systemfactory.h"
|
||||||
#include "network-web/downloader.h"
|
#include "network-web/downloader.h"
|
||||||
|
|
||||||
|
#include "ui_formupdate.h"
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
|
|
||||||
|
@ -3,10 +3,9 @@
|
|||||||
#ifndef FEEDMESSAGEVIEWER_H
|
#ifndef FEEDMESSAGEVIEWER_H
|
||||||
#define FEEDMESSAGEVIEWER_H
|
#define FEEDMESSAGEVIEWER_H
|
||||||
|
|
||||||
#include "gui/tabcontent.h"
|
|
||||||
|
|
||||||
#include "core/messagesmodel.h"
|
#include "core/messagesmodel.h"
|
||||||
#include "core/messagesproxymodel.h"
|
#include "core/messagesproxymodel.h"
|
||||||
|
#include "gui/tabcontent.h"
|
||||||
|
|
||||||
class WebBrowser;
|
class WebBrowser;
|
||||||
class MessagePreviewer;
|
class MessagePreviewer;
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
#include "services/abstract/rootitem.h"
|
#include "services/abstract/rootitem.h"
|
||||||
#include "services/abstract/serviceroot.h"
|
#include "services/abstract/serviceroot.h"
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
#include <QClipboard>
|
#include <QClipboard>
|
||||||
#include <QContextMenuEvent>
|
#include <QContextMenuEvent>
|
||||||
#include <QHeaderView>
|
#include <QHeaderView>
|
||||||
@ -26,8 +28,6 @@
|
|||||||
#include <QPointer>
|
#include <QPointer>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
#include <algorithm>
|
|
||||||
|
|
||||||
FeedsView::FeedsView(QWidget* parent)
|
FeedsView::FeedsView(QWidget* parent)
|
||||||
: BaseTreeView(parent), m_contextMenuService(nullptr), m_contextMenuBin(nullptr), m_contextMenuCategories(nullptr),
|
: BaseTreeView(parent), m_contextMenuService(nullptr), m_contextMenuBin(nullptr), m_contextMenuCategories(nullptr),
|
||||||
m_contextMenuFeeds(nullptr), m_contextMenuImportant(nullptr), m_contextMenuEmptySpace(nullptr),
|
m_contextMenuFeeds(nullptr), m_contextMenuImportant(nullptr), m_contextMenuEmptySpace(nullptr),
|
||||||
|
@ -3,9 +3,8 @@
|
|||||||
#ifndef FEEDSVIEW_H
|
#ifndef FEEDSVIEW_H
|
||||||
#define FEEDSVIEW_H
|
#define FEEDSVIEW_H
|
||||||
|
|
||||||
#include "gui/reusable/basetreeview.h"
|
|
||||||
|
|
||||||
#include "core/feedsmodel.h"
|
#include "core/feedsmodel.h"
|
||||||
|
#include "gui/reusable/basetreeview.h"
|
||||||
#include "gui/toolbars/feedstoolbar.h"
|
#include "gui/toolbars/feedstoolbar.h"
|
||||||
|
|
||||||
#include <QStyledItemDelegate>
|
#include <QStyledItemDelegate>
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
#include "gui/guiutilities.h"
|
#include "gui/guiutilities.h"
|
||||||
|
|
||||||
#include "definitions/definitions.h"
|
#include "definitions/definitions.h"
|
||||||
|
|
||||||
#include "miscellaneous/application.h"
|
#include "miscellaneous/application.h"
|
||||||
#include "miscellaneous/settings.h"
|
#include "miscellaneous/settings.h"
|
||||||
|
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
#ifndef ITEMDETAILS_H
|
#ifndef ITEMDETAILS_H
|
||||||
#define ITEMDETAILS_H
|
#define ITEMDETAILS_H
|
||||||
|
|
||||||
#include <QWidget>
|
|
||||||
|
|
||||||
#include "ui_itemdetails.h"
|
#include "ui_itemdetails.h"
|
||||||
|
|
||||||
|
#include <QWidget>
|
||||||
|
|
||||||
class RootItem;
|
class RootItem;
|
||||||
|
|
||||||
class ItemDetails : public QWidget {
|
class ItemDetails : public QWidget {
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
#define LIBMPVWIDGET_H
|
#define LIBMPVWIDGET_H
|
||||||
|
|
||||||
#if defined(MEDIAPLAYER_LIBMPV_OPENGL)
|
#if defined(MEDIAPLAYER_LIBMPV_OPENGL)
|
||||||
#include <QOpenGLWidget>
|
|
||||||
|
|
||||||
#include <mpv/render_gl.h>
|
#include <mpv/render_gl.h>
|
||||||
|
|
||||||
|
#include <QOpenGLWidget>
|
||||||
|
|
||||||
#define BASE_WIDGET QOpenGLWidget
|
#define BASE_WIDGET QOpenGLWidget
|
||||||
#else
|
#else
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
@ -3,9 +3,8 @@
|
|||||||
#ifndef LIBMPV_QTHELPER_H_
|
#ifndef LIBMPV_QTHELPER_H_
|
||||||
#define LIBMPV_QTHELPER_H_
|
#define LIBMPV_QTHELPER_H_
|
||||||
|
|
||||||
#include <mpv/client.h>
|
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include <mpv/client.h>
|
||||||
|
|
||||||
#include <QHash>
|
#include <QHash>
|
||||||
#include <QList>
|
#include <QList>
|
||||||
|
@ -3,9 +3,8 @@
|
|||||||
#ifndef MEDIAPLAYER_H
|
#ifndef MEDIAPLAYER_H
|
||||||
#define MEDIAPLAYER_H
|
#define MEDIAPLAYER_H
|
||||||
|
|
||||||
#include "gui/tabcontent.h"
|
|
||||||
|
|
||||||
#include "gui/mediaplayer/playerbackend.h"
|
#include "gui/mediaplayer/playerbackend.h"
|
||||||
|
#include "gui/tabcontent.h"
|
||||||
|
|
||||||
#include "ui_mediaplayer.h"
|
#include "ui_mediaplayer.h"
|
||||||
|
|
||||||
|
@ -3,9 +3,8 @@
|
|||||||
#ifndef PLAYERBACKEND_H
|
#ifndef PLAYERBACKEND_H
|
||||||
#define PLAYERBACKEND_H
|
#define PLAYERBACKEND_H
|
||||||
|
|
||||||
#include <QWidget>
|
|
||||||
|
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
|
#include <QWidget>
|
||||||
|
|
||||||
class QVBoxLayout;
|
class QVBoxLayout;
|
||||||
class Application;
|
class Application;
|
||||||
|
@ -5,9 +5,8 @@
|
|||||||
|
|
||||||
#include "gui/mediaplayer/playerbackend.h"
|
#include "gui/mediaplayer/playerbackend.h"
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
|
|
||||||
#include <QMediaPlayer>
|
#include <QMediaPlayer>
|
||||||
|
#include <QObject>
|
||||||
|
|
||||||
#if QT_VERSION_MAJOR == 6
|
#if QT_VERSION_MAJOR == 6
|
||||||
#define PLAYBACK_STATE PlaybackState
|
#define PLAYBACK_STATE PlaybackState
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
#ifndef MESSAGEBOX_H
|
#ifndef MESSAGEBOX_H
|
||||||
#define MESSAGEBOX_H
|
#define MESSAGEBOX_H
|
||||||
|
|
||||||
|
#include <functional>
|
||||||
|
|
||||||
#include <QDialogButtonBox>
|
#include <QDialogButtonBox>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
|
||||||
#include <functional>
|
|
||||||
|
|
||||||
class RSSGUARD_DLLSPEC MsgBox : public QMessageBox {
|
class RSSGUARD_DLLSPEC MsgBox : public QMessageBox {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
MessageBrowser::MessageBrowser(bool should_resize_to_fit, QWidget* parent)
|
MessageBrowser::MessageBrowser(bool should_resize_to_fit, QWidget* parent)
|
||||||
: QWidget(parent), m_txtBrowser(new MessageTextBrowser(this)), m_searchWidget(new SearchTextWidget(this)),
|
: QWidget(parent), m_txtBrowser(new MessageTextBrowser(this)), m_searchWidget(new SearchTextWidget(this)),
|
||||||
m_layout(new QVBoxLayout(this)) {
|
m_layout(new QVBoxLayout(this)) {
|
||||||
m_layout->setContentsMargins(3, 3, 3, 3);
|
m_layout->setContentsMargins(3, 3, 3, 3);
|
||||||
m_layout->addWidget(m_txtBrowser, 1);
|
m_layout->addWidget(m_txtBrowser, 1);
|
||||||
m_layout->addWidget(m_searchWidget);
|
m_layout->addWidget(m_searchWidget);
|
||||||
@ -41,9 +41,7 @@ MessageBrowser::MessageBrowser(bool should_resize_to_fit, QWidget* parent)
|
|||||||
});
|
});
|
||||||
|
|
||||||
connect(m_txtBrowser, &QTextBrowser::anchorClicked, this, &MessageBrowser::onAnchorClicked);
|
connect(m_txtBrowser, &QTextBrowser::anchorClicked, this, &MessageBrowser::onAnchorClicked);
|
||||||
connect(m_txtBrowser,
|
connect(m_txtBrowser, QOverload<const QUrl&>::of(&QTextBrowser::highlighted), [=](const QUrl& url) {
|
||||||
QOverload<const QUrl&>::of(&QTextBrowser::highlighted),
|
|
||||||
[=](const QUrl& url) {
|
|
||||||
Q_UNUSED(url)
|
Q_UNUSED(url)
|
||||||
QToolTip::showText(QCursor::pos(), tr("Click this link to download it or open it with external browser."), this);
|
QToolTip::showText(QCursor::pos(), tr("Click this link to download it or open it with external browser."), this);
|
||||||
});
|
});
|
||||||
@ -86,7 +84,7 @@ QString MessageBrowser::prepareHtmlForMessage(const Message& message) {
|
|||||||
|
|
||||||
QRegularExpression imgTagRegex("\\<img[^\\>]*src\\s*=\\s*[\"\']([^\"\']*)[\"\'][^\\>]*\\>",
|
QRegularExpression imgTagRegex("\\<img[^\\>]*src\\s*=\\s*[\"\']([^\"\']*)[\"\'][^\\>]*\\>",
|
||||||
QRegularExpression::PatternOption::CaseInsensitiveOption |
|
QRegularExpression::PatternOption::CaseInsensitiveOption |
|
||||||
QRegularExpression::PatternOption::InvertedGreedinessOption);
|
QRegularExpression::PatternOption::InvertedGreedinessOption);
|
||||||
QRegularExpressionMatchIterator i = imgTagRegex.globalMatch(message.m_contents);
|
QRegularExpressionMatchIterator i = imgTagRegex.globalMatch(message.m_contents);
|
||||||
QString pictures_html;
|
QString pictures_html;
|
||||||
|
|
||||||
@ -120,10 +118,9 @@ QString MessageBrowser::prepareHtmlForMessage(const Message& message) {
|
|||||||
"a { color: %2; }"
|
"a { color: %2; }"
|
||||||
"</style></head>"
|
"</style></head>"
|
||||||
"<body>%1</body>"
|
"<body>%1</body>"
|
||||||
"</html>").arg(html,
|
"</html>")
|
||||||
qApp->skins()->currentSkin()
|
.arg(html,
|
||||||
.colorForModel(SkinEnums::PaletteColors::FgInteresting)
|
qApp->skins()->currentSkin().colorForModel(SkinEnums::PaletteColors::FgInteresting).value<QColor>().name());
|
||||||
.value<QColor>().name());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MessageBrowser::eventFilter(QObject* watched, QEvent* event) {
|
bool MessageBrowser::eventFilter(QObject* watched, QEvent* event) {
|
||||||
@ -149,15 +146,14 @@ bool MessageBrowser::eventFilter(QObject* watched, QEvent* event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MessageBrowser::onAnchorClicked(const QUrl& url) {
|
void MessageBrowser::onAnchorClicked(const QUrl& url) {
|
||||||
if (url.toString().startsWith(INTERNAL_URL_PASSATTACHMENT) &&
|
if (url.toString().startsWith(INTERNAL_URL_PASSATTACHMENT) && m_root != nullptr &&
|
||||||
m_root != nullptr &&
|
|
||||||
m_root->getParentServiceRoot()->downloadAttachmentOnMyOwn(url)) {
|
m_root->getParentServiceRoot()->downloadAttachmentOnMyOwn(url)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!url.isEmpty()) {
|
if (!url.isEmpty()) {
|
||||||
bool open_externally_now = qApp->settings()->value(GROUP(Browser),
|
bool open_externally_now =
|
||||||
SETTING(Browser::OpenLinksInExternalBrowserRightAway)).toBool();
|
qApp->settings()->value(GROUP(Browser), SETTING(Browser::OpenLinksInExternalBrowserRightAway)).toBool();
|
||||||
|
|
||||||
if (open_externally_now) {
|
if (open_externally_now) {
|
||||||
qApp->web()->openUrlInExternalBrowser(url.toString());
|
qApp->web()->openUrlInExternalBrowser(url.toString());
|
||||||
@ -198,7 +194,10 @@ void MessageBrowser::onAnchorClicked(const QUrl& url) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
MsgBox::show(qApp->mainFormWidget(), QMessageBox::Warning, tr("Incorrect link"), tr("Selected hyperlink is invalid."));
|
MsgBox::show(qApp->mainFormWidget(),
|
||||||
|
QMessageBox::Warning,
|
||||||
|
tr("Incorrect link"),
|
||||||
|
tr("Selected hyperlink is invalid."));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,13 +3,11 @@
|
|||||||
#ifndef MESSAGEBROWSER_H
|
#ifndef MESSAGEBROWSER_H
|
||||||
#define MESSAGEBROWSER_H
|
#define MESSAGEBROWSER_H
|
||||||
|
|
||||||
#include <QWidget>
|
|
||||||
|
|
||||||
#include "core/message.h"
|
#include "core/message.h"
|
||||||
|
|
||||||
#include "services/abstract/rootitem.h"
|
#include "services/abstract/rootitem.h"
|
||||||
|
|
||||||
#include <QPointer>
|
#include <QPointer>
|
||||||
|
#include <QWidget>
|
||||||
|
|
||||||
class RootItem;
|
class RootItem;
|
||||||
class QVBoxLayout;
|
class QVBoxLayout;
|
||||||
@ -17,7 +15,7 @@ class MessageTextBrowser;
|
|||||||
class SearchTextWidget;
|
class SearchTextWidget;
|
||||||
|
|
||||||
class MessageBrowser : public QWidget {
|
class MessageBrowser : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit MessageBrowser(bool should_resize_to_fit, QWidget* parent = nullptr);
|
explicit MessageBrowser(bool should_resize_to_fit, QWidget* parent = nullptr);
|
||||||
|
@ -3,9 +3,8 @@
|
|||||||
#ifndef MESSAGEPREVIEWER_H
|
#ifndef MESSAGEPREVIEWER_H
|
||||||
#define MESSAGEPREVIEWER_H
|
#define MESSAGEPREVIEWER_H
|
||||||
|
|
||||||
#include "gui/tabcontent.h"
|
|
||||||
|
|
||||||
#include "core/message.h"
|
#include "core/message.h"
|
||||||
|
#include "gui/tabcontent.h"
|
||||||
#include "services/abstract/label.h"
|
#include "services/abstract/label.h"
|
||||||
#include "services/abstract/rootitem.h"
|
#include "services/abstract/rootitem.h"
|
||||||
|
|
||||||
|
@ -3,10 +3,9 @@
|
|||||||
#ifndef MESSAGESVIEW_H
|
#ifndef MESSAGESVIEW_H
|
||||||
#define MESSAGESVIEW_H
|
#define MESSAGESVIEW_H
|
||||||
|
|
||||||
#include "gui/reusable/basetreeview.h"
|
|
||||||
|
|
||||||
#include "core/messagesmodel.h"
|
#include "core/messagesmodel.h"
|
||||||
#include "core/messagesproxymodel.h"
|
#include "core/messagesproxymodel.h"
|
||||||
|
#include "gui/reusable/basetreeview.h"
|
||||||
#include "gui/reusable/searchlineedit.h"
|
#include "gui/reusable/searchlineedit.h"
|
||||||
#include "services/abstract/rootitem.h"
|
#include "services/abstract/rootitem.h"
|
||||||
|
|
||||||
|
@ -26,8 +26,9 @@ QVariant MessageTextBrowser::loadResource(int type, const QUrl& name) {
|
|||||||
case QTextDocument::ResourceType::ImageResource: {
|
case QTextDocument::ResourceType::ImageResource: {
|
||||||
if (qApp->settings()->value(GROUP(Messages), SETTING(Messages::DisplayImagePlaceholders)).toBool()) {
|
if (qApp->settings()->value(GROUP(Messages), SETTING(Messages::DisplayImagePlaceholders)).toBool()) {
|
||||||
if (m_imagePlaceholder.isNull()) {
|
if (m_imagePlaceholder.isNull()) {
|
||||||
m_imagePlaceholder = qApp->icons()->miscPixmap(QSL("image-placeholder")).scaledToWidth(20,
|
m_imagePlaceholder = qApp->icons()
|
||||||
Qt::TransformationMode::FastTransformation);
|
->miscPixmap(QSL("image-placeholder"))
|
||||||
|
.scaledToWidth(20, Qt::TransformationMode::FastTransformation);
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_imagePlaceholder;
|
return m_imagePlaceholder;
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
#ifndef MESSAGETEXTBROWSER_H
|
#ifndef MESSAGETEXTBROWSER_H
|
||||||
#define MESSAGETEXTBROWSER_H
|
#define MESSAGETEXTBROWSER_H
|
||||||
|
|
||||||
#include <QTextBrowser>
|
|
||||||
|
|
||||||
#include "core/message.h"
|
#include "core/message.h"
|
||||||
|
|
||||||
|
#include <QTextBrowser>
|
||||||
|
|
||||||
class MessageTextBrowser : public QTextBrowser {
|
class MessageTextBrowser : public QTextBrowser {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit MessageTextBrowser(QWidget* parent = nullptr);
|
explicit MessageTextBrowser(QWidget* parent = nullptr);
|
||||||
@ -20,7 +20,7 @@ class MessageTextBrowser : public QTextBrowser {
|
|||||||
protected:
|
protected:
|
||||||
virtual void contextMenuEvent(QContextMenuEvent* event);
|
virtual void contextMenuEvent(QContextMenuEvent* event);
|
||||||
virtual void wheelEvent(QWheelEvent* event);
|
virtual void wheelEvent(QWheelEvent* event);
|
||||||
virtual void resizeEvent (QResizeEvent* event);
|
virtual void resizeEvent(QResizeEvent* event);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QPixmap m_imagePlaceholder;
|
QPixmap m_imagePlaceholder;
|
||||||
|
@ -3,9 +3,8 @@
|
|||||||
#ifndef ARTICLELISTNOTIFICATION_H
|
#ifndef ARTICLELISTNOTIFICATION_H
|
||||||
#define ARTICLELISTNOTIFICATION_H
|
#define ARTICLELISTNOTIFICATION_H
|
||||||
|
|
||||||
#include "gui/notifications/basetoastnotification.h"
|
|
||||||
|
|
||||||
#include "core/message.h"
|
#include "core/message.h"
|
||||||
|
#include "gui/notifications/basetoastnotification.h"
|
||||||
|
|
||||||
#include "ui_articlelistnotification.h"
|
#include "ui_articlelistnotification.h"
|
||||||
|
|
||||||
|
@ -5,13 +5,13 @@
|
|||||||
#include "miscellaneous/iconfactory.h"
|
#include "miscellaneous/iconfactory.h"
|
||||||
#include "miscellaneous/settings.h"
|
#include "miscellaneous/settings.h"
|
||||||
|
|
||||||
|
#include <chrono>
|
||||||
|
|
||||||
#include <QAbstractButton>
|
#include <QAbstractButton>
|
||||||
#include <QCloseEvent>
|
#include <QCloseEvent>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QTimerEvent>
|
#include <QTimerEvent>
|
||||||
|
|
||||||
#include <chrono>
|
|
||||||
|
|
||||||
using namespace std::chrono_literals;
|
using namespace std::chrono_literals;
|
||||||
|
|
||||||
BaseToastNotification::BaseToastNotification(QWidget* parent) : QDialog(parent), m_timerId(-1) {
|
BaseToastNotification::BaseToastNotification(QWidget* parent) : QDialog(parent), m_timerId(-1) {
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
#define BASETOASTNOTIFICATION_H
|
#define BASETOASTNOTIFICATION_H
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
class QAbstractButton;
|
class QAbstractButton;
|
||||||
|
@ -19,20 +19,27 @@ void NotificationsEditor::loadNotifications(const QList<Notification>& notificat
|
|||||||
|
|
||||||
for (auto ev : all_events) {
|
for (auto ev : all_events) {
|
||||||
if (notif.any([ev](auto n) {
|
if (notif.any([ev](auto n) {
|
||||||
return n.event() == ev;
|
return n.event() == ev;
|
||||||
})) {
|
})) {
|
||||||
auto* notif_editor = new SingleNotificationEditor(notif.first([ev](auto n) {
|
auto* notif_editor = new SingleNotificationEditor(notif.first([ev](auto n) {
|
||||||
return n.event() == ev;
|
return n.event() == ev;
|
||||||
}), this);
|
}),
|
||||||
|
this);
|
||||||
|
|
||||||
connect(notif_editor, &SingleNotificationEditor::notificationChanged, this, &NotificationsEditor::someNotificationChanged);
|
connect(notif_editor,
|
||||||
|
&SingleNotificationEditor::notificationChanged,
|
||||||
|
this,
|
||||||
|
&NotificationsEditor::someNotificationChanged);
|
||||||
|
|
||||||
m_layout->addWidget(notif_editor);
|
m_layout->addWidget(notif_editor);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
auto* notif_editor = new SingleNotificationEditor(Notification(ev), this);
|
auto* notif_editor = new SingleNotificationEditor(Notification(ev), this);
|
||||||
|
|
||||||
connect(notif_editor, &SingleNotificationEditor::notificationChanged, this, &NotificationsEditor::someNotificationChanged);
|
connect(notif_editor,
|
||||||
|
&SingleNotificationEditor::notificationChanged,
|
||||||
|
this,
|
||||||
|
&NotificationsEditor::someNotificationChanged);
|
||||||
|
|
||||||
m_layout->addWidget(notif_editor);
|
m_layout->addWidget(notif_editor);
|
||||||
}
|
}
|
||||||
@ -42,9 +49,11 @@ void NotificationsEditor::loadNotifications(const QList<Notification>& notificat
|
|||||||
}
|
}
|
||||||
|
|
||||||
QList<Notification> NotificationsEditor::allNotifications() const {
|
QList<Notification> NotificationsEditor::allNotifications() const {
|
||||||
auto lst = boolinq::from(findChildren<SingleNotificationEditor*>()).select([](const SingleNotificationEditor* ed) {
|
auto lst = boolinq::from(findChildren<SingleNotificationEditor*>())
|
||||||
return ed->notification();
|
.select([](const SingleNotificationEditor* ed) {
|
||||||
}).toStdList();
|
return ed->notification();
|
||||||
|
})
|
||||||
|
.toStdList();
|
||||||
|
|
||||||
return FROM_STD_LIST(QList<Notification>, lst);
|
return FROM_STD_LIST(QList<Notification>, lst);
|
||||||
}
|
}
|
||||||
|
@ -3,16 +3,16 @@
|
|||||||
#ifndef NOTIFICATIONSEDITOR_H
|
#ifndef NOTIFICATIONSEDITOR_H
|
||||||
#define NOTIFICATIONSEDITOR_H
|
#define NOTIFICATIONSEDITOR_H
|
||||||
|
|
||||||
#include <QWidget>
|
#include "miscellaneous/notification.h"
|
||||||
|
|
||||||
#include "ui_notificationseditor.h"
|
#include "ui_notificationseditor.h"
|
||||||
|
|
||||||
#include "miscellaneous/notification.h"
|
#include <QWidget>
|
||||||
|
|
||||||
class QVBoxLayout;
|
class QVBoxLayout;
|
||||||
|
|
||||||
class NotificationsEditor : public QWidget {
|
class NotificationsEditor : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit NotificationsEditor(QWidget* parent = nullptr);
|
explicit NotificationsEditor(QWidget* parent = nullptr);
|
||||||
|
@ -3,14 +3,14 @@
|
|||||||
#ifndef SINGLENOTIFICATIONEDITOR_H
|
#ifndef SINGLENOTIFICATIONEDITOR_H
|
||||||
#define SINGLENOTIFICATIONEDITOR_H
|
#define SINGLENOTIFICATIONEDITOR_H
|
||||||
|
|
||||||
#include <QGroupBox>
|
#include "miscellaneous/notification.h"
|
||||||
|
|
||||||
#include "ui_singlenotificationeditor.h"
|
#include "ui_singlenotificationeditor.h"
|
||||||
|
|
||||||
#include "miscellaneous/notification.h"
|
#include <QGroupBox>
|
||||||
|
|
||||||
class SingleNotificationEditor : public QGroupBox {
|
class SingleNotificationEditor : public QGroupBox {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit SingleNotificationEditor(const Notification& notification, QWidget* parent = nullptr);
|
explicit SingleNotificationEditor(const Notification& notification, QWidget* parent = nullptr);
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
#define TOASTNOTIFICATION_H
|
#define TOASTNOTIFICATION_H
|
||||||
|
|
||||||
#include "gui/notifications/basetoastnotification.h"
|
#include "gui/notifications/basetoastnotification.h"
|
||||||
|
|
||||||
#include "miscellaneous/application.h"
|
#include "miscellaneous/application.h"
|
||||||
|
|
||||||
#include "ui_toastnotification.h"
|
#include "ui_toastnotification.h"
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
#ifndef TOASTNOTIFICATIONSMANAGER_H
|
#ifndef TOASTNOTIFICATIONSMANAGER_H
|
||||||
#define TOASTNOTIFICATIONSMANAGER_H
|
#define TOASTNOTIFICATIONSMANAGER_H
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
|
|
||||||
#include "miscellaneous/application.h"
|
#include "miscellaneous/application.h"
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
|
||||||
class BaseToastNotification;
|
class BaseToastNotification;
|
||||||
class ToastNotification;
|
class ToastNotification;
|
||||||
class ArticleListNotification;
|
class ArticleListNotification;
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
#ifndef ARTICLEAMOUNTCONTROL_H
|
#ifndef ARTICLEAMOUNTCONTROL_H
|
||||||
#define ARTICLEAMOUNTCONTROL_H
|
#define ARTICLEAMOUNTCONTROL_H
|
||||||
|
|
||||||
#include <QWidget>
|
#include "services/abstract/feed.h"
|
||||||
|
|
||||||
#include "ui_articleamountcontrol.h"
|
#include "ui_articleamountcontrol.h"
|
||||||
|
|
||||||
#include "services/abstract/feed.h"
|
#include <QWidget>
|
||||||
|
|
||||||
class ArticleAmountControl : public QWidget {
|
class ArticleAmountControl : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
|
|
||||||
class BaseLineEdit : public QLineEdit {
|
class BaseLineEdit : public QLineEdit {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit BaseLineEdit(QWidget* parent = nullptr);
|
explicit BaseLineEdit(QWidget* parent = nullptr);
|
||||||
|
@ -6,8 +6,7 @@
|
|||||||
|
|
||||||
#include <QHBoxLayout>
|
#include <QHBoxLayout>
|
||||||
|
|
||||||
ComboBoxWithStatus::ComboBoxWithStatus(QWidget* parent)
|
ComboBoxWithStatus::ComboBoxWithStatus(QWidget* parent) : WidgetWithStatus(parent) {
|
||||||
: WidgetWithStatus(parent) {
|
|
||||||
m_wdgInput = new QComboBox(this);
|
m_wdgInput = new QComboBox(this);
|
||||||
|
|
||||||
// Set correct size for the tool button.
|
// Set correct size for the tool button.
|
||||||
|
@ -8,10 +8,9 @@
|
|||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
|
|
||||||
class ComboBoxWithStatus : public WidgetWithStatus {
|
class ComboBoxWithStatus : public WidgetWithStatus {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// Constructors and destructors.
|
// Constructors and destructors.
|
||||||
explicit ComboBoxWithStatus(QWidget* parent = nullptr);
|
explicit ComboBoxWithStatus(QWidget* parent = nullptr);
|
||||||
virtual ~ComboBoxWithStatus() = default;
|
virtual ~ComboBoxWithStatus() = default;
|
||||||
@ -19,7 +18,6 @@ class ComboBoxWithStatus : public WidgetWithStatus {
|
|||||||
inline QComboBox* comboBox() const {
|
inline QComboBox* comboBox() const {
|
||||||
return static_cast<QComboBox*>(m_wdgInput);
|
return static_cast<QComboBox*>(m_wdgInput);
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // COMBOBOXWITHSTATUS_H
|
#endif // COMBOBOXWITHSTATUS_H
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include <QTableView>
|
#include <QTableView>
|
||||||
|
|
||||||
class EditTableView : public QTableView {
|
class EditTableView : public QTableView {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit EditTableView(QWidget* parent = nullptr);
|
explicit EditTableView(QWidget* parent = nullptr);
|
||||||
|
@ -3,9 +3,8 @@
|
|||||||
#ifndef JSSYNTAXHIGHLIGHTER_H
|
#ifndef JSSYNTAXHIGHLIGHTER_H
|
||||||
#define JSSYNTAXHIGHLIGHTER_H
|
#define JSSYNTAXHIGHLIGHTER_H
|
||||||
|
|
||||||
#include <QSyntaxHighlighter>
|
|
||||||
|
|
||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
|
#include <QSyntaxHighlighter>
|
||||||
|
|
||||||
class JsSyntaxHighlighter : public QSyntaxHighlighter {
|
class JsSyntaxHighlighter : public QSyntaxHighlighter {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
@ -4,11 +4,10 @@
|
|||||||
#define LABELSMENU_H
|
#define LABELSMENU_H
|
||||||
|
|
||||||
#include "gui/reusable/nonclosablemenu.h"
|
#include "gui/reusable/nonclosablemenu.h"
|
||||||
|
|
||||||
#include "services/abstract/label.h"
|
#include "services/abstract/label.h"
|
||||||
|
|
||||||
class LabelsMenu : public NonClosableMenu {
|
class LabelsMenu : public NonClosableMenu {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit LabelsMenu(const QList<Message>& messages, const QList<Label*>& labels, QWidget* parent = nullptr);
|
explicit LabelsMenu(const QList<Message>& messages, const QList<Label*>& labels, QWidget* parent = nullptr);
|
||||||
@ -31,7 +30,7 @@ class LabelsMenu : public NonClosableMenu {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class LabelAction : public QAction {
|
class LabelAction : public QAction {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit LabelAction(Label* label, QWidget* parent_widget, QObject* parent);
|
explicit LabelAction(Label* label, QWidget* parent_widget, QObject* parent);
|
||||||
|
@ -6,8 +6,7 @@
|
|||||||
|
|
||||||
#include <QHBoxLayout>
|
#include <QHBoxLayout>
|
||||||
|
|
||||||
LabelWithStatus::LabelWithStatus(QWidget* parent)
|
LabelWithStatus::LabelWithStatus(QWidget* parent) : WidgetWithStatus(parent) {
|
||||||
: WidgetWithStatus(parent) {
|
|
||||||
m_wdgInput = new QLabel(this);
|
m_wdgInput = new QLabel(this);
|
||||||
|
|
||||||
// Set correct size for the tool button.
|
// Set correct size for the tool button.
|
||||||
|
@ -7,8 +7,7 @@
|
|||||||
|
|
||||||
#include <QHBoxLayout>
|
#include <QHBoxLayout>
|
||||||
|
|
||||||
LineEditWithStatus::LineEditWithStatus(QWidget* parent)
|
LineEditWithStatus::LineEditWithStatus(QWidget* parent) : WidgetWithStatus(parent) {
|
||||||
: WidgetWithStatus(parent) {
|
|
||||||
m_wdgInput = new BaseLineEdit(this);
|
m_wdgInput = new BaseLineEdit(this);
|
||||||
setFocusProxy(m_wdgInput);
|
setFocusProxy(m_wdgInput);
|
||||||
|
|
||||||
@ -22,8 +21,7 @@ LineEditWithStatus::LineEditWithStatus(QWidget* parent)
|
|||||||
m_layout->addWidget(m_btnStatus);
|
m_layout->addWidget(m_btnStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
TextEditWithStatus::TextEditWithStatus(QWidget* parent)
|
TextEditWithStatus::TextEditWithStatus(QWidget* parent) : WidgetWithStatus(parent) {
|
||||||
: WidgetWithStatus(parent) {
|
|
||||||
m_wdgInput = new QPlainTextEdit(this);
|
m_wdgInput = new QPlainTextEdit(this);
|
||||||
setFocusProxy(m_wdgInput);
|
setFocusProxy(m_wdgInput);
|
||||||
|
|
||||||
|
@ -3,9 +3,8 @@
|
|||||||
#ifndef LINEEDITWITHSTATUS_H
|
#ifndef LINEEDITWITHSTATUS_H
|
||||||
#define LINEEDITWITHSTATUS_H
|
#define LINEEDITWITHSTATUS_H
|
||||||
|
|
||||||
#include "gui/reusable/widgetwithstatus.h"
|
|
||||||
|
|
||||||
#include "gui/reusable/baselineedit.h"
|
#include "gui/reusable/baselineedit.h"
|
||||||
|
#include "gui/reusable/widgetwithstatus.h"
|
||||||
|
|
||||||
#include <QPlainTextEdit>
|
#include <QPlainTextEdit>
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ class WebBrowser;
|
|||||||
class GoogleSuggest;
|
class GoogleSuggest;
|
||||||
|
|
||||||
class LocationLineEdit : public BaseLineEdit {
|
class LocationLineEdit : public BaseLineEdit {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit LocationLineEdit(QWidget* parent = nullptr);
|
explicit LocationLineEdit(QWidget* parent = nullptr);
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include <QSpinBox>
|
#include <QSpinBox>
|
||||||
|
|
||||||
class MessageCountSpinBox : public QSpinBox {
|
class MessageCountSpinBox : public QSpinBox {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit MessageCountSpinBox(QWidget* parent = nullptr);
|
explicit MessageCountSpinBox(QWidget* parent = nullptr);
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
#include "gui/reusable/networkproxydetails.h"
|
#include "gui/reusable/networkproxydetails.h"
|
||||||
|
|
||||||
#include "ui_networkproxydetails.h"
|
|
||||||
|
|
||||||
#include "definitions/definitions.h"
|
#include "definitions/definitions.h"
|
||||||
|
|
||||||
|
#include "ui_networkproxydetails.h"
|
||||||
|
|
||||||
#include <QNetworkProxy>
|
#include <QNetworkProxy>
|
||||||
|
|
||||||
NetworkProxyDetails::NetworkProxyDetails(QWidget* parent) : QWidget(parent), m_ui(new Ui::NetworkProxyDetails()) {
|
NetworkProxyDetails::NetworkProxyDetails(QWidget* parent) : QWidget(parent), m_ui(new Ui::NetworkProxyDetails()) {
|
||||||
|
@ -3,9 +3,8 @@
|
|||||||
#ifndef NETWORKPROXYDETAILS_H
|
#ifndef NETWORKPROXYDETAILS_H
|
||||||
#define NETWORKPROXYDETAILS_H
|
#define NETWORKPROXYDETAILS_H
|
||||||
|
|
||||||
#include <QWidget>
|
|
||||||
|
|
||||||
#include <QNetworkProxy>
|
#include <QNetworkProxy>
|
||||||
|
#include <QWidget>
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class NetworkProxyDetails;
|
class NetworkProxyDetails;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include <QToolButton>
|
#include <QToolButton>
|
||||||
|
|
||||||
class PlainToolButton : public QToolButton {
|
class PlainToolButton : public QToolButton {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit PlainToolButton(QWidget* parent = nullptr);
|
explicit PlainToolButton(QWidget* parent = nullptr);
|
||||||
|
@ -19,7 +19,11 @@ class SearchLineEdit : public BaseLineEdit {
|
|||||||
int m_data;
|
int m_data;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class SearchMode { FixedString = 1, Wildcard = 2, RegularExpression = 4 };
|
enum class SearchMode {
|
||||||
|
FixedString = 1,
|
||||||
|
Wildcard = 2,
|
||||||
|
RegularExpression = 4
|
||||||
|
};
|
||||||
|
|
||||||
explicit SearchLineEdit(const QList<CustomSearchChoice>& choices, QWidget* parent = nullptr);
|
explicit SearchLineEdit(const QList<CustomSearchChoice>& choices, QWidget* parent = nullptr);
|
||||||
|
|
||||||
|
@ -3,16 +3,16 @@
|
|||||||
#ifndef SEARCHTEXTWIDGET_H
|
#ifndef SEARCHTEXTWIDGET_H
|
||||||
#define SEARCHTEXTWIDGET_H
|
#define SEARCHTEXTWIDGET_H
|
||||||
|
|
||||||
#include <QWidget>
|
|
||||||
|
|
||||||
#include "ui_searchtextwidget.h"
|
#include "ui_searchtextwidget.h"
|
||||||
|
|
||||||
|
#include <QWidget>
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class SearchTextWidget;
|
class SearchTextWidget;
|
||||||
}
|
}
|
||||||
|
|
||||||
class SearchTextWidget : public QWidget {
|
class SearchTextWidget : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit SearchTextWidget(QWidget* parent = nullptr);
|
explicit SearchTextWidget(QWidget* parent = nullptr);
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
|
|
||||||
class SqueezeLabel : public QLabel {
|
class SqueezeLabel : public QLabel {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit SqueezeLabel(QWidget* parent = nullptr);
|
explicit SqueezeLabel(QWidget* parent = nullptr);
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user