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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user