Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
8c7e4c81
Commit
8c7e4c81
authored
8 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
correct readonly status when creating the parameter
parent
390a9447
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/mobile/iOS/Onelab/Onelab-Info.plist
+1
-1
1 addition, 1 deletion
contrib/mobile/iOS/Onelab/Onelab-Info.plist
contrib/mobile/iOS/Onelab/Parameter.mm
+12
-0
12 additions, 0 deletions
contrib/mobile/iOS/Onelab/Parameter.mm
with
13 additions
and
1 deletion
contrib/mobile/iOS/Onelab/Onelab-Info.plist
+
1
−
1
View file @
8c7e4c81
...
...
@@ -39,7 +39,7 @@
<key>
CFBundleSignature
</key>
<string>
????
</string>
<key>
CFBundleVersion
</key>
<string>
1.3.1.
6
</string>
<string>
1.3.1.
7
</string>
<key>
LSRequiresIPhoneOS
</key>
<true/>
<key>
UIFileSharingEnabled
</key>
...
...
This diff is collapsed.
Click to expand it.
contrib/mobile/iOS/Onelab/Parameter.mm
+
12
−
0
View file @
8c7e4c81
...
...
@@ -61,6 +61,8 @@
button
=
[
UIButton
buttonWithType
:
UIButtonTypeSystem
];
[
button
addTarget
:
self
action
:
@selector
(
selectValue
)
forControlEvents
:
UIControlEventTouchDown
];
[
button
setTitle
:[
Utils
getStringFromCString
:
string
.
getValue
().
c_str
()]
forState
:
UIControlStateNormal
];
[
button
setEnabled
:(
string
.
getReadOnly
()
?
FALSE
:
TRUE
)];
[
label
setEnabled
:(
string
.
getReadOnly
()
?
FALSE
:
TRUE
)];
}
return
self
;
}
...
...
@@ -132,6 +134,8 @@
[
button
addTarget
:
self
action
:
@selector
(
selectValue
)
forControlEvents
:
UIControlEventTouchDown
];
[
button
setTitle
:[
Utils
getStringFromCString
:
number
.
getValueLabel
(
number
.
getValue
()).
c_str
()]
forState:
UIControlStateNormal
];
[
button
setEnabled
:(
number
.
getReadOnly
()
?
FALSE
:
TRUE
)];
[
label
setEnabled
:(
number
.
getReadOnly
()
?
FALSE
:
TRUE
)];
}
return
self
;
}
...
...
@@ -218,6 +222,8 @@
checkbox
=
[[
UISwitch
alloc
]
init
];
[
checkbox
setOn
:(
number
.
getValue
()
==
1
)];
[
checkbox
addTarget
:
self
action
:
@selector
(
valueChange
:
)
forControlEvents
:
UIControlEventValueChanged
];
[
checkbox
setEnabled
:(
number
.
getReadOnly
()
?
FALSE
:
TRUE
)];
[
label
setEnabled
:(
number
.
getReadOnly
()
?
FALSE
:
TRUE
)];
}
return
self
;
}
...
...
@@ -272,6 +278,8 @@
[
stepper
addTarget
:
self
action
:
@selector
(
stepperValueChanged
:
)
forControlEvents
:
UIControlEventValueChanged
];
[
label
setText
:[
NSString
stringWithFormat
:
@"%@ %d"
,
[
Utils
getStringFromCString
:
number
.
getShortName
().
c_str
()],
(
int
)
number
.
getValue
()]];
[
stepper
setEnabled
:(
number
.
getReadOnly
()
?
FALSE
:
TRUE
)];
[
label
setEnabled
:(
number
.
getReadOnly
()
?
FALSE
:
TRUE
)];
}
return
self
;
}
...
...
@@ -331,6 +339,8 @@
[
slider
addTarget
:
self
action
:
@selector
(
sliderValueChanged
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
label
setText
:[
NSString
stringWithFormat
:
@"%@ %g"
,
[
Utils
getStringFromCString
:
number
.
getShortName
().
c_str
()],
number
.
getValue
()]];
[
slider
setEnabled
:(
number
.
getReadOnly
()
?
FALSE
:
TRUE
)];
[
label
setEnabled
:(
number
.
getReadOnly
()
?
FALSE
:
TRUE
)];
}
return
self
;
}
...
...
@@ -395,6 +405,8 @@
nil
];
[
numberToolbar
sizeToFit
];
textbox
.
inputAccessoryView
=
numberToolbar
;
[
textbox
setEnabled
:(
number
.
getReadOnly
()
?
FALSE
:
TRUE
)];
[
label
setEnabled
:(
number
.
getReadOnly
()
?
FALSE
:
TRUE
)];
}
return
self
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment