diff options
author | Jed Barber <jjbarber@y7mail.com> | 2016-07-16 15:59:18 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2016-07-16 15:59:18 +1000 |
commit | 0b019001293227083dba0c953e0142c4d0c66884 (patch) | |
tree | c8148d408cd6bfd5b3e2f7bf5ad61b325d15e3a2 /src/editors.adb | |
parent | b72f41264d96f6cd9333badad82f978ecdc48fc2 (diff) |
Starting to construct main program, but now I have to redo all the FLTK Initializers. Great.
Diffstat (limited to 'src/editors.adb')
-rw-r--r-- | src/editors.adb | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/editors.adb b/src/editors.adb new file mode 100644 index 0000000..1ce7a92 --- /dev/null +++ b/src/editors.adb @@ -0,0 +1,58 @@ + + +with FLTK.Widgets.Groups.Windows.Double; + + +package body Editors is + + + function Create + (X, Y, W, H : in Integer; + Label_Text : in String) + return Editor_Window is + begin + return FLTK.Widgets.Groups.Windows.Double.Create (0, 0, 640, 400, "AdaPad"); + --return This : Editor_Window do + --This.Replace_Dialog := FLTK.Widgets.Groups.Windows.Create (300, 105, "Replace"); + --This.Replace_Find := Create (70, 10, 200, 25, "Find:"); + --This.Replace_With := Create (70, 40, 200, 25, "Replace:"); + --This.Replace_All := Create (10, 70, 90, 25, "Replace All"); + --This.Replace_Next := Create (105, 70, 120, 25, "Replace Next"); + --This.Replace_Cancel := Create (230, 70, 60, 25, "Cancel"); + --This.The_Editor := Create (0, 30, 640, 370, Label_Text); + --end return; + end Create; + + + + + function Create + (W, H : in Integer) + return Editor_Window is + begin + return Create (0, 0, W, H, "AdaPad"); + end Create; + + + + + function Get_Buffer + (This : in Editor_Window) + return Text_Buffer_Cursor is + begin + return This.The_Editor.Get_Buffer; + end Get_Buffer; + + + + + procedure Set_Buffer + (This : in out Editor_Window; + Buff : in out Text_Buffer) is + begin + This.The_Editor.Set_Buffer (Buff); + end Set_Buffer; + + +end Editors; + |