MAj
This commit is contained in:
parent
cef87901a4
commit
1b34dd5c6a
3
.idea/gestionParking.iml
generated
3
.idea/gestionParking.iml
generated
@ -2,7 +2,8 @@
|
|||||||
<module type="PYTHON_MODULE" version="4">
|
<module type="PYTHON_MODULE" version="4">
|
||||||
<component name="NewModuleRootManager">
|
<component name="NewModuleRootManager">
|
||||||
<content url="file://$MODULE_DIR$" />
|
<content url="file://$MODULE_DIR$" />
|
||||||
<orderEntry type="jdk" jdkName="Python 3.4.2 (/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4)" jdkType="Python SDK" />
|
<orderEntry type="jdk" jdkName="Python 3.4.1 (/usr/bin/python3.4)" jdkType="Python SDK" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
|
1
.idea/misc.xml
generated
1
.idea/misc.xml
generated
@ -2,3 +2,4 @@
|
|||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.4.2 (/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4)" project-jdk-type="Python SDK" />
|
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.4.2 (/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4)" project-jdk-type="Python SDK" />
|
||||||
</project>
|
</project>
|
||||||
|
|
||||||
|
@ -1,7 +1,34 @@
|
|||||||
|
import sqlite3
|
||||||
from src.c.Main import Main
|
from src.c.Main import Main
|
||||||
|
import sqlite3
|
||||||
__author__ = 'sidya'
|
__author__ = 'sidya'
|
||||||
|
|
||||||
|
class connexionBDD :
|
||||||
|
def __init__(self):
|
||||||
|
try:
|
||||||
|
self.__conn = sqlite3.connect("BD.sql3")
|
||||||
|
self.__cur = self.__conn.cursor()
|
||||||
|
except Exception as e :
|
||||||
|
pass # later
|
||||||
|
|
||||||
|
def seDeconnecter(self):
|
||||||
|
self.__cur.close()
|
||||||
|
self.__conn.close()
|
||||||
|
|
||||||
|
def execute(self, req):
|
||||||
|
try:
|
||||||
|
r = self.__cur.execute(req)
|
||||||
|
self.__conn.commit()
|
||||||
|
except Exception as e :
|
||||||
|
pass # later
|
||||||
|
return r
|
||||||
|
|
||||||
|
|
||||||
|
def lastId(self):
|
||||||
|
return self.__cur.lastrowid
|
||||||
|
|
||||||
|
conn = connexionBDD
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# lancement du controleur principal
|
# lancement du controleur principal
|
||||||
main = Main()
|
main = Main()
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
from src.v import Ui_Panneau, Ui_Borne, Camera
|
from src.v import Ui_Panneau, Ui_Borne, Camera
|
||||||
from src.c import Teleporteur
|
from src.m import Parking
|
||||||
from src.m import Parking, Place
|
|
||||||
|
|
||||||
|
|
||||||
__author__ = 'sidya'
|
__author__ = 'sidya'
|
||||||
|
|
||||||
|
|
||||||
class Acces:
|
class Acces:
|
||||||
|
"""
|
||||||
|
Controleur Acces
|
||||||
|
"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.__parking = Parking()
|
self.__parking = Parking()
|
||||||
self.__camera = Camera()
|
self.__camera = Camera()
|
||||||
|
164
src/c/Borne.py
Normal file
164
src/c/Borne.py
Normal file
@ -0,0 +1,164 @@
|
|||||||
|
from src.c.Teleporteur import Teleporteur
|
||||||
|
from src.m.Client import Client
|
||||||
|
from src.m.Place import Placement
|
||||||
|
from src.m.TypeAbonnement import TypeAbonnement
|
||||||
|
from src.v.Camera import Camera
|
||||||
|
from PyQt4 import QtGui
|
||||||
|
from src.v.MyQWidget import MyQWidget
|
||||||
|
from src.v.Ui_Borne import Ui_Borne
|
||||||
|
__author__ = 'sidya'
|
||||||
|
|
||||||
|
|
||||||
|
class Borne:
|
||||||
|
"""
|
||||||
|
Controleur de la vue de la borne permettant l'accès au parking
|
||||||
|
"""
|
||||||
|
def __init__(self, main, parking):
|
||||||
|
self.__parking = parking
|
||||||
|
self.__main = main
|
||||||
|
self.__main.activity("Affichage Borne", self.__main.lvl.INFO)
|
||||||
|
|
||||||
|
self.__w = MyQWidget(self.__main)
|
||||||
|
self.__ui = Ui_Borne()
|
||||||
|
self.__ui.setupUi(self.__w)
|
||||||
|
|
||||||
|
# connect
|
||||||
|
self.__ui.btn_quitter.clicked.connect(self.quitter)
|
||||||
|
self.__ui.btn_Voiture.clicked.connect(self.newVoiture)
|
||||||
|
self.__ui.btn_annuler.clicked.connect(self.nonVoiture)
|
||||||
|
self.__ui.btn_validerID.clicked.connect(self.identification)
|
||||||
|
self.__ui.btn_valider_abo.clicked.connect(self.abo)
|
||||||
|
self.__ui.btn_garer.clicked.connect(self.garer)
|
||||||
|
self.__ui.btn_recuperer.clicked.connect(self.recuperer)
|
||||||
|
|
||||||
|
|
||||||
|
#Validator
|
||||||
|
|
||||||
|
|
||||||
|
self.__ui.nomParking = parking.nom
|
||||||
|
self.nonVoiture()
|
||||||
|
self.showWindow()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
def nonVoiture(self):
|
||||||
|
"""
|
||||||
|
Met en etat initial de départ sans voiture
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
self.__c = None
|
||||||
|
self.__ui.box_abo.setDisabled(True)
|
||||||
|
self.__ui.box_garer.setDisabled(True)
|
||||||
|
self.__ui.box_id.setDisabled(True)
|
||||||
|
self.__ui.box_recup.setDisabled(False)
|
||||||
|
|
||||||
|
def newVoiture(self):
|
||||||
|
"""
|
||||||
|
Meten etat d'arrive de voiture detecte par la camera
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
self.v_actuel = Camera.donnerVoiture()
|
||||||
|
self.__ui.box_abo.setDisabled(False)
|
||||||
|
self.__ui.box_garer.setDisabled(False)
|
||||||
|
self.__ui.box_id.setDisabled(False)
|
||||||
|
self.__ui.box_recup.setDisabled(True)
|
||||||
|
self.__ui.label_aff.setText("Bienvenue !")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
def identification(self):
|
||||||
|
"""
|
||||||
|
Gestion de l'identification a partir d'un abo a partir de son id (lineedit)
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
self.__c = Client.get(self.__ui.lineEdit_id.text())
|
||||||
|
if self.__c != None :
|
||||||
|
self.__ui.label_aff.setText("Bonjour " + str(self.__c.nom)+ " " + str(self.__c.prenom))
|
||||||
|
#self.__ui.labIdClient.setText(str(self.__c))
|
||||||
|
self.__ui.box_id.setDisabled(True)
|
||||||
|
else :
|
||||||
|
self.__ui.label_aff.setText("Echec identification")
|
||||||
|
self.__ui.labIdClient.setText("Non identifier")
|
||||||
|
|
||||||
|
def abo(self):
|
||||||
|
"""
|
||||||
|
Gestion validation formaulaire d'abonnement
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
if self.__c != None :
|
||||||
|
self.__c.maj(self.__ui.nomLineEdit,
|
||||||
|
self.__ui.prenomLineEdit,
|
||||||
|
"",
|
||||||
|
TypeAbonnement.SUPER_ABONNE)
|
||||||
|
self.__ui.label_aff.setText("Mise a jour de votre abonnement effectué")
|
||||||
|
else:
|
||||||
|
if self.__ui.checkBox.isEnabled() :
|
||||||
|
self.__c = Client(self.__ui.nomLineEdit,
|
||||||
|
self.__ui.prenomLineEdit,
|
||||||
|
"",
|
||||||
|
TypeAbonnement.SUPER_ABONNE)
|
||||||
|
else :
|
||||||
|
self.__c = Client(self.__ui.nomLineEdit,
|
||||||
|
self.__ui.prenomLineEdit,
|
||||||
|
"",
|
||||||
|
TypeAbonnement.ABONNE)
|
||||||
|
self.__ui.label_aff.setText("Votre id membre est : " + self.__c.id)
|
||||||
|
self.__ui.lineEdit_id.setText(self.__c.id)
|
||||||
|
self.identification()
|
||||||
|
|
||||||
|
def garer(self):
|
||||||
|
"""
|
||||||
|
Gestion de la validation de garer son vehicule
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
if self.__c is None:
|
||||||
|
id = Teleporteur.teleporterVoiture(self.v_actuel,self.__parking.recherchePlace(self.v_actuel))
|
||||||
|
self.__ui.label_aff.setText("Votre num ticket est : " + id)
|
||||||
|
else:
|
||||||
|
if self.__c.abonnement != TypeAbonnement.SUPER_ABONNE :
|
||||||
|
Teleporteur.teleporterVoiture(self.v_actuel,self.__parking.recherchePlace(self.v_actuel))
|
||||||
|
else:
|
||||||
|
Teleporteur.teleporterVoirureSuperAbonne(self.v_actuel)
|
||||||
|
|
||||||
|
|
||||||
|
def recuperer(self):
|
||||||
|
"""
|
||||||
|
Essaie de recuperer une voiture avec le numero de ticket (lineedit)
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
p = Placement.get(self.__ui.numeroTicketLineEdit.text())
|
||||||
|
if p is None:
|
||||||
|
self.__ui.label_aff.setText("Mauvais numero de ticket")
|
||||||
|
else:
|
||||||
|
Teleporteur.teleporterVersSortie(p)
|
||||||
|
self.__ui.label_aff.setText("Bonne journée")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
def showWindow(self):
|
||||||
|
"""
|
||||||
|
Gestion affichage de la vue borne
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
self.__w.show()
|
||||||
|
self.__child = None # supprime l'eventuel widget enfant
|
||||||
|
self.__w.focusWidget() # reprend le focus sur la fenetre
|
||||||
|
|
||||||
|
def quitter(self):
|
||||||
|
"""
|
||||||
|
Gestion de sortie de la vue borne
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
self.__w.hide()
|
||||||
|
self.__main.showWindow()
|
||||||
|
|
||||||
|
def error(self):
|
||||||
|
"""
|
||||||
|
Qdialog message erreur
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
QtGui.QMessageBox.warning(self.__w,
|
||||||
|
"Erreur ...",
|
||||||
|
"Une erreur est survenue ...")
|
||||||
|
self.__w.hide()
|
||||||
|
self.__main.showWindow()
|
@ -1,70 +1,110 @@
|
|||||||
from PyQt4 import QtGui, QtCore
|
from PyQt4 import QtGui
|
||||||
|
|
||||||
from src.m.Parking import Parking
|
from src.m.Parking import Parking
|
||||||
from src.m.Place import ListeTypePlace
|
from src.m.Place import ListeTypePlace
|
||||||
from src.v.MyQWidget import MyQWidget
|
from src.v.MyQWidget import MyQWidget
|
||||||
from src.v.Ui_CreaParking import Ui_CreaParking
|
from src.v.Ui_CreaParking import Ui_CreaParking
|
||||||
|
|
||||||
|
|
||||||
__author__ = 'sidya'
|
__author__ = 'sidya'
|
||||||
|
|
||||||
|
|
||||||
class CreaParking:
|
class CreaParking:
|
||||||
|
"""
|
||||||
|
Controleur de cretion de parking
|
||||||
|
"""
|
||||||
def __init__(self, main):
|
def __init__(self, main):
|
||||||
self.__main = main
|
self._main = main
|
||||||
self.__main.activity("Debut Creation Parking", self.__main.lvl.INFO)
|
self._main.activity("Debut Creation Parking", self._main.lvl.INFO)
|
||||||
|
|
||||||
self.__row = 0
|
self._w = MyQWidget(self._main)
|
||||||
|
self._ui = Ui_CreaParking()
|
||||||
self.__w = MyQWidget(self.__main)
|
self._ui.setupUi(self._w)
|
||||||
self.__ui = Ui_CreaParking()
|
|
||||||
self.__ui.setupUi(self.__w)
|
|
||||||
|
|
||||||
# connect
|
# connect
|
||||||
self.__ui.btn_addRow.clicked.connect(self.addRow)
|
self._ui.btn_addRow.clicked.connect(self.addRow)
|
||||||
self.__ui.btn_rmRow.clicked.connect(self.rmRow)
|
self._ui.btn_rmRow.clicked.connect(self.rmRow)
|
||||||
self.__ui.btn_valider.clicked.connect(self.valider)
|
self._ui.btn_valider.clicked.connect(self.valider)
|
||||||
self.__ui.btn_annuler.clicked.connect(self.annuler)
|
self._ui.btn_annuler.clicked.connect(self.annuler)
|
||||||
|
|
||||||
#Validator
|
#Validator
|
||||||
self.__ui.lineEdit_nbNiv.setValidator(QtGui.QRegExpValidator(QtCore.QRegExp('[0-9]*')))
|
#self._ui.lineEdit_nbNiv.setValidator(QtGui.QRegExpValidator(QtCore.QRegExp('[0-9]*')))
|
||||||
|
|
||||||
|
|
||||||
|
self._ui.tableWidget.insertRow(self._ui.tableWidget.rowCount())
|
||||||
self.showWindow()
|
self.showWindow()
|
||||||
|
|
||||||
|
def majNbPlaceTotal(self):
|
||||||
def insererTable(self,hauteur,longueur,nombre) :
|
nb = 0
|
||||||
self.__typePlacesparNiveau.add(hauteur,longueur,nombre)
|
for i in range(0, self._ui.tableWidget.rowCount()):
|
||||||
|
nb += int(self._ui.tableWidget.itemAt(i, 3).text())
|
||||||
|
self._ui.nbPlacesTotal.setText(str(nb))
|
||||||
|
|
||||||
def addRow(self):
|
def addRow(self):
|
||||||
self.__ui.tableWidget.insertRow(self.__row)
|
"""
|
||||||
self.__row += 1
|
Ajoute une ligne de creation de place
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
self._ui.tableWidget.insertRow(self._ui.tableWidget.rowCount())
|
||||||
|
|
||||||
def rmRow(self):
|
def rmRow(self):
|
||||||
self.__ui.tableWidget.removeRow(self.__ui.tableWidget.rowCount()-1)
|
"""
|
||||||
self.__row -= 1
|
Enleve une ligne de creation de place
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
self._ui.tableWidget.removeRow(self._ui.tableWidget.rowCount() - 1)
|
||||||
|
|
||||||
def annuler(self):
|
def annuler(self):
|
||||||
self.__main.activity("Annulation Creation Parking", self.__main.lvl.INFO)
|
"""
|
||||||
self.__w.hide()
|
Gestion annulation creation parking
|
||||||
self.__main.showWindow()
|
:return:
|
||||||
|
"""
|
||||||
|
result = QtGui.QMessageBox.question(self._w,
|
||||||
|
"Confirmer Fermeture...",
|
||||||
|
"Etes vous sur de vouloir abandonner ?\n"
|
||||||
|
"(Toute modification non enregistrée seras perdu)",
|
||||||
|
QtGui.QMessageBox.Yes | QtGui.QMessageBox.No)
|
||||||
|
|
||||||
|
if result == QtGui.QMessageBox.Yes:
|
||||||
|
self._main.activity("Annulation Creation Parking", self._main.lvl.INFO)
|
||||||
|
self._w.hide()
|
||||||
|
self._main.showWindow()
|
||||||
|
|
||||||
def valider(self):
|
def valider(self):
|
||||||
|
"""
|
||||||
|
Gestion validation de formulaire de creation de parking.
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
try:
|
try:
|
||||||
l = ListeTypePlace()
|
l = ListeTypePlace()
|
||||||
for i in range(0,self.__ui.tableWidget.rowCount()):
|
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()),
|
l.add(int(self._ui.tableWidget.item(i, 0).text()), int(self._ui.tableWidget.item(i, 1).text()),
|
||||||
int(self.__ui.tableWidget.itemAt(i,3).text()))
|
int(self._ui.tableWidget.item(i, 2).text()))
|
||||||
self.__main.addParking(Parking(
|
self._main.addParking(Parking(
|
||||||
int(self.__ui.lineEdit_nbNiv.text()),
|
|
||||||
l,
|
l,
|
||||||
self.__ui.lineEdit_nom.text()))
|
self._ui.lineEdit_nom.text()))
|
||||||
self.__main.activity("Ajout Parking : detail", self.__main.lvl.INFO)
|
self._main.activity("Ajout Parking : detail", self._main.lvl.INFO)
|
||||||
self.__w.hide()
|
self._w.hide()
|
||||||
self.__main.showWindow()
|
self._main.showWindow()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.__main.activity("Erreur lors de la creations du Parking \n" + str(e), self.__main.lvl.FAIL)
|
self._main.activity("Erreur lors de la creations du Parking \n" + str(e), self._main.lvl.FAIL)
|
||||||
self.annuler()
|
self.error()
|
||||||
|
|
||||||
def showWindow(self):
|
def showWindow(self):
|
||||||
self.__w.show()
|
"""
|
||||||
|
Gestion affichage vue Creation de Parking
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
self._w.show()
|
||||||
self.__child = None # supprime l'eventuel widget enfant
|
self.__child = None # supprime l'eventuel widget enfant
|
||||||
self.__w.focusWidget() # reprend le focus sur la fenetre
|
self._w.focusWidget() # reprend le focus sur la fenetre
|
||||||
|
|
||||||
|
def error(self):
|
||||||
|
"""
|
||||||
|
Qdialog message erreur
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
QtGui.QMessageBox.warning(self._w,
|
||||||
|
"Erreur ...",
|
||||||
|
"Erreur lors de la création du parking ...")
|
||||||
|
self._w.hide()
|
||||||
|
self._main.showWindow()
|
32
src/c/DetailsPlaces.py
Normal file
32
src/c/DetailsPlaces.py
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
from PyQt4.QtGui import QTableWidgetItem
|
||||||
|
|
||||||
|
from src.c.CreaParking import CreaParking
|
||||||
|
|
||||||
|
|
||||||
|
__author__ = 'sidya'
|
||||||
|
|
||||||
|
|
||||||
|
class DetailsPlaces(CreaParking):
|
||||||
|
def __init__(self, main, parking):
|
||||||
|
self.__parking = parking
|
||||||
|
super(DetailsPlaces, self).__init__(main)
|
||||||
|
|
||||||
|
self._ui.lineEdit_nom.setText(parking.nom)
|
||||||
|
for p in parking.typePlacesParNiv.l:
|
||||||
|
row = self._ui.tableWidget.rowCount() - 1
|
||||||
|
if row != 0:
|
||||||
|
self._ui.tableWidget.insertRow(row)
|
||||||
|
self._ui.tableWidget.setItem(row, 0, QTableWidgetItem(str(p.hauteur)))
|
||||||
|
self._ui.tableWidget.setItem(row, 1, QTableWidgetItem(str(p.longueur)))
|
||||||
|
self._ui.tableWidget.setItem(row, 2, QTableWidgetItem(str(p.nb)))
|
||||||
|
|
||||||
|
self._ui.lineEdit_nom.setDisabled(True)
|
||||||
|
self._ui.tableWidget.setDisabled(True)
|
||||||
|
self._ui.btn_annuler.setDisabled(True)
|
||||||
|
self._ui.btn_addRow.setDisabled(True)
|
||||||
|
self._ui.btn_rmRow.setDisabled(True)
|
||||||
|
|
||||||
|
def valider(self):
|
||||||
|
self._w.hide()
|
||||||
|
self._main.showWindow()
|
||||||
|
|
@ -1,13 +1,12 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
from PyQt4 import QtGui, QtCore
|
from PyQt4 import QtGui
|
||||||
from PyQt4.QtCore import QTranslator, QLocale
|
from src.c.Borne import Borne
|
||||||
|
|
||||||
|
from src.c.DetailsPlaces import DetailsPlaces
|
||||||
from src.c.log.log import Log
|
from src.c.log.log import Log
|
||||||
from src.c.log.log import lvl
|
from src.c.log.log import lvl
|
||||||
|
|
||||||
from src.c.CreaParking import CreaParking
|
from src.c.CreaParking import CreaParking
|
||||||
from src.m.Parking import Parking, ListeTypePlace
|
|
||||||
from src.v.MyQMainWindow import MyQMainWindow
|
from src.v.MyQMainWindow import MyQMainWindow
|
||||||
from src.v.Ui_MainWindow import Ui_MainWindow
|
from src.v.Ui_MainWindow import Ui_MainWindow
|
||||||
|
|
||||||
@ -17,30 +16,26 @@ __author__ = 'sidya'
|
|||||||
class Main:
|
class Main:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
# Init des logs
|
# Init des logs
|
||||||
self.lvl = lvl()
|
self.lvl = lvl() # Public : Acces au constante
|
||||||
self.__log = Log()
|
self.__log = Log()
|
||||||
|
|
||||||
l = ListeTypePlace()
|
# Parking
|
||||||
l.add(10, 11, 5)
|
self.__parkings = []
|
||||||
l.add(7, 12, 5)
|
|
||||||
p = Parking(5, l,"lol")
|
|
||||||
|
|
||||||
#Liste Clients et Parking
|
|
||||||
self.__clients = []
|
|
||||||
self.__parkings = [p]
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
app = QtGui.QApplication(sys.argv)
|
app = QtGui.QApplication(sys.argv)
|
||||||
|
|
||||||
|
|
||||||
self.__view = MyQMainWindow()
|
self.__view = MyQMainWindow()
|
||||||
self.__ui = Ui_MainWindow()
|
self.__ui = Ui_MainWindow()
|
||||||
self.__ui.setupUi(self.__view)
|
self.__ui.setupUi(self.__view)
|
||||||
|
|
||||||
|
|
||||||
#connect
|
#connect
|
||||||
self.__ui.comboBox.currentIndexChanged['QString'].connect(self.selectParking)
|
self.__ui.comboBox.currentIndexChanged['QString'].connect(self.selectParking)
|
||||||
self.__ui.btn_creer.clicked.connect(self.creerParking)
|
self.__ui.btn_creer.clicked.connect(self.creerParking)
|
||||||
|
self.__ui.btn_supprimer.clicked.connect(self.rmParking)
|
||||||
|
self.__ui.btn_details.clicked.connect(self.detailsPlacesParking)
|
||||||
|
self.__ui.btn_borne.clicked.connect(self.afficherBorne)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#Chargement activité
|
#Chargement activité
|
||||||
@ -78,15 +73,15 @@ class Main:
|
|||||||
|
|
||||||
def selectParking(self):
|
def selectParking(self):
|
||||||
self.__ui.nom.clear()
|
self.__ui.nom.clear()
|
||||||
self.__ui.niveau.clear()
|
|
||||||
self.__ui.placesParNiveau.clear()
|
self.__ui.placesParNiveau.clear()
|
||||||
self.__ui.placesDispo.clear()
|
self.__ui.placesDispo.clear()
|
||||||
self.__ui.placesSuperAbo.clear()
|
self.__ui.placesSuperAbo.clear()
|
||||||
if(self.__ui.comboBox.currentIndex() != 0) :
|
if self.__ui.comboBox.count() > 1:
|
||||||
|
print(self.__ui.comboBox.count())
|
||||||
self.__ui.nom.setText(self.__parkings[self.__ui.comboBox.currentIndex() - 1].nom)
|
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].nbPlaces))
|
||||||
self.__ui.placesParNiveau.setText(str(self.__parkings[self.__ui.comboBox.currentIndex()-1].nbPlacesParNiveau))
|
self.__ui.placesDispo.setText(
|
||||||
self.__ui.placesDispo.setText(str(self.__parkings[self.__ui.comboBox.currentIndex()-1].nbPlacesLibresParking))
|
str(self.__parkings[self.__ui.comboBox.currentIndex() - 1].nbPlacesLibresParking))
|
||||||
self.__ui.placesSuperAbo.setText("lol")
|
self.__ui.placesSuperAbo.setText("lol")
|
||||||
|
|
||||||
|
|
||||||
@ -97,6 +92,35 @@ class Main:
|
|||||||
def addParking(self, parking):
|
def addParking(self, parking):
|
||||||
self.__parkings.append(parking)
|
self.__parkings.append(parking)
|
||||||
|
|
||||||
|
def modifParking(self):
|
||||||
|
if self.__ui.comboBox.currentIndex() != 0:
|
||||||
|
self.__view.hide()
|
||||||
|
self.__widgetCourant = ModifParking(self, self.__parkings[self.__ui.comboBox.currentIndex() - 1])
|
||||||
|
|
||||||
|
def rmParking(self):
|
||||||
|
if self.__ui.comboBox.currentIndex() != 0:
|
||||||
|
result = QtGui.QMessageBox.question(self.__view,
|
||||||
|
"Confirmer Supression...",
|
||||||
|
"Etes vous sur de vouloir supprimer ?\n"
|
||||||
|
"(La suppression sera définitive)",
|
||||||
|
QtGui.QMessageBox.Yes | QtGui.QMessageBox.No)
|
||||||
|
|
||||||
|
if result == QtGui.QMessageBox.Yes:
|
||||||
|
self.__parkings.remove(self.__parkings[self.__ui.comboBox.currentIndex() - 1])
|
||||||
|
self.__view.hide()
|
||||||
|
self.showWindow()
|
||||||
|
|
||||||
|
def detailsPlacesParking(self):
|
||||||
|
if self.__ui.comboBox.currentIndex() != 0:
|
||||||
|
self.__view.hide()
|
||||||
|
self.__widgetCourant = DetailsPlaces(self, self.__parkings[self.__ui.comboBox.currentIndex() - 1])
|
||||||
|
|
||||||
|
def afficherBorne(self):
|
||||||
|
if self.__ui.comboBox.currentIndex() != 0:
|
||||||
|
self.__view.hide()
|
||||||
|
self.__widgetCourant = Borne(self, self.__parkings[self.__ui.comboBox.currentIndex() - 1])
|
||||||
|
|
||||||
|
|
||||||
def showWindow(self):
|
def showWindow(self):
|
||||||
self.majListeParking()
|
self.majListeParking()
|
||||||
self.__view.show()
|
self.__view.show()
|
||||||
|
@ -1,9 +1,18 @@
|
|||||||
|
from src.m.Place import Placement
|
||||||
|
|
||||||
__author__ = 'sidya'
|
__author__ = 'sidya'
|
||||||
|
|
||||||
|
|
||||||
class Teleporteur:
|
class Teleporteur:
|
||||||
|
@classmethod
|
||||||
def teleporterVoiture(self, voiture, place):
|
def teleporterVoiture(self, voiture, place):
|
||||||
|
p =Placement(voiture, place)
|
||||||
|
return p.id
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def teleporterVoitureSuperAbonne(self, voiture):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def teleporterVoirureSuperAbonne(self, voiture):
|
@classmethod
|
||||||
pass
|
def teleporterVersSortie(self, placement):
|
||||||
|
placement.end()
|
@ -2,6 +2,8 @@ __author__ = 'sidya'
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
from logging.handlers import RotatingFileHandler
|
from logging.handlers import RotatingFileHandler
|
||||||
|
|
||||||
|
|
||||||
class bcolors:
|
class bcolors:
|
||||||
"""
|
"""
|
||||||
Define constant color value for different level
|
Define constant color value for different level
|
||||||
@ -12,6 +14,7 @@ class bcolors:
|
|||||||
FAIL = ' \033[91m '
|
FAIL = ' \033[91m '
|
||||||
ENDC = ' \033[0m '
|
ENDC = ' \033[0m '
|
||||||
|
|
||||||
|
|
||||||
class lvl:
|
class lvl:
|
||||||
"""
|
"""
|
||||||
Define constant value for level log
|
Define constant value for level log
|
||||||
@ -23,8 +26,10 @@ class lvl:
|
|||||||
FAIL = 40
|
FAIL = 40
|
||||||
CRITICAL = 50
|
CRITICAL = 50
|
||||||
|
|
||||||
|
|
||||||
class SingleLevelFilter(logging.Filter):
|
class SingleLevelFilter(logging.Filter):
|
||||||
"""Filter for one level"""
|
"""Filter for one level"""
|
||||||
|
|
||||||
def __init__(self, passlevel, reject):
|
def __init__(self, passlevel, reject):
|
||||||
"""
|
"""
|
||||||
Constructor
|
Constructor
|
||||||
@ -33,16 +38,19 @@ class SingleLevelFilter(logging.Filter):
|
|||||||
"""
|
"""
|
||||||
self.passlevel = passlevel
|
self.passlevel = passlevel
|
||||||
self.reject = reject
|
self.reject = reject
|
||||||
|
|
||||||
def filter(self, record):
|
def filter(self, record):
|
||||||
if self.reject:
|
if self.reject:
|
||||||
return (record.levelno != self.passlevel)
|
return (record.levelno != self.passlevel)
|
||||||
else:
|
else:
|
||||||
return (record.levelno == self.passlevel)
|
return (record.levelno == self.passlevel)
|
||||||
|
|
||||||
|
|
||||||
class Log(object):
|
class Log(object):
|
||||||
"""
|
"""
|
||||||
Log Manager
|
Log Manager
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""
|
"""
|
||||||
Define 3 differents log :
|
Define 3 differents log :
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
__author__ = 'sidya'
|
__author__ = 'sidya'
|
||||||
|
|
||||||
from nose.tools import assert_equal
|
|
||||||
|
|
||||||
|
|
||||||
class TestAcces:
|
class TestAcces:
|
||||||
pass
|
pass
|
85
src/m/Client.py
Normal file
85
src/m/Client.py
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
import random
|
||||||
|
import sqlite3
|
||||||
|
import string
|
||||||
|
|
||||||
|
__author__ = 'sidya'
|
||||||
|
|
||||||
|
|
||||||
|
class Client():
|
||||||
|
|
||||||
|
clients = []
|
||||||
|
|
||||||
|
def __init__(self, nom, prenom, adresse, typeAbonnement):
|
||||||
|
while True :
|
||||||
|
id =''.join(random.choice(string.ascii_uppercase + string.ascii_lowercase + string.digits) for _ in range(random.randint(1,10)))
|
||||||
|
if Client.get(id) is None:
|
||||||
|
break
|
||||||
|
self.__id = id
|
||||||
|
self.__nom = nom
|
||||||
|
self.__prenom = prenom
|
||||||
|
self.__typeAbonnement = typeAbonnement
|
||||||
|
self.__adresse = adresse
|
||||||
|
self.clients.append(self)
|
||||||
|
|
||||||
|
|
||||||
|
@property
|
||||||
|
def prenom(self):
|
||||||
|
return self.__prenom
|
||||||
|
|
||||||
|
@property
|
||||||
|
def nom(self):
|
||||||
|
return self.__nom
|
||||||
|
|
||||||
|
@property
|
||||||
|
def id(self):
|
||||||
|
return self.__id
|
||||||
|
|
||||||
|
@property
|
||||||
|
def adr(self):
|
||||||
|
return self.__adresse
|
||||||
|
|
||||||
|
@property
|
||||||
|
def abonnement(self):
|
||||||
|
return self.__typeAbonnement
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def get(id):
|
||||||
|
for client in Client.clients:
|
||||||
|
if client.id == id:
|
||||||
|
return client
|
||||||
|
return None
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def loadAll(connection):
|
||||||
|
with connection:
|
||||||
|
connection.row_factory = sqlite3.Row
|
||||||
|
cur = connection.cursor()
|
||||||
|
cur.execute("SELECT * FROM Client")
|
||||||
|
rows = cur.fetchall()
|
||||||
|
for row in rows:
|
||||||
|
Client(row["num"], row["nom"], row["prenom"], row["adr"], int(row["abo"]))
|
||||||
|
connection.close()
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def saveAll(connection):
|
||||||
|
cur = connection.cursor()
|
||||||
|
#reset table Client
|
||||||
|
cur.execute("DROP TABLE IF EXISTS Client")
|
||||||
|
cur.execute("""create table Client (num varchar(10) PRIMARY KEY, nom varchar(30), prenom varchar(30), adr varchar(50), abo int(1))""")
|
||||||
|
# insert clients
|
||||||
|
for c in Client.tous:
|
||||||
|
cur.execute("insert into Client values (?, ?, ?, ?, ?)", (c.id, c.nom, c.prenom, c.adr, c.abonnement))
|
||||||
|
connection.commit()
|
||||||
|
connection.close()
|
||||||
|
|
||||||
|
def maj(self, nom, prenom, adresse, typeAbonnement):
|
||||||
|
self.__nom = nom
|
||||||
|
self.__prenom = prenom
|
||||||
|
self.__typeAbonnement = typeAbonnement
|
||||||
|
self.__adresse = adresse
|
||||||
|
|
||||||
|
def __str__( self ):
|
||||||
|
return "( " + self.__id +", " + self.__nom+", " + self.__prenom+", " + self.__adresse +", " + str(self.__typeAbonnement) +" )"
|
||||||
|
|
||||||
|
|
||||||
|
|
25
src/m/ConnecxionBDD.py
Normal file
25
src/m/ConnecxionBDD.py
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
__author__ = 'sidya'
|
||||||
|
|
||||||
|
class connexionBDD :
|
||||||
|
def __init__(self):
|
||||||
|
try:
|
||||||
|
self.__conn = sqlite3.connect("BD.sql3")
|
||||||
|
self.__cur = self.__conn.cursor()
|
||||||
|
except Exception as e :
|
||||||
|
pass # later
|
||||||
|
|
||||||
|
def seDeconnecter(self):
|
||||||
|
self.__cur.close()
|
||||||
|
self.__conn.close()
|
||||||
|
|
||||||
|
def execute(self, req):
|
||||||
|
try:
|
||||||
|
r = self.__cur.execute(req)
|
||||||
|
self.__conn.commit()
|
||||||
|
except Exception as e :
|
||||||
|
pass # later
|
||||||
|
return r
|
||||||
|
|
||||||
|
|
||||||
|
def lastId(self):
|
||||||
|
return self.__cur.lastrowid
|
23
src/m/ListeTypePlace.py
Normal file
23
src/m/ListeTypePlace.py
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
__author__ = 'sidya'
|
||||||
|
|
||||||
|
class ListeTypePlace:
|
||||||
|
"""
|
||||||
|
Classe qui permet de définir une liste de type de place par niveau pour la création d'un parking
|
||||||
|
"""
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
self.l = []
|
||||||
|
|
||||||
|
def add(self, h, l, nb):
|
||||||
|
self.l.append(TypePlace(h, l, nb))
|
||||||
|
|
||||||
|
@property
|
||||||
|
def nbPlaceTotal(self):
|
||||||
|
i = 0
|
||||||
|
for t in self.l:
|
||||||
|
i += t.nb
|
||||||
|
return i
|
||||||
|
|
||||||
|
@property
|
||||||
|
def liste(self):
|
||||||
|
return self.l
|
@ -1,76 +1,64 @@
|
|||||||
|
|
||||||
|
from src.m.Place import Place
|
||||||
|
|
||||||
__author__ = 'sidya'
|
__author__ = 'sidya'
|
||||||
|
|
||||||
from src.m.Place import Place, ListeTypePlace
|
|
||||||
|
|
||||||
|
|
||||||
class Parking:
|
class Parking:
|
||||||
"""
|
"""
|
||||||
Definie un parking
|
Definie un parking
|
||||||
"""
|
"""
|
||||||
def __init__(self, nbNiv, typePlacesParNiv,nom):
|
def __init__(self, typePlaces, nom):
|
||||||
self.typePlacesParNiv = typePlacesParNiv
|
"""
|
||||||
|
Creer objet parking
|
||||||
|
:param typePlaces: ListeTypePlace
|
||||||
|
:param nom: str
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
self.__typePlaces = typePlaces
|
||||||
self.__nom = nom
|
self.__nom = nom
|
||||||
self.__nbPlacesParNiveau = typePlacesParNiv.nbPlaceTotal
|
|
||||||
self.__prix = 10
|
self.__prix = 10
|
||||||
self.__nbNiveaux = nbNiv
|
|
||||||
self.__Places = {}
|
self.__Places = {}
|
||||||
for n in range(0, nbNiv):
|
|
||||||
l = []
|
l = []
|
||||||
for t in typePlacesParNiv.liste:
|
for t in typePlaces.liste:
|
||||||
for i in range(0, t.nb):
|
for i in range(0, t.nb):
|
||||||
l.append(Place(i + 1, n, t.longueur, t.hauteur))
|
l.append(Place(i + 1, 1, t.longueur, t.hauteur))
|
||||||
self.__Places[n] = l
|
self.__Places = l
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def nom(self):
|
def nom(self):
|
||||||
return self.__nom
|
return self.__nom
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def nbPlacesParNiveau(self):
|
def nbPlaces(self):
|
||||||
return self.__nbPlacesParNiveau
|
return self.__typePlaces.nbPlaceTotal
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def nbNiveau(self):
|
def nbPlacesLibresParking(self):
|
||||||
return self.__nbNiveaux
|
i = 0
|
||||||
|
for p in self.__Places:
|
||||||
|
if p.estLibre:
|
||||||
|
i += 1
|
||||||
|
return i
|
||||||
|
|
||||||
def recherchePlace(self, voiture):
|
def recherchePlace(self, voiture):
|
||||||
|
"""
|
||||||
|
Permet de rechercher une place valide pour une voiture
|
||||||
|
:param voiture: Voiture
|
||||||
|
:return: Place
|
||||||
|
"""
|
||||||
place = None
|
place = None
|
||||||
for i in range(0, self.__nbNiveaux):
|
for p in self.__Places:
|
||||||
if place != None:
|
if p.estLibre and p.dimValide(voiture.hauteur, voiture.longueur) :
|
||||||
break
|
|
||||||
l = [p for p in self.__Places[i].estLibre]
|
|
||||||
for p in l:
|
|
||||||
if p.dimValide(voiture.hauteur, voiture.longueur):
|
|
||||||
pass
|
pass
|
||||||
place = p
|
place = p
|
||||||
break
|
break
|
||||||
return place
|
return place
|
||||||
|
|
||||||
def nbPlacesLibresNiveau(self, niveau):
|
|
||||||
i = 0
|
|
||||||
for p in self.__Places[niveau]:
|
|
||||||
if p.estLibre:
|
|
||||||
i += 1
|
|
||||||
return i
|
|
||||||
|
|
||||||
@property
|
|
||||||
def nbPlacesLibresParking(self):
|
|
||||||
nbP = 0
|
|
||||||
for i in range(0,self.__nbNiveaux) :
|
|
||||||
nbP += self.nbPlacesLibresNiveau(i)
|
|
||||||
return nbP
|
|
||||||
|
|
||||||
def addAbonnement(self, Abonnement):
|
def addAbonnement(self, Abonnement):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return "Parking : niveau : " + str(self.__nbNiveaux)
|
return "Parking : niveau : " + str(self.__nbNiveaux)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
l = ListeTypePlace()
|
|
||||||
l.add(10, 11, 5)
|
|
||||||
l.add(7, 12, 5)
|
|
||||||
p = Parking(5, l)
|
|
||||||
print(p)
|
|
||||||
print(p.nbPlacesLibresNiveau(1))
|
|
105
src/m/Place.py
105
src/m/Place.py
@ -1,105 +1,82 @@
|
|||||||
import sys
|
|
||||||
import datetime
|
import datetime
|
||||||
|
import random
|
||||||
|
import string
|
||||||
|
|
||||||
__author__ = 'sidya'
|
__author__ = 'sidya'
|
||||||
|
|
||||||
|
|
||||||
class Place:
|
class Place:
|
||||||
"""
|
"""
|
||||||
Representation d'une place dans un parking
|
Representation d'une place
|
||||||
"""
|
"""
|
||||||
def __init__(self, numero, niveau, longueur,hauteur):
|
def __init__(self, numero, niveau, longueur,hauteur):
|
||||||
|
"""
|
||||||
|
Creer une place.
|
||||||
|
Les dimensions doivent etre données en cm (longueur, hauteur)
|
||||||
|
:param numero: int
|
||||||
|
:param niveau: int
|
||||||
|
:param longueur: int
|
||||||
|
:param hauteur: int
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
self.__numero = numero
|
self.__numero = numero
|
||||||
self.__niveau = niveau
|
self.__niveau = niveau
|
||||||
self.__longueur = longueur
|
self.__longueur = longueur
|
||||||
self.__hauteur = hauteur
|
self.__hauteur = hauteur
|
||||||
self.__estLibre = True
|
self.__estLibre = True
|
||||||
self.__estReserver = False
|
self.__estSuperAbo = False
|
||||||
self.__Placement = None
|
self.__Placement = None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def estLibre(self):
|
def estLibre(self):
|
||||||
return self.__estLibre
|
return self.__estLibre
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def estReserver(self):
|
def estReserver(self):
|
||||||
return self.__estReserver
|
return self.__estSuperAbo
|
||||||
|
|
||||||
def dimValide(self, h, l):
|
def dimValide(self, h, l):
|
||||||
|
"""
|
||||||
|
Retourn si un element de hauteur (cm) h et de longueur(cm) l passe dans la place
|
||||||
|
:param h: int
|
||||||
|
:param l: int
|
||||||
|
:return: bool
|
||||||
|
"""
|
||||||
return h < self.__hauteur and l < self.__longueur
|
return h < self.__hauteur and l < self.__longueur
|
||||||
|
|
||||||
def reserver(self):
|
def superAbo(self):
|
||||||
if (self.__estReserver == True) :
|
"""
|
||||||
|
Renvoit si la place est une place superAbo
|
||||||
|
:return: bool
|
||||||
|
"""
|
||||||
|
if (self.__estSuperAbo == True):
|
||||||
raise Exception("Place déjà reservé")
|
raise Exception("Place déjà reservé")
|
||||||
self.__estReserver = True
|
self.__estSuperAbo = True
|
||||||
|
|
||||||
def nonReserver(self) :
|
|
||||||
if (self.__estReserver == False):
|
|
||||||
raise Exception("Impossible de mettre une place en non si elle n'est pas reservé de base")
|
|
||||||
self.__estReserver = False
|
|
||||||
|
|
||||||
def prendre(self, Placement):
|
def prendre(self):
|
||||||
if (self.__Libre == True) :
|
"""
|
||||||
|
Rend la place indisponible
|
||||||
|
:param Placement:
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
if (self.__estLibre == False):
|
||||||
raise Exception("Place déjà prise")
|
raise Exception("Place déjà prise")
|
||||||
self.__estLibre = False
|
self.__estLibre = False
|
||||||
self.__Placement = Placement
|
|
||||||
|
|
||||||
def liberer(self):
|
def liberer(self):
|
||||||
if (self.__estLibre == False):
|
"""
|
||||||
|
Libere une place non dispo
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
if (self.__estLibre == True):
|
||||||
raise Exception("Impossible de liberer une place vide")
|
raise Exception("Impossible de liberer une place vide")
|
||||||
self.__estLibre = True
|
self.__estLibre = True
|
||||||
|
|
||||||
|
|
||||||
class TypePlace:
|
|
||||||
"""
|
|
||||||
Classe qui permet de définir un type de place
|
|
||||||
"""
|
|
||||||
def __init__(self, h, l, nb):
|
|
||||||
self.__hauteur = h
|
|
||||||
self.__longueur = l
|
|
||||||
self.__nb = nb
|
|
||||||
|
|
||||||
@property
|
|
||||||
def hauteur(self):
|
|
||||||
return self.__hauteur
|
|
||||||
|
|
||||||
@property
|
|
||||||
def longueur(self):
|
|
||||||
return self.__longueur
|
|
||||||
|
|
||||||
@property
|
|
||||||
def nb(self):
|
|
||||||
return self.__nb
|
|
||||||
|
|
||||||
|
|
||||||
class ListeTypePlace:
|
|
||||||
"""
|
|
||||||
Classe qui permet de définir une liste de type de place par niveau pour la création d'un parking
|
|
||||||
"""
|
|
||||||
def __init__(self):
|
|
||||||
self.l = []
|
|
||||||
|
|
||||||
def add(self, h, l, nb):
|
|
||||||
self.l.append(TypePlace(h, l, nb))
|
|
||||||
|
|
||||||
@property
|
|
||||||
def nbPlaceTotal(self):
|
|
||||||
i = 0
|
|
||||||
for t in self.l:
|
|
||||||
i += t.nb
|
|
||||||
return i
|
|
||||||
|
|
||||||
@property
|
|
||||||
def liste(self):
|
|
||||||
return self.l
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Placement:
|
|
||||||
def __init__(self,debut,fin):
|
|
||||||
self.debut = debut
|
|
||||||
self.fin = fin
|
|
||||||
|
|
||||||
@property
|
|
||||||
def estEnCours(self):
|
|
||||||
return datetime.datetime < self.fin
|
|
||||||
|
50
src/m/Placement.py
Normal file
50
src/m/Placement.py
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
import datetime
|
||||||
|
import random
|
||||||
|
import string
|
||||||
|
|
||||||
|
__author__ = 'sidya'
|
||||||
|
|
||||||
|
class Placement:
|
||||||
|
placements = []
|
||||||
|
def __init__(self,voiture, place):
|
||||||
|
"""
|
||||||
|
Creer un placement
|
||||||
|
:param voiture: Voiture
|
||||||
|
:param place: Place
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
|
while True :
|
||||||
|
id =''.join(random.choice(string.ascii_uppercase + string.ascii_lowercase + string.digits) for _ in range(random.randint(1,10)))
|
||||||
|
if Placement.get(id) is None:
|
||||||
|
break
|
||||||
|
self.__id = id
|
||||||
|
self.__voiture = voiture
|
||||||
|
self.__place = place
|
||||||
|
self.__debut = datetime.datetime
|
||||||
|
self.__fin = None
|
||||||
|
place.prendre()
|
||||||
|
self.placements.append(self)
|
||||||
|
|
||||||
|
def end(self):
|
||||||
|
self.__fin = datetime.datetime
|
||||||
|
self.__place.liberer()
|
||||||
|
|
||||||
|
@property
|
||||||
|
def id(self):
|
||||||
|
return self.__id
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def get(id):
|
||||||
|
"""
|
||||||
|
Recupere le Placement d'id id
|
||||||
|
:param id: str
|
||||||
|
:return: Placement or None
|
||||||
|
"""
|
||||||
|
for p in Placement.placements:
|
||||||
|
if p.__id == id:
|
||||||
|
return p
|
||||||
|
return None
|
||||||
|
|
||||||
|
@property
|
||||||
|
def estEnCours(self):
|
||||||
|
return datetime.datetime < self.__fin
|
5
src/m/TypeAbonnement.py
Normal file
5
src/m/TypeAbonnement.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
__author__ = 'sidya'
|
||||||
|
|
||||||
|
class TypeAbonnement :
|
||||||
|
ABONNE = 0
|
||||||
|
SUPER_ABONNE = 1
|
22
src/m/TypePlace.py
Normal file
22
src/m/TypePlace.py
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
__author__ = 'sidya'
|
||||||
|
|
||||||
|
class TypePlace:
|
||||||
|
"""
|
||||||
|
Classe qui permet de définir un type de place
|
||||||
|
"""
|
||||||
|
def __init__(self, h, l, nb):
|
||||||
|
self.__hauteur = h
|
||||||
|
self.__longueur = l
|
||||||
|
self.__nb = nb
|
||||||
|
|
||||||
|
@property
|
||||||
|
def hauteur(self):
|
||||||
|
return self.__hauteur
|
||||||
|
|
||||||
|
@property
|
||||||
|
def longueur(self):
|
||||||
|
return self.__longueur
|
||||||
|
|
||||||
|
@property
|
||||||
|
def nb(self):
|
||||||
|
return self.__nb
|
23
src/m/Voiture.py
Normal file
23
src/m/Voiture.py
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
__author__ = 'sidya'
|
||||||
|
|
||||||
|
class Voiture:
|
||||||
|
def __init__(self, longueur, hauteur, imma):
|
||||||
|
self.__longueur = longueur
|
||||||
|
self.__hauteur = hauteur
|
||||||
|
self.__imma = imma
|
||||||
|
self.__estDansParking = False
|
||||||
|
|
||||||
|
@property
|
||||||
|
def longueur(self):
|
||||||
|
return self.__longueur
|
||||||
|
|
||||||
|
@property
|
||||||
|
def hauteur(self):
|
||||||
|
return self.__hauteur
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return "Voiture : hauteur " + str(self.__longueur) + ", largeur" + str(self.hauteur) + ", Imma : " + self.__imma +", est dans parking :" + str(self.__estDansParking)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,59 +0,0 @@
|
|||||||
from src.m.placement import Placement
|
|
||||||
class Place:
|
|
||||||
def __init__(self):
|
|
||||||
self._numero
|
|
||||||
self._niveau
|
|
||||||
self._longueur
|
|
||||||
self._estLibre
|
|
||||||
self.hauteur
|
|
||||||
|
|
||||||
@property
|
|
||||||
def numero(self):
|
|
||||||
return self._numero
|
|
||||||
@property
|
|
||||||
def niveau(self):
|
|
||||||
return self._niveau
|
|
||||||
@property
|
|
||||||
def longueur(self):
|
|
||||||
return self.longueur
|
|
||||||
@property
|
|
||||||
<<<<<<< Updated upstream
|
|
||||||
def nbPlaceTotal(self):
|
|
||||||
i = 0
|
|
||||||
for t in self.l:
|
|
||||||
i += t.nb
|
|
||||||
return i
|
|
||||||
|
|
||||||
@property
|
|
||||||
def liste(self):
|
|
||||||
return self.l
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Placement:
|
|
||||||
def __init__(self,debut,fin):
|
|
||||||
self.debut = debut
|
|
||||||
self.fin = fin
|
|
||||||
|
|
||||||
=======
|
|
||||||
def estLibre(self):
|
|
||||||
return self.estLibre
|
|
||||||
>>>>>>> Stashed changes
|
|
||||||
@property
|
|
||||||
def hauteur(self):
|
|
||||||
return self.hauteur
|
|
||||||
@numero.setter
|
|
||||||
def setNumero(self, value):
|
|
||||||
self._numero = value
|
|
||||||
@niveau.setter
|
|
||||||
def setNiveau(self, value):
|
|
||||||
self._numero = value
|
|
||||||
@longueur.setter
|
|
||||||
def setLongueur(self, value):
|
|
||||||
self._longueur = value
|
|
||||||
def addPlacement(self, jourDeb, moisDeb, anneeDeb, jourFin, moisFin, anneeFin):
|
|
||||||
newplace = Placement()
|
|
||||||
newplace.setDateDebut(jourDeb, moisDeb, anneeDeb)
|
|
||||||
newplace.setDateFin(jourFin, moisFin, anneeFin)
|
|
||||||
newplace.setEstEnCours(True)
|
|
27
src/m/table.sql
Normal file
27
src/m/table.sql
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
CREATE TABLE parking (
|
||||||
|
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
nom VARCHAR(30),
|
||||||
|
);
|
||||||
|
|
||||||
|
CREATE TABLE place (
|
||||||
|
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
idParking INT UNSIGNED FOREIGN KEY,
|
||||||
|
idType INT UNSIGNED FOREIGN KEY,
|
||||||
|
niveau INT UNSIGNED,
|
||||||
|
numero INT UNSIGNED
|
||||||
|
);
|
||||||
|
|
||||||
|
CREATE TABLE typePlace (
|
||||||
|
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
longueur INT UNSIGNED,
|
||||||
|
hauteur INT UNSIGNED,
|
||||||
|
largeur INT UNSIGNED,
|
||||||
|
estLibre INT(1),
|
||||||
|
estSuperAbo int(1)
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
CREATE TABLE placement (
|
||||||
|
|
||||||
|
);
|
@ -1,4 +1,16 @@
|
|||||||
__author__ = 'sidya'
|
__author__ = 'sidya'
|
||||||
|
|
||||||
|
from nose.tools import assert_equal
|
||||||
|
|
||||||
|
from src.m.Parking import Parking
|
||||||
|
|
||||||
|
|
||||||
class TestParking:
|
class TestParking:
|
||||||
pass
|
def recherchePlace(self):
|
||||||
|
"""
|
||||||
|
Test d'attribution des places
|
||||||
|
"""
|
||||||
|
p = Parking()
|
||||||
|
assert_equal()
|
||||||
|
|
||||||
|
|
||||||
|
0
src/m/test/test.py
Normal file
0
src/m/test/test.py
Normal file
@ -1,10 +1,12 @@
|
|||||||
|
import random
|
||||||
|
import string
|
||||||
|
from src.m.Voiture import Voiture
|
||||||
|
|
||||||
__author__ = 'sidya'
|
__author__ = 'sidya'
|
||||||
|
|
||||||
|
|
||||||
class Camera:
|
class Camera:
|
||||||
def detecterVoiture(self):
|
@classmethod
|
||||||
return True
|
|
||||||
|
|
||||||
def donnerVoiture(self):
|
def donnerVoiture(self):
|
||||||
v = Voiture() # need classe voiture \o/
|
v = Voiture(random.randint(150,300),random.randint(100,200), ''.join(random.choice(string.ascii_uppercase + string.ascii_lowercase + string.digits) for _ in range(random.randint(1,10))))
|
||||||
return v
|
return v
|
||||||
|
@ -1 +1,2 @@
|
|||||||
__author__ = 'sidya'
|
__author__ = 'sidya'
|
||||||
|
|
@ -1,10 +1,8 @@
|
|||||||
__author__ = 'sidya'
|
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Form implementation generated from reading ui file 'borne.ui'
|
# Form implementation generated from reading ui file 'borne.ui'
|
||||||
#
|
#
|
||||||
# Created: Tue Dec 23 18:12:55 2014
|
# Created: Mon Jan 12 14:40:36 2015
|
||||||
# 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!
|
||||||
@ -25,104 +23,137 @@ except AttributeError:
|
|||||||
def _translate(context, text, disambig):
|
def _translate(context, text, disambig):
|
||||||
return QtGui.QApplication.translate(context, text, disambig)
|
return QtGui.QApplication.translate(context, text, disambig)
|
||||||
|
|
||||||
class Borne(object):
|
class Ui_Borne(object):
|
||||||
def setupUi(self, Form):
|
def setupUi(self, Borne):
|
||||||
Form.setObjectName(_fromUtf8("Form"))
|
Borne.setObjectName(_fromUtf8("Borne"))
|
||||||
Form.resize(400, 412)
|
Borne.resize(669, 579)
|
||||||
self.pushButton = QtGui.QPushButton(Form)
|
self.btn_Voiture = QtGui.QPushButton(Borne)
|
||||||
self.pushButton.setGeometry(QtCore.QRect(90, 40, 211, 27))
|
self.btn_Voiture.setGeometry(QtCore.QRect(140, 40, 211, 27))
|
||||||
self.pushButton.setObjectName(_fromUtf8("pushButton"))
|
self.btn_Voiture.setObjectName(_fromUtf8("btn_Voiture"))
|
||||||
self.lcdNumber = QtGui.QLCDNumber(Form)
|
self.nomParking = QtGui.QLabel(Borne)
|
||||||
self.lcdNumber.setGeometry(QtCore.QRect(20, 80, 351, 31))
|
self.nomParking.setGeometry(QtCore.QRect(300, 10, 151, 20))
|
||||||
self.lcdNumber.setObjectName(_fromUtf8("lcdNumber"))
|
self.nomParking.setObjectName(_fromUtf8("nomParking"))
|
||||||
self.label_4 = QtGui.QLabel(Form)
|
self.box_id = QtGui.QGroupBox(Borne)
|
||||||
self.label_4.setGeometry(QtCore.QRect(170, 10, 151, 20))
|
self.box_id.setGeometry(QtCore.QRect(20, 150, 331, 171))
|
||||||
self.label_4.setObjectName(_fromUtf8("label_4"))
|
self.box_id.setObjectName(_fromUtf8("box_id"))
|
||||||
self.widget = QtGui.QWidget(Form)
|
self.layoutWidget = QtGui.QWidget(self.box_id)
|
||||||
self.widget.setGeometry(QtCore.QRect(60, 300, 272, 85))
|
self.layoutWidget.setGeometry(QtCore.QRect(30, 60, 272, 85))
|
||||||
self.widget.setObjectName(_fromUtf8("widget"))
|
self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
|
||||||
self.horizontalLayout = QtGui.QHBoxLayout(self.widget)
|
self.horizontalLayout = QtGui.QHBoxLayout(self.layoutWidget)
|
||||||
self.horizontalLayout.setMargin(0)
|
self.horizontalLayout.setMargin(0)
|
||||||
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
|
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
|
||||||
self.verticalLayout_2 = QtGui.QVBoxLayout()
|
self.verticalLayout_2 = QtGui.QVBoxLayout()
|
||||||
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
|
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
|
||||||
self.label = QtGui.QLabel(self.widget)
|
self.label = QtGui.QLabel(self.layoutWidget)
|
||||||
self.label.setObjectName(_fromUtf8("label"))
|
self.label.setObjectName(_fromUtf8("label"))
|
||||||
self.verticalLayout_2.addWidget(self.label)
|
self.verticalLayout_2.addWidget(self.label)
|
||||||
self.lineEdit = QtGui.QLineEdit(self.widget)
|
self.lineEdit_id = QtGui.QLineEdit(self.layoutWidget)
|
||||||
self.lineEdit.setObjectName(_fromUtf8("lineEdit"))
|
self.lineEdit_id.setObjectName(_fromUtf8("lineEdit_id"))
|
||||||
self.verticalLayout_2.addWidget(self.lineEdit)
|
self.verticalLayout_2.addWidget(self.lineEdit_id)
|
||||||
self.pushButton_2 = QtGui.QPushButton(self.widget)
|
self.btn_validerID = QtGui.QPushButton(self.layoutWidget)
|
||||||
self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
|
self.btn_validerID.setObjectName(_fromUtf8("btn_validerID"))
|
||||||
self.verticalLayout_2.addWidget(self.pushButton_2)
|
self.verticalLayout_2.addWidget(self.btn_validerID)
|
||||||
self.horizontalLayout.addLayout(self.verticalLayout_2)
|
self.horizontalLayout.addLayout(self.verticalLayout_2)
|
||||||
self.verticalLayout = QtGui.QVBoxLayout()
|
self.verticalLayout = QtGui.QVBoxLayout()
|
||||||
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
|
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
|
||||||
self.label_2 = QtGui.QLabel(self.widget)
|
|
||||||
self.label_2.setObjectName(_fromUtf8("label_2"))
|
|
||||||
self.verticalLayout.addWidget(self.label_2)
|
|
||||||
self.pushButton_3 = QtGui.QPushButton(self.widget)
|
|
||||||
self.pushButton_3.setObjectName(_fromUtf8("pushButton_3"))
|
|
||||||
self.verticalLayout.addWidget(self.pushButton_3)
|
|
||||||
self.pushButton_4 = QtGui.QPushButton(self.widget)
|
|
||||||
self.pushButton_4.setObjectName(_fromUtf8("pushButton_4"))
|
|
||||||
self.verticalLayout.addWidget(self.pushButton_4)
|
|
||||||
self.horizontalLayout.addLayout(self.verticalLayout)
|
self.horizontalLayout.addLayout(self.verticalLayout)
|
||||||
self.widget1 = QtGui.QWidget(Form)
|
self.labIdClient = QtGui.QLabel(self.box_id)
|
||||||
self.widget1.setGeometry(QtCore.QRect(70, 130, 261, 91))
|
self.labIdClient.setGeometry(QtCore.QRect(130, 31, 91, 16))
|
||||||
self.widget1.setObjectName(_fromUtf8("widget1"))
|
self.labIdClient.setObjectName(_fromUtf8("labIdClient"))
|
||||||
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.widget1)
|
self.box_abo = QtGui.QGroupBox(Borne)
|
||||||
self.horizontalLayout_2.setMargin(0)
|
self.box_abo.setGeometry(QtCore.QRect(20, 350, 331, 201))
|
||||||
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
|
self.box_abo.setObjectName(_fromUtf8("box_abo"))
|
||||||
self.verticalLayout_5 = QtGui.QVBoxLayout()
|
self.formLayoutWidget = QtGui.QWidget(self.box_abo)
|
||||||
self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
|
self.formLayoutWidget.setGeometry(QtCore.QRect(-1, 40, 291, 91))
|
||||||
self.pushButton_7 = QtGui.QPushButton(self.widget1)
|
self.formLayoutWidget.setObjectName(_fromUtf8("formLayoutWidget"))
|
||||||
self.pushButton_7.setObjectName(_fromUtf8("pushButton_7"))
|
self.formLayout = QtGui.QFormLayout(self.formLayoutWidget)
|
||||||
self.verticalLayout_5.addWidget(self.pushButton_7)
|
self.formLayout.setMargin(0)
|
||||||
self.pushButton_10 = QtGui.QPushButton(self.widget1)
|
self.formLayout.setObjectName(_fromUtf8("formLayout"))
|
||||||
self.pushButton_10.setObjectName(_fromUtf8("pushButton_10"))
|
self.nomLabel = QtGui.QLabel(self.formLayoutWidget)
|
||||||
self.verticalLayout_5.addWidget(self.pushButton_10)
|
self.nomLabel.setObjectName(_fromUtf8("nomLabel"))
|
||||||
self.horizontalLayout_2.addLayout(self.verticalLayout_5)
|
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.nomLabel)
|
||||||
self.verticalLayout_4 = QtGui.QVBoxLayout()
|
self.nomLineEdit = QtGui.QLineEdit(self.formLayoutWidget)
|
||||||
self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
|
self.nomLineEdit.setObjectName(_fromUtf8("nomLineEdit"))
|
||||||
self.pushButton_8 = QtGui.QPushButton(self.widget1)
|
self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.nomLineEdit)
|
||||||
self.pushButton_8.setObjectName(_fromUtf8("pushButton_8"))
|
self.prenomLabel = QtGui.QLabel(self.formLayoutWidget)
|
||||||
self.verticalLayout_4.addWidget(self.pushButton_8)
|
self.prenomLabel.setObjectName(_fromUtf8("prenomLabel"))
|
||||||
self.pushButton_9 = QtGui.QPushButton(self.widget1)
|
self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.prenomLabel)
|
||||||
self.pushButton_9.setObjectName(_fromUtf8("pushButton_9"))
|
self.numeroCarteLabel = QtGui.QLabel(self.formLayoutWidget)
|
||||||
self.verticalLayout_4.addWidget(self.pushButton_9)
|
self.numeroCarteLabel.setObjectName(_fromUtf8("numeroCarteLabel"))
|
||||||
self.horizontalLayout_2.addLayout(self.verticalLayout_4)
|
self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.numeroCarteLabel)
|
||||||
|
self.numeroCarteLineEdit = QtGui.QLineEdit(self.formLayoutWidget)
|
||||||
|
self.numeroCarteLineEdit.setObjectName(_fromUtf8("numeroCarteLineEdit"))
|
||||||
|
self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.numeroCarteLineEdit)
|
||||||
|
self.prenomLineEdit = QtGui.QLineEdit(self.formLayoutWidget)
|
||||||
|
self.prenomLineEdit.setObjectName(_fromUtf8("prenomLineEdit"))
|
||||||
|
self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.prenomLineEdit)
|
||||||
|
self.checkBox = QtGui.QCheckBox(self.box_abo)
|
||||||
|
self.checkBox.setGeometry(QtCore.QRect(0, 140, 121, 20))
|
||||||
|
self.checkBox.setObjectName(_fromUtf8("checkBox"))
|
||||||
|
self.btn_valider_abo = QtGui.QPushButton(self.box_abo)
|
||||||
|
self.btn_valider_abo.setGeometry(QtCore.QRect(210, 160, 87, 27))
|
||||||
|
self.btn_valider_abo.setObjectName(_fromUtf8("btn_valider_abo"))
|
||||||
|
self.btn_desabo = QtGui.QPushButton(self.box_abo)
|
||||||
|
self.btn_desabo.setGeometry(QtCore.QRect(120, 160, 87, 27))
|
||||||
|
self.btn_desabo.setObjectName(_fromUtf8("btn_desabo"))
|
||||||
|
self.box_recup = QtGui.QGroupBox(Borne)
|
||||||
|
self.box_recup.setGeometry(QtCore.QRect(380, 350, 271, 121))
|
||||||
|
self.box_recup.setObjectName(_fromUtf8("box_recup"))
|
||||||
|
self.formLayoutWidget_2 = QtGui.QWidget(self.box_recup)
|
||||||
|
self.formLayoutWidget_2.setGeometry(QtCore.QRect(0, 40, 261, 80))
|
||||||
|
self.formLayoutWidget_2.setObjectName(_fromUtf8("formLayoutWidget_2"))
|
||||||
|
self.formLayout_2 = QtGui.QFormLayout(self.formLayoutWidget_2)
|
||||||
|
self.formLayout_2.setMargin(0)
|
||||||
|
self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
|
||||||
|
self.numeroTicketLabel = QtGui.QLabel(self.formLayoutWidget_2)
|
||||||
|
self.numeroTicketLabel.setObjectName(_fromUtf8("numeroTicketLabel"))
|
||||||
|
self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.numeroTicketLabel)
|
||||||
|
self.numeroTicketLineEdit = QtGui.QLineEdit(self.formLayoutWidget_2)
|
||||||
|
self.numeroTicketLineEdit.setObjectName(_fromUtf8("numeroTicketLineEdit"))
|
||||||
|
self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole, self.numeroTicketLineEdit)
|
||||||
|
self.btn_recuperer = QtGui.QPushButton(self.formLayoutWidget_2)
|
||||||
|
self.btn_recuperer.setObjectName(_fromUtf8("btn_recuperer"))
|
||||||
|
self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole, self.btn_recuperer)
|
||||||
|
self.label_aff = QtGui.QLabel(Borne)
|
||||||
|
self.label_aff.setGeometry(QtCore.QRect(10, 90, 641, 31))
|
||||||
|
self.label_aff.setObjectName(_fromUtf8("label_aff"))
|
||||||
|
self.box_garer = QtGui.QGroupBox(Borne)
|
||||||
|
self.box_garer.setGeometry(QtCore.QRect(390, 150, 231, 131))
|
||||||
|
self.box_garer.setObjectName(_fromUtf8("box_garer"))
|
||||||
|
self.btn_garer = QtGui.QPushButton(self.box_garer)
|
||||||
|
self.btn_garer.setGeometry(QtCore.QRect(50, 60, 131, 27))
|
||||||
|
self.btn_garer.setObjectName(_fromUtf8("btn_garer"))
|
||||||
|
self.btn_annuler = QtGui.QPushButton(Borne)
|
||||||
|
self.btn_annuler.setGeometry(QtCore.QRect(390, 40, 87, 27))
|
||||||
|
self.btn_annuler.setObjectName(_fromUtf8("btn_annuler"))
|
||||||
|
self.btn_quitter = QtGui.QPushButton(Borne)
|
||||||
|
self.btn_quitter.setGeometry(QtCore.QRect(520, 540, 87, 27))
|
||||||
|
self.btn_quitter.setObjectName(_fromUtf8("btn_quitter"))
|
||||||
|
|
||||||
self.retranslateUi(Form)
|
self.retranslateUi(Borne)
|
||||||
QtCore.QMetaObject.connectSlotsByName(Form)
|
QtCore.QMetaObject.connectSlotsByName(Borne)
|
||||||
|
|
||||||
def retranslateUi(self, Form):
|
def retranslateUi(self, Borne):
|
||||||
Form.setWindowTitle(_translate("Form", "Form", None))
|
Borne.setWindowTitle(_translate("Borne", "Borne", None))
|
||||||
self.pushButton.setText(_translate("Form", "Detection Arrivee Voiture", None))
|
self.btn_Voiture.setText(_translate("Borne", "Detection Arrivee Voiture", None))
|
||||||
self.label_4.setText(_translate("Form", "NomParking", None))
|
self.nomParking.setText(_translate("Borne", "NomParking", None))
|
||||||
self.label.setText(_translate("Form", "Carte Membre ID ", None))
|
self.box_id.setTitle(_translate("Borne", "Identification", None))
|
||||||
self.pushButton_2.setText(_translate("Form", "Valider", None))
|
self.label.setText(_translate("Borne", "Carte Membre ID ", None))
|
||||||
self.label_2.setText(_translate("Form", "Non membre", None))
|
self.btn_validerID.setText(_translate("Borne", "Valider", None))
|
||||||
self.pushButton_3.setText(_translate("Form", "Valider", None))
|
self.labIdClient.setText(_translate("Borne", "Non identifier", None))
|
||||||
self.pushButton_4.setText(_translate("Form", "PayerAvecCarte", None))
|
self.box_abo.setTitle(_translate("Borne", "S\'abonner", None))
|
||||||
self.pushButton_7.setText(_translate("Form", "<", None))
|
self.nomLabel.setText(_translate("Borne", "Nom", None))
|
||||||
self.pushButton_10.setText(_translate("Form", "Annuler", None))
|
self.prenomLabel.setText(_translate("Borne", "Prenom", None))
|
||||||
self.pushButton_8.setText(_translate("Form", ">", None))
|
self.numeroCarteLabel.setText(_translate("Borne", "Numero carte", None))
|
||||||
self.pushButton_9.setText(_translate("Form", "Valider", None))
|
self.checkBox.setText(_translate("Borne", "PackGarantie", None))
|
||||||
|
self.btn_valider_abo.setText(_translate("Borne", "Valider", None))
|
||||||
|
self.btn_desabo.setText(_translate("Borne", "Désabonner", None))
|
||||||
|
self.box_recup.setTitle(_translate("Borne", "Récuperer", None))
|
||||||
|
self.numeroTicketLabel.setText(_translate("Borne", "Numero Ticket :", None))
|
||||||
|
self.btn_recuperer.setText(_translate("Borne", "Récupérer Véhicule", None))
|
||||||
|
self.label_aff.setText(_translate("Borne", "<html><head/><body><p align=\"center\">TextLabel</p></body></html>", None))
|
||||||
|
self.box_garer.setTitle(_translate("Borne", "Se garer", None))
|
||||||
|
self.btn_garer.setText(_translate("Borne", "Garer Véhicule", None))
|
||||||
|
self.btn_annuler.setText(_translate("Borne", "Annuler", None))
|
||||||
|
self.btn_quitter.setText(_translate("Borne", "Quitter", None))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def delivrerTicket(self, client):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def proposerService(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def proposerAbonnement(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def recupererInfosCarte(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def proposerTypePaiement(self):
|
|
||||||
pass
|
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Form implementation generated from reading ui file 'creationParking.ui'
|
# Form implementation generated from reading ui file 'creationParking.ui'
|
||||||
#
|
#
|
||||||
# Created: Fri Dec 26 21:22:48 2014
|
# Created: Mon Jan 5 16:57:56 2015
|
||||||
# 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!
|
||||||
@ -17,12 +17,14 @@ except AttributeError:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
_encoding = QtGui.QApplication.UnicodeUTF8
|
_encoding = QtGui.QApplication.UnicodeUTF8
|
||||||
|
|
||||||
def _translate(context, text, disambig):
|
def _translate(context, text, disambig):
|
||||||
return QtGui.QApplication.translate(context, text, disambig, _encoding)
|
return QtGui.QApplication.translate(context, text, disambig, _encoding)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
def _translate(context, text, disambig):
|
def _translate(context, text, disambig):
|
||||||
return QtGui.QApplication.translate(context, text, disambig)
|
return QtGui.QApplication.translate(context, text, disambig)
|
||||||
|
|
||||||
|
|
||||||
class Ui_CreaParking(object):
|
class Ui_CreaParking(object):
|
||||||
def setupUi(self, CreaParking):
|
def setupUi(self, CreaParking):
|
||||||
CreaParking.setObjectName(_fromUtf8("CreaParking"))
|
CreaParking.setObjectName(_fromUtf8("CreaParking"))
|
||||||
@ -52,7 +54,7 @@ class Ui_CreaParking(object):
|
|||||||
self.nbPlacesTotal.setObjectName(_fromUtf8("nbPlacesTotal"))
|
self.nbPlacesTotal.setObjectName(_fromUtf8("nbPlacesTotal"))
|
||||||
self.horizontalLayout_3.addWidget(self.nbPlacesTotal)
|
self.horizontalLayout_3.addWidget(self.nbPlacesTotal)
|
||||||
self.tableWidget = QtGui.QTableWidget(CreaParking)
|
self.tableWidget = QtGui.QTableWidget(CreaParking)
|
||||||
self.tableWidget.setGeometry(QtCore.QRect(10, 100, 301, 121))
|
self.tableWidget.setGeometry(QtCore.QRect(10, 90, 321, 121))
|
||||||
self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
|
self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
|
||||||
self.tableWidget.setColumnCount(3)
|
self.tableWidget.setColumnCount(3)
|
||||||
self.tableWidget.setRowCount(0)
|
self.tableWidget.setRowCount(0)
|
||||||
@ -63,41 +65,37 @@ class Ui_CreaParking(object):
|
|||||||
item = QtGui.QTableWidgetItem()
|
item = QtGui.QTableWidgetItem()
|
||||||
self.tableWidget.setHorizontalHeaderItem(2, item)
|
self.tableWidget.setHorizontalHeaderItem(2, item)
|
||||||
self.btn_addRow = QtGui.QPushButton(CreaParking)
|
self.btn_addRow = QtGui.QPushButton(CreaParking)
|
||||||
self.btn_addRow.setGeometry(QtCore.QRect(330, 120, 41, 27))
|
self.btn_addRow.setGeometry(QtCore.QRect(350, 120, 41, 27))
|
||||||
self.btn_addRow.setObjectName(_fromUtf8("btn_addRow"))
|
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 = QtGui.QPushButton(CreaParking)
|
||||||
self.btn_rmRow.setGeometry(QtCore.QRect(330, 160, 41, 27))
|
self.btn_rmRow.setGeometry(QtCore.QRect(350, 160, 41, 27))
|
||||||
self.btn_rmRow.setObjectName(_fromUtf8("btn_rmRow"))
|
self.btn_rmRow.setObjectName(_fromUtf8("btn_rmRow"))
|
||||||
self.widget = QtGui.QWidget(CreaParking)
|
self.layoutWidget2 = QtGui.QWidget(CreaParking)
|
||||||
self.widget.setGeometry(QtCore.QRect(52, 12, 291, 56))
|
self.layoutWidget2.setGeometry(QtCore.QRect(52, 12, 291, 56))
|
||||||
self.widget.setObjectName(_fromUtf8("widget"))
|
self.layoutWidget2.setObjectName(_fromUtf8("layoutWidget2"))
|
||||||
self.horizontalLayout = QtGui.QHBoxLayout(self.widget)
|
self.horizontalLayout = QtGui.QHBoxLayout(self.layoutWidget2)
|
||||||
self.horizontalLayout.setMargin(0)
|
self.horizontalLayout.setMargin(0)
|
||||||
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
|
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
|
||||||
self.verticalLayout = QtGui.QVBoxLayout()
|
self.verticalLayout = QtGui.QVBoxLayout()
|
||||||
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
|
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
|
||||||
self.label = QtGui.QLabel(self.widget)
|
self.label = QtGui.QLabel(self.layoutWidget2)
|
||||||
self.label.setObjectName(_fromUtf8("label"))
|
self.label.setObjectName(_fromUtf8("label"))
|
||||||
self.verticalLayout.addWidget(self.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.horizontalLayout.addLayout(self.verticalLayout)
|
||||||
self.verticalLayout_2 = QtGui.QVBoxLayout()
|
self.verticalLayout_2 = QtGui.QVBoxLayout()
|
||||||
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
|
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
|
||||||
self.lineEdit_nom = QtGui.QLineEdit(self.widget)
|
self.lineEdit_nom = QtGui.QLineEdit(self.layoutWidget2)
|
||||||
self.lineEdit_nom.setObjectName(_fromUtf8("lineEdit_nom"))
|
self.lineEdit_nom.setObjectName(_fromUtf8("lineEdit_nom"))
|
||||||
self.verticalLayout_2.addWidget(self.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.horizontalLayout.addLayout(self.verticalLayout_2)
|
||||||
|
|
||||||
self.retranslateUi(CreaParking)
|
self.retranslateUi(CreaParking)
|
||||||
QtCore.QMetaObject.connectSlotsByName(CreaParking)
|
QtCore.QMetaObject.connectSlotsByName(CreaParking)
|
||||||
|
CreaParking.setTabOrder(self.lineEdit_nom, self.tableWidget)
|
||||||
|
CreaParking.setTabOrder(self.tableWidget, self.btn_addRow)
|
||||||
|
CreaParking.setTabOrder(self.btn_addRow, self.btn_rmRow)
|
||||||
|
CreaParking.setTabOrder(self.btn_rmRow, self.btn_annuler)
|
||||||
|
CreaParking.setTabOrder(self.btn_annuler, self.btn_valider)
|
||||||
|
|
||||||
def retranslateUi(self, CreaParking):
|
def retranslateUi(self, CreaParking):
|
||||||
CreaParking.setWindowTitle(_translate("CreaParking", "Creation Parking", None))
|
CreaParking.setWindowTitle(_translate("CreaParking", "Creation Parking", None))
|
||||||
@ -112,8 +110,6 @@ class Ui_CreaParking(object):
|
|||||||
item = self.tableWidget.horizontalHeaderItem(2)
|
item = self.tableWidget.horizontalHeaderItem(2)
|
||||||
item.setText(_translate("CreaParking", "Nombre", None))
|
item.setText(_translate("CreaParking", "Nombre", None))
|
||||||
self.btn_addRow.setText(_translate("CreaParking", "+", 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.btn_rmRow.setText(_translate("CreaParking", "-", None))
|
||||||
self.label.setText(_translate("CreaParking", "Nom :", None))
|
self.label.setText(_translate("CreaParking", "Nom :", None))
|
||||||
self.label_2.setText(_translate("CreaParking", "Nombre de niveaux :", None))
|
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Form implementation generated from reading ui file 'main.ui'
|
# Form implementation generated from reading ui file 'main.ui'
|
||||||
#
|
#
|
||||||
# Created: Fri Dec 26 17:32:35 2014
|
# Created: Mon Jan 12 15:29:56 2015
|
||||||
# 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(561, 479)
|
MainWindow.resize(561, 509)
|
||||||
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)
|
||||||
@ -49,37 +49,32 @@ class Ui_MainWindow(object):
|
|||||||
self.comboBox.setObjectName(_fromUtf8("comboBox"))
|
self.comboBox.setObjectName(_fromUtf8("comboBox"))
|
||||||
self.verticalLayout.addWidget(self.comboBox)
|
self.verticalLayout.addWidget(self.comboBox)
|
||||||
self.formLayout_3 = QtGui.QFormLayout()
|
self.formLayout_3 = QtGui.QFormLayout()
|
||||||
|
self.formLayout_3.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
|
||||||
self.formLayout_3.setObjectName(_fromUtf8("formLayout_3"))
|
self.formLayout_3.setObjectName(_fromUtf8("formLayout_3"))
|
||||||
self.label_13 = QtGui.QLabel(self.tab_2)
|
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.tab_2)
|
|
||||||
self.label_14.setObjectName(_fromUtf8("label_14"))
|
|
||||||
self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_14)
|
|
||||||
self.label_15 = QtGui.QLabel(self.tab_2)
|
|
||||||
self.label_15.setObjectName(_fromUtf8("label_15"))
|
|
||||||
self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_15)
|
|
||||||
self.label_16 = QtGui.QLabel(self.tab_2)
|
|
||||||
self.label_16.setObjectName(_fromUtf8("label_16"))
|
|
||||||
self.formLayout_3.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_16)
|
|
||||||
self.label_17 = QtGui.QLabel(self.tab_2)
|
|
||||||
self.label_17.setObjectName(_fromUtf8("label_17"))
|
|
||||||
self.formLayout_3.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_17)
|
|
||||||
self.nom = QtGui.QLabel(self.tab_2)
|
self.nom = QtGui.QLabel(self.tab_2)
|
||||||
self.nom.setObjectName(_fromUtf8("nom"))
|
self.nom.setObjectName(_fromUtf8("nom"))
|
||||||
self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole, self.nom)
|
self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole, self.nom)
|
||||||
self.niveau = QtGui.QLabel(self.tab_2)
|
self.label_15 = QtGui.QLabel(self.tab_2)
|
||||||
self.niveau.setObjectName(_fromUtf8("niveau"))
|
self.label_15.setObjectName(_fromUtf8("label_15"))
|
||||||
self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.niveau)
|
self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_15)
|
||||||
self.placesParNiveau = QtGui.QLabel(self.tab_2)
|
self.placesParNiveau = QtGui.QLabel(self.tab_2)
|
||||||
self.placesParNiveau.setObjectName(_fromUtf8("placesParNiveau"))
|
self.placesParNiveau.setObjectName(_fromUtf8("placesParNiveau"))
|
||||||
self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole, self.placesParNiveau)
|
self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.placesParNiveau)
|
||||||
|
self.label_16 = QtGui.QLabel(self.tab_2)
|
||||||
|
self.label_16.setObjectName(_fromUtf8("label_16"))
|
||||||
|
self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_16)
|
||||||
self.placesDispo = QtGui.QLabel(self.tab_2)
|
self.placesDispo = QtGui.QLabel(self.tab_2)
|
||||||
self.placesDispo.setObjectName(_fromUtf8("placesDispo"))
|
self.placesDispo.setObjectName(_fromUtf8("placesDispo"))
|
||||||
self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole, self.placesDispo)
|
self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole, self.placesDispo)
|
||||||
|
self.label_17 = QtGui.QLabel(self.tab_2)
|
||||||
|
self.label_17.setObjectName(_fromUtf8("label_17"))
|
||||||
|
self.formLayout_3.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_17)
|
||||||
self.placesSuperAbo = QtGui.QLabel(self.tab_2)
|
self.placesSuperAbo = QtGui.QLabel(self.tab_2)
|
||||||
self.placesSuperAbo.setObjectName(_fromUtf8("placesSuperAbo"))
|
self.placesSuperAbo.setObjectName(_fromUtf8("placesSuperAbo"))
|
||||||
self.formLayout_3.setWidget(4, QtGui.QFormLayout.FieldRole, self.placesSuperAbo)
|
self.formLayout_3.setWidget(3, 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"))
|
||||||
@ -93,9 +88,6 @@ class Ui_MainWindow(object):
|
|||||||
self.btn_creer = QtGui.QPushButton(self.tab_2)
|
self.btn_creer = QtGui.QPushButton(self.tab_2)
|
||||||
self.btn_creer.setObjectName(_fromUtf8("btn_creer"))
|
self.btn_creer.setObjectName(_fromUtf8("btn_creer"))
|
||||||
self.verticalLayout.addWidget(self.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 = QtGui.QPushButton(self.tab_2)
|
||||||
self.btn_supprimer.setObjectName(_fromUtf8("btn_supprimer"))
|
self.btn_supprimer.setObjectName(_fromUtf8("btn_supprimer"))
|
||||||
self.verticalLayout.addWidget(self.btn_supprimer)
|
self.verticalLayout.addWidget(self.btn_supprimer)
|
||||||
@ -105,8 +97,10 @@ class Ui_MainWindow(object):
|
|||||||
self.tableWidget = QtGui.QTableWidget(self.tab_5)
|
self.tableWidget = QtGui.QTableWidget(self.tab_5)
|
||||||
self.tableWidget.setGeometry(QtCore.QRect(60, 20, 431, 351))
|
self.tableWidget.setGeometry(QtCore.QRect(60, 20, 431, 351))
|
||||||
self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
|
self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
|
||||||
self.tableWidget.setColumnCount(0)
|
self.tableWidget.setColumnCount(1)
|
||||||
self.tableWidget.setRowCount(0)
|
self.tableWidget.setRowCount(0)
|
||||||
|
item = QtGui.QTableWidgetItem()
|
||||||
|
self.tableWidget.setHorizontalHeaderItem(0, item)
|
||||||
self.tabWidget.addTab(self.tab_5, _fromUtf8(""))
|
self.tabWidget.addTab(self.tab_5, _fromUtf8(""))
|
||||||
self.tab_3 = QtGui.QWidget()
|
self.tab_3 = QtGui.QWidget()
|
||||||
self.tab_3.setObjectName(_fromUtf8("tab_3"))
|
self.tab_3.setObjectName(_fromUtf8("tab_3"))
|
||||||
@ -158,21 +152,20 @@ class Ui_MainWindow(object):
|
|||||||
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_15.setText(_translate("MainWindow", "Places / niveau :", None))
|
|
||||||
self.label_16.setText(_translate("MainWindow", "Places disponible :", None))
|
|
||||||
self.label_17.setText(_translate("MainWindow", "Places Reserve Super Abo : ", None))
|
|
||||||
self.nom.setText(_translate("MainWindow", "TextLabel", None))
|
self.nom.setText(_translate("MainWindow", "TextLabel", None))
|
||||||
self.niveau.setText(_translate("MainWindow", "TextLabel", None))
|
self.label_15.setText(_translate("MainWindow", "Places total:", None))
|
||||||
self.placesParNiveau.setText(_translate("MainWindow", "TextLabel", None))
|
self.placesParNiveau.setText(_translate("MainWindow", "TextLabel", None))
|
||||||
|
self.label_16.setText(_translate("MainWindow", "Places disponible :", None))
|
||||||
self.placesDispo.setText(_translate("MainWindow", "TextLabel", None))
|
self.placesDispo.setText(_translate("MainWindow", "TextLabel", None))
|
||||||
|
self.label_17.setText(_translate("MainWindow", "Places Reserve Super Abo : ", None))
|
||||||
self.placesSuperAbo.setText(_translate("MainWindow", "TextLabel", None))
|
self.placesSuperAbo.setText(_translate("MainWindow", "TextLabel", None))
|
||||||
self.btn_details.setText(_translate("MainWindow", "Details Places", None))
|
self.btn_details.setText(_translate("MainWindow", "Details Places", None))
|
||||||
self.btn_borne.setText(_translate("MainWindow", "Borne", None))
|
self.btn_borne.setText(_translate("MainWindow", "Borne", None))
|
||||||
self.btn_creer.setText(_translate("MainWindow", "Créer", 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.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))
|
||||||
|
item = self.tableWidget.horizontalHeaderItem(0)
|
||||||
|
item.setText(_translate("MainWindow", "Nouvelle colonne", 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))
|
||||||
self.menuFichier.setTitle(_translate("MainWindow", "Fichier", None))
|
self.menuFichier.setTitle(_translate("MainWindow", "Fichier", None))
|
||||||
|
@ -1 +0,0 @@
|
|||||||
__author__ = 'sidya'
|
|
@ -1,14 +0,0 @@
|
|||||||
from src.m.camera import Camera
|
|
||||||
|
|
||||||
__author__ = 'sidya'
|
|
||||||
|
|
||||||
from nose.tools import assert_equal
|
|
||||||
from nose.tools import assert_not_equal
|
|
||||||
from nose.tools import assert_raises
|
|
||||||
from nose.tools import raises
|
|
||||||
|
|
||||||
|
|
||||||
class testCamera:
|
|
||||||
def test_TailleMax(self):
|
|
||||||
c = Camera()
|
|
||||||
assert_equal(c.capturerHauteur()<2.5)
|
|
@ -1,4 +0,0 @@
|
|||||||
__author__ = 'sidya'
|
|
||||||
|
|
||||||
class TestPanneau:
|
|
||||||
pass
|
|
171
ui/borne.py
171
ui/borne.py
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Form implementation generated from reading ui file 'borne.ui'
|
# Form implementation generated from reading ui file 'borne.ui'
|
||||||
#
|
#
|
||||||
# Created: Fri Dec 26 17:48:52 2014
|
# Created: Mon Jan 12 14:40:36 2015
|
||||||
# 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!
|
||||||
@ -23,21 +23,21 @@ except AttributeError:
|
|||||||
def _translate(context, text, disambig):
|
def _translate(context, text, disambig):
|
||||||
return QtGui.QApplication.translate(context, text, disambig)
|
return QtGui.QApplication.translate(context, text, disambig)
|
||||||
|
|
||||||
class Ui_Form(object):
|
class Ui_Borne(object):
|
||||||
def setupUi(self, Form):
|
def setupUi(self, Borne):
|
||||||
Form.setObjectName(_fromUtf8("Form"))
|
Borne.setObjectName(_fromUtf8("Borne"))
|
||||||
Form.resize(400, 412)
|
Borne.resize(669, 579)
|
||||||
self.btn_Voiture = QtGui.QPushButton(Form)
|
self.btn_Voiture = QtGui.QPushButton(Borne)
|
||||||
self.btn_Voiture.setGeometry(QtCore.QRect(90, 40, 211, 27))
|
self.btn_Voiture.setGeometry(QtCore.QRect(140, 40, 211, 27))
|
||||||
self.btn_Voiture.setObjectName(_fromUtf8("btn_Voiture"))
|
self.btn_Voiture.setObjectName(_fromUtf8("btn_Voiture"))
|
||||||
self.lcdNumber = QtGui.QLCDNumber(Form)
|
self.nomParking = QtGui.QLabel(Borne)
|
||||||
self.lcdNumber.setGeometry(QtCore.QRect(20, 80, 351, 31))
|
self.nomParking.setGeometry(QtCore.QRect(300, 10, 151, 20))
|
||||||
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.nomParking.setObjectName(_fromUtf8("nomParking"))
|
||||||
self.layoutWidget = QtGui.QWidget(Form)
|
self.box_id = QtGui.QGroupBox(Borne)
|
||||||
self.layoutWidget.setGeometry(QtCore.QRect(60, 300, 272, 85))
|
self.box_id.setGeometry(QtCore.QRect(20, 150, 331, 171))
|
||||||
|
self.box_id.setObjectName(_fromUtf8("box_id"))
|
||||||
|
self.layoutWidget = QtGui.QWidget(self.box_id)
|
||||||
|
self.layoutWidget.setGeometry(QtCore.QRect(30, 60, 272, 85))
|
||||||
self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
|
self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
|
||||||
self.horizontalLayout = QtGui.QHBoxLayout(self.layoutWidget)
|
self.horizontalLayout = QtGui.QHBoxLayout(self.layoutWidget)
|
||||||
self.horizontalLayout.setMargin(0)
|
self.horizontalLayout.setMargin(0)
|
||||||
@ -56,55 +56,104 @@ class Ui_Form(object):
|
|||||||
self.horizontalLayout.addLayout(self.verticalLayout_2)
|
self.horizontalLayout.addLayout(self.verticalLayout_2)
|
||||||
self.verticalLayout = QtGui.QVBoxLayout()
|
self.verticalLayout = QtGui.QVBoxLayout()
|
||||||
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
|
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.horizontalLayout.addLayout(self.verticalLayout)
|
||||||
self.layoutWidget1 = QtGui.QWidget(Form)
|
self.labIdClient = QtGui.QLabel(self.box_id)
|
||||||
self.layoutWidget1.setGeometry(QtCore.QRect(70, 130, 261, 91))
|
self.labIdClient.setGeometry(QtCore.QRect(130, 31, 91, 16))
|
||||||
self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
|
self.labIdClient.setObjectName(_fromUtf8("labIdClient"))
|
||||||
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.layoutWidget1)
|
self.box_abo = QtGui.QGroupBox(Borne)
|
||||||
self.horizontalLayout_2.setMargin(0)
|
self.box_abo.setGeometry(QtCore.QRect(20, 350, 331, 201))
|
||||||
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
|
self.box_abo.setObjectName(_fromUtf8("box_abo"))
|
||||||
self.verticalLayout_5 = QtGui.QVBoxLayout()
|
self.formLayoutWidget = QtGui.QWidget(self.box_abo)
|
||||||
self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
|
self.formLayoutWidget.setGeometry(QtCore.QRect(-1, 40, 291, 91))
|
||||||
self.btn_precedent = QtGui.QPushButton(self.layoutWidget1)
|
self.formLayoutWidget.setObjectName(_fromUtf8("formLayoutWidget"))
|
||||||
self.btn_precedent.setObjectName(_fromUtf8("btn_precedent"))
|
self.formLayout = QtGui.QFormLayout(self.formLayoutWidget)
|
||||||
self.verticalLayout_5.addWidget(self.btn_precedent)
|
self.formLayout.setMargin(0)
|
||||||
self.btn_annuler = QtGui.QPushButton(self.layoutWidget1)
|
self.formLayout.setObjectName(_fromUtf8("formLayout"))
|
||||||
|
self.nomLabel = QtGui.QLabel(self.formLayoutWidget)
|
||||||
|
self.nomLabel.setObjectName(_fromUtf8("nomLabel"))
|
||||||
|
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.nomLabel)
|
||||||
|
self.nomLineEdit = QtGui.QLineEdit(self.formLayoutWidget)
|
||||||
|
self.nomLineEdit.setObjectName(_fromUtf8("nomLineEdit"))
|
||||||
|
self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.nomLineEdit)
|
||||||
|
self.prenomLabel = QtGui.QLabel(self.formLayoutWidget)
|
||||||
|
self.prenomLabel.setObjectName(_fromUtf8("prenomLabel"))
|
||||||
|
self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.prenomLabel)
|
||||||
|
self.numeroCarteLabel = QtGui.QLabel(self.formLayoutWidget)
|
||||||
|
self.numeroCarteLabel.setObjectName(_fromUtf8("numeroCarteLabel"))
|
||||||
|
self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.numeroCarteLabel)
|
||||||
|
self.numeroCarteLineEdit = QtGui.QLineEdit(self.formLayoutWidget)
|
||||||
|
self.numeroCarteLineEdit.setObjectName(_fromUtf8("numeroCarteLineEdit"))
|
||||||
|
self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.numeroCarteLineEdit)
|
||||||
|
self.prenomLineEdit = QtGui.QLineEdit(self.formLayoutWidget)
|
||||||
|
self.prenomLineEdit.setObjectName(_fromUtf8("prenomLineEdit"))
|
||||||
|
self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.prenomLineEdit)
|
||||||
|
self.checkBox = QtGui.QCheckBox(self.box_abo)
|
||||||
|
self.checkBox.setGeometry(QtCore.QRect(0, 140, 121, 20))
|
||||||
|
self.checkBox.setObjectName(_fromUtf8("checkBox"))
|
||||||
|
self.btn_valider_abo = QtGui.QPushButton(self.box_abo)
|
||||||
|
self.btn_valider_abo.setGeometry(QtCore.QRect(210, 160, 87, 27))
|
||||||
|
self.btn_valider_abo.setObjectName(_fromUtf8("btn_valider_abo"))
|
||||||
|
self.btn_desabo = QtGui.QPushButton(self.box_abo)
|
||||||
|
self.btn_desabo.setGeometry(QtCore.QRect(120, 160, 87, 27))
|
||||||
|
self.btn_desabo.setObjectName(_fromUtf8("btn_desabo"))
|
||||||
|
self.box_recup = QtGui.QGroupBox(Borne)
|
||||||
|
self.box_recup.setGeometry(QtCore.QRect(380, 350, 271, 121))
|
||||||
|
self.box_recup.setObjectName(_fromUtf8("box_recup"))
|
||||||
|
self.formLayoutWidget_2 = QtGui.QWidget(self.box_recup)
|
||||||
|
self.formLayoutWidget_2.setGeometry(QtCore.QRect(0, 40, 261, 80))
|
||||||
|
self.formLayoutWidget_2.setObjectName(_fromUtf8("formLayoutWidget_2"))
|
||||||
|
self.formLayout_2 = QtGui.QFormLayout(self.formLayoutWidget_2)
|
||||||
|
self.formLayout_2.setMargin(0)
|
||||||
|
self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
|
||||||
|
self.numeroTicketLabel = QtGui.QLabel(self.formLayoutWidget_2)
|
||||||
|
self.numeroTicketLabel.setObjectName(_fromUtf8("numeroTicketLabel"))
|
||||||
|
self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.numeroTicketLabel)
|
||||||
|
self.numeroTicketLineEdit = QtGui.QLineEdit(self.formLayoutWidget_2)
|
||||||
|
self.numeroTicketLineEdit.setObjectName(_fromUtf8("numeroTicketLineEdit"))
|
||||||
|
self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole, self.numeroTicketLineEdit)
|
||||||
|
self.btn_recuperer = QtGui.QPushButton(self.formLayoutWidget_2)
|
||||||
|
self.btn_recuperer.setObjectName(_fromUtf8("btn_recuperer"))
|
||||||
|
self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole, self.btn_recuperer)
|
||||||
|
self.label_aff = QtGui.QLabel(Borne)
|
||||||
|
self.label_aff.setGeometry(QtCore.QRect(10, 90, 641, 31))
|
||||||
|
self.label_aff.setObjectName(_fromUtf8("label_aff"))
|
||||||
|
self.box_garer = QtGui.QGroupBox(Borne)
|
||||||
|
self.box_garer.setGeometry(QtCore.QRect(390, 150, 231, 131))
|
||||||
|
self.box_garer.setObjectName(_fromUtf8("box_garer"))
|
||||||
|
self.btn_garer = QtGui.QPushButton(self.box_garer)
|
||||||
|
self.btn_garer.setGeometry(QtCore.QRect(50, 60, 131, 27))
|
||||||
|
self.btn_garer.setObjectName(_fromUtf8("btn_garer"))
|
||||||
|
self.btn_annuler = QtGui.QPushButton(Borne)
|
||||||
|
self.btn_annuler.setGeometry(QtCore.QRect(390, 40, 87, 27))
|
||||||
self.btn_annuler.setObjectName(_fromUtf8("btn_annuler"))
|
self.btn_annuler.setObjectName(_fromUtf8("btn_annuler"))
|
||||||
self.verticalLayout_5.addWidget(self.btn_annuler)
|
self.btn_quitter = QtGui.QPushButton(Borne)
|
||||||
self.horizontalLayout_2.addLayout(self.verticalLayout_5)
|
self.btn_quitter.setGeometry(QtCore.QRect(520, 540, 87, 27))
|
||||||
self.verticalLayout_4 = QtGui.QVBoxLayout()
|
self.btn_quitter.setObjectName(_fromUtf8("btn_quitter"))
|
||||||
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)
|
self.retranslateUi(Borne)
|
||||||
QtCore.QMetaObject.connectSlotsByName(Form)
|
QtCore.QMetaObject.connectSlotsByName(Borne)
|
||||||
|
|
||||||
def retranslateUi(self, Form):
|
def retranslateUi(self, Borne):
|
||||||
Form.setWindowTitle(_translate("Form", "Borne", None))
|
Borne.setWindowTitle(_translate("Borne", "Borne", None))
|
||||||
self.btn_Voiture.setText(_translate("Form", "Detection Arrivee Voiture", None))
|
self.btn_Voiture.setText(_translate("Borne", "Detection Arrivee Voiture", None))
|
||||||
self.nomParking.setText(_translate("Form", "NomParking", None))
|
self.nomParking.setText(_translate("Borne", "NomParking", None))
|
||||||
self.label.setText(_translate("Form", "Carte Membre ID ", None))
|
self.box_id.setTitle(_translate("Borne", "Identification", None))
|
||||||
self.btn_validerID.setText(_translate("Form", "Valider", None))
|
self.label.setText(_translate("Borne", "Carte Membre ID ", None))
|
||||||
self.label_2.setText(_translate("Form", "Non membre", None))
|
self.btn_validerID.setText(_translate("Borne", "Valider", None))
|
||||||
self.btn_validerNonMembre.setText(_translate("Form", "Valider", None))
|
self.labIdClient.setText(_translate("Borne", "Non identifier", None))
|
||||||
self.btn_cb.setText(_translate("Form", "PayerAvecCarte", None))
|
self.box_abo.setTitle(_translate("Borne", "S\'abonner", None))
|
||||||
self.btn_precedent.setText(_translate("Form", "<", None))
|
self.nomLabel.setText(_translate("Borne", "Nom", None))
|
||||||
self.btn_annuler.setText(_translate("Form", "Annuler", None))
|
self.prenomLabel.setText(_translate("Borne", "Prenom", None))
|
||||||
self.btn_suivant.setText(_translate("Form", ">", None))
|
self.numeroCarteLabel.setText(_translate("Borne", "Numero carte", None))
|
||||||
self.btn_valider.setText(_translate("Form", "Valider", None))
|
self.checkBox.setText(_translate("Borne", "PackGarantie", None))
|
||||||
|
self.btn_valider_abo.setText(_translate("Borne", "Valider", None))
|
||||||
|
self.btn_desabo.setText(_translate("Borne", "Désabonner", None))
|
||||||
|
self.box_recup.setTitle(_translate("Borne", "Récuperer", None))
|
||||||
|
self.numeroTicketLabel.setText(_translate("Borne", "Numero Ticket :", None))
|
||||||
|
self.btn_recuperer.setText(_translate("Borne", "Récupérer Véhicule", None))
|
||||||
|
self.label_aff.setText(_translate("Borne", "<html><head/><body><p align=\"center\">TextLabel</p></body></html>", None))
|
||||||
|
self.box_garer.setTitle(_translate("Borne", "Se garer", None))
|
||||||
|
self.btn_garer.setText(_translate("Borne", "Garer Véhicule", None))
|
||||||
|
self.btn_annuler.setText(_translate("Borne", "Annuler", None))
|
||||||
|
self.btn_quitter.setText(_translate("Borne", "Quitter", None))
|
||||||
|
|
||||||
|
299
ui/borne.ui
299
ui/borne.ui
@ -1,13 +1,13 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>Form</class>
|
<class>Borne</class>
|
||||||
<widget class="QWidget" name="Form">
|
<widget class="QWidget" name="Borne">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>400</width>
|
<width>669</width>
|
||||||
<height>412</height>
|
<height>579</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -16,7 +16,7 @@
|
|||||||
<widget class="QPushButton" name="btn_Voiture">
|
<widget class="QPushButton" name="btn_Voiture">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>90</x>
|
<x>140</x>
|
||||||
<y>40</y>
|
<y>40</y>
|
||||||
<width>211</width>
|
<width>211</width>
|
||||||
<height>27</height>
|
<height>27</height>
|
||||||
@ -26,20 +26,10 @@
|
|||||||
<string>Detection Arrivee Voiture</string>
|
<string>Detection Arrivee Voiture</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QLCDNumber" name="lcdNumber">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>20</x>
|
|
||||||
<y>80</y>
|
|
||||||
<width>351</width>
|
|
||||||
<height>31</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<widget class="QLabel" name="nomParking">
|
<widget class="QLabel" name="nomParking">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>170</x>
|
<x>300</x>
|
||||||
<y>10</y>
|
<y>10</y>
|
||||||
<width>151</width>
|
<width>151</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
@ -49,11 +39,23 @@
|
|||||||
<string>NomParking</string>
|
<string>NomParking</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QGroupBox" name="box_id">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>20</x>
|
||||||
|
<y>150</y>
|
||||||
|
<width>331</width>
|
||||||
|
<height>171</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="title">
|
||||||
|
<string>Identification</string>
|
||||||
|
</property>
|
||||||
<widget class="QWidget" name="layoutWidget">
|
<widget class="QWidget" name="layoutWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>60</x>
|
<x>30</x>
|
||||||
<y>300</y>
|
<y>60</y>
|
||||||
<width>272</width>
|
<width>272</width>
|
||||||
<height>85</height>
|
<height>85</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -81,85 +83,240 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout"/>
|
||||||
<item>
|
</item>
|
||||||
<widget class="QLabel" name="label_2">
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<widget class="QLabel" name="labIdClient">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>130</x>
|
||||||
|
<y>31</y>
|
||||||
|
<width>91</width>
|
||||||
|
<height>16</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Non membre</string>
|
<string>Non identifier</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
<widget class="QGroupBox" name="box_abo">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>20</x>
|
||||||
|
<y>350</y>
|
||||||
|
<width>331</width>
|
||||||
|
<height>201</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="title">
|
||||||
|
<string>S'abonner</string>
|
||||||
|
</property>
|
||||||
|
<widget class="QWidget" name="formLayoutWidget">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>-1</x>
|
||||||
|
<y>40</y>
|
||||||
|
<width>291</width>
|
||||||
|
<height>91</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<layout class="QFormLayout" name="formLayout">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="nomLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Nom</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item row="0" column="1">
|
||||||
<widget class="QPushButton" name="btn_validerNonMembre">
|
<widget class="QLineEdit" name="nomLineEdit"/>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="prenomLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Prenom</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="numeroCarteLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Numero carte</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QLineEdit" name="numeroCarteLineEdit"/>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QLineEdit" name="prenomLineEdit"/>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<widget class="QCheckBox" name="checkBox">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>140</y>
|
||||||
|
<width>121</width>
|
||||||
|
<height>20</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>PackGarantie</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QPushButton" name="btn_valider_abo">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>210</x>
|
||||||
|
<y>160</y>
|
||||||
|
<width>87</width>
|
||||||
|
<height>27</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Valider</string>
|
<string>Valider</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
<widget class="QPushButton" name="btn_desabo">
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="btn_cb">
|
|
||||||
<property name="text">
|
|
||||||
<string>PayerAvecCarte</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
<widget class="QWidget" name="layoutWidget">
|
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>70</x>
|
<x>120</x>
|
||||||
<y>130</y>
|
<y>160</y>
|
||||||
<width>261</width>
|
<width>87</width>
|
||||||
<height>91</height>
|
<height>27</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
||||||
<item>
|
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_5">
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="btn_precedent">
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string><</string>
|
<string>Désabonner</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<zorder>formLayoutWidget</zorder>
|
||||||
|
<zorder>checkBox</zorder>
|
||||||
|
<zorder>btn_valider_abo</zorder>
|
||||||
|
<zorder>btn_desabo</zorder>
|
||||||
|
<zorder>prenomLineEdit</zorder>
|
||||||
|
</widget>
|
||||||
|
<widget class="QGroupBox" name="box_recup">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>380</x>
|
||||||
|
<y>350</y>
|
||||||
|
<width>271</width>
|
||||||
|
<height>121</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="title">
|
||||||
|
<string>Récuperer</string>
|
||||||
|
</property>
|
||||||
|
<widget class="QWidget" name="formLayoutWidget_2">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>40</y>
|
||||||
|
<width>261</width>
|
||||||
|
<height>80</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<layout class="QFormLayout" name="formLayout_2">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="numeroTicketLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Numero Ticket :</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item row="0" column="1">
|
||||||
|
<widget class="QLineEdit" name="numeroTicketLineEdit"/>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QPushButton" name="btn_recuperer">
|
||||||
|
<property name="text">
|
||||||
|
<string>Récupérer Véhicule</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
<widget class="QLabel" name="label_aff">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>10</x>
|
||||||
|
<y>90</y>
|
||||||
|
<width>641</width>
|
||||||
|
<height>31</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string><html><head/><body><p align="center">TextLabel</p></body></html></string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QGroupBox" name="box_garer">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>390</x>
|
||||||
|
<y>150</y>
|
||||||
|
<width>231</width>
|
||||||
|
<height>131</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="title">
|
||||||
|
<string>Se garer</string>
|
||||||
|
</property>
|
||||||
|
<widget class="QPushButton" name="btn_garer">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>50</x>
|
||||||
|
<y>60</y>
|
||||||
|
<width>131</width>
|
||||||
|
<height>27</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Garer Véhicule</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
<widget class="QPushButton" name="btn_annuler">
|
<widget class="QPushButton" name="btn_annuler">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>390</x>
|
||||||
|
<y>40</y>
|
||||||
|
<width>87</width>
|
||||||
|
<height>27</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Annuler</string>
|
<string>Annuler</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
<widget class="QPushButton" name="btn_quitter">
|
||||||
</layout>
|
<property name="geometry">
|
||||||
</item>
|
<rect>
|
||||||
<item>
|
<x>520</x>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
<y>540</y>
|
||||||
<item>
|
<width>87</width>
|
||||||
<widget class="QPushButton" name="btn_suivant">
|
<height>27</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>></string>
|
<string>Quitter</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="btn_valider">
|
|
||||||
<property name="text">
|
|
||||||
<string>Valider</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
<zorder>layoutWidget</zorder>
|
|
||||||
<zorder>btn_Voiture</zorder>
|
<zorder>btn_Voiture</zorder>
|
||||||
<zorder>lcdNumber</zorder>
|
|
||||||
<zorder>layoutWidget</zorder>
|
|
||||||
<zorder>nomParking</zorder>
|
<zorder>nomParking</zorder>
|
||||||
|
<zorder></zorder>
|
||||||
|
<zorder>box_id</zorder>
|
||||||
|
<zorder>box_abo</zorder>
|
||||||
|
<zorder>box_recup</zorder>
|
||||||
|
<zorder>label_aff</zorder>
|
||||||
|
<zorder>box_garer</zorder>
|
||||||
|
<zorder>btn_annuler</zorder>
|
||||||
|
<zorder>btn_quitter</zorder>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections/>
|
<connections/>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Form implementation generated from reading ui file 'creationParking.ui'
|
# Form implementation generated from reading ui file 'creationParking.ui'
|
||||||
#
|
#
|
||||||
# Created: Fri Dec 26 21:22:48 2014
|
# Created: Mon Jan 5 16:57:56 2015
|
||||||
# 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!
|
||||||
@ -52,7 +52,7 @@ class Ui_CreaParking(object):
|
|||||||
self.nbPlacesTotal.setObjectName(_fromUtf8("nbPlacesTotal"))
|
self.nbPlacesTotal.setObjectName(_fromUtf8("nbPlacesTotal"))
|
||||||
self.horizontalLayout_3.addWidget(self.nbPlacesTotal)
|
self.horizontalLayout_3.addWidget(self.nbPlacesTotal)
|
||||||
self.tableWidget = QtGui.QTableWidget(CreaParking)
|
self.tableWidget = QtGui.QTableWidget(CreaParking)
|
||||||
self.tableWidget.setGeometry(QtCore.QRect(10, 100, 301, 121))
|
self.tableWidget.setGeometry(QtCore.QRect(10, 90, 321, 121))
|
||||||
self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
|
self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
|
||||||
self.tableWidget.setColumnCount(3)
|
self.tableWidget.setColumnCount(3)
|
||||||
self.tableWidget.setRowCount(0)
|
self.tableWidget.setRowCount(0)
|
||||||
@ -63,41 +63,37 @@ class Ui_CreaParking(object):
|
|||||||
item = QtGui.QTableWidgetItem()
|
item = QtGui.QTableWidgetItem()
|
||||||
self.tableWidget.setHorizontalHeaderItem(2, item)
|
self.tableWidget.setHorizontalHeaderItem(2, item)
|
||||||
self.btn_addRow = QtGui.QPushButton(CreaParking)
|
self.btn_addRow = QtGui.QPushButton(CreaParking)
|
||||||
self.btn_addRow.setGeometry(QtCore.QRect(330, 120, 41, 27))
|
self.btn_addRow.setGeometry(QtCore.QRect(350, 120, 41, 27))
|
||||||
self.btn_addRow.setObjectName(_fromUtf8("btn_addRow"))
|
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 = QtGui.QPushButton(CreaParking)
|
||||||
self.btn_rmRow.setGeometry(QtCore.QRect(330, 160, 41, 27))
|
self.btn_rmRow.setGeometry(QtCore.QRect(350, 160, 41, 27))
|
||||||
self.btn_rmRow.setObjectName(_fromUtf8("btn_rmRow"))
|
self.btn_rmRow.setObjectName(_fromUtf8("btn_rmRow"))
|
||||||
self.widget = QtGui.QWidget(CreaParking)
|
self.layoutWidget2 = QtGui.QWidget(CreaParking)
|
||||||
self.widget.setGeometry(QtCore.QRect(52, 12, 291, 56))
|
self.layoutWidget2.setGeometry(QtCore.QRect(52, 12, 291, 56))
|
||||||
self.widget.setObjectName(_fromUtf8("widget"))
|
self.layoutWidget2.setObjectName(_fromUtf8("layoutWidget2"))
|
||||||
self.horizontalLayout = QtGui.QHBoxLayout(self.widget)
|
self.horizontalLayout = QtGui.QHBoxLayout(self.layoutWidget2)
|
||||||
self.horizontalLayout.setMargin(0)
|
self.horizontalLayout.setMargin(0)
|
||||||
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
|
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
|
||||||
self.verticalLayout = QtGui.QVBoxLayout()
|
self.verticalLayout = QtGui.QVBoxLayout()
|
||||||
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
|
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
|
||||||
self.label = QtGui.QLabel(self.widget)
|
self.label = QtGui.QLabel(self.layoutWidget2)
|
||||||
self.label.setObjectName(_fromUtf8("label"))
|
self.label.setObjectName(_fromUtf8("label"))
|
||||||
self.verticalLayout.addWidget(self.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.horizontalLayout.addLayout(self.verticalLayout)
|
||||||
self.verticalLayout_2 = QtGui.QVBoxLayout()
|
self.verticalLayout_2 = QtGui.QVBoxLayout()
|
||||||
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
|
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
|
||||||
self.lineEdit_nom = QtGui.QLineEdit(self.widget)
|
self.lineEdit_nom = QtGui.QLineEdit(self.layoutWidget2)
|
||||||
self.lineEdit_nom.setObjectName(_fromUtf8("lineEdit_nom"))
|
self.lineEdit_nom.setObjectName(_fromUtf8("lineEdit_nom"))
|
||||||
self.verticalLayout_2.addWidget(self.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.horizontalLayout.addLayout(self.verticalLayout_2)
|
||||||
|
|
||||||
self.retranslateUi(CreaParking)
|
self.retranslateUi(CreaParking)
|
||||||
QtCore.QMetaObject.connectSlotsByName(CreaParking)
|
QtCore.QMetaObject.connectSlotsByName(CreaParking)
|
||||||
|
CreaParking.setTabOrder(self.lineEdit_nom, self.tableWidget)
|
||||||
|
CreaParking.setTabOrder(self.tableWidget, self.btn_addRow)
|
||||||
|
CreaParking.setTabOrder(self.btn_addRow, self.btn_rmRow)
|
||||||
|
CreaParking.setTabOrder(self.btn_rmRow, self.btn_annuler)
|
||||||
|
CreaParking.setTabOrder(self.btn_annuler, self.btn_valider)
|
||||||
|
|
||||||
def retranslateUi(self, CreaParking):
|
def retranslateUi(self, CreaParking):
|
||||||
CreaParking.setWindowTitle(_translate("CreaParking", "Creation Parking", None))
|
CreaParking.setWindowTitle(_translate("CreaParking", "Creation Parking", None))
|
||||||
@ -112,8 +108,6 @@ class Ui_CreaParking(object):
|
|||||||
item = self.tableWidget.horizontalHeaderItem(2)
|
item = self.tableWidget.horizontalHeaderItem(2)
|
||||||
item.setText(_translate("CreaParking", "Nombre", None))
|
item.setText(_translate("CreaParking", "Nombre", None))
|
||||||
self.btn_addRow.setText(_translate("CreaParking", "+", 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.btn_rmRow.setText(_translate("CreaParking", "-", None))
|
||||||
self.label.setText(_translate("CreaParking", "Nom :", None))
|
self.label.setText(_translate("CreaParking", "Nom :", None))
|
||||||
self.label_2.setText(_translate("CreaParking", "Nombre de niveaux :", None))
|
|
||||||
|
|
||||||
|
@ -68,10 +68,10 @@
|
|||||||
<widget class="QTableWidget" name="tableWidget">
|
<widget class="QTableWidget" name="tableWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>10</x>
|
<x>30</x>
|
||||||
<y>100</y>
|
<y>130</y>
|
||||||
<width>301</width>
|
<width>311</width>
|
||||||
<height>121</height>
|
<height>91</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<column>
|
<column>
|
||||||
@ -93,7 +93,7 @@
|
|||||||
<widget class="QPushButton" name="btn_addRow">
|
<widget class="QPushButton" name="btn_addRow">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>330</x>
|
<x>350</x>
|
||||||
<y>120</y>
|
<y>120</y>
|
||||||
<width>41</width>
|
<width>41</width>
|
||||||
<height>27</height>
|
<height>27</height>
|
||||||
@ -103,23 +103,10 @@
|
|||||||
<string>+</string>
|
<string>+</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</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">
|
<widget class="QPushButton" name="btn_rmRow">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>330</x>
|
<x>350</x>
|
||||||
<y>160</y>
|
<y>160</y>
|
||||||
<width>41</width>
|
<width>41</width>
|
||||||
<height>27</height>
|
<height>27</height>
|
||||||
@ -129,7 +116,7 @@
|
|||||||
<string>-</string>
|
<string>-</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="">
|
<widget class="QWidget" name="layoutWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>52</x>
|
<x>52</x>
|
||||||
@ -148,13 +135,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_2">
|
|
||||||
<property name="text">
|
|
||||||
<string>Nombre de niveaux :</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@ -162,14 +142,19 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="lineEdit_nom"/>
|
<widget class="QLineEdit" name="lineEdit_nom"/>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="lineEdit_nbNiv"/>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
|
<tabstops>
|
||||||
|
<tabstop>lineEdit_nom</tabstop>
|
||||||
|
<tabstop>tableWidget</tabstop>
|
||||||
|
<tabstop>btn_addRow</tabstop>
|
||||||
|
<tabstop>btn_rmRow</tabstop>
|
||||||
|
<tabstop>btn_annuler</tabstop>
|
||||||
|
<tabstop>btn_valider</tabstop>
|
||||||
|
</tabstops>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
53
ui/main.py
53
ui/main.py
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Form implementation generated from reading ui file 'main.ui'
|
# Form implementation generated from reading ui file 'main.ui'
|
||||||
#
|
#
|
||||||
# Created: Fri Dec 26 17:32:35 2014
|
# Created: Mon Jan 12 15:29:56 2015
|
||||||
# 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(561, 479)
|
MainWindow.resize(561, 509)
|
||||||
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)
|
||||||
@ -49,37 +49,32 @@ class Ui_MainWindow(object):
|
|||||||
self.comboBox.setObjectName(_fromUtf8("comboBox"))
|
self.comboBox.setObjectName(_fromUtf8("comboBox"))
|
||||||
self.verticalLayout.addWidget(self.comboBox)
|
self.verticalLayout.addWidget(self.comboBox)
|
||||||
self.formLayout_3 = QtGui.QFormLayout()
|
self.formLayout_3 = QtGui.QFormLayout()
|
||||||
|
self.formLayout_3.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
|
||||||
self.formLayout_3.setObjectName(_fromUtf8("formLayout_3"))
|
self.formLayout_3.setObjectName(_fromUtf8("formLayout_3"))
|
||||||
self.label_13 = QtGui.QLabel(self.tab_2)
|
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.tab_2)
|
|
||||||
self.label_14.setObjectName(_fromUtf8("label_14"))
|
|
||||||
self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_14)
|
|
||||||
self.label_15 = QtGui.QLabel(self.tab_2)
|
|
||||||
self.label_15.setObjectName(_fromUtf8("label_15"))
|
|
||||||
self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_15)
|
|
||||||
self.label_16 = QtGui.QLabel(self.tab_2)
|
|
||||||
self.label_16.setObjectName(_fromUtf8("label_16"))
|
|
||||||
self.formLayout_3.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_16)
|
|
||||||
self.label_17 = QtGui.QLabel(self.tab_2)
|
|
||||||
self.label_17.setObjectName(_fromUtf8("label_17"))
|
|
||||||
self.formLayout_3.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_17)
|
|
||||||
self.nom = QtGui.QLabel(self.tab_2)
|
self.nom = QtGui.QLabel(self.tab_2)
|
||||||
self.nom.setObjectName(_fromUtf8("nom"))
|
self.nom.setObjectName(_fromUtf8("nom"))
|
||||||
self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole, self.nom)
|
self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole, self.nom)
|
||||||
self.niveau = QtGui.QLabel(self.tab_2)
|
self.label_15 = QtGui.QLabel(self.tab_2)
|
||||||
self.niveau.setObjectName(_fromUtf8("niveau"))
|
self.label_15.setObjectName(_fromUtf8("label_15"))
|
||||||
self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.niveau)
|
self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_15)
|
||||||
self.placesParNiveau = QtGui.QLabel(self.tab_2)
|
self.placesParNiveau = QtGui.QLabel(self.tab_2)
|
||||||
self.placesParNiveau.setObjectName(_fromUtf8("placesParNiveau"))
|
self.placesParNiveau.setObjectName(_fromUtf8("placesParNiveau"))
|
||||||
self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole, self.placesParNiveau)
|
self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.placesParNiveau)
|
||||||
|
self.label_16 = QtGui.QLabel(self.tab_2)
|
||||||
|
self.label_16.setObjectName(_fromUtf8("label_16"))
|
||||||
|
self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_16)
|
||||||
self.placesDispo = QtGui.QLabel(self.tab_2)
|
self.placesDispo = QtGui.QLabel(self.tab_2)
|
||||||
self.placesDispo.setObjectName(_fromUtf8("placesDispo"))
|
self.placesDispo.setObjectName(_fromUtf8("placesDispo"))
|
||||||
self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole, self.placesDispo)
|
self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole, self.placesDispo)
|
||||||
|
self.label_17 = QtGui.QLabel(self.tab_2)
|
||||||
|
self.label_17.setObjectName(_fromUtf8("label_17"))
|
||||||
|
self.formLayout_3.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_17)
|
||||||
self.placesSuperAbo = QtGui.QLabel(self.tab_2)
|
self.placesSuperAbo = QtGui.QLabel(self.tab_2)
|
||||||
self.placesSuperAbo.setObjectName(_fromUtf8("placesSuperAbo"))
|
self.placesSuperAbo.setObjectName(_fromUtf8("placesSuperAbo"))
|
||||||
self.formLayout_3.setWidget(4, QtGui.QFormLayout.FieldRole, self.placesSuperAbo)
|
self.formLayout_3.setWidget(3, 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"))
|
||||||
@ -93,9 +88,6 @@ class Ui_MainWindow(object):
|
|||||||
self.btn_creer = QtGui.QPushButton(self.tab_2)
|
self.btn_creer = QtGui.QPushButton(self.tab_2)
|
||||||
self.btn_creer.setObjectName(_fromUtf8("btn_creer"))
|
self.btn_creer.setObjectName(_fromUtf8("btn_creer"))
|
||||||
self.verticalLayout.addWidget(self.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 = QtGui.QPushButton(self.tab_2)
|
||||||
self.btn_supprimer.setObjectName(_fromUtf8("btn_supprimer"))
|
self.btn_supprimer.setObjectName(_fromUtf8("btn_supprimer"))
|
||||||
self.verticalLayout.addWidget(self.btn_supprimer)
|
self.verticalLayout.addWidget(self.btn_supprimer)
|
||||||
@ -105,8 +97,10 @@ class Ui_MainWindow(object):
|
|||||||
self.tableWidget = QtGui.QTableWidget(self.tab_5)
|
self.tableWidget = QtGui.QTableWidget(self.tab_5)
|
||||||
self.tableWidget.setGeometry(QtCore.QRect(60, 20, 431, 351))
|
self.tableWidget.setGeometry(QtCore.QRect(60, 20, 431, 351))
|
||||||
self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
|
self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
|
||||||
self.tableWidget.setColumnCount(0)
|
self.tableWidget.setColumnCount(1)
|
||||||
self.tableWidget.setRowCount(0)
|
self.tableWidget.setRowCount(0)
|
||||||
|
item = QtGui.QTableWidgetItem()
|
||||||
|
self.tableWidget.setHorizontalHeaderItem(0, item)
|
||||||
self.tabWidget.addTab(self.tab_5, _fromUtf8(""))
|
self.tabWidget.addTab(self.tab_5, _fromUtf8(""))
|
||||||
self.tab_3 = QtGui.QWidget()
|
self.tab_3 = QtGui.QWidget()
|
||||||
self.tab_3.setObjectName(_fromUtf8("tab_3"))
|
self.tab_3.setObjectName(_fromUtf8("tab_3"))
|
||||||
@ -158,21 +152,20 @@ class Ui_MainWindow(object):
|
|||||||
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_15.setText(_translate("MainWindow", "Places / niveau :", None))
|
|
||||||
self.label_16.setText(_translate("MainWindow", "Places disponible :", None))
|
|
||||||
self.label_17.setText(_translate("MainWindow", "Places Reserve Super Abo : ", None))
|
|
||||||
self.nom.setText(_translate("MainWindow", "TextLabel", None))
|
self.nom.setText(_translate("MainWindow", "TextLabel", None))
|
||||||
self.niveau.setText(_translate("MainWindow", "TextLabel", None))
|
self.label_15.setText(_translate("MainWindow", "Places total:", None))
|
||||||
self.placesParNiveau.setText(_translate("MainWindow", "TextLabel", None))
|
self.placesParNiveau.setText(_translate("MainWindow", "TextLabel", None))
|
||||||
|
self.label_16.setText(_translate("MainWindow", "Places disponible :", None))
|
||||||
self.placesDispo.setText(_translate("MainWindow", "TextLabel", None))
|
self.placesDispo.setText(_translate("MainWindow", "TextLabel", None))
|
||||||
|
self.label_17.setText(_translate("MainWindow", "Places Reserve Super Abo : ", None))
|
||||||
self.placesSuperAbo.setText(_translate("MainWindow", "TextLabel", None))
|
self.placesSuperAbo.setText(_translate("MainWindow", "TextLabel", None))
|
||||||
self.btn_details.setText(_translate("MainWindow", "Details Places", None))
|
self.btn_details.setText(_translate("MainWindow", "Details Places", None))
|
||||||
self.btn_borne.setText(_translate("MainWindow", "Borne", None))
|
self.btn_borne.setText(_translate("MainWindow", "Borne", None))
|
||||||
self.btn_creer.setText(_translate("MainWindow", "Créer", 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.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))
|
||||||
|
item = self.tableWidget.horizontalHeaderItem(0)
|
||||||
|
item.setText(_translate("MainWindow", "Nouvelle colonne", 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))
|
||||||
self.menuFichier.setTitle(_translate("MainWindow", "Fichier", None))
|
self.menuFichier.setTitle(_translate("MainWindow", "Fichier", None))
|
||||||
|
68
ui/main.ui
68
ui/main.ui
@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>561</width>
|
<width>561</width>
|
||||||
<height>479</height>
|
<height>509</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -24,7 +24,7 @@
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>0</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="tab">
|
<widget class="QWidget" name="tab">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
@ -64,6 +64,9 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QFormLayout" name="formLayout_3">
|
<layout class="QFormLayout" name="formLayout_3">
|
||||||
|
<property name="fieldGrowthPolicy">
|
||||||
|
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
|
||||||
|
</property>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label_13">
|
<widget class="QLabel" name="label_13">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -71,34 +74,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
|
||||||
<widget class="QLabel" name="label_14">
|
|
||||||
<property name="text">
|
|
||||||
<string>Niveau :</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0">
|
|
||||||
<widget class="QLabel" name="label_15">
|
|
||||||
<property name="text">
|
|
||||||
<string>Places / niveau :</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0">
|
|
||||||
<widget class="QLabel" name="label_16">
|
|
||||||
<property name="text">
|
|
||||||
<string>Places disponible :</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="0">
|
|
||||||
<widget class="QLabel" name="label_17">
|
|
||||||
<property name="text">
|
|
||||||
<string>Places Reserve Super Abo : </string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QLabel" name="nom">
|
<widget class="QLabel" name="nom">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -106,28 +81,42 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="0">
|
||||||
<widget class="QLabel" name="niveau">
|
<widget class="QLabel" name="label_15">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>TextLabel</string>
|
<string>Places total:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="QLabel" name="placesParNiveau">
|
<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="2" column="0">
|
||||||
|
<widget class="QLabel" name="label_16">
|
||||||
|
<property name="text">
|
||||||
|
<string>Places disponible :</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
<widget class="QLabel" name="placesDispo">
|
<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="3" column="0">
|
||||||
|
<widget class="QLabel" name="label_17">
|
||||||
|
<property name="text">
|
||||||
|
<string>Places Reserve Super Abo : </string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
<widget class="QLabel" name="placesSuperAbo">
|
<widget class="QLabel" name="placesSuperAbo">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>TextLabel</string>
|
<string>TextLabel</string>
|
||||||
@ -161,13 +150,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="btn_modifier">
|
|
||||||
<property name="text">
|
|
||||||
<string>Modifier</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="btn_supprimer">
|
<widget class="QPushButton" name="btn_supprimer">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
Reference in New Issue
Block a user