emit localSelectionChanged();
}
+void SALOME_PYQT_ModuleLight::enableSelector()
+{
+ MESSAGE("enableSelector");
+ if (!mySelector)
+ {
+ mySelector = new SALOME_PYQT_Selector(this, this->getApp()->selectionMgr());
+ }
+ mySelector->setEnabled(true);
+}
+
+void SALOME_PYQT_ModuleLight::disableSelector()
+{
+ MESSAGE("disableSelector");
+ if (mySelector)
+ mySelector->setEnabled(false);
+}
QStringList getChildren( const QString&, const bool = false ) const;
+ void enableSelector();
+ void disableSelector();
void setLocalSelected(const QStringList &);
void getSelected( DataObjectList& ) const;
unsigned long getModifiedTime() const;
return ProcessVoidEvent( new TSetSelectionEvent(entryList) );
}
+/*!
+ \fn void SalomePyQt::enableSelector();
+ \brief enable PyQt_Selector (on module activation, for instance)
+*/
+
+class TEnableSelectorEvent: public SALOME_Event
+{
+public:
+ TEnableSelectorEvent() {}
+ virtual void Execute()
+ {
+ SALOME_PYQT_ModuleLight* module = dynamic_cast<SALOME_PYQT_ModuleLight*>( getActiveModule() );
+ if ( !module ) return;
+ module->enableSelector();
+ }
+};
+void SalomePyQt::enableSelector()
+{
+ return ProcessVoidEvent( new TEnableSelectorEvent() );
+}
+
+
+/*!
+ \fn void SalomePyQt::disableSelector();
+ \brief disable PyQt_Selector (on module activation, for instance)
+*/
+
+class TdisableSelectorEvent: public SALOME_Event
+{
+public:
+ TdisableSelectorEvent() {}
+ virtual void Execute()
+ {
+ SALOME_PYQT_ModuleLight* module = dynamic_cast<SALOME_PYQT_ModuleLight*>( getActiveModule() );
+ if ( !module ) return;
+ module->disableSelector();
+ }
+};
+void SalomePyQt::disableSelector()
+{
+ return ProcessVoidEvent( new TdisableSelectorEvent() );
+}
+
+
/*!
\fn void SalomePyQt::putInfo( const QString& msg, const int sec );
\brief Put an information message to the current application's
static QMenu* getPopupMenu( const MenuName );
static QMenu* getPopupMenu( const QString& );
static QTreeView* getObjectBrowser();
+ static void enableSelector();
+ static void disableSelector();
static SALOME_Selection* getSelection();
static void setSelection( const QStringList& );
static int getStudyId();
static QMenu* getPopupMenu( const MenuName ) /ReleaseGIL/ ;
static QMenu* getPopupMenu( const QString& ) /ReleaseGIL/ ;
static QTreeView* getObjectBrowser() /ReleaseGIL/ ;
+ static void enableSelector() /ReleaseGIL/ ;
+ static void disableSelector() /ReleaseGIL/ ;
static SALOME_Selection* getSelection() /Factory,ReleaseGIL/ ;
static void setSelection( const QStringList& ) /ReleaseGIL/ ;
static int getStudyId() /ReleaseGIL/ ;