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
ddfd8d38
Commit
ddfd8d38
authored
16 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
671fff6d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Fltk/GUI.cpp
+10
-11
10 additions, 11 deletions
Fltk/GUI.cpp
with
10 additions
and
11 deletions
Fltk/GUI.cpp
+
10
−
11
View file @
ddfd8d38
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
#include
"solverWindow.h"
#include
"solverWindow.h"
#include
"aboutWindow.h"
#include
"aboutWindow.h"
#include
"colorbarWindow.h"
#include
"colorbarWindow.h"
#include
"popupButton.h"
#include
"fileDialogs.h"
#include
"fileDialogs.h"
#include
"Draw.h"
#include
"Draw.h"
#include
"GmshDefines.h"
#include
"GmshDefines.h"
...
@@ -41,7 +40,7 @@
...
@@ -41,7 +40,7 @@
extern
Context_T
CTX
;
extern
Context_T
CTX
;
static
int
SetG
lobalShortcut
(
int
event
)
static
int
g
lobalShortcut
(
int
event
)
{
{
return
GUI
::
instance
()
->
testGlobalShortcuts
(
event
);
return
GUI
::
instance
()
->
testGlobalShortcuts
(
event
);
}
}
...
@@ -63,7 +62,7 @@ GUI::GUI(int argc, char **argv)
...
@@ -63,7 +62,7 @@ GUI::GUI(int argc, char **argv)
Fl
::
display
(
CTX
.
display
);
Fl
::
display
(
CTX
.
display
);
// add global shortcuts
// add global shortcuts
Fl
::
add_handler
(
SetG
lobalShortcut
);
Fl
::
add_handler
(
g
lobalShortcut
);
// store fontsize now: we don't want any subsequent change
// store fontsize now: we don't want any subsequent change
// (e.g. when doing a 'restore options') to be taken into account
// (e.g. when doing a 'restore options') to be taken into account
...
@@ -90,9 +89,9 @@ GUI::GUI(int argc, char **argv)
...
@@ -90,9 +89,9 @@ GUI::GUI(int argc, char **argv)
fl_open_callback
(
OpenProjectMacFinder
);
fl_open_callback
(
OpenProjectMacFinder
);
#endif
#endif
//
A
ll
static
windows are contructed (even if some are not
//
a
ll
the
windows are contructed (even if some are not
displayed)
//
displayed)
since the shortcuts should be valid even for hidden
// since the shortcuts should be valid even for hidden
windows, and
//
windows, and
we don't want to test for widget existence every time
// we don't want to test for widget existence every time
menu
=
new
menuWindow
(
_fontsize
);
menu
=
new
menuWindow
(
_fontsize
);
graph
.
push_back
(
new
graphicWindow
(
_fontsize
));
graph
.
push_back
(
new
graphicWindow
(
_fontsize
));
...
@@ -101,7 +100,7 @@ GUI::GUI(int argc, char **argv)
...
@@ -101,7 +100,7 @@ GUI::GUI(int argc, char **argv)
((
const
char
*
)
LoadImage
(
fl_display
,
MAKEINTRESOURCE
(
IDI_ICON
),
((
const
char
*
)
LoadImage
(
fl_display
,
MAKEINTRESOURCE
(
IDI_ICON
),
IMAGE_ICON
,
16
,
16
,
LR_DEFAULTCOLOR
));
IMAGE_ICON
,
16
,
16
,
LR_DEFAULTCOLOR
));
#elif defined(__APPLE__)
#elif defined(__APPLE__)
//
N
othing to do here
//
n
othing to do here
#else
#else
fl_open_display
();
fl_open_display
();
static
char
gmsh32x32
[]
=
{
static
char
gmsh32x32
[]
=
{
...
@@ -124,7 +123,8 @@ GUI::GUI(int argc, char **argv)
...
@@ -124,7 +123,8 @@ GUI::GUI(int argc, char **argv)
gmsh32x32
,
32
,
32
));
gmsh32x32
,
32
,
32
));
#endif
#endif
// open graphics window first for correct non-modal behaviour on windows
// open graphic window first for correct non-modal behaviour on
// Win32
graph
[
0
]
->
win
->
show
(
1
,
argv
);
graph
[
0
]
->
win
->
show
(
1
,
argv
);
menu
->
win
->
show
();
menu
->
win
->
show
();
...
@@ -136,7 +136,6 @@ GUI::GUI(int argc, char **argv)
...
@@ -136,7 +136,6 @@ GUI::GUI(int argc, char **argv)
//graph.push_back(new graphicWindow(_fontsize));
//graph.push_back(new graphicWindow(_fontsize));
//graph[1]->win->show();
//graph[1]->win->show();
// create all the permanent windows
options
=
new
optionWindow
(
_fontsize
);
options
=
new
optionWindow
(
_fontsize
);
fields
=
new
fieldWindow
(
_fontsize
);
fields
=
new
fieldWindow
(
_fontsize
);
plugins
=
new
pluginWindow
(
_fontsize
);
plugins
=
new
pluginWindow
(
_fontsize
);
...
@@ -154,7 +153,7 @@ GUI::GUI(int argc, char **argv)
...
@@ -154,7 +153,7 @@ GUI::GUI(int argc, char **argv)
// init solver plugin stuff
// init solver plugin stuff
callForSolverPlugin
(
-
1
);
callForSolverPlugin
(
-
1
);
//
D
raw the scene
//
d
raw the scene
graph
[
0
]
->
gl
->
redraw
();
graph
[
0
]
->
gl
->
redraw
();
}
}
...
@@ -614,7 +613,7 @@ void GUI::callForSolverPlugin(int dim)
...
@@ -614,7 +613,7 @@ void GUI::callForSolverPlugin(int dim)
void
hide_cb
(
Fl_Widget
*
w
,
void
*
data
)
void
hide_cb
(
Fl_Widget
*
w
,
void
*
data
)
{
{
if
(
data
)
((
Fl_Wi
dget
*
)
data
)
->
hide
();
if
(
data
)
((
Fl_Wi
ndow
*
)
data
)
->
hide
();
}
}
void
redraw_cb
(
Fl_Widget
*
w
,
void
*
data
)
void
redraw_cb
(
Fl_Widget
*
w
,
void
*
data
)
...
...
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