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
a75e4fc5
Commit
a75e4fc5
authored
20 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
Fl_Double_Window is not really necessary for Main_Window
parent
088cab2c
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/Shortcut_Window.h
+11
-4
11 additions, 4 deletions
Fltk/Shortcut_Window.h
with
11 additions
and
4 deletions
Fltk/Shortcut_Window.h
+
11
−
4
View file @
a75e4fc5
...
...
@@ -22,6 +22,7 @@
#include
"GmshUI.h"
#include
<FL/Fl_Window.H>
#include
<FL/Fl_Double_Window.H>
#include
<FL/fl_ask.H>
...
...
@@ -55,7 +56,13 @@ class Dialog_Window : public Fl_Double_Window {
Fl_Double_Window
(
w
,
h
,
l
)
{}
};
class
Main_Window
:
public
Fl_Double_Window
{
// Do the same for the main windows, but ask if we really want to quit
// before closing. Also, derive the main windows from Fl_Window: they
// show up faster that way, and they only contain either buttons that
// are recreated each time, or the big (already double-buffered)
// OpenGL area anyway.
class
Main_Window
:
public
Fl_Window
{
int
handle
(
int
event
){
switch
(
event
)
{
case
FL_SHORTCUT
:
...
...
@@ -75,13 +82,13 @@ class Main_Window : public Fl_Double_Window {
#endif
break
;
}
return
Fl_
Double_
Window
::
handle
(
event
);
return
Fl_Window
::
handle
(
event
);
}
public
:
Main_Window
(
int
x
,
int
y
,
int
w
,
int
h
,
const
char
*
l
=
0
)
:
Fl_
Double_
Window
(
x
,
y
,
w
,
h
,
l
)
{}
Fl_Window
(
x
,
y
,
w
,
h
,
l
)
{}
Main_Window
(
int
w
,
int
h
,
const
char
*
l
=
0
)
:
Fl_
Double_
Window
(
w
,
h
,
l
)
{}
Fl_Window
(
w
,
h
,
l
)
{}
};
#endif
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