|
musredit 1.0.0
|
Dialog for creating FUNCTIONS blocks in msr files. More...
#include <PGetFunctionsBlockDialog.h>


Public Member Functions | |
| PGetFunctionsBlockDialog (const QString helpUrl="") | |
| Constructs the FUNCTIONS block dialog. | |
| QString | getFunctionsBlock () |
| Returns the complete FUNCTIONS block text. | |
Private Slots | |
| void | addFunction () |
| Validates and adds a function to the FUNCTIONS block. | |
| void | helpContent () |
| Opens the online help for FUNCTIONS blocks. | |
Private Attributes | |
| QString | fHelpUrl |
| URL to the online documentation for FUNCTIONS blocks. | |
Dialog for creating FUNCTIONS blocks in msr files.
This dialog allows users to define mathematical functions that combine fit parameters. Functions are used in musrfit to create derived quantities from the basic fit parameters, enabling complex relationships between parameters without modifying the theory function.
Definition at line 87 of file PGetFunctionsBlockDialog.h.
| PGetFunctionsBlockDialog::PGetFunctionsBlockDialog | ( | const QString | helpUrl = "" | ) |
Constructs the FUNCTIONS block dialog.
Initializes the dialog UI and sets focus to the function input field. The dialog is created as modal.
| helpUrl | URL to the online documentation for FUNCTIONS blocks. Defaults to empty string if not provided. |
Definition at line 65 of file PGetFunctionsBlockDialog.cpp.
|
privateslot |
Validates and adds a function to the FUNCTIONS block.
Validates and adds a function definition to the FUNCTIONS block.
Performs basic syntax checking before adding the function to the text display.
Performs basic syntax validation on the user's input before adding it to the FUNCTIONS block text area. This is a primitive validation that checks for common errors but is not a complete syntax/semantic checker.
Definition at line 97 of file PGetFunctionsBlockDialog.cpp.
|
inline |
Returns the complete FUNCTIONS block text.
Definition at line 99 of file PGetFunctionsBlockDialog.h.
|
privateslot |
Opens the online help for FUNCTIONS blocks.
Opens the online help documentation for FUNCTIONS blocks.
Attempts to open the help URL in the system's default web browser using QDesktopServices. If the URL is empty, displays an informational message. If the browser fails to open, displays an error message with a clickable link.
Definition at line 145 of file PGetFunctionsBlockDialog.cpp.
|
private |
URL to the online documentation for FUNCTIONS blocks.
Definition at line 115 of file PGetFunctionsBlockDialog.h.