OrsDragonflyMainContext_ad5ab0000a1211ea9cb6309c235e8fdb

Dragonfly main context

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:Nov 18 2019 09:49
dragonflyVersion:
 4.5.0.711 (D)
UUID:ad5ab0000a1211ea9cb6309c235e8fdb

Class Code

class OrsPythonPlugins.OrsDragonflyMainContext_ad5ab0000a1211ea9cb6309c235e8fdb.OrsDragonflyMainContext_ad5ab0000a1211ea9cb6309c235e8fdb.OrsDragonflyMainContext_ad5ab0000a1211ea9cb6309c235e8fdb(varname=None, managed=True)
UIDescriptors = [<ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>]
canBeGenericallyOpened = False
closable = True
classmethod getContextName()
getIsObjectAvailable(anObject)

Gets to know if the object is available in the context.

Parameters:anObject (ORSModel.ors.Managed) – an object
Return:True if the object is available in the context; False otherwise.
Rtype:bool
classmethod getMainFormClass()
keepAlive = False
modalContext = False
multiple = False
openWidget(name, dock=None, tab=None, x=-1, y=-1, w=-1, l=-1, order=-1)
privateObjects = False
restrictPlugins = False
savable = True
setupContext(openMainForm=True)

Performs the tasks to setup the context. This is normally done after the instantiation of the main plugin in context and setting his state.

These are the usual tasks:

  • instantiate all required plugins;
  • define context restrictions (actions, states, …);
  • open the main window with the mainform of the main plugin in context and all plugin forms
    (if openMainForm is True);
  • initialize the menu (if wanted);
  • perform any other task to initialize the context (configure views, text presenters, …).
Parameters:openMainForm (bool) – True to use the forms; False otherwise.
classmethod startupWithFreePluginsAndUserStartup(openMainForm=True)