summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2001-09-29 22:59:45 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2001-09-29 22:59:45 +0000
commit72b56edc2940e0279a551fa9182d5ffb16cc1953 (patch)
tree224ee91888baf40fb040e8854d7105885f94ab27 /fluid
parente7f3ad8691e0d2ef1b9c589d0fe702774182541d (diff)
Tooltips, and more tooltips.
Fl_Browser_, Fl_Choice, and Fl_Input_ did not do the tooltip stuff. Fix write_properties so it writes tooltips properly from FLUID. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1616 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid')
-rw-r--r--fluid/Fl_Widget_Type.cxx6
-rw-r--r--fluid/about_panel.cxx4
-rw-r--r--fluid/about_panel.fl8
-rw-r--r--fluid/about_panel.h2
-rw-r--r--fluid/alignment_panel.cxx17
-rw-r--r--fluid/alignment_panel.fl34
-rw-r--r--fluid/alignment_panel.h2
-rw-r--r--fluid/fluid.cxx7
-rw-r--r--fluid/function_panel.cxx18
-rw-r--r--fluid/function_panel.fl32
-rw-r--r--fluid/function_panel.h2
-rw-r--r--fluid/widget_panel.cxx60
-rw-r--r--fluid/widget_panel.fl118
13 files changed, 198 insertions, 112 deletions
diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx
index 22056af9a..fca9df8e8 100644
--- a/fluid/Fl_Widget_Type.cxx
+++ b/fluid/Fl_Widget_Type.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Widget_Type.cxx,v 1.15.2.16.2.3 2001/09/29 06:20:15 easysw Exp $"
+// "$Id: Fl_Widget_Type.cxx,v 1.15.2.16.2.4 2001/09/29 22:59:45 easysw Exp $"
//
// Widget type code for the Fast Light Tool Kit (FLTK).
//
@@ -1644,7 +1644,7 @@ void Fl_Widget_Type::write_properties() {
if (!public_) write_string("private");
if (tooltip() && *tooltip()) {
write_string("tooltip");
- write_word(o->tooltip());
+ write_word(tooltip());
}
if (image_name() && *image_name()) {
write_string("image");
@@ -1955,5 +1955,5 @@ int Fl_Widget_Type::read_fdesign(const char* name, const char* value) {
}
//
-// End of "$Id: Fl_Widget_Type.cxx,v 1.15.2.16.2.3 2001/09/29 06:20:15 easysw Exp $".
+// End of "$Id: Fl_Widget_Type.cxx,v 1.15.2.16.2.4 2001/09/29 22:59:45 easysw Exp $".
//
diff --git a/fluid/about_panel.cxx b/fluid/about_panel.cxx
index 0c5d80d1a..53ed8697d 100644
--- a/fluid/about_panel.cxx
+++ b/fluid/about_panel.cxx
@@ -1,4 +1,4 @@
-// generated by Fast Light User Interface Designer (fluid) version 1.0011
+// generated by Fast Light User Interface Designer (fluid) version 1.0100
#include "about_panel.h"
@@ -87,7 +87,7 @@ Fl_Window* make_about_panel(const char *copyright) {
o->labelcolor(7);
o->align(FL_ALIGN_TOP|FL_ALIGN_INSIDE);
}
- { Fl_Box* o = new Fl_Box(140, 27, 160, 123, "FLTK User\nInterface\nDesigner\nVersion 1.0.11");
+ { Fl_Box* o = new Fl_Box(140, 27, 160, 123, "FLTK User\nInterface\nDesigner\nVersion 1.1.0");
o->box(FL_OVAL_BOX);
o->color(12);
o->selection_color(47);
diff --git a/fluid/about_panel.fl b/fluid/about_panel.fl
index 56f6a8e89..f023be07d 100644
--- a/fluid/about_panel.fl
+++ b/fluid/about_panel.fl
@@ -1,5 +1,5 @@
# data file for the Fltk User Interface Designer (fluid)
-version 1.0011
+version 1.0100
header_name {.h}
code_name {.cxx}
gridx 10
@@ -9,7 +9,7 @@ Function {make_about_panel(const char *copyright)} {open
} {
Fl_Window about_panel {
label {about fluid} open
- xywh {345 417 309 258} box UP_BOX color 97 selection_color 47 hotspot non_modal visible
+ xywh {78 110 309 258} box UP_BOX color 97 selection_color 47 hotspot non_modal visible
} {
Fl_Group display_group {open
xywh {10 10 290 240}
@@ -49,14 +49,14 @@ Function {make_about_panel(const char *copyright)} {open
label {FLTK User
Interface
Designer
-Version 1.0.11}
+Version 1.1.0} selected
xywh {140 27 160 123} box OVAL_BOX color 12 selection_color 47 labeltype SHADOW_LABEL labelfont 1 labelsize 18 labelcolor 7
}
Fl_Button {} {
label {©1998-2001 by
Bill Spitzak and others}
callback {display_group->hide();
-copyright_box->show();} selected
+copyright_box->show();}
xywh {181 176 115 30} box THIN_UP_BOX labelsize 10 labelcolor 136
}
}
diff --git a/fluid/about_panel.h b/fluid/about_panel.h
index 2f7251722..0350cec3a 100644
--- a/fluid/about_panel.h
+++ b/fluid/about_panel.h
@@ -1,4 +1,4 @@
-// generated by Fast Light User Interface Designer (fluid) version 1.0011
+// generated by Fast Light User Interface Designer (fluid) version 1.0100
#ifndef about_panel_h
#define about_panel_h
diff --git a/fluid/alignment_panel.cxx b/fluid/alignment_panel.cxx
index 94095961c..559002794 100644
--- a/fluid/alignment_panel.cxx
+++ b/fluid/alignment_panel.cxx
@@ -1,4 +1,4 @@
-// generated by Fast Light User Interface Designer (fluid) version 1.0008
+// generated by Fast Light User Interface Designer (fluid) version 1.0100
#include "alignment_panel.h"
@@ -41,30 +41,34 @@ Fl_Window* make_alignment_window() {
Fl_Window* w;
{ Fl_Window* o = alignment_window = new Fl_Window(365, 340, "Preferences");
w = o;
- { Fl_Box* o = new Fl_Box(10, 25, 130, 130, "Alignment:");
+ { Fl_Box* o = new Fl_Box(10, 25, 130, 130, "Grid:");
o->box(FL_ENGRAVED_FRAME);
o->labelsize(12);
o->align(FL_ALIGN_TOP_LEFT);
}
{ Fl_Input* o = horizontal_input = new Fl_Input(90, 35, 40, 20, "Horizontal:");
+ o->tooltip("Horizontal grid spacing.");
o->type(2);
o->box(FL_THIN_DOWN_BOX);
o->callback((Fl_Callback*)alignment_cb, (void*)(1));
o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);
}
{ Fl_Input* o = vertical_input = new Fl_Input(90, 65, 40, 20, "Vertical:");
+ o->tooltip("Vertical grid spacing.");
o->type(2);
o->box(FL_THIN_DOWN_BOX);
o->callback((Fl_Callback*)alignment_cb, (void*)(2));
o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);
}
{ Fl_Input* o = snap_input = new Fl_Input(90, 95, 40, 20, "Snap:");
+ o->tooltip("Snap to grid within this many pixels.");
o->type(2);
o->box(FL_THIN_DOWN_BOX);
o->callback((Fl_Callback*)alignment_cb, (void*)(3));
o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);
}
{ Fl_Button* o = new Fl_Button(295, 305, 60, 25, "Close");
+ o->tooltip("Close this dialog.");
o->callback((Fl_Callback*)cb_Close);
}
{ Fl_Box* o = new Fl_Box(10, 175, 345, 120, "Output File Names:");
@@ -77,18 +81,21 @@ Fl_Window* make_alignment_window() {
o->align(132|FL_ALIGN_INSIDE);
}
{ Fl_Input* o = header_file_input = new Fl_Input(100, 205, 245, 20, "Header File:");
+ o->tooltip("The name of the generated header file.");
o->box(FL_THIN_DOWN_BOX);
o->textfont(4);
o->callback((Fl_Callback*)header_input_cb, (void*)(1));
o->when(FL_WHEN_CHANGED);
}
{ Fl_Input* o = code_file_input = new Fl_Input(100, 235, 245, 20, "Code File:");
+ o->tooltip("The name of the generated code file.");
o->box(FL_THIN_DOWN_BOX);
o->textfont(4);
o->callback((Fl_Callback*)code_input_cb, (void*)(1));
o->when(FL_WHEN_CHANGED);
}
{ Fl_Light_Button* o = include_H_from_C_button = new Fl_Light_Button(100, 265, 170, 20, "Include Header from Code");
+ o->tooltip("Include the header file from the code file.");
o->value(1);
o->labelsize(12);
o->callback((Fl_Callback*)include_H_from_C_button_cb);
@@ -99,23 +106,28 @@ Fl_Window* make_alignment_window() {
o->align(FL_ALIGN_TOP_LEFT);
}
{ Fl_Choice* o = i18n_type_chooser = new Fl_Choice(220, 35, 125, 20, "Use:");
+ o->tooltip("Type of internationalization to use.");
o->box(FL_THIN_UP_BOX);
+ o->down_box(FL_BORDER_BOX);
o->callback((Fl_Callback*)i18n_type_cb);
o->menu(menu_i18n_type_chooser);
}
{ Fl_Input* o = i18n_include_input = new Fl_Input(220, 65, 125, 20, "#include:");
+ o->tooltip("The include file for internationalization.");
o->box(FL_THIN_DOWN_BOX);
o->textfont(4);
o->callback((Fl_Callback*)i18n_text_cb);
o->hide();
}
{ Fl_Input* o = i18n_file_input = new Fl_Input(220, 95, 125, 20, "File:");
+ o->tooltip("The name of the message catalog.");
o->box(FL_THIN_DOWN_BOX);
o->textfont(4);
o->callback((Fl_Callback*)i18n_text_cb);
o->hide();
}
{ Fl_Input* o = i18n_set_input = new Fl_Input(220, 125, 125, 20, "Set:");
+ o->tooltip("The message set number.");
o->type(2);
o->box(FL_THIN_DOWN_BOX);
o->textfont(4);
@@ -123,6 +135,7 @@ Fl_Window* make_alignment_window() {
o->hide();
}
{ Fl_Input* o = i18n_function_input = new Fl_Input(220, 95, 125, 20, "Function:");
+ o->tooltip("The function to call to internationalize the labels and tooltips.");
o->box(FL_THIN_DOWN_BOX);
o->textfont(4);
o->callback((Fl_Callback*)i18n_text_cb);
diff --git a/fluid/alignment_panel.fl b/fluid/alignment_panel.fl
index 978589d03..5e8e1a251 100644
--- a/fluid/alignment_panel.fl
+++ b/fluid/alignment_panel.fl
@@ -1,5 +1,5 @@
# data file for the Fltk User Interface Designer (fluid)
-version 1.0008
+version 1.0100
header_name {.h}
code_name {.cxx}
gridx 5
@@ -9,37 +9,37 @@ Function {make_alignment_window()} {open
} {
Fl_Window alignment_window {
label Preferences open
- xywh {473 284 365 340} hide modal
+ xywh {469 112 365 340} modal visible
} {
Fl_Box {} {
- label {Alignment:}
+ label {Grid:}
xywh {10 25 130 130} box ENGRAVED_FRAME labelsize 12 align 5
}
Fl_Input horizontal_input {
label {Horizontal:}
user_data 1 user_data_type long
callback alignment_cb
- xywh {90 35 40 20} type Int box THIN_DOWN_BOX
+ tooltip {Horizontal grid spacing.} xywh {90 35 40 20} type Int box THIN_DOWN_BOX
code0 {o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);}
}
Fl_Input vertical_input {
label {Vertical:}
user_data 2 user_data_type long
callback alignment_cb
- xywh {90 65 40 20} type Int box THIN_DOWN_BOX
+ tooltip {Vertical grid spacing.} xywh {90 65 40 20} type Int box THIN_DOWN_BOX
code0 {o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);}
}
Fl_Input snap_input {
label {Snap:}
user_data 3 user_data_type long
callback alignment_cb
- xywh {90 95 40 20} type Int box THIN_DOWN_BOX
+ tooltip {Snap to grid within this many pixels.} xywh {90 95 40 20} type Int box THIN_DOWN_BOX
code0 {o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);}
}
Fl_Button {} {
label Close
- callback {alignment_window->hide();}
- xywh {295 305 60 25}
+ callback {alignment_window->hide();} selected
+ tooltip {Close this dialog.} xywh {295 305 60 25}
}
Fl_Box {} {
label {Output File Names:}
@@ -53,18 +53,18 @@ Function {make_alignment_window()} {open
label {Header File:}
user_data 1 user_data_type {void*}
callback header_input_cb
- xywh {100 205 245 20} box THIN_DOWN_BOX when 1 textfont 4
+ tooltip {The name of the generated header file.} xywh {100 205 245 20} box THIN_DOWN_BOX when 1 textfont 4
}
Fl_Input code_file_input {
label {Code File:}
user_data 1 user_data_type {void*}
callback code_input_cb
- xywh {100 235 245 20} box THIN_DOWN_BOX when 1 textfont 4
+ tooltip {The name of the generated code file.} xywh {100 235 245 20} box THIN_DOWN_BOX when 1 textfont 4
}
Fl_Light_Button include_H_from_C_button {
label {Include Header from Code}
callback include_H_from_C_button_cb
- xywh {100 265 170 20} value 1 labelsize 12
+ tooltip {Include the header file from the code file.} xywh {100 265 170 20} value 1 labelsize 12
}
Fl_Box {} {
label {Internationalization:}
@@ -73,7 +73,7 @@ Function {make_alignment_window()} {open
Fl_Choice i18n_type_chooser {
label {Use:}
callback i18n_type_cb open
- xywh {220 35 125 20} box THIN_UP_BOX
+ tooltip {Type of internationalization to use.} xywh {220 35 125 20} box THIN_UP_BOX down_box BORDER_BOX
} {
menuitem {} {
label None
@@ -90,23 +90,23 @@ Function {make_alignment_window()} {open
}
Fl_Input i18n_include_input {
label {\#include:}
- callback i18n_text_cb selected
- xywh {220 65 125 20} box THIN_DOWN_BOX textfont 4 hide
+ callback i18n_text_cb
+ tooltip {The include file for internationalization.} xywh {220 65 125 20} box THIN_DOWN_BOX textfont 4 hide
}
Fl_Input i18n_file_input {
label {File:}
callback i18n_text_cb
- xywh {220 95 125 20} box THIN_DOWN_BOX textfont 4 hide
+ tooltip {The name of the message catalog.} xywh {220 95 125 20} box THIN_DOWN_BOX textfont 4 hide
}
Fl_Input i18n_set_input {
label {Set:}
callback i18n_text_cb
- xywh {220 125 125 20} type Int box THIN_DOWN_BOX textfont 4 hide
+ tooltip {The message set number.} xywh {220 125 125 20} type Int box THIN_DOWN_BOX textfont 4 hide
}
Fl_Input i18n_function_input {
label {Function:}
callback i18n_text_cb
- xywh {220 95 125 20} box THIN_DOWN_BOX textfont 4 hide
+ tooltip {The function to call to internationalize the labels and tooltips.} xywh {220 95 125 20} box THIN_DOWN_BOX textfont 4 hide
}
}
}
diff --git a/fluid/alignment_panel.h b/fluid/alignment_panel.h
index cf73c8927..8fbe5da1d 100644
--- a/fluid/alignment_panel.h
+++ b/fluid/alignment_panel.h
@@ -1,4 +1,4 @@
-// generated by Fast Light User Interface Designer (fluid) version 1.0008
+// generated by Fast Light User Interface Designer (fluid) version 1.0100
#ifndef alignment_panel_h
#define alignment_panel_h
diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx
index d8cd82cc9..60231eb7c 100644
--- a/fluid/fluid.cxx
+++ b/fluid/fluid.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: fluid.cxx,v 1.15.2.13.2.6 2001/09/29 14:38:59 easysw Exp $"
+// "$Id: fluid.cxx,v 1.15.2.13.2.7 2001/09/29 22:59:45 easysw Exp $"
//
// FLUID main entry for the Fast Light Tool Kit (FLTK).
//
@@ -48,6 +48,7 @@ const char *copyright =
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Button.H>
+#include <FL/Fl_File_Icon.H>
#include <FL/Fl_Help_Dialog.H>
#include <FL/Fl_Hold_Browser.H>
#include <FL/Fl_Menu_Bar.H>
@@ -426,6 +427,7 @@ void make_main_window() {
main_window->box(FL_NO_BOX);
o = make_widget_browser(0,MENUHEIGHT,BROWSERWIDTH,BROWSERHEIGHT);
o->box(FL_FLAT_BOX);
+ o->tooltip("Double-click to view or change an item.");
main_window->resizable(o);
Fl_Menu_Bar *m = new Fl_Menu_Bar(0,0,BROWSERWIDTH,MENUHEIGHT);
m->menu(Main_Menu);
@@ -498,6 +500,7 @@ int main(int argc,char **argv) {
if (c) set_filename(c);
if (!compile_only) {
Fl::visual((Fl_Mode)(FL_DOUBLE|FL_INDEX));
+ Fl_File_Icon::load_system_icons();
main_window->callback(exit_cb);
main_window->show(argc,argv);
}
@@ -518,5 +521,5 @@ int main(int argc,char **argv) {
}
//
-// End of "$Id: fluid.cxx,v 1.15.2.13.2.6 2001/09/29 14:38:59 easysw Exp $".
+// End of "$Id: fluid.cxx,v 1.15.2.13.2.7 2001/09/29 22:59:45 easysw Exp $".
//
diff --git a/fluid/function_panel.cxx b/fluid/function_panel.cxx
index c199ae960..5d696abaf 100644
--- a/fluid/function_panel.cxx
+++ b/fluid/function_panel.cxx
@@ -1,4 +1,4 @@
-// generated by Fast Light User Interface Designer (fluid) version 1.0008
+// generated by Fast Light User Interface Designer (fluid) version 1.0100
#include "function_panel.h"
@@ -21,13 +21,16 @@ Fl_Window* make_function_panel() {
{ Fl_Window* o = function_panel = new Fl_Window(285, 170, "function/method");
w = o;
{ Fl_Light_Button* o = f_public_button = new Fl_Light_Button(10, 10, 65, 25, "public");
+ o->tooltip("Make the function or method publicly accessible.");
o->labelsize(10);
o->when(FL_WHEN_NEVER);
}
{ Fl_Light_Button* o = f_c_button = new Fl_Light_Button(80, 10, 90, 25, "C declaration");
+ o->tooltip("Declare with a C interface instead of C++.");
o->labelsize(10);
}
{ Fl_Input* o = f_name_input = new Fl_Input(10, 55, 265, 25, "Name(args): (blank for main())");
+ o->tooltip("The name of the function or method.");
o->labelsize(12);
o->textfont(4);
o->align(FL_ALIGN_TOP_LEFT);
@@ -35,15 +38,18 @@ Fl_Window* make_function_panel() {
Fl_Group::current()->resizable(o);
}
{ Fl_Input* o = f_return_type_input = new Fl_Input(10, 100, 265, 25, "Return Type: (blank to return outermost widget)");
+ o->tooltip("The return type of the function or method.");
o->labelsize(12);
o->textfont(4);
o->align(FL_ALIGN_TOP_LEFT);
o->when(FL_WHEN_NEVER);
}
{ Fl_Return_Button* o = f_panel_ok = new Fl_Return_Button(110, 135, 80, 25, "OK");
+ o->tooltip("Apply the changes.");
w->hotspot(o);
}
{ Fl_Button* o = f_panel_cancel = new Fl_Button(195, 135, 80, 25, "Cancel");
+ o->tooltip("Cancel the changes.");
o->shortcut(0xff1b);
}
o->set_modal();
@@ -65,6 +71,7 @@ Fl_Window* make_code_panel() {
{ Fl_Window* o = code_panel = new Fl_Window(290, 175, "code");
w = o;
{ Fl_Input* o = code_input = new Fl_Input(10, 10, 270, 120);
+ o->tooltip("C/C++ code.");
o->type(4);
o->labelsize(12);
o->textfont(4);
@@ -99,6 +106,7 @@ Fl_Window* make_codeblock_panel() {
{ Fl_Window* o = codeblock_panel = new Fl_Window(295, 130, "codeblock");
w = o;
{ Fl_Input* o = code_before_input = new Fl_Input(10, 10, 275, 25);
+ o->tooltip("#ifdef or similar conditional code block.");
o->labelsize(12);
o->textfont(4);
o->align(FL_ALIGN_TOP_LEFT);
@@ -109,6 +117,7 @@ Fl_Window* make_codeblock_panel() {
o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
}
{ Fl_Input* o = code_after_input = new Fl_Input(10, 60, 275, 25);
+ o->tooltip("#endif or similar conditional code block.");
o->labelsize(12);
o->textfont(4);
o->align(FL_ALIGN_TOP_LEFT);
@@ -141,6 +150,7 @@ Fl_Window* make_declblock_panel() {
{ Fl_Window* o = declblock_panel = new Fl_Window(295, 130, "declaration block");
w = o;
{ Fl_Input* o = decl_before_input = new Fl_Input(10, 10, 275, 25);
+ o->tooltip("#ifdef or similar conditional declaration block.");
o->labelsize(12);
o->textfont(4);
o->align(FL_ALIGN_TOP_LEFT);
@@ -151,6 +161,7 @@ Fl_Window* make_declblock_panel() {
o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
}
{ Fl_Input* o = decl_after_input = new Fl_Input(10, 60, 275, 25);
+ o->tooltip("#endif or similar declaration code block.");
o->labelsize(12);
o->textfont(4);
o->align(FL_ALIGN_TOP_LEFT);
@@ -183,12 +194,14 @@ Fl_Window* make_decl_panel() {
{ Fl_Window* o = decl_panel = new Fl_Window(290, 180, "declaration");
w = o;
{ Fl_Light_Button* o = decl_public_button = new Fl_Light_Button(10, 10, 65, 25, "public");
+ o->tooltip("Make the declaration publicly accessible.");
o->labelsize(10);
o->when(FL_WHEN_NEVER);
}
{ Fl_Input* o = decl_input = new Fl_Input(10, 40, 270, 25, "Can be any declaration, like \"int x;\",\nan external symbol like \"extern in\
t foo();\",\na #directive like \"#include <foo.h>\",\nor a comment like \"//fo\
o\" or \"/*foo*/\",\nor typedef like \"typedef char byte;\"");
+ o->tooltip("Declaration text.");
o->labelsize(12);
o->textfont(4);
o->align(FL_ALIGN_BOTTOM_LEFT);
@@ -223,10 +236,12 @@ Fl_Window* make_class_panel() {
{ Fl_Window* o = class_panel = new Fl_Window(285, 170, "class");
w = o;
{ Fl_Light_Button* o = c_public_button = new Fl_Light_Button(10, 10, 65, 25, "public");
+ o->tooltip("Make the class publicly accessible.");
o->labelsize(10);
o->when(FL_WHEN_NEVER);
}
{ Fl_Input* o = c_name_input = new Fl_Input(10, 55, 265, 25, "Name:");
+ o->tooltip("Name of class.");
o->labelsize(12);
o->textfont(4);
o->align(FL_ALIGN_TOP_LEFT);
@@ -234,6 +249,7 @@ Fl_Window* make_class_panel() {
Fl_Group::current()->resizable(o);
}
{ Fl_Input* o = c_subclass_input = new Fl_Input(10, 100, 265, 25, "Subclass of (text between : and {)");
+ o->tooltip("Name of subclass.");
o->labelsize(12);
o->textfont(4);
o->align(FL_ALIGN_TOP_LEFT);
diff --git a/fluid/function_panel.fl b/fluid/function_panel.fl
index 6f73e80c3..2470b8071 100644
--- a/fluid/function_panel.fl
+++ b/fluid/function_panel.fl
@@ -13,27 +13,27 @@ Function {make_function_panel()} {open
} {
Fl_Light_Button f_public_button {
label public
- xywh {10 10 65 25} labelsize 10 when 0
+ tooltip {Make the function or method publicly accessible.} xywh {10 10 65 25} labelsize 10 when 0
}
Fl_Light_Button f_c_button {
label {C declaration}
- xywh {80 10 90 25} labelsize 10
+ tooltip {Declare with a C interface instead of C++.} xywh {80 10 90 25} labelsize 10
}
Fl_Input f_name_input {
label {Name(args): (blank for main())}
- xywh {10 55 265 25} labelsize 12 align 5 when 0 textfont 4 resizable
+ tooltip {The name of the function or method.} xywh {10 55 265 25} labelsize 12 align 5 when 0 textfont 4 resizable
}
Fl_Input f_return_type_input {
label {Return Type: (blank to return outermost widget)}
- xywh {10 100 265 25} labelsize 12 align 5 when 0 textfont 4
+ tooltip {The return type of the function or method.} xywh {10 100 265 25} labelsize 12 align 5 when 0 textfont 4
}
Fl_Return_Button f_panel_ok {
label OK
- xywh {110 135 80 25} hotspot
+ tooltip {Apply the changes.} xywh {110 135 80 25} hotspot
}
Fl_Button f_panel_cancel {
label Cancel
- xywh {195 135 80 25} shortcut 0xff1b
+ tooltip {Cancel the changes.} xywh {195 135 80 25} shortcut 0xff1b
}
}
}
@@ -45,7 +45,7 @@ Function {make_code_panel()} {open
xywh {260 242 290 175} resizable modal visible
} {
Fl_Input code_input {
- xywh {10 10 270 120} type Multiline labelsize 12 align 0 when 0 textfont 4 resizable
+ tooltip {C/C++ code.} xywh {10 10 270 120} type Multiline labelsize 12 align 0 when 0 textfont 4 resizable
}
Fl_Return_Button code_panel_ok {
label OK
@@ -65,14 +65,14 @@ Function {make_codeblock_panel()} {open
xywh {289 462 295 130} resizable modal visible
} {
Fl_Input code_before_input {
- xywh {10 10 275 25} labelsize 12 align 5 when 0 textfont 4 resizable
+ tooltip {\#ifdef or similar conditional code block.} xywh {10 10 275 25} labelsize 12 align 5 when 0 textfont 4 resizable
}
Fl_Box {} {
label {"{...child code...}" is inserted here}
xywh {10 35 270 25} align 20
}
Fl_Input code_after_input {
- xywh {10 60 275 25} labelsize 12 align 5 when 0 textfont 4
+ tooltip {\#endif or similar conditional code block.} xywh {10 60 275 25} labelsize 12 align 5 when 0 textfont 4
}
Fl_Return_Button codeblock_panel_ok {
label OK
@@ -92,14 +92,14 @@ Function {make_declblock_panel()} {open
xywh {314 255 295 130} resizable modal visible
} {
Fl_Input decl_before_input {
- xywh {10 10 275 25} labelsize 12 align 5 when 0 textfont 4 resizable
+ tooltip {\#ifdef or similar conditional declaration block.} xywh {10 10 275 25} labelsize 12 align 5 when 0 textfont 4 resizable
}
Fl_Box {} {
label {"\\n...child code...\\n" is inserted here}
xywh {10 35 275 25} align 20
}
Fl_Input decl_after_input {
- xywh {10 60 275 25} labelsize 12 align 5 when 0 textfont 4
+ tooltip {\#endif or similar declaration code block.} xywh {10 60 275 25} labelsize 12 align 5 when 0 textfont 4
}
Fl_Return_Button declblock_panel_ok {
label OK
@@ -120,7 +120,7 @@ Function {make_decl_panel()} {open
} {
Fl_Light_Button decl_public_button {
label public
- xywh {10 10 65 25} labelsize 10 when 0
+ tooltip {Make the declaration publicly accessible.} xywh {10 10 65 25} labelsize 10 when 0
}
Fl_Input decl_input {
label {Can be any declaration, like "int x;",
@@ -128,7 +128,7 @@ an external symbol like "extern int foo();",
a \#directive like "\#include <foo.h>",
or a comment like "//foo" or "/*foo*/",
or typedef like "typedef char byte;"}
- xywh {10 40 270 25} labelsize 12 align 6 when 0 textfont 4 resizable
+ tooltip {Declaration text.} xywh {10 40 270 25} labelsize 12 align 6 when 0 textfont 4 resizable
}
Fl_Return_Button decl_panel_ok {
label OK
@@ -149,15 +149,15 @@ Function {make_class_panel()} {open
} {
Fl_Light_Button c_public_button {
label public
- xywh {10 10 65 25} labelsize 10 when 0
+ tooltip {Make the class publicly accessible.} xywh {10 10 65 25} labelsize 10 when 0
}
Fl_Input c_name_input {
label {Name:}
- xywh {10 55 265 25} labelsize 12 align 5 when 0 textfont 4 resizable
+ tooltip {Name of class.} xywh {10 55 265 25} labelsize 12 align 5 when 0 textfont 4 resizable
}
Fl_Input c_subclass_input {
label {Subclass of (text between : and \{)}
- xywh {10 100 265 25} labelsize 12 align 5 when 0 textfont 4
+ tooltip {Name of subclass.} xywh {10 100 265 25} labelsize 12 align 5 when 0 textfont 4
}
Fl_Return_Button c_panel_ok {
label OK
diff --git a/fluid/function_panel.h b/fluid/function_panel.h
index f344b6fc8..239a8b0b4 100644
--- a/fluid/function_panel.h
+++ b/fluid/function_panel.h
@@ -1,4 +1,4 @@
-// generated by Fast Light User Interface Designer (fluid) version 1.0008
+// generated by Fast Light User Interface Designer (fluid) version 1.0100
#ifndef function_panel_h
#define function_panel_h
diff --git a/fluid/widget_panel.cxx b/fluid/widget_panel.cxx
index 3b962eafd..5de0f8e95 100644
--- a/fluid/widget_panel.cxx
+++ b/fluid/widget_panel.cxx
@@ -20,30 +20,35 @@ Fl_Window* make_widget_panel() {
o->callback((Fl_Callback*)propagate_load);
o->when(FL_WHEN_NEVER);
{ Fl_Input* o = new Fl_Input(95, 40, 195, 20, "Label:");
+ o->tooltip("The label text for the widget.");
o->callback((Fl_Callback*)label_cb);
o->when(FL_WHEN_CHANGED);
}
{ Fl_Choice* o = new Fl_Choice(290, 40, 105, 20);
+ o->tooltip("The label style for the widget.");
o->box(FL_THIN_UP_BOX);
o->down_box(FL_BORDER_BOX);
o->callback((Fl_Callback*)labeltype_cb);
o->menu(labeltypemenu);
}
{ Fl_Input* o = new Fl_Input(95, 65, 195, 20, "Image:");
+ o->tooltip("The active image for the widget.");
o->callback((Fl_Callback*)image_cb);
}
{ Fl_Button* o = new Fl_Button(290, 65, 105, 20, "Browse...");
- o->tooltip("}");
+ o->tooltip("Click to choose the active image.");
o->callback((Fl_Callback*)image_browse_cb);
}
{ Fl_Input* o = new Fl_Input(95, 90, 195, 20, "Inactive:");
+ o->tooltip("The inactive image for the widget.");
o->callback((Fl_Callback*)inactive_cb);
}
{ Fl_Button* o = new Fl_Button(290, 90, 105, 20, "Browse...");
- o->tooltip("}");
+ o->tooltip("Click to choose the inactive image.");
o->callback((Fl_Callback*)inactive_browse_cb);
}
{ Fl_Value_Input* o = new Fl_Value_Input(95, 150, 60, 20, "X:");
+ o->tooltip("The X position of the widget.");
o->labelsize(10);
o->maximum(2048);
o->step(1);
@@ -51,6 +56,7 @@ Fl_Window* make_widget_panel() {
o->align(FL_ALIGN_TOP_LEFT);
}
{ Fl_Value_Input* o = new Fl_Value_Input(155, 150, 60, 20, "Y:");
+ o->tooltip("The Y position of the widget.");
o->labelsize(10);
o->maximum(2048);
o->step(1);
@@ -58,6 +64,7 @@ Fl_Window* make_widget_panel() {
o->align(FL_ALIGN_TOP_LEFT);
}
{ Fl_Value_Input* o = new Fl_Value_Input(215, 150, 60, 20, "Width:");
+ o->tooltip("The widget of the widget.");
o->labelsize(10);
o->maximum(2048);
o->step(1);
@@ -65,6 +72,7 @@ Fl_Window* make_widget_panel() {
o->align(FL_ALIGN_TOP_LEFT);
}
{ Fl_Value_Input* o = new Fl_Value_Input(275, 150, 60, 20, "Height:");
+ o->tooltip("The height of the widget.");
o->labelsize(10);
o->maximum(2048);
o->step(1);
@@ -75,41 +83,49 @@ Fl_Window* make_widget_panel() {
o->callback((Fl_Callback*)propagate_load);
o->align(FL_ALIGN_LEFT);
{ Fl_Button* o = new Fl_Button(95, 115, 40, 20, "clip");
+ o->tooltip("Clip the label to the inside of the widget.");
o->type(1);
o->labelsize(8);
o->callback((Fl_Callback*)align_cb, (void*)(FL_ALIGN_CLIP));
}
{ Fl_Button* o = new Fl_Button(135, 115, 40, 20, "wrap");
+ o->tooltip("Wrap the label text.");
o->type(1);
o->labelsize(8);
o->callback((Fl_Callback*)align_cb, (void*)(FL_ALIGN_WRAP));
}
{ Fl_Button* o = new Fl_Button(175, 115, 55, 20, "text\nimage");
+ o->tooltip("Show the label text over the image.");
o->type(1);
o->labelsize(8);
o->callback((Fl_Callback*)align_cb, (void*)(FL_ALIGN_TEXT_OVER_IMAGE));
}
{ Fl_Button* o = new Fl_Button(295, 115, 20, 20, "@-1<-");
+ o->tooltip("Left-align the label.");
o->type(1);
o->labelcolor(8);
o->callback((Fl_Callback*)align_cb, (void*)(FL_ALIGN_LEFT));
}
{ Fl_Button* o = new Fl_Button(315, 115, 20, 20, "@-1->");
+ o->tooltip("Right-align the label.");
o->type(1);
o->labelcolor(8);
o->callback((Fl_Callback*)align_cb, (void*)(FL_ALIGN_RIGHT));
}
{ Fl_Button* o = new Fl_Button(335, 115, 20, 20, "@-18");
+ o->tooltip("Top-align the label.");
o->type(1);
o->labelcolor(8);
o->callback((Fl_Callback*)align_cb, (void*)(FL_ALIGN_TOP));
}
{ Fl_Button* o = new Fl_Button(355, 115, 20, 20, "@-12");
+ o->tooltip("Bottom-align the label.");
o->type(1);
o->labelcolor(8);
o->callback((Fl_Callback*)align_cb, (void*)(FL_ALIGN_BOTTOM));
}
{ Fl_Button* o = new Fl_Button(375, 115, 20, 20, "@-3square");
+ o->tooltip("Show the label inside the widget.");
o->type(1);
o->labelcolor(8);
o->callback((Fl_Callback*)align_cb, (void*)(FL_ALIGN_INSIDE));
@@ -123,33 +139,39 @@ Fl_Window* make_widget_panel() {
o->align(FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
}
{ Fl_Value_Input* o = new Fl_Value_Input(95, 185, 60, 20, "Size:");
+ o->tooltip("The size of the slider.");
o->labelsize(10);
o->step(0.010101);
o->callback((Fl_Callback*)slider_size_cb);
o->align(FL_ALIGN_TOP_LEFT);
}
{ Fl_Value_Input* o = new Fl_Value_Input(155, 185, 60, 20, "Minimum:");
+ o->tooltip("The minimum value of the widget.");
o->labelsize(10);
o->callback((Fl_Callback*)min_cb);
o->align(FL_ALIGN_TOP_LEFT);
}
{ Fl_Value_Input* o = new Fl_Value_Input(215, 185, 60, 20, "Maximum:");
+ o->tooltip("The maximum value of the widget.");
o->labelsize(10);
o->value(1);
o->callback((Fl_Callback*)max_cb);
o->align(FL_ALIGN_TOP_LEFT);
}
{ Fl_Value_Input* o = new Fl_Value_Input(275, 185, 60, 20, "Step:");
+ o->tooltip("The resolution of the widget value.");
o->labelsize(10);
o->callback((Fl_Callback*)step_cb);
o->align(FL_ALIGN_TOP_LEFT);
}
{ Fl_Value_Input* o = new Fl_Value_Input(335, 185, 60, 20, "Value:");
+ o->tooltip("The current widget value.");
o->labelsize(10);
o->callback((Fl_Callback*)value_cb);
o->align(FL_ALIGN_TOP_LEFT);
}
{ Shortcut_Button* o = new Shortcut_Button(95, 210, 300, 20, "Shortcut:");
+ o->tooltip("The shortcut key for the widget.");
o->box(FL_DOWN_BOX);
o->color(7);
o->selection_color(7);
@@ -160,16 +182,19 @@ Fl_Window* make_widget_panel() {
o->callback((Fl_Callback*)propagate_load);
o->align(FL_ALIGN_LEFT);
{ Fl_Light_Button* o = new Fl_Light_Button(210, 235, 60, 20, "Border");
+ o->tooltip("Add a border around the window.");
o->selection_color(1);
o->labelsize(10);
o->callback((Fl_Callback*)border_cb);
}
{ Fl_Light_Button* o = new Fl_Light_Button(270, 235, 55, 20, "Modal");
+ o->tooltip("Make the window modal.");
o->selection_color(1);
o->labelsize(10);
o->callback((Fl_Callback*)modal_cb);
}
{ Fl_Light_Button* o = new Fl_Light_Button(325, 235, 70, 20, "Nonmodal");
+ o->tooltip("Make the window non-modal.");
o->selection_color(1);
o->labelsize(9);
o->callback((Fl_Callback*)non_modal_cb);
@@ -179,22 +204,26 @@ Fl_Window* make_widget_panel() {
o->align(FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
}
{ Fl_Light_Button* o = new Fl_Light_Button(95, 260, 70, 20, "Visible");
+ o->tooltip("Show the widget.");
o->selection_color(1);
o->labelsize(10);
o->callback((Fl_Callback*)visible_cb);
}
{ Fl_Light_Button* o = new Fl_Light_Button(165, 260, 70, 20, "Active");
+ o->tooltip("Activate the widget.");
o->selection_color(1);
o->labelsize(10);
o->callback((Fl_Callback*)active_cb);
}
{ Fl_Light_Button* o = new Fl_Light_Button(235, 260, 70, 20, "Resizable");
+ o->tooltip("Make the widget resizable.");
o->selection_color(1);
o->labelsize(10);
o->callback((Fl_Callback*)resizable_cb);
o->when(FL_WHEN_CHANGED);
}
{ Fl_Light_Button* o = new Fl_Light_Button(305, 260, 70, 20, "Hotspot");
+ o->tooltip("Center the window under this widget.");
o->selection_color(1);
o->labelsize(10);
o->callback((Fl_Callback*)hotspot_cb);
@@ -203,10 +232,11 @@ Fl_Window* make_widget_panel() {
o->end();
}
{ Fl_Input* o = new Fl_Input(95, 235, 115, 20, "X Class:");
+ o->tooltip("The X resource class.");
o->callback((Fl_Callback*)xclass_cb);
}
{ Fl_Input* o = new Fl_Input(95, 285, 300, 20, "Tooltip:");
- o->tooltip("}");
+ o->tooltip("The tooltip text for the widget.");
o->callback((Fl_Callback*)tooltip_cb);
}
o->end();
@@ -216,54 +246,64 @@ Fl_Window* make_widget_panel() {
o->when(FL_WHEN_NEVER);
o->hide();
{ Fl_Choice* o = new Fl_Choice(100, 40, 155, 20, "Label Font:");
+ o->tooltip("The style of the label text.");
o->box(FL_THIN_UP_BOX);
o->down_box(FL_BORDER_BOX);
o->callback((Fl_Callback*)labelfont_cb);
o->menu(fontmenu);
}
{ Fl_Value_Input* o = new Fl_Value_Input(255, 40, 50, 20);
+ o->tooltip("The size of the label text.");
o->maximum(100);
o->step(1);
o->value(14);
o->callback((Fl_Callback*)labelsize_cb);
}
{ Fl_Button* o = new Fl_Button(305, 40, 90, 20, "Label Color");
+ o->tooltip("The color of the label text.");
o->labelsize(8);
o->callback((Fl_Callback*)labelcolor_cb);
}
{ Fl_Choice* o = new Fl_Choice(100, 65, 205, 20, "Box:");
+ o->tooltip("The \"up\" box of the widget.");
o->box(FL_THIN_UP_BOX);
o->down_box(FL_BORDER_BOX);
o->callback((Fl_Callback*)box_cb);
o->menu(boxmenu);
}
{ Fl_Button* o = new Fl_Button(305, 65, 90, 20, "Color");
+ o->tooltip("The background color of the widget.");
o->labelsize(8);
o->callback((Fl_Callback*)color_cb);
}
{ Fl_Choice* o = new Fl_Choice(100, 90, 205, 20, "Down Box:");
+ o->tooltip("The \"down\" box of the widget.");
o->box(FL_THIN_UP_BOX);
o->down_box(FL_BORDER_BOX);
o->callback((Fl_Callback*)down_box_cb);
o->menu(boxmenu);
}
{ Fl_Button* o = new Fl_Button(305, 90, 90, 20, "Select Color");
+ o->tooltip("The selection color of the widget.");
o->labelsize(8);
o->callback((Fl_Callback*)color2_cb);
}
{ Fl_Choice* o = new Fl_Choice(100, 115, 155, 20, "Text Font:");
+ o->tooltip("The value text style.");
o->box(FL_DOWN_BOX);
o->down_box(FL_BORDER_BOX);
o->callback((Fl_Callback*)textfont_cb);
o->menu(fontmenu);
}
{ Fl_Value_Input* o = new Fl_Value_Input(255, 115, 50, 20);
+ o->tooltip("The value text size.");
o->maximum(100);
o->step(1);
o->value(14);
o->callback((Fl_Callback*)textsize_cb);
}
{ Fl_Button* o = new Fl_Button(305, 115, 90, 20, "Text Color");
+ o->tooltip("The value text color.");
o->labelsize(8);
o->callback((Fl_Callback*)textcolor_cb);
}
@@ -274,36 +314,44 @@ Fl_Window* make_widget_panel() {
o->when(FL_WHEN_NEVER);
o->hide();
{ Fl_Input* o = new Fl_Input(100, 65, 230, 20, "Name:");
+ o->tooltip("The name of the widget.");
o->callback((Fl_Callback*)name_cb);
}
{ Fl_Light_Button* o = new Fl_Light_Button(330, 65, 65, 20, "public");
+ o->tooltip("Make the widget publicly accessible.");
o->selection_color(1);
o->labelsize(10);
o->callback((Fl_Callback*)name_public_cb);
o->when(FL_WHEN_CHANGED);
}
{ Fl_Input* o = new Fl_Input(100, 40, 160, 20, "Class:");
+ o->tooltip("The widget subclass.");
o->textfont(4);
o->callback((Fl_Callback*)subclass_cb, (void*)(4));
}
{ Fl_Choice* o = new Fl_Choice(260, 40, 135, 20);
+ o->tooltip("The widget subtype.");
o->box(FL_THIN_UP_BOX);
o->down_box(FL_BORDER_BOX);
o->callback((Fl_Callback*)subtype_cb);
}
{ Fl_Input* o = v_input[0] = new Fl_Input(100, 90, 295, 20, "Extra Code:");
+ o->tooltip("Extra initialization code for the widget.");
o->textfont(4);
o->callback((Fl_Callback*)v_input_cb, (void*)(0));
}
{ Fl_Input* o = v_input[1] = new Fl_Input(100, 110, 295, 20);
+ o->tooltip("Extra initialization code for the widget.");
o->textfont(4);
o->callback((Fl_Callback*)v_input_cb, (void*)(1));
}
{ Fl_Input* o = v_input[2] = new Fl_Input(100, 130, 295, 20);
+ o->tooltip("Extra initialization code for the widget.");
o->textfont(4);
o->callback((Fl_Callback*)v_input_cb, (void*)(2));
}
{ Fl_Input* o = v_input[3] = new Fl_Input(100, 150, 295, 20);
+ o->tooltip("Extra initialization code for the widget.");
o->textfont(4);
o->callback((Fl_Callback*)v_input_cb, (void*)(3));
}
@@ -311,6 +359,7 @@ Fl_Window* make_widget_panel() {
o->align(FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
}
{ Fl_Input* o = new Fl_Input(100, 175, 295, 90);
+ o->tooltip("The callback function or code for the widget.");
o->type(4);
o->textfont(4);
o->callback((Fl_Callback*)callback_cb);
@@ -320,14 +369,17 @@ Fl_Window* make_widget_panel() {
o->deactivate();
}
{ Fl_Input* o = new Fl_Input(100, 270, 140, 20, "User Data:");
+ o->tooltip("The user data to pass into the callback code.");
o->textfont(4);
o->callback((Fl_Callback*)user_data_cb);
}
{ Fl_Input* o = new Fl_Input(100, 295, 140, 20, "Type:");
+ o->tooltip("The type of the user data.");
o->textfont(4);
o->callback((Fl_Callback*)user_data_type_cb);
}
{ Fl_Choice* o = new Fl_Choice(290, 270, 105, 20, "When:");
+ o->tooltip("When to call the callback function.");
o->box(FL_THIN_UP_BOX);
o->down_box(FL_BORDER_BOX);
o->callback((Fl_Callback*)when_cb);
@@ -335,6 +387,7 @@ Fl_Window* make_widget_panel() {
o->menu(whenmenu);
}
{ Fl_Light_Button* o = new Fl_Light_Button(290, 295, 105, 20, "No Change");
+ o->tooltip("Call the callback even if the value has not changed.");
o->selection_color(1);
o->labelsize(10);
o->callback((Fl_Callback*)when_button_cb);
@@ -346,6 +399,7 @@ Fl_Window* make_widget_panel() {
}
{ Fl_Group* o = new Fl_Group(10, 335, 395, 25);
{ Fl_Button* o = new Fl_Button(50, 335, 100, 25, "No &Overlay");
+ o->tooltip("Hide the widget overlay box.");
o->labelcolor(1);
o->callback((Fl_Callback*)overlay_cb);
}
diff --git a/fluid/widget_panel.fl b/fluid/widget_panel.fl
index e6c9124be..041c48829 100644
--- a/fluid/widget_panel.fl
+++ b/fluid/widget_panel.fl
@@ -22,53 +22,53 @@ Function {make_widget_panel()} {open
Fl_Input {} {
label {Label:}
callback label_cb
- xywh {95 40 195 20} when 1
+ tooltip {The label text for the widget.} xywh {95 40 195 20} when 1
}
Fl_Choice {} {
callback labeltype_cb open
- xywh {290 40 105 20} box THIN_UP_BOX down_box BORDER_BOX
+ tooltip {The label style for the widget.} xywh {290 40 105 20} box THIN_UP_BOX down_box BORDER_BOX
code0 {extern Fl_Menu_Item labeltypemenu[];}
code1 {o->menu(labeltypemenu);}
} {}
Fl_Input {} {
label {Image:}
callback image_cb
- xywh {95 65 195 20}
+ tooltip {The active image for the widget.} xywh {95 65 195 20}
}
Fl_Button {} {
label {Browse...}
callback image_browse_cb
- tooltip {\}} xywh {290 65 105 20}
+ tooltip {Click to choose the active image.} xywh {290 65 105 20}
}
Fl_Input {} {
label {Inactive:}
callback inactive_cb
- xywh {95 90 195 20}
+ tooltip {The inactive image for the widget.} xywh {95 90 195 20}
}
Fl_Button {} {
label {Browse...}
callback inactive_browse_cb
- tooltip {\}} xywh {290 90 105 20}
+ tooltip {Click to choose the inactive image.} xywh {290 90 105 20}
}
Fl_Value_Input {} {
label {X:}
callback x_cb
- xywh {95 150 60 20} labelsize 10 align 5 maximum 2048 step 1
+ tooltip {The X position of the widget.} xywh {95 150 60 20} labelsize 10 align 5 maximum 2048 step 1
}
Fl_Value_Input {} {
label {Y:}
callback y_cb
- xywh {155 150 60 20} labelsize 10 align 5 maximum 2048 step 1
+ tooltip {The Y position of the widget.} xywh {155 150 60 20} labelsize 10 align 5 maximum 2048 step 1
}
Fl_Value_Input {} {
label {Width:}
callback w_cb
- xywh {215 150 60 20} labelsize 10 align 5 maximum 2048 step 1
+ tooltip {The widget of the widget.} xywh {215 150 60 20} labelsize 10 align 5 maximum 2048 step 1
}
Fl_Value_Input {} {
label {Height:}
callback h_cb
- xywh {275 150 60 20} labelsize 10 align 5 maximum 2048 step 1
+ tooltip {The height of the widget.} xywh {275 150 60 20} labelsize 10 align 5 maximum 2048 step 1
}
Fl_Group {} {
label {Alignment:}
@@ -79,50 +79,50 @@ Function {make_widget_panel()} {open
label clip
user_data FL_ALIGN_CLIP
callback align_cb
- xywh {95 115 40 20} type Toggle labelsize 8
+ tooltip {Clip the label to the inside of the widget.} xywh {95 115 40 20} type Toggle labelsize 8
}
Fl_Button {} {
label wrap
user_data FL_ALIGN_WRAP
callback align_cb
- xywh {135 115 40 20} type Toggle labelsize 8
+ tooltip {Wrap the label text.} xywh {135 115 40 20} type Toggle labelsize 8
}
Fl_Button {} {
label {text
image}
user_data FL_ALIGN_TEXT_OVER_IMAGE
callback align_cb
- xywh {175 115 55 20} type Toggle labelsize 8
+ tooltip {Show the label text over the image.} xywh {175 115 55 20} type Toggle labelsize 8
}
Fl_Button {} {
label {@-1<-}
user_data FL_ALIGN_LEFT
callback align_cb
- xywh {295 115 20 20} type Toggle labelcolor 8
+ tooltip {Left-align the label.} xywh {295 115 20 20} type Toggle labelcolor 8
}
Fl_Button {} {
label {@-1->}
user_data FL_ALIGN_RIGHT
callback align_cb
- xywh {315 115 20 20} type Toggle labelcolor 8
+ tooltip {Right-align the label.} xywh {315 115 20 20} type Toggle labelcolor 8
}
Fl_Button {} {
label {@-18}
user_data FL_ALIGN_TOP
callback align_cb
- xywh {335 115 20 20} type Toggle labelcolor 8
+ tooltip {Top-align the label.} xywh {335 115 20 20} type Toggle labelcolor 8
}
Fl_Button {} {
label {@-12}
user_data FL_ALIGN_BOTTOM
callback align_cb
- xywh {355 115 20 20} type Toggle labelcolor 8
+ tooltip {Bottom-align the label.} xywh {355 115 20 20} type Toggle labelcolor 8
}
Fl_Button {} {
label {@-3square}
user_data FL_ALIGN_INSIDE
callback align_cb
- xywh {375 115 20 20} type Toggle labelcolor 8
+ tooltip {Show the label inside the widget.} xywh {375 115 20 20} type Toggle labelcolor 8
}
}
Fl_Box {} {
@@ -136,32 +136,32 @@ image}
Fl_Value_Input {} {
label {Size:}
callback slider_size_cb
- xywh {95 185 60 20} labelsize 10 align 5 step 0.010101
+ tooltip {The size of the slider.} xywh {95 185 60 20} labelsize 10 align 5 step 0.010101
}
Fl_Value_Input {} {
label {Minimum:}
callback min_cb
- xywh {155 185 60 20} labelsize 10 align 5
+ tooltip {The minimum value of the widget.} xywh {155 185 60 20} labelsize 10 align 5
}
Fl_Value_Input {} {
label {Maximum:}
callback max_cb
- xywh {215 185 60 20} labelsize 10 align 5 value 1
+ tooltip {The maximum value of the widget.} xywh {215 185 60 20} labelsize 10 align 5 value 1
}
Fl_Value_Input {} {
label {Step:}
callback step_cb
- xywh {275 185 60 20} labelsize 10 align 5
+ tooltip {The resolution of the widget value.} xywh {275 185 60 20} labelsize 10 align 5
}
Fl_Value_Input {} {
label {Value:}
callback value_cb
- xywh {335 185 60 20} labelsize 10 align 5
+ tooltip {The current widget value.} xywh {335 185 60 20} labelsize 10 align 5
}
Fl_Button {} {
label {Shortcut:}
callback shortcut_in_cb
- xywh {95 210 300 20} box DOWN_BOX color 7 selection_color 7 align 4
+ tooltip {The shortcut key for the widget.} xywh {95 210 300 20} box DOWN_BOX color 7 selection_color 7 align 4
code0 {\#include "Shortcut_Button.h"}
class Shortcut_Button
}
@@ -172,17 +172,17 @@ image}
Fl_Light_Button {} {
label Border
callback border_cb
- xywh {210 235 60 20} selection_color 1 labelsize 10
+ tooltip {Add a border around the window.} xywh {210 235 60 20} selection_color 1 labelsize 10
}
Fl_Light_Button {} {
label Modal
callback modal_cb
- xywh {270 235 55 20} selection_color 1 labelsize 10
+ tooltip {Make the window modal.} xywh {270 235 55 20} selection_color 1 labelsize 10
}
Fl_Light_Button {} {
label Nonmodal
callback non_modal_cb
- xywh {325 235 70 20} selection_color 1 labelsize 9 align 148
+ tooltip {Make the window non-modal.} xywh {325 235 70 20} selection_color 1 labelsize 9 align 148
}
Fl_Box {} {
label {Attributes:}
@@ -191,33 +191,33 @@ image}
Fl_Light_Button {} {
label Visible
callback visible_cb
- xywh {95 260 70 20} selection_color 1 labelsize 10
+ tooltip {Show the widget.} xywh {95 260 70 20} selection_color 1 labelsize 10
}
Fl_Light_Button {} {
label Active
callback active_cb
- xywh {165 260 70 20} selection_color 1 labelsize 10
+ tooltip {Activate the widget.} xywh {165 260 70 20} selection_color 1 labelsize 10
}
Fl_Light_Button {} {
label Resizable
callback resizable_cb
- xywh {235 260 70 20} selection_color 1 labelsize 10 when 1
+ tooltip {Make the widget resizable.} xywh {235 260 70 20} selection_color 1 labelsize 10 when 1
}
Fl_Light_Button {} {
label Hotspot
callback hotspot_cb
- xywh {305 260 70 20} selection_color 1 labelsize 10 when 1
+ tooltip {Center the window under this widget.} xywh {305 260 70 20} selection_color 1 labelsize 10 when 1
}
}
Fl_Input {} {
label {X Class:}
callback xclass_cb
- xywh {95 235 115 20}
+ tooltip {The X resource class.} xywh {95 235 115 20}
}
Fl_Input {} {
label {Tooltip:}
callback tooltip_cb
- tooltip {\}} xywh {95 285 300 20}
+ tooltip {The tooltip text for the widget.} xywh {95 285 300 20}
}
}
Fl_Group {} {
@@ -228,58 +228,58 @@ image}
Fl_Choice {} {
label {Label Font:}
callback labelfont_cb open
- xywh {100 40 155 20} box THIN_UP_BOX down_box BORDER_BOX
+ tooltip {The style of the label text.} xywh {100 40 155 20} box THIN_UP_BOX down_box BORDER_BOX
code0 {extern Fl_Menu_Item fontmenu[];}
code1 {o->menu(fontmenu);}
} {}
Fl_Value_Input {} {
callback labelsize_cb
- xywh {255 40 50 20} maximum 100 step 1 value 14
+ tooltip {The size of the label text.} xywh {255 40 50 20} maximum 100 step 1 value 14
}
Fl_Button {} {
label {Label Color}
callback labelcolor_cb
- xywh {305 40 90 20} labelsize 8
+ tooltip {The color of the label text.} xywh {305 40 90 20} labelsize 8
}
Fl_Choice {} {
label {Box:}
callback box_cb open
- xywh {100 65 205 20} box THIN_UP_BOX down_box BORDER_BOX
+ tooltip {The "up" box of the widget.} xywh {100 65 205 20} box THIN_UP_BOX down_box BORDER_BOX
code0 {extern Fl_Menu_Item boxmenu[];}
code1 {o->menu(boxmenu);}
} {}
Fl_Button {} {
label Color
callback color_cb
- xywh {305 65 90 20} labelsize 8
+ tooltip {The background color of the widget.} xywh {305 65 90 20} labelsize 8
}
Fl_Choice {} {
label {Down Box:}
callback down_box_cb open
- xywh {100 90 205 20} box THIN_UP_BOX down_box BORDER_BOX
+ tooltip {The "down" box of the widget.} xywh {100 90 205 20} box THIN_UP_BOX down_box BORDER_BOX
code0 {extern Fl_Menu_Item boxmenu[];}
code1 {o->menu(boxmenu);}
} {}
Fl_Button {} {
label {Select Color}
callback color2_cb
- xywh {305 90 90 20} labelsize 8
+ tooltip {The selection color of the widget.} xywh {305 90 90 20} labelsize 8
}
Fl_Choice {} {
label {Text Font:}
callback textfont_cb open
- xywh {100 115 155 20} box DOWN_BOX down_box BORDER_BOX
+ tooltip {The value text style.} xywh {100 115 155 20} box DOWN_BOX down_box BORDER_BOX
code0 {extern Fl_Menu_Item fontmenu[];}
code1 {o->menu(fontmenu);}
} {}
Fl_Value_Input {} {
callback textsize_cb
- xywh {255 115 50 20} maximum 100 step 1 value 14
+ tooltip {The value text size.} xywh {255 115 50 20} maximum 100 step 1 value 14
}
Fl_Button {} {
label {Text Color}
callback textcolor_cb
- xywh {305 115 90 20} labelsize 8
+ tooltip {The value text color.} xywh {305 115 90 20} labelsize 8
}
}
Fl_Group {} {
@@ -290,43 +290,43 @@ image}
Fl_Input {} {
label {Name:}
callback name_cb
- xywh {100 65 230 20}
+ tooltip {The name of the widget.} xywh {100 65 230 20}
}
Fl_Light_Button {} {
label public
callback name_public_cb
- xywh {330 65 65 20} selection_color 1 labelsize 10 when 1
+ tooltip {Make the widget publicly accessible.} xywh {330 65 65 20} selection_color 1 labelsize 10 when 1
}
Fl_Input {} {
label {Class:}
user_data 4
callback subclass_cb
- xywh {100 40 160 20} textfont 4
+ tooltip {The widget subclass.} xywh {100 40 160 20} textfont 4
}
Fl_Choice {} {
callback subtype_cb open
- xywh {260 40 135 20} box THIN_UP_BOX down_box BORDER_BOX
+ tooltip {The widget subtype.} xywh {260 40 135 20} box THIN_UP_BOX down_box BORDER_BOX
} {}
Fl_Input {v_input[0]} {
label {Extra Code:}
user_data 0
callback v_input_cb
- xywh {100 90 295 20} textfont 4
+ tooltip {Extra initialization code for the widget.} xywh {100 90 295 20} textfont 4
}
Fl_Input {v_input[1]} {
user_data 1
callback v_input_cb
- xywh {100 110 295 20} textfont 4
+ tooltip {Extra initialization code for the widget.} xywh {100 110 295 20} textfont 4
}
Fl_Input {v_input[2]} {
user_data 2
callback v_input_cb
- xywh {100 130 295 20} textfont 4
+ tooltip {Extra initialization code for the widget.} xywh {100 130 295 20} textfont 4
}
Fl_Input {v_input[3]} {
user_data 3
callback v_input_cb
- xywh {100 150 295 20} textfont 4
+ tooltip {Extra initialization code for the widget.} xywh {100 150 295 20} textfont 4
}
Fl_Box {} {
label {Callback:}
@@ -334,7 +334,7 @@ image}
}
Fl_Input {} {
callback callback_cb
- xywh {100 175 295 90} type Multiline textfont 4
+ tooltip {The callback function or code for the widget.} xywh {100 175 295 90} type Multiline textfont 4
}
Fl_Box {} {
label label
@@ -343,24 +343,24 @@ image}
Fl_Input {} {
label {User Data:}
callback user_data_cb
- xywh {100 270 140 20} textfont 4
+ tooltip {The user data to pass into the callback code.} xywh {100 270 140 20} textfont 4
}
Fl_Input {} {
label {Type:}
callback user_data_type_cb
- xywh {100 295 140 20} textfont 4
+ tooltip {The type of the user data.} xywh {100 295 140 20} textfont 4
}
Fl_Choice {} {
label {When:}
callback when_cb open
- xywh {290 270 105 20} box THIN_UP_BOX down_box BORDER_BOX when 1
+ tooltip {When to call the callback function.} xywh {290 270 105 20} box THIN_UP_BOX down_box BORDER_BOX when 1
code0 {extern Fl_Menu_Item whenmenu[];}
code1 {o->menu(whenmenu);}
} {}
Fl_Light_Button {} {
label {No Change}
callback when_button_cb
- xywh {290 295 105 20} selection_color 1 labelsize 10 when 0
+ tooltip {Call the callback even if the value has not changed.} xywh {290 295 105 20} selection_color 1 labelsize 10 when 0
}
}
}
@@ -370,7 +370,7 @@ image}
Fl_Button {} {
label {No &Overlay}
callback overlay_cb
- xywh {50 335 100 25} labelcolor 1
+ tooltip {Hide the widget overlay box.} xywh {50 335 100 25} labelcolor 1
}
Fl_Button {} {
label Revert
@@ -379,12 +379,12 @@ image}
}
Fl_Button {} {
label Cancel
- callback cancel_cb
+ callback cancel_cb selected
xywh {325 335 80 25}
}
Fl_Return_Button {} {
label OK
- callback ok_cb selected
+ callback ok_cb
xywh {240 335 80 25}
}
}