|
|
@ -7,20 +7,25 @@ |
|
|
|
|
|
|
|
|
|
|
|
UniboardSankoreTransition::UniboardSankoreTransition(QObject *parent) : |
|
|
|
UniboardSankoreTransition::UniboardSankoreTransition(QObject *parent) : |
|
|
|
QObject(parent) |
|
|
|
QObject(parent) |
|
|
|
|
|
|
|
, mTransitionDlg(NULL) |
|
|
|
{ |
|
|
|
{ |
|
|
|
mOldSankoreDirectory = UBFileSystemUtils::normalizeFilePath(UBDesktopServices::storageLocation(QDesktopServices::DataLocation)); |
|
|
|
// mOldSankoreDirectory = UBFileSystemUtils::normalizeFilePath(UBDesktopServices::storageLocation(QDesktopServices::DataLocation));
|
|
|
|
|
|
|
|
|
|
|
|
mUniboardSourceDirectory = UBFileSystemUtils::normalizeFilePath(UBDesktopServices::storageLocation(QDesktopServices::DataLocation)); |
|
|
|
// mUniboardSourceDirectory = UBFileSystemUtils::normalizeFilePath(UBDesktopServices::storageLocation(QDesktopServices::DataLocation));
|
|
|
|
#if defined(Q_WS_MACX) |
|
|
|
//#if defined(Q_WS_MACX)
|
|
|
|
mUniboardSourceDirectory.replace("Sankore/Sankore 3.1", "Uniboard"); |
|
|
|
// mUniboardSourceDirectory.replace("Sankore/Sankore 3.1", "Uniboard");
|
|
|
|
#else |
|
|
|
//#else
|
|
|
|
mUniboardSourceDirectory.replace("Sankore/Sankore 3.1", "Mnemis/Uniboard"); |
|
|
|
// mUniboardSourceDirectory.replace("Sankore/Sankore 3.1", "Mnemis/Uniboard");
|
|
|
|
#endif |
|
|
|
//#endif
|
|
|
|
connect(this, SIGNAL(docAdded(UBDocumentProxy*)), UBPersistenceManager::persistenceManager(), SIGNAL(documentCreated(UBDocumentProxy*))); |
|
|
|
// connect(this, SIGNAL(docAdded(UBDocumentProxy*)), UBPersistenceManager::persistenceManager(), SIGNAL(documentCreated(UBDocumentProxy*)));
|
|
|
|
} |
|
|
|
} |
|
|
|
UniboardSankoreTransition::~UniboardSankoreTransition() |
|
|
|
UniboardSankoreTransition::~UniboardSankoreTransition() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if(NULL != mTransitionDlg) |
|
|
|
{ |
|
|
|
{ |
|
|
|
delete mTransitionDlg; |
|
|
|
delete mTransitionDlg; |
|
|
|
|
|
|
|
mTransitionDlg = NULL; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void UniboardSankoreTransition::rollbackDocumentsTransition(QFileInfoList& fileInfoList) |
|
|
|
void UniboardSankoreTransition::rollbackDocumentsTransition(QFileInfoList& fileInfoList) |
|
|
|