Add option to check source height and width

This commit is contained in:
WarmUpTill
2024-05-28 21:17:53 +02:00
committed by WarmUpTill
parent 5e1469b0d8
commit 4157ae4ed2
3 changed files with 122 additions and 20 deletions

View File

@@ -31,13 +31,19 @@ public:
SETTINGS_CHANGED,
INDIVIDUAL_SETTING_MATCH,
INDIVIDUAL_SETTING_CHANGED,
HEIGHT,
WIDTH,
};
enum class SizeComparision { LESS, EQUAL, MORE };
SourceSelection _source;
Condition _condition = Condition::ACTIVE;
StringVariable _settings = "";
SourceSetting _setting;
RegexConfig _regex;
IntVariable _size;
SizeComparision _comparision = SizeComparision::EQUAL;
private:
std::string _currentSettings;
@@ -71,6 +77,8 @@ private slots:
void RegexChanged(const RegexConfig &);
void SettingSelectionChanged(const SourceSetting &);
void RefreshVariableSourceSelectionValue();
void SizeChanged(const NumberVariable<int> &value);
void CompareMethodChanged(int);
signals:
void HeaderInfoChanged(const QString &);
@@ -82,6 +90,8 @@ protected:
RegexConfigWidget *_regex;
SourceSettingSelection *_settingSelection;
QPushButton *_refreshSettingSelection;
VariableSpinBox *_size;
QComboBox *_sizeCompareMethods;
std::shared_ptr<MacroConditionSource> _entryData;