blob: 9dde658b70088678727621925a83bb9b8b985cb4 (
plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
with FLTK.Widgets.Groups.Windows.Double;
use FLTK.Widgets.Groups.Windows.Double;
with FLTK.Widgets.Groups.Text_Displays.Text_Editors;
use FLTK.Widgets.Groups.Text_Displays.Text_Editors;
with FLTK.Text_Buffers;
use FLTK.Text_Buffers;
package Editors is
type Editor_Window is new Double_Window with private;
function Create
(X, Y, W, H : in Integer;
Label_Text : in String)
return Editor_Window;
function Create
(W, H : in Integer)
return Editor_Window;
function Get_Buffer
(This : in Editor_Window)
return Text_Buffer_Cursor;
procedure Set_Buffer
(This : in out Editor_Window;
Buff : in out Text_Buffer);
private
type Editor_Window is new Double_Window with
record
-- Replace_Dialog : Window;
-- Replace_Find : Input;
-- Replace_With : Input;
-- Replace_All : Button;
-- Replace_Next : Enter_Button;
-- Replace_Cancel : Button;
The_Editor : Text_Editor := Text_Editor'(Create (0, 30, 640, 370, "AdaPad"));
end record;
end Editors;
|