NDEVR
API Documentation
FormulaDialog

Allows the user to see and edit a formula. More...

Public Member Functions

 FormulaDialog (const File &formula_file)
 Constructs a FormulaDialog from a formula definition file.
void popFormula ()
 Pops the current formula from the stack and returns to the previous one.
void pushFormula (Formula &formula)
 Pushes a sub-formula onto the navigation stack and displays it.
void setupForFormula (Formula &formula)
 Configures the dialog to display and edit the given formula.
void setupForRoot ()
 Configures the dialog to display the root formula selection.

Protected Member Functions

void clearLayout ()
 Clears the variable layout of all dynamically created widgets.
QSize sizeHint () const override
 Returns the preferred size hint for layout calculations.
void updateFormula ()
 Updates the formula display and variable inputs to reflect the current state.

Detailed Description

Allows the user to see and edit a formula.


Definition at line 15 of file FormulaDialog.h.

Constructor & Destructor Documentation

◆ FormulaDialog()

FormulaDialog::FormulaDialog ( const File & formula_file)

Constructs a FormulaDialog from a formula definition file.

Parameters
[in]formula_fileThe file containing formula definitions.

Member Function Documentation

◆ pushFormula()

void FormulaDialog::pushFormula ( Formula & formula)

Pushes a sub-formula onto the navigation stack and displays it.

Parameters
[in]formulaThe sub-formula to navigate into.

◆ setupForFormula()

void FormulaDialog::setupForFormula ( Formula & formula)

Configures the dialog to display and edit the given formula.

Parameters
[in]formulaThe formula to set up the dialog for.

◆ sizeHint()

QSize FormulaDialog::sizeHint ( ) const
overrideprotected

Returns the preferred size hint for layout calculations.

Returns
The size hint.

The documentation for this class was generated from the following file: