5 #ifndef pqExpressionsManager_h 6 #define pqExpressionsManager_h 34 pqExpression(
const QString& group,
const QString& name,
const QString& value)
49 int compare = this->
Group.compare(other.
Group, Qt::CaseInsensitive);
55 compare = this->Name.compare(other.
Name, Qt::CaseInsensitive);
58 if (this->Name.isEmpty())
62 if (other.
Name.isEmpty())
70 compare = this->Value.compare(other.
Value, Qt::CaseInsensitive);
87 static QList<pqExpression> getExpressionsFromSettings();
88 static QList<pqExpression> getExpressionsFromSettings(
const QString& group);
95 static bool addExpressionToSettings(
const QString& group,
const QString& value);
99 static void storeToSettings(
const QList<pqExpression>& expressions);
static constexpr const char * PYTHON_EXPRESSION_GROUP()
Group for python expressions, like Python Calculator.
pqExpression(const QString &group, const QString &value)
bool operator<(const pqExpression &other) const
#define PQCOMPONENTS_EXPORT
Data structure to handle an expression and its group name.
static constexpr const char * SETTINGS_GROUP()
Name of QSettings group containing the expressions.
pqExpression(const QString &group, const QString &name, const QString &value)
static constexpr const char * SETTINGS_KEY()
Name of QSettings key containing the expression concatenated in one string.
static constexpr const char * EXPRESSION_GROUP()
Group for classic expressions, like Calculator.
bool operator==(const pqExpression &other) const