summaryrefslogtreecommitdiff
path: root/FL/Fl_Text_Editor.H
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2001-08-06 23:51:39 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2001-08-06 23:51:39 +0000
commit9ab0bb195e8f79568c2a52fa4ebd287b1686ccaa (patch)
tree16b50763c44ee92024edb01f20cbe60041f98fcd /FL/Fl_Text_Editor.H
parent45010ee2fe988e00930e43713802c870c2bdecf2 (diff)
WIN32 updates to make the DLL project work again...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1563 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Text_Editor.H')
-rw-r--r--FL/Fl_Text_Editor.H68
1 files changed, 34 insertions, 34 deletions
diff --git a/FL/Fl_Text_Editor.H b/FL/Fl_Text_Editor.H
index 9a6533949..6ad00d7bd 100644
--- a/FL/Fl_Text_Editor.H
+++ b/FL/Fl_Text_Editor.H
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Text_Editor.H,v 1.1.2.1 2001/08/04 12:21:33 easysw Exp $"
+// "$Id: Fl_Text_Editor.H,v 1.1.2.2 2001/08/06 23:51:39 easysw Exp $"
//
// Header file for Fl_Text_Editor class.
//
@@ -33,7 +33,7 @@
// key will match in any state
#define FL_TEXT_EDITOR_ANY_STATE (-1L)
-class FL_EXPORT Fl_Text_Editor : public Fl_Text_Display {
+class Fl_Text_Editor : public Fl_Text_Display {
public:
typedef int (*Key_Func)(int key, Fl_Text_Editor* editor);
@@ -44,62 +44,62 @@ class FL_EXPORT Fl_Text_Editor : public Fl_Text_Display {
Key_Binding* next;
};
- Fl_Text_Editor(int X, int Y, int W, int H, const char* l = 0);
+ FL_EXPORT Fl_Text_Editor(int X, int Y, int W, int H, const char* l = 0);
~Fl_Text_Editor() { remove_all_key_bindings(); }
- virtual int handle(int e);
+ FL_EXPORT virtual int handle(int e);
void insert_mode(int b) { insert_mode_ = b; }
int insert_mode() { return insert_mode_; }
- void add_key_binding(int key, int state, Key_Func f, Key_Binding** list);
+ FL_EXPORT void add_key_binding(int key, int state, Key_Func f, Key_Binding** list);
void add_key_binding(int key, int state, Key_Func f)
{ add_key_binding(key, state, f, &key_bindings); }
- void remove_key_binding(int key, int state, Key_Binding** list);
+ FL_EXPORT void remove_key_binding(int key, int state, Key_Binding** list);
void remove_key_binding(int key, int state)
{ remove_key_binding(key, state, &key_bindings); }
- void remove_all_key_bindings(Key_Binding** list);
+ FL_EXPORT void remove_all_key_bindings(Key_Binding** list);
void remove_all_key_bindings() { remove_all_key_bindings(&key_bindings); }
- void add_default_key_bindings(Key_Binding** list);
- Key_Func bound_key_function(int key, int state, Key_Binding* list);
+ FL_EXPORT void add_default_key_bindings(Key_Binding** list);
+ FL_EXPORT Key_Func bound_key_function(int key, int state, Key_Binding* list);
Key_Func bound_key_function(int key, int state)
{ return bound_key_function(key, state, key_bindings); }
void default_key_function(Key_Func f) { default_key_function_ = f; }
// functions for the built in default bindings
- static int kf_default(int c, Fl_Text_Editor* e);
- static int kf_ignore(int c, Fl_Text_Editor* e);
- static int kf_backspace(int c, Fl_Text_Editor* e);
- static int kf_enter(int c, Fl_Text_Editor* e);
- static int kf_move(int c, Fl_Text_Editor* e);
- static int kf_shift_move(int c, Fl_Text_Editor* e);
- static int kf_ctrl_move(int c, Fl_Text_Editor* e);
- static int kf_c_s_move(int c, Fl_Text_Editor* e);
- static int kf_home(int, Fl_Text_Editor* e);
- static int kf_end(int c, Fl_Text_Editor* e);
- static int kf_left(int c, Fl_Text_Editor* e);
- static int kf_up(int c, Fl_Text_Editor* e);
- static int kf_right(int c, Fl_Text_Editor* e);
- static int kf_down(int c, Fl_Text_Editor* e);
- static int kf_page_up(int c, Fl_Text_Editor* e);
- static int kf_page_down(int c, Fl_Text_Editor* e);
- static int kf_insert(int c, Fl_Text_Editor* e);
- static int kf_delete(int c, Fl_Text_Editor* e);
- static int kf_copy(int c, Fl_Text_Editor* e);
- static int kf_cut(int c, Fl_Text_Editor* e);
- static int kf_paste(int c, Fl_Text_Editor* e);
- static int kf_select_all(int c, Fl_Text_Editor* e);
+ FL_EXPORT static int kf_default(int c, Fl_Text_Editor* e);
+ FL_EXPORT static int kf_ignore(int c, Fl_Text_Editor* e);
+ FL_EXPORT static int kf_backspace(int c, Fl_Text_Editor* e);
+ FL_EXPORT static int kf_enter(int c, Fl_Text_Editor* e);
+ FL_EXPORT static int kf_move(int c, Fl_Text_Editor* e);
+ FL_EXPORT static int kf_shift_move(int c, Fl_Text_Editor* e);
+ FL_EXPORT static int kf_ctrl_move(int c, Fl_Text_Editor* e);
+ FL_EXPORT static int kf_c_s_move(int c, Fl_Text_Editor* e);
+ FL_EXPORT static int kf_home(int, Fl_Text_Editor* e);
+ FL_EXPORT static int kf_end(int c, Fl_Text_Editor* e);
+ FL_EXPORT static int kf_left(int c, Fl_Text_Editor* e);
+ FL_EXPORT static int kf_up(int c, Fl_Text_Editor* e);
+ FL_EXPORT static int kf_right(int c, Fl_Text_Editor* e);
+ FL_EXPORT static int kf_down(int c, Fl_Text_Editor* e);
+ FL_EXPORT static int kf_page_up(int c, Fl_Text_Editor* e);
+ FL_EXPORT static int kf_page_down(int c, Fl_Text_Editor* e);
+ FL_EXPORT static int kf_insert(int c, Fl_Text_Editor* e);
+ FL_EXPORT static int kf_delete(int c, Fl_Text_Editor* e);
+ FL_EXPORT static int kf_copy(int c, Fl_Text_Editor* e);
+ FL_EXPORT static int kf_cut(int c, Fl_Text_Editor* e);
+ FL_EXPORT static int kf_paste(int c, Fl_Text_Editor* e);
+ FL_EXPORT static int kf_select_all(int c, Fl_Text_Editor* e);
protected:
- int handle_key();
+ FL_EXPORT int handle_key();
int insert_mode_;
Key_Binding* key_bindings;
- static Key_Binding* global_key_bindings;
+ FL_EXPORT static Key_Binding* global_key_bindings;
Key_Func default_key_function_;
};
#endif
//
-// End of "$Id: Fl_Text_Editor.H,v 1.1.2.1 2001/08/04 12:21:33 easysw Exp $".
+// End of "$Id: Fl_Text_Editor.H,v 1.1.2.2 2001/08/06 23:51:39 easysw Exp $".
//