summaryrefslogtreecommitdiff
path: root/src/Fl_Help_Dialog.fl
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Help_Dialog.fl')
-rw-r--r--src/Fl_Help_Dialog.fl122
1 files changed, 59 insertions, 63 deletions
diff --git a/src/Fl_Help_Dialog.fl b/src/Fl_Help_Dialog.fl
index e06c555..909e2ba 100644
--- a/src/Fl_Help_Dialog.fl
+++ b/src/Fl_Help_Dialog.fl
@@ -1,9 +1,9 @@
# data file for the Fltk User Interface Designer (fluid)
-version 1.0107
+version 1.0108
header_name {../FL/Fl_Help_Dialog.H}
code_name {.cxx}
comment {//
-// "$Id: Fl_Help_Dialog.fl 4721 2005-12-19 16:52:11Z matt $"
+// "$Id: Fl_Help_Dialog.fl 5643 2007-01-28 19:36:51Z mike $"
//
// Fl_Help_Dialog dialog for the Fast Light Tool Kit (FLTK).
//
@@ -42,63 +42,15 @@ class FL_EXPORT Fl_Help_Dialog {open
decl {int line_[100];} {}
decl {char file_[100][256];} {}
decl {int find_pos_;} {}
- Function {Fl_Help_Dialog()} {} {
+ Function {Fl_Help_Dialog()} {open
+ } {
Fl_Window window_ {
label {Help Dialog} open
- private xywh {398 65 530 385} type Double resizable size_range {260 150 0 0} visible
+ private xywh {398 64 530 385} type Double resizable size_range {260 150 0 0} visible
} {
- Fl_Group view_ {
- callback {if (view_->filename())
-{
- if (view_->changed())
- {
- index_ ++;
-
- if (index_ >= 100)
- {
- memmove(line_, line_ + 10, sizeof(line_[0]) * 90);
- memmove(file_, file_ + 10, sizeof(file_[0]) * 90);
- index_ -= 10;
- }
-
- max_ = index_;
-
- strlcpy(file_[index_], view_->filename(),sizeof(file_[0]));
- line_[index_] = view_->topline();
-
- if (index_ > 0)
- back_->activate();
- else
- back_->deactivate();
-
- forward_->deactivate();
- window_->label(view_->title());
- }
- else // if ! view_->changed()
- {
- strlcpy(file_[index_], view_->filename(), sizeof(file_[0]));
- line_[index_] = view_->topline();
- }
-} else { // if ! view_->filename()
- index_ = 0; // hitting an internal page will disable the back/fwd buffer
- file_[index_][0] = 0; // unnamed internal page
- line_[index_] = view_->topline();
- back_->deactivate();
- forward_->deactivate();
-}} open
- private xywh {10 10 510 330} box DOWN_BOX selection_color 15 resizable
- code0 {\#include <FL/Fl_Help_View.H>}
- class Fl_Help_View
- } {}
- Fl_Group {} {open
- xywh {10 348 510 27}
+ Fl_Group {} {open selected
+ xywh {10 10 511 25}
} {
- Fl_Button {} {
- label Close
- callback {window_->hide();}
- private xywh {456 350 64 25}
- code0 {o->label(fl_close);}
- }
Fl_Button back_ {
label {@<-}
callback {if (index_ > 0)
@@ -115,7 +67,7 @@ if (strcmp(view_->filename(), file_[index_]) != 0)
view_->load(file_[index_]);
view_->topline(l);}
- private tooltip {Show the previous help page.} xywh {386 350 25 25} shortcut 0xff51 labelcolor 2
+ private tooltip {Show the previous help page.} xywh {10 10 25 25} shortcut 0xff51 labelcolor 2
}
Fl_Button forward_ {
label {@->}
@@ -133,7 +85,7 @@ if (strcmp(view_->filename(), file_[index_]) != 0)
view_->load(file_[index_]);
view_->topline(l);}
- private tooltip {Show the next help page.} xywh {421 350 25 25} shortcut 0xff53 labelcolor 2
+ private tooltip {Show the next help page.} xywh {45 10 25 25} shortcut 0xff53 labelcolor 2
}
Fl_Button smaller_ {
label F
@@ -143,7 +95,7 @@ view_->topline(l);}
if (view_->textsize() <= 8)
smaller_->deactivate();
larger_->activate();}
- private tooltip {Make the help text smaller.} xywh {316 350 25 25} labelfont 1 labelsize 10
+ private tooltip {Make the help text smaller.} xywh {80 10 25 25} labelfont 1 labelsize 10
}
Fl_Button larger_ {
label F
@@ -153,17 +105,61 @@ larger_->activate();}
if (view_->textsize() >= 18)
larger_->deactivate();
smaller_->activate();}
- private tooltip {Make the help text larger.} xywh {351 350 25 25} labelfont 1 labelsize 16
+ private tooltip {Make the help text larger.} xywh {115 10 25 25} labelfont 1 labelsize 16
}
Fl_Group {} {open
- xywh {10 350 296 25} box DOWN_BOX color 7 resizable
+ xywh {350 10 171 25} box DOWN_BOX color 7
} {
Fl_Input find_ {
label {@search}
- callback {find_pos_ = view_->find(find_->value(), find_pos_);} selected
- private tooltip {find text in document} xywh {35 352 268 21} box FLAT_BOX labelsize 13 when 10 resizable
+ callback {find_pos_ = view_->find(find_->value(), find_pos_);}
+ private tooltip {find text in document} xywh {375 12 143 21} box FLAT_BOX labelsize 13 when 10 textfont 4
}
}
+ Fl_Box {} {
+ xywh {150 10 190 25} resizable
+ }
+ }
+ Fl_Help_View view_ {
+ callback {if (view_->filename())
+{
+ if (view_->changed())
+ {
+ index_ ++;
+
+ if (index_ >= 100)
+ {
+ memmove(line_, line_ + 10, sizeof(line_[0]) * 90);
+ memmove(file_, file_ + 10, sizeof(file_[0]) * 90);
+ index_ -= 10;
+ }
+
+ max_ = index_;
+
+ strlcpy(file_[index_], view_->filename(),sizeof(file_[0]));
+ line_[index_] = view_->topline();
+
+ if (index_ > 0)
+ back_->activate();
+ else
+ back_->deactivate();
+
+ forward_->deactivate();
+ window_->label(view_->title());
+ }
+ else // if ! view_->changed()
+ {
+ strlcpy(file_[index_], view_->filename(), sizeof(file_[0]));
+ line_[index_] = view_->topline();
+ }
+} else { // if ! view_->filename()
+ index_ = 0; // hitting an internal page will disable the back/fwd buffer
+ file_[index_][0] = 0; // unnamed internal page
+ line_[index_] = view_->topline();
+ back_->deactivate();
+ forward_->deactivate();
+}}
+ private xywh {10 45 510 330} box DOWN_BOX resizable
}
}
code {back_->deactivate();
@@ -264,6 +260,6 @@ window_->label(view_->title());} {}
comment {
//
-// End of "$Id: Fl_Help_Dialog.fl 4721 2005-12-19 16:52:11Z matt $".
+// End of "$Id: Fl_Help_Dialog.fl 5643 2007-01-28 19:36:51Z mike $".
//} {in_source in_header
}