Gui: Allow expressions in the VarSet dialog (#22719)

* Gui: Allow expressions in the VarSet dialog

* Gui: Process review comments VarSet Dialog

Co-authored-by: Kacper Donat <kadet1090@gmail.com>

---------

Co-authored-by: Kacper Donat <kadet1090@gmail.com>
This commit is contained in:
Pieter Hijma
2025-07-25 23:16:37 +02:00
committed by GitHub
parent 34c0a1760e
commit dcf7e5536e
2 changed files with 299 additions and 55 deletions

View File

@@ -96,7 +96,13 @@ private:
Abort = true
};
enum class FieldChange : std::uint8_t {
Name,
Type
};
int findLabelRow(const char* labelName, QFormLayout* layout);
void removeExistingWidget(QFormLayout* layout, int labelRow);
void setWidgetForLabel(const char* labelName, QWidget* widget);
void initializeGroup();
@@ -120,17 +126,26 @@ private:
bool isTypeValid();
bool areFieldsValid();
void onTextFieldChanged(const QString& text);
void setEditor(bool valueNeedsReset);
void buildForUnbound(bool valueNeedsReset);
void setPropertyItem(App::Property* prop);
void buildForBound(bool valueNeedsReset);
bool clearBoundProperty();
bool clear(FieldChange fieldChange);
void onNameChanged(const QString& text);
void onGroupFinished();
void onTypeChanged(const QString& text);
void showStatusMessage();
void removeEditor();
void onTypeChanged(const QString& text);
void openTransaction();
void critical(const QString& title, const QString& text);
bool createProperty();
App::Property* createProperty();
void closeTransaction(TransactionOption option);
void clearFields();
void addDocumentation();
private:
App::VarSet* varSet;