** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: imagefile.cpp,v 1.47 2003/03/23 18:37:42 kevin Exp $
+** $Id: imagefile.cpp,v 1.48 2003/07/04 21:39:40 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
const char* ImageFile::s_aszExportFormatName[] =
{
- {"text"},
- {"pgm"},
- {"pgmascii"},
+ "text",
+ "pgm",
+ "pgmascii",
#ifdef HAVE_PNG
- {"png"},
- {"png16"},
+ "png",
+ "png16",
#endif
#ifdef HAVE_CTN_DICOM
- {"dicom"},
+ "dicom",
#endif
};
const char* ImageFile::s_aszExportFormatTitle[] =
{
- {"Text"},
- {"PGM"},
- {"PGM ASCII"},
- {"PNG"},
- {"PNG 16-bit"},
+ "Text",
+ "PGM",
+ "PGM ASCII",
+#ifdef HAVE_PNG
+ "PNG",
+ "PNG 16-bit",
+#endif
#ifdef HAVE_CTN_DICOM
- {"Dicom"},
+ "Dicom",
#endif
};
const int ImageFile::s_iExportFormatCount = sizeof(s_aszExportFormatName) / sizeof(const char*);
const char* ImageFile::s_aszImportFormatName[] =
{
- {"ppm"},
+ "ppm",
#ifdef HAVE_PNG
- {"png"},
+ "png",
#endif
#ifdef HAVE_CTN_DICOM
- {"dicom"},
+ "dicom",
#endif
};
const char* ImageFile::s_aszImportFormatTitle[] =
{
- {"PPM"},
- {"PNG"},
+ "PPM",
+#ifdef HAVE_PNG
+ "PNG",
+#endif
#ifdef HAVE_CTN_DICOM
- {"Dicom"},
+ "Dicom",
#endif
};
const int ImageFile::s_iImportFormatCount = sizeof(s_aszImportFormatName) / sizeof(const char*);