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

pp

parent 84460005
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@ vsub(const double *src1, const double *src2, double *dst)
void
vcopy(const double *v1, double *v2)
{
register int i;
/* register */ int i;
for (i = 0 ; i < 3 ; i++)
v2[i] = v1[i];
}
......
......@@ -69,13 +69,11 @@
Parameter * parameter = [section objectAtIndex:indexPath.row];
if(!parameter) return;
NSString *name = [parameter getName];
NSLog(@"Long press on %@", name);
std::vector<onelab::number> number;
onelab::server::instance()->get(number,[name UTF8String]);
if(number.size() && !number[0].getReadOnly()){
NSLog(@" -- number param with value %g", number[0].getValue());
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:[NSString stringWithFormat:@"Manually edit %s", number[0].getShortName().c_str()] message:name delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Ok", nil];
NSLog(@"Manual edit of parameter '%s' with value '%g'", number[0].getName().c_str(), number[0].getValue());
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:[NSString stringWithFormat:@"%s", number[0].getShortName().c_str()] message:name delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Ok", nil];
alertView.alertViewStyle = UIAlertViewStylePlainTextInput;
[alertView textFieldAtIndex:0].text = [NSString stringWithFormat:@"%g", number[0].getValue()];
[alertView show];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment