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

Source Code for Module liveusb.linux_dialog

  1  # -*- coding: utf-8 -*- 
  2   
  3  # Form implementation generated from reading ui file 'data/liveusb-creator-linux.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(431,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(112,348,209,34)) 25 self.startButton.setObjectName("startButton") 26 self.textEdit = QtGui.QTextEdit(Dialog) 27 self.textEdit.setGeometry(QtCore.QRect(8,200,409,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,405,23)) 35 self.progressBar.setProperty("value",QtCore.QVariant(0)) 36 self.progressBar.setTextVisible(True) 37 self.progressBar.setObjectName("progressBar") 38 self.downloadGroup = QtGui.QGroupBox(Dialog) 39 self.downloadGroup.setGeometry(QtCore.QRect(216,80,205,51)) 40 font = QtGui.QFont() 41 font.setPointSize(8) 42 self.downloadGroup.setFont(font) 43 self.downloadGroup.setObjectName("downloadGroup") 44 self.downloadCombo = QtGui.QComboBox(self.downloadGroup) 45 self.downloadCombo.setGeometry(QtCore.QRect(10,20,189,25)) 46 self.downloadCombo.setObjectName("downloadCombo") 47 self.label_2 = QtGui.QLabel(Dialog) 48 self.label_2.setGeometry(QtCore.QRect(184,100,23,24)) 49 font = QtGui.QFont() 50 font.setFamily("Verdana") 51 font.setPointSize(10) 52 font.setWeight(75) 53 font.setBold(True) 54 self.label_2.setFont(font) 55 self.label_2.setObjectName("label_2") 56 self.groupBox = QtGui.QGroupBox(Dialog) 57 self.groupBox.setGeometry(QtCore.QRect(12,80,161,51)) 58 font = QtGui.QFont() 59 font.setPointSize(8) 60 self.groupBox.setFont(font) 61 self.groupBox.setObjectName("groupBox") 62 self.isoBttn = QtGui.QPushButton(self.groupBox) 63 self.isoBttn.setGeometry(QtCore.QRect(11,18,141,25)) 64 self.isoBttn.setObjectName("isoBttn") 65 self.groupBox_2 = QtGui.QGroupBox(Dialog) 66 self.groupBox_2.setGeometry(QtCore.QRect(10,140,201,51)) 67 font = QtGui.QFont() 68 font.setPointSize(8) 69 self.groupBox_2.setFont(font) 70 self.groupBox_2.setObjectName("groupBox_2") 71 self.driveBox = QtGui.QComboBox(self.groupBox_2) 72 self.driveBox.setGeometry(QtCore.QRect(10,20,181,25)) 73 self.driveBox.setEditable(False) 74 self.driveBox.setInsertPolicy(QtGui.QComboBox.InsertAtTop) 75 self.driveBox.setDuplicatesEnabled(False) 76 self.driveBox.setObjectName("driveBox") 77 self.overlayTitle = QtGui.QGroupBox(Dialog) 78 self.overlayTitle.setGeometry(QtCore.QRect(216,140,205,51)) 79 font = QtGui.QFont() 80 font.setPointSize(8) 81 self.overlayTitle.setFont(font) 82 self.overlayTitle.setObjectName("overlayTitle") 83 self.overlaySlider = QtGui.QSlider(self.overlayTitle) 84 self.overlaySlider.setGeometry(QtCore.QRect(10,20,181,21)) 85 self.overlaySlider.setMaximum(2047) 86 self.overlaySlider.setOrientation(QtCore.Qt.Horizontal) 87 self.overlaySlider.setTickPosition(QtGui.QSlider.NoTicks) 88 self.overlaySlider.setObjectName("overlaySlider") 89 self.label = QtGui.QLabel(Dialog) 90 self.label.setGeometry(QtCore.QRect(0,0,430,72)) 91 self.label.setPixmap(QtGui.QPixmap(":/liveusb-header.png")) 92 self.label.setObjectName("label") 93 94 self.retranslateUi(Dialog) 95 QtCore.QMetaObject.connectSlotsByName(Dialog)
96
97 - def retranslateUi(self, Dialog):
98 Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", _("Fedora LiveUSB Creator"), None, QtGui.QApplication.UnicodeUTF8)) 99 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)) 100 self.startButton.setText(QtGui.QApplication.translate("Dialog", _("Create Live USB"), None, QtGui.QApplication.UnicodeUTF8)) 101 self.textEdit.setWhatsThis(QtGui.QApplication.translate("Dialog", _("This is the status console, where all messages get written to."), None, QtGui.QApplication.UnicodeUTF8)) 102 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)) 103 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)) 104 self.downloadGroup.setTitle(QtGui.QApplication.translate("Dialog", _("Download Fedora"), None, QtGui.QApplication.UnicodeUTF8)) 105 self.label_2.setText(QtGui.QApplication.translate("Dialog", _("or"), None, QtGui.QApplication.UnicodeUTF8)) 106 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)) 107 self.groupBox.setTitle(QtGui.QApplication.translate("Dialog", _("Use existing Live CD"), None, QtGui.QApplication.UnicodeUTF8)) 108 self.isoBttn.setText(QtGui.QApplication.translate("Dialog", _("Browse"), None, QtGui.QApplication.UnicodeUTF8)) 109 self.isoBttn.setShortcut(QtGui.QApplication.translate("Dialog", "Alt+B", None, QtGui.QApplication.UnicodeUTF8)) 110 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)) 111 self.groupBox_2.setTitle(QtGui.QApplication.translate("Dialog", "Target Device", None, QtGui.QApplication.UnicodeUTF8)) 112 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)) 113 self.overlayTitle.setTitle(QtGui.QApplication.translate("Dialog", _("Persistent Storage (0 Mb)"), None, QtGui.QApplication.UnicodeUTF8))
114 115 import resources_rc 116