|
musredit 1.0.0
|
Dialog for configuring musrFT Fourier transform tool options. More...
#include <PGetMusrFTOptionsDialog.h>


Public Slots | |
| void | helpContent () |
| Opens the online help for musrFT. | |
Public Member Functions | |
| PGetMusrFTOptionsDialog (QString currentMsrFile, QStringList &prevCmd, const QString helpUrl) | |
| Constructs the musrFT options dialog. | |
| QStringList | getMusrFTOptions () |
| Builds and returns the musrFT command-line options. | |
Private Slots | |
| void | resetAll () |
| Resets all dialog options to their default values. | |
File Selection Slots | |
Slots for handling file selection changes. | |
| void | currentMsrFileTagChanged (int state) |
| Handles current msr-file checkbox state change. | |
| void | allMsrFileTagChanged (int state) |
| Handles all msr-files checkbox state change. | |
| void | selectMsrFileNames () |
| Opens file dialog to select msr-files. | |
| void | clearMsrFileNames () |
| Clears the msr-file selection. | |
| void | selectDataFileNames () |
| Opens file dialog to select data files. | |
| void | clearDataFileNames () |
| Clears the data file selection. | |
| void | createMsrFileChanged (int state) |
| Handles create msr-file checkbox state change. | |
View Option Slots | |
Slots for handling averaging options. | |
| void | averagedAll (int state) |
| Handles average-all checkbox (mutually exclusive with per-dataset). | |
| void | averagedPerDataSet (int state) |
| Handles average-per-dataset checkbox (mutually exclusive with all). | |
Private Attributes | |
| QString | fCreateMsrFileName |
| Full path-name for msr-file creation output. | |
| QString | fCurrentMsrFileName |
| Full path-name of the currently active msr-file in musredit. | |
| QString | fHelpUrl |
| URL to the online documentation for musrFT. | |
File Path Storage | |
Lists for storing selected file paths and names. | |
| QStringList | fMsrFilePaths |
| Directory paths for selected msr-files. | |
| QStringList | fMsrFileNames |
| File names (without path) for selected msr-files. | |
| QStringList | fDataFilePaths |
| Directory paths for selected data files. | |
| QStringList | fDataFileNames |
| File names (without path) for selected data files. | |
Dialog for configuring musrFT Fourier transform tool options.
This dialog provides a comprehensive interface for configuring all command-line options for the musrFT tool, which performs Fourier transforms on muon spin rotation data. The dialog remembers previous settings and can restore them on subsequent invocations.
| Option | Description |
|---|---|
| -fo | Fourier option (real, imag, power, phase) |
| -ap | Apodization (weak, medium, strong) |
| -u | Units (Gauss, Tesla, MHz, Mc/s) |
| -fp | Fourier power (zero-padding) |
| -fr | Fourier range |
| -tr | Time range |
| -br | Background range (bins) |
| -pa | Packing factor |
| -a | Average all data |
| -ad | Average per data set |
| -lc | Lifetime correction |
| –histo | Histogram list |
| –t0 | T0 values |
| –title | Plot title |
| –create-msr-file | Create msr-file from Fourier |
Definition at line 102 of file PGetMusrFTOptionsDialog.h.
| PGetMusrFTOptionsDialog::PGetMusrFTOptionsDialog | ( | QString | currentMsrFile, |
| QStringList & | prevCmd, | ||
| const QString | helpUrl ) |
Constructs the musrFT options dialog.
Initializes the dialog UI, sets up input validators for numeric fields, parses any previous command to restore settings, and connects all signal/slot pairs for UI interaction. The dialog is created as modal.
| currentMsrFile | Full path-name of the currently active msr-file in musredit. |
| prevCmd | QStringList containing the previous musrFT command arguments (can be empty for fresh start). |
| helpUrl | URL to the online documentation for musrFT. |
Definition at line 112 of file PGetMusrFTOptionsDialog.cpp.
|
privateslot |
Handles all msr-files checkbox state change.
Slot called when the "all msr-files" checkbox state changes.
When checked, unchecks the "current msr-file" option to maintain mutual exclusivity between these two file selection modes.
| state | The new checkbox state (Qt::Checked or Qt::Unchecked). |
Definition at line 490 of file PGetMusrFTOptionsDialog.cpp.
|
privateslot |
Handles average-all checkbox (mutually exclusive with per-dataset).
Slot called when the "average all" checkbox state changes.
Ensures mutual exclusivity with the "average per data set" option. When this option is checked, the per-data-set averaging is automatically unchecked since both options cannot be active simultaneously.
| state | The new checkbox state (Qt::Checked or Qt::Unchecked). |
Definition at line 681 of file PGetMusrFTOptionsDialog.cpp.
|
privateslot |
Handles average-per-dataset checkbox (mutually exclusive with all).
Slot called when the "average per data set" checkbox state changes.
Ensures mutual exclusivity with the "average all" option. When this option is checked, the all-data averaging is automatically unchecked since both options cannot be active simultaneously.
| state | The new checkbox state (Qt::Checked or Qt::Unchecked). |
Definition at line 697 of file PGetMusrFTOptionsDialog.cpp.
|
privateslot |
Clears the data file selection.
Slot to clear the data file selection.
Clears the data file selector line edit and empties both the fDataFilePaths and fDataFileNames lists.
Definition at line 604 of file PGetMusrFTOptionsDialog.cpp.
|
privateslot |
Clears the msr-file selection.
Slot to clear the msr-file selection.
Clears the msr-file selector line edit and empties both the fMsrFilePaths and fMsrFileNames lists.
Definition at line 547 of file PGetMusrFTOptionsDialog.cpp.
|
privateslot |
Handles create msr-file checkbox state change.
Slot called when the "create msr-file" checkbox state changes.
When checked, opens a file save dialog to specify the output msr-file name. If the user cancels the dialog, the checkbox is automatically unchecked. When unchecked, clears the stored create msr-file name.
| state | The new checkbox state (Qt::Checked or Qt::Unchecked). |
Definition at line 621 of file PGetMusrFTOptionsDialog.cpp.
|
privateslot |
Handles current msr-file checkbox state change.
Slot called when the "current msr-file" checkbox state changes.
When checked, this option uses the currently active msr-file in musredit instead of a manually selected file list. Checking this option will uncheck the "all msr-files" option and clear any previously selected msr-files and data files.
| state | The new checkbox state (Qt::Checked or Qt::Unchecked). |
Definition at line 466 of file PGetMusrFTOptionsDialog.cpp.
| QStringList PGetMusrFTOptionsDialog::getMusrFTOptions | ( | ) |
Builds and returns the musrFT command-line options.
Builds and returns the complete musrFT command-line options.
Collects all user-configured options from the dialog widgets and assembles them into a QStringList suitable for passing to musrFT. The method handles the logic for mutually exclusive options (e.g., current file vs. file list) and only includes options that have been explicitly set.
Definition at line 328 of file PGetMusrFTOptionsDialog.cpp.
|
slot |
Opens the online help for musrFT.
Opens the online help documentation for musrFT.
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 711 of file PGetMusrFTOptionsDialog.cpp.
|
privateslot |
Resets all dialog options to their default values.
Slot to reset all dialog options to default values.
Clears all input fields, unchecks all checkboxes, and resets all combo boxes to their undefined/default state. This provides a clean slate for configuring new musrFT options.
Definition at line 640 of file PGetMusrFTOptionsDialog.cpp.
|
privateslot |
Opens file dialog to select data files.
Slot to open file dialog for selecting data files.
Opens a multi-file selection dialog filtered for data files (.root, .bin, .msr, .nxs, .mdu). Selected files are split into path and name components and stored separately in fDataFilePaths and fDataFileNames. The file names are displayed in the corresponding line edit widget.
Definition at line 563 of file PGetMusrFTOptionsDialog.cpp.
|
privateslot |
Opens file dialog to select msr-files.
Slot to open file dialog for selecting msr-files.
Opens a multi-file selection dialog filtered for .msr files. Selected files are split into path and name components and stored separately in fMsrFilePaths and fMsrFileNames. The file names are displayed in the corresponding line edit widget.
Definition at line 506 of file PGetMusrFTOptionsDialog.cpp.
|
private |
Full path-name for msr-file creation output.
Definition at line 160 of file PGetMusrFTOptionsDialog.h.
|
private |
Full path-name of the currently active msr-file in musredit.
Definition at line 161 of file PGetMusrFTOptionsDialog.h.
|
private |
File names (without path) for selected data files.
Definition at line 157 of file PGetMusrFTOptionsDialog.h.
|
private |
Directory paths for selected data files.
Definition at line 156 of file PGetMusrFTOptionsDialog.h.
|
private |
URL to the online documentation for musrFT.
Definition at line 162 of file PGetMusrFTOptionsDialog.h.
|
private |
File names (without path) for selected msr-files.
Definition at line 155 of file PGetMusrFTOptionsDialog.h.
|
private |
Directory paths for selected msr-files.
Definition at line 154 of file PGetMusrFTOptionsDialog.h.