|
musredit 1.0.0
|
Dialog for creating and editing TITLE blocks in msr files. More...
#include <PGetTitleBlockDialog.h>


Public Member Functions | |
| PGetTitleBlockDialog (const QString helpUrl) | |
| Constructs a dialog for entering or editing a title. | |
| virtual | ~PGetTitleBlockDialog () |
| Virtual destructor. | |
| QString | getTitle () |
| Returns the entered title text. | |
Private Slots | |
| void | helpContent () |
| Opens the online help for TITLE blocks. | |
Private Attributes | |
| QString | fHelpUrl |
| URL to the online documentation for TITLE blocks. | |
Dialog for creating and editing TITLE blocks in msr files.
This dialog provides a simple text input interface for entering or modifying the title of a musrfit msr file. The title serves as a descriptive label for the analysis and appears at the beginning of the msr file.
Definition at line 88 of file PGetTitleBlockDialog.h.
| PGetTitleBlockDialog::PGetTitleBlockDialog | ( | const QString | helpUrl | ) |
Constructs a dialog for entering or editing a title.
Constructor - Initializes the TITLE block dialog.
Initializes the dialog with a text input field and help button. The dialog is configured as modal to ensure user interaction completion before returning to the main editor window.
| helpUrl | URL string pointing to online documentation for TITLE blocks. If empty, the help button will display a placeholder message. |
Sets up the user interface for the title input dialog. The dialog contains a single QLineEdit widget for text entry and standard OK/Cancel buttons. The interface is loaded from the UI definition file and configured as a modal dialog.
The dialog is designed to be simple and focused, presenting only the essential controls needed to enter or edit a title string. No complex initialization or data loading is required beyond basic UI setup.
The modal configuration ensures that users complete the title entry or explicitly cancel before returning to the main editor, preventing incomplete or ambiguous states.
| helpUrl | URL string for the online help documentation. If empty, the help button will display a placeholder message instead of opening a web browser. The URL should point to documentation explaining the purpose and format of msr file titles. |
Definition at line 79 of file PGetTitleBlockDialog.cpp.
|
inlinevirtual |
Virtual destructor.
Default destructor implementation. Qt's parent-child ownership system handles cleanup of UI elements automatically.
Definition at line 113 of file PGetTitleBlockDialog.h.
|
inline |
Returns the entered title text.
Retrieves the text currently entered in the title line edit field. This method is typically called after the dialog is accepted to obtain the title string for insertion into the msr file.
Definition at line 131 of file PGetTitleBlockDialog.h.
|
privateslot |
Opens the online help for TITLE blocks.
Opens online help documentation for TITLE blocks.
Attempts to open the help URL in the system's default web browser using QDesktopServices. If the URL is empty, displays a placeholder information message. If the browser cannot be opened, shows an error dialog with the URL for manual access.
The help documentation typically covers:
Attempts to open the help URL in the user's default web browser using QDesktopServices::openUrl(). The help documentation typically provides:
Error handling:
The URL is parsed in TolerantMode, which allows for flexible URL formatting and automatically handles common URL variations (e.g., with or without protocol specification).
Definition at line 115 of file PGetTitleBlockDialog.cpp.
|
private |
URL to the online documentation for TITLE blocks.
Definition at line 154 of file PGetTitleBlockDialog.h.