Merge remote-tracking branch 'origin/master'

This commit is contained in:
nadiel 2015-01-12 14:45:11 +01:00
commit e9782dc754
18 changed files with 864 additions and 194 deletions

View File

@ -1,4 +1,4 @@
from src.v import Panneau, Borne, Camera from src.v import Ui_Panneau, Ui_Borne, Camera
from src.c import Teleporteur from src.c import Teleporteur
from src.m import Parking, Place from src.m import Parking, Place
@ -10,8 +10,8 @@ class Acces:
def __init__(self): def __init__(self):
self.__parking = Parking() self.__parking = Parking()
self.__camera = Camera() self.__camera = Camera()
self.__borne = Borne() self.__borne = Ui_Borne()
self.__panneau = Panneau() self.__panneau = Ui_Panneau()
def actionnerCamera(self): def actionnerCamera(self):
return self.__camera.donnerVoiture() return self.__camera.donnerVoiture()
@ -21,3 +21,4 @@ class Acces:
def lancerProcedureEntree(self,client): def lancerProcedureEntree(self,client):
self.__borne.afficher("Inserer votre carte ou valider") self.__borne.afficher("Inserer votre carte ou valider")

70
src/c/CreaParking.py Normal file
View File

@ -0,0 +1,70 @@
from PyQt4 import QtGui, QtCore
from src.m.Parking import Parking
from src.m.Place import ListeTypePlace
from src.v.MyQWidget import MyQWidget
from src.v.Ui_CreaParking import Ui_CreaParking
__author__ = 'sidya'
class CreaParking:
def __init__(self, main):
self.__main = main
self.__main.activity("Debut Creation Parking", self.__main.lvl.INFO)
self.__row = 0
self.__w = MyQWidget(self.__main)
self.__ui = Ui_CreaParking()
self.__ui.setupUi(self.__w)
#connect
self.__ui.btn_addRow.clicked.connect(self.addRow)
self.__ui.btn_rmRow.clicked.connect(self.rmRow)
self.__ui.btn_valider.clicked.connect(self.valider)
self.__ui.btn_annuler.clicked.connect(self.annuler)
#Validator
self.__ui.lineEdit_nbNiv.setValidator(QtGui.QRegExpValidator(QtCore.QRegExp('[0-9]*')))
self.showWindow()
def insererTable(self,hauteur,longueur,nombre) :
self.__typePlacesparNiveau.add(hauteur,longueur,nombre)
def addRow(self):
self.__ui.tableWidget.insertRow(self.__row)
self.__row += 1
def rmRow(self):
self.__ui.tableWidget.removeRow(self.__ui.tableWidget.rowCount()-1)
self.__row -= 1
def annuler(self):
self.__main.activity("Annulation Creation Parking", self.__main.lvl.INFO)
self.__w.hide()
self.__main.showWindow()
def valider(self):
try:
l = ListeTypePlace()
for i in range(0,self.__ui.tableWidget.rowCount()):
l.add(int(self.__ui.tableWidget.itemAt(i,0).text()), int(self.__ui.tableWidget.itemAt(i,1).text()),
int(self.__ui.tableWidget.itemAt(i,3).text()))
self.__main.addParking(Parking(
int(self.__ui.lineEdit_nbNiv.text()),
l,
self.__ui.lineEdit_nom.text()))
self.__main.activity("Ajout Parking : detail", self.__main.lvl.INFO)
self.__w.hide()
self.__main.showWindow()
except Exception as e :
self.__main.activity("Erreur lors de la creations du Parking \n" + str(e), self.__main.lvl.FAIL)
self.annuler()
def showWindow(self):
self.__w.show()
self.__child = None #supprime l'eventuel widget enfant
self.__w.focusWidget() # reprend le focus sur la fenetre

View File

@ -1,10 +1,15 @@
import sys import sys
from PyQt4 import QtGui from PyQt4 import QtGui, QtCore
from PyQt4.QtCore import QTranslator, QLocale
from src.v.MainWindow import Ui_MainWindow
from src.c.log.log import Log from src.c.log.log import Log
from src.c.log.log import lvl
from src.c.CreaParking import CreaParking
from src.m.Parking import Parking, ListeTypePlace from src.m.Parking import Parking, ListeTypePlace
from src.v.MyQMainWindow import MyQMainWindow
from src.v.Ui_MainWindow import Ui_MainWindow
__author__ = 'sidya' __author__ = 'sidya'
@ -12,7 +17,8 @@ __author__ = 'sidya'
class Main: class Main:
def __init__(self): def __init__(self):
# Init des logs # Init des logs
self.log = Log() self.lvl = lvl()
self.__log = Log()
l = ListeTypePlace() l = ListeTypePlace()
l.add(10, 11, 5) l.add(10, 11, 5)
@ -26,21 +32,27 @@ class Main:
app = QtGui.QApplication(sys.argv) app = QtGui.QApplication(sys.argv)
self.view = QtGui.QMainWindow()
self.ui = Ui_MainWindow()
self.ui.setupUi(self.view) self.__view = MyQMainWindow()
self.__ui = Ui_MainWindow()
self.__ui.setupUi(self.__view)
#connect
self.__ui.comboBox.currentIndexChanged['QString'].connect(self.selectParking)
self.__ui.btn_creer.clicked.connect(self.creerParking)
#Chargement activité #Chargement activité
self.loadLastActivity() self.loadLastActivity()
self.majListeParking()
self.view.show() self.showWindow()
sys.exit(app.exec_()) sys.exit(app.exec_())
def activity(self, msg, lvl): def activity(self, msg, lvl):
self.log.printL(msg, lvl) self.__log.printL(msg, lvl)
self.ui.addItemActivite(self.activite.readlines()[-1]) self.addItemActivite(self.activite.readlines()[-1])
def loadLastActivity(self): def loadLastActivity(self):
try: try:
@ -52,7 +64,41 @@ class Main:
liste = self.activite.readlines() liste = self.activite.readlines()
for l in [l[:-1] for l in liste[-11:-1]]: for l in [l[:-1] for l in liste[-11:-1]]:
self.ui.addItemActivite(l) self.addItemActivite(l)
def addItemActivite(self, line):
self.__ui.listWidget.addItem(line)
def majListeParking(self): def majListeParking(self):
self.ui.majListeParkings(self.__parkings) self.__ui.comboBox.clear()
self.__ui.comboBox.addItem("Selectionner un parking")
for p in self.__parkings:
self.__ui.comboBox.addItem(p.nom)
def selectParking(self):
self.__ui.nom.clear()
self.__ui.niveau.clear()
self.__ui.placesParNiveau.clear()
self.__ui.placesDispo.clear()
self.__ui.placesSuperAbo.clear()
if(self.__ui.comboBox.currentIndex() != 0) :
self.__ui.nom.setText(self.__parkings[self.__ui.comboBox.currentIndex()-1].nom)
self.__ui.niveau.setText(str(self.__parkings[self.__ui.comboBox.currentIndex()-1].nbNiveau))
self.__ui.placesParNiveau.setText(str(self.__parkings[self.__ui.comboBox.currentIndex()-1].nbPlacesParNiveau))
self.__ui.placesDispo.setText(str(self.__parkings[self.__ui.comboBox.currentIndex()-1].nbPlacesLibresParking))
self.__ui.placesSuperAbo.setText("lol")
def creerParking(self):
self.__view.hide()
self.__widgetCourant = CreaParking(self)
def addParking(self,parking):
self.__parkings.append(parking)
def showWindow(self):
self.majListeParking()
self.__view.show()
self.__widgetCourant = None #supprime eventuel widget
self.__view.focusWidget() # reprend le focus sur la fenetre principal

