Back to index

salome-gui  6.5.0
Public Slots | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | Friends
SALOME_PYQT_LIGHT_EXPORT Protocol Reference

SALOME_PYQT_DataObjectLight - PYTHON LIGHT module's data object class. More...

#include <SALOME_PYQT_DataModelLight.h>

Inheritance diagram for SALOME_PYQT_LIGHT_EXPORT:
Inheritance graph
[legend]
Collaboration diagram for SALOME_PYQT_LIGHT_EXPORT:
Collaboration graph
[legend]

List of all members.

Public Slots

virtual bool activateModule (SUIT_Study *)
virtual bool deactivateModule (SUIT_Study *)
void preferenceChanged (const QString &, const QString &, const QString &)
void onGUIEvent ()
void onActiveViewChanged (SUIT_ViewWindow *)
void onViewTryClose (SUIT_ViewWindow *)
void onViewClosed (SUIT_ViewWindow *)
void onViewCloned (SUIT_ViewWindow *)

Public Member Functions

 SALOME_PYQT_DataModelLight (CAM_Module *theModule)
virtual ~SALOME_PYQT_DataModelLight ()
virtual bool open (const QString &, CAM_Study *, QStringList)
virtual bool save (QStringList &)
virtual bool saveAs (const QString &, CAM_Study *, QStringList &)
virtual bool close ()
virtual bool create (CAM_Study *)
virtual bool dumpPython (const QString &, CAM_Study *, bool, QStringList &)
virtual bool isModified () const
void setModified (bool)
virtual void update (LightApp_DataObject *=0, LightApp_Study *=0)
CAM_DataObjectgetRoot ()
 SALOME_PYQT_DataObjectLight (SUIT_DataObject *=0)
virtual ~SALOME_PYQT_DataObjectLight ()
virtual QString entry () const
virtual QString refEntry () const
void setRefEntry (const QString &refEntry)
virtual QString name () const
virtual QPixmap icon (const int=NameId) const
virtual QString toolTip (const int=NameId) const
bool setName (const QString &name)
void setIcon (const QString &icon)
void setToolTip (const QString &tooltip)
virtual QColor color (const ColorRole, const int=NameId) const
void setColor (const QColor &color)
 SALOME_PYQT_ModuleLight ()
 ~SALOME_PYQT_ModuleLight ()
void initialize (CAM_Application *)
void windows (QMap< int, int > &) const
void viewManagers (QStringList &) const
void contextMenuPopup (const QString &, QMenu *, QString &)
void createPreferences ()
void studyActivated ()
void preferencesChanged (const QString &, const QString &)
int createTool (const QString &)
int createTool (const int, const int, const int=-1)
int createTool (const int, const QString &, const int=-1)
int createTool (QAction *, const int, const int=-1, const int=-1)
int createTool (QAction *, const QString &, const int=-1, const int=-1)
int createMenu (const QString &, const int, const int=-1, const int=-1, const int=-1)
int createMenu (const QString &, const QString &, const int=-1, const int=-1, const int=-1)
int createMenu (const int, const int, const int=-1, const int=-1)
int createMenu (const int, const QString &, const int=-1, const int=-1)
int createMenu (QAction *, const int, const int=-1, const int=-1, const int=-1)
int createMenu (QAction *, const QString &, const int=-1, const int=-1, const int=-1)
QAction * separator ()
QAction * action (const int) const
int actionId (const QAction *) const
QAction * createAction (const int, const QString &, const QString &, const QString &, const QString &, const int, const bool=false, QObject *=0)
QtxActionGroupcreateActionGroup (const int, const bool)
QIcon loadIcon (const QString &fileName)
int addGlobalPreference (const QString &)
int addPreference (const QString &)
int addPreference (const QString &, const int, const int=LightApp_Preferences::Auto, const QString &=QString(), const QString &=QString())
QVariant preferenceProperty (const int, const QString &) const
void setPreferenceProperty (const int, const QString &, const QVariant &)
void save (QStringList &theListOfFiles)
bool open (QStringList theListOfFiles)
void dumpPython (QStringList &theListOfFiles)
QString createObject (const QString &parent)
QString createObject (const QString &name, const QString &iconname, const QString &tooltip, const QString &parent)
void setName (const QString &obj, const QString &iconname)
void setIcon (const QString &obj, const QString &name)
void setToolTip (const QString &obj, const QString &tooltip)
QString getName (const QString &obj)
QString getToolTip (const QString &obj)
void setColor (const QString &obj, const QColor &color)
QColor getColor (const QString &obj)
void setReference (const QString &obj, const QString &refEntry)
QString getReference (const QString &obj)
void removeObject (const QString &obj)
void removeChild (const QString &obj)
QStringList getChildren (const QString &obj, const bool rec)
PyObject * getPythonModule ()
virtual bool isDraggable (const SUIT_DataObject *) const
virtual bool isDropAccepted (const SUIT_DataObject *) const
virtual void dropObjects (const DataObjectList &, SUIT_DataObject *, const int, Qt::DropAction)
 SALOME_PYQT_PyInterp ()
 ~SALOME_PYQT_PyInterp ()
