OrsWidgetObserver_fc2f131c443f11ea9a27309c235e8fdb

Plugin used to inspect properties of alive widgets

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:Jan 31 2020 10:40
dragonflyVersion:
 2020.1.0.743 (D)
UUID:fc2f131c443f11ea9a27309c235e8fdb

Class Code

class OrsPythonPlugins.OrsWidgetObserver_fc2f131c443f11ea9a27309c235e8fdb.OrsWidgetObserver_fc2f131c443f11ea9a27309c235e8fdb.OrsWidgetObserver_fc2f131c443f11ea9a27309c235e8fdb(varname=None, managed=True)
UIDescriptors = [<ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>, <ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>, <ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>]
classmethod actionStartObserverGraphOfWidgetAtCursor()
classmethod actionStartWidgetObserverOfWidgetAtCursor()
classmethod actionStartupDefault()
attachObjects(parentNodeGUID, listChildrenNodeGUID)

This function is to attach a set of objects :return:

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.

closable = True
closeWidget(name)
deleteObjects(listNodeIDToDelete)

This function is to delete the selected objects :return:

detachAllMarkedConnections()

This function is to detach all marked connections :return:

getGraphInstanceVariable(observerGraphTag)
getGraphInstanceVariableID(observerGraphTag)
getGraphModel(graphModelID=None)
getInstanceVariable(widgetObserverTag)
getInstanceVariableFromID(instanceVariableID)
getInstanceVariableID(widgetObserverTag)
getIsRefreshAllRepetitive()
getMaxGenerationsChildren(observerGraphTag)
getMaxGenerationsParents(observerGraphTag)
getRefreshAllTimerDelay()
getTreeWidgetPropertiesModel(widgetObserverTag)
isValidNewPotentialConnection(parentNodeGUID, childNodeGUID)

This function is to test if a new connection can be established between 2 nodes

keepAlive = False
multiple = False
onCloseObserverGraphForm(graphObserverTag)
onCloseWidgetObserverForm(widgetObserverTag)
openObserverGraphForm(observerGraphTag=None)
openWidget(name, dock=None, tab=None, x=-1, y=-1, w=-1, l=-1, order=-1)
openWidgetForm(widgetObserverTag=None)
refreshAllOnce()
reorganizeGraph(observerGraphTag)

This function calls for a full reorganization of the graph nodes :return:

savable = False
setGraphInstanceVariable(observerGraphTag, instanceVariableID)
Parameters:
  • observerGraphTag
  • instanceVariableID (str) – id (as string)
Return:

True if the instance variable is found and is set to the model; False otherwise.

setInstanceVariable(widgetObserverTag, instanceVariableID)
Parameters:
  • widgetObserverTag
  • instanceVariableID (str) – id (as string)
Return:

True if the instance variable is found and is set to the model; False otherwise.

setMaxGenerationsChildren(observerGraphTag, maxGenerationsParents)
setMaxGenerationsParents(observerGraphTag, maxGenerationsParents)
setRefreshAllTimerDelay(timerDelay)
showInToolbar = True
slot_timer_timeout()
startObserverGraphModel(instanceVariable)
startObserverGraphModelFromID(instanceVariableID)
classmethod startObserverOnWidgetAtCursor(mode='singleWidget')

Starts an observer form on the widget under cursor. The id of the widget is also put in the clipboard, to be used with other plugins.

startRefreshAllRepetitive()
startWidgetObserverModel(instanceVariable)
startWidgetObserverModelFromID(instanceVariableID)
stopRefreshAllRepetitive()
classmethod topLevelMenu()
updateAllGraphModels()
updateAllTablesModels()
updateGraphModel(observerGraphTag, callRefreshGraphForms=True)
updateTablesModels(widgetObserverTag)