OrsMacroPlayer¶
Controller of a macro recording and execution
| author: | ORS Team |
|---|---|
| contact: | http://theobjects.com |
| email: | info@theobjects.com |
| organization: | Object Research Systems (ORS), Inc. |
| address: | 760 St-Paul West, suite 101, Montréal, Québec, Canada, H3C 1M4 |
| copyright: | Object Research Systems (ORS), Inc. All rights reserved 2020. |
| date: | Oct 20 2016 09:50 |
| dragonflyVersion: | |
| 3.0 | |
| UUID: | 9ee31aae761511e7b35d448a5b5d70c0 |
Class Code¶
-
class
OrsPythonPlugins.OrsMacroPlayer.OrsMacroPlayer.OrsMacroPlayer(varname=None, managed=True)¶ -
classmethod
OrsMacroPlayer_openGUI()¶
-
UIDescriptors= [<ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>]¶
-
applyModificationToDeclaredVariable(blockIndex, declaredVariable, newState, newVariableValue=None)¶
-
canContinueRecording()¶
-
canDeleteBlock(blockIndex)¶
-
canPauseRecording()¶
-
canRefreshFile()¶
-
canSetDeclaredVariables(blockIndex)¶
-
canSetMuted(blockIndex)¶
-
canSetPauseBeforeExecution(blockIndex)¶
-
canStartRecording()¶
-
canStopRecording()¶
-
cleanup()¶ Deletes the variables managed by the plugin. It is the place to remove callbacks and other references to Python objects that would prevent them to be garbage collected. This method is called during the process of deletion of the plugin. It calls for the cleanup and deletion of the forms.
-
clearMacro()¶
-
closable= True¶
-
closeWidget(name)¶
-
classmethod
contextualMenuStartMacrosFromSelection(listSelectedObjectsRepr)¶
-
continueRecording()¶
-
defineVariables(dictVariables)¶
-
defineVariablesFromSelection(listSelectedObjects)¶
-
deleteBlock(blockIndex)¶
-
deleteMacro(fullname)¶
-
executeMacro(runFullMacro=True, automaticSelectionSingleElement=False)¶
-
classmethod
generateMacroTestFile(macroPath)¶
-
getAssignationStateOfDeclaredVariable(blockIndex, declaredVariable)¶
-
getAssignedValueToDeclaredVariable(blockIndex, declaredVariable)¶
-
getBlockCount()¶
-
getBlockIndexDeclaredVariablesExamination()¶
-
getBlockIndexInExecution()¶
-
getCurrentMacroBibliographyModel()¶
-
getDeclaredInputVariableDescriptors(blockIndex)¶
-
getDeclaredVariablesAssignedBeforeBlock(blockIndex)¶
-
getIsAssignmentToDeclaredVariableModified(blockIndex, declaredVariable)¶
-
getIsMacroPlayingInExecution()¶
-
getIsMacroRecordingInExecution()¶
-
getIsMuted(blockIndex)¶
-
getLastError()¶
-
getMacroInfo(blockIndex)¶
-
classmethod
getMacroTestFilename(macroPath)¶
-
getMacroTitle(blockIndex)¶
-
getOriginalMacroBibliographyModel()¶
-
getPauseBeforeExecution(blockIndex)¶
-
getVariablesToDefine()¶
-
interruptMacroWhileRunning()¶
-
classmethod
isMacroTestFileExisting(macroPath)¶
-
isRecordingPaused()¶
-
isThereAnError()¶
-
keepAlive= False¶
-
multiple= False¶
-
classmethod
openGUI()¶
-
openWidget(name, dock=None, tab=None, x=-1, y=-1, w=-1, l=-1, order=-1)¶
-
pauseRecording()¶
-
refreshFile()¶
-
revertModificationToDeclaredVariable(blockIndex, declaredVariable)¶
-
savable= False¶
-
saveAsNewMacro(macroPath)¶
-
saveMacroAs(fullname)¶
-
setBlockIndexDeclaredVariablesExamination(blockIndexDeclaredVariablesExamination)¶
-
setCallbackMethodToUpdateCurrentBlockInExecution(aMethod)¶
-
setCallbackMethodToUpdateDefinedVariablesWidgets(aMethod)¶
-
setIsMuted(blockIndex, isMuted)¶
-
setMacroFromPath(macroPath)¶
-
setMacroInfo(blockIndex, info)¶
-
setMacroTitle(blockIndex, title)¶
-
setPauseBeforeExecution(blockIndex, pauseBeforeExecution)¶
-
shouldLastErrorBeGivenToTheUser()¶
-
showInToolbar= True¶
-
classmethod
startMacroOnSelection(macroPath, listSelectedObjectsGUID)¶ Method called from the contextual menu item to start an instance of the current plugin and start the execution of a specific macro with variables set from the selection. The UI will be shown only if a user interaction is required.
Parameters: - macroPath – path of the macro to execute
- listSelectedObjectsGUID – string representation of the selected objects
-
startRecording(macroFullFilename, writeBlockStartEndTime)¶
-
stopPlaying()¶
-
stopRecording()¶
-
classmethod
toolsMenu()¶
-
updateMacroCache(macroPaths=None)¶
-
classmethod