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
2fe1500a
Commit
2fe1500a
authored
13 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
onelab
parent
64088390
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
Fltk/onelabWindow.cpp
+11
-6
11 additions, 6 deletions
Fltk/onelabWindow.cpp
Fltk/onelabWindow.h
+1
-0
1 addition, 0 deletions
Fltk/onelabWindow.h
with
12 additions
and
6 deletions
Fltk/onelabWindow.cpp
+
11
−
6
View file @
2fe1500a
...
@@ -520,8 +520,6 @@ void onelab_cb(Fl_Widget *w, void *data)
...
@@ -520,8 +520,6 @@ void onelab_cb(Fl_Widget *w, void *data)
FlGui
::
instance
()
->
onelab
->
rebuildTree
();
FlGui
::
instance
()
->
onelab
->
rebuildTree
();
printf
(
"Gmsh ONELAB db:
\n
%s
\n
"
,
onelab
::
server
::
instance
()
->
toChar
().
c_str
());
}
while
(
action
==
"compute"
&&
incrementLoop
());
}
while
(
action
==
"compute"
&&
incrementLoop
());
FlGui
::
instance
()
->
onelab
->
activate
();
FlGui
::
instance
()
->
onelab
->
activate
();
...
@@ -610,6 +608,11 @@ static void onelab_remove_solver_cb(Fl_Widget *w, void *data)
...
@@ -610,6 +608,11 @@ static void onelab_remove_solver_cb(Fl_Widget *w, void *data)
FlGui
::
instance
()
->
onelab
->
removeSolver
(
c
->
getName
());
FlGui
::
instance
()
->
onelab
->
removeSolver
(
c
->
getName
());
}
}
static
void
onelab_dump_cb
(
Fl_Widget
*
w
,
void
*
data
)
{
printf
(
"ONELAB dump:
\n
%s
\n
"
,
onelab
::
server
::
instance
()
->
toChar
().
c_str
());
}
onelabWindow
::
onelabWindow
(
int
deltaFontSize
)
onelabWindow
::
onelabWindow
(
int
deltaFontSize
)
{
{
FL_NORMAL_SIZE
-=
deltaFontSize
;
FL_NORMAL_SIZE
-=
deltaFontSize
;
...
@@ -634,9 +637,11 @@ onelabWindow::onelabWindow(int deltaFontSize)
...
@@ -634,9 +637,11 @@ onelabWindow::onelabWindow(int deltaFontSize)
(
_butt
[
1
]
->
x
()
-
WB
-
BB
/
2
,
_butt
[
1
]
->
y
(),
BB
/
2
,
BH
,
"@-1gmsh_gear"
);
(
_butt
[
1
]
->
x
()
-
WB
-
BB
/
2
,
_butt
[
1
]
->
y
(),
BB
/
2
,
BH
,
"@-1gmsh_gear"
);
_gear
->
align
(
FL_ALIGN_LEFT
|
FL_ALIGN_INSIDE
);
_gear
->
align
(
FL_ALIGN_LEFT
|
FL_ALIGN_INSIDE
);
_gear
->
add
(
"Reset database"
,
0
,
onelab_cb
,
(
void
*
)
"reset"
);
_gear
->
add
(
"Reset database"
,
0
,
onelab_cb
,
(
void
*
)
"reset"
);
_gear
->
add
(
"Print database"
,
0
,
onelab_dump_cb
);
_gear
->
add
(
"Remesh automatically"
,
0
,
0
,
0
,
FL_MENU_TOGGLE
);
_gear
->
add
(
"Remesh automatically"
,
0
,
0
,
0
,
FL_MENU_TOGGLE
);
((
Fl_Menu_Item
*
)
_gear
->
menu
())[
1
].
set
();
((
Fl_Menu_Item
*
)
_gear
->
menu
())[
2
].
set
();
_gearFrozenMenuSize
=
_gear
->
menu
()
->
size
();
Fl_Box
*
resbox
=
new
Fl_Box
(
WB
,
height
-
BH
-
3
*
WB
,
WB
,
WB
);
Fl_Box
*
resbox
=
new
Fl_Box
(
WB
,
height
-
BH
-
3
*
WB
,
WB
,
WB
);
_win
->
resizable
(
resbox
);
_win
->
resizable
(
resbox
);
_win
->
size_range
(
2
*
BB
+
BB
/
2
+
4
*
WB
,
2
*
BH
+
3
*
WB
);
_win
->
size_range
(
2
*
BB
+
BB
/
2
+
4
*
WB
,
2
*
BH
+
3
*
WB
);
...
@@ -753,9 +758,9 @@ void onelabWindow::rebuildTree()
...
@@ -753,9 +758,9 @@ void onelabWindow::rebuildTree()
void
onelabWindow
::
rebuildSolverList
()
void
onelabWindow
::
rebuildSolverList
()
{
{
for
(
int
i
=
_gear
->
menu
()
->
size
();
i
>=
2
;
i
--
)
{
for
(
int
i
=
_gear
->
menu
()
->
size
();
i
>=
_gearFrozenMenuSize
-
1
;
i
--
)
_gear
->
remove
(
i
);
_gear
->
remove
(
i
);
}
_title
=
"ONELAB"
;
_title
=
"ONELAB"
;
for
(
onelab
::
server
::
citer
it
=
onelab
::
server
::
instance
()
->
firstClient
();
for
(
onelab
::
server
::
citer
it
=
onelab
::
server
::
instance
()
->
firstClient
();
it
!=
onelab
::
server
::
instance
()
->
lastClient
();
it
++
){
it
!=
onelab
::
server
::
instance
()
->
lastClient
();
it
++
){
...
...
This diff is collapsed.
Click to expand it.
Fltk/onelabWindow.h
+
1
−
0
View file @
2fe1500a
...
@@ -22,6 +22,7 @@ class onelabWindow{
...
@@ -22,6 +22,7 @@ class onelabWindow{
Fl_Tree
*
_tree
;
Fl_Tree
*
_tree
;
Fl_Button
*
_butt
[
2
];
Fl_Button
*
_butt
[
2
];
Fl_Menu_Button
*
_gear
;
Fl_Menu_Button
*
_gear
;
int
_gearFrozenMenuSize
;
std
::
vector
<
Fl_Widget
*>
_treeWidgets
;
std
::
vector
<
Fl_Widget
*>
_treeWidgets
;
std
::
string
_title
;
std
::
string
_title
;
std
::
string
_modelExtension
;
std
::
string
_modelExtension
;
...
...
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