#include "SalomeApp_Study.h"
#include "SalomeApp_Module.h"
#include "SalomeApp_OBFilter.h"
+#include "SalomeApp_DataModel.h"
#include "SalomeApp_DataObject.h"
#include "SalomeApp_EventFilter.h"
#include "SalomeApp_WidgetContainer.h"
{
}
+void SalomeApp_Application::onAboutRefresh()
+{
+ SalomeApp_DataModel* dm = 0;
+ if ( activeModule() )
+ {
+ CAM_DataModel* camDM = activeModule()->dataModel();
+ if ( camDM && camDM->inherits( "SalomeApp_DataModel" ) )
+ dm = (SalomeApp_DataModel*)camDM;
+ }
+
+ if ( dm )
+ dm->update();
+}
+
void SalomeApp_Application::setActiveStudy( SUIT_Study* study )
{
CAM_Application::setActiveStudy( study );
wid = ob;
+ connect( ob, SIGNAL( aboutRefresh() ), this, SLOT( onAboutRefresh() ) );
ob->connectPopupRequest( this, SLOT( onConnectPopupRequest( SUIT_PopupClient*, QContextMenuEvent* ) ) );
}
else if ( flag == WT_PyConsole )
switch ( cr )
{
case Foreground:
+ if ( myObject )
{
_PTR(GenericAttribute) anAttr;
- if ( myObject && myObject->FindAttribute( anAttr, "AttributeTextColor" ) )
+ if ( myObject->FindAttribute( anAttr, "AttributeTextColor" ) )
{
- _PTR(AttributeTextColor) aColAttr( anAttr );
+ _PTR(AttributeTextColor) aColAttr = anAttr;
clr = QColor( (int)aColAttr->TextColor().R, (int)aColAttr->TextColor().G, (int)aColAttr->TextColor().B );
}
}