wxMaxima
Loading...
Searching...
No Matches
Data Structures | Public Types | Public Member Functions | Protected Member Functions
FindReplacePane Class Reference

The find+replace pane. More...

#include <FindReplacePane.h>

Inheritance diagram for FindReplacePane:
[legend]
Collaboration diagram for FindReplacePane:
[legend]

Data Structures

class  FindReplaceData
 

Public Types

enum  { wxFR_SEARCH_IN_INPUT = 0x10 , wxFR_SEARCH_IN_OUTPUT = 0x20 }
 

Public Member Functions

 FindReplacePane (wxWindow *parent, FindReplaceData *data, bool searchOnly=false)
 
void SetEventTarget (wxEvtHandler *target)
 Send the search events to this handler instead of the outermost window.
 
void SetFocus () override
 
bool GetRegexSearch () const
 
wxString GetFindString () const
 
void SetFindString (wxString strng)
 
wxFindReplaceData * GetData () const
 

Protected Member Functions

void OnSearch (wxCommandEvent &event)
 
void OnReplace (wxCommandEvent &event)
 
void OnReplaceAll (wxCommandEvent &event)
 
void OnReplaceStringChange (wxCommandEvent &event)
 
void OnFindStringChange (wxCommandEvent &event)
 
void OnDirectionChange (wxCommandEvent &event)
 
void OnRegexSimpleChange (wxCommandEvent &event)
 
void OnMatchCase (wxCommandEvent &event)
 
void OnSearchIn (wxCommandEvent &event)
 
void OnKeyDown (wxKeyEvent &event)
 

Detailed Description

The find+replace pane.

Constructor & Destructor Documentation

◆ FindReplacePane()

FindReplacePane::FindReplacePane ( wxWindow *  parent,
FindReplaceData *  data,
bool  searchOnly = false 
)
Parameters
parentThe window the pane is shown in
dataWhere the search string and the settings are kept
searchOnlyHide everything that is about replacing, and the choice of searching in input or output: for a read-only view like the matrix viewer, which has no input and nothing that could be replaced.

Member Function Documentation

◆ SetEventTarget()

void FindReplacePane::SetEventTarget ( wxEvtHandler *  target)
inline

Send the search events to this handler instead of the outermost window.

By default the events go to the window at the top of the parent chain, which is wxMaxima's main window – also for the dockable pane after it was undocked into a floating frame of its own. A window that isn't the main window, but whose find dialog nevertheless ends up with the main window as its outermost parent (the matrix viewer), has to say that it wants the events itself.


The documentation for this class was generated from the following files: