2012-12-25 20:51:46 +00:00
# -*- coding: utf-8 -*-
2012-12-25 20:59:38 +00:00
# Form implementation generated from reading ui file 'ui/preferences.ui'
2012-12-25 20:51:46 +00:00
#
2015-02-15 04:31:13 +00:00
# Created: Sun Feb 15 13:27:51 2015
2014-12-20 10:45:41 +00:00
# by: PyQt4 UI code generator 4.10.4
2012-12-25 20:51:46 +00:00
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore , QtGui
try :
_fromUtf8 = QtCore . QString . fromUtf8
except AttributeError :
def _fromUtf8 ( s ) :
return s
try :
_encoding = QtGui . QApplication . UnicodeUTF8
def _translate ( context , text , disambig ) :
return QtGui . QApplication . translate ( context , text , disambig , _encoding )
except AttributeError :
def _translate ( context , text , disambig ) :
return QtGui . QApplication . translate ( context , text , disambig )
class Ui_DialogPreferences ( object ) :
def setupUi ( self , DialogPreferences ) :
DialogPreferences . setObjectName ( _fromUtf8 ( " DialogPreferences " ) )
DialogPreferences . resize ( 600 , 300 )
self . verticalLayout = QtGui . QVBoxLayout ( DialogPreferences )
self . verticalLayout . setObjectName ( _fromUtf8 ( " verticalLayout " ) )
self . tabWidget = QtGui . QTabWidget ( DialogPreferences )
self . tabWidget . setObjectName ( _fromUtf8 ( " tabWidget " ) )
self . tabGeneral = QtGui . QWidget ( )
self . tabGeneral . setObjectName ( _fromUtf8 ( " tabGeneral " ) )
2013-11-11 23:16:41 +00:00
self . formLayout = QtGui . QFormLayout ( self . tabGeneral )
2015-02-15 04:31:13 +00:00
self . formLayout . setFieldGrowthPolicy ( QtGui . QFormLayout . AllNonFixedFieldsGrow )
2013-11-11 23:16:41 +00:00
self . formLayout . setObjectName ( _fromUtf8 ( " formLayout " ) )
2013-11-10 18:15:11 +00:00
self . checkLoadRecentFile = QtGui . QCheckBox ( self . tabGeneral )
self . checkLoadRecentFile . setObjectName ( _fromUtf8 ( " checkLoadRecentFile " ) )
2013-11-11 23:16:41 +00:00
self . formLayout . setWidget ( 0 , QtGui . QFormLayout . SpanningRole , self . checkLoadRecentFile )
2013-11-10 18:15:11 +00:00
self . checkStripReadings = QtGui . QCheckBox ( self . tabGeneral )
self . checkStripReadings . setObjectName ( _fromUtf8 ( " checkStripReadings " ) )
2013-11-11 23:16:41 +00:00
self . formLayout . setWidget ( 1 , QtGui . QFormLayout . SpanningRole , self . checkStripReadings )
2013-11-10 18:15:11 +00:00
self . checkCheckForUpdates = QtGui . QCheckBox ( self . tabGeneral )
self . checkCheckForUpdates . setObjectName ( _fromUtf8 ( " checkCheckForUpdates " ) )
2013-11-11 23:16:41 +00:00
self . formLayout . setWidget ( 2 , QtGui . QFormLayout . SpanningRole , self . checkCheckForUpdates )
self . label_2 = QtGui . QLabel ( self . tabGeneral )
self . label_2 . setObjectName ( _fromUtf8 ( " label_2 " ) )
2015-02-15 04:31:13 +00:00
self . formLayout . setWidget ( 4 , QtGui . QFormLayout . LabelRole , self . label_2 )
2013-11-11 23:16:41 +00:00
self . spinMaxResults = QtGui . QSpinBox ( self . tabGeneral )
sizePolicy = QtGui . QSizePolicy ( QtGui . QSizePolicy . Fixed , QtGui . QSizePolicy . Fixed )
sizePolicy . setHorizontalStretch ( 0 )
sizePolicy . setVerticalStretch ( 0 )
sizePolicy . setHeightForWidth ( self . spinMaxResults . sizePolicy ( ) . hasHeightForWidth ( ) )
self . spinMaxResults . setSizePolicy ( sizePolicy )
self . spinMaxResults . setMinimum ( 1 )
self . spinMaxResults . setObjectName ( _fromUtf8 ( " spinMaxResults " ) )
2015-02-15 04:31:13 +00:00
self . formLayout . setWidget ( 4 , QtGui . QFormLayout . FieldRole , self . spinMaxResults )
2013-11-10 18:15:11 +00:00
self . label_14 = QtGui . QLabel ( self . tabGeneral )
self . label_14 . setObjectName ( _fromUtf8 ( " label_14 " ) )
2015-02-15 04:31:13 +00:00
self . formLayout . setWidget ( 5 , QtGui . QFormLayout . LabelRole , self . label_14 )
2013-11-10 20:10:43 +00:00
self . spinScanLength = QtGui . QSpinBox ( self . tabGeneral )
2013-11-10 18:15:11 +00:00
sizePolicy = QtGui . QSizePolicy ( QtGui . QSizePolicy . Fixed , QtGui . QSizePolicy . Fixed )
sizePolicy . setHorizontalStretch ( 0 )
sizePolicy . setVerticalStretch ( 0 )
2013-11-10 20:10:43 +00:00
sizePolicy . setHeightForWidth ( self . spinScanLength . sizePolicy ( ) . hasHeightForWidth ( ) )
self . spinScanLength . setSizePolicy ( sizePolicy )
self . spinScanLength . setMinimum ( 1 )
self . spinScanLength . setObjectName ( _fromUtf8 ( " spinScanLength " ) )
2015-02-15 04:31:13 +00:00
self . formLayout . setWidget ( 5 , QtGui . QFormLayout . FieldRole , self . spinScanLength )
self . checkRememberTextContent = QtGui . QCheckBox ( self . tabGeneral )
self . checkRememberTextContent . setObjectName ( _fromUtf8 ( " checkRememberTextContent " ) )
self . formLayout . setWidget ( 3 , QtGui . QFormLayout . LabelRole , self . checkRememberTextContent )
2012-12-25 20:51:46 +00:00
self . tabWidget . addTab ( self . tabGeneral , _fromUtf8 ( " " ) )
self . tabAppearance = QtGui . QWidget ( )
self . tabAppearance . setObjectName ( _fromUtf8 ( " tabAppearance " ) )
self . verticalLayout_3 = QtGui . QVBoxLayout ( self . tabAppearance )
self . verticalLayout_3 . setObjectName ( _fromUtf8 ( " verticalLayout_3 " ) )
self . horizontalLayout = QtGui . QHBoxLayout ( )
self . horizontalLayout . setObjectName ( _fromUtf8 ( " horizontalLayout " ) )
2013-11-10 18:15:11 +00:00
self . comboFontFamily = QtGui . QFontComboBox ( self . tabAppearance )
sizePolicy = QtGui . QSizePolicy ( QtGui . QSizePolicy . Expanding , QtGui . QSizePolicy . Fixed )
sizePolicy . setHorizontalStretch ( 0 )
sizePolicy . setVerticalStretch ( 0 )
sizePolicy . setHeightForWidth ( self . comboFontFamily . sizePolicy ( ) . hasHeightForWidth ( ) )
self . comboFontFamily . setSizePolicy ( sizePolicy )
self . comboFontFamily . setObjectName ( _fromUtf8 ( " comboFontFamily " ) )
self . horizontalLayout . addWidget ( self . comboFontFamily )
self . spinFontSize = QtGui . QSpinBox ( self . tabAppearance )
sizePolicy = QtGui . QSizePolicy ( QtGui . QSizePolicy . Minimum , QtGui . QSizePolicy . Fixed )
sizePolicy . setHorizontalStretch ( 0 )
sizePolicy . setVerticalStretch ( 0 )
sizePolicy . setHeightForWidth ( self . spinFontSize . sizePolicy ( ) . hasHeightForWidth ( ) )
self . spinFontSize . setSizePolicy ( sizePolicy )
self . spinFontSize . setMinimum ( 1 )
self . spinFontSize . setMaximum ( 72 )
self . spinFontSize . setProperty ( " value " , 12 )
self . spinFontSize . setObjectName ( _fromUtf8 ( " spinFontSize " ) )
self . horizontalLayout . addWidget ( self . spinFontSize )
self . buttonColorFg = QtGui . QPushButton ( self . tabAppearance )
self . buttonColorFg . setObjectName ( _fromUtf8 ( " buttonColorFg " ) )
self . horizontalLayout . addWidget ( self . buttonColorFg )
self . buttonColorBg = QtGui . QPushButton ( self . tabAppearance )
self . buttonColorBg . setObjectName ( _fromUtf8 ( " buttonColorBg " ) )
self . horizontalLayout . addWidget ( self . buttonColorBg )
2012-12-25 20:51:46 +00:00
self . verticalLayout_3 . addLayout ( self . horizontalLayout )
2013-11-10 18:15:11 +00:00
self . textSample = QtGui . QPlainTextEdit ( self . tabAppearance )
self . textSample . setObjectName ( _fromUtf8 ( " textSample " ) )
self . verticalLayout_3 . addWidget ( self . textSample )
2015-01-30 09:38:01 +00:00
self . checkAllowEditing = QtGui . QCheckBox ( self . tabAppearance )
self . checkAllowEditing . setObjectName ( _fromUtf8 ( " checkAllowEditing " ) )
self . verticalLayout_3 . addWidget ( self . checkAllowEditing )
2012-12-25 20:51:46 +00:00
self . tabWidget . addTab ( self . tabAppearance , _fromUtf8 ( " " ) )
self . tabAnki = QtGui . QWidget ( )
2013-11-10 21:05:04 +00:00
self . tabAnki . setEnabled ( False )
2012-12-25 20:51:46 +00:00
self . tabAnki . setObjectName ( _fromUtf8 ( " tabAnki " ) )
2013-11-10 18:15:11 +00:00
self . verticalLayout_2 = QtGui . QVBoxLayout ( self . tabAnki )
self . verticalLayout_2 . setObjectName ( _fromUtf8 ( " verticalLayout_2 " ) )
2013-11-11 23:16:41 +00:00
self . horizontalLayout_2 = QtGui . QHBoxLayout ( )
self . horizontalLayout_2 . setObjectName ( _fromUtf8 ( " horizontalLayout_2 " ) )
self . label = QtGui . QLabel ( self . tabAnki )
self . label . setObjectName ( _fromUtf8 ( " label " ) )
self . horizontalLayout_2 . addWidget ( self . label )
self . radioButtonVocab = QtGui . QRadioButton ( self . tabAnki )
self . radioButtonVocab . setChecked ( True )
self . radioButtonVocab . setObjectName ( _fromUtf8 ( " radioButtonVocab " ) )
self . horizontalLayout_2 . addWidget ( self . radioButtonVocab )
self . radioButtonKanji = QtGui . QRadioButton ( self . tabAnki )
self . radioButtonKanji . setObjectName ( _fromUtf8 ( " radioButtonKanji " ) )
self . horizontalLayout_2 . addWidget ( self . radioButtonKanji )
spacerItem = QtGui . QSpacerItem ( 40 , 20 , QtGui . QSizePolicy . Expanding , QtGui . QSizePolicy . Minimum )
self . horizontalLayout_2 . addItem ( spacerItem )
self . verticalLayout_2 . addLayout ( self . horizontalLayout_2 )
2013-11-10 18:15:11 +00:00
self . horizontalLayout_3 = QtGui . QHBoxLayout ( )
self . horizontalLayout_3 . setObjectName ( _fromUtf8 ( " horizontalLayout_3 " ) )
2012-12-25 20:51:46 +00:00
self . label_13 = QtGui . QLabel ( self . tabAnki )
self . label_13 . setObjectName ( _fromUtf8 ( " label_13 " ) )
2013-11-10 18:15:11 +00:00
self . horizontalLayout_3 . addWidget ( self . label_13 )
self . comboBoxDeck = QtGui . QComboBox ( self . tabAnki )
2012-12-25 20:51:46 +00:00
sizePolicy = QtGui . QSizePolicy ( QtGui . QSizePolicy . Expanding , QtGui . QSizePolicy . Fixed )
sizePolicy . setHorizontalStretch ( 0 )
sizePolicy . setVerticalStretch ( 0 )
2013-11-10 18:15:11 +00:00
sizePolicy . setHeightForWidth ( self . comboBoxDeck . sizePolicy ( ) . hasHeightForWidth ( ) )
self . comboBoxDeck . setSizePolicy ( sizePolicy )
self . comboBoxDeck . setObjectName ( _fromUtf8 ( " comboBoxDeck " ) )
self . horizontalLayout_3 . addWidget ( self . comboBoxDeck )
2012-12-25 20:51:46 +00:00
self . label_12 = QtGui . QLabel ( self . tabAnki )
self . label_12 . setObjectName ( _fromUtf8 ( " label_12 " ) )
2013-11-10 18:15:11 +00:00
self . horizontalLayout_3 . addWidget ( self . label_12 )
self . comboBoxModel = QtGui . QComboBox ( self . tabAnki )
2012-12-25 20:51:46 +00:00
sizePolicy = QtGui . QSizePolicy ( QtGui . QSizePolicy . Expanding , QtGui . QSizePolicy . Fixed )
sizePolicy . setHorizontalStretch ( 0 )
sizePolicy . setVerticalStretch ( 0 )
2013-11-10 18:15:11 +00:00
sizePolicy . setHeightForWidth ( self . comboBoxModel . sizePolicy ( ) . hasHeightForWidth ( ) )
self . comboBoxModel . setSizePolicy ( sizePolicy )
self . comboBoxModel . setObjectName ( _fromUtf8 ( " comboBoxModel " ) )
self . horizontalLayout_3 . addWidget ( self . comboBoxModel )
self . verticalLayout_2 . addLayout ( self . horizontalLayout_3 )
2012-12-25 20:51:46 +00:00
self . label_11 = QtGui . QLabel ( self . tabAnki )
self . label_11 . setObjectName ( _fromUtf8 ( " label_11 " ) )
2013-11-10 18:15:11 +00:00
self . verticalLayout_2 . addWidget ( self . label_11 )
self . tableFields = QtGui . QTableWidget ( self . tabAnki )
self . tableFields . setObjectName ( _fromUtf8 ( " tableFields " ) )
self . tableFields . setColumnCount ( 2 )
self . tableFields . setRowCount ( 0 )
2012-12-25 20:51:46 +00:00
item = QtGui . QTableWidgetItem ( )
2013-11-10 18:15:11 +00:00
self . tableFields . setHorizontalHeaderItem ( 0 , item )
2012-12-25 20:51:46 +00:00
item = QtGui . QTableWidgetItem ( )
2013-11-10 18:15:11 +00:00
self . tableFields . setHorizontalHeaderItem ( 1 , item )
self . verticalLayout_2 . addWidget ( self . tableFields )
2013-11-10 23:38:31 +00:00
self . labelTags = QtGui . QLabel ( self . tabAnki )
self . labelTags . setText ( _fromUtf8 ( " " ) )
self . labelTags . setObjectName ( _fromUtf8 ( " labelTags " ) )
self . verticalLayout_2 . addWidget ( self . labelTags )
2012-12-25 20:51:46 +00:00
self . tabWidget . addTab ( self . tabAnki , _fromUtf8 ( " " ) )
self . verticalLayout . addWidget ( self . tabWidget )
self . buttonBox = QtGui . QDialogButtonBox ( DialogPreferences )
self . buttonBox . setOrientation ( QtCore . Qt . Horizontal )
self . buttonBox . setStandardButtons ( QtGui . QDialogButtonBox . Cancel | QtGui . QDialogButtonBox . Ok )
self . buttonBox . setObjectName ( _fromUtf8 ( " buttonBox " ) )
self . verticalLayout . addWidget ( self . buttonBox )
self . retranslateUi ( DialogPreferences )
self . tabWidget . setCurrentIndex ( 0 )
QtCore . QObject . connect ( self . buttonBox , QtCore . SIGNAL ( _fromUtf8 ( " accepted() " ) ) , DialogPreferences . accept )
QtCore . QObject . connect ( self . buttonBox , QtCore . SIGNAL ( _fromUtf8 ( " rejected() " ) ) , DialogPreferences . reject )
QtCore . QMetaObject . connectSlotsByName ( DialogPreferences )
def retranslateUi ( self , DialogPreferences ) :
DialogPreferences . setWindowTitle ( _translate ( " DialogPreferences " , " Preferences " , None ) )
2013-11-10 20:10:43 +00:00
self . checkLoadRecentFile . setText ( _translate ( " DialogPreferences " , " Load most recent file " , None ) )
self . checkStripReadings . setText ( _translate ( " DialogPreferences " , " Strip readings from files " , None ) )
self . checkCheckForUpdates . setText ( _translate ( " DialogPreferences " , " Check for updates " , None ) )
2013-11-11 23:16:41 +00:00
self . label_2 . setText ( _translate ( " DialogPreferences " , " Max search results " , None ) )
2013-11-10 20:10:43 +00:00
self . label_14 . setText ( _translate ( " DialogPreferences " , " Text scan length " , None ) )
2015-02-15 04:31:13 +00:00
self . checkRememberTextContent . setText ( _translate ( " DialogPreferences " , " Remember text content " , None ) )
2012-12-25 20:51:46 +00:00
self . tabWidget . setTabText ( self . tabWidget . indexOf ( self . tabGeneral ) , _translate ( " DialogPreferences " , " General " , None ) )
2013-11-10 18:15:11 +00:00
self . buttonColorFg . setText ( _translate ( " DialogPreferences " , " Foreground... " , None ) )
self . buttonColorBg . setText ( _translate ( " DialogPreferences " , " Background... " , None ) )
self . textSample . setPlainText ( _translate ( " DialogPreferences " , " Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam accumsan nisi a leo faucibus ut varius velit fringilla. Cras hendrerit eleifend porttitor. Quisque eu elit quis tellus hendrerit ornare et ac tellus. Nunc id felis ut sapien blandit viverra vel ac est. Ut erat lorem, rutrum at scelerisque sollicitudin, lacinia quis diam. Suspendisse potenti. Integer id justo ac ligula aliquet mattis. Etiam malesuada faucibus risus, vel hendrerit elit consectetur quis. Etiam consectetur ipsum ut odio feugiat suscipit. Etiam a tellus metus. " , None ) )
2015-01-30 09:38:01 +00:00
self . checkAllowEditing . setText ( _translate ( " DialogPreferences " , " Allow editing " , None ) )
2012-12-25 20:51:46 +00:00
self . tabWidget . setTabText ( self . tabWidget . indexOf ( self . tabAppearance ) , _translate ( " DialogPreferences " , " Appearance " , None ) )
2013-11-16 19:53:02 +00:00
self . label . setText ( _translate ( " DialogPreferences " , " Displayed profile " , None ) )
2013-11-11 23:16:41 +00:00
self . radioButtonVocab . setText ( _translate ( " DialogPreferences " , " Vocabulary " , None ) )
self . radioButtonKanji . setText ( _translate ( " DialogPreferences " , " Kanji " , None ) )
2012-12-25 20:51:46 +00:00
self . label_13 . setText ( _translate ( " DialogPreferences " , " Deck " , None ) )
self . label_12 . setText ( _translate ( " DialogPreferences " , " Model " , None ) )
2013-11-10 23:38:31 +00:00
self . label_11 . setText ( _translate ( " DialogPreferences " , " Specify how your model fields are populated when adding facts " , None ) )
2013-11-10 18:15:11 +00:00
item = self . tableFields . horizontalHeaderItem ( 0 )
2012-12-25 20:51:46 +00:00
item . setText ( _translate ( " DialogPreferences " , " Field " , None ) )
2013-11-10 18:15:11 +00:00
item = self . tableFields . horizontalHeaderItem ( 1 )
2012-12-25 20:51:46 +00:00
item . setText ( _translate ( " DialogPreferences " , " Value " , None ) )
self . tabWidget . setTabText ( self . tabWidget . indexOf ( self . tabAnki ) , _translate ( " DialogPreferences " , " Anki " , None ) )
2012-12-25 21:10:24 +00:00
import resources_rc