module: ‘code_lieu.py’

Contains the links between the UI and the measurements code.

class gwa.code_place.PlaceController(main=None, parent=None)[source]

Bases: PyQt4.QtGui.QWizard

Create the wizard. Assign functions to the various buttons.

addEnvironment()[source]

Add an environment in the database.

addPlace()[source]

Add a place into the database.

clearEnvironmentInfo()[source]

Clear the user filled fields. Called when the Access Points list is updated in UI with addEnvironment() and editEnvironment().

clearPlaceInfo()[source]

Clear the user filled fields. Called whenever the place list is updated.

connect_signals()[source]

Create action listeners for the UI.

Example: self.connect(self.ui.toolButton_place_add,QtCore.SIGNAL(“clicked()”),self.addPlace)

When the bouton “self.ui.toolButton_place_add” is clicked, function “addPlace()” is called.

displayEnvironmentInfo()[source]

Cette fonction permet d’afficher les paramètres de lu environnement lors de la sélection d’un élément de la lister

displayEnvironmentList()[source]

Display the list of environments in the UI.

displayPlaceInfo()[source]

Display the place’s parameters when an element is selected in the list.

displayPlaceList()[source]

Display the list of places in the UI.

editEnvironment()[source]

Edit an environment’s parameters in the database.

editPlace()[source]

Edit a place’s parameter in the database.

enableAddEnvironment()[source]

Activates / deactivates the button add environment. The button becomes active only when the user fills the required fields.

enableAddPlace()[source]

Activates / deactivates the button to add places. The button becomes active only when the user fills the required fields.

enableEditEnvironment(itemClicked)[source]

Activates / deactivates the button edit environment whenever an environment is selected in the list.

enableEditPlace(itemClicked)[source]

Activates / deactivates the button edit place whenever an edit is selected in the list.

enableRemoveEnvironment(itemClicked)[source]

Activates / deactivates the button delete environment whenever an environment is selected in the list.

enableRemovePlace(itemClicked)[source]

Activates / deactivates the button delete place whenever an place is selected in the list.

initVariables()[source]

Initialize the variables necessary to do measures and connect to the database.

reinitialize(resultCode)[source]

Switch to the application master menu and reinitializes the QWizard module.

removeEnvironment()[source]

Remove an environment from the database.

removePlace()[source]

Remove a place from the database.

setCurrentEnvironment()[source]

Retrieve the name and database ID of the selected environment.

setCurrentPlace()[source]

Retrieve the name and database ID of the selected place.

switchPage()[source]

Called whenever a UI page change occurs to initialize: - Lists fulfillment (pages 1 to 4) - Measurements (page 5) - Completion of the measures (page 6)

validateCurrentPage()[source]

Reimplementation of the function “validateCurrentPage” which implements by default “QWizardPage::validatePage()” on “currentPage()”.

verifyEnvironmentInfos(longueur, largeur, hauteur)[source]

Integrity check of the user’s input before insertion in the database. Verify the environment’s dimensions are numbers.

verifyPlaceInfo(longueur_lieux, largeur_lieux, hauteur_lieux, x_lieux, y_lieux, z_lieux, angle)[source]

Integrity check of the user’s input before insertion in the database. Verify the input is numbers. Verify the place’s dimensions and coordinates consistency in the environement.

Previous topic

module: ‘code_menu.py’

Next topic

module: ‘code_AP.py’

This Page