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
6ad2aec1
Commit
6ad2aec1
authored
9 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
tweak
parent
9439ed20
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/mobile/iOS/Onelab/OptionsViewController.mm
+4
-4
4 additions, 4 deletions
contrib/mobile/iOS/Onelab/OptionsViewController.mm
contrib/mobile/iOS/Onelab/ParametersViewController.mm
+4
-4
4 additions, 4 deletions
contrib/mobile/iOS/Onelab/ParametersViewController.mm
with
8 additions
and
8 deletions
contrib/mobile/iOS/Onelab/OptionsViewController.mm
+
4
−
4
View file @
6ad2aec1
...
@@ -141,8 +141,8 @@
...
@@ -141,8 +141,8 @@
case
0
:
case
0
:
{
{
[
cell
setSelectionStyle
:
UITableViewCellSelectionStyleNone
];
[
cell
setSelectionStyle
:
UITableViewCellSelectionStyleNone
];
UISwitch
*
showHideOptions
=
[[
UISwitch
alloc
]
initWithFrame
:
CGRectMake
(
15
,
7
,
100
,
30
)];
UISwitch
*
showHideOptions
=
[[
UISwitch
alloc
]
initWithFrame
:
CGRectMake
(
15
,
6.5
,
100
,
30
)];
UILabel
*
lblOptions
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
25
+
(
showHideOptions
.
frame
.
size
.
width
),
10
,
(
tableView
.
frame
.
size
.
width
-
(
showHideOptions
.
frame
.
size
.
width
)
-
50
),
30
)];
UILabel
*
lblOptions
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
25
+
(
showHideOptions
.
frame
.
size
.
width
),
8
,
(
tableView
.
frame
.
size
.
width
-
(
showHideOptions
.
frame
.
size
.
width
)
-
50
),
30
)];
if
(
indexPath
.
row
==
0
)
{
if
(
indexPath
.
row
==
0
)
{
[
lblOptions
setText
:
@"Show geometry points"
];
[
lblOptions
setText
:
@"Show geometry points"
];
[
showHideOptions
setOn
:(
CTX
:
:
instance
()
->
geom
.
points
)];
[
showHideOptions
setOn
:(
CTX
:
:
instance
()
->
geom
.
points
)];
...
@@ -181,8 +181,8 @@
...
@@ -181,8 +181,8 @@
[
cell
setSelectionStyle
:
UITableViewCellSelectionStyleGray
];
[
cell
setSelectionStyle
:
UITableViewCellSelectionStyleGray
];
int
i
=
PView
::
list
.
size
()
-
1
-
indexPath
.
row
;
int
i
=
PView
::
list
.
size
()
-
1
-
indexPath
.
row
;
cell
.
accessoryType
=
UITableViewCellAccessoryDisclosureIndicator
;
cell
.
accessoryType
=
UITableViewCellAccessoryDisclosureIndicator
;
UISwitch
*
showHide
=
[[
UISwitch
alloc
]
initWithFrame
:
CGRectMake
(
15
,
7
,
100
,
30
)];
UISwitch
*
showHide
=
[[
UISwitch
alloc
]
initWithFrame
:
CGRectMake
(
15
,
6.5
,
100
,
30
)];
UILabel
*
lbl
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
25
+
(
showHide
.
frame
.
size
.
width
),
10
,
(
tableView
.
frame
.
size
.
width
-
showHide
.
frame
.
size
.
width
-
50
),
30
)];
UILabel
*
lbl
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
25
+
(
showHide
.
frame
.
size
.
width
),
8
,
(
tableView
.
frame
.
size
.
width
-
showHide
.
frame
.
size
.
width
-
50
),
30
)];
[
showHide
setOn
:(
PView
:
:
list
[
i
]
->
getOptions
()
->
visible
==
1
)];
[
showHide
setOn
:(
PView
:
:
list
[
i
]
->
getOptions
()
->
visible
==
1
)];
[
showHide
setTag
:
i
];
[
showHide
setTag
:
i
];
[
showHide
addTarget
:
self
action
:
@selector
(
PViewVisible
:
)
forControlEvents
:
UIControlEventValueChanged
];
[
showHide
addTarget
:
self
action
:
@selector
(
PViewVisible
:
)
forControlEvents
:
UIControlEventValueChanged
];
...
...
This diff is collapsed.
Click to expand it.
contrib/mobile/iOS/Onelab/ParametersViewController.mm
+
4
−
4
View file @
6ad2aec1
...
@@ -352,23 +352,23 @@
...
@@ -352,23 +352,23 @@
}
}
else
if
([
tmp
isKindOfClass
:[
ParameterNumberCheckbox
class
]])
{
else
if
([
tmp
isKindOfClass
:[
ParameterNumberCheckbox
class
]])
{
ParameterNumberCheckbox
*
param
=
(
ParameterNumberCheckbox
*
)
tmp
;
ParameterNumberCheckbox
*
param
=
(
ParameterNumberCheckbox
*
)
tmp
;
[
param
setLabelFrame
:
CGRectMake
(
85
,
5
,
tableView
.
frame
.
size
.
width
-
95
,
cell
.
frame
.
size
.
height
/
1.5
)];
[
param
setLabelFrame
:
CGRectMake
(
85
,
10
,
tableView
.
frame
.
size
.
width
-
95
,
cell
.
frame
.
size
.
height
/
2
)];
[
param
setFrame
:
CGRectMake
(
20
,
5
,
tableView
.
frame
.
size
.
width
-
40
,
cell
.
frame
.
size
.
height
)];
[
param
setFrame
:
CGRectMake
(
20
,
5
,
tableView
.
frame
.
size
.
width
-
40
,
cell
.
frame
.
size
.
height
)];
[
cell
addSubview
:[
param
getCheckbox
]];
[
cell
addSubview
:[
param
getCheckbox
]];
}
}
else
if
([
tmp
isKindOfClass
:[
ParameterNumberStepper
class
]])
{
else
if
([
tmp
isKindOfClass
:[
ParameterNumberStepper
class
]])
{
ParameterNumberStepper
*
param
=
(
ParameterNumberStepper
*
)
tmp
;
ParameterNumberStepper
*
param
=
(
ParameterNumberStepper
*
)
tmp
;
[
param
setFrame
:
CGRectMake
(
20
,
cell
.
frame
.
size
.
height
/
2
+
5
,
tableView
.
frame
.
size
.
width
-
40
,
cell
.
frame
.
size
.
height
/
2
.5
)];
[
param
setFrame
:
CGRectMake
(
20
,
cell
.
frame
.
size
.
height
/
2
+
5
,
tableView
.
frame
.
size
.
width
-
40
,
cell
.
frame
.
size
.
height
/
2
)];
[
cell
addSubview
:[
param
getStepper
]];
[
cell
addSubview
:[
param
getStepper
]];
}
}
else
if
([
tmp
isKindOfClass
:[
ParameterNumberRange
class
]])
{
else
if
([
tmp
isKindOfClass
:[
ParameterNumberRange
class
]])
{
ParameterNumberRange
*
param
=
(
ParameterNumberRange
*
)
tmp
;
ParameterNumberRange
*
param
=
(
ParameterNumberRange
*
)
tmp
;
[
param
setFrame
:
CGRectMake
(
20
,
cell
.
frame
.
size
.
height
/
2
+
5
,
tableView
.
frame
.
size
.
width
-
40
,
cell
.
frame
.
size
.
height
/
1.5
)];
[
param
setFrame
:
CGRectMake
(
20
,
cell
.
frame
.
size
.
height
/
2
+
10
,
tableView
.
frame
.
size
.
width
-
40
,
cell
.
frame
.
size
.
height
/
2
)];
[
cell
addSubview
:[
param
getSlider
]];
[
cell
addSubview
:[
param
getSlider
]];
}
}
else
if
([
tmp
isKindOfClass
:[
ParameterNumberTextbox
class
]])
{
else
if
([
tmp
isKindOfClass
:[
ParameterNumberTextbox
class
]])
{
ParameterNumberTextbox
*
param
=
(
ParameterNumberTextbox
*
)
tmp
;
ParameterNumberTextbox
*
param
=
(
ParameterNumberTextbox
*
)
tmp
;
[
param
setFrame
:
CGRectMake
(
20
,
cell
.
frame
.
size
.
height
/
2
+
5
,
tableView
.
frame
.
size
.
width
-
40
,
cell
.
frame
.
size
.
height
/
1.75
)];
[
param
setFrame
:
CGRectMake
(
20
,
cell
.
frame
.
size
.
height
/
2
+
10
,
tableView
.
frame
.
size
.
width
-
40
,
cell
.
frame
.
size
.
height
/
2
)];
[
cell
addSubview
:[
param
getTextbox
]];
[
cell
addSubview
:[
param
getTextbox
]];
}
}
...
...
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