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
ed5fbd6c
Commit
ed5fbd6c
authored
24 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
eea04cba
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/GUI.cpp
+1
-2
1 addition, 2 deletions
Fltk/GUI.cpp
Fltk/GUI.h
+5
-2
5 additions, 2 deletions
Fltk/GUI.h
with
6 additions
and
4 deletions
Fltk/GUI.cpp
+
1
−
2
View file @
ed5fbd6c
...
@@ -70,7 +70,7 @@ GUI::GUI() {
...
@@ -70,7 +70,7 @@ GUI::GUI() {
{
{
int
width
=
152
;
int
width
=
152
;
MH
=
2
*
BH
+
6
;
// this is the initial
width
: no dynamic button is shown!
MH
=
2
*
BH
+
6
;
// this is the initial
height
: no dynamic button is shown!
m_window
=
new
Fl_Window
(
width
,
MH
);
m_window
=
new
Fl_Window
(
width
,
MH
);
m_window
->
box
(
FL_THIN_UP_BOX
);
m_window
->
box
(
FL_THIN_UP_BOX
);
...
@@ -225,7 +225,6 @@ void GUI::set_size(int w, int h){
...
@@ -225,7 +225,6 @@ void GUI::set_size(int w, int h){
void
GUI
::
set_menu_size
(
int
nb_butt
){
void
GUI
::
set_menu_size
(
int
nb_butt
){
m_window
->
size
(
m_window
->
w
(),
MH
+
nb_butt
*
BH
);
m_window
->
size
(
m_window
->
w
(),
MH
+
nb_butt
*
BH
);
m_window
->
redraw
();
}
}
// The window for general options
// The window for general options
...
...
This diff is collapsed.
Click to expand it.
Fltk/GUI.h
+
5
−
2
View file @
ed5fbd6c
...
@@ -45,8 +45,10 @@ public:
...
@@ -45,8 +45,10 @@ public:
class
GUI
{
class
GUI
{
int
BH
;
// button height
int
BH
;
// generic button height
int
WB
;
// window border
int
WB
;
// generic window border
int
MH
;
// height of the unchangeable part of the menu window
// All other diemnsions are automatic, or governed by CTX
// Windows
// Windows
Fl_Window
*
m_window
,
*
g_window
,
*
gen_window
,
*
geo_window
;
Fl_Window
*
m_window
,
*
g_window
,
*
gen_window
,
*
geo_window
;
...
@@ -89,6 +91,7 @@ public:
...
@@ -89,6 +91,7 @@ public:
void
draw_gl
();
void
draw_gl
();
void
draw_gl_overlay
();
void
draw_gl_overlay
();
void
set_size
(
int
w
,
int
h
);
void
set_size
(
int
w
,
int
h
);
void
set_menu_size
(
int
nb_butt
);
void
opt_general
();
void
opt_general
();
void
opt_geometry
();
void
opt_geometry
();
...
...
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