Package liveusb :: Module windows_dialog
[hide private]
[frames] | no frames]

Source Code for Module liveusb.windows_dialog

  1  # -*- coding: utf-8 -*- 
  2   
  3  # Form implementation generated from reading ui file 'data/liveusb-creator.ui' 
  4  # 
  5  # Created: Wed Sep  3 03:31:13 2008 
  6  #      by: PyQt4 UI code generator 4.4.2 
  7  # 
  8  # WARNING! All changes made in this file will be lost! 
  9   
 10  from PyQt4 import QtCore, QtGui 
 11  from liveusb import utf8_gettext as _ 
 12   
13 -class Ui_Dialog(object):
14 - def setupUi(self, Dialog):
15 Dialog.setObjectName("Dialog") 16 Dialog.resize(422,388) 17 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,QtGui.QSizePolicy.Fixed) 18 sizePolicy.setHorizontalStretch(0) 19 sizePolicy.setVerticalStretch(0) 20 sizePolicy.setHeightForWidth(Dialog.sizePolicy().hasHeightForWidth()) 21 Dialog.setSizePolicy(sizePolicy) 22 self.startButton = QtGui.QPushButton(Dialog) 23 self.startButton.setEnabled(True) 24 self.startButton.setGeometry(QtCore.QRect(130,350,158,34)) 25 self.startButton.setObjectName("startButton") 26 self.textEdit = QtGui.QTextEdit(Dialog) 27 self.textEdit.setGeometry(QtCore.QRect(10,200,401,111)) 28 font = QtGui.QFont() 29 font.setPointSize(8) 30 self.textEdit.setFont(font) 31 self.textEdit.setReadOnly(True) 32 self.textEdit.setObjectName("textEdit") 33 self.progressBar = QtGui.QProgressBar(Dialog) 34 self.progressBar.setGeometry(QtCore.QRect(10,320,401,23)) 35 self.progressBar.setProperty("value",QtCore.QVariant(0)) 36 self.progressBar.setObjectName("progressBar") 37 self.downloadGroup = QtGui.QGroupBox(Dialog) 38 self.downloadGroup.setGeometry(QtCore.QRect(210,80,201,51)) 39 font = QtGui.QFont() 40 font.setPointSize(8) 41 self.downloadGroup.setFont(font) 42 self.downloadGroup.setObjectName("downloadGroup") 43 self.downloadCombo = QtGui.QComboBox(self.downloadGroup) 44 self.downloadCombo.setGeometry(QtCore.QRect(10,20,181,22)) 45 self.downloadCombo.setObjectName("downloadCombo") 46 self.label_2 = QtGui.QLabel(Dialog) 47 self.label_2.setGeometry(QtCore.QRect(180,100,23,24)) 48 font = QtGui.QFont() 49 font.setFamily("Verdana") 50 font.setPointSize(10) 51 font.setWeight(75) 52 font.setBold(True) 53 self.label_2.setFont(font) 54 self.label_2.setObjectName("label_2") 55 self.groupBox = QtGui.QGroupBox(Dialog) 56 self.groupBox.setGeometry(QtCore.QRect(10,80,161,51)) 57 font = QtGui.QFont() 58 font.setPointSize(8) 59 self.groupBox.setFont(font) 60 self.groupBox.setObjectName("groupBox") 61 self.isoBttn = QtGui.QPushButton(self.groupBox) 62 self.isoBttn.setGeometry(QtCore.QRect(11,18,141,25)) 63 self.isoBttn.setObjectName("isoBttn") 64 self.groupBox_2 = QtGui.QGroupBox(Dialog) 65 self.groupBox_2.setGeometry(QtCore.QRect(10,140,191,51)) 66 font = QtGui.QFont() 67 font.setPointSize(8) 68 self.groupBox_2.setFont(font) 69 self.groupBox_2.setObjectName("groupBox_2") 70 self.driveBox = QtGui.QComboBox(self.groupBox_2) 71 self.driveBox.setGeometry(QtCore.QRect(10,20,145,20)) 72 self.driveBox.setEditable(False) 73 self.driveBox.setInsertPolicy(QtGui.QComboBox.InsertAtTop) 74 self.driveBox.setDuplicatesEnabled(False) 75 self.driveBox.setObjectName("driveBox") 76 self.refreshDevicesButton = QtGui.QPushButton(self.groupBox_2) 77 self.refreshDevicesButton.setGeometry(QtCore.QRect(156,16,30,26)) 78 icon = QtGui.QIcon() 79 icon.addFile(":/refresh.png") 80 self.refreshDevicesButton.setIcon(icon) 81 self.refreshDevicesButton.setFlat(True) 82 self.refreshDevicesButton.setObjectName("refreshDevicesButton") 83 self.overlayTitle = QtGui.QGroupBox(Dialog) 84 self.overlayTitle.setGeometry(QtCore.QRect(210,140,201,51)) 85 font = QtGui.QFont() 86 font.setPointSize(8) 87 self.overlayTitle.setFont(font) 88 self.overlayTitle.setObjectName("overlayTitle") 89 self.overlaySlider = QtGui.QSlider(self.overlayTitle) 90 self.overlaySlider.setGeometry(QtCore.QRect(10,20,181,21)) 91 self.overlaySlider.setMaximum(2047) 92 self.overlaySlider.setOrientation(QtCore.Qt.Horizontal) 93 self.overlaySlider.setTickPosition(QtGui.QSlider.NoTicks) 94 self.overlaySlider.setObjectName("overlaySlider") 95 self.label = QtGui.QLabel(Dialog) 96 self.label.setGeometry(QtCore.QRect(0,0,430,72)) 97 self.label.setPixmap(QtGui.QPixmap(":/liveusb-header.png")) 98 self.label.setObjectName("label") 99 100 self.retranslateUi(Dialog) 101 QtCore.QMetaObject.connectSlotsByName(Dialog)
102
103 - def retranslateUi(self, Dialog):
104 Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", _("Fedora LiveUSB Creator"), None, QtGui.QApplication.UnicodeUTF8)) 105 self.startButton.setWhatsThis(QtGui.QApplication.translate("Dialog", _("This button will begin the LiveUSB creation process. This entails optionally downloading a release (if an existing one wasn\'t selected), extracting the ISO to the USB device, creating the persistent overlay, and installing the bootloader."), None, QtGui.QApplication.UnicodeUTF8)) 106 self.startButton.setText(QtGui.QApplication.translate("Dialog", _("Create Live USB"), None, QtGui.QApplication.UnicodeUTF8)) 107 self.textEdit.setWhatsThis(QtGui.QApplication.translate("Dialog", _("This is the status console, where all messages get written to."), None, QtGui.QApplication.UnicodeUTF8)) 108 self.progressBar.setWhatsThis(QtGui.QApplication.translate("Dialog", _("This is the progress bar that will indicate how far along in the LiveUSB creation process you are"), None, QtGui.QApplication.UnicodeUTF8)) 109 self.downloadGroup.setWhatsThis(QtGui.QApplication.translate("Dialog", _("If you do not select an existing Live CD, the selected release will be downloaded for you."), None, QtGui.QApplication.UnicodeUTF8)) 110 self.downloadGroup.setTitle(QtGui.QApplication.translate("Dialog", _("Download Fedora"), None, QtGui.QApplication.UnicodeUTF8)) 111 self.label_2.setText(QtGui.QApplication.translate("Dialog", _("or"), None, QtGui.QApplication.UnicodeUTF8)) 112 self.groupBox.setWhatsThis(QtGui.QApplication.translate("Dialog", _("This button allows you to browse for an existing Live CD ISO that you have previously downloaded. If you do not select one, a release will be downloaded for you automatically."), None, QtGui.QApplication.UnicodeUTF8)) 113 self.groupBox.setTitle(QtGui.QApplication.translate("Dialog", _("Use existing Live CD"), None, QtGui.QApplication.UnicodeUTF8)) 114 self.isoBttn.setText(QtGui.QApplication.translate("Dialog", _("Browse"), None, QtGui.QApplication.UnicodeUTF8)) 115 self.isoBttn.setShortcut(QtGui.QApplication.translate("Dialog", "Alt+B", None, QtGui.QApplication.UnicodeUTF8)) 116 self.groupBox_2.setWhatsThis(QtGui.QApplication.translate("Dialog", _("This is the USB stick that you want to install your Live CD on. This device must be formatted with the FAT filesystem."), None, QtGui.QApplication.UnicodeUTF8)) 117 self.groupBox_2.setTitle(QtGui.QApplication.translate("Dialog", _("Target Device"), None, QtGui.QApplication.UnicodeUTF8)) 118 self.overlayTitle.setWhatsThis(QtGui.QApplication.translate("Dialog", _("By allocating extra space on your USB stick for a persistent overlay, you will be able to store data and make permanent modifications to your live operating system. Without it, you will not be able to save data that will persist after a reboot."), None, QtGui.QApplication.UnicodeUTF8)) 119 self.overlayTitle.setTitle(QtGui.QApplication.translate("Dialog", _("Persistent Storage (0 Mb)"), None, QtGui.QApplication.UnicodeUTF8))
120 121 import resources_rc 122