-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheditor.hpp
30 lines (25 loc) · 813 Bytes
/
editor.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef EDITOR_HPP_INCLUDED
#define EDITOR_HPP_INCLUDED
#include <FL/Fl.H>
#include <FL/Fl_Text_Editor.H>
#include <FL/Fl_Text_Buffer.H>
#include <FL/Fl_Text_Display.H>
enum {
EDITOR_CHANGE_DELETE,
EDITOR_CHANGE_INSERT
};
class EditorChange {
int type;
int pos;
const char * text;
};
Fl_Text_Editor * editor_current(void);
void editor_undo(Fl_Widget * widget, void * data);
void editor_redo(Fl_Widget * widget, void * data);
void editor_copy(Fl_Widget * widget, void * data);
void editor_paste(Fl_Widget * widget, void * data);
void editor_cut(Fl_Widget * widget, void * data);
void editor_replace_next_callback(Fl_Widget * widget, void * data);
void editor_replace_all_callback(Fl_Widget * widget, void * data);
void editor_find_callback(Fl_Widget * widget, void * data);
#endif // EDITOR_HPP_INCLUDED