summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES6
-rw-r--r--FL/Fl_Group.H7
-rw-r--r--src/Fl_Group.cxx17
-rw-r--r--src/Fl_Text_Buffer.cxx5
4 files changed, 24 insertions, 11 deletions
diff --git a/CHANGES b/CHANGES
index da2785b90..09b051836 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,11 @@
CHANGES IN FLTK 1.1.2
+ - Added a "draw_children()" method to Fl_Group to make
+ subclassing Fl_Group with a custom draw() function
+ easier.
+ - Fl_Text_Editor now supports basic undo functionality.
+ - FLUID now uses Fl_Text_Editor widgets for all
+ multi-line code fields.
- Added new widget bin and icons to FLUID.
- FLUID would try running multiple commands in parallel,
even though it wasn't capable of handling it.
diff --git a/FL/Fl_Group.H b/FL/Fl_Group.H
index 884dc3f6c..2fdf839ef 100644
--- a/FL/Fl_Group.H
+++ b/FL/Fl_Group.H
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Group.H,v 1.6.2.4.2.6 2002/08/14 16:19:48 easysw Exp $"
+// "$Id: Fl_Group.H,v 1.6.2.4.2.7 2002/11/08 15:22:08 easysw Exp $"
//
// Group header file for the Fast Light Tool Kit (FLTK).
//
@@ -45,8 +45,9 @@ protected:
void draw();
void draw_child(Fl_Widget&) const;
- void update_child(Fl_Widget&) const;
+ void draw_children();
void draw_outside_label(const Fl_Widget&) const ;
+ void update_child(Fl_Widget&) const;
short* sizes();
public:
@@ -96,5 +97,5 @@ public:
#endif
//
-// End of "$Id: Fl_Group.H,v 1.6.2.4.2.6 2002/08/14 16:19:48 easysw Exp $".
+// End of "$Id: Fl_Group.H,v 1.6.2.4.2.7 2002/11/08 15:22:08 easysw Exp $".
//
diff --git a/src/Fl_Group.cxx b/src/Fl_Group.cxx
index a1606fc32..17ab21b52 100644
--- a/src/Fl_Group.cxx
+++ b/src/Fl_Group.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Group.cxx,v 1.8.2.8.2.18 2002/08/09 01:09:48 easysw Exp $"
+// "$Id: Fl_Group.cxx,v 1.8.2.8.2.19 2002/11/08 15:22:11 easysw Exp $"
//
// Group widget for the Fast Light Tool Kit (FLTK).
//
@@ -519,11 +519,9 @@ void Fl_Group::resize(int X, int Y, int W, int H) {
Fl_Widget::resize(X,Y,W,H);
}
-void Fl_Group::draw() {
+void Fl_Group::draw_children() {
Fl_Widget*const* a = array();
if (damage() & ~FL_DAMAGE_CHILD) { // redraw the entire thing:
- draw_box();
- draw_label();
for (int i=children_; i--;) {
Fl_Widget& o = **a++;
draw_child(o);
@@ -534,6 +532,15 @@ void Fl_Group::draw() {
}
}
+void Fl_Group::draw() {
+ Fl_Widget*const* a = array();
+ if (damage() & ~FL_DAMAGE_CHILD) { // redraw the entire thing:
+ draw_box();
+ draw_label();
+ }
+ draw_children();
+}
+
// Draw a child only if it needs it:
void Fl_Group::update_child(Fl_Widget& widget) const {
if (widget.damage() && widget.visible() && widget.type() < FL_WINDOW &&
@@ -587,5 +594,5 @@ void Fl_Group::draw_outside_label(const Fl_Widget& widget) const {
}
//
-// End of "$Id: Fl_Group.cxx,v 1.8.2.8.2.18 2002/08/09 01:09:48 easysw Exp $".
+// End of "$Id: Fl_Group.cxx,v 1.8.2.8.2.19 2002/11/08 15:22:11 easysw Exp $".
//
diff --git a/src/Fl_Text_Buffer.cxx b/src/Fl_Text_Buffer.cxx
index eb8c3b235..30fb4a429 100644
--- a/src/Fl_Text_Buffer.cxx
+++ b/src/Fl_Text_Buffer.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Text_Buffer.cxx,v 1.9.2.13 2002/11/05 19:53:50 matthiaswm Exp $"
+// "$Id: Fl_Text_Buffer.cxx,v 1.9.2.14 2002/11/08 15:22:15 easysw Exp $"
//
// Copyright 2001-2002 by Bill Spitzak and others.
// Original code Copyright Mark Edel. Permission to distribute under
@@ -351,7 +351,6 @@ int Fl_Text_Buffer::undo(int *cursorPos) {
undobuffersize(ilen+1);
undobuffer[ilen] = 0;
char *tmp = strdup(undobuffer);
- int at = undoat;
replace(b, undoat, tmp);
if (cursorPos) *cursorPos = mCursorPosHint;
free(tmp);
@@ -2494,5 +2493,5 @@ Fl_Text_Buffer::outputfile(const char *file, int start, int end, int buflen) {
//
-// End of "$Id: Fl_Text_Buffer.cxx,v 1.9.2.13 2002/11/05 19:53:50 matthiaswm Exp $".
+// End of "$Id: Fl_Text_Buffer.cxx,v 1.9.2.14 2002/11/08 15:22:15 easysw Exp $".
//