// File: LightApp_Application.cxx
// Created: 6/20/2005 18:39:45 PM
// Author: Natalia Donis
-
#ifdef WIN32
// E.A. : On windows with python 2.6, there is a conflict
// E.A. : between pymath.h and Standard_math.h which define
SCRUTE(extRootDir);
// We'll load all the extensions modules from this path
- auto extModulesDir = QDir::cleanPath(QString(extRootDir) + QDir::separator() + "__SALOME_EXT__");
- SCRUTE(extModulesDir.toStdString());
+ auto SalomeExtDir = QDir::cleanPath(QString(extRootDir) + QDir::separator() + "__SALOME_EXT__");
+ SCRUTE(SalomeExtDir.toStdString());
// Import Python module that manages SALOME extensions.
// It seems to be faster to lock and unlock once than on each iteration,
QString moduleName(PyUnicode_AsUTF8(moduleNameItem));
SCRUTE(moduleName.toStdString());
- QString moduleDir = QDir::cleanPath(extModulesDir + QDir::separator() + moduleName);
- SCRUTE(moduleDir.toStdString());
-
- addUserModule(moduleName, moduleDir, true);
+ addUserModule(moduleName, SalomeExtDir, true);
}
// Add an extension to GUI
for ( QList<QtxComboBox*>::const_iterator it = lst.begin(); it != lst.end(); ++it )
update( *it );
+
myCombo->setVisible( myMode & List );
- myAdd->setVisible( myMode & AddRemove );
- myRemove->setVisible( myMode & AddRemove );
- myInfo->setVisible( myMode & All );
+ if ( QString::compare(getenv("SALOME_ON_DEMAND"),"HIDE", Qt::CaseInsensitive) != 0)
+ {
+ myAdd->setVisible( myMode & AddRemove );
+ myRemove->setVisible( myMode & AddRemove );
+ myInfo->setVisible( myMode & All );
+ }
+ else
+ {
+ myAdd->setVisible(false);
+ myRemove->setVisible( false );
+ myInfo->setVisible( false );
+ }
mySet->setVisible( myMode & Buttons );
}