'Init advanced search options.'

def _initFilterBox(self, mainvbox):

    self._advSearchBox = gtk.HBox()
    self._advSearchBox.set_spacing(self._padding)
    self.pref = FilterOptions(self)
    self._filterMethods = [('GET', 'GET', False), ('POST', 'POST', False)]
    filterMethods = OptionList()
    for method in self._filterMethods:
        filterMethods.add(opt_factory(method[0], method[2], method[1], 'boolean'))
    self.pref.add_section('methods', _('Request    Method'), filterMethods)
    filterId = OptionList()
    filterId.add(opt_factory('min', '0', 'Min    ID', 'string'))
    filterId.add(opt_factory('max', '0', 'Max    ID', 'string'))
    self.pref.add_section('trans_id', _('Transaction    ID'), filterId)
    filterCodes = OptionList()
    codes = [('1xx', '1xx', False), ('2xx', '2xx', False), ('3xx', '3xx', False), ('4xx', '4xx', False), ('5xx', '5xx', False)]
    for code in codes:
        filterCodes.add(opt_factory(code[0], code[2], code[1], 'boolean'))
    self.pref.add_section('codes', _('Response    Code'), filterCodes)
    filterMisc = OptionList()
    filterMisc.add(opt_factory('tag', False, 'Tag', 'boolean'))
    filterMisc.add(opt_factory('has_qs', False, 'Request    has    Query    String', 'boolean'))
    self.pref.add_section('misc', _('Misc'), filterMisc)
    filterTypes = OptionList()
    self._filterTypes = [('html', 'HTML', False), ('javascript', 'JavaScript', False), ('image', 'Images', False), ('flash', 'Flash', False), ('css', 'CSS', False), ('text', 'Text', False)]
    for filterType in self._filterTypes:
        filterTypes.add(opt_factory(filterType[0], filterType[2], filterType[1], 'boolean'))
    self.pref.add_section('types', _('Response    Content    Type'), filterTypes)
    filterSize = OptionList()
    filterSize.add(opt_factory('resp_size', False, 'Not    Null', 'boolean'))
    self.pref.add_section('sizes', _('Response    Size'), filterSize)
    self.pref.show()
    self._advSearchBox.pack_start(self.pref, False, False)
    self._advSearchBox.hide_all()
    mainvbox.pack_start(self._advSearchBox, False, False)
