ENDIF(crea_FOUND)
+message("link directory ${GDCM_INCLUDE_DIR}")
SET(USE_GDCM_VTK ON)
IF(WIN32)
- ADD_EXECUTABLE(TestWxGimmickReaderDialog WIN32 main)
- SET_TARGET_PROPERTIES(TestWxGimmickReaderDialog PROPERTIES LINK_FLAGS /subsystem:console )
+ ADD_EXECUTABLE(creaImageIOApp WIN32 main)
+ SET_TARGET_PROPERTIES(creaImageIOApp PROPERTIES LINK_FLAGS /subsystem:console )
ELSE(WIN32)
- ADD_EXECUTABLE(TestWxGimmickReaderDialog MACOSX_BUNDLE main)
+ ADD_EXECUTABLE(creaImageIOApp MACOSX_BUNDLE main)
ENDIF(WIN32)
-TARGET_LINK_LIBRARIES( TestWxGimmickReaderDialog creaImageIO )
+TARGET_LINK_LIBRARIES( creaImageIOApp creaImageIO )
-INSTALL_TARGETS(/bin/ TestWxGimmickReaderDialog )
+INSTALL_TARGETS(/bin/ creaImageIOApp )
IF(WIN32)
- ADD_EXECUTABLE(TestWxSimpleDlg WIN32 main)
- SET_TARGET_PROPERTIES(TestWxSimpleDlg PROPERTIES LINK_FLAGS /subsystem:console )
+ ADD_EXECUTABLE(creaGimmickApp WIN32 main)
+ SET_TARGET_PROPERTIES(creaGimmickApp PROPERTIES LINK_FLAGS /subsystem:console )
ELSE(WIN32)
- ADD_EXECUTABLE(TestWxSimpleDlg MACOSX_BUNDLE main)
+ ADD_EXECUTABLE(creaGimmickApp MACOSX_BUNDLE main)
ENDIF(WIN32)
-TARGET_LINK_LIBRARIES( TestWxSimpleDlg creaImageIO )
+TARGET_LINK_LIBRARIES( creaGimmickApp creaImageIO )
-INSTALL_TARGETS(/bin/ TestWxSimpleDlg )
+INSTALL_TARGETS(/bin/ creaGimmickApp )
CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE(${LIBRARY_NAME})
IF (WIN32)
SET(INPUT_DATA_DIR ${PROJECT_SOURCE_DIR}/src/data)
- SET(OUTPUT_DATA_DIR ${PROJECT_BINARY_DIR}/bin/share/gimmick)
+ SET(OUTPUT_DATA_DIR ${PROJECT_BINARY_DIR}/bin/share/creaImageIO)
ELSE (WIN32)
SET(INPUT_DATA_DIR ${PROJECT_SOURCE_DIR}/src/data)
- SET(OUTPUT_DATA_DIR ${PROJECT_BINARY_DIR}/share/gimmick)
+ SET(OUTPUT_DATA_DIR ${PROJECT_BINARY_DIR}/share/creaImageIO)
ENDIF (WIN32)
CREA_CPDIR(${INPUT_DATA_DIR} ${OUTPUT_DATA_DIR})
CreateUserSettingsDirectory();
// Sets the current directory to the home dir
mCurrentDirectory = GetHomeDirectory();
- mSynchronizer= new Synchronizer(GetUserSettingsDirectory()+"share/gimmick/");
+ mSynchronizer= new Synchronizer(GetUserSettingsDirectory()+"share/creaImageIO/");
mSettings = new Settings(mCurrentDirectory);
std::string dbpath = GetLocalDatabasePath();
// Create or open local database
- std::string dpath= mCurrentDirectory + "/.gimmick/share/gimmick/" + mLocalDescpName;
+ std::string dpath= mCurrentDirectory + "/.creaImageIO/share/creaImageIO/" + mLocalDescpName;
boost::algorithm::replace_all( dpath,
INVALID_FILE_SEPARATOR ,
if (mUserSettingsDirectory.size()==0)
{
mUserSettingsDirectory = GetHomeDirectory();
- mUserSettingsDirectory += "/.gimmick/";
+ mUserSettingsDirectory += "/.creaImageIO/";
boost::algorithm::replace_all( mUserSettingsDirectory,
INVALID_FILE_SEPARATOR ,
VALID_FILE_SEPARATOR);
if (mLocalDatabasePath.size()==0)
{
mLocalDatabasePath = GetUserSettingsDirectory();
- mLocalDatabasePath += "share/gimmick/";
+ mLocalDatabasePath += "share/creaImageIO/";
mLocalDatabasePath += mLocalDBName;
mLocalDatabasePath +=".sqlite3";
boost::algorithm::replace_all( mLocalDatabasePath,
VALID_FILE_SEPARATOR);
setDir+="share/";
boost::filesystem::create_directory( setDir );
- setDir+="gimmick/";
+ setDir+="creaImageIO/";
boost::filesystem::create_directory( setDir );
setDir+=mLocalDescpName;
// The following stuff works on Linux, NOT CHECKED on Windows // JPR
#if defined(_WIN32)
- path+="/bin/share/gimmick/";
+ path+="/bin/share/creaImageIO/";
#endif
#if defined (LINUX)
- path+="/../share/gimmick/";
+ path+="/../share/creaImageIO/";
#endif
#if defined(__APPLE__)
- path+="/../../../../share/gimmick/";
+ path+="/../../../../share/creaImageIO/";
#endif
Settings::Settings(const std::string i_path)
{
//need to position path in user directory first.
- m_SettingsFileName = i_path + "\\.gimmick\\share\\gimmick\\app.config";
+ m_SettingsFileName = i_path + "\\.creaImageIO\\share\\creaImageIO\\app.config";
//Test if Settings File exist
if(!boost::filesystem::exists(m_SettingsFileName) )
{
if(sel.size()>1&&levelName.at(levelName.size()-1)!='s')
{
out<<" "<<levelName;
- out<<"s to .gimmick?";
+ out<<"s to .creaImageIO?";
}
else
{
- out<<" "<<GetTreeHandler()->GetTree().GetLevelDescriptor(mLastLevel).GetName()<<" to .gimmick?";
+ out<<" "<<GetTreeHandler()->GetTree().GetLevelDescriptor(mLastLevel).GetName()<<" to .creaImageIO?";
}
if (wxMessageBox(crea::std2wx(out.str()),
_T("Remove Files"),