2018-07-02 18:33:03 +08:00
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'updates.ui'
#
# Created: Sat Sep 10 10:16:01 2016
# by: PyQt4 UI code generator 4.11.2
#
# WARNING! All changes made in this file will be lost!
2018-07-30 16:00:47 +08:00
from aqt . qt import *
2018-07-02 18:33:03 +08:00
try :
2018-07-30 16:00:47 +08:00
_encoding = QApplication . UnicodeUTF8
2018-07-02 18:33:03 +08:00
def _translate ( context , text , disambig ) :
2018-07-30 16:00:47 +08:00
return QApplication . translate ( context , text , disambig , _encoding )
2018-07-02 18:33:03 +08:00
except AttributeError :
def _translate ( context , text , disambig ) :
2018-07-30 16:00:47 +08:00
return QApplication . translate ( context , text , disambig )
2018-07-02 18:33:03 +08:00
class Ui_DialogUpdates ( object ) :
def setupUi ( self , DialogUpdates ) :
2018-07-30 16:00:47 +08:00
DialogUpdates . setObjectName ( u " DialogUpdates " )
2018-07-02 18:33:03 +08:00
DialogUpdates . resize ( 500 , 400 )
2018-07-30 16:00:47 +08:00
self . verticalLayout = QVBoxLayout ( DialogUpdates )
self . verticalLayout . setObjectName ( u " verticalLayout " )
self . labelUpdates = QLabel ( DialogUpdates )
2018-07-02 18:33:03 +08:00
self . labelUpdates . setWordWrap ( True )
self . labelUpdates . setOpenExternalLinks ( True )
2018-07-30 16:00:47 +08:00
self . labelUpdates . setObjectName ( u " labelUpdates " )
2018-07-02 18:33:03 +08:00
self . verticalLayout . addWidget ( self . labelUpdates )
2018-07-30 16:00:47 +08:00
self . textBrowser = QTextBrowser ( DialogUpdates )
self . textBrowser . setObjectName ( u " textBrowser " )
2018-07-02 18:33:03 +08:00
self . verticalLayout . addWidget ( self . textBrowser )
2018-07-30 16:00:47 +08:00
self . horizontalLayout = QHBoxLayout ( )
self . horizontalLayout . setObjectName ( u " horizontalLayout " )
#spacerItem = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
2018-07-09 16:23:17 +08:00
#self.horizontalLayout.addItem(spacerItem)
2018-07-30 16:00:47 +08:00
#self.always = QPushButton(DialogUpdates)
#self.always.setObjectName(u"always"))
2018-07-09 16:23:17 +08:00
#self.horizontalLayout.addWidget(self.always)
2018-07-30 16:00:47 +08:00
self . update = QPushButton ( DialogUpdates )
self . update . setObjectName ( u " update " )
self . horizontalLayout . addWidget ( self . update , 0 , Qt . AlignCenter )
#self.dont = QPushButton(DialogUpdates)
#self.dont.setObjectName(u"dont"))
2018-07-09 16:23:17 +08:00
#self.horizontalLayout.addWidget(self.dont)
2018-07-30 16:00:47 +08:00
#self.never = QPushButton(DialogUpdates)
#self.never.setObjectName(u"never"))
2018-07-09 16:23:17 +08:00
#self.horizontalLayout.addWidget(self.never)
2018-07-02 18:33:03 +08:00
self . verticalLayout . addLayout ( self . horizontalLayout )
self . retranslateUi ( DialogUpdates )
2018-07-30 16:00:47 +08:00
QMetaObject . connectSlotsByName ( DialogUpdates )
2018-07-02 18:33:03 +08:00
def retranslateUi ( self , DialogUpdates ) :
2018-07-31 11:01:56 +08:00
DialogUpdates . setWindowTitle ( _translate ( " DialogUpdates " , " FastWQ - Updater " , None ) )
2018-07-02 18:33:03 +08:00
self . labelUpdates . setText ( _translate ( " DialogUpdates " , " <html><head/><body><p>A new version of {0} is available for download! </p><p>Do you want to update {1} to version {2} ?</p><p>Changes from your version are listed below:</p></body></html> " , None ) )
2018-07-09 16:23:17 +08:00
#self.always.setText(_translate("DialogUpdates", "Always update", None))
2018-07-02 18:33:03 +08:00
self . update . setText ( _translate ( " DialogUpdates " , " Update " , None ) )
2018-07-09 16:23:17 +08:00
#self.dont.setText(_translate("DialogUpdates", "Don\'t update", None))
#self.never.setText(_translate("DialogUpdates", "Never", None))
2018-07-02 18:33:03 +08:00