]> Creatis software - bbtk.git/blobdiff - kernel/appli/bbStudio/bbStudio.cxx
#135 BBTK Feature New Normal - branch vtk7itk4wx3
[bbtk.git] / kernel / appli / bbStudio / bbStudio.cxx
index 4a00d22c35e82c046b0b3052aed9855868c29f08..25e4612cf6f2fd227a4601f37534e3850519a199 100644 (file)
 #include <wx/cmdline.h> 
 #include <vector>
 
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
+       static const wxCmdLineEntryDesc cmdLineDesc[] =
+       {
+         { wxCMD_LINE_PARAM,  NULL, NULL, _T("file1 [file2 [...]]"), wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL }, 
+         { wxCMD_LINE_SWITCH, _T("h"), _T("help"),   _T("Prints this help") },
+         { wxCMD_LINE_SWITCH, _T("d"), _T("debug"),   _T("Message all 9") },
+         { wxCMD_LINE_NONE }
+       };
+#else
+       static const wxCmdLineEntryDesc cmdLineDesc[] =
+       {
+         { wxCMD_LINE_PARAM,  NULL, NULL, "file1 [file2 [...]]", wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL }, 
+         { wxCMD_LINE_SWITCH, "h", "help",   "Prints this help" },
+         { wxCMD_LINE_SWITCH, "d", "debug",   "Message all 9" },
+         { wxCMD_LINE_NONE }
+       };
+#endif
 
-static const wxCmdLineEntryDesc cmdLineDesc[] =
-{
-  { wxCMD_LINE_PARAM,  NULL, NULL, _T("file1 [file2 [...]]"), wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL }, 
-  { wxCMD_LINE_SWITCH, _T("h"), _T("help"),   _T("Prints this help") },
-  { wxCMD_LINE_SWITCH, _T("d"), _T("debug"),   _T("Message all 9") },
-  { wxCMD_LINE_NONE }
-};