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


Public Slots | |
| void | addPlot () |
| Validates and adds a plot specification to the PLOT block. | |
| void | helpContent () |
| Opens the online help for PLOT blocks. | |
Public Member Functions | |
| PGetPlotBlockDialog (const QString helpUrl) | |
| Constructs the PLOT block dialog. | |
| QString | getPlotBlock () |
| Returns all entered plot specifications as formatted text. | |
Protected Member Functions | |
| bool | eventFilter (QObject *obj, QEvent *ev) |
| Event filter to handle keyboard shortcuts. | |
Private Attributes | |
| QString | fHelpUrl |
| URL to the online documentation for PLOT blocks. | |
Dialog for creating PLOT blocks in msr files.
This dialog allows users to define plot specifications for visualizing musrfit data. Multiple plots can be added, each with its own type, run selection, and axis ranges. The dialog supports keyboard shortcuts for rapid plot entry.
| Type | Code | Description |
|---|---|---|
| Single Histo | 0 | Single histogram plot |
| Asymmetry | 2 | Asymmetry plot |
| MuMinus | 4 | Mu minus plot |
| NonMusr | 8 | Non-muSR data plot |
Definition at line 96 of file PGetPlotBlockDialog.h.
| PGetPlotBlockDialog::PGetPlotBlockDialog | ( | const QString | helpUrl | ) |
Constructs the PLOT block dialog.
Initializes the dialog UI, sets up input validators for numeric range 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 plot display to ensure proper column alignment.
| helpUrl | URL to the online documentation for PLOT blocks. |
Definition at line 72 of file PGetPlotBlockDialog.cpp.
|
slot |
Validates and adds a plot specification to the PLOT block.
Extracts values from all input fields, validates required fields, formats the plot block with proper column alignment, and appends it to the plot text display. After successful addition, the input fields are cleared and focus returns to the Run List field for the next plot.
Definition at line 118 of file PGetPlotBlockDialog.cpp.
|
protected |
Event filter to handle keyboard shortcuts.
Event filter to intercept keyboard events.
Intercepts the Return key to trigger plot addition, allowing for rapid plot 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 plot values are validated and added to the plot list via addPlot(). This allows for rapid plot 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 240 of file PGetPlotBlockDialog.cpp.
|
inline |
Returns all entered plot specifications as formatted text.
Definition at line 107 of file PGetPlotBlockDialog.h.
|
slot |
Opens the online help for PLOT blocks.
Opens the online help documentation for PLOT 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 212 of file PGetPlotBlockDialog.cpp.
|
private |
URL to the online documentation for PLOT blocks.
Definition at line 132 of file PGetPlotBlockDialog.h.