'Init options.'

def _init_options(self):

    self.like_initial = True
    self.pref = ConfigOptions(self.w3af, self, 'proxy_options')
    proxy_options = OptionList()
    d = _('Proxy    IP    address    and    port    number')
    h = _('Local    IP    address    where    the    proxy    will    listen    for    HTTP    requests.')
    o = opt_factory('ipport', '127.0.0.1:8080', d, option_types.IPPORT, help=h)
    proxy_options.add(o)
    d = _('Regular    expression    for    URLs    to    intercept')
    h = _('Regular    expression    to    match    against    the    URLs    of    HTTP    requests    to    decide    if    the    request    should    be    intercepted    for    analysis/modifications    or    not.')
    o = opt_factory('trap', '.*', d, option_types.REGEX, help=h)
    proxy_options.add(o)
    d = _('HTTP    methods    to    intercept')
    h = _('Comma    separated    list    of    HTTP    methods    to    intercept')
    o = opt_factory('methodtrap', 'GET,POST', d, option_types.LIST, help=h)
    proxy_options.add(o)
    d = _('Ignored    extensions')
    h = _('Filename    extensions    that    will    NOT    be    intercepted')
    default_value = '.*\\.(gif|jpg|png|css|js|ico|swf|axd|tif)$'
    o = opt_factory('notrap', default_value, d, option_types.REGEX, help=h)
    proxy_options.add(o)
    d = _('View    mode    for    intercept    tab')
    views = ('Split', 'Tabbed')
    o = opt_factory('trap_view', views, d, option_types.COMBO)
    proxy_options.add(o)
    d = _('Home    tab')
    homes = ['Intercept', 'History', 'Options']
    o = opt_factory('home_tab', homes, d, option_types.COMBO)
    proxy_options.add(o)
    self.pref.add_section('proxy', _('Proxy    options'), proxy_options)
    editor_options = OptionList()
    o = opt_factory('wrap', True, _('Wrap    long    lines'), 'boolean')
    editor_options.add(o)
    o = opt_factory('highlight_current_line', True, _('Highlight    current    line'), 'boolean')
    editor_options.add(o)
    o = opt_factory('highlight_syntax', True, _('Highlight    syntax'), 'boolean')
    editor_options.add(o)
    o = opt_factory('display_line_num', True, _('Display    line    numbers'), 'boolean')
    editor_options.add(o)
    self.pref.add_section('editor', _('HTTP    editor    options'), editor_options)
    self.pref.load_values()
    self.pref.show()
