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


Public Member Functions | |
| PGetParameterBlockDialog (const QString helpUrl) | |
| Constructs the FITPARAMETER block dialog. | |
| QString | getParams () |
| Returns all entered parameters as formatted text. | |
Protected Member Functions | |
| bool | eventFilter (QObject *obj, QEvent *ev) |
| Event filter to handle keyboard shortcuts. | |
Private Slots | |
| void | paramAdd () |
| Validates and adds a parameter to the FITPARAMETER block. | |
| void | helpContent () |
| Opens the online help for FITPARAMETER blocks. | |
Private Attributes | |
| QString | fHelpUrl |
| URL to the online documentation for FITPARAMETER blocks. | |
Dialog for creating FITPARAMETER blocks in msr files.
This dialog allows users to define fit parameters for musrfit. Each parameter consists of a number, name, initial value, step size, and optional lower/upper boundaries. Parameters are formatted with proper column alignment for the msr file format.
Definition at line 87 of file PGetParameterBlockDialog.h.
| PGetParameterBlockDialog::PGetParameterBlockDialog | ( | const QString | helpUrl | ) |
Constructs the FITPARAMETER block dialog.
Initializes the dialog UI, sets up input validators for numeric fields, and installs an event filter to capture keyboard shortcuts. The dialog is created as modal. A monospace font (Courier, 10pt) is used for the parameter display to ensure proper column alignment.
| helpUrl | URL to the online documentation for FITPARAMETER blocks. |
Definition at line 73 of file PGetParameterBlockDialog.cpp.
|
protected |
Event filter to handle keyboard shortcuts.
Event filter to intercept keyboard events.
Intercepts the Return key to trigger parameter addition, allowing for rapid parameter entry without clicking the Add button.
| obj | The object that generated the event. |
| ev | The event to be filtered. |
Filters keyboard events to intercept the Return/Enter key press. When Return is pressed, the current parameter values are validated and added to the parameter list via paramAdd(). This allows for rapid parameter entry without using the mouse to click the Add button.
| obj | Pointer to the object that generated the event. |
| ev | Pointer to the event to be filtered. |
Definition at line 103 of file PGetParameterBlockDialog.cpp.
|
inline |
Returns all entered parameters as formatted text.
Definition at line 99 of file PGetParameterBlockDialog.h.
|
privateslot |
Opens the online help for FITPARAMETER blocks.
Opens the online help documentation for FITPARAMETER 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 280 of file PGetParameterBlockDialog.cpp.
|
privateslot |
Validates and adds a parameter to the FITPARAMETER block.
Collects values from all input fields, validates required fields, formats the parameter line with proper column alignment, and appends it to the parameter text display. After successful addition, the input fields are reset and focus returns to the Name field for the next parameter.
Definition at line 152 of file PGetParameterBlockDialog.cpp.
|
private |
URL to the online documentation for FITPARAMETER blocks.
Definition at line 124 of file PGetParameterBlockDialog.h.