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
cb11d65d
Commit
cb11d65d
authored
15 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
small cleanup
parent
a3837a5f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Fltk/FlGui.cpp
+1
-1
1 addition, 1 deletion
Fltk/FlGui.cpp
Fltk/FlGui.h
+1
-0
1 addition, 0 deletions
Fltk/FlGui.h
Fltk/solverWindow.cpp
+9
-30
9 additions, 30 deletions
Fltk/solverWindow.cpp
with
11 additions
and
31 deletions
Fltk/FlGui.cpp
+
1
−
1
View file @
cb11d65d
...
@@ -263,7 +263,7 @@ FlGui::FlGui(int argc, char **argv)
...
@@ -263,7 +263,7 @@ FlGui::FlGui(int argc, char **argv)
geoContext
=
new
geometryContextWindow
(
CTX
::
instance
()
->
deltaFontSize
);
geoContext
=
new
geometryContextWindow
(
CTX
::
instance
()
->
deltaFontSize
);
meshContext
=
new
meshContextWindow
(
CTX
::
instance
()
->
deltaFontSize
);
meshContext
=
new
meshContextWindow
(
CTX
::
instance
()
->
deltaFontSize
);
about
=
new
aboutWindow
();
about
=
new
aboutWindow
();
for
(
int
i
=
0
;
i
<
5
;
i
++
)
for
(
int
i
=
0
;
i
<
NB_SOLVER_MAX
;
i
++
)
solver
.
push_back
(
new
solverWindow
(
i
,
CTX
::
instance
()
->
deltaFontSize
));
solver
.
push_back
(
new
solverWindow
(
i
,
CTX
::
instance
()
->
deltaFontSize
));
// init solver plugin stuff
// init solver plugin stuff
...
...
This diff is collapsed.
Click to expand it.
Fltk/FlGui.h
+
1
−
0
View file @
cb11d65d
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
#define GMSH_WINDOW_BOX FL_FLAT_BOX
#define GMSH_WINDOW_BOX FL_FLAT_BOX
#define NB_BUTT_SCROLL 25
#define NB_BUTT_SCROLL 25
#define NB_HISTORY_MAX 1000
#define NB_HISTORY_MAX 1000
#define NB_SOLVER_MAX 5
#define IW (10 * FL_NORMAL_SIZE) // input field width
#define IW (10 * FL_NORMAL_SIZE) // input field width
#define BB (7 * FL_NORMAL_SIZE) // width of a button with internal label
#define BB (7 * FL_NORMAL_SIZE) // width of a button with internal label
#define BH (2 * FL_NORMAL_SIZE + 1) // button height
#define BH (2 * FL_NORMAL_SIZE + 1) // button height
...
...
This diff is collapsed.
Click to expand it.
Fltk/solverWindow.cpp
+
9
−
30
View file @
cb11d65d
...
@@ -152,39 +152,18 @@ void GmshRemote::run(std::string args)
...
@@ -152,39 +152,18 @@ void GmshRemote::run(std::string args)
Msg
::
StatusBar
(
2
,
false
,
"%s %s"
,
name
.
c_str
(),
message
);
Msg
::
StatusBar
(
2
,
false
,
"%s %s"
,
name
.
c_str
(),
message
);
break
;
break
;
case
GmshSocket
::
GMSH_OPTION_1
:
case
GmshSocket
::
GMSH_OPTION_1
:
if
(
initOption
[
0
]){
optionValue
[
0
].
clear
();
initOption
[
0
]
=
false
;
}
optionValue
[
0
].
push_back
(
message
);
break
;
case
GmshSocket
::
GMSH_OPTION_2
:
case
GmshSocket
::
GMSH_OPTION_2
:
if
(
initOption
[
1
]){
optionValue
[
1
].
clear
();
initOption
[
1
]
=
false
;
}
optionValue
[
1
].
push_back
(
message
);
break
;
case
GmshSocket
::
GMSH_OPTION_3
:
case
GmshSocket
::
GMSH_OPTION_3
:
if
(
initOption
[
2
]){
optionValue
[
2
].
clear
();
initOption
[
2
]
=
false
;
}
optionValue
[
2
].
push_back
(
message
);
break
;
case
GmshSocket
::
GMSH_OPTION_4
:
case
GmshSocket
::
GMSH_OPTION_4
:
if
(
initOption
[
3
]){
optionValue
[
3
].
clear
();
initOption
[
3
]
=
false
;
}
optionValue
[
3
].
push_back
(
message
);
break
;
case
GmshSocket
::
GMSH_OPTION_5
:
case
GmshSocket
::
GMSH_OPTION_5
:
if
(
initOption
[
4
]){
{
optionValue
[
4
].
clear
();
int
i
=
(
int
)
type
-
(
int
)
GmshSocket
::
GMSH_OPTION_1
;
initOption
[
4
]
=
false
;
if
(
initOption
[
i
]){
optionValue
[
i
].
clear
();
initOption
[
i
]
=
false
;
}
optionValue
[
i
].
push_back
(
message
);
}
}
optionValue
[
4
].
push_back
(
message
);
break
;
break
;
case
GmshSocket
::
GMSH_MERGE_FILE
:
case
GmshSocket
::
GMSH_MERGE_FILE
:
if
(
mergeViews
)
{
if
(
mergeViews
)
{
...
@@ -240,7 +219,7 @@ void GmshRemote::run(std::string args)
...
@@ -240,7 +219,7 @@ void GmshRemote::run(std::string args)
if
(
this
==
it
->
second
)
break
;
if
(
this
==
it
->
second
)
break
;
num
++
;
num
++
;
}
}
if
(
num
>=
0
&&
num
<
5
){
if
(
num
>=
0
&&
num
<
NB_SOLVER_MAX
){
for
(
unsigned
int
i
=
0
;
i
<
optionName
.
size
();
i
++
)
{
for
(
unsigned
int
i
=
0
;
i
<
optionName
.
size
();
i
++
)
{
if
(
optionName
[
i
].
empty
())
break
;
if
(
optionName
[
i
].
empty
())
break
;
FlGui
::
instance
()
->
solver
[
num
]
->
choice
[
i
]
->
clear
();
FlGui
::
instance
()
->
solver
[
num
]
->
choice
[
i
]
->
clear
();
...
@@ -478,7 +457,7 @@ solverWindow::solverWindow(int solverIndex, int deltaFontSize)
...
@@ -478,7 +457,7 @@ solverWindow::solverWindow(int solverIndex, int deltaFontSize)
choice
[
i
]
->
align
(
FL_ALIGN_RIGHT
);
choice
[
i
]
->
align
(
FL_ALIGN_RIGHT
);
}
}
static
int
arg
[
5
][
5
][
2
];
static
int
arg
[
NB_SOLVER_MAX
][
5
][
2
];
for
(
unsigned
int
i
=
0
;
i
<
GmshRemote
::
get
(
solverIndex
)
->
buttonName
.
size
();
i
++
)
{
for
(
unsigned
int
i
=
0
;
i
<
GmshRemote
::
get
(
solverIndex
)
->
buttonName
.
size
();
i
++
)
{
if
(
GmshRemote
::
get
(
solverIndex
)
->
buttonName
[
i
].
size
()){
if
(
GmshRemote
::
get
(
solverIndex
)
->
buttonName
[
i
].
size
()){
arg
[
solverIndex
][
i
][
0
]
=
solverIndex
;
arg
[
solverIndex
][
i
][
0
]
=
solverIndex
;
...
...
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