RoboAide
Project to improve a DIY robotic arm used for mobility assistance
Public Member Functions | Public Attributes | Private Attributes | List of all members
ui.RoboAide.CreateSequenceWindow Class Reference
Inheritance diagram for ui.RoboAide.CreateSequenceWindow:

Public Member Functions

def __init__ (self, motors={}, listOfSequenceHandler=None, sequence=None, modifySequence=False)
 
def setName (self, name)
 
def getSequence (self)
 
def getListofMoveLabels (self)
 
def addSequenceToList (self, modifySequence=False)
 
def addMovetoSequence (self)
 
def moveDoubleClicked (self, moveItem)
 
def updateSlidersPositions (self)
 
def enableWindow (self)
 
def rightClickMenu (self, event)
 
def deleteMove (self, label)
 
def modifyMove (self, label)
 

Public Attributes

 nameEntry
 The widget for the name of the sequenc. More...
 
 listOfSliders
 List of sliders in the create sequence window. More...
 
 nextMoveButton
 Button to add a move to the sequence and procede to the next move. More...
 
 buttonBox
 Buttons to accept or cancel the creation of a sequence. More...
 

Private Attributes

 __modifySequence
 Flag if the sequence is a modified one or a new one. More...
 
 __listOfSequenceHandler
 The handler of the list of sequence. More...
 
 __motors
 The dictionary of all the motors. More...
 
 __sequence
 The new sequence. More...
 
 __wantedPositions
 A dictionary of the positions of the new sequence. More...
 
 __layout
 The layout of the create sequence window. More...
 
 __nameLabel
 The label for the widget in which the name of the sequence is written. More...
 
 __listOfMoveLabels
 The list of the different moves that forms the sequence. More...
 
 __noNameMessage
 Message to make the user put a name to the sequence. More...
 
 __warningMessage
 Warning message to make sure the user doen't want to save the sequence. More...
 
 __motorLabels
 Labels for the motors in the UI. More...
 

Detailed Description

Window for creating a new sequence

Definition at line 250 of file RoboAide.py.

Constructor & Destructor Documentation

def ui.RoboAide.CreateSequenceWindow.__init__ (   self,
  motors = {},
  listOfSequenceHandler = None,
  sequence = None,
  modifySequence = False 
)
Initializtion of the window for creating a new sequence
:param motors: The dictionary of all the motors
:param listOfSequenceHandler: The handler of the list of sequence

Definition at line 254 of file RoboAide.py.

Member Function Documentation

def ui.RoboAide.CreateSequenceWindow.addMovetoSequence (   self)
Add the last move to the sequence
:return: No return

Definition at line 454 of file RoboAide.py.

def ui.RoboAide.CreateSequenceWindow.addSequenceToList (   self,
  modifySequence = False 
)
Add the sequence to the list of sequence
:param modifySequence: bool, if true there's a selected sequence that needs to be modified if false
it's a new sequence
:return: No return

Definition at line 390 of file RoboAide.py.

def ui.RoboAide.CreateSequenceWindow.deleteMove (   self,
  label 
)
Delete a move and its label of the sequence
:param label: label of the move
:return: No return

Definition at line 548 of file RoboAide.py.

def ui.RoboAide.CreateSequenceWindow.enableWindow (   self)
Enable the create sequence window
:return:

Definition at line 528 of file RoboAide.py.

def ui.RoboAide.CreateSequenceWindow.getListofMoveLabels (   self)
Accessor of the list of move labels (for tests)
:return: the list of move labels

Definition at line 383 of file RoboAide.py.

def ui.RoboAide.CreateSequenceWindow.getSequence (   self)
Accessor of the sequence (for tests)
:return: the sequence

Definition at line 376 of file RoboAide.py.

def ui.RoboAide.CreateSequenceWindow.modifyMove (   self,
  label 
)
Put a move to a modified state
:param label: label of the move
:return: No return

Definition at line 568 of file RoboAide.py.

def ui.RoboAide.CreateSequenceWindow.moveDoubleClicked (   self,
  moveItem 
)
Called when a move in the sequence is double clicked
:param moveItem: the move that was double clicked
:return: No return

Definition at line 513 of file RoboAide.py.

def ui.RoboAide.CreateSequenceWindow.rightClickMenu (   self,
  event 
)
The right click menu of the move list
:param event: The event (here right click) that makes the menu come up
:return: No return

Definition at line 535 of file RoboAide.py.

def ui.RoboAide.CreateSequenceWindow.setName (   self,
  name 
)
Sets the name of the sequence with the user input
:param name: The name of the sequence
:return: No return

Definition at line 368 of file RoboAide.py.

def ui.RoboAide.CreateSequenceWindow.updateSlidersPositions (   self)

Definition at line 522 of file RoboAide.py.

Member Data Documentation

ui.RoboAide.CreateSequenceWindow.__layout
private

The layout of the create sequence window.

Definition at line 276 of file RoboAide.py.

ui.RoboAide.CreateSequenceWindow.__listOfMoveLabels
private

The list of the different moves that forms the sequence.

Definition at line 283 of file RoboAide.py.

ui.RoboAide.CreateSequenceWindow.__listOfSequenceHandler
private

The handler of the list of sequence.

Definition at line 268 of file RoboAide.py.

ui.RoboAide.CreateSequenceWindow.__modifySequence
private

Flag if the sequence is a modified one or a new one.

Definition at line 266 of file RoboAide.py.

ui.RoboAide.CreateSequenceWindow.__motorLabels
private

Labels for the motors in the UI.

Definition at line 331 of file RoboAide.py.

ui.RoboAide.CreateSequenceWindow.__motors
private

The dictionary of all the motors.

Definition at line 270 of file RoboAide.py.

ui.RoboAide.CreateSequenceWindow.__nameLabel
private

The label for the widget in which the name of the sequence is written.

Definition at line 281 of file RoboAide.py.

ui.RoboAide.CreateSequenceWindow.__noNameMessage
private

Message to make the user put a name to the sequence.

Definition at line 310 of file RoboAide.py.

ui.RoboAide.CreateSequenceWindow.__sequence
private

The new sequence.

Definition at line 272 of file RoboAide.py.

ui.RoboAide.CreateSequenceWindow.__wantedPositions
private

A dictionary of the positions of the new sequence.

Definition at line 274 of file RoboAide.py.

ui.RoboAide.CreateSequenceWindow.__warningMessage
private

Warning message to make sure the user doen't want to save the sequence.

Definition at line 319 of file RoboAide.py.

ui.RoboAide.CreateSequenceWindow.buttonBox

Buttons to accept or cancel the creation of a sequence.

Definition at line 339 of file RoboAide.py.

ui.RoboAide.CreateSequenceWindow.listOfSliders

List of sliders in the create sequence window.

Definition at line 299 of file RoboAide.py.

ui.RoboAide.CreateSequenceWindow.nameEntry

The widget for the name of the sequenc.

Definition at line 278 of file RoboAide.py.

ui.RoboAide.CreateSequenceWindow.nextMoveButton

Button to add a move to the sequence and procede to the next move.

Definition at line 336 of file RoboAide.py.


The documentation for this class was generated from the following file: