Class: Fox::FXReplaceDialog
- Inherits:
-
FXDialogBox
- Object
- FXObject
- FXId
- FXDrawable
- FXWindow
- FXComposite
- FXShell
- FXTopWindow
- FXDialogBox
- Fox::FXReplaceDialog
- Defined in:
- rdoc-sources/FXReplaceDialog.rb
Overview
Search and replace dialog box.
Message identifiers
ID_NEXT
-
x
ID_PREV
-
x
ID_SEARCH_UP
-
x
ID_SEARCH_DN
-
x
ID_REPLACE_UP
-
x
ID_REPLACE_DN
-
x
ID_ALL
-
x
ID_DIR
-
x
ID_SEARCH_TEXT
-
x
ID_REPLACE_TEXT
-
x
ID_MODE
-
x
Direct Known Subclasses
Instance Attribute Summary collapse
-
#replaceText ⇒ Object
Replacement text [String].
-
#searchMode ⇒ Object
Search matching mode, one of the following:.
-
#searchText ⇒ Object
Text or pattern to search for [String].
Attributes inherited from FXTopWindow
#decorations, #hSpacing, #icon, #miniIcon, #packingHints, #padBottom, #padLeft, #padRight, #padTop, #title, #vSpacing
Attributes inherited from FXWindow
#accelTable, #backColor, #defaultCursor, #dragCursor, #first, #focus, #key, #last, #layoutHints, #next, #numChildren, #owner, #parent, #prev, #root, #selector, #shell, #target, #x, #y
Attributes inherited from FXDrawable
Attributes inherited from FXId
Instance Method Summary collapse
-
#initialize(owner, caption, ic = nil, opts = 0, x = 0, y = 0, width = 0, height = 0) ⇒ FXReplaceDialog
constructor
Return an initialized FXReplaceDialog instance.
Methods inherited from FXDialogBox
Methods inherited from FXTopWindow
#close, #getWMBorders, #maximize, #maximized?, #minimize, #minimized?, #place, #restore, #show
Methods inherited from FXComposite
#maxChildHeight, #maxChildWidth
Methods inherited from FXWindow
#acceptDrop, #acquireClipboard, #acquireSelection, #active?, #addHotKey, #after?, after?, #before?, before?, #beginDrag, #canFocus?, #changeFocus, #childAtIndex, #childOf?, #children, #clearDragRectangle, #clearShape, colorType, colorTypeName, commonAncestor, #composeContext, #composite?, #contains?, #containsChild?, #create, #createComposeContext, #cursorPosition, #default?, #defaultHeight, #defaultWidth, deleteType, deleteTypeName, #destroy, #destroyComposeContext, #detach, #didAccept, #disable, #doesSaveUnder?, #dragging?, #dropDisable, #dropEnable, #dropEnabled?, #dropFinished, #dropTarget?, #each_child, #each_child_recursive, #enable, #enabled?, #endDrag, #forceRefresh, #getChildAt, #getDNDData, #getHeightForWidth, #getWidthForHeight, #grab, #grabKeyboard, #grabbed?, #grabbedKeyboard?, #handleDrag, #hasClipboard?, #hasFocus?, #hasSelection?, #height, #height=, #hide, imageType, #inFocusChain?, #indexOfChild, #initial?, #inquireDNDAction, #inquireDNDTypes, #killFocus, #layout, #linkAfter, #linkBefore, #lower, #move, octetType, octetTypeName, #offeredDNDType?, #position, #raiseWindow, #recalc, #releaseClipboard, #releaseSelection, #remHotKey, #removeChild, #repaint, #reparent, #resize, #scroll, #setCursorPosition, #setDNDData, #setDefault, #setDragRectangle, #setFocus, #setInitial, #setShape, #shell?, #show, #shown?, stringType, textType, textTypeName, #tr, #translateCoordinatesFrom, #translateCoordinatesTo, #underCursor?, #ungrab, #ungrabKeyboard, #update, urilistType, urilistTypeName, utf16Type, utf16TypeName, utf8Type, utf8TypeName, #visible=, #width, #width=
Methods included from Responder2
Methods inherited from FXDrawable
Methods inherited from FXId
#create, #created?, #destroy, #detach, #runOnUiThread
Methods inherited from FXObject
#bind, #handle, #load, #save, subclasses
Constructor Details
#initialize(owner, caption, ic = nil, opts = 0, x = 0, y = 0, width = 0, height = 0) ⇒ FXReplaceDialog
Return an initialized FXReplaceDialog instance.
Parameters:
owner
-
the owner window for this dialog box Fox::FXWindow
caption
-
the caption (title) string for this dialog box [String]
ic
-
the icon Fox::FXIcon
opts
-
the options [Integer]
x
-
initial x-position [Integer]
y
-
initial y-position [Integer]
width
-
initial width [Integer]
height
-
initial height [Integer]
52 53 |
# File 'rdoc-sources/FXReplaceDialog.rb', line 52 def initialize(owner, , ic=nil, opts=0, x=0, y=0, width=0, height=0) # :yield: theReplaceDialog end |
Instance Attribute Details
#replaceText ⇒ Object
Replacement text [String]
36 37 38 |
# File 'rdoc-sources/FXReplaceDialog.rb', line 36 def replaceText @replaceText end |
#searchMode ⇒ Object
Search matching mode, one of the following:
DONE
-
Cancel search
SEARCH
-
Search first occurrence
REPLACE
-
Replace first occurrence
SEARCH_NEXT
-
Search next occurrence
REPLACE_NEXT
-
Replace next occurrence
REPLACE_ALL
-
Replace all occurrences
30 31 32 |
# File 'rdoc-sources/FXReplaceDialog.rb', line 30 def searchMode @searchMode end |
#searchText ⇒ Object
Text or pattern to search for [String]
33 34 35 |
# File 'rdoc-sources/FXReplaceDialog.rb', line 33 def searchText @searchText end |