X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FLightApp%2FLightApp_Application.cxx;h=cf0163b5a2d40b291ef0894af0a7a4558d213a0b;hb=5ab4e9f868874916c91b51f12aa8beacf09f4125;hp=7b2bd00de5587a99983f946d8c62c58feba508f8;hpb=90b0f6fe027894fd25b7782a21644e0f04672f9d;p=modules%2Fgui.git diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 7b2bd00de..cf0163b5a 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -254,6 +254,7 @@ LightApp_Application::LightApp_Application() STD_TabDesktop* desk = new STD_TabDesktop(); desk->setFullScreenAllowed(false); + desk->setMinimizeAllowed(false); setDesktop( desk ); @@ -1279,11 +1280,21 @@ LogWindow* LightApp_Application::logWindow() #ifndef DISABLE_PYCONSOLE /*! + This returns the python console integrated to the GUI. Depending + when you request the python console, this function could return + null. Then the optional parameter force (default to false) can be + set to force the creation of the python console if it is not done + already. + \param force - if true, the pythonConsole is created if it does not exist yet \return Python Console */ -PyConsole_Console* LightApp_Application::pythonConsole() +PyConsole_Console* LightApp_Application::pythonConsole(const bool force) { - return qobject_cast( dockWindow( WT_PyConsole ) ); + QWidget* wid = dockWindow( WT_PyConsole ); + if ( !wid && force==true) { + wid = getWindow(WT_PyConsole); + } + return qobject_cast( wid ); } #endif