int run (const char *command)

Static Public Member Functions

static SALOME_PYQT_ModuleLightgetInitModule ()
static int defaultMenuGroup ()

Protected Member Functions

virtual CAM_DataModelcreateDataModel ()
virtual bool activateModuleInternal (SUIT_Study *)
virtual void initPython ()
virtual bool initState ()
virtual bool initContext ()

Protected Attributes

PyObject * myModule
 Python GUI module.
PyInterp_InterpmyInterp
 current Python subinterpreter

Static Protected Attributes

static InterpMap myInterpMap
 study to Python subinterpreter map

Private Types

typedef QMap< int,
PyInterp_Interp * > 
InterpMap
 study to Python subinterpreter map

Private Member Functions

void init (CAM_Application *)
void activate (SUIT_Study *)
void deactivate (SUIT_Study *)
bool lastActivationStatus () const
void customize (SUIT_Study *)
void studyChanged (SUIT_Study *)
void contextMenu (const QString &, QMenu *)
void guiEvent (const int)
void initPreferences ()
void prefChanged (const QString &, const QString &)
virtual void initInterp (int)
void importModule ()
void setWorkSpace ()
void activeViewChanged (const SUIT_ViewWindow *)
void viewTryClose (const SUIT_ViewWindow *)
void viewClosed (const SUIT_ViewWindow *)
void viewCloned (const SUIT_ViewWindow *)
void connectView (const SUIT_ViewWindow *)
void saveEvent (QStringList &theListOfFiles)
void dumpEvent (QStringList &theListOfFiles)
void openEvent (QStringList theListOfFiles, bool &opened)
bool isDraggableEvent (LightApp_DataObject *)
bool isDropAcceptedEvent (LightApp_DataObject *)
void dropObjectsEvent (const DataObjectList &, SUIT_DataObject *, const int, Qt::DropAction)
SALOME_PYQT_DataObjectLightfindObject (const QString &entry)

Private Attributes

QString myFileName
QString myStudyURL
bool myModified
QString myEntry
QString myRefEntry
QString myName
QString myToolTip
QPixmap myIcon
QColor myColor
XmlHandlermyXmlHandler
 XML resource file parser.
QMap< int, int > myWindowsMap
 windows map
QStringList myViewMgrList
 compatible view managers list
bool myLastActivateStatus
 latest module activation status

Static Private Attributes

static SALOME_PYQT_ModuleLightmyInitModule
 Python GUI being initialized (not zero only during the initialization)

Friends

class XmlHandler

Detailed Description

SALOME_PYQT_DataObjectLight - PYTHON LIGHT module's data object class.

Definition at line 36 of file SALOME_PYQT_DataModelLight.h.


Member Typedef Documentation

study to Python subinterpreter map

Definition at line 51 of file SALOME_PYQT_ModuleLight.h.


Constructor & Destructor Documentation


Member Function Documentation

