Gui: Process comments DWG expression dialog

This commit gives an error box on invalid input for the VarSet inputs.
This commit is contained in:
Pieter Hijma
2025-08-18 17:48:11 +02:00
parent 7bce610ef5
commit efcbb008ac
3 changed files with 189 additions and 54 deletions

View File

@@ -91,6 +91,7 @@ private:
Base::Type getTypePath();
Base::Type determineTypeVarSet();
bool typeOkForVarSet();
void initializeErrorFrame();
void initializeVarSets();
void checkExpression(const QString& text);
int getVarSetIndex(const App::Document* doc) const;
@@ -101,7 +102,7 @@ private:
std::string getType();
void reportVarSetInfo(const std::string& message);
bool reportName();
bool reportGroup(QString& nameGroup);
bool reportGroup(const QString& nameGroup);
void updateVarSetInfo(bool checkExpr = true);
void acceptWithVarSet();
@@ -112,6 +113,7 @@ private Q_SLOTS:
void onVarSetSelected(int index);
void onTextChangedGroup(const QString&);
void namePropChanged(const QString&);
bool needReportOnVarSet();
private:
::Ui::DlgExpressionInput *ui;