FLUID wasn't tracking all changes on the widget panel, so undo and save stuff

didn't work if you just changed colors, etc.

Use blue selection color for tabs.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4296 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet
2005-04-21 19:03:46 +00:00
parent 668ef918e8
commit 8a275b2985
5 changed files with 264 additions and 107 deletions
+251 -94
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -68,7 +68,7 @@ Fl_Double_Window* make_project_window() {
o->callback((Fl_Callback*)cb_Close); o->callback((Fl_Callback*)cb_Close);
} }
{ Fl_Tabs* o = new Fl_Tabs(10, 10, 325, 138); { Fl_Tabs* o = new Fl_Tabs(10, 10, 325, 138);
o->selection_color(FL_INACTIVE_COLOR); o->selection_color((Fl_Color)4);
o->labelsize(11); o->labelsize(11);
{ Fl_Group* o = new Fl_Group(10, 30, 325, 116, "Output"); { Fl_Group* o = new Fl_Group(10, 30, 325, 116, "Output");
o->labelsize(11); o->labelsize(11);
+5 -5
View File
@@ -37,24 +37,24 @@ decl {\#include <FL/Fl_Text_Buffer.H>} {public
decl {\#include <FL/Fl_Text_Display.H>} {public decl {\#include <FL/Fl_Text_Display.H>} {public
} }
decl {extern void load_history();} {selected public decl {extern void load_history();} {public
} }
Function {make_project_window()} {open Function {make_project_window()} {open
} { } {
Fl_Window project_window { Fl_Window project_window {
label {Project Settings} label {Project Settings}
xywh {312 395 345 185} type Double hide xywh {312 395 345 185} type Double
code0 {\#include <FL/Fl_Preferences.H>} code0 {\#include <FL/Fl_Preferences.H>}
code1 {\#include <FL/Fl_Tooltip.H>} modal code1 {\#include <FL/Fl_Tooltip.H>} modal visible
} { } {
Fl_Button {} { Fl_Button {} {
label Close label Close
callback {project_window->hide();} callback {project_window->hide();}
tooltip {Close this dialog.} xywh {293 156 42 20} labelsize 11 tooltip {Close this dialog.} xywh {293 156 42 20} labelsize 11
} }
Fl_Tabs {} {open Fl_Tabs {} {open selected
xywh {10 10 325 138} selection_color 8 labelsize 11 xywh {10 10 325 138} selection_color 4 labelsize 11
} { } {
Fl_Group {} { Fl_Group {} {
label Output open label Output open
+2 -2
View File
@@ -50,7 +50,7 @@ Fl_Double_Window* make_widget_panel() {
o->labelsize(11); o->labelsize(11);
w->hotspot(o); w->hotspot(o);
{ Fl_Tabs* o = new Fl_Tabs(3, 5, 397, 310); { Fl_Tabs* o = new Fl_Tabs(3, 5, 397, 310);
o->selection_color(FL_INACTIVE_COLOR); o->selection_color((Fl_Color)4);
o->labelsize(11); o->labelsize(11);
o->callback((Fl_Callback*)cb_); o->callback((Fl_Callback*)cb_);
o->when(FL_WHEN_NEVER); o->when(FL_WHEN_NEVER);
@@ -653,7 +653,7 @@ Fl_Double_Window* make_widget_panel() {
o->labelsize(11); o->labelsize(11);
Fl_Group::current()->resizable(o); Fl_Group::current()->resizable(o);
} }
{ Fl_Button* o = new Fl_Button(250, 321, 80, 19, "No &Overlay"); { Fl_Button* o = new Fl_Button(231, 321, 99, 19, "Hide &Overlays");
o->tooltip("Hide the widget overlay box."); o->tooltip("Hide the widget overlay box.");
o->labelsize(11); o->labelsize(11);
o->labelcolor((Fl_Color)1); o->labelcolor((Fl_Color)1);
+5 -5
View File
@@ -38,7 +38,7 @@ Function {make_widget_panel()} {open
} { } {
Fl_Tabs {} { Fl_Tabs {} {
callback {propagate_load((Fl_Group *)o,v);} open callback {propagate_load((Fl_Group *)o,v);} open
xywh {3 5 397 310} selection_color 8 labelsize 11 when 0 resizable xywh {3 5 397 310} selection_color 4 labelsize 11 when 0 resizable
} { } {
Fl_Group {} { Fl_Group {} {
label GUI label GUI
@@ -437,7 +437,7 @@ Function {make_widget_panel()} {open
} }
Fl_Text_Editor {} { Fl_Text_Editor {} {
label {Callback:} label {Callback:}
callback callback_cb selected callback callback_cb
tooltip {The callback function or code for the widget.} xywh {100 169 295 91} box DOWN_BOX labelfont 1 labelsize 11 align 4 textfont 4 textsize 11 tooltip {The callback function or code for the widget.} xywh {100 169 295 91} box DOWN_BOX labelfont 1 labelsize 11 align 4 textfont 4 textsize 11
code0 {\#include "CodeEditor.h"} code0 {\#include "CodeEditor.h"}
class CodeEditor class CodeEditor
@@ -488,9 +488,9 @@ Function {make_widget_panel()} {open
xywh {8 330 20 0} labelsize 11 resizable xywh {8 330 20 0} labelsize 11 resizable
} }
Fl_Button {} { Fl_Button {} {
label {No &Overlay} label {Hide &Overlays}
callback overlay_cb callback overlay_cb selected
tooltip {Hide the widget overlay box.} xywh {250 321 80 19} labelsize 11 labelcolor 1 tooltip {Hide the widget overlay box.} xywh {231 321 99 19} labelsize 11 labelcolor 1
} }
Fl_Button {} { Fl_Button {} {
label Revert label Revert