#include <Standard_Version.hxx>
+//---------------------------------------------------------
+#define USE_DEBUG
+//#define MB_IGNORE_QT
+//#define MB_FULL_DUMP
+#define MBCLASSNAME "LightApp_Application"
+#include "MBDebug.h"
+// <-- insert includes for addtional debug headers here!
+//---------------------------------------------------------
+
#define ToolBarMarker 0
#define DockWidgetMarker 1
myPrefs( 0 ),
myScreenHelper(new LightApp_FullScreenHelper())
{
+ DBG_FUN();
Q_INIT_RESOURCE( LightApp );
STD_TabDesktop* desk = new STD_TabDesktop();
*/
LightApp_Application::~LightApp_Application()
{
+ DBG_FUN();
savePreferences();
delete mySelMgr;
delete myScreenHelper;
/*!Start application.*/
void LightApp_Application::start()
{
+ DBG_FUN();
CAM_Application::start();
updateWindows();
/*!Closeapplication.*/
void LightApp_Application::closeApplication()
{
+ DBG_FUN();
#ifndef DISABLE_QTXWEBBROWSER
QProcess::startDetached( "HelpBrowser",
QStringList() << QString( "--remove=%1" ).arg( QApplication::instance()->applicationPid() ) );
*/
void LightApp_Application::onStudyOpened( SUIT_Study* theStudy )
{
+ DBG_FUN();
SUIT_DataObject* aRoot = 0;
if ( theStudy && theStudy->root() )
{
/*!Protected SLOT. On study saved.*/
void LightApp_Application::onStudySaved( SUIT_Study* s )
{
+ DBG_FUN();
QtxMRUAction* mru = ::qobject_cast<QtxMRUAction*>( action( MRUId ) );
- if ( mru && s )
+ if ( mru && s ) {
+ MSGEL("...adding [" << s->studyName().toStdString() << "] to MRU");
mru->insert( s->studyName() );
+ }
emit studySaved();
}
/*!Protected SLOT. On study closed.*/
void LightApp_Application::onStudyClosed( SUIT_Study* /*s*/ )
{
+ DBG_FUN();
/*
disconnect( this, SIGNAL( viewManagerRemoved( SUIT_ViewManager* ) ),
this, SLOT( onViewManagerRemoved( SUIT_ViewManager* ) ) );
void LightApp_Application::studyOpened( SUIT_Study* s )
{
+ DBG_FUN();
CAM_Application::studyOpened( s );
updateWindows();
void LightApp_Application::studySaved( SUIT_Study* s )
{
+ DBG_FUN();
CAM_Application::studyOpened( s );
SUIT_ResourceMgr* aResMgr = SUIT_Session::session()->resourceMgr();
if ( aResMgr && activeStudy() ) {
void LightApp_Application::onMRUActivated( const QString& name )
{
+ DBG_FUN();
+ ARG(name);
SUIT_Session* s = SUIT_Session::session();
if ( s && s->activeApplication() == this )
onOpenDoc( name );