def __init__(self, program, host):
    Window.__init__(self, program, host)
    self.host = host
    self.expanded = False
    self.setController(app.cu_editor.InteractiveFind)
    indent = u'  '
    self.findLine = LabeledLine(self.program, self, u'Find: ')
    self.findLine.setController(app.cu_editor.InteractiveFindInput)
    self.findLine.setParent(self)
    self.replaceLine = LabeledLine(self.program, self, u'Replace: ')
    self.replaceLine.setController(app.cu_editor.InteractiveReplaceInput)
    self.replaceLine.setParent(self)
    self.matchOptionsRow = RowWindow(self.program, self, 2)
    self.matchOptionsRow.setParent(self)
    OptionsToggle(self.program, self.matchOptionsRow, u'regex', u'editor', u'findUseRegex')
    OptionsToggle(self.program, self.matchOptionsRow, u'wholeWord', u'editor', u'findWholeWord')
    OptionsToggle(self.program, self.matchOptionsRow, u'ignoreCase', u'editor', u'findIgnoreCase')
    if 0:
        OptionsToggle(self.program, self.matchOptionsRow, u'locale', u'editor', u'findLocale')
        OptionsToggle(self.program, self.matchOptionsRow, u'multiline', u'editor', u'findMultiline')
        OptionsToggle(self.program, self.matchOptionsRow, u'dotAll', u'editor', u'findDotAll')
        OptionsToggle(self.program, self.matchOptionsRow, u'unicode', u'editor', u'findUnicode')
        OptionsToggle(self.program, self.matchOptionsRow, u'smartCaps', u'editor', u'findReplaceSmartCaps')
    if 0:
        (self.scopeOptions, self.scopeRow) = self.addSelectOptionsRow((indent + u'scope     '), [u'file', u'directory', u'openFiles', u'project'])
        (self.changeCaseOptions, self.changeCaseRow) = self.addSelectOptionsRow((indent + u'changeCase'), [u'none', u'smart', u'upper', u'lower'])
        (self.withinOptions, self.withinOptionsRow) = self.addSelectOptionsRow((indent + u'within    '), [u'any', u'code', u'comment', u'error', u'markup', u'misspelled', u'quoted'])
        (self.searchSelectionOption, self.searchSelectionRow) = self.addSelectOptionsRow((indent + u'selection '), [u'any', u'yes', u'no'])
        (self.searchChangedOption, self.searchChangedRow) = self.addSelectOptionsRow((indent + u'changed   '), [u'any', u'yes', u'no'])
        self.pathsLine = LabeledLine(self.program, self, u'Paths: ')
        self.pathsLine.setController(app.cu_editor.InteractiveFindInput)
        self.pathsLine.setParent(self)
def __init__(self, program, host):
    Window.__init__(self, program, host)
    self.host = host
    self.expanded = False
    self.setController(app.cu_editor.InteractiveFind)
    indent = u'  '
    self.findLine = LabeledLine(self.program, self, u'Find: ')
    self.findLine.setController(app.cu_editor.InteractiveFindInput)
    self.findLine.setParent(self)
    self.replaceLine = LabeledLine(self.program, self, u'Replace: ')
    self.replaceLine.setController(app.cu_editor.InteractiveReplaceInput)
    self.replaceLine.setParent(self)
    self.matchOptionsRow = RowWindow(self.program, self, 2)
    self.matchOptionsRow.setParent(self)
    OptionsToggle(self.program, self.matchOptionsRow, u'regex', u'editor', u'findUseRegex')
    OptionsToggle(self.program, self.matchOptionsRow, u'wholeWord', u'editor', u'findWholeWord')
    OptionsToggle(self.program, self.matchOptionsRow, u'ignoreCase', u'editor', u'findIgnoreCase')
    if 0:
        OptionsToggle(self.program, self.matchOptionsRow, u'locale', u'editor', u'findLocale')
        OptionsToggle(self.program, self.matchOptionsRow, u'multiline', u'editor', u'findMultiline')
        OptionsToggle(self.program, self.matchOptionsRow, u'dotAll', u'editor', u'findDotAll')
        OptionsToggle(self.program, self.matchOptionsRow, u'unicode', u'editor', u'findUnicode')
        OptionsToggle(self.program, self.matchOptionsRow, u'smartCaps', u'editor', u'findReplaceSmartCaps')
    if 0:
        (self.scopeOptions, self.scopeRow) = self.addSelectOptionsRow((indent + u'scope     '), [u'file', u'directory', u'openFiles', u'project'])
        (self.changeCaseOptions, self.changeCaseRow) = self.addSelectOptionsRow((indent + u'changeCase'), [u'none', u'smart', u'upper', u'lower'])
        (self.withinOptions, self.withinOptionsRow) = self.addSelectOptionsRow((indent + u'within    '), [u'any', u'code', u'comment', u'error', u'markup', u'misspelled', u'quoted'])
        (self.searchSelectionOption, self.searchSelectionRow) = self.addSelectOptionsRow((indent + u'selection '), [u'any', u'yes', u'no'])
        (self.searchChangedOption, self.searchChangedRow) = self.addSelectOptionsRow((indent + u'changed   '), [u'any', u'yes', u'no'])
        self.pathsLine = LabeledLine(self.program, self, u'Paths: ')
        self.pathsLine.setController(app.cu_editor.InteractiveFindInput)
        self.pathsLine.setParent(self)