-// Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE
+// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
#include <SUIT_DataBrowser.h>
#include <SUIT_DataObject.h>
-//---------------------------------------------------------
-#define USE_DEBUG
-//#define MB_IGNORE_QT
-//#define MB_FULL_DUMP
-#define MBCLASSNAME "LightApp_DataModel"
-#include "MBDebug.h"
-// <-- insert includes for addtional debug headers here!
-//---------------------------------------------------------
/*!
Constructor
LightApp_DataModel::LightApp_DataModel( CAM_Module* theModule )
: CAM_DataModel( theModule )
{
- DBG_FUN();
myGroupId = 0;
if( module() )
myGroupId = qHash( module()->name() );
*/
LightApp_DataModel::~LightApp_DataModel()
{
- DBG_FUN();
}
/*!
*/
bool LightApp_DataModel::open( const QString&, CAM_Study*, QStringList )
{
- DBG_FUN();
emit opened(); //TODO: is it really needed? to be removed maybe...
return true;
}
*/
bool LightApp_DataModel::save( QStringList& )
{
- DBG_FUN();
emit saved();
return true;
}
*/
bool LightApp_DataModel::saveAs( const QString&, CAM_Study*, QStringList&, bool isBackup/*=false*/ )
{
- DBG_FUN();
- ARG(isBackup);
if (!isBackup)
emit saved();
return true;
*/
bool LightApp_DataModel::close()
{
- DBG_FUN();
emit closed();
return true;
}
*/
void LightApp_DataModel::update( LightApp_DataObject*, LightApp_Study* )
{
- DBG_FUN();
// san: Previously modelRoot was casted to LightApp_ModuleObject*,
// BUT this is incorrect: in full SALOME the model root has different type.
// Hopefully LightApp_DataObject* is sufficient here.