|
musredit 1.0.0
|
Dialog for editing default data file search paths. More...
#include <PChangeDefaultPathsDialog.h>


Public Member Functions | |
| PChangeDefaultPathsDialog () | |
| Constructs the default paths dialog. | |
Private Slots | |
| void | deleteItem () |
| Remove the currently selected path from the list. | |
| void | addItem () |
| Add a new directory path via file browser dialog. | |
| void | saveDefaultPathList () |
| Save the modified path list to the configuration file. | |
Private Attributes | |
| std::unique_ptr< PDefaultPaths > | fDefaultPath |
| Manages the default paths data. | |
Dialog for editing default data file search paths.
This dialog provides a graphical interface for users to view, add, and remove the default directory paths where musrfit searches for muon spin rotation data files.
The dialog is modal and changes are persisted to musrfit_startup.xml when the user accepts the dialog (clicks OK).
Definition at line 209 of file PChangeDefaultPathsDialog.h.
| PChangeDefaultPathsDialog::PChangeDefaultPathsDialog | ( | ) |
Constructs the default paths dialog.
Initializes the dialog by:
The dialog is created as modal, blocking interaction with other windows until closed.
Definition at line 298 of file PChangeDefaultPathsDialog.cpp.
|
privateslot |
Add a new directory path via file browser dialog.
Slot to add a new directory path to the list.
Opens a directory selection dialog allowing the user to browse for and select a directory. If the user selects a directory (doesn't cancel), the path is inserted into the list widget immediately after the currently selected item.
Definition at line 334 of file PChangeDefaultPathsDialog.cpp.
|
privateslot |
Remove the currently selected path from the list.
Slot to remove the currently selected path from the list.
Removes the currently selected item from the list widget and frees its memory. If no item is selected, the method has no effect.
Definition at line 359 of file PChangeDefaultPathsDialog.cpp.
|
privateslot |
Save the modified path list to the configuration file.
Slot to save the modified path list to the configuration file.
Persists the current list of data paths to the musrfit_startup.xml configuration file. The method:
If no <data_path> elements existed in the original file, the new paths are inserted just before the closing </musrfit> tag.
Definition at line 383 of file PChangeDefaultPathsDialog.cpp.
|
private |
Manages the default paths data.
Definition at line 233 of file PChangeDefaultPathsDialog.h.