Skip to content
This repository was archived by the owner on Jun 26, 2021. It is now read-only.

Commit a1c8043

Browse files
committed
Add In-Execution Command and Syntax Management
Adds hooks for in-executionm management of syntax and commands for adding commands and removing those commands.
1 parent 77538fc commit a1c8043

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1684
-33
lines changed

calmcon.v12.suo

0 Bytes
Binary file not shown.

calmcon/My Project/AssemblyInfo.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
3131
' by using the '*' as shown below:
3232
' <Assembly: AssemblyVersion("1.0.*")>
3333

34-
<Assembly: AssemblyVersion("1.0.4.0")>
35-
<Assembly: AssemblyFileVersion("1.0.4.0")>
34+
<Assembly: AssemblyVersion("1.0.4.1")>
35+
<Assembly: AssemblyFileVersion("1.0.4.1")>

calmcon/bin/Debug/calmcmd.exe

5.5 KB
Binary file not shown.

calmcon/bin/Debug/calmcmd.pdb

8 KB
Binary file not shown.

calmcon/bin/Debug/cnsrapi.dll

2.5 KB
Binary file not shown.

calmcon/bin/Debug/cnsrapi.pdb

0 Bytes
Binary file not shown.

calmcon/bin/Debug/cnsrapi.xml

Lines changed: 126 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ cnsrapi
307307
</member><member name="T:captainalm.calmcon.api.Types.ReadOutputHook">
308308
<summary>
309309
This hook is used to read from the output textbox,
310-
and can be invoked by the library once an instance is retrieved via the GetWriteOutputHook.
310+
and can be invoked by the library once an instance is retrieved via the GetReadOutputHook.
311311
</summary>
312312
<returns>The contents of the output textbox.</returns>
313313
<remarks></remarks>
@@ -323,6 +323,94 @@ cnsrapi
323323
</summary>
324324
<param name="key">The key data caught.</param>
325325
<remarks></remarks>
326+
</member><member name="T:captainalm.calmcon.api.Types.AddExternalCommandHook">
327+
<summary>
328+
This hook is used to add commands during program execution.
329+
and can be invoked by the library once an instance is retrieved via the GetAddExternalCommandHook.
330+
</summary>
331+
<param name="libname">The library name.</param>
332+
<param name="command">The command to add.</param>
333+
<returns>The id of the added command or 0 for faliure.</returns>
334+
<remarks></remarks>
335+
</member><member name="T:captainalm.calmcon.api.Types.GetAddExternalCommandHook">
336+
<summary>
337+
Gets the hook instance for AddExternalCommandHook so it can be invoked by the library.
338+
</summary>
339+
<param name="hook">The hook instance.</param>
340+
<remarks></remarks>
341+
</member><member name="T:captainalm.calmcon.api.Types.RemoveExternalCommandHook">
342+
<summary>
343+
This hook is used to remove added commands during program execution.
344+
and can be invoked by the library once an instance is retrieved via the GetRemoveExternalCommandHook.
345+
</summary>
346+
<param name="libname">The library name.</param>
347+
<param name="id">The ID of the command to remove.</param>
348+
<returns>If the removal succeded.</returns>
349+
<remarks></remarks>
350+
</member><member name="T:captainalm.calmcon.api.Types.GetRemoveExternalCommandHook">
351+
<summary>
352+
Gets the hook instance for RemoveExternalCommandHook so it can be invoked by the library.
353+
</summary>
354+
<param name="hook">The hook instance.</param>
355+
<remarks></remarks>
356+
</member><member name="T:captainalm.calmcon.api.Types.ListExternalCommandsHook">
357+
<summary>
358+
This hook is used to list added commands during program execution.
359+
and can be invoked by the library once an instance is retrieved via the GetListExternalCommandsHook.
360+
</summary>
361+
<param name="libname">The library name.</param>
362+
<returns>This list of the commands added by this library name in the form "id : name"</returns>
363+
<remarks></remarks>
364+
</member><member name="T:captainalm.calmcon.api.Types.GetListExternalCommandsHook">
365+
<summary>
366+
Gets the hook instance for ListExternalCommandsHook so it can be invoked by the library.
367+
</summary>
368+
<param name="hook">The hook instance.</param>
369+
<remarks></remarks>
370+
</member><member name="T:captainalm.calmcon.api.Types.AddExternalSyntaxHook">
371+
<summary>
372+
This hook is used to add syntaxes during program execution.
373+
and can be invoked by the library once an instance is retrieved via the GetAddExternalSyntaxHook.
374+
</summary>
375+
<param name="libname">The library name.</param>
376+
<param name="syntax">The syntax to add.</param>
377+
<returns>The id of the added syntax or 0 for faliure.</returns>
378+
<remarks></remarks>
379+
</member><member name="T:captainalm.calmcon.api.Types.GetAddExternalSyntaxHook">
380+
<summary>
381+
Gets the hook instance for AddExternalSyntaxHook so it can be invoked by the library.
382+
</summary>
383+
<param name="hook">The hook instance.</param>
384+
<remarks></remarks>
385+
</member><member name="T:captainalm.calmcon.api.Types.RemoveExternalSyntaxHook">
386+
<summary>
387+
This hook is used to remove added syntaxes during program execution.
388+
and can be invoked by the library once an instance is retrieved via the GetRemoveExternalSyntaxHook.
389+
</summary>
390+
<param name="libname">The library name.</param>
391+
<param name="id">The ID of the syntax to remove.</param>
392+
<returns>If the removal succeded.</returns>
393+
<remarks></remarks>
394+
</member><member name="T:captainalm.calmcon.api.Types.GetRemoveExternalSyntaxHook">
395+
<summary>
396+
Gets the hook instance for RemoveExternalSyntaxHook so it can be invoked by the library.
397+
</summary>
398+
<param name="hook">The hook instance.</param>
399+
<remarks></remarks>
400+
</member><member name="T:captainalm.calmcon.api.Types.ListExternalSyntaxesHook">
401+
<summary>
402+
This hook is used to list added syntaxes during program execution.
403+
and can be invoked by the library once an instance is retrieved via the GetListExternalSyntaxesHook.
404+
</summary>
405+
<param name="libname">The library name.</param>
406+
<returns>This list of the syntaxes added by this library name in the form "id : name"</returns>
407+
<remarks></remarks>
408+
</member><member name="T:captainalm.calmcon.api.Types.GetListExternalSyntaxesHook">
409+
<summary>
410+
Gets the hook instance for ListExternalSyntaxesHook so it can be invoked by the library.
411+
</summary>
412+
<param name="hook">The hook instance.</param>
413+
<remarks></remarks>
326414
</member><member name="M:captainalm.calmcon.api.ISyntax.name">
327415
<summary>
328416
Returns the Syntax Name.
@@ -402,7 +490,37 @@ cnsrapi
402490
The hook out textbox delegate.
403491
</summary>
404492
<remarks></remarks>
405-
</member><member name="M:captainalm.calmcon.api.HookInfo.#ctor(System.String,captainalm.calmcon.api.Types.ProgramEventHook,captainalm.calmcon.api.Types.ProgramEventHook,captainalm.calmcon.api.Types.PreCommandExecuteHook,captainalm.calmcon.api.Types.PostCommandExecuteHook,captainalm.calmcon.api.Types.FormHook,captainalm.calmcon.api.Types.OutputTextBoxHook,captainalm.calmcon.api.Types.GetRunCommandHook,captainalm.calmcon.api.Types.GetWriteOutputHook,captainalm.calmcon.api.Types.GetReadOutputHook,captainalm.calmcon.api.Types.ReadKeyHook,captainalm.calmcon.api.Types.CommandTextBoxHook)">
493+
</member><member name="F:captainalm.calmcon.api.HookInfo.hook_e_cmd_add">
494+
<summary>
495+
The hook get add external command delegate.
496+
</summary>
497+
<remarks></remarks>
498+
</member><member name="F:captainalm.calmcon.api.HookInfo.hook_e_cmd_list">
499+
<summary>
500+
The hook get list external commands delegate.
501+
</summary>
502+
<remarks></remarks>
503+
</member><member name="F:captainalm.calmcon.api.HookInfo.hook_e_cmd_remove">
504+
<summary>
505+
The hook get remove external command delegate.
506+
</summary>
507+
<remarks></remarks>
508+
</member><member name="F:captainalm.calmcon.api.HookInfo.hook_e_snx_add">
509+
<summary>
510+
The hook get add external syntax delegate.
511+
</summary>
512+
<remarks></remarks>
513+
</member><member name="F:captainalm.calmcon.api.HookInfo.hook_e_snx_list">
514+
<summary>
515+
The hook get list external syntaxes delegate.
516+
</summary>
517+
<remarks></remarks>
518+
</member><member name="F:captainalm.calmcon.api.HookInfo.hook_e_snx_remove">
519+
<summary>
520+
The hook get remove external syntax delegate.
521+
</summary>
522+
<remarks></remarks>
523+
</member><member name="M:captainalm.calmcon.api.HookInfo.#ctor(System.String,captainalm.calmcon.api.Types.ProgramEventHook,captainalm.calmcon.api.Types.ProgramEventHook,captainalm.calmcon.api.Types.PreCommandExecuteHook,captainalm.calmcon.api.Types.PostCommandExecuteHook,captainalm.calmcon.api.Types.FormHook,captainalm.calmcon.api.Types.OutputTextBoxHook,captainalm.calmcon.api.Types.GetRunCommandHook,captainalm.calmcon.api.Types.GetWriteOutputHook,captainalm.calmcon.api.Types.GetReadOutputHook,captainalm.calmcon.api.Types.ReadKeyHook,captainalm.calmcon.api.Types.CommandTextBoxHook,captainalm.calmcon.api.Types.GetAddExternalCommandHook,captainalm.calmcon.api.Types.GetListExternalCommandsHook,captainalm.calmcon.api.Types.GetRemoveExternalCommandHook,captainalm.calmcon.api.Types.GetAddExternalSyntaxHook,captainalm.calmcon.api.Types.GetListExternalSyntaxesHook,captainalm.calmcon.api.Types.GetRemoveExternalSyntaxHook)">
406524
<summary>
407525
Constructs a new set of hook info, use nothing as a parameter if you do not want to register a certain hook.
408526
</summary>
@@ -418,6 +536,12 @@ cnsrapi
418536
<param name="getrout">The Get ReadOutput Hook delegate.</param>
419537
<param name="rk">The Read Key (In the operation log text box.) Hook Delegate.</param>
420538
<param name="hcmdbx">The command textbox hook delegate.</param>
539+
<param name="hecmdadd">The Get Add External Command During Runtime hook Delegate.</param>
540+
<param name="hecmdlist">The Get List External Commands During Runtime hook Delegate.</param>
541+
<param name="hecmdremove">The Get Remove External Command During Runtime hook Delegate.</param>
542+
<param name="hesnxadd">The Get Add External Syntax During Runtime hook Delegate.</param>
543+
<param name="hesnxlist">The Get List External Syntaxes During Runtime hook Delegate.</param>
544+
<param name="hesnxremove">The Get Remove External Syntax During Runtime hook Delegate.</param>
421545
<remarks></remarks>
422546
</member><member name="T:captainalm.calmcon.api.HookInfo">
423547
<summary>

calmcon/bin/Release/calmcmd.exe

5 KB
Binary file not shown.

calmcon/bin/Release/calmcmd.pdb

8 KB
Binary file not shown.

calmcon/bin/Release/cnsrapi.dll

2 KB
Binary file not shown.

0 commit comments

Comments
 (0)