summaryrefslogtreecommitdiff
path: root/fluid/function_panel.fl
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-03-23 03:13:31 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-03-23 03:13:31 +0000
commit325dc85b2c756d13b329dba4541fcb35feabdda9 (patch)
tree839c3947afa9d2cc2f53c5fa9d1846dd3f0a19e5 /fluid/function_panel.fl
parentf0c00448b01eecd86d438f46ede20e8ab100a3f5 (diff)
Fix syntax highlighting bug in the editor demo, and port changes to the
CodeEditor widget in FLUID. Use the CodeEditor widget for the other code windows. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4163 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/function_panel.fl')
-rw-r--r--fluid/function_panel.fl23
1 files changed, 11 insertions, 12 deletions
diff --git a/fluid/function_panel.fl b/fluid/function_panel.fl
index 900eefd13..ae0275934 100644
--- a/fluid/function_panel.fl
+++ b/fluid/function_panel.fl
@@ -83,10 +83,10 @@ Function {make_code_panel()} {open
xywh {527 128 545 175} type Single labelsize 11 hide resizable modal
} {
Fl_Text_Editor code_input {
- xywh {10 12 525 123} box DOWN_BOX labelsize 11 textsize 11 resizable
- code0 {o->buffer(new Fl_Text_Buffer);}
- code1 {o->textfont(FL_COURIER);}
- code2 {o->when(FL_WHEN_ENTER_KEY_CHANGED|FL_WHEN_RELEASE);}
+ xywh {10 12 525 123} box DOWN_BOX labelsize 11 textfont 4 textsize 11 resizable
+ code0 {o->when(FL_WHEN_ENTER_KEY_CHANGED|FL_WHEN_RELEASE);}
+ code1 {\#include "CodeEditor.h"}
+ class CodeEditor
}
Fl_Group {} {open
xywh {12 145 523 20} labelsize 11
@@ -218,11 +218,10 @@ Function {make_comment_panel()} {open
label {Comment Properties}
xywh {328 152 545 285} type Single labelsize 11 hide resizable modal
} {
- Fl_Text_Editor comment_input {
- xywh {95 10 438 241} box DOWN_BOX labelsize 11 textsize 11 resizable
- code0 {o->buffer(new Fl_Text_Buffer);}
- code1 {o->textfont(FL_COURIER);}
- code2 {o->when(FL_WHEN_ENTER_KEY_CHANGED|FL_WHEN_RELEASE);}
+ Fl_Text_Editor comment_input {selected
+ xywh {95 10 438 241} box DOWN_BOX labelsize 11 textfont 4 textsize 11 resizable
+ code0 {o->when(FL_WHEN_ENTER_KEY_CHANGED|FL_WHEN_RELEASE);}
+ class CodeEditor
}
Fl_Group {} {open
xywh {368 255 167 25} labelsize 11
@@ -283,8 +282,8 @@ Function {make_widgetbin()} {open
} {
Fl_Window widgetbin_panel {
label {Widget Bin} open
- xywh {385 53 485 100} type Single
- code0 {o->size(o->w(),80);} non_modal visible
+ xywh {385 53 485 100} type Single hide
+ code0 {o->size(o->w(),80);} non_modal
} {
Fl_Group {} {open
xywh {3 3 74 74} box THIN_DOWN_BOX
@@ -551,7 +550,7 @@ Function {make_widgetbin()} {open
}
Fl_Button {} {
user_data {"Fl_Input_Choice"}
- callback type_make_cb selected
+ callback type_make_cb
tooltip {Input Choice} xywh {384 4 24 24} box THIN_UP_BOX
code0 {o->image(pixmap[15]);}
}