# -*- coding: utf-8 -*-
# auto-generated file

from PyQt5.QtWidgets import QCheckBox, QComboBox, QDialogButtonBox, QDoubleSpinBox, QLabel, QListView, QPushButton, QRadioButton, QSlider, QTabWidget, QToolButton, QTreeView, QWidget

def retranslate(window):
    class UI:
        __slots__ = ()
        tabWidget = window.findChild(QTabWidget, 'tabWidget')
        tab_1 = window.findChild(QWidget, 'tab_1')
        label = window.findChild(QLabel, 'label')
        slider_animspeed = window.findChild(QSlider, 'slider_animspeed')
        button_animspeed_reset = window.findChild(QPushButton, 'button_animspeed_reset')
        checkbox_mirror_faces = window.findChild(QCheckBox, 'checkbox_mirror_faces')
        spinbox_mirror_faces = window.findChild(QDoubleSpinBox, 'spinbox_mirror_faces')
        button_mirror_faces_reset = window.findChild(QPushButton, 'button_mirror_faces_reset')
        label_6 = window.findChild(QLabel, 'label_6')
        combobox_shader = window.findChild(QComboBox, 'combobox_shader')
        button_shader_reset = window.findChild(QPushButton, 'button_shader_reset')
        label_2 = window.findChild(QLabel, 'label_2')
        combobox_samples = window.findChild(QComboBox, 'combobox_samples')
        button_antialiasing_reset = window.findChild(QPushButton, 'button_antialiasing_reset')
        label_needs_restarted = window.findChild(QLabel, 'label_needs_restarted')
        tab_2 = window.findChild(QWidget, 'tab_2')
        button_mousemode_quad = window.findChild(QRadioButton, 'button_mousemode_quad')
        label_3 = window.findChild(QLabel, 'label_3')
        button_mousemode_ext = window.findChild(QRadioButton, 'button_mousemode_ext')
        label_4 = window.findChild(QLabel, 'label_4')
        tab_3 = window.findChild(QWidget, 'tab_3')
        listview_movekeys = window.findChild(QTreeView, 'listview_movekeys')
        button_movekey_add = window.findChild(QToolButton, 'button_movekey_add')
        button_movekey_remove = window.findChild(QToolButton, 'button_movekey_remove')
        button_movekey_reset = window.findChild(QToolButton, 'button_movekey_reset')
        tab_4 = window.findChild(QWidget, 'tab_4')
        listview_faces = window.findChild(QListView, 'listview_faces')
        label_5 = window.findChild(QLabel, 'label_5')
        button_color = window.findChild(QPushButton, 'button_color')
        button_color_reset = window.findChild(QPushButton, 'button_color_reset')
        label_7 = window.findChild(QLabel, 'label_7')
        combobox_image = window.findChild(QComboBox, 'combobox_image')
        button_image_reset = window.findChild(QPushButton, 'button_image_reset')
        radiobutton_tiled = window.findChild(QRadioButton, 'radiobutton_tiled')
        radiobutton_mosaic = window.findChild(QRadioButton, 'radiobutton_mosaic')
        label_8 = window.findChild(QLabel, 'label_8')
        button_background_color = window.findChild(QPushButton, 'button_background_color')
        button_background_color_reset = window.findChild(QPushButton, 'button_background_color_reset')
        buttonBox = window.findChild(QDialogButtonBox, 'buttonBox')
    ui = UI()

    window.setWindowTitle(_('Preferences'))
    ui.tabWidget.setTabText(ui.tabWidget.indexOf(ui.tab_1), _('Graphic'))
    ui.label.setProperty('text', _('Animation Speed:'))
    ui.checkbox_mirror_faces.setProperty('text', _('Mirror Distance:'))
    ui.label_6.setProperty('text', _('Quality:'))
    ui.label_2.setProperty('toolTip', _('Lower antialiasing has better performance, higher antialiasing has better quality.'))
    ui.label_2.setProperty('text', _('Antialiasing:'))
    ui.tabWidget.setTabText(ui.tabWidget.indexOf(ui.tab_2), _('Mouse'))
    ui.label_3.setProperty('text', _('Four directions'))
    ui.label_4.setProperty('text', _('Simplified,\nright button inverts move'))
    ui.tabWidget.setTabText(ui.tabWidget.indexOf(ui.tab_3), _('Keys'))
    ui.button_movekey_add.setProperty('toolTip', _('Add'))
    ui.button_movekey_add.setProperty('text', _('Add'))
    ui.button_movekey_remove.setProperty('toolTip', _('Remove'))
    ui.button_movekey_remove.setProperty('text', _('Remove'))
    ui.button_movekey_reset.setProperty('toolTip', _('Reset'))
    ui.button_movekey_reset.setProperty('text', _('Reset'))
    ui.tabWidget.setTabText(ui.tabWidget.indexOf(ui.tab_4), _('Appearance'))
    ui.label_5.setProperty('text', _('Color:'))
    ui.label_7.setProperty('text', _('Image File:'))
    ui.radiobutton_tiled.setProperty('text', _('Tiled'))
    ui.radiobutton_mosaic.setProperty('text', _('Mosaic'))
    ui.label_8.setProperty('text', _('Background:'))

    return ui

