#include "SUIT_MessageBox.h"
#include "SUIT_Application.h"
+//---------------------------------------------------------
+#define USE_DEBUG
+//#define MB_IGNORE_QT
+//#define MB_FULL_DUMP
+#define MBCLASSNAME "SUIT_Study"
+#include "MBDebug.h"
+// <-- insert includes for addtional debug headers here!
+//---------------------------------------------------------
+
/*!\class SUIT_Study
* Support study management. Object management. Operation management.
*/
myIsModified( false ),
myBlockChangeState( false )
{
+ DBG_FUN();
static int _id = 0;
myId = ++_id;
+ SHOW(myId);
myRoot = new SUIT_DataObject();
}
/*!Destructor.*/
SUIT_Study::~SUIT_Study()
{
+ DBG_FUN();
delete myRoot;
myRoot = 0;
}
/*!
* Save document as \a fileName. Set file name.
*/
-bool SUIT_Study::saveDocumentAs( const QString& fileName )
-{
- myName = fileName;
- myIsSaved = true;
- myIsModified = false;
+bool SUIT_Study::saveDocumentAs( const QString& fileName, bool isBackup/*=false*/ )
+{
+ DBG_FUN();
+ ARG(fileName);
+ ARG(isBackup);
+ if (!isBackup) {
+ myName = fileName;
+ myIsSaved = true;
+ myIsModified = false;
+ }
+ SHOW(myName);
+ SHOW(myIsSaved);
+ SHOW(myIsModified);
return true;
}
*/
bool SUIT_Study::saveDocument()
{
+ DBG_FUN();
return saveDocumentAs( myName );
}