summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-07-05 17:48:30 +0200
committerMatthias Melcher <github@matthiasm.com>2025-07-05 17:48:30 +0200
commitccc294f9f7111bf283fda7164823902c1fb12736 (patch)
tree1468627312f254cb8bd422177163b6d43f744466 /src
parent5fb38897b716391e10b7ea904ece05073f8e53a8 (diff)
Fl_Help_View: Thin out header file
- remove unnecessary include.
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Help_Dialog.fl9
-rw-r--r--src/Fl_Help_View.cxx7
2 files changed, 12 insertions, 4 deletions
diff --git a/src/Fl_Help_Dialog.fl b/src/Fl_Help_Dialog.fl
index e147f37f6..f5f606137 100644
--- a/src/Fl_Help_Dialog.fl
+++ b/src/Fl_Help_Dialog.fl
@@ -36,6 +36,9 @@ decl {\#include "flstring.h"} {private local
decl {\#include <FL/fl_ask.H>} {private local
}
+decl {\#include <FL/filename.H>} {public global
+}
+
class FL_EXPORT Fl_Help_Dialog {open
} {
decl {int index_;} {private local
@@ -50,8 +53,8 @@ class FL_EXPORT Fl_Help_Dialog {open
}
Function {Fl_Help_Dialog()} {} {
Fl_Window window_ {
- label {Help Dialog} open
- private xywh {398 64 530 385} type Double hide resizable size_range {260 150 0 0}
+ label {Help Dialog} selected
+ private xywh {495 250 530 385} type Double hide resizable size_range {260 150 0 0}
} {
Fl_Group {} {open
xywh {10 10 511 25}
@@ -232,7 +235,7 @@ else
} {
code {view_->topline(n);} {}
}
- Function {topline(int n)} {selected return_type void
+ Function {topline(int n)} {return_type void
} {
code {view_->topline(n);} {}
}
diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx
index 8a71d4f07..f8e315af4 100644
--- a/src/Fl_Help_View.cxx
+++ b/src/Fl_Help_View.cxx
@@ -30,10 +30,12 @@
#include <FL/fl_utf8.h>
#include <FL/filename.H> // fl_open_uri()
#include <FL/fl_string_functions.h> // fl_strdup()
+#include <FL/fl_draw.H>
+#include <FL/filename.H>
#include "flstring.h"
//
-// System header files
+// System and C++ header files
//
#include <stdio.h>
@@ -41,7 +43,10 @@
#include <ctype.h>
#include <errno.h>
#include <math.h>
+#include <map>
+#include <vector>
#include <string>
+#include <memory>
//
// Debugging