\endcode
*/
+/*!
+ \fn QString SalomePyQt::getAppName();
+ \brief Get application name
+ \return application name
+*/
+
+QString SalomePyQt::getAppName()
+{
+ LightApp_Application* app = getApplication();
+ return app == 0 ? QString() : QString(app->metaObject()->className()).split("_").first();
+}
+
+/*!
+ \fn bool SalomePyQt::isLightApp();
+ \brief Check if SALOME GUI is running in "light" mode.
+ \return \c true if this is a "light" application; \c false otherwise
+*/
+
+bool SalomePyQt::isLightApp()
+{
+ return SalomePyQt::getAppName() != "SalomeApp";
+}
+
/*!
\fn QWidget* SalomePyQt::getDesktop();
\brief Get the active application's desktop window.
class SalomePyQt
{
public:
+ static QString getAppName();
+ static bool isLightApp();
+
static QWidget* getDesktop();
static QWidget* getMainFrame();
static QMenuBar* getMainMenuBar();
%End
public:
+ static QString getAppName() /ReleaseGIL/ ;
+ static bool isLightApp() /ReleaseGIL/ ;
+
/* KeepReference is necessary on method getDesktop with SIP >= 4.15.5 to avoid garbage collection of
the Python objects added to the desktop. This causes a small memory leak (the wrapper around desktop
object is never garbage collected) but since this object contains only references this is not