Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __vtkKWFileBrowserUtilities_h
00022 #define __vtkKWFileBrowserUtilities_h
00023
00024 #include <vtksys/SystemTools.hxx>
00025 #include <vtksys/stl/string>
00026
00027 #ifdef _WIN32
00028 #define KWFileBrowser_PATH_SEPARATOR "\\"
00029 #else
00030 #define KWFileBrowser_PATH_SEPARATOR "/"
00031 #endif
00032
00033 #define KWFileBrowser_UNIX_ROOT_DIRECTORY "/"
00034 #define KWFileBrowser_ESCAPE_CHARS "{}[]$\"\\"
00035 #define VTK_KW_FAVORITE_TOPLEVEL "KWFileBrowserFavorites"
00036
00037 static char* KWFileBrowser_GetUnixPath(const char* path)
00038 {
00039 if(path && *path)
00040 {
00041 vtksys_stl::string sBuffer = path;
00042 vtksys::SystemTools::ConvertToUnixSlashes(sBuffer);
00043 static char buffer[512];
00044 strcpy(buffer, sBuffer.c_str());
00045 return buffer;
00046 }
00047 return NULL;
00048 };
00049
00050 #endif