QAction* SALOME_PYQT_LIGHT_EXPORT::action ( const int  ) const
int SALOME_PYQT_LIGHT_EXPORT::actionId ( const QAction *  ) const
virtual bool SALOME_PYQT_LIGHT_EXPORT::activateModule ( SUIT_Study ) [virtual, slot]
virtual bool SALOME_PYQT_LIGHT_EXPORT::activateModuleInternal ( SUIT_Study ) [protected, virtual]
int SALOME_PYQT_LIGHT_EXPORT::addPreference ( const QString &  )
int SALOME_PYQT_LIGHT_EXPORT::addPreference ( const QString &  ,
const int  ,
const int  = LightApp_Preferences::Auto,
const QString &  = QString(),
const QString &  = QString() 
)
virtual bool SALOME_PYQT_LIGHT_EXPORT::close ( ) [virtual]

Here is the caller graph for this function:

virtual QColor SALOME_PYQT_LIGHT_EXPORT::color ( const ColorRole  ,
const int  = NameId 
) const [virtual]
void SALOME_PYQT_LIGHT_EXPORT::contextMenu ( const QString &  ,
QMenu *   
) [private]
void SALOME_PYQT_LIGHT_EXPORT::contextMenuPopup ( const QString &  ,
QMenu *  ,
QString &   
)
virtual bool SALOME_PYQT_LIGHT_EXPORT::create ( CAM_Study ) [virtual]
QAction* SALOME_PYQT_LIGHT_EXPORT::createAction ( const int  ,
const QString &  ,
const QString &  ,
const QString &  ,
const QString &  ,
const int  ,
const bool  = false,
QObject = 0 
)
QtxActionGroup* SALOME_PYQT_LIGHT_EXPORT::createActionGroup ( const int  ,
const bool   
)
virtual CAM_DataModel* SALOME_PYQT_LIGHT_EXPORT::createDataModel ( ) [protected, virtual]
int SALOME_PYQT_LIGHT_EXPORT::createMenu ( const QString &  ,
const int  ,
const int  = -1,
const int  = -1,
const int  = -1 
)
int SALOME_PYQT_LIGHT_EXPORT::createMenu ( const QString &  ,
const QString &  ,
const int  = -1,
const int  = -1,
const int  = -1 
)
int SALOME_PYQT_LIGHT_EXPORT::createMenu ( const int  ,
const int  ,
const int  = -1,
const int  = -1 
)
int SALOME_PYQT_LIGHT_EXPORT::createMenu ( const int  ,
const QString &  ,
const int  = -1,
const int  = -1 
)
int SALOME_PYQT_LIGHT_EXPORT::createMenu ( QAction *  ,
const int  ,
const int  = -1,
const int  = -1,
const int  = -1 
)
int SALOME_PYQT_LIGHT_EXPORT::createMenu ( QAction *  ,
const QString &  ,
const int  = -1,
const int  = -1,
const int  = -1 
)
QString SALOME_PYQT_LIGHT_EXPORT::createObject ( const QString &  parent)
QString SALOME_PYQT_LIGHT_EXPORT::createObject ( const QString &  name,
const QString &  iconname,
const QString &  tooltip,
const QString &  parent 
)
int SALOME_PYQT_LIGHT_EXPORT::createTool ( const QString &  )
int SALOME_PYQT_LIGHT_EXPORT::createTool ( const int  ,
const int  ,
const int  = -1 
)
int SALOME_PYQT_LIGHT_EXPORT::createTool ( const int  ,
const QString &  ,
const int  = -1 
)
int SALOME_PYQT_LIGHT_EXPORT::createTool ( QAction *  ,
const int  ,
const int  = -1,
const int  = -1 
)
int SALOME_PYQT_LIGHT_EXPORT::createTool ( QAction *  ,
const QString &  ,
const int  = -1,
const int  = -1 
)
virtual bool SALOME_PYQT_LIGHT_EXPORT::deactivateModule ( SUIT_Study ) [virtual, slot]
virtual void SALOME_PYQT_LIGHT_EXPORT::dropObjects ( const DataObjectList ,
SUIT_DataObject ,
const int  ,
Qt::DropAction   
) [virtual]
void SALOME_PYQT_LIGHT_EXPORT::dropObjectsEvent ( const DataObjectList ,
SUIT_DataObject ,
const int  ,
Qt::DropAction   
) [private]
void SALOME_PYQT_LIGHT_EXPORT::dumpEvent ( QStringList &  theListOfFiles) [private]
virtual bool SALOME_PYQT_LIGHT_EXPORT::dumpPython ( const QString &  ,
CAM_Study ,
bool  ,
QStringList &   
) [virtual]
void SALOME_PYQT_LIGHT_EXPORT::dumpPython ( QStringList &  theListOfFiles)
virtual QString SALOME_PYQT_LIGHT_EXPORT::entry ( ) const [virtual]
QStringList SALOME_PYQT_LIGHT_EXPORT::getChildren ( const QString &  obj,
const bool  rec 
)
QColor SALOME_PYQT_LIGHT_EXPORT::getColor ( const QString &  obj)
QString SALOME_PYQT_LIGHT_EXPORT::getName ( const QString &  obj)
QString SALOME_PYQT_LIGHT_EXPORT::getReference ( const QString &  obj)
QString SALOME_PYQT_LIGHT_EXPORT::getToolTip ( const QString &  obj)
void SALOME_PYQT_LIGHT_EXPORT::guiEvent ( const int  ) [private]
virtual QPixmap SALOME_PYQT_LIGHT_EXPORT::icon ( const int  = NameId) const [virtual]
virtual bool SALOME_PYQT_LIGHT_EXPORT::initContext ( ) [protected, virtual]
virtual void SALOME_PYQT_LIGHT_EXPORT::initInterp ( int  ) [private, virtual]
virtual void SALOME_PYQT_LIGHT_EXPORT::initPython ( ) [protected, virtual]
virtual bool SALOME_PYQT_LIGHT_EXPORT::initState ( ) [protected, virtual]
virtual bool SALOME_PYQT_LIGHT_EXPORT::isDraggable ( const SUIT_DataObject ) const [virtual]
virtual bool SALOME_PYQT_LIGHT_EXPORT::isDropAccepted ( const SUIT_DataObject ) const [virtual]
virtual bool SALOME_PYQT_LIGHT_EXPORT::isModified ( ) const [virtual]
QIcon SALOME_PYQT_LIGHT_EXPORT::loadIcon ( const QString &  fileName)
virtual QString SALOME_PYQT_LIGHT_EXPORT::name ( ) const [virtual]
virtual bool SALOME_PYQT_LIGHT_EXPORT::open ( const QString &  ,
CAM_Study ,
QStringList   
) [virtual]
bool SALOME_PYQT_LIGHT_EXPORT::open ( QStringList  theListOfFiles)
void SALOME_PYQT_LIGHT_EXPORT::openEvent ( QStringList  theListOfFiles,
bool &  opened 
) [private]
void SALOME_PYQT_LIGHT_EXPORT::prefChanged ( const QString &  ,
const QString &   
) [private]
void SALOME_PYQT_LIGHT_EXPORT::preferenceChanged ( const QString &  ,
const QString &  ,
const QString &   
) [slot]
QVariant SALOME_PYQT_LIGHT_EXPORT::preferenceProperty ( const int  ,
const QString &   
) const
void SALOME_PYQT_LIGHT_EXPORT::preferencesChanged ( const QString &  ,
const QString &   
)
virtual QString SALOME_PYQT_LIGHT_EXPORT::refEntry ( ) const [virtual]
void SALOME_PYQT_LIGHT_EXPORT::removeChild ( const QString &  obj)
void SALOME_PYQT_LIGHT_EXPORT::removeObject ( const QString &  obj)
int SALOME_PYQT_LIGHT_EXPORT::run ( const char *  command)
virtual bool SALOME_PYQT_LIGHT_EXPORT::save ( QStringList &  ) [virtual]
void SALOME_PYQT_LIGHT_EXPORT::save ( QStringList &  theListOfFiles)
virtual bool SALOME_PYQT_LIGHT_EXPORT::saveAs ( const QString &  ,
CAM_Study ,
QStringList &   
) [virtual]
void SALOME_PYQT_LIGHT_EXPORT::saveEvent ( QStringList &  theListOfFiles) [private]
void SALOME_PYQT_LIGHT_EXPORT::setColor ( const QColor &  color)
void SALOME_PYQT_LIGHT_EXPORT::setColor ( const QString &  obj,
const QColor &  color 
)
void SALOME_PYQT_LIGHT_EXPORT::setIcon ( const QString &  icon)
void SALOME_PYQT_LIGHT_EXPORT::setIcon ( const QString &  obj,
const QString &  name 
)
bool SALOME_PYQT_LIGHT_EXPORT::setName ( const QString &  name)
void SALOME_PYQT_LIGHT_EXPORT::setName ( const QString &  obj,
const QString &  iconname 
)
void SALOME_PYQT_LIGHT_EXPORT::setPreferenceProperty ( const int  ,
const QString &  ,
const QVariant &   
)
void SALOME_PYQT_LIGHT_EXPORT::setRefEntry ( const QString &  refEntry)
void SALOME_PYQT_LIGHT_EXPORT::setReference ( const QString &  obj,
const QString &  refEntry 
)
void SALOME_PYQT_LIGHT_EXPORT::setToolTip ( const QString &  tooltip)
void SALOME_PYQT_LIGHT_EXPORT::setToolTip ( const QString &  obj,
const QString &  tooltip 
)
virtual QString SALOME_PYQT_LIGHT_EXPORT::toolTip ( const int  = NameId) const [virtual]
virtual void SALOME_PYQT_LIGHT_EXPORT::update ( LightApp_DataObject = 0,
LightApp_Study *  = 0 
) [virtual]
void SALOME_PYQT_LIGHT_EXPORT::viewManagers ( QStringList &  ) const
void SALOME_PYQT_LIGHT_EXPORT::windows ( QMap< int, int > &  ) const

