OrsPlugAnalyzer_93b25d8abd1b11e980d4309c235e8fdb

author:

Dragonfly Team

contact:

https://dragonfly.comet.tech

email:

support.dragonfly@comet.tech

organization:

Comet Technologies Canada Inc.

address:

460 Ste-Catherine Ouest, suite 600, Montréal, Québec, Canada, H3B 1A7

copyright:

Comet Technologies Canada Inc. All rights reserved 2023.

date:

Aug 12 2019 12:09

dragonflyVersion:

4.5.0.711 (D)

UUID:

93b25d8abd1b11e980d4309c235e8fdb

Class Code

class OrsPythonPlugins.OrsPlugAnalyzer_93b25d8abd1b11e980d4309c235e8fdb.OrsPlugAnalyzer_93b25d8abd1b11e980d4309c235e8fdb.OrsPlugAnalyzer_93b25d8abd1b11e980d4309c235e8fdb(*args, **kwargs)
interfacemethod extractObjectFromContextGroup(aContextGroup: Group, anObjectToExtract: Managed) Managed

Extracts an object from a context group by making a copy.

Parameters:
Returns:

extractedObject (ORSModel.ors.Managed) – extracted object

classmethod getImageRepresentation()

Method called to obtain a bitmap representing the Wizard, mostly to build a quick launch toolbar where each wizard has a button to start it

Returns:

output (QPixmap) – an image

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()

Gets the class of the main form

Returns:

output

hideCommonWizardObjects()

Hides objects used by multiple wizard pages. This is to make sure there is no “phantom object” of a page in another one. This is normally called by a wizard page during the terminatePage method.

instantiateWizardPagesForms(parent)

Instantiation of the wizard pages forms

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.