aboutsummaryrefslogtreecommitdiffstats
path: root/mageiaSync/mageiaSyncUI.py
diff options
context:
space:
mode:
authordaviddavid <geiger.david68210@gmail.com>2015-03-01 09:32:43 +0100
committerPapoteur <papoteur@mageialinux-online.org>2015-03-25 15:55:37 +0100
commitbd67303adf12e5be8f2caf1b18c842b5754272f6 (patch)
treec708d91f1d5ead61fe281bba0f6eb6f78e5b3930 /mageiaSync/mageiaSyncUI.py
parent67094f1b283010064e80fd22586b228c71d0b787 (diff)
downloadMageiaSync-bd67303adf12e5be8f2caf1b18c842b5754272f6.tar
MageiaSync-bd67303adf12e5be8f2caf1b18c842b5754272f6.tar.gz
MageiaSync-bd67303adf12e5be8f2caf1b18c842b5754272f6.tar.bz2
MageiaSync-bd67303adf12e5be8f2caf1b18c842b5754272f6.tar.xz
MageiaSync-bd67303adf12e5be8f2caf1b18c842b5754272f6.zip
New release 0.1.4
Sur la branche master Modifications qui seront validées : modifié : CHANGELOG Replace remote list with table view
Diffstat (limited to 'mageiaSync/mageiaSyncUI.py')
-rw-r--r--mageiaSync/mageiaSyncUI.py128
1 files changed, 74 insertions, 54 deletions
diff --git a/mageiaSync/mageiaSyncUI.py b/mageiaSync/mageiaSyncUI.py
index 83ba21d..53c6f10 100644
--- a/mageiaSync/mageiaSyncUI.py
+++ b/mageiaSync/mageiaSyncUI.py
@@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'mageiaSyncUI.ui'
#
-# Created: Wed Feb 18 22:05:27 2015
+# Created: Mon Mar 23 22:38:56 2015
# by: PyQt5 UI code generator 5.1.1
#
# WARNING! All changes made in this file will be lost!
@@ -15,32 +15,26 @@ class Ui_mainWindow(object):
mainWindow.resize(820, 587)
mainWindow.setWindowTitle("MageiaSync v0.1.4")
icon = QtGui.QIcon()
- icon.addPixmap(QtGui.QPixmap("/usr/share/icons/hicolor/scalable/apps/mageiasync.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
+ icon.addPixmap(QtGui.QPixmap("../../../../usr/share/icons/hicolor/scalable/apps/mageiasync.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
mainWindow.setWindowIcon(icon)
mainWindow.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
self.centralwidget = QtWidgets.QWidget(mainWindow)
self.centralwidget.setObjectName("centralwidget")
- self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
- self.verticalLayout.setObjectName("verticalLayout")
- self.remoteDirLabel = QtWidgets.QLabel(self.centralwidget)
- self.remoteDirLabel.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
- self.remoteDirLabel.setObjectName("remoteDirLabel")
- self.verticalLayout.addWidget(self.remoteDirLabel)
- self.selectAll = QtWidgets.QPushButton(self.centralwidget)
- self.selectAll.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
- self.selectAll.setObjectName("selectAll")
- self.verticalLayout.addWidget(self.selectAll)
- self.listIsos = QtWidgets.QListWidget(self.centralwidget)
+ self.listIsos = QtWidgets.QTableView(self.centralwidget)
+ self.listIsos.setGeometry(QtCore.QRect(12, 50, 796, 131))
+ self.listIsos.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
self.listIsos.setAlternatingRowColors(True)
self.listIsos.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection)
- self.listIsos.setModelColumn(0)
+ self.listIsos.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
+ self.listIsos.setGridStyle(QtCore.Qt.DotLine)
self.listIsos.setObjectName("listIsos")
- self.verticalLayout.addWidget(self.listIsos)
+ self.listIsos.verticalHeader().setVisible(False)
self.localDirLabel = QtWidgets.QLabel(self.centralwidget)
+ self.localDirLabel.setGeometry(QtCore.QRect(12, 189, 119, 19))
self.localDirLabel.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
self.localDirLabel.setObjectName("localDirLabel")
- self.verticalLayout.addWidget(self.localDirLabel)
self.localList = QtWidgets.QTableView(self.centralwidget)
+ self.localList.setGeometry(QtCore.QRect(12, 216, 796, 96))
self.localList.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
self.localList.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
self.localList.setAlternatingRowColors(True)
@@ -49,59 +43,78 @@ class Ui_mainWindow(object):
self.localList.setGridStyle(QtCore.Qt.DotLine)
self.localList.setObjectName("localList")
self.localList.verticalHeader().setVisible(False)
- self.verticalLayout.addWidget(self.localList)
- self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
+ self.label = QtWidgets.QLabel(self.centralwidget)
+ self.label.setGeometry(QtCore.QRect(12, 366, 52, 19))
+ self.label.setObjectName("label")
+ self.lvText = QtWidgets.QTextEdit(self.centralwidget)
+ self.lvText.setGeometry(QtCore.QRect(12, 393, 796, 95))
+ self.lvText.setReadOnly(True)
+ self.lvText.setObjectName("lvText")
+ self.layoutWidget = QtWidgets.QWidget(self.centralwidget)
+ self.layoutWidget.setGeometry(QtCore.QRect(12, 496, 791, 31))
+ self.layoutWidget.setObjectName("layoutWidget")
+ self.horizontalLayout = QtWidgets.QHBoxLayout(self.layoutWidget)
+ self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
+ self.horizontalLayout.setObjectName("horizontalLayout")
+ self.syncGo = QtWidgets.QPushButton(self.layoutWidget)
+ self.syncGo.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
+ self.syncGo.setObjectName("syncGo")
+ self.horizontalLayout.addWidget(self.syncGo)
+ self.stop = QtWidgets.QPushButton(self.layoutWidget)
+ self.stop.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
+ self.stop.setObjectName("stop")
+ self.horizontalLayout.addWidget(self.stop)
+ self.quit = QtWidgets.QPushButton(self.layoutWidget)
+ self.quit.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
+ self.quit.setObjectName("quit")
+ self.horizontalLayout.addWidget(self.quit)
+ self.horizontalLayoutWidget = QtWidgets.QWidget(self.centralwidget)
+ self.horizontalLayoutWidget.setGeometry(QtCore.QRect(12, 12, 791, 31))
+ self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
+ self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget)
+ self.horizontalLayout_3.setSizeConstraint(QtWidgets.QLayout.SetFixedSize)
+ self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
+ self.horizontalLayout_3.setObjectName("horizontalLayout_3")
+ self.remoteDirLabel = QtWidgets.QLabel(self.horizontalLayoutWidget)
+ self.remoteDirLabel.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
+ self.remoteDirLabel.setObjectName("remoteDirLabel")
+ self.horizontalLayout_3.addWidget(self.remoteDirLabel)
+ self.selectAll = QtWidgets.QPushButton(self.horizontalLayoutWidget)
+ self.selectAll.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
+ self.selectAll.setObjectName("selectAll")
+ self.horizontalLayout_3.addWidget(self.selectAll)
+ self.layoutWidget1 = QtWidgets.QWidget(self.centralwidget)
+ self.layoutWidget1.setGeometry(QtCore.QRect(12, 320, 791, 38))
+ self.layoutWidget1.setObjectName("layoutWidget1")
+ self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.layoutWidget1)
self.horizontalLayout_2.setContentsMargins(-1, -1, -1, 9)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
- self.IprogressBar = QtWidgets.QProgressBar(self.centralwidget)
+ self.IprogressBar = QtWidgets.QProgressBar(self.layoutWidget1)
self.IprogressBar.setEnabled(True)
self.IprogressBar.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
self.IprogressBar.setProperty("value", 24)
self.IprogressBar.setObjectName("IprogressBar")
self.horizontalLayout_2.addWidget(self.IprogressBar)
- self.Lsize = QtWidgets.QLabel(self.centralwidget)
+ self.Lsize = QtWidgets.QLabel(self.layoutWidget1)
self.Lsize.setObjectName("Lsize")
self.horizontalLayout_2.addWidget(self.Lsize)
- self.speedLCD = QtWidgets.QLCDNumber(self.centralwidget)
+ self.speedLCD = QtWidgets.QLCDNumber(self.layoutWidget1)
self.speedLCD.setObjectName("speedLCD")
self.horizontalLayout_2.addWidget(self.speedLCD)
- self.label_2 = QtWidgets.QLabel(self.centralwidget)
+ self.label_2 = QtWidgets.QLabel(self.layoutWidget1)
self.label_2.setObjectName("label_2")
self.horizontalLayout_2.addWidget(self.label_2)
- self.label_3 = QtWidgets.QLabel(self.centralwidget)
+ self.label_3 = QtWidgets.QLabel(self.layoutWidget1)
self.label_3.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
self.label_3.setObjectName("label_3")
self.horizontalLayout_2.addWidget(self.label_3)
- self.timeRemaining = QtWidgets.QTimeEdit(self.centralwidget)
+ self.timeRemaining = QtWidgets.QTimeEdit(self.layoutWidget1)
self.timeRemaining.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
self.timeRemaining.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.timeRemaining.setReadOnly(True)
self.timeRemaining.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons)
self.timeRemaining.setObjectName("timeRemaining")
self.horizontalLayout_2.addWidget(self.timeRemaining)
- self.verticalLayout.addLayout(self.horizontalLayout_2)
- self.horizontalLayout = QtWidgets.QHBoxLayout()
- self.horizontalLayout.setObjectName("horizontalLayout")
- self.syncGo = QtWidgets.QPushButton(self.centralwidget)
- self.syncGo.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
- self.syncGo.setObjectName("syncGo")
- self.horizontalLayout.addWidget(self.syncGo)
- self.stop = QtWidgets.QPushButton(self.centralwidget)
- self.stop.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
- self.stop.setObjectName("stop")
- self.horizontalLayout.addWidget(self.stop)
- self.quit = QtWidgets.QPushButton(self.centralwidget)
- self.quit.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
- self.quit.setObjectName("quit")
- self.horizontalLayout.addWidget(self.quit)
- self.verticalLayout.addLayout(self.horizontalLayout)
- self.label = QtWidgets.QLabel(self.centralwidget)
- self.label.setObjectName("label")
- self.verticalLayout.addWidget(self.label)
- self.lvText = QtWidgets.QTextEdit(self.centralwidget)
- self.lvText.setReadOnly(True)
- self.lvText.setObjectName("lvText")
- self.verticalLayout.addWidget(self.lvText)
mainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(mainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 820, 24))
@@ -112,6 +125,8 @@ class Ui_mainWindow(object):
self.menuSync = QtWidgets.QMenu(self.menubar)
self.menuSync.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
self.menuSync.setObjectName("menuSync")
+ self.menuA_bout = QtWidgets.QMenu(self.menubar)
+ self.menuA_bout.setObjectName("menuA_bout")
mainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(mainWindow)
self.statusbar.setObjectName("statusbar")
@@ -126,38 +141,43 @@ class Ui_mainWindow(object):
self.actionRename.setObjectName("actionRename")
self.actionCheck = QtWidgets.QAction(mainWindow)
self.actionCheck.setObjectName("actionCheck")
+ self.actionAbout = QtWidgets.QAction(mainWindow)
+ self.actionAbout.setObjectName("actionAbout")
self.menuFile.addAction(self.actionUpdate)
self.menuFile.addAction(self.actionPreferences)
self.menuFile.addAction(self.actionQuit)
self.menuSync.addAction(self.actionRename)
self.menuSync.addAction(self.actionCheck)
+ self.menuA_bout.addAction(self.actionAbout)
self.menubar.addAction(self.menuFile.menuAction())
self.menubar.addAction(self.menuSync.menuAction())
+ self.menubar.addAction(self.menuA_bout.menuAction())
self.retranslateUi(mainWindow)
QtCore.QMetaObject.connectSlotsByName(mainWindow)
- mainWindow.setTabOrder(self.syncGo, self.listIsos)
- mainWindow.setTabOrder(self.listIsos, self.stop)
+ mainWindow.setTabOrder(self.syncGo, self.stop)
def retranslateUi(self, mainWindow):
_translate = QtCore.QCoreApplication.translate
+ self.localDirLabel.setText(_translate("mainWindow", "Local directory:"))
+ self.label.setText(_translate("mainWindow", "Report"))
+ self.syncGo.setText(_translate("mainWindow", "&Do sync"))
+ self.stop.setText(_translate("mainWindow", "&Stop"))
+ self.quit.setText(_translate("mainWindow", "&Quit"))
self.remoteDirLabel.setText(_translate("mainWindow", "Remote directory"))
self.selectAll.setText(_translate("mainWindow", "Select &All"))
- self.localDirLabel.setText(_translate("mainWindow", "Local directory:"))
self.Lsize.setText(_translate("mainWindow", "0 bytes"))
self.label_2.setText(_translate("mainWindow", "kB/s"))
self.label_3.setText(_translate("mainWindow", "Remaining:"))
self.timeRemaining.setDisplayFormat(_translate("mainWindow", "H:mm:ss"))
- self.syncGo.setText(_translate("mainWindow", "&Do sync"))
- self.stop.setText(_translate("mainWindow", "&Stop"))
- self.quit.setText(_translate("mainWindow", "&Quit"))
- self.label.setText(_translate("mainWindow", "Report"))
self.menuFile.setTitle(_translate("mainWindow", "&File"))
self.menuSync.setTitle(_translate("mainWindow", "S&ync"))
+ self.menuA_bout.setTitle(_translate("mainWindow", "&Help"))
self.actionUpdate.setText(_translate("mainWindow", "&Update list"))
self.actionQuit.setText(_translate("mainWindow", "&Quit"))
self.actionPreferences.setText(_translate("mainWindow", "&Preferences"))
self.actionRename.setText(_translate("mainWindow", "&Rename archives"))
self.actionCheck.setText(_translate("mainWindow", "&Check"))
self.actionCheck.setToolTip(_translate("mainWindow", "Check selected images"))
+ self.actionAbout.setText(_translate("mainWindow", "A&bout"))