Friends And Related Function Documentation

friend class XmlHandler [friend]

Definition at line 219 of file SALOME_PYQT_ModuleLight.h.


Member Data Documentation

Definition at line 66 of file SALOME_PYQT_DataObjectLight.h.

Definition at line 61 of file SALOME_PYQT_DataObjectLight.h.

Definition at line 62 of file SALOME_PYQT_DataModelLight.h.

Definition at line 65 of file SALOME_PYQT_DataObjectLight.h.

Python GUI being initialized (not zero only during the initialization)

Definition at line 55 of file SALOME_PYQT_ModuleLight.h.

current Python subinterpreter

Definition at line 64 of file SALOME_PYQT_ModuleLight.h.

study to Python subinterpreter map

Definition at line 65 of file SALOME_PYQT_ModuleLight.h.

latest module activation status

Definition at line 60 of file SALOME_PYQT_ModuleLight.h.

Definition at line 64 of file SALOME_PYQT_DataModelLight.h.

PyObject* SALOME_PYQT_LIGHT_EXPORT::myModule [protected]

Python GUI module.

Definition at line 63 of file SALOME_PYQT_ModuleLight.h.

Definition at line 63 of file SALOME_PYQT_DataObjectLight.h.

Definition at line 62 of file SALOME_PYQT_DataObjectLight.h.

Definition at line 63 of file SALOME_PYQT_DataModelLight.h.

Definition at line 64 of file SALOME_PYQT_DataObjectLight.h.

compatible view managers list

Definition at line 59 of file SALOME_PYQT_ModuleLight.h.

QMap<int, int> SALOME_PYQT_LIGHT_EXPORT::myWindowsMap [private]

windows map

Definition at line 58 of file SALOME_PYQT_ModuleLight.h.

XML resource file parser.

Definition at line 57 of file SALOME_PYQT_ModuleLight.h.


The documentation for this protocol was generated from the following files: