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
206347e3
Commit
206347e3
authored
13 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
onelab
parent
a136cff7
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
Common/onelab.h
+1
-1
1 addition, 1 deletion
Common/onelab.h
Fltk/onelabWindow.cpp
+11
-3
11 additions, 3 deletions
Fltk/onelabWindow.cpp
with
12 additions
and
4 deletions
Common/onelab.h
+
1
−
1
View file @
206347e3
...
...
@@ -503,7 +503,7 @@ namespace onelab{
int
_pid
;
public:
localNetworkClient
(
const
std
::
string
&
name
,
const
std
::
string
&
commandLine
)
:
localClient
(
name
),
_commandLine
(
commandLine
){}
:
localClient
(
name
),
_commandLine
(
commandLine
)
,
_pid
(
-
1
)
{}
virtual
~
localNetworkClient
(){}
int
getPid
(){
return
_pid
;
}
void
setPid
(
int
pid
){
_pid
=
pid
;
}
...
...
This diff is collapsed.
Click to expand it.
Fltk/onelabWindow.cpp
+
11
−
3
View file @
206347e3
...
...
@@ -136,6 +136,8 @@ bool onelab::localNetworkClient::run(const std::string &what)
p
.
fromChar
(
message
);
set
(
p
,
false
);
}
else
Msg
::
Error
(
"FIXME not done for this parameter type"
);
}
break
;
case
GmshSocket
::
GMSH_PARAMETER_QUERY
:
...
...
@@ -166,6 +168,8 @@ bool onelab::localNetworkClient::run(const std::string &what)
server
->
SendMessage
(
GmshSocket
::
GMSH_INFO
,
reply
.
size
(),
&
reply
[
0
]);
}
}
else
Msg
::
Error
(
"FIXME query not done for this parameter type"
);
}
break
;
case
GmshSocket
::
GMSH_PROGRESS
:
...
...
@@ -354,12 +358,14 @@ void onelabWindow::rebuildTree()
onelab
::
server
::
instance
()
->
get
(
numbers
);
for
(
unsigned
int
i
=
0
;
i
<
numbers
.
size
();
i
++
){
Fl_Tree_Item
*
n
=
_tree
->
add
(
numbers
[
i
].
getName
().
c_str
());
std
::
string
label
=
numbers
[
i
].
getShortHelp
();
if
(
label
.
empty
())
label
=
getShortName
(
numbers
[
i
].
getName
());
_tree
->
begin
();
if
(
numbers
[
i
].
getChoices
().
size
()
==
2
&&
numbers
[
i
].
getChoices
()[
0
]
==
0
&&
numbers
[
i
].
getChoices
()[
1
]
==
1
){
Fl_Check_Button
*
but
=
new
Fl_Check_Button
(
1
,
1
,
IW
,
1
);
_treeWidgets
.
push_back
(
but
);
but
->
copy_label
(
getShortName
(
numbers
[
i
].
getName
())
.
c_str
());
but
->
copy_label
(
label
.
c_str
());
but
->
value
(
numbers
[
i
].
getValue
());
but
->
callback
(
onelab_check_button_cb
,
(
void
*
)
n
);
n
->
widget
(
but
);
...
...
@@ -367,7 +373,7 @@ void onelabWindow::rebuildTree()
else
{
Fl_Value_Input
*
but
=
new
Fl_Value_Input
(
1
,
1
,
IW
,
1
);
_treeWidgets
.
push_back
(
but
);
but
->
copy_label
(
getShortName
(
numbers
[
i
].
getName
())
.
c_str
());
but
->
copy_label
(
label
.
c_str
());
but
->
value
(
numbers
[
i
].
getValue
());
if
(
numbers
[
i
].
getMin
()
!=
-
1.e200
)
but
->
minimum
(
numbers
[
i
].
getMin
());
...
...
@@ -387,10 +393,12 @@ void onelabWindow::rebuildTree()
onelab
::
server
::
instance
()
->
get
(
strings
);
for
(
unsigned
int
i
=
0
;
i
<
strings
.
size
();
i
++
){
Fl_Tree_Item
*
n
=
_tree
->
add
(
strings
[
i
].
getName
().
c_str
());
std
::
string
label
=
strings
[
i
].
getShortHelp
();
if
(
label
.
empty
())
label
=
getShortName
(
strings
[
i
].
getName
());
_tree
->
begin
();
Fl_Input_Choice
*
but
=
new
Fl_Input_Choice
(
1
,
1
,
IW
,
1
);
_treeWidgets
.
push_back
(
but
);
but
->
copy_label
(
getShortName
(
strings
[
i
].
getName
())
.
c_str
());
but
->
copy_label
(
label
.
c_str
());
for
(
unsigned
int
j
=
0
;
j
<
strings
[
i
].
getChoices
().
size
();
j
++
)
but
->
add
(
strings
[
i
].
getChoices
()[
j
].
c_str
());
but
->
value
(
strings
[
i
].
getValue
().
c_str
());
...
...
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