Skip to content
Snippets Groups Projects
Commit b5aff461 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

report MED version

parent 53e1818a
No related branches found
No related tags found
No related merge requests found
...@@ -37,6 +37,10 @@ ...@@ -37,6 +37,10 @@
#include "Standard_Version.hxx" #include "Standard_Version.hxx"
#endif #endif
#if defined(HAVE_MED)
#include "med.h"
#endif
#if defined(HAVE_POST) #if defined(HAVE_POST)
#include "PView.h" #include "PView.h"
#endif #endif
...@@ -941,6 +945,10 @@ void GetOptions(int argc, char *argv[]) ...@@ -941,6 +945,10 @@ void GetOptions(int argc, char *argv[])
#if defined(HAVE_OCC) #if defined(HAVE_OCC)
fprintf(stderr, "OCC version : %d.%d.%d\n", OCC_VERSION_MAJOR, fprintf(stderr, "OCC version : %d.%d.%d\n", OCC_VERSION_MAJOR,
OCC_VERSION_MINOR, OCC_VERSION_MAINTENANCE); OCC_VERSION_MINOR, OCC_VERSION_MAINTENANCE);
#endif
#if defined(HAVE_MED)
fprintf(stderr, "MED version : %d.%d.%d\n", MED_NUM_MAJEUR,
MED_NUM_MINEUR, MED_NUM_RELEASE);
#endif #endif
fprintf(stderr, "Packaged by : %s\n", GMSH_PACKAGER); fprintf(stderr, "Packaged by : %s\n", GMSH_PACKAGER);
fprintf(stderr, "Web site : http://www.geuz.org/gmsh/\n"); fprintf(stderr, "Web site : http://www.geuz.org/gmsh/\n");
......
...@@ -30,6 +30,10 @@ ...@@ -30,6 +30,10 @@
#include "Standard_Version.hxx" #include "Standard_Version.hxx"
#endif #endif
#if defined(HAVE_MED)
#include "med.h"
#endif
static const char *help_link(Fl_Widget *w, const char *uri) static const char *help_link(Fl_Widget *w, const char *uri)
{ {
fl_open_uri(uri); fl_open_uri(uri);
...@@ -283,7 +287,7 @@ helpWindow::helpWindow() ...@@ -283,7 +287,7 @@ helpWindow::helpWindow()
{ {
{ {
int width = 28 * FL_NORMAL_SIZE; int width = 28 * FL_NORMAL_SIZE;
int height = 18 * BH; int height = 19 * BH;
about = new paletteWindow about = new paletteWindow
(width, height, CTX::instance()->nonModalWindows ? true : false, "About Gmsh"); (width, height, CTX::instance()->nonModalWindows ? true : false, "About Gmsh");
...@@ -295,7 +299,7 @@ helpWindow::helpWindow() ...@@ -295,7 +299,7 @@ helpWindow::helpWindow()
o->box(FL_FLAT_BOX); o->box(FL_FLAT_BOX);
std::ostringstream sstream; std::ostringstream sstream;
sstream << "<center><h3>Gmsh</h3><br>version " << GetGmshVersion() sstream << "<center><h3>Gmsh</h3><br>version " << GetGmshVersion()
<< "<p>Copyright (C) 1997-2014" << "<p>Copyright (C) 1997-2015"
<< "<br>Christophe Geuzaine and Jean-Francois Remacle" << "<br>Christophe Geuzaine and Jean-Francois Remacle"
<< "<p><a href=\"http://geuz.org/gmsh/doc/CREDITS.txt\">Credits</a> " << "<p><a href=\"http://geuz.org/gmsh/doc/CREDITS.txt\">Credits</a> "
<< "and <a href=\"http://geuz.org/gmsh/doc/LICENSE.txt\">licensing " << "and <a href=\"http://geuz.org/gmsh/doc/LICENSE.txt\">licensing "
...@@ -321,6 +325,10 @@ helpWindow::helpWindow() ...@@ -321,6 +325,10 @@ helpWindow::helpWindow()
#if defined(HAVE_OCC) #if defined(HAVE_OCC)
<< "<li><i>OCC version:</i> " << OCC_VERSION_MAJOR << "." << "<li><i>OCC version:</i> " << OCC_VERSION_MAJOR << "."
<< OCC_VERSION_MINOR << "." << OCC_VERSION_MAINTENANCE << OCC_VERSION_MINOR << "." << OCC_VERSION_MAINTENANCE
#endif
#if defined(HAVE_MED)
<< "<li><i>MED version:</i> " << MED_NUM_MAJEUR << "."
<< MED_NUM_MINEUR << "." << MED_NUM_RELEASE
#endif #endif
<< "<li><i>Packaged by:</i> " << GetGmshPackager() << "<li><i>Packaged by:</i> " << GetGmshPackager()
<< "</ul>" << "</ul>"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment