mirror of
https://github.com/moparisthebest/Simba
synced 2025-02-07 02:30:19 -05:00
Fixed a lil shortcuts bug, added exit to File menu, added Exit Icon, added Help menu, added About form.
Changed the exported mouse functions to use Integers & consts, rather than the current Enum (because PascalScript is worthless when it comes to Enums). git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@229 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
parent
8f220c8796
commit
1f1cdda543
BIN
Images/exit.png
Normal file
BIN
Images/exit.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 693 B |
@ -1,5 +1,5 @@
|
|||||||
pause,stop: From Lazarus (http://lazarus.freepascal.org)
|
pause,stop: From Lazarus (http://lazarus.freepascal.org)
|
||||||
cut,new,open,paste,redo,run,save,undo: Mark James http://www.famfamfam.com/lab/icons/silk/
|
exit,cut,new,open,paste,redo,run,save,undo: Mark James http://www.famfamfam.com/lab/icons/silk/
|
||||||
closetab,closetabs,addtab,eraser,terminate: Yusuke Kamiyamane http://www.pinvoke.com/
|
closetab,closetabs,addtab,eraser,terminate: Yusuke Kamiyamane http://www.pinvoke.com/
|
||||||
pickcolor: From the Crystal Clear Project (http://www.everaldo.com/crystal/) licensed under LGPL
|
pickcolor: From the Crystal Clear Project (http://www.everaldo.com/crystal/) licensed under LGPL
|
||||||
crosshair: http://led24.de/iconset/ or http://led24.de/ would be appreciated. Follow us on twitter http://twitter.com/gasyoun or email leds24@gmail.com 512 icons 20/05/2009
|
crosshair: http://led24.de/iconset/ or http://led24.de/ would be appreciated. Follow us on twitter http://twitter.com/gasyoun or email leds24@gmail.com 512 icons 20/05/2009
|
||||||
|
21
Projects/SAMufasaGUI/about.lfm
Normal file
21
Projects/SAMufasaGUI/about.lfm
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
object AboutForm: TAboutForm
|
||||||
|
Left = 622
|
||||||
|
Height = 300
|
||||||
|
Top = 271
|
||||||
|
Width = 400
|
||||||
|
Caption = 'AboutForm'
|
||||||
|
ClientHeight = 300
|
||||||
|
ClientWidth = 400
|
||||||
|
LCLVersion = '0.9.29'
|
||||||
|
object Memo1: TMemo
|
||||||
|
Left = 0
|
||||||
|
Height = 300
|
||||||
|
Top = 0
|
||||||
|
Width = 400
|
||||||
|
Align = alClient
|
||||||
|
Lines.Strings = (
|
||||||
|
'Mufasa is, and always will be, sick.'
|
||||||
|
)
|
||||||
|
TabOrder = 0
|
||||||
|
end
|
||||||
|
end
|
10
Projects/SAMufasaGUI/about.lrs
Normal file
10
Projects/SAMufasaGUI/about.lrs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{ This is an automatically generated lazarus resource file }
|
||||||
|
|
||||||
|
LazarusResources.Add('TAboutForm','FORMDATA',[
|
||||||
|
'TPF0'#10'TAboutForm'#9'AboutForm'#4'Left'#3'n'#2#6'Height'#3','#1#3'Top'#3#15
|
||||||
|
+#1#5'Width'#3#144#1#7'Caption'#6#9'AboutForm'#12'ClientHeight'#3','#1#11'Cli'
|
||||||
|
+'entWidth'#3#144#1#10'LCLVersion'#6#6'0.9.29'#0#5'TMemo'#5'Memo1'#4'Left'#2#0
|
||||||
|
+#6'Height'#3','#1#3'Top'#2#0#5'Width'#3#144#1#5'Align'#7#8'alClient'#13'Line'
|
||||||
|
+'s.Strings'#1#6'$Mufasa is, and always will be, sick.'#0#8'TabOrder'#2#0#0#0
|
||||||
|
+#0
|
||||||
|
]);
|
32
Projects/SAMufasaGUI/about.pas
Normal file
32
Projects/SAMufasaGUI/about.pas
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
unit about;
|
||||||
|
|
||||||
|
{$mode objfpc}{$H+}
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
uses
|
||||||
|
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
|
||||||
|
StdCtrls;
|
||||||
|
|
||||||
|
type
|
||||||
|
|
||||||
|
{ TAboutForm }
|
||||||
|
|
||||||
|
TAboutForm = class(TForm)
|
||||||
|
Memo1: TMemo;
|
||||||
|
private
|
||||||
|
{ private declarations }
|
||||||
|
public
|
||||||
|
{ public declarations }
|
||||||
|
end;
|
||||||
|
|
||||||
|
var
|
||||||
|
AboutForm: TAboutForm;
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
initialization
|
||||||
|
{$I about.lrs}
|
||||||
|
|
||||||
|
end.
|
||||||
|
|
@ -1,3 +1,5 @@
|
|||||||
|
{ This is an automatically generated lazarus resource file }
|
||||||
|
|
||||||
LazarusResources.Add('TColourHistoryForm','FORMDATA',[
|
LazarusResources.Add('TColourHistoryForm','FORMDATA',[
|
||||||
'TPF0'#18'TColourHistoryForm'#17'ColourHistoryForm'#4'Left'#3#145#1#6'Height'
|
'TPF0'#18'TColourHistoryForm'#17'ColourHistoryForm'#4'Left'#3#145#1#6'Height'
|
||||||
+#3#250#0#3'Top'#3'X'#1#5'Width'#3#233#1#13'ActiveControl'#7#13'SelectionName'
|
+#3#250#0#3'Top'#3'X'#1#5'Width'#3#233#1#13'ActiveControl'#7#13'SelectionName'
|
||||||
|
@ -183,12 +183,12 @@ end;
|
|||||||
|
|
||||||
procedure TColourHistoryForm.SetCHShowMenu(Sender: TObject);
|
procedure TColourHistoryForm.SetCHShowMenu(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
Form1.View_CH_Menu.Checked := True;
|
Form1.MenuItemColourHistory.Checked := True;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TColourHistoryForm.UnSetCHShowMenu(Sender: TObject);
|
procedure TColourHistoryForm.UnSetCHShowMenu(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
Form1.View_CH_Menu.Checked := False;
|
Form1.MenuItemColourHistory.Checked := False;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -30,7 +30,7 @@ uses
|
|||||||
cthreads, cmem,
|
cthreads, cmem,
|
||||||
{$ENDIF}{$ENDIF}
|
{$ENDIF}{$ENDIF}
|
||||||
Interfaces, // this includes the LCL widgetset
|
Interfaces, // this includes the LCL widgetset
|
||||||
Forms, LResources, testunit,colourhistory;
|
Forms, LResources, testunit,colourhistory, About;
|
||||||
|
|
||||||
{$IFDEF WINDOWS}{$R project1.rc}{$ENDIF}
|
{$IFDEF WINDOWS}{$R project1.rc}{$ENDIF}
|
||||||
|
|
||||||
@ -41,6 +41,7 @@ begin
|
|||||||
|
|
||||||
Application.CreateForm(TForm1, Form1);
|
Application.CreateForm(TForm1, Form1);
|
||||||
Application.CreateForm(TColourHistoryForm, ColourHistoryForm);
|
Application.CreateForm(TColourHistoryForm, ColourHistoryForm);
|
||||||
|
Application.CreateForm(TAboutForm, AboutForm);
|
||||||
Application.Run;
|
Application.Run;
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
@ -373,7 +373,7 @@ object Form1: TForm1
|
|||||||
object MainMenu1: TMainMenu
|
object MainMenu1: TMainMenu
|
||||||
left = 528
|
left = 528
|
||||||
object MenuFile: TMenuItem
|
object MenuFile: TMenuItem
|
||||||
Caption = 'File'
|
Caption = '&File'
|
||||||
SubMenuImages = Mufasa_Image_List
|
SubMenuImages = Mufasa_Image_List
|
||||||
object MenuItemNew: TMenuItem
|
object MenuItemNew: TMenuItem
|
||||||
Action = ActionNewScript
|
Action = ActionNewScript
|
||||||
@ -590,7 +590,6 @@ object Form1: TForm1
|
|||||||
end
|
end
|
||||||
object MenuItemCloseTab: TMenuItem
|
object MenuItemCloseTab: TMenuItem
|
||||||
Action = ActionCloseTab
|
Action = ActionCloseTab
|
||||||
Caption = 'Close Tab'
|
|
||||||
Bitmap.Data = {
|
Bitmap.Data = {
|
||||||
36040000424D3604000000000000360000002800000010000000100000000100
|
36040000424D3604000000000000360000002800000010000000100000000100
|
||||||
2000000000000004000064000000640000000000000000000000FFFFFF00FFFF
|
2000000000000004000064000000640000000000000000000000FFFFFF00FFFF
|
||||||
@ -670,9 +669,52 @@ object Form1: TForm1
|
|||||||
ImageIndex = 20
|
ImageIndex = 20
|
||||||
OnClick = MenuItemCloseTabsClick
|
OnClick = MenuItemCloseTabsClick
|
||||||
end
|
end
|
||||||
|
object MenuItemDivider6: TMenuItem
|
||||||
|
Caption = '-'
|
||||||
|
end
|
||||||
|
object MenuItemMainExit: TMenuItem
|
||||||
|
Action = ActionExit
|
||||||
|
Bitmap.Data = {
|
||||||
|
36040000424D3604000000000000360000002800000010000000100000000100
|
||||||
|
2000000000000004000064000000640000000000000000000000FFFFFF00FFFF
|
||||||
|
FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF001D63
|
||||||
|
9B1619609839145D9562105A92880D5890A4135C92FC0C578FED999999FF7171
|
||||||
|
71FF545454FF515151FF4F4F4FFF4C4C4CFF4A4A4AFF474747FF454545FF2567
|
||||||
|
9DFF3274A8FF3D7CAFFF4784B5FF4E8ABAFF3E7EADFF0C578FEAFFFFFF00FFFF
|
||||||
|
FF00585858FFA2A2A2FFA2A2A2FFA3A3A3FFA4A4A4FFA4A4A4FFA5A5A5FF2F6F
|
||||||
|
A5FF78ABD2FF78ABD3FF73A7D1FF69A0CDFF407FAEFF0F5991EAFFFFFF00FFFF
|
||||||
|
FF005C5C5CFFA1A1A1FF3C7340FFA0A1A1FFA3A3A3FFA3A3A3FFA4A4A4FF3674
|
||||||
|
AAFF7DAFD4FF5B9AC9FF5495C7FF5896C8FF4180AEFF135C94EAFFFFFF00FFFF
|
||||||
|
FF00606060FFA0A0A0FF3D7641FF367139FFA2A2A2FFA2A2A2FFA3A3A3FF3D79
|
||||||
|
B0FF82B3D7FF629FCCFF5A9AC9FF5E9BCAFF4381AFFF196098EA37823EFF347E
|
||||||
|
3BFF317937FF2E7534FF499150FF468F4CFF39733DFFA1A1A1FFA2A2A2FF457E
|
||||||
|
B4FF88B7D9FF67A3CFFF619ECCFF639FCCFF4583B1FF1F649CEA3B8742FF89CB
|
||||||
|
92FF84C88DFF80C688FF7BC383FF77C17FFF478F4DFF3B743FFFA1A1A1FF4C84
|
||||||
|
BAFF8DBBDBFF6EA8D1FF66A6D1FF5FB4DFFF4785B1FF2569A1EA3E8B46FF8FCE
|
||||||
|
99FF7DC687FF78C381FF73C07CFF74C07CFF79C281FF49904FFF547F57FF5489
|
||||||
|
BFFF94BFDDFF75ADD4FF63B8E1FF4BD4FFFF428BB8FF2C6EA6EA41904AFF94D2
|
||||||
|
9FFF91D09AFF8DCD96FF89CB92FF84C88DFF519858FF417C46FF9F9F9FFF5A8E
|
||||||
|
C4FF98C3E0FF7CB3D7FF74AFD6FF5EC4EDFF4B88B3FF3473ABEA44944DFF4291
|
||||||
|
4BFF3F8D48FF3D8945FF5DA465FF5AA061FF45834BFF9E9E9EFF9E9E9EFF6092
|
||||||
|
C9FF9EC7E2FF83B8DAFF7DB4D7FF7EB3D7FF4F89B4FF3B79B1EAFFFFFF00FFFF
|
||||||
|
FF00777777FF9A9A9AFF3D8A45FF498A4FFF9C9C9CFF9D9D9DFF9D9D9DFF6696
|
||||||
|
CCFFA2CBE3FF89BDDCFF83B9DAFF84B9DAFF518BB5FF437EB6EAFFFFFF00FFFF
|
||||||
|
FF007A7A7AFF999999FF529159FF999A99FF9B9B9BFF9C9C9CFF9C9C9CFF6C9A
|
||||||
|
D0FFA7CEE5FF8FC1DFFF89BDDCFF8BBDDCFF538DB6FF4B84BCEAFFFFFF00FFFF
|
||||||
|
FF007D7D7DFF999999FF999999FF9A9A9AFF9A9A9AFF9B9B9BFF9B9B9BFF6F9D
|
||||||
|
D3FFAAD1E7FFABD1E7FF98C7E1FF91C2DEFF568FB7FF5289C1EAFFFFFF00FFFF
|
||||||
|
FF00808080FF7E7E7EFF7C7C7CFF7A7A7AFF777777FF757575FF727272FF719E
|
||||||
|
D4FF6F9ED6FF87B2DCFFABD3E8FFA9D0E6FF5890B8FF598EC6EAFFFFFF00FFFF
|
||||||
|
FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
|
||||||
|
FF00FFFFFF00709ED6DB6D9CD4FF85B1DAFF5A91B9FF6093CBEAFFFFFF00FFFF
|
||||||
|
FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
|
||||||
|
FF00FFFFFF00FFFFFF00FFFFFF006D9CD4896A9AD2FB6697CFEE
|
||||||
|
}
|
||||||
|
OnClick = ActionExitExecute
|
||||||
|
end
|
||||||
end
|
end
|
||||||
object MenuEdit: TMenuItem
|
object MenuEdit: TMenuItem
|
||||||
Caption = 'Edit'
|
Caption = '&Edit'
|
||||||
SubMenuImages = Mufasa_Image_List
|
SubMenuImages = Mufasa_Image_List
|
||||||
OnClick = MenuEditClick
|
OnClick = MenuEditClick
|
||||||
object MenuItemUndo: TMenuItem
|
object MenuItemUndo: TMenuItem
|
||||||
@ -930,7 +972,6 @@ object Form1: TForm1
|
|||||||
end
|
end
|
||||||
object MenuItemFind: TMenuItem
|
object MenuItemFind: TMenuItem
|
||||||
Action = ActionFindStart
|
Action = ActionFindStart
|
||||||
Caption = 'Find...'
|
|
||||||
OnClick = ActionFindstartExecute
|
OnClick = ActionFindstartExecute
|
||||||
end
|
end
|
||||||
object MenuItemFindNext: TMenuItem
|
object MenuItemFindNext: TMenuItem
|
||||||
@ -943,7 +984,7 @@ object Form1: TForm1
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
object MenuItemScript: TMenuItem
|
object MenuItemScript: TMenuItem
|
||||||
Caption = 'Script'
|
Caption = '&Script'
|
||||||
SubMenuImages = Mufasa_Image_List
|
SubMenuImages = Mufasa_Image_List
|
||||||
object MenuItemRun: TMenuItem
|
object MenuItemRun: TMenuItem
|
||||||
Action = ActionRunScript
|
Action = ActionRunScript
|
||||||
@ -1069,18 +1110,25 @@ object Form1: TForm1
|
|||||||
OnClick = ActionStopExecute
|
OnClick = ActionStopExecute
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object ViewMenu: TMenuItem
|
object MenuView: TMenuItem
|
||||||
Caption = 'View'
|
Caption = '&View'
|
||||||
object View_CH_Menu: TMenuItem
|
object MenuItemColourHistory: TMenuItem
|
||||||
Caption = 'View Colour History'
|
Caption = '&View Colour History'
|
||||||
OnClick = ColourHistoryMenuClick
|
OnClick = MenuItemColourHistoryClick
|
||||||
|
end
|
||||||
|
end
|
||||||
|
object MenuHelp: TMenuItem
|
||||||
|
Caption = '&Help'
|
||||||
|
object MenuItemAbout: TMenuItem
|
||||||
|
Caption = '&About'
|
||||||
|
OnClick = MenuItemAboutClick
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object Mufasa_Image_List: TImageList
|
object Mufasa_Image_List: TImageList
|
||||||
left = 488
|
left = 488
|
||||||
Bitmap = {
|
Bitmap = {
|
||||||
4C69190000001000000010000000424242004242420042424200424242004242
|
4C691A0000001000000010000000424242004242420042424200424242004242
|
||||||
420042424200424242004242420042424200424242004242420042424200A155
|
420042424200424242004242420042424200424242004242420042424200A155
|
||||||
42FFA15542FFA15542FF4242420E424242004242420042424200424242004242
|
42FFA15542FFA15542FF4242420E424242004242420042424200424242004242
|
||||||
4200424242004242420042424200424242004242420042424200A15542FFFFDA
|
4200424242004242420042424200424242004242420042424200A15542FFFFDA
|
||||||
@ -1880,7 +1928,39 @@ object Form1: TForm1
|
|||||||
99FAA1A199FAA1A19AFAA1A19AFAA1A19AFAA1A19BFAA1A19BFAA2A29BFAA2A2
|
99FAA1A199FAA1A19AFAA1A19AFAA1A19AFAA1A19BFAA1A19BFAA2A29BFAA2A2
|
||||||
9BFAA7A7A1F9BABAB6D9BCBCB85DFFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
|
9BFAA7A7A1F9BABAB6D9BCBCB85DFFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
|
||||||
FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
|
FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
|
||||||
FF00FFFFFF00FFFFFF00FFFFFF00
|
FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
|
||||||
|
FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
|
||||||
|
FF006D9CD4896A9AD2FB6697CFEEFFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
|
||||||
|
FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00709ED6DB6D9C
|
||||||
|
D4FF85B1DAFF5A91B9FF6093CBEAFFFFFF00FFFFFF00808080FF7E7E7EFF7C7C
|
||||||
|
7CFF7A7A7AFF777777FF757575FF727272FF719ED4FF6F9ED6FF87B2DCFFABD3
|
||||||
|
E8FFA9D0E6FF5890B8FF598EC6EAFFFFFF00FFFFFF007D7D7DFF999999FF9999
|
||||||
|
99FF9A9A9AFF9A9A9AFF9B9B9BFF9B9B9BFF6F9DD3FFAAD1E7FFABD1E7FF98C7
|
||||||
|
E1FF91C2DEFF568FB7FF5289C1EAFFFFFF00FFFFFF007A7A7AFF999999FF5291
|
||||||
|
59FF999A99FF9B9B9BFF9C9C9CFF9C9C9CFF6C9AD0FFA7CEE5FF8FC1DFFF89BD
|
||||||
|
DCFF8BBDDCFF538DB6FF4B84BCEAFFFFFF00FFFFFF00777777FF9A9A9AFF3D8A
|
||||||
|
45FF498A4FFF9C9C9CFF9D9D9DFF9D9D9DFF6696CCFFA2CBE3FF89BDDCFF83B9
|
||||||
|
DAFF84B9DAFF518BB5FF437EB6EA44944DFF42914BFF3F8D48FF3D8945FF5DA4
|
||||||
|
65FF5AA061FF45834BFF9E9E9EFF9E9E9EFF6092C9FF9EC7E2FF83B8DAFF7DB4
|
||||||
|
D7FF7EB3D7FF4F89B4FF3B79B1EA41904AFF94D29FFF91D09AFF8DCD96FF89CB
|
||||||
|
92FF84C88DFF519858FF417C46FF9F9F9FFF5A8EC4FF98C3E0FF7CB3D7FF74AF
|
||||||
|
D6FF5EC4EDFF4B88B3FF3473ABEA3E8B46FF8FCE99FF7DC687FF78C381FF73C0
|
||||||
|
7CFF74C07CFF79C281FF49904FFF547F57FF5489BFFF94BFDDFF75ADD4FF63B8
|
||||||
|
E1FF4BD4FFFF428BB8FF2C6EA6EA3B8742FF89CB92FF84C88DFF80C688FF7BC3
|
||||||
|
83FF77C17FFF478F4DFF3B743FFFA1A1A1FF4C84BAFF8DBBDBFF6EA8D1FF66A6
|
||||||
|
D1FF5FB4DFFF4785B1FF2569A1EA37823EFF347E3BFF317937FF2E7534FF4991
|
||||||
|
50FF468F4CFF39733DFFA1A1A1FFA2A2A2FF457EB4FF88B7D9FF67A3CFFF619E
|
||||||
|
CCFF639FCCFF4583B1FF1F649CEAFFFFFF00FFFFFF00606060FFA0A0A0FF3D76
|
||||||
|
41FF367139FFA2A2A2FFA2A2A2FFA3A3A3FF3D79B0FF82B3D7FF629FCCFF5A9A
|
||||||
|
C9FF5E9BCAFF4381AFFF196098EAFFFFFF00FFFFFF005C5C5CFFA1A1A1FF3C73
|
||||||
|
40FFA0A1A1FFA3A3A3FFA3A3A3FFA4A4A4FF3674AAFF7DAFD4FF5B9AC9FF5495
|
||||||
|
C7FF5896C8FF4180AEFF135C94EAFFFFFF00FFFFFF00585858FFA2A2A2FFA2A2
|
||||||
|
A2FFA3A3A3FFA4A4A4FFA4A4A4FFA5A5A5FF2F6FA5FF78ABD2FF78ABD3FF73A7
|
||||||
|
D1FF69A0CDFF407FAEFF0F5991EA999999FF717171FF545454FF515151FF4F4F
|
||||||
|
4FFF4C4C4CFF4A4A4AFF474747FF454545FF25679DFF3274A8FF3D7CAFFF4784
|
||||||
|
B5FF4E8ABAFF3E7EADFF0C578FEAFFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
|
||||||
|
FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF001D639B1619609839145D9562105A
|
||||||
|
92880D5890A4135C92FC0C578FED
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
object MTrayIcon: TTrayIcon
|
object MTrayIcon: TTrayIcon
|
||||||
@ -1948,8 +2028,44 @@ object Form1: TForm1
|
|||||||
OnClick = MenuItemShowClick
|
OnClick = MenuItemShowClick
|
||||||
end
|
end
|
||||||
object MenuItemExit: TMenuItem
|
object MenuItemExit: TMenuItem
|
||||||
Caption = 'Exit'
|
Action = ActionExit
|
||||||
OnClick = MenuItemExitClick
|
Bitmap.Data = {
|
||||||
|
36040000424D3604000000000000360000002800000010000000100000000100
|
||||||
|
2000000000000004000064000000640000000000000000000000FFFFFF00FFFF
|
||||||
|
FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF001D63
|
||||||
|
9B1619609839145D9562105A92880D5890A4135C92FC0C578FED999999FF7171
|
||||||
|
71FF545454FF515151FF4F4F4FFF4C4C4CFF4A4A4AFF474747FF454545FF2567
|
||||||
|
9DFF3274A8FF3D7CAFFF4784B5FF4E8ABAFF3E7EADFF0C578FEAFFFFFF00FFFF
|
||||||
|
FF00585858FFA2A2A2FFA2A2A2FFA3A3A3FFA4A4A4FFA4A4A4FFA5A5A5FF2F6F
|
||||||
|
A5FF78ABD2FF78ABD3FF73A7D1FF69A0CDFF407FAEFF0F5991EAFFFFFF00FFFF
|
||||||
|
FF005C5C5CFFA1A1A1FF3C7340FFA0A1A1FFA3A3A3FFA3A3A3FFA4A4A4FF3674
|
||||||
|
AAFF7DAFD4FF5B9AC9FF5495C7FF5896C8FF4180AEFF135C94EAFFFFFF00FFFF
|
||||||
|
FF00606060FFA0A0A0FF3D7641FF367139FFA2A2A2FFA2A2A2FFA3A3A3FF3D79
|
||||||
|
B0FF82B3D7FF629FCCFF5A9AC9FF5E9BCAFF4381AFFF196098EA37823EFF347E
|
||||||
|
3BFF317937FF2E7534FF499150FF468F4CFF39733DFFA1A1A1FFA2A2A2FF457E
|
||||||
|
B4FF88B7D9FF67A3CFFF619ECCFF639FCCFF4583B1FF1F649CEA3B8742FF89CB
|
||||||
|
92FF84C88DFF80C688FF7BC383FF77C17FFF478F4DFF3B743FFFA1A1A1FF4C84
|
||||||
|
BAFF8DBBDBFF6EA8D1FF66A6D1FF5FB4DFFF4785B1FF2569A1EA3E8B46FF8FCE
|
||||||
|
99FF7DC687FF78C381FF73C07CFF74C07CFF79C281FF49904FFF547F57FF5489
|
||||||
|
BFFF94BFDDFF75ADD4FF63B8E1FF4BD4FFFF428BB8FF2C6EA6EA41904AFF94D2
|
||||||
|
9FFF91D09AFF8DCD96FF89CB92FF84C88DFF519858FF417C46FF9F9F9FFF5A8E
|
||||||
|
C4FF98C3E0FF7CB3D7FF74AFD6FF5EC4EDFF4B88B3FF3473ABEA44944DFF4291
|
||||||
|
4BFF3F8D48FF3D8945FF5DA465FF5AA061FF45834BFF9E9E9EFF9E9E9EFF6092
|
||||||
|
C9FF9EC7E2FF83B8DAFF7DB4D7FF7EB3D7FF4F89B4FF3B79B1EAFFFFFF00FFFF
|
||||||
|
FF00777777FF9A9A9AFF3D8A45FF498A4FFF9C9C9CFF9D9D9DFF9D9D9DFF6696
|
||||||
|
CCFFA2CBE3FF89BDDCFF83B9DAFF84B9DAFF518BB5FF437EB6EAFFFFFF00FFFF
|
||||||
|
FF007A7A7AFF999999FF529159FF999A99FF9B9B9BFF9C9C9CFF9C9C9CFF6C9A
|
||||||
|
D0FFA7CEE5FF8FC1DFFF89BDDCFF8BBDDCFF538DB6FF4B84BCEAFFFFFF00FFFF
|
||||||
|
FF007D7D7DFF999999FF999999FF9A9A9AFF9A9A9AFF9B9B9BFF9B9B9BFF6F9D
|
||||||
|
D3FFAAD1E7FFABD1E7FF98C7E1FF91C2DEFF568FB7FF5289C1EAFFFFFF00FFFF
|
||||||
|
FF00808080FF7E7E7EFF7C7C7CFF7A7A7AFF777777FF757575FF727272FF719E
|
||||||
|
D4FF6F9ED6FF87B2DCFFABD3E8FFA9D0E6FF5890B8FF598EC6EAFFFFFF00FFFF
|
||||||
|
FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
|
||||||
|
FF00FFFFFF00709ED6DB6D9CD4FF85B1DAFF5A91B9FF6093CBEAFFFFFF00FFFF
|
||||||
|
FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
|
||||||
|
FF00FFFFFF00FFFFFF00FFFFFF006D9CD4896A9AD2FB6697CFEE
|
||||||
|
}
|
||||||
|
OnClick = ActionExitExecute
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object TabPopup: TPopupMenu
|
object TabPopup: TPopupMenu
|
||||||
@ -2055,7 +2171,7 @@ object Form1: TForm1
|
|||||||
ShortCut = 24585
|
ShortCut = 24585
|
||||||
end
|
end
|
||||||
object ActionCloseTab: TAction
|
object ActionCloseTab: TAction
|
||||||
Caption = 'ActionCloseTab'
|
Caption = '&Close Tab'
|
||||||
ImageIndex = 16
|
ImageIndex = 16
|
||||||
OnExecute = ActionCloseTabExecute
|
OnExecute = ActionCloseTabExecute
|
||||||
SecondaryShortCuts.Strings = (
|
SecondaryShortCuts.Strings = (
|
||||||
@ -2064,25 +2180,25 @@ object Form1: TForm1
|
|||||||
ShortCut = 16471
|
ShortCut = 16471
|
||||||
end
|
end
|
||||||
object ActionNewTab: TAction
|
object ActionNewTab: TAction
|
||||||
Caption = 'New Tab'
|
Caption = 'New &Tab'
|
||||||
ImageIndex = 15
|
ImageIndex = 15
|
||||||
OnExecute = ActionNewTabExecute
|
OnExecute = ActionNewTabExecute
|
||||||
ShortCut = 16468
|
ShortCut = 16468
|
||||||
end
|
end
|
||||||
object ActionNewScript: TAction
|
object ActionNewScript: TAction
|
||||||
Caption = 'New'
|
Caption = '&New'
|
||||||
ImageIndex = 9
|
ImageIndex = 9
|
||||||
OnExecute = ActionNewExecute
|
OnExecute = ActionNewExecute
|
||||||
ShortCut = 16462
|
ShortCut = 16462
|
||||||
end
|
end
|
||||||
object ActionOpenScript: TAction
|
object ActionOpenScript: TAction
|
||||||
Caption = 'Open'
|
Caption = '&Open'
|
||||||
ImageIndex = 10
|
ImageIndex = 10
|
||||||
OnExecute = ActionOpenExecute
|
OnExecute = ActionOpenExecute
|
||||||
ShortCut = 16463
|
ShortCut = 16463
|
||||||
end
|
end
|
||||||
object ActionSaveScript: TAction
|
object ActionSaveScript: TAction
|
||||||
Caption = 'Save'
|
Caption = '&Save'
|
||||||
ImageIndex = 14
|
ImageIndex = 14
|
||||||
OnExecute = ActionSaveExecute
|
OnExecute = ActionSaveExecute
|
||||||
ShortCut = 16467
|
ShortCut = 16467
|
||||||
@ -2092,16 +2208,16 @@ object Form1: TForm1
|
|||||||
OnExecute = ActionSaveAsExecute
|
OnExecute = ActionSaveAsExecute
|
||||||
end
|
end
|
||||||
object ActionRunScript: TAction
|
object ActionRunScript: TAction
|
||||||
Caption = 'Run'
|
Caption = '&Run'
|
||||||
OnExecute = ActionRunExecute
|
OnExecute = ActionRunExecute
|
||||||
ShortCut = 120
|
ShortCut = 120
|
||||||
end
|
end
|
||||||
object ActionPauseScript: TAction
|
object ActionPauseScript: TAction
|
||||||
Caption = 'Pause'
|
Caption = '&Pause'
|
||||||
OnExecute = ActionPauseExecute
|
OnExecute = ActionPauseExecute
|
||||||
end
|
end
|
||||||
object ActionStopScript: TAction
|
object ActionStopScript: TAction
|
||||||
Caption = 'Stop'
|
Caption = '&Stop'
|
||||||
OnExecute = ActionStopExecute
|
OnExecute = ActionStopExecute
|
||||||
end
|
end
|
||||||
object ActionSaveAll: TAction
|
object ActionSaveAll: TAction
|
||||||
@ -2116,61 +2232,68 @@ object Form1: TForm1
|
|||||||
OnExecute = ActionClearDebugExecute
|
OnExecute = ActionClearDebugExecute
|
||||||
end
|
end
|
||||||
object ActionFindStart: TAction
|
object ActionFindStart: TAction
|
||||||
Caption = 'Find ...'
|
Caption = '&Find ...'
|
||||||
OnExecute = ActionFindstartExecute
|
OnExecute = ActionFindstartExecute
|
||||||
ShortCut = 16454
|
ShortCut = 16454
|
||||||
end
|
end
|
||||||
object ActionCut: TAction
|
object ActionCut: TAction
|
||||||
Caption = 'Cut'
|
Caption = 'Cu&t'
|
||||||
ImageIndex = 3
|
ImageIndex = 3
|
||||||
OnExecute = ActionCutExecute
|
OnExecute = ActionCutExecute
|
||||||
ShortCut = 16472
|
ShortCut = 16472
|
||||||
end
|
end
|
||||||
object ActionCopy: TAction
|
object ActionCopy: TAction
|
||||||
Caption = 'Copy'
|
Caption = '&Copy'
|
||||||
ImageIndex = 22
|
ImageIndex = 22
|
||||||
OnExecute = ActionCopyExecute
|
OnExecute = ActionCopyExecute
|
||||||
ShortCut = 16451
|
ShortCut = 16451
|
||||||
end
|
end
|
||||||
object ActionPaste: TAction
|
object ActionPaste: TAction
|
||||||
Caption = 'Paste'
|
Caption = '&Paste'
|
||||||
ImageIndex = 11
|
ImageIndex = 11
|
||||||
OnExecute = ActionPasteExecute
|
OnExecute = ActionPasteExecute
|
||||||
ShortCut = 16470
|
ShortCut = 16470
|
||||||
end
|
end
|
||||||
object ActionDelete: TAction
|
object ActionDelete: TAction
|
||||||
Caption = 'Delete'
|
Caption = '&Delete'
|
||||||
ImageIndex = 23
|
ImageIndex = 23
|
||||||
OnExecute = ActionDeleteExecute
|
OnExecute = ActionDeleteExecute
|
||||||
ShortCut = 46
|
ShortCut = 46
|
||||||
end
|
end
|
||||||
object ActionSelectAll: TAction
|
object ActionSelectAll: TAction
|
||||||
Caption = 'Select All'
|
Caption = '&Select All'
|
||||||
OnExecute = ActionSelectAllExecute
|
OnExecute = ActionSelectAllExecute
|
||||||
ShortCut = 16449
|
ShortCut = 16449
|
||||||
end
|
end
|
||||||
object ActionUndo: TAction
|
object ActionUndo: TAction
|
||||||
Caption = 'Undo'
|
Caption = '&Undo'
|
||||||
|
DisableIfNoHandler = False
|
||||||
ImageIndex = 18
|
ImageIndex = 18
|
||||||
OnExecute = ActionUndoExecute
|
OnExecute = ActionUndoExecute
|
||||||
ShortCut = 16474
|
ShortCut = 16474
|
||||||
end
|
end
|
||||||
object ActionRedo: TAction
|
object ActionRedo: TAction
|
||||||
Caption = 'Redo'
|
Caption = '&Redo'
|
||||||
|
DisableIfNoHandler = False
|
||||||
ImageIndex = 12
|
ImageIndex = 12
|
||||||
OnExecute = ActionRedoExecute
|
OnExecute = ActionRedoExecute
|
||||||
ShortCut = 16473
|
ShortCut = 16473
|
||||||
end
|
end
|
||||||
object ActionFindNext: TAction
|
object ActionFindNext: TAction
|
||||||
Caption = 'Find next'
|
Caption = 'Find &next'
|
||||||
OnExecute = ActionFindNextExecute
|
OnExecute = ActionFindNextExecute
|
||||||
ShortCut = 114
|
ShortCut = 114
|
||||||
end
|
end
|
||||||
object ActionReplace: TAction
|
object ActionReplace: TAction
|
||||||
Caption = 'Replace...'
|
Caption = 'R&eplace...'
|
||||||
OnExecute = ActionReplaceExecute
|
OnExecute = ActionReplaceExecute
|
||||||
ShortCut = 16466
|
ShortCut = 16466
|
||||||
end
|
end
|
||||||
|
object ActionExit: TAction
|
||||||
|
Caption = '&Exit'
|
||||||
|
ImageIndex = 25
|
||||||
|
OnExecute = ActionExitExecute
|
||||||
|
end
|
||||||
end
|
end
|
||||||
object DebugTimer: TTimer
|
object DebugTimer: TTimer
|
||||||
OnTimer = ProcessDebugStream
|
OnTimer = ProcessDebugStream
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -37,7 +37,7 @@ uses
|
|||||||
window, // for the comp picker and selector
|
window, // for the comp picker and selector
|
||||||
colourpicker, framescript, windowselector, lcltype, ActnList, StdActns,
|
colourpicker, framescript, windowselector, lcltype, ActnList, StdActns,
|
||||||
SynEditKeyCmds, SynEditHighlighter, SynEditMarkupSpecialLine,SynEditMarkupHighAll,
|
SynEditKeyCmds, SynEditHighlighter, SynEditMarkupSpecialLine,SynEditMarkupHighAll,
|
||||||
SynEditMiscClasses, LMessages, Buttons;
|
SynEditMiscClasses, LMessages, Buttons,about;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
@ -58,6 +58,7 @@ type
|
|||||||
{ TForm1 }
|
{ TForm1 }
|
||||||
|
|
||||||
TForm1 = class(TForm)
|
TForm1 = class(TForm)
|
||||||
|
ActionExit: TAction;
|
||||||
ActionReplace: TAction;
|
ActionReplace: TAction;
|
||||||
ActionFindNext: TAction;
|
ActionFindNext: TAction;
|
||||||
ActionRedo: TAction;
|
ActionRedo: TAction;
|
||||||
@ -87,11 +88,15 @@ type
|
|||||||
Memo1: TMemo;
|
Memo1: TMemo;
|
||||||
MenuFile: TMenuItem;
|
MenuFile: TMenuItem;
|
||||||
MenuEdit: TMenuItem;
|
MenuEdit: TMenuItem;
|
||||||
|
MenuHelp: TMenuItem;
|
||||||
|
MenuItemAbout: TMenuItem;
|
||||||
|
MenuItemMainExit: TMenuItem;
|
||||||
|
MenuItemDivider6: TMenuItem;
|
||||||
PopupItemReplace: TMenuItem;
|
PopupItemReplace: TMenuItem;
|
||||||
MenuItemReplace: TMenuItem;
|
MenuItemReplace: TMenuItem;
|
||||||
dlgReplace: TReplaceDialog;
|
dlgReplace: TReplaceDialog;
|
||||||
View_CH_Menu: TMenuItem;
|
MenuItemColourHistory: TMenuItem;
|
||||||
ViewMenu: TMenuItem;
|
MenuView: TMenuItem;
|
||||||
MenuItemFindNext: TMenuItem;
|
MenuItemFindNext: TMenuItem;
|
||||||
PopupItemDelete: TMenuItem;
|
PopupItemDelete: TMenuItem;
|
||||||
MenuItemDelete: TMenuItem;
|
MenuItemDelete: TMenuItem;
|
||||||
@ -177,6 +182,7 @@ type
|
|||||||
procedure ActionCopyExecute(Sender: TObject);
|
procedure ActionCopyExecute(Sender: TObject);
|
||||||
procedure ActionCutExecute(Sender: TObject);
|
procedure ActionCutExecute(Sender: TObject);
|
||||||
procedure ActionDeleteExecute(Sender: TObject);
|
procedure ActionDeleteExecute(Sender: TObject);
|
||||||
|
procedure ActionExitExecute(Sender: TObject);
|
||||||
procedure ActionFindNextExecute(Sender: TObject);
|
procedure ActionFindNextExecute(Sender: TObject);
|
||||||
procedure ActionFindstartExecute(Sender: TObject);
|
procedure ActionFindstartExecute(Sender: TObject);
|
||||||
procedure ActionNewExecute(Sender: TObject);
|
procedure ActionNewExecute(Sender: TObject);
|
||||||
@ -197,7 +203,7 @@ type
|
|||||||
procedure ActionUndoExecute(Sender: TObject);
|
procedure ActionUndoExecute(Sender: TObject);
|
||||||
procedure CheckBoxMatchCaseClick(Sender: TObject);
|
procedure CheckBoxMatchCaseClick(Sender: TObject);
|
||||||
procedure CloseFindPanel;
|
procedure CloseFindPanel;
|
||||||
procedure ColourHistoryMenuClick(Sender: TObject);
|
procedure MenuItemColourHistoryClick(Sender: TObject);
|
||||||
procedure dlgReplaceFind(Sender: TObject);
|
procedure dlgReplaceFind(Sender: TObject);
|
||||||
procedure dlgReplaceReplace(Sender: TObject);
|
procedure dlgReplaceReplace(Sender: TObject);
|
||||||
procedure EditSearchChange(Sender: TObject);
|
procedure EditSearchChange(Sender: TObject);
|
||||||
@ -211,8 +217,8 @@ type
|
|||||||
Shift: TShiftState);
|
Shift: TShiftState);
|
||||||
procedure LabeledEditSearchKeyPress(Sender: TObject; var Key: char);
|
procedure LabeledEditSearchKeyPress(Sender: TObject; var Key: char);
|
||||||
procedure MenuEditClick(Sender: TObject);
|
procedure MenuEditClick(Sender: TObject);
|
||||||
|
procedure MenuItemAboutClick(Sender: TObject);
|
||||||
procedure MenuItemCloseTabsClick(Sender: TObject);
|
procedure MenuItemCloseTabsClick(Sender: TObject);
|
||||||
procedure MenuItemExitClick(Sender: TObject);
|
|
||||||
procedure MenuItemShowClick(Sender: TObject);
|
procedure MenuItemShowClick(Sender: TObject);
|
||||||
procedure MenuItemTabCloseClick(Sender: TObject);
|
procedure MenuItemTabCloseClick(Sender: TObject);
|
||||||
procedure MenuItemTabCloseOthersClick(Sender: TObject);
|
procedure MenuItemTabCloseOthersClick(Sender: TObject);
|
||||||
@ -533,12 +539,12 @@ begin
|
|||||||
PopupItemReplace.Enabled:= B;
|
PopupItemReplace.Enabled:= B;
|
||||||
if(B)then
|
if(B)then
|
||||||
begin
|
begin
|
||||||
if(Length(SelText) > 20)then
|
if(Length(SelText) > 13)then
|
||||||
S:= Format('"%s"', [Copy(SelText, 1, 17) + '...'])
|
S:= Format('"%s"', [Copy(SelText, 1, 10) + '...'])
|
||||||
else
|
else
|
||||||
S:= Format('"%s"', [SelText]);
|
S:= Format('"%s"', [SelText]);
|
||||||
PopupItemFind.Caption:= 'Find next: ' + S;
|
PopupItemFind.Caption:= 'Find next: ' + S;
|
||||||
PopupItemReplace.Caption:= 'Replace: ' + S;
|
PopupItemReplace.Caption:= 'Replace: ' + S;
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -678,7 +684,10 @@ begin
|
|||||||
if CurrScript.SynEdit.Focused or ScriptPopup.HandleAllocated then
|
if CurrScript.SynEdit.Focused or ScriptPopup.HandleAllocated then
|
||||||
CurrScript.SynEdit.CopyToClipboard
|
CurrScript.SynEdit.CopyToClipboard
|
||||||
else if Memo1.Focused then
|
else if Memo1.Focused then
|
||||||
|
begin;
|
||||||
|
Writeln('WOT');
|
||||||
Memo1.CopyToClipboard;
|
Memo1.CopyToClipboard;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TForm1.ActionCutExecute(Sender: TObject);
|
procedure TForm1.ActionCutExecute(Sender: TObject);
|
||||||
@ -697,6 +706,11 @@ begin
|
|||||||
Memo1.ClearSelection;
|
Memo1.ClearSelection;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TForm1.ActionExitExecute(Sender: TObject);
|
||||||
|
begin
|
||||||
|
Self.Close;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TForm1.ActionFindNextExecute(Sender: TObject);
|
procedure TForm1.ActionFindNextExecute(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
if(ScriptPopup.HandleAllocated)then
|
if(ScriptPopup.HandleAllocated)then
|
||||||
@ -845,10 +859,10 @@ begin
|
|||||||
CurrScript.SynEdit.SetFocus;
|
CurrScript.SynEdit.SetFocus;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TForm1.ColourHistoryMenuClick(Sender: TObject);
|
procedure TForm1.MenuItemColourHistoryClick(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
View_CH_Menu.Checked := not ColourHistoryForm.Visible;
|
MenuItemColourHistory.Checked := not ColourHistoryForm.Visible;
|
||||||
if View_CH_Menu.Checked then
|
if MenuItemColourHistory.Checked then
|
||||||
ColourHistoryForm.Show
|
ColourHistoryForm.Show
|
||||||
else
|
else
|
||||||
ColourHistoryForm.Hide;
|
ColourHistoryForm.Hide;
|
||||||
@ -956,11 +970,14 @@ end;
|
|||||||
|
|
||||||
procedure TForm1.FormShortCuts(var Msg: TLMKey; var Handled: Boolean);
|
procedure TForm1.FormShortCuts(var Msg: TLMKey; var Handled: Boolean);
|
||||||
begin
|
begin
|
||||||
|
SetEditActions;
|
||||||
Handled := ActionList.IsShortCut(Msg);
|
Handled := ActionList.IsShortCut(Msg);
|
||||||
{ ShiftState := MsgKeyDataToShiftState(Message.KeyData);
|
{ ShiftState := MsgKeyDataToShiftState(Message.KeyData);
|
||||||
ShortCut := KeyToShortCut(Message.CharCode, ShiftState);}
|
ShortCut := KeyToShortCut(Message.CharCode, ShiftState);}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
procedure TForm1.LabeledEditSearchEnter(Sender: TObject);
|
procedure TForm1.LabeledEditSearchEnter(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
SearchStart := CurrScript.SynEdit.LogicalCaretXY;
|
SearchStart := CurrScript.SynEdit.LogicalCaretXY;
|
||||||
@ -1006,18 +1023,16 @@ begin
|
|||||||
SetEditActions;
|
SetEditActions;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TForm1.MenuItemAboutClick(Sender: TObject);
|
||||||
|
begin
|
||||||
|
AboutForm.ShowModal;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TForm1.MenuItemCloseTabsClick(Sender: TObject);
|
procedure TForm1.MenuItemCloseTabsClick(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
Self.CloseTabs;
|
Self.CloseTabs;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TForm1.MenuItemExitClick(Sender: TObject);
|
|
||||||
begin
|
|
||||||
Self.Close;
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
procedure TForm1.MenuItemShowClick(Sender: TObject);
|
procedure TForm1.MenuItemShowClick(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
Self.Show;
|
Self.Show;
|
||||||
|
@ -21,6 +21,10 @@
|
|||||||
Mouse.inc for the Mufasa Macro Library
|
Mouse.inc for the Mufasa Macro Library
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const
|
||||||
|
ps_mouse_right = 0;
|
||||||
|
ps_mouse_left = 1;
|
||||||
|
ps_mouse_middle = 2;
|
||||||
procedure MoveMouse(x, y: integer);
|
procedure MoveMouse(x, y: integer);
|
||||||
begin
|
begin
|
||||||
CurrThread.Client.MInput.SetMousePos(X, Y);
|
CurrThread.Client.MInput.SetMousePos(X, Y);
|
||||||
@ -30,20 +34,30 @@ procedure GetMousePos(out x, y: integer);
|
|||||||
begin
|
begin
|
||||||
CurrThread.Client.MInput.GetMousePos(X, Y);
|
CurrThread.Client.MInput.GetMousePos(X, Y);
|
||||||
end;
|
end;
|
||||||
|
function ConvIntClickType(Int : Integer) : TClickType;inline;
|
||||||
|
begin;
|
||||||
|
case int of
|
||||||
|
ps_mouse_right : result := mouse_Right;
|
||||||
|
ps_mouse_left : result := mouse_left;
|
||||||
|
ps_mouse_middle: result := mouse_middle;
|
||||||
|
else
|
||||||
|
raise exception.CreateFMT('Unknown Clicktype (%d) passed.',[int]);
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure HoldMouse(x, y: integer; clickType: TClickType);
|
procedure HoldMouse(x, y: integer; clickType: integer);
|
||||||
begin
|
begin
|
||||||
CurrThread.Client.MInput.SetMousePos(x, y);
|
CurrThread.Client.MInput.SetMousePos(x, y);
|
||||||
CurrThread.Client.MInput.MouseButtonAction(x, y, clickType, mouse_Down);
|
CurrThread.Client.MInput.MouseButtonAction(x, y, ConvIntClickType(clickType), mouse_Down);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure ReleaseMouse(x, y: integer; clickType: TClickType);
|
procedure ReleaseMouse(x, y: integer; clickType: integer);
|
||||||
begin
|
begin
|
||||||
CurrThread.Client.MInput.SetMousePos(x, y);
|
CurrThread.Client.MInput.SetMousePos(x, y);
|
||||||
CurrThread.Client.MInput.MouseButtonAction(x, y, clickType, mouse_Up);
|
CurrThread.Client.MInput.MouseButtonAction(x, y, ConvIntClickType(clickType), mouse_Up);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure ClickMouse(x, y: integer; clickType: TClickType);
|
procedure ClickMouse(x, y: integer; clickType: integer);
|
||||||
begin
|
begin
|
||||||
CurrThread.Client.MInput.ClickMouse(x, y, clickType);
|
CurrThread.Client.MInput.ClickMouse(x, y, ConvIntClickType(clickType));
|
||||||
end;
|
end;
|
||||||
|
@ -34,7 +34,6 @@ Sender.Comp.AddTypes('TDTMPointDefArray', 'Array Of TDTMPointDef;');
|
|||||||
Sender.Comp.AddTypes('TDTM','record MainPoint: TDTMPointDef; SubPoints: TDTMPointDefArray; end;');
|
Sender.Comp.AddTypes('TDTM','record MainPoint: TDTMPointDef; SubPoints: TDTMPointDefArray; end;');
|
||||||
Sender.Comp.AddTypeS('pDTM','record p: TPointArray; c, t, asz, ash: TIntegerArray; end;');
|
Sender.Comp.AddTypeS('pDTM','record p: TPointArray; c, t, asz, ash: TIntegerArray; end;');
|
||||||
Sender.Comp.AddTypeS('T2DExtendedArray', 'array of array of extended;');
|
Sender.Comp.AddTypeS('T2DExtendedArray', 'array of array of extended;');
|
||||||
Sender.Comp.AddTypeS('TClickType', '(mouse_Left, mouse_Right, mouse_Middle);');
|
|
||||||
Sender.Comp.AddTypeS('TMousePress', '(mouse_Down, mouse_Up);');
|
Sender.Comp.AddTypeS('TMousePress', '(mouse_Down, mouse_Up);');
|
||||||
|
|
||||||
|
|
||||||
@ -99,11 +98,14 @@ Sender.AddFunction(@SetColorToleranceSpeed, 'procedure SetColorToleranceSpeed(ct
|
|||||||
Sender.AddFunction(@ColorToHSL, 'procedure ColorToHSL(c: integer; out r,g,b: extended);');
|
Sender.AddFunction(@ColorToHSL, 'procedure ColorToHSL(c: integer; out r,g,b: extended);');
|
||||||
|
|
||||||
{Mouse etc.}
|
{Mouse etc.}
|
||||||
|
Sender.Comp.AddConstantN('mouse_Right','integer').SetInt(ps_mouse_right); //0
|
||||||
|
Sender.Comp.AddConstantN('mouse_Left','integer').SetInt(ps_mouse_left);//1
|
||||||
|
Sender.Comp.AddConstantN('mouse_Middle','integer').SetInt(ps_mouse_middle);//2
|
||||||
Sender.AddFunction(@MoveMouse, 'procedure MoveMouse(x, y: integer);');
|
Sender.AddFunction(@MoveMouse, 'procedure MoveMouse(x, y: integer);');
|
||||||
Sender.AddFunction(@GetMousePos, 'procedure GetMousePos(out x, y: integer);');
|
Sender.AddFunction(@GetMousePos, 'procedure GetMousePos(out x, y: integer);');
|
||||||
Sender.AddFunction(@HoldMouse, 'procedure HoldMouse(x, y: integer; clickType: TClickType);');
|
Sender.AddFunction(@HoldMouse, 'procedure HoldMouse(x, y: integer; clickType: integer);');
|
||||||
Sender.AddFunction(@ReleaseMouse, 'procedure ReleaseMouse(x, y: integer; clickType: TClickType);');
|
Sender.AddFunction(@ReleaseMouse, 'procedure ReleaseMouse(x, y: integer; clickType: integer);');
|
||||||
Sender.AddFunction(@ClickMouse, 'procedure ClickMouse(x, y: integer; clickType: TClickType);');
|
Sender.AddFunction(@ClickMouse, 'procedure ClickMouse(x, y: integer; clickType: integer);');
|
||||||
|
|
||||||
|
|
||||||
{Keyboard}
|
{Keyboard}
|
||||||
|
Loading…
Reference in New Issue
Block a user