Commit 5ab1ea92 authored by Christophe Geuzaine's avatar Christophe Geuzaine

update (c)

parent f975da36
......@@ -323,7 +323,7 @@ extern "C" {
sstream << "<center><h3>Gmsh</h3>"
<< "Version " << GMSH_VERSION << " "
<< "(<i>Build date:</i> " << GMSH_DATE << ")"
<< "<p>Copyright (C) 1997-2017 Christophe Geuzaine and Jean-Fran&ccedil;ois Remacle</p>"
<< "<p>Copyright (C) 1997-2018 Christophe Geuzaine and Jean-Fran&ccedil;ois Remacle</p>"
<< "<p><a href=\"http://gmsh.info/doc/CREDITS.txt\">Credits</a> "
<< "and <a href=\"http://gmsh.info/doc/LICENSE.txt\">licensing information</a></p>"
<< "<p><i>Build options:</i> " << GMSH_CONFIG_OPTIONS << "</p>"
......@@ -337,7 +337,7 @@ extern "C" {
sstream << "<center><h3>GetDP</h3>"
<< "Version " << GETDP_VERSION << " "
<< "(<i>Build date:</i> " << GETDP_DATE << ")"
<< "<p>Copyright (C) 1997-2017 Patrick Dular and Christophe Geuzaine, University of Li&egrave;ge</p>"
<< "<p>Copyright (C) 1997-2018 Patrick Dular and Christophe Geuzaine, University of Li&egrave;ge</p>"
<< "<p><a href=\"http://getdp.info/doc/CREDITS.txt\">Credits</a> "
<< "and <a href=\"http://getdp.info/doc/LICENSE.txt\">licensing information</a></p>"
<< "<p><i>Build options:</i> " << GETDP_CONFIG_OPTIONS << "</p>"
......
......@@ -19,8 +19,11 @@
return self;
}
// this allows to open links in Safari, instead of opening them in the AboutViewController
-(BOOL) webView:(UIWebView *)inWeb shouldStartLoadWithRequest:(NSURLRequest *)inRequest navigationType:(UIWebViewNavigationType)inType {
// this allows to open links in Safari, instead of opening them in the
// AboutViewController
-(BOOL) webView:(UIWebView *)inWeb shouldStartLoadWithRequest:(NSURLRequest *)inRequest
navigationType:(UIWebViewNavigationType)inType
{
if ( inType == UIWebViewNavigationTypeLinkClicked ) {
[[UIApplication sharedApplication] openURL:[inRequest URL]];
return NO;
......@@ -37,7 +40,10 @@
self.aboutView.dataDetectorTypes = UIDataDetectorTypeNone;
[self loadContent];
if(![self.fileToEdit isEqual:@"About"] && ![self.fileToEdit isEqual:@"Help"]){
UIBarButtonItem *save = [[UIBarButtonItem alloc] initWithTitle:@"Save" style:UIBarButtonItemStylePlain target:self action:@selector(saveFile)];
UIBarButtonItem *save =
[[UIBarButtonItem alloc] initWithTitle:@"Save"
style:UIBarButtonItemStylePlain
target:self action:@selector(saveFile)];
[self.navigationItem setRightBarButtonItems:[NSArray arrayWithObjects: save, nil]];
}
}
......@@ -52,7 +58,7 @@
NSString *css = [NSString stringWithFormat:@"body { background-color: #FFFFFF; color: #252525; margin: 35px 10px 35px 10px; padding: 0; font-family: helvetica-neue,sans-serif; font-size: 1em; } b { font-weight: normal; color: rgb(%d,%d,%d); } a { color: rgb(%d,%d,%d); }", r, g, b, r, g, b];
if([self.fileToEdit isEqual:@"About"]){
[self.aboutView loadHTMLString:[NSString stringWithFormat:@"<html><head><style type=\"text/css\">%@</style></head><body><center><p><!-- img width=32 src=\"icon_onelab.png\"--></p><h3>Onelab/Mobile</h3>Version %@<p>Copyright (C) 2014-2017 Christophe Geuzaine and Maxime Graulich, University of Li&egrave;ge</p><p>Visit <a href=\"http://onelab.info/\">http://onelab.info/</a> for more information</p><p style=\"padding-top: 35px;\">This version of Onelab/Mobile contains:</p><h3>Gmsh</h3>Version %s (<i>Build date:</i> %s)<p>Copyright (C) 1997-2017 Christophe Geuzaine and Jean-Fran&ccedil;ois Remacle</p><p><a href=\"http://geuz.org/gmsh/doc/CREDITS.txt\">Credits</a> and <a href=\"http://geuz.org/gmsh/doc/LICENSE.txt\">licensing information</a></p><p><i>Build options:</i> %s</p><p>Visit <a href=\"http://gmsh.info/\">http://gmsh.info</a> for more information</p><h3>GetDP</h3>Version %s (<i>Build date:</i> %s)<p>Copyright (C) 1997-2017 Patrick Dular and Christophe Geuzaine, University of Li&egrave;ge</p><p><a href=\"http://geuz.org/getdp/doc/CREDITS.txt\">Credits</a> and <a href=\"http://geuz.org/getdp/doc/LICENSE.txt\">licensing information</a></p><p><i>Build options:</i> %s</p><p>Visit <a href=\"http://getdp.info\">http://getdp.info</a> for more information</p></center></body></html>", css,
[self.aboutView loadHTMLString:[NSString stringWithFormat:@"<html><head><style type=\"text/css\">%@</style></head><body><center><p><!-- img width=32 src=\"icon_onelab.png\"--></p><h3>Onelab/Mobile</h3>Version %@<p>Copyright (C) 2014-2018 Christophe Geuzaine and Maxime Graulich, University of Li&egrave;ge</p><p>Visit <a href=\"http://onelab.info/\">http://onelab.info/</a> for more information</p><p style=\"padding-top: 35px;\">This version of Onelab/Mobile contains:</p><h3>Gmsh</h3>Version %s (<i>Build date:</i> %s)<p>Copyright (C) 1997-2018 Christophe Geuzaine and Jean-Fran&ccedil;ois Remacle</p><p><a href=\"http://geuz.org/gmsh/doc/CREDITS.txt\">Credits</a> and <a href=\"http://geuz.org/gmsh/doc/LICENSE.txt\">licensing information</a></p><p><i>Build options:</i> %s</p><p>Visit <a href=\"http://gmsh.info/\">http://gmsh.info</a> for more information</p><h3>GetDP</h3>Version %s (<i>Build date:</i> %s)<p>Copyright (C) 1997-2018 Patrick Dular and Christophe Geuzaine, University of Li&egrave;ge</p><p><a href=\"http://geuz.org/getdp/doc/CREDITS.txt\">Credits</a> and <a href=\"http://geuz.org/getdp/doc/LICENSE.txt\">licensing information</a></p><p><i>Build options:</i> %s</p><p>Visit <a href=\"http://getdp.info\">http://getdp.info</a> for more information</p></center></body></html>", css,
[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"],
GMSH_VERSION,
GMSH_DATE,
......@@ -82,7 +88,6 @@
}
}
-(void)saveFile
{
//CGPoint offset = self.aboutView.scrollView.contentOffset;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment