Table Of Contents

Previous topic

FindDialogEvent

Next topic

FindReplaceDialog

This Page

phoenix_title FindReplaceData

FindReplaceData holds the data for FindReplaceDialog.

It is used to initialize the dialog with the default values and will keep the last values from the dialog when it is closed. It is also updated each time a FindDialogEvent is generated so instead of using the FindDialogEvent methods you can also directly query this object.

Note that all SetXXX() methods may only be called before showing the dialog and calling them has no effect later.


class_hierarchy Inheritance Diagram

Inheritance diagram for class FindReplaceData

Inheritance diagram of FindReplaceData


method_summary Methods Summary

__init__ Constructor initializes the flags to default value (0).
GetFindString Get the string to find.
GetFlags Get the combination of FindReplaceFlags values.
GetReplaceString Get the replacement string.
SetFindString Set the string to find (used as initial value by the dialog).
SetFlags Set the flags to use to initialize the controls of the dialog.
SetReplaceString Set the replacement string (used as initial value by the dialog).

api Class API



class FindReplaceData(Object)

FindReplaceData holds the data for FindReplaceDialog.

Possible constructors:

FindReplaceData(flags=0)

Methods



__init__(self, flags=0)

Constructor initializes the flags to default value (0).

Parameters:flags (int) –


GetFindString(self)

Get the string to find.

Return type:string


GetFlags(self)

Get the combination of FindReplaceFlags values.

Return type:int


GetReplaceString(self)

Get the replacement string.

Return type:string


SetFindString(self, str)

Set the string to find (used as initial value by the dialog).

Parameters:str (string) –


SetFlags(self, flags)

Set the flags to use to initialize the controls of the dialog.

Parameters:flags (int) –


SetReplaceString(self, str)

Set the replacement string (used as initial value by the dialog).

Parameters:str (string) –

Properties



FindString

See GetFindString and SetFindString



Flags

See GetFlags and SetFlags



ReplaceString

See GetReplaceString and SetReplaceString