gear_mc
 All Classes Namespaces Functions Variables
Public Member Functions | Public Attributes | List of all members
gear.xsi.uitoolkit.ProgressLog Class Reference

PROGRESS LOGGER. More...

Inheritance diagram for gear.xsi.uitoolkit.ProgressLog:

Public Member Functions

def __init__
 Init method. More...
 
def getTime
 Return the time ellapsed since the creation of the object. More...
 
def logTime
 Log the time ellapsed since the creation of the object. More...
 
def resetTime
 Reset the time counter. More...
 
def log
 Log a message and change progress bar caption and status text. More...
 
def showBar
 Show the progress bar. More...
 
def hideBar
 Hide the progress bar. More...
 
def increment
 Increment the progress bar. More...
 
def canceled
 Check if the progress bar Cancel button has been pressed. More...
 
def start
 
def reset
 Reset the progress bar. More...
 

Public Attributes

 showLog
 
 showBar
 
 startTime
 
 bar
 

Detailed Description

PROGRESS LOGGER.

Log progress step in the script editor and/or in a progress bar

Constructor & Destructor Documentation

def gear.xsi.uitoolkit.ProgressLog.__init__ (   self,
  showLog = False,
  showBar = False,
  caption = "",
  statusText = "",
  maximum = 100,
  step = 1,
  cancel = False 
)

Init method.

Parameters
self
showLogBoolean - True to log messages.
showBarBoolean - True to display a progress bar.
captionString - Caption Name.
statusTextString - Status text.
maximumDouble - Maximum limit of the progress bar.
stepDouble - Step incrementation of the progress bar.
cancelBoolean - Cancel button on the progress bar.

Member Function Documentation

def gear.xsi.uitoolkit.ProgressLog.canceled (   self)

Check if the progress bar Cancel button has been pressed.

Parameters
self
Returns
Boolean - True if the button has been pressed
def gear.xsi.uitoolkit.ProgressLog.getTime (   self)

Return the time ellapsed since the creation of the object.

Parameters
self
Returns
String - The time ellapsed.
def gear.xsi.uitoolkit.ProgressLog.hideBar (   self)

Hide the progress bar.

Parameters
self
def gear.xsi.uitoolkit.ProgressLog.increment (   self)

Increment the progress bar.

Parameters
self
def gear.xsi.uitoolkit.ProgressLog.log (   self,
  caption = None,
  statusText = None,
  increment = False 
)

Log a message and change progress bar caption and status text.

Parameters
self
captionString - New caption name.
statusTextString - New status text.
incrementBoolean - True to increment the progress bar.
def gear.xsi.uitoolkit.ProgressLog.logTime (   self,
  message = "" 
)

Log the time ellapsed since the creation of the object.

Parameters
self
def gear.xsi.uitoolkit.ProgressLog.reset (   self,
  caption = None,
  statusText = None,
  maximum = None,
  step = None 
)

Reset the progress bar.

Parameters
self
captionString - New caption name.
statusTextString - New status text.
maximumDouble - Maximum limit of the progress bar.
stepDouble - Step incrementation of the progress bar.
def gear.xsi.uitoolkit.ProgressLog.resetTime (   self)

Reset the time counter.

Parameters
self
def gear.xsi.uitoolkit.ProgressLog.showBar (   self)

Show the progress bar.

Parameters
self

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