"""\
wxCalendarCtrl widget configuration

@copyright: 2014-2016 Carsten Grohmann
@license: MIT (see LICENSE.txt) - THIS PROGRAM COMES WITH NO WARRANTY
"""

config = {
    'wxklass': 'wxCalendarCtrl',
    'style_defs': {
        'wxCAL_SUNDAY_FIRST': {
            'desc': _('Show Sunday as the first day in the week')
        },
        'wxCAL_MONDAY_FIRST': {
            'desc': _('Show Monday as the first day in the week')
        },
        'wxCAL_SHOW_HOLIDAYS': {
            'desc': _('Highlight holidays in the calendar (only generic)')
        },
        'wxCAL_NO_YEAR_CHANGE': {
            'desc': _('Disable the year changing')
        },
        'wxCAL_NO_MONTH_CHANGE': {
            'desc': _('Disable the month (and, implicitly, the year) '
                      'changing')
        },
        'wxCAL_SHOW_SURROUNDING_WEEKS': {
            'desc': _('Show the neighbouring weeks in the previous and next '
                      'months')
        },
        'wxCAL_SEQUENTIAL_MONTH_SELECTION': {
            'desc': _('Use alternative, more compact, style for the month '
                      'and year selection controls.')
        },
        'wxCAL_SHOW_WEEK_NUMBERS': {
            'desc': _('Show week numbers on the left side of the calendar. '
                      '(not in generic)'),
            'supported_by': ('wx3',),
        },
    },
    'default_style': 'wxCAL_SHOW_HOLIDAYS',
    'style_list': ['wxCAL_SUNDAY_FIRST', 'wxCAL_MONDAY_FIRST',
                   'wxCAL_SHOW_HOLIDAYS', 'wxCAL_NO_YEAR_CHANGE',
                   'wxCAL_NO_MONTH_CHANGE', 'wxCAL_SHOW_SURROUNDING_WEEKS',
                   'wxCAL_SHOW_WEEK_NUMBERS',
                   'wxCAL_SEQUENTIAL_MONTH_SELECTION'],
    'events': {
        'default': {
            'type': 'wxCalendarEvent',
        },
        'EVT_CALENDAR': {},
        'EVT_CALENDAR_SEL_CHANGED': {},
        'EVT_CALENDAR_DAY': {},
        'EVT_CALENDAR_MONTH': {},
        'EVT_CALENDAR_YEAR': {},
        'EVT_CALENDAR_WEEKDAY_CLICKED': {},
        'EVT_CALENDAR_PAGE_CHANGED': {
            'supported_by': ('wx3',),
        },
        'EVT_CALENDAR_WEEK_CLICKED': {
            'supported_by': ('wx3',),
        },
    },
}



