|
musredit 1.0.0
|
Dialog for searching text in the editor. More...
#include <PFindDialog.h>


Public Member Functions | |
| PFindDialog (PFindReplaceData *data, const bool selection, QWidget *parent=nullptr) | |
| Constructs and initializes the find dialog. | |
| virtual | ~PFindDialog () |
| Virtual destructor. | |
| virtual PFindReplaceData * | getData () |
| Retrieves the search parameters from the dialog. | |
Protected Slots | |
| virtual void | onFindTextAvailable (const QString &text) |
| Slot called when the find text changes. | |
Private Attributes | |
| PFindReplaceData * | fData |
| Pointer to the find/replace data structure for storing search parameters. | |
Dialog for searching text in the editor.
This class implements a modal dialog that allows users to search for text within the current msr file. The dialog provides various search options and stores the search parameters in a PFindReplaceData structure.
Definition at line 88 of file PFindDialog.h.
| PFindDialog::PFindDialog | ( | PFindReplaceData * | data, |
| const bool | selection, | ||
| QWidget * | parent = nullptr ) |
Constructs and initializes the find dialog.
Sets up the find dialog UI and initializes all controls with values from the provided data structure. The dialog is created as modal.
The constructor performs the following initialization:
| data | Pointer to a PFindReplaceData structure containing initial search parameters and receiving the user's selections on dialog close. |
| selection | If true, text is currently selected in the editor and the "search in selection" option is enabled; if false, the option is disabled and unchecked. |
| parent | Pointer to the parent widget (typically the main editor window). |
Definition at line 71 of file PFindDialog.cpp.
|
inlinevirtual |
Virtual destructor.
Definition at line 98 of file PFindDialog.h.
|
virtual |
Retrieves the search parameters from the dialog.
Extracts the current values from all dialog controls and updates the PFindReplaceData structure. This method should be called after the dialog is accepted to retrieve the user's search settings.
The following values are extracted:
Definition at line 119 of file PFindDialog.cpp.
|
protectedvirtualslot |
Slot called when the find text changes.
Slot to enable/disable the Find button based on search text availability.
| text | The current text in the find combo box (unused, reads from widget directly). |
This slot is connected to the text changed signal of the find combo box. It enables the Find button only when there is text to search for, preventing empty searches.
| text | The current text in the combo box (parameter unused; the method reads directly from the widget to handle all input scenarios). |
Definition at line 143 of file PFindDialog.cpp.
|
private |
Pointer to the find/replace data structure for storing search parameters.
Definition at line 110 of file PFindDialog.h.