From: smh Date: Fri, 30 Apr 2004 11:57:16 +0000 (+0000) Subject: Do not show some console's messages by default X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6e703e594021f9dc668d0e307638afbf44212195;p=modules%2Fkernel.git Do not show some console's messages by default --- diff --git a/src/SALOMEGUI/QAD_ObjectBrowser.cxx b/src/SALOMEGUI/QAD_ObjectBrowser.cxx index 9fa4ef038..4516e9934 100644 --- a/src/SALOMEGUI/QAD_ObjectBrowser.cxx +++ b/src/SALOMEGUI/QAD_ObjectBrowser.cxx @@ -73,6 +73,14 @@ using namespace std; #define UC_CLEAR_ID 1000014 #define UC_SET_CURRENT_ID 1000016 + +#ifdef _DEBUG_ +static int MYDEBUG = 0; +#else +static int MYDEBUG = 0; +#endif + + /*! Small button which updates Object Browser's contents */ @@ -658,7 +666,7 @@ void QAD_ObjectBrowser::Update( SALOMEDS::SObject_ptr SO, myListViewMap[ RefSOEntry ].append( Item ); } else { - MESSAGE("QAD_ObjectBrowser::Update : noname item: "<GetID()); + if(MYDEBUG) MESSAGE("QAD_ObjectBrowser::Update : noname item: "<GetID()); } } else { // getting Value @@ -675,7 +683,7 @@ void QAD_ObjectBrowser::Update( SALOMEDS::SObject_ptr SO, myListViewMap[ CSOEntry ].append( Item ); } else { - MESSAGE("QAD_ObjectBrowser::Update : noname item: "<GetID()); + if(MYDEBUG) MESSAGE("QAD_ObjectBrowser::Update : noname item: "<GetID()); } // adding other attributes if (Item) { @@ -860,8 +868,8 @@ void QAD_ObjectBrowser::Update() QString msg; QAD_ResourceMgr* resMgr = QAD_Desktop::createResourceManager(); if ( resMgr ) { - MESSAGE ( " Component " << aName->Value() ) - MESSAGE ( " Icon " << aPixmap->GetPixMap() ) + if(MYDEBUG) MESSAGE ( " Component " << aName->Value() ); + if(MYDEBUG) MESSAGE ( " Icon " << aPixmap->GetPixMap() ); if(resMgr->loadResources( QAD_Application::getDesktop()->getComponentName(QString(aName->Value())), msg )) { QPixmap icon ( resMgr->loadPixmap( QAD_Application::getDesktop()->getComponentName(QString(aName->Value())), tr(aPixmap->GetPixMap()) /*tr( "ICON_OBJBROWSER_" + theComponent )*/ ));