View File

@ -82,8 +82,6 @@ class Log(object):
pMsg = bcolors.DEBUG + str(pMsg) + bcolors.ENDC pMsg = bcolors.DEBUG + str(pMsg) + bcolors.ENDC
elif pLvl == lvl.INFO : elif pLvl == lvl.INFO :
pMsg = bcolors.INFO + str(pMsg) + bcolors.ENDC pMsg = bcolors.INFO + str(pMsg) + bcolors.ENDC
elif pLvl == lvl.SUCCESS :
pMsg = bcolors.SUCCESS + str(pMsg) + bcolors.ENDC
elif pLvl == lvl.WARNING : elif pLvl == lvl.WARNING :
pMsg = bcolors.WARNING + str(pMsg) + bcolors.ENDC pMsg = bcolors.WARNING + str(pMsg) + bcolors.ENDC
elif pLvl == lvl.FAIL : elif pLvl == lvl.FAIL :

View File

@ -8,6 +8,7 @@ class Parking:
Definie un parking Definie un parking
""" """
def __init__(self, nbNiv, typePlacesParNiv,nom): def __init__(self, nbNiv, typePlacesParNiv,nom):
self.typePlacesParNiv = typePlacesParNiv
self.__nom = nom self.__nom = nom
self.__nbPlacesParNiveau = typePlacesParNiv.nbPlaceTotal self.__nbPlacesParNiveau = typePlacesParNiv.nbPlaceTotal
self.__prix = 10 self.__prix = 10

View File

@ -93,6 +93,8 @@ class ListeTypePlace:
return self.l return self.l
class Placement: class Placement:
def __init__(self,debut,fin): def __init__(self,debut,fin):
self.debut = debut self.debut = debut

16
src/v/MyQMainWindow.py Normal file
View File

@ -0,0 +1,16 @@
from PyQt4 import QtGui
__author__ = 'sidya'
class MyQMainWindow(QtGui.QMainWindow):
def closeEvent(self, event):
result = QtGui.QMessageBox.question(self,
"Confirmer Fermeture...",
"Etes vous sur de vouloir quitter ?\n"
"(Toute modification non enregistrée seras perdu)",
QtGui.QMessageBox.Yes| QtGui.QMessageBox.No)
event.ignore()
if result == QtGui.QMessageBox.Yes:
event.accept()

21
src/v/MyQWidget.py Normal file
View File

@ -0,0 +1,21 @@
from PyQt4 import QtGui
__author__ = 'sidya'
class MyQWidget(QtGui.QWidget):
def __init__(self, main):
super(MyQWidget, self).__init__()
self.__main = main
def closeEvent(self, event):
result = QtGui.QMessageBox.question(self,
"Confirmer Fermeture...",
"Etes vous sur de vouloir abandonner ?\n"
"(Toute modification non enregistrée seras perdu)",
QtGui.QMessageBox.Yes| QtGui.QMessageBox.No)
event.ignore()
if result == QtGui.QMessageBox.Yes:
event.accept()
self.__main.showWindow()

119
src/v/Ui_CreaParking.py Normal file
View File

@ -0,0 +1,119 @@
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'creationParking.ui'
#
# Created: Fri Dec 26 21:22:48 2014
# by: PyQt4 UI code generator 4.11.3
#
# 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_CreaParking(object):
def setupUi(self, CreaParking):
CreaParking.setObjectName(_fromUtf8("CreaParking"))
CreaParking.resize(400, 300)
self.layoutWidget = QtGui.QWidget(CreaParking)
self.layoutWidget.setGeometry(QtCore.QRect(90, 270, 201, 29))
self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.layoutWidget)
self.horizontalLayout_2.setMargin(0)
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.btn_annuler = QtGui.QPushButton(self.layoutWidget)
self.btn_annuler.setObjectName(_fromUtf8("btn_annuler"))
self.horizontalLayout_2.addWidget(self.btn_annuler)
self.btn_valider = QtGui.QPushButton(self.layoutWidget)
self.btn_valider.setObjectName(_fromUtf8("btn_valider"))
self.horizontalLayout_2.addWidget(self.btn_valider)
self.layoutWidget1 = QtGui.QWidget(CreaParking)
self.layoutWidget1.setGeometry(QtCore.QRect(60, 230, 275, 25))
self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
self.horizontalLayout_3 = QtGui.QHBoxLayout(self.layoutWidget1)
self.horizontalLayout_3.setMargin(0)
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
self.label_4 = QtGui.QLabel(self.layoutWidget1)
self.label_4.setObjectName(_fromUtf8("label_4"))
self.horizontalLayout_3.addWidget(self.label_4)
self.nbPlacesTotal = QtGui.QLabel(self.layoutWidget1)
self.nbPlacesTotal.setObjectName(_fromUtf8("nbPlacesTotal"))
self.horizontalLayout_3.addWidget(self.nbPlacesTotal)
self.tableWidget = QtGui.QTableWidget(CreaParking)
self.tableWidget.setGeometry(QtCore.QRect(10, 100, 301, 121))
self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
self.tableWidget.setColumnCount(3)
self.tableWidget.setRowCount(0)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(0, item)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(1, item)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(2, item)
self.btn_addRow = QtGui.QPushButton(CreaParking)
self.btn_addRow.setGeometry(QtCore.QRect(330, 120, 41, 27))
self.btn_addRow.setObjectName(_fromUtf8("btn_addRow"))
self.label_3 = QtGui.QLabel(CreaParking)
self.label_3.setGeometry(QtCore.QRect(50, 70, 135, 24))
self.label_3.setObjectName(_fromUtf8("label_3"))
self.btn_rmRow = QtGui.QPushButton(CreaParking)
self.btn_rmRow.setGeometry(QtCore.QRect(330, 160, 41, 27))
self.btn_rmRow.setObjectName(_fromUtf8("btn_rmRow"))
self.widget = QtGui.QWidget(CreaParking)
self.widget.setGeometry(QtCore.QRect(52, 12, 291, 56))
self.widget.setObjectName(_fromUtf8("widget"))
self.horizontalLayout = QtGui.QHBoxLayout(self.widget)
self.horizontalLayout.setMargin(0)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.verticalLayout = QtGui.QVBoxLayout()
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.label = QtGui.QLabel(self.widget)
self.label.setObjectName(_fromUtf8("label"))
self.verticalLayout.addWidget(self.label)
self.label_2 = QtGui.QLabel(self.widget)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.verticalLayout.addWidget(self.label_2)
self.horizontalLayout.addLayout(self.verticalLayout)
self.verticalLayout_2 = QtGui.QVBoxLayout()
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.lineEdit_nom = QtGui.QLineEdit(self.widget)
self.lineEdit_nom.setObjectName(_fromUtf8("lineEdit_nom"))
self.verticalLayout_2.addWidget(self.lineEdit_nom)
self.lineEdit_nbNiv = QtGui.QLineEdit(self.widget)
self.lineEdit_nbNiv.setObjectName(_fromUtf8("lineEdit_nbNiv"))
self.verticalLayout_2.addWidget(self.lineEdit_nbNiv)
self.horizontalLayout.addLayout(self.verticalLayout_2)
self.retranslateUi(CreaParking)
QtCore.QMetaObject.connectSlotsByName(CreaParking)
def retranslateUi(self, CreaParking):
CreaParking.setWindowTitle(_translate("CreaParking", "Creation Parking", None))
self.btn_annuler.setText(_translate("CreaParking", "Annuler", None))
self.btn_valider.setText(_translate("CreaParking", "Valider", None))
self.label_4.setText(_translate("CreaParking", "Nombre Places Total : ", None))
self.nbPlacesTotal.setText(_translate("CreaParking", "TextLabel", None))
item = self.tableWidget.horizontalHeaderItem(0)
item.setText(_translate("CreaParking", "Hauteur", None))
item = self.tableWidget.horizontalHeaderItem(1)
item.setText(_translate("CreaParking", "Longueur", None))
item = self.tableWidget.horizontalHeaderItem(2)
item.setText(_translate("CreaParking", "Nombre", None))
self.btn_addRow.setText(_translate("CreaParking", "+", None))
self.label_3.setText(_translate("CreaParking", "Places par niveau :", None))
self.btn_rmRow.setText(_translate("CreaParking", "-", None))
self.label.setText(_translate("CreaParking", "Nom :", None))
self.label_2.setText(_translate("CreaParking", "Nombre de niveaux :", None))

View File

@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'main.ui' # Form implementation generated from reading ui file 'main.ui'
# #
# Created: Tue Dec 23 22:14:01 2014 # Created: Fri Dec 26 17:32:35 2014
# by: PyQt4 UI code generator 4.11.3 # by: PyQt4 UI code generator 4.11.3
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!
@ -65,40 +65,40 @@ class Ui_MainWindow(object):
self.label_17 = QtGui.QLabel(self.tab_2) self.label_17 = QtGui.QLabel(self.tab_2)
self.label_17.setObjectName(_fromUtf8("label_17")) self.label_17.setObjectName(_fromUtf8("label_17"))
self.formLayout_3.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_17) self.formLayout_3.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_17)
self.label_2 = QtGui.QLabel(self.tab_2) self.nom = QtGui.QLabel(self.tab_2)
self.label_2.setObjectName(_fromUtf8("label_2")) self.nom.setObjectName(_fromUtf8("nom"))
self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole, self.label_2) self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole, self.nom)
self.label_3 = QtGui.QLabel(self.tab_2) self.niveau = QtGui.QLabel(self.tab_2)
self.label_3.setObjectName(_fromUtf8("label_3")) self.niveau.setObjectName(_fromUtf8("niveau"))
self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.label_3) self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.niveau)
self.label_4 = QtGui.QLabel(self.tab_2) self.placesParNiveau = QtGui.QLabel(self.tab_2)
self.label_4.setObjectName(_fromUtf8("label_4")) self.placesParNiveau.setObjectName(_fromUtf8("placesParNiveau"))
self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole, self.label_4) self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole, self.placesParNiveau)
self.label_5 = QtGui.QLabel(self.tab_2) self.placesDispo = QtGui.QLabel(self.tab_2)
self.label_5.setObjectName(_fromUtf8("label_5")) self.placesDispo.setObjectName(_fromUtf8("placesDispo"))
self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole, self.label_5) self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole, self.placesDispo)
self.label_6 = QtGui.QLabel(self.tab_2) self.placesSuperAbo = QtGui.QLabel(self.tab_2)
self.label_6.setObjectName(_fromUtf8("label_6")) self.placesSuperAbo.setObjectName(_fromUtf8("placesSuperAbo"))
self.formLayout_3.setWidget(4, QtGui.QFormLayout.FieldRole, self.label_6) self.formLayout_3.setWidget(4, QtGui.QFormLayout.FieldRole, self.placesSuperAbo)
self.verticalLayout.addLayout(self.formLayout_3) self.verticalLayout.addLayout(self.formLayout_3)
self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.pushButton_4 = QtGui.QPushButton(self.tab_2) self.btn_details = QtGui.QPushButton(self.tab_2)
self.pushButton_4.setObjectName(_fromUtf8("pushButton_4")) self.btn_details.setObjectName(_fromUtf8("btn_details"))
self.horizontalLayout.addWidget(self.pushButton_4) self.horizontalLayout.addWidget(self.btn_details)
self.pushButton_3 = QtGui.QPushButton(self.tab_2) self.btn_borne = QtGui.QPushButton(self.tab_2)
self.pushButton_3.setObjectName(_fromUtf8("pushButton_3")) self.btn_borne.setObjectName(_fromUtf8("btn_borne"))
self.horizontalLayout.addWidget(self.pushButton_3) self.horizontalLayout.addWidget(self.btn_borne)
self.verticalLayout.addLayout(self.horizontalLayout) self.verticalLayout.addLayout(self.horizontalLayout)
self.pushButton_5 = QtGui.QPushButton(self.tab_2) self.btn_creer = QtGui.QPushButton(self.tab_2)
self.pushButton_5.setObjectName(_fromUtf8("pushButton_5")) self.btn_creer.setObjectName(_fromUtf8("btn_creer"))
self.verticalLayout.addWidget(self.pushButton_5) self.verticalLayout.addWidget(self.btn_creer)
self.pushButton_2 = QtGui.QPushButton(self.tab_2) self.btn_modifier = QtGui.QPushButton(self.tab_2)
self.pushButton_2.setObjectName(_fromUtf8("pushButton_2")) self.btn_modifier.setObjectName(_fromUtf8("btn_modifier"))
self.verticalLayout.addWidget(self.pushButton_2) self.verticalLayout.addWidget(self.btn_modifier)
self.pushButton = QtGui.QPushButton(self.tab_2) self.btn_supprimer = QtGui.QPushButton(self.tab_2)
self.pushButton.setObjectName(_fromUtf8("pushButton")) self.btn_supprimer.setObjectName(_fromUtf8("btn_supprimer"))
self.verticalLayout.addWidget(self.pushButton) self.verticalLayout.addWidget(self.btn_supprimer)
self.tabWidget.addTab(self.tab_2, _fromUtf8("")) self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
self.tab_5 = QtGui.QWidget() self.tab_5 = QtGui.QWidget()
self.tab_5.setObjectName(_fromUtf8("tab_5")) self.tab_5.setObjectName(_fromUtf8("tab_5"))
@ -159,19 +159,19 @@ class Ui_MainWindow(object):
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "Activite", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "Activite", None))
self.label_13.setText(_translate("MainWindow", "Nom :", None)) self.label_13.setText(_translate("MainWindow", "Nom :", None))
self.label_14.setText(_translate("MainWindow", "Niveau :", None)) self.label_14.setText(_translate("MainWindow", "Niveau :", None))
self.label_15.setText(_translate("MainWindow", "Place / niveau :", None)) self.label_15.setText(_translate("MainWindow", "Places / niveau :", None))
self.label_16.setText(_translate("MainWindow", "Place disponible :", None)) self.label_16.setText(_translate("MainWindow", "Places disponible :", None))
self.label_17.setText(_translate("MainWindow", "Place Reserve Super Abo : ", None)) self.label_17.setText(_translate("MainWindow", "Places Reserve Super Abo : ", None))
self.label_2.setText(_translate("MainWindow", "TextLabel", None)) self.nom.setText(_translate("MainWindow", "TextLabel", None))
self.label_3.setText(_translate("MainWindow", "TextLabel", None)) self.niveau.setText(_translate("MainWindow", "TextLabel", None))
self.label_4.setText(_translate("MainWindow", "TextLabel", None)) self.placesParNiveau.setText(_translate("MainWindow", "TextLabel", None))
self.label_5.setText(_translate("MainWindow", "TextLabel", None)) self.placesDispo.setText(_translate("MainWindow", "TextLabel", None))
self.label_6.setText(_translate("MainWindow", "TextLabel", None)) self.placesSuperAbo.setText(_translate("MainWindow", "TextLabel", None))
self.pushButton_4.setText(_translate("MainWindow", "Details Places", None)) self.btn_details.setText(_translate("MainWindow", "Details Places", None))
self.pushButton_3.setText(_translate("MainWindow", "Borne", None)) self.btn_borne.setText(_translate("MainWindow", "Borne", None))
self.pushButton_5.setText(_translate("MainWindow", "Créer", None)) self.btn_creer.setText(_translate("MainWindow", "Créer", None))
self.pushButton_2.setText(_translate("MainWindow", "Modifier", None)) self.btn_modifier.setText(_translate("MainWindow", "Modifier", None))
self.pushButton.setText(_translate("MainWindow", "Supprimer", None)) self.btn_supprimer.setText(_translate("MainWindow", "Supprimer", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "Parkings", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "Parkings", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5), _translate("MainWindow", "Membres", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5), _translate("MainWindow", "Membres", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("MainWindow", "Services", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("MainWindow", "Services", None))
@ -187,30 +187,3 @@ class Ui_MainWindow(object):
self.actionQuitter.setText(_translate("MainWindow", "Quitter", None)) self.actionQuitter.setText(_translate("MainWindow", "Quitter", None))
self.action.setText(_translate("MainWindow", "?", None)) self.action.setText(_translate("MainWindow", "?", None))
################################NOT GENERATED####################################################
def addItemActivite(self, line):
self.log.addItem(line)
def majListeParkings(self, parkings):
self.__parkings = parkings
self.comboBox.currentIndexChanged['QString'].connect(self.selectParking)
self.comboBox.clear()
self.comboBox.addItem("Selectionner un parking")
for p in parkings:
self.comboBox.addItem(p.nom)
def selectParking(self):
self.label_2.clear()
self.label_3.clear()
self.label_4.clear()
self.label_5.clear()
self.label_6.clear()
if(self.comboBox.currentIndex() != 0) :
self.label_2.setText(self.__parkings[self.comboBox.currentIndex()-1].nom)
self.label_3.setText(str(self.__parkings[self.comboBox.currentIndex()-1].nbNiveau))
self.label_4.setText(str(self.__parkings[self.comboBox.currentIndex()-1].nbPlacesParNiveau))
self.label_5.setText(str(self.__parkings[self.comboBox.currentIndex()-1].nbPlacesLibresParking))
self.label_6.setText("lol")

110
ui/borne.py Normal file
View File

@ -0,0 +1,110 @@
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'borne.ui'
#
# Created: Fri Dec 26 17:48:52 2014
# by: PyQt4 UI code generator 4.11.3
#
# 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_Form(object):
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(400, 412)
self.btn_Voiture = QtGui.QPushButton(Form)
self.btn_Voiture.setGeometry(QtCore.QRect(90, 40, 211, 27))
self.btn_Voiture.setObjectName(_fromUtf8("btn_Voiture"))
self.lcdNumber = QtGui.QLCDNumber(Form)
self.lcdNumber.setGeometry(QtCore.QRect(20, 80, 351, 31))
self.lcdNumber.setObjectName(_fromUtf8("lcdNumber"))
self.nomParking = QtGui.QLabel(Form)
self.nomParking.setGeometry(QtCore.QRect(170, 10, 151, 20))
self.nomParking.setObjectName(_fromUtf8("nomParking"))
self.layoutWidget = QtGui.QWidget(Form)
self.layoutWidget.setGeometry(QtCore.QRect(60, 300, 272, 85))
self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
self.horizontalLayout = QtGui.QHBoxLayout(self.layoutWidget)
self.horizontalLayout.setMargin(0)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.verticalLayout_2 = QtGui.QVBoxLayout()
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.label = QtGui.QLabel(self.layoutWidget)
self.label.setObjectName(_fromUtf8("label"))
self.verticalLayout_2.addWidget(self.label)
self.lineEdit_id = QtGui.QLineEdit(self.layoutWidget)
self.lineEdit_id.setObjectName(_fromUtf8("lineEdit_id"))
self.verticalLayout_2.addWidget(self.lineEdit_id)
self.btn_validerID = QtGui.QPushButton(self.layoutWidget)
self.btn_validerID.setObjectName(_fromUtf8("btn_validerID"))
self.verticalLayout_2.addWidget(self.btn_validerID)
self.horizontalLayout.addLayout(self.verticalLayout_2)
self.verticalLayout = QtGui.QVBoxLayout()
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.label_2 = QtGui.QLabel(self.layoutWidget)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.verticalLayout.addWidget(self.label_2)
self.btn_validerNonMembre = QtGui.QPushButton(self.layoutWidget)
self.btn_validerNonMembre.setObjectName(_fromUtf8("btn_validerNonMembre"))
self.verticalLayout.addWidget(self.btn_validerNonMembre)
self.btn_cb = QtGui.QPushButton(self.layoutWidget)
self.btn_cb.setObjectName(_fromUtf8("btn_cb"))
self.verticalLayout.addWidget(self.btn_cb)
self.horizontalLayout.addLayout(self.verticalLayout)
self.layoutWidget1 = QtGui.QWidget(Form)
self.layoutWidget1.setGeometry(QtCore.QRect(70, 130, 261, 91))
self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.layoutWidget1)
self.horizontalLayout_2.setMargin(0)
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.verticalLayout_5 = QtGui.QVBoxLayout()
self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
self.btn_precedent = QtGui.QPushButton(self.layoutWidget1)
self.btn_precedent.setObjectName(_fromUtf8("btn_precedent"))
self.verticalLayout_5.addWidget(self.btn_precedent)
self.btn_annuler = QtGui.QPushButton(self.layoutWidget1)
self.btn_annuler.setObjectName(_fromUtf8("btn_annuler"))
self.verticalLayout_5.addWidget(self.btn_annuler)
self.horizontalLayout_2.addLayout(self.verticalLayout_5)
self.verticalLayout_4 = QtGui.QVBoxLayout()
self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
self.btn_suivant = QtGui.QPushButton(self.layoutWidget1)
self.btn_suivant.setObjectName(_fromUtf8("btn_suivant"))
self.verticalLayout_4.addWidget(self.btn_suivant)
self.btn_valider = QtGui.QPushButton(self.layoutWidget1)
self.btn_valider.setObjectName(_fromUtf8("btn_valider"))
self.verticalLayout_4.addWidget(self.btn_valider)
self.horizontalLayout_2.addLayout(self.verticalLayout_4)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
Form.setWindowTitle(_translate("Form", "Borne", None))
self.btn_Voiture.setText(_translate("Form", "Detection Arrivee Voiture", None))
self.nomParking.setText(_translate("Form", "NomParking", None))
self.label.setText(_translate("Form", "Carte Membre ID ", None))
self.btn_validerID.setText(_translate("Form", "Valider", None))
self.label_2.setText(_translate("Form", "Non membre", None))
self.btn_validerNonMembre.setText(_translate("Form", "Valider", None))
self.btn_cb.setText(_translate("Form", "PayerAvecCarte", None))
self.btn_precedent.setText(_translate("Form", "<", None))
self.btn_annuler.setText(_translate("Form", "Annuler", None))
self.btn_suivant.setText(_translate("Form", ">", None))
self.btn_valider.setText(_translate("Form", "Valider", None))

View File

@ -11,9 +11,9 @@
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Form</string> <string>Borne</string>
</property> </property>
<widget class="QPushButton" name="pushButton"> <widget class="QPushButton" name="btn_Voiture">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>90</x> <x>90</x>
@ -36,7 +36,7 @@
</rect> </rect>
</property> </property>
</widget> </widget>
<widget class="QLabel" name="label_4"> <widget class="QLabel" name="nomParking">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>170</x> <x>170</x>
@ -49,7 +49,7 @@
<string>NomParking</string> <string>NomParking</string>
</property> </property>
</widget> </widget>
<widget class="QWidget" name=""> <widget class="QWidget" name="layoutWidget">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>60</x> <x>60</x>
@ -69,10 +69,10 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLineEdit" name="lineEdit"/> <widget class="QLineEdit" name="lineEdit_id"/>
</item> </item>
<item> <item>
<widget class="QPushButton" name="pushButton_2"> <widget class="QPushButton" name="btn_validerID">
<property name="text"> <property name="text">
<string>Valider</string> <string>Valider</string>
</property> </property>
@ -90,14 +90,14 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="pushButton_3"> <widget class="QPushButton" name="btn_validerNonMembre">
<property name="text"> <property name="text">
<string>Valider</string> <string>Valider</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="pushButton_4"> <widget class="QPushButton" name="btn_cb">
<property name="text"> <property name="text">
<string>PayerAvecCarte</string> <string>PayerAvecCarte</string>
</property> </property>
@ -107,7 +107,7 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name=""> <widget class="QWidget" name="layoutWidget">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>70</x> <x>70</x>
@ -120,14 +120,14 @@
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_5"> <layout class="QVBoxLayout" name="verticalLayout_5">
<item> <item>
<widget class="QPushButton" name="pushButton_7"> <widget class="QPushButton" name="btn_precedent">
<property name="text"> <property name="text">
<string>&lt;</string> <string>&lt;</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="pushButton_10"> <widget class="QPushButton" name="btn_annuler">
<property name="text"> <property name="text">
<string>Annuler</string> <string>Annuler</string>
</property> </property>
@ -138,14 +138,14 @@
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_4"> <layout class="QVBoxLayout" name="verticalLayout_4">
<item> <item>
<widget class="QPushButton" name="pushButton_8"> <widget class="QPushButton" name="btn_suivant">
<property name="text"> <property name="text">
<string>&gt;</string> <string>&gt;</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="pushButton_9"> <widget class="QPushButton" name="btn_valider">
<property name="text"> <property name="text">
<string>Valider</string> <string>Valider</string>
</property> </property>
@ -155,23 +155,11 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<zorder>pushButton</zorder> <zorder>layoutWidget</zorder>
<zorder>label</zorder> <zorder>btn_Voiture</zorder>
<zorder>lineEdit</zorder>
<zorder>pushButton_2</zorder>
<zorder>pushButton_3</zorder>
<zorder>label_2</zorder>
<zorder>lcdNumber</zorder> <zorder>lcdNumber</zorder>
<zorder></zorder> <zorder>layoutWidget</zorder>
<zorder>label_2</zorder> <zorder>nomParking</zorder>
<zorder>pushButton_3</zorder>
<zorder>pushButton_4</zorder>
<zorder></zorder>
<zorder>pushButton_7</zorder>
<zorder>pushButton_8</zorder>
<zorder>pushButton_9</zorder>
<zorder>pushButton_10</zorder>
<zorder>label_4</zorder>
</widget> </widget>
<resources/> <resources/>
<connections/> <connections/>

119
ui/creaParking.py Normal file
View File

@ -0,0 +1,119 @@
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'creationParking.ui'
#
# Created: Fri Dec 26 21:22:48 2014
# by: PyQt4 UI code generator 4.11.3
#
# 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_CreaParking(object):
def setupUi(self, CreaParking):
CreaParking.setObjectName(_fromUtf8("CreaParking"))
CreaParking.resize(400, 300)
self.layoutWidget = QtGui.QWidget(CreaParking)
self.layoutWidget.setGeometry(QtCore.QRect(90, 270, 201, 29))
self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.layoutWidget)
self.horizontalLayout_2.setMargin(0)
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.btn_annuler = QtGui.QPushButton(self.layoutWidget)
self.btn_annuler.setObjectName(_fromUtf8("btn_annuler"))
self.horizontalLayout_2.addWidget(self.btn_annuler)
self.btn_valider = QtGui.QPushButton(self.layoutWidget)
self.btn_valider.setObjectName(_fromUtf8("btn_valider"))
self.horizontalLayout_2.addWidget(self.btn_valider)
self.layoutWidget1 = QtGui.QWidget(CreaParking)
self.layoutWidget1.setGeometry(QtCore.QRect(60, 230, 275, 25))
self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
self.horizontalLayout_3 = QtGui.QHBoxLayout(self.layoutWidget1)
self.horizontalLayout_3.setMargin(0)
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
self.label_4 = QtGui.QLabel(self.layoutWidget1)
self.label_4.setObjectName(_fromUtf8("label_4"))
self.horizontalLayout_3.addWidget(self.label_4)
self.nbPlacesTotal = QtGui.QLabel(self.layoutWidget1)
self.nbPlacesTotal.setObjectName(_fromUtf8("nbPlacesTotal"))
self.horizontalLayout_3.addWidget(self.nbPlacesTotal)
self.tableWidget = QtGui.QTableWidget(CreaParking)
self.tableWidget.setGeometry(QtCore.QRect(10, 100, 301, 121))
self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
self.tableWidget.setColumnCount(3)
self.tableWidget.setRowCount(0)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(0, item)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(1, item)
item = QtGui.QTableWidgetItem()
self.tableWidget.setHorizontalHeaderItem(2, item)
self.btn_addRow = QtGui.QPushButton(CreaParking)
self.btn_addRow.setGeometry(QtCore.QRect(330, 120, 41, 27))
self.btn_addRow.setObjectName(_fromUtf8("btn_addRow"))
self.label_3 = QtGui.QLabel(CreaParking)
self.label_3.setGeometry(QtCore.QRect(50, 70, 135, 24))
self.label_3.setObjectName(_fromUtf8("label_3"))
self.btn_rmRow = QtGui.QPushButton(CreaParking)
self.btn_rmRow.setGeometry(QtCore.QRect(330, 160, 41, 27))
self.btn_rmRow.setObjectName(_fromUtf8("btn_rmRow"))
self.widget = QtGui.QWidget(CreaParking)
self.widget.setGeometry(QtCore.QRect(52, 12, 291, 56))
self.widget.setObjectName(_fromUtf8("widget"))
self.horizontalLayout = QtGui.QHBoxLayout(self.widget)
self.horizontalLayout.setMargin(0)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.verticalLayout = QtGui.QVBoxLayout()
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.label = QtGui.QLabel(self.widget)
self.label.setObjectName(_fromUtf8("label"))
self.verticalLayout.addWidget(self.label)
self.label_2 = QtGui.QLabel(self.widget)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.verticalLayout.addWidget(self.label_2)
self.horizontalLayout.addLayout(self.verticalLayout)
self.verticalLayout_2 = QtGui.QVBoxLayout()
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
self.lineEdit_nom = QtGui.QLineEdit(self.widget)
self.lineEdit_nom.setObjectName(_fromUtf8("lineEdit_nom"))
self.verticalLayout_2.addWidget(self.lineEdit_nom)
self.lineEdit_nbNiv = QtGui.QLineEdit(self.widget)
self.lineEdit_nbNiv.setObjectName(_fromUtf8("lineEdit_nbNiv"))
self.verticalLayout_2.addWidget(self.lineEdit_nbNiv)
self.horizontalLayout.addLayout(self.verticalLayout_2)
self.retranslateUi(CreaParking)
QtCore.QMetaObject.connectSlotsByName(CreaParking)
def retranslateUi(self, CreaParking):
CreaParking.setWindowTitle(_translate("CreaParking", "Creation Parking", None))
self.btn_annuler.setText(_translate("CreaParking", "Annuler", None))
self.btn_valider.setText(_translate("CreaParking", "Valider", None))
self.label_4.setText(_translate("CreaParking", "Nombre Places Total : ", None))
self.nbPlacesTotal.setText(_translate("CreaParking", "TextLabel", None))
item = self.tableWidget.horizontalHeaderItem(0)
item.setText(_translate("CreaParking", "Hauteur", None))
item = self.tableWidget.horizontalHeaderItem(1)
item.setText(_translate("CreaParking", "Longueur", None))
item = self.tableWidget.horizontalHeaderItem(2)
item.setText(_translate("CreaParking", "Nombre", None))
self.btn_addRow.setText(_translate("CreaParking", "+", None))
self.label_3.setText(_translate("CreaParking", "Places par niveau :", None))
self.btn_rmRow.setText(_translate("CreaParking", "-", None))
self.label.setText(_translate("CreaParking", "Nom :", None))
self.label_2.setText(_translate("CreaParking", "Nombre de niveaux :", None))

175
ui/creationParking.ui Normal file
View File

@ -0,0 +1,175 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>CreaParking</class>
<widget class="QWidget" name="CreaParking">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Creation Parking</string>
</property>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>90</x>
<y>270</y>
<width>201</width>
<height>29</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QPushButton" name="btn_annuler">
<property name="text">
<string>Annuler</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btn_valider">
<property name="text">
<string>Valider</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>60</x>
<y>230</y>
<width>275</width>
<height>25</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>Nombre Places Total : </string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="nbPlacesTotal">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QTableWidget" name="tableWidget">
<property name="geometry">
<rect>
<x>10</x>
<y>100</y>
<width>301</width>
<height>121</height>
</rect>
</property>
<column>
<property name="text">
<string>Hauteur</string>
</property>
</column>
<column>
<property name="text">
<string>Longueur</string>
</property>
</column>
<column>
<property name="text">
<string>Nombre</string>
</property>
</column>
</widget>
<widget class="QPushButton" name="btn_addRow">
<property name="geometry">
<rect>
<x>330</x>
<y>120</y>
<width>41</width>
<height>27</height>
</rect>
</property>
<property name="text">
<string>+</string>
</property>
</widget>
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>50</x>
<y>70</y>
<width>135</width>
<height>24</height>
</rect>
</property>
<property name="text">
<string>Places par niveau :</string>
</property>
</widget>
<widget class="QPushButton" name="btn_rmRow">
<property name="geometry">
<rect>
<x>330</x>
<y>160</y>
<width>41</width>
<height>27</height>
</rect>
</property>
<property name="text">
<string>-</string>
</property>
</widget>
<widget class="QWidget" name="">
<property name="geometry">
<rect>
<x>52</x>
<y>12</y>
<width>291</width>
<height>56</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Nom :</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Nombre de niveaux :</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLineEdit" name="lineEdit_nom"/>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_nbNiv"/>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'main.ui' # Form implementation generated from reading ui file 'main.ui'
# #
# Created: Wed Dec 10 16:47:28 2014 # Created: Fri Dec 26 17:32:35 2014
# by: PyQt4 UI code generator 4.11.3 # by: PyQt4 UI code generator 4.11.3
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!
@ -26,7 +26,7 @@ except AttributeError:
class Ui_MainWindow(object): class Ui_MainWindow(object):
def setupUi(self, MainWindow): def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow")) MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(522, 412) MainWindow.resize(561, 479)
self.centralwidget = QtGui.QWidget(MainWindow) self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.tabWidget = QtGui.QTabWidget(self.centralwidget) self.tabWidget = QtGui.QTabWidget(self.centralwidget)
@ -37,72 +37,86 @@ class Ui_MainWindow(object):
self.label = QtGui.QLabel(self.tab) self.label = QtGui.QLabel(self.tab)
self.label.setGeometry(QtCore.QRect(40, 10, 61, 15)) self.label.setGeometry(QtCore.QRect(40, 10, 61, 15))
self.label.setObjectName(_fromUtf8("label")) self.label.setObjectName(_fromUtf8("label"))
self.log = QtGui.QListView(self.tab) self.listWidget = QtGui.QListWidget(self.tab)
self.log.setGeometry(QtCore.QRect(30, 40, 421, 241)) self.listWidget.setGeometry(QtCore.QRect(60, 50, 431, 261))
self.log.setObjectName(_fromUtf8("log")) self.listWidget.setObjectName(_fromUtf8("listWidget"))
self.tabWidget.addTab(self.tab, _fromUtf8("")) self.tabWidget.addTab(self.tab, _fromUtf8(""))
self.tab_2 = QtGui.QWidget() self.tab_2 = QtGui.QWidget()
self.tab_2.setObjectName(_fromUtf8("tab_2")) self.tab_2.setObjectName(_fromUtf8("tab_2"))
self.formLayoutWidget = QtGui.QWidget(self.tab_2) self.verticalLayout = QtGui.QVBoxLayout(self.tab_2)
self.formLayoutWidget.setGeometry(QtCore.QRect(100, 80, 311, 151)) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.formLayoutWidget.setObjectName(_fromUtf8("formLayoutWidget")) self.comboBox = QtGui.QComboBox(self.tab_2)
self.formLayout_3 = QtGui.QFormLayout(self.formLayoutWidget) self.comboBox.setObjectName(_fromUtf8("comboBox"))
self.formLayout_3.setMargin(0) self.verticalLayout.addWidget(self.comboBox)
self.formLayout_3 = QtGui.QFormLayout()
self.formLayout_3.setObjectName(_fromUtf8("formLayout_3")) self.formLayout_3.setObjectName(_fromUtf8("formLayout_3"))
self.label_13 = QtGui.QLabel(self.formLayoutWidget) self.label_13 = QtGui.QLabel(self.tab_2)
self.label_13.setObjectName(_fromUtf8("label_13")) self.label_13.setObjectName(_fromUtf8("label_13"))
self.formLayout_3.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_13) self.formLayout_3.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_13)
self.label_14 = QtGui.QLabel(self.formLayoutWidget) self.label_14 = QtGui.QLabel(self.tab_2)
self.label_14.setObjectName(_fromUtf8("label_14")) self.label_14.setObjectName(_fromUtf8("label_14"))
self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_14) self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_14)
self.lineEdit_11 = QtGui.QLineEdit(self.formLayoutWidget) self.label_15 = QtGui.QLabel(self.tab_2)
self.lineEdit_11.setObjectName(_fromUtf8("lineEdit_11"))
self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole, self.lineEdit_11)
self.lineEdit_12 = QtGui.QLineEdit(self.formLayoutWidget)
self.lineEdit_12.setObjectName(_fromUtf8("lineEdit_12"))
self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.lineEdit_12)
self.label_15 = QtGui.QLabel(self.formLayoutWidget)
self.label_15.setObjectName(_fromUtf8("label_15")) self.label_15.setObjectName(_fromUtf8("label_15"))
self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_15) self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_15)
self.lineEdit_13 = QtGui.QLineEdit(self.formLayoutWidget) self.label_16 = QtGui.QLabel(self.tab_2)
self.lineEdit_13.setObjectName(_fromUtf8("lineEdit_13"))
self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole, self.lineEdit_13)
self.label_16 = QtGui.QLabel(self.formLayoutWidget)
self.label_16.setObjectName(_fromUtf8("label_16")) self.label_16.setObjectName(_fromUtf8("label_16"))
self.formLayout_3.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_16) self.formLayout_3.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_16)
self.lineEdit_14 = QtGui.QLineEdit(self.formLayoutWidget) self.label_17 = QtGui.QLabel(self.tab_2)
self.lineEdit_14.setObjectName(_fromUtf8("lineEdit_14"))
self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole, self.lineEdit_14)
self.label_17 = QtGui.QLabel(self.formLayoutWidget)
self.label_17.setObjectName(_fromUtf8("label_17")) self.label_17.setObjectName(_fromUtf8("label_17"))
self.formLayout_3.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_17) self.formLayout_3.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_17)
self.lineEdit_15 = QtGui.QLineEdit(self.formLayoutWidget) self.nom = QtGui.QLabel(self.tab_2)
self.lineEdit_15.setObjectName(_fromUtf8("lineEdit_15")) self.nom.setObjectName(_fromUtf8("nom"))
self.formLayout_3.setWidget(4, QtGui.QFormLayout.FieldRole, self.lineEdit_15) self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole, self.nom)
self.pushButton_2 = QtGui.QPushButton(self.tab_2) self.niveau = QtGui.QLabel(self.tab_2)
self.pushButton_2.setGeometry(QtCore.QRect(140, 270, 101, 27)) self.niveau.setObjectName(_fromUtf8("niveau"))
self.pushButton_2.setObjectName(_fromUtf8("pushButton_2")) self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.niveau)
self.comboBox = QtGui.QComboBox(self.tab_2) self.placesParNiveau = QtGui.QLabel(self.tab_2)
self.comboBox.setGeometry(QtCore.QRect(100, 40, 321, 27)) self.placesParNiveau.setObjectName(_fromUtf8("placesParNiveau"))
self.comboBox.setObjectName(_fromUtf8("comboBox")) self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole, self.placesParNiveau)
self.pushButton = QtGui.QPushButton(self.tab_2) self.placesDispo = QtGui.QLabel(self.tab_2)
self.pushButton.setGeometry(QtCore.QRect(290, 270, 81, 27)) self.placesDispo.setObjectName(_fromUtf8("placesDispo"))
self.pushButton.setObjectName(_fromUtf8("pushButton")) self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole, self.placesDispo)
self.placesSuperAbo = QtGui.QLabel(self.tab_2)
self.placesSuperAbo.setObjectName(_fromUtf8("placesSuperAbo"))
self.formLayout_3.setWidget(4, QtGui.QFormLayout.FieldRole, self.placesSuperAbo)
self.verticalLayout.addLayout(self.formLayout_3)
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.btn_details = QtGui.QPushButton(self.tab_2)
self.btn_details.setObjectName(_fromUtf8("btn_details"))
self.horizontalLayout.addWidget(self.btn_details)
self.btn_borne = QtGui.QPushButton(self.tab_2)
self.btn_borne.setObjectName(_fromUtf8("btn_borne"))
self.horizontalLayout.addWidget(self.btn_borne)
self.verticalLayout.addLayout(self.horizontalLayout)
self.btn_creer = QtGui.QPushButton(self.tab_2)
self.btn_creer.setObjectName(_fromUtf8("btn_creer"))
self.verticalLayout.addWidget(self.btn_creer)
self.btn_modifier = QtGui.QPushButton(self.tab_2)
self.btn_modifier.setObjectName(_fromUtf8("btn_modifier"))
self.verticalLayout.addWidget(self.btn_modifier)
self.btn_supprimer = QtGui.QPushButton(self.tab_2)
self.btn_supprimer.setObjectName(_fromUtf8("btn_supprimer"))
self.verticalLayout.addWidget(self.btn_supprimer)
self.tabWidget.addTab(self.tab_2, _fromUtf8("")) self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
self.tab_5 = QtGui.QWidget() self.tab_5 = QtGui.QWidget()
self.tab_5.setObjectName(_fromUtf8("tab_5")) self.tab_5.setObjectName(_fromUtf8("tab_5"))
self.tableView = QtGui.QTableView(self.tab_5) self.tableWidget = QtGui.QTableWidget(self.tab_5)
self.tableView.setGeometry(QtCore.QRect(50, 40, 431, 201)) self.tableWidget.setGeometry(QtCore.QRect(60, 20, 431, 351))
self.tableView.setObjectName(_fromUtf8("tableView")) self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
self.tableWidget.setColumnCount(0)
self.tableWidget.setRowCount(0)
self.tabWidget.addTab(self.tab_5, _fromUtf8("")) self.tabWidget.addTab(self.tab_5, _fromUtf8(""))
self.tab_3 = QtGui.QWidget()
self.tab_3.setObjectName(_fromUtf8("tab_3"))
self.tabWidget.addTab(self.tab_3, _fromUtf8(""))
MainWindow.setCentralWidget(self.centralwidget) MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow) self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 522, 25)) self.menubar.setGeometry(QtCore.QRect(0, 0, 561, 25))
self.menubar.setObjectName(_fromUtf8("menubar")) self.menubar.setObjectName(_fromUtf8("menubar"))
self.menuBorne = QtGui.QMenu(self.menubar) self.menuFichier = QtGui.QMenu(self.menubar)
self.menuBorne.setObjectName(_fromUtf8("menuBorne")) self.menuFichier.setObjectName(_fromUtf8("menuFichier"))
self.menuBornes = QtGui.QMenu(self.menubar)
self.menuBornes.setObjectName(_fromUtf8("menuBornes"))
self.menuA_propos = QtGui.QMenu(self.menubar) self.menuA_propos = QtGui.QMenu(self.menubar)
self.menuA_propos.setObjectName(_fromUtf8("menuA_propos")) self.menuA_propos.setObjectName(_fromUtf8("menuA_propos"))
MainWindow.setMenuBar(self.menubar) MainWindow.setMenuBar(self.menubar)
@ -123,35 +137,45 @@ class Ui_MainWindow(object):
self.actionListe.setObjectName(_fromUtf8("actionListe")) self.actionListe.setObjectName(_fromUtf8("actionListe"))
self.actionAjouter = QtGui.QAction(MainWindow) self.actionAjouter = QtGui.QAction(MainWindow)
self.actionAjouter.setObjectName(_fromUtf8("actionAjouter")) self.actionAjouter.setObjectName(_fromUtf8("actionAjouter"))
self.menuBorne.addSeparator() self.actionQuitter = QtGui.QAction(MainWindow)
self.menuBorne.addAction(self.actionCharger) self.actionQuitter.setObjectName(_fromUtf8("actionQuitter"))
self.menuBorne.addAction(self.actionSauvegarder) self.action = QtGui.QAction(MainWindow)
self.menubar.addAction(self.menuBorne.menuAction()) self.action.setObjectName(_fromUtf8("action"))
self.menubar.addAction(self.menuBornes.menuAction()) self.menuFichier.addAction(self.actionCharger)
self.menuFichier.addAction(self.actionSauvegarder)
self.menuFichier.addSeparator()
self.menuFichier.addAction(self.actionQuitter)
self.menuA_propos.addAction(self.action)
self.menubar.addAction(self.menuFichier.menuAction())
self.menubar.addAction(self.menuA_propos.menuAction()) self.menubar.addAction(self.menuA_propos.menuAction())
self.retranslateUi(MainWindow) self.retranslateUi(MainWindow)
self.tabWidget.setCurrentIndex(1) self.tabWidget.setCurrentIndex(1)
QtCore.QMetaObject.connectSlotsByName(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow): def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None)) MainWindow.setWindowTitle(_translate("MainWindow", "Administration", None))
self.label.setText(_translate("MainWindow", "Activité :", None)) self.label.setText(_translate("MainWindow", "Activité :", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "Activite", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "Activite", None))
self.label_13.setText(_translate("MainWindow", "Nom :", None)) self.label_13.setText(_translate("MainWindow", "Nom :", None))
self.label_14.setText(_translate("MainWindow", "Niveau :", None)) self.label_14.setText(_translate("MainWindow", "Niveau :", None))
self.label_15.setText(_translate("MainWindow", "Place / niveau :", None)) self.label_15.setText(_translate("MainWindow", "Places / niveau :", None))
self.label_16.setText(_translate("MainWindow", "Place disponible :", None)) self.label_16.setText(_translate("MainWindow", "Places disponible :", None))
self.label_17.setText(_translate("MainWindow", "Place Reserve Super Abo : ", None)) self.label_17.setText(_translate("MainWindow", "Places Reserve Super Abo : ", None))
self.pushButton_2.setText(_translate("MainWindow", "Creer/Modifier", None)) self.nom.setText(_translate("MainWindow", "TextLabel", None))
self.pushButton.setText(_translate("MainWindow", "Supprimer", None)) self.niveau.setText(_translate("MainWindow", "TextLabel", None))
self.placesParNiveau.setText(_translate("MainWindow", "TextLabel", None))
self.placesDispo.setText(_translate("MainWindow", "TextLabel", None))
self.placesSuperAbo.setText(_translate("MainWindow", "TextLabel", None))
self.btn_details.setText(_translate("MainWindow", "Details Places", None))
self.btn_borne.setText(_translate("MainWindow", "Borne", None))
self.btn_creer.setText(_translate("MainWindow", "Créer", None))
self.btn_modifier.setText(_translate("MainWindow", "Modifier", None))
self.btn_supprimer.setText(_translate("MainWindow", "Supprimer", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "Parkings", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "Parkings", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5), _translate("MainWindow", "Membres", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5), _translate("MainWindow", "Membres", None))
self.menuBorne.setTitle(_translate("MainWindow", "Fichier", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("MainWindow", "Services", None))
self.menuBornes.setTitle(_translate("MainWindow", "Quitter", None)) self.menuFichier.setTitle(_translate("MainWindow", "Fichier", None))
self.menuA_propos.setTitle(_translate("MainWindow", "A propos", None)) self.menuA_propos.setTitle(_translate("MainWindow", "A propos", None))
self.actionCharger.setText(_translate("MainWindow", "Charger", None)) self.actionCharger.setText(_translate("MainWindow", "Charger", None))
self.actionSauvegarder.setText(_translate("MainWindow", "Sauvegarder", None)) self.actionSauvegarder.setText(_translate("MainWindow", "Sauvegarder", None))
@ -160,4 +184,6 @@ class Ui_MainWindow(object):
self.actionRechercher.setText(_translate("MainWindow", "Rechercher", None)) self.actionRechercher.setText(_translate("MainWindow", "Rechercher", None))
self.actionListe.setText(_translate("MainWindow", "Liste", None)) self.actionListe.setText(_translate("MainWindow", "Liste", None))
self.actionAjouter.setText(_translate("MainWindow", "Ajouter", None)) self.actionAjouter.setText(_translate("MainWindow", "Ajouter", None))
self.actionQuitter.setText(_translate("MainWindow", "Quitter", None))
self.action.setText(_translate("MainWindow", "?", None))

View File

@ -24,7 +24,7 @@
</rect> </rect>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>1</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="tab"> <widget class="QWidget" name="tab">
<attribute name="title"> <attribute name="title">
@ -81,54 +81,54 @@
<item row="2" column="0"> <item row="2" column="0">
<widget class="QLabel" name="label_15"> <widget class="QLabel" name="label_15">
<property name="text"> <property name="text">
<string>Place / niveau :</string> <string>Places / niveau :</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="0"> <item row="3" column="0">
<widget class="QLabel" name="label_16"> <widget class="QLabel" name="label_16">
<property name="text"> <property name="text">
<string>Place disponible :</string> <string>Places disponible :</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="0"> <item row="4" column="0">
<widget class="QLabel" name="label_17"> <widget class="QLabel" name="label_17">
<property name="text"> <property name="text">
<string>Place Reserve Super Abo : </string> <string>Places Reserve Super Abo : </string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="0" column="1">
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="nom">
<property name="text"> <property name="text">
<string>TextLabel</string> <string>TextLabel</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1"> <item row="1" column="1">
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="niveau">
<property name="text"> <property name="text">
<string>TextLabel</string> <string>TextLabel</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1"> <item row="2" column="1">
<widget class="QLabel" name="label_4"> <widget class="QLabel" name="placesParNiveau">
<property name="text"> <property name="text">
<string>TextLabel</string> <string>TextLabel</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="1"> <item row="3" column="1">
<widget class="QLabel" name="label_5"> <widget class="QLabel" name="placesDispo">
<property name="text"> <property name="text">
<string>TextLabel</string> <string>TextLabel</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="1"> <item row="4" column="1">
<widget class="QLabel" name="label_6"> <widget class="QLabel" name="placesSuperAbo">
<property name="text"> <property name="text">
<string>TextLabel</string> <string>TextLabel</string>
</property> </property>
@ -139,14 +139,14 @@
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
<item> <item>
<widget class="QPushButton" name="pushButton_4"> <widget class="QPushButton" name="btn_details">
<property name="text"> <property name="text">
<string>Details Places</string> <string>Details Places</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="pushButton_3"> <widget class="QPushButton" name="btn_borne">
<property name="text"> <property name="text">
<string>Borne</string> <string>Borne</string>
</property> </property>
@ -155,21 +155,21 @@
</layout> </layout>
</item> </item>
<item> <item>
<widget class="QPushButton" name="pushButton_5"> <widget class="QPushButton" name="btn_creer">
<property name="text"> <property name="text">
<string>Créer</string> <string>Créer</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="pushButton_2"> <widget class="QPushButton" name="btn_modifier">
<property name="text"> <property name="text">
<string>Modifier</string> <string>Modifier</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="pushButton"> <widget class="QPushButton" name="btn_supprimer">
<property name="text"> <property name="text">
<string>Supprimer</string> <string>Supprimer</string>
</property> </property>
@ -190,6 +190,11 @@
<height>351</height> <height>351</height>
</rect> </rect>
</property> </property>
<column>
<property name="text">
<string>Nouvelle colonne</string>
</property>
</column>
</widget> </widget>
</widget> </widget>
<widget class="QWidget" name="tab_3"> <widget class="QWidget" name="tab_3">