summaryrefslogtreecommitdiff
path: root/src/PSEditWidget.H
diff options
context:
space:
mode:
authorJohannes Hofmann <johannes.hofmann@gmx.de>2005-06-17 16:20:42 +0000
committerJohannes Hofmann <johannes.hofmann@gmx.de>2005-06-17 16:20:42 +0000
commit64a96164b0a793c8f6dd9f204018ebb54d0e025e (patch)
treed22221207ffa74d1659df4103a505b534d0c2f15 /src/PSEditWidget.H
parent23a117d4bed517b0cba4539355706f5221fe9a65 (diff)
initial color support
initial color support
Diffstat (limited to 'src/PSEditWidget.H')
-rw-r--r--src/PSEditWidget.H15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/PSEditWidget.H b/src/PSEditWidget.H
index 689b938..f7cb3f5 100644
--- a/src/PSEditWidget.H
+++ b/src/PSEditWidget.H
@@ -1,5 +1,5 @@
//
-// "$Id: PSEditWidget.H,v 1.16 2005/06/05 19:57:57 hofmann Exp $"
+// "$Id: PSEditWidget.H,v 1.17 2005/06/17 18:20:42 hofmann Exp $"
//
// X11 header file for the Fast Light Tool Kit (FLTK).
//
@@ -27,16 +27,22 @@
#include "GsWidget.H"
#include "PSEditModel.H"
+typedef void (PSEditCallback)();
+
class PSText;
class PSEditWidget : public GsWidget {
private:
int cur_size;
+ PSEditColor cur_text_color;
+
int show_tags;
int zoom_percent;
+ PSEditCallback *property_changed_cb;
+
protected:
PSEditModel *model;
@@ -75,6 +81,10 @@ public:
int get_size();
+ void set_color(const PSEditColor *c);
+
+ void get_color(PSEditColor *c);
+
int get_max_pages();
char *get_tag();
@@ -95,6 +105,9 @@ public:
int zoom(int p);
+ void property_changed_callback(PSEditCallback *cb) {
+ property_changed_cb = cb;};
+
private:
int bb_x(PSEditText *t);