From ceadf4b146564c3407ec083d10f5f941bb5f2dc4 Mon Sep 17 00:00:00 2001 From: Mahmoud Gomaa Date: Thu, 9 Dec 2021 09:54:05 +0200 Subject: [PATCH] Add files via upload --- docs/Syntax/Dynamic.cshtml | 776 ++++++++++++++++++------------------- docs/Syntax/Index.cshtml | 1 - docs/Syntax/Static.cshtml | 8 +- 3 files changed, 387 insertions(+), 398 deletions(-) diff --git a/docs/Syntax/Dynamic.cshtml b/docs/Syntax/Dynamic.cshtml index 62dd595..63282f3 100644 --- a/docs/Syntax/Dynamic.cshtml +++ b/docs/Syntax/Dynamic.cshtml @@ -1,393 +1,383 @@ -@page -@{ - ViewData["title"] = "Dynamic Items"; - ViewData["page-support"] = "Dynamic"; -} -

Dynamic Items

-
-

This section adds new menu items to the context menu.

-

Dynamic items have three types (menu, item, and separator). with properties to add new items with customization explained below in more details.
The types (menu and item) must contain the property title at least and their value cannot be null.
A separator-type item can be added without any properties.

-

In the following example, it shows how to write add an items to dynamic:

-
shell 
-{
-    dynamic
-    {
-        item(title = 'Hello, World!')
-        separtor
-        menu(title = 'sub menu' image = #0000ff)
-        {
-            item(title = 'test subitem')
-        }
-    }
-}
-
-
-

Properties

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PropertySummary
TitleSets a value indicating the caption of the menuitem.
-

This property must be included with menu and item, not Applies to separator.

- Default = null -

Applies to menu, item.

-
ModeAccept item by selections behavior. Value have one of the following parameters: - - - - - - - - - - - - - - - - - - - - - -
NoneAccept item when there are no selections.
SingleAccept menuitem when there are single selection.
MultiUniqueAccept when multiple selections are single type.
MultiSingleAccept when multiple selections are single file extension.
MultipleAccept all types.
- Default = Single -

Applies to menu, item, separator.

-
TypeSpecify the types of object files allowed for the menu item to appear. The property is assigned to one or more of these parameters and this character | is used to separate types.
- Add a character ~ before single type to exclude. -

The property not supported syntax expressions.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileAccept menuitem when file are selected.
Dirctory(Dir)Accept menuitem when Dirctory are selected.
DriveDrive objects
USBAccept menuitem when USB flash drive are selected.
DVDThe drive is a DVD-ROM drive
FixedAccept menuitem when Fixed drive are selected. The drive has fixed media; for example, a hard disk drive or flash drive.
VHDAccept menuitem when Virtual Hard Disk are selected.
RemovableThe drive has removable media; for example, a floppy drive, thumb drive, or flash card reader.
RemoteThe drive is a remote (network) drive.
BackAccept menu item when the background of all types are selected or can specify of this types for the background (back.directory, back.drive[back.fixed, back.usb, back.dvd, back.vhd, back.Removable], back.namespace[back.computer, back.recyclebin]) -
DesktopAccept menuitem when the Desktop are selected.
NamespaceAccept menuitem when Namespace are selected. Can be virtual objects such as the My Network Places and Recycle Bin.
ComputerAccept menuitem when the My Computer are selected.
RecyclebinAccept menuitem when the Recycle bin are selected.
TaskbarAccept menuitem when the Taskbar are selected.
- Default = All types -

Applies to menu, item, separator.

-
Visibility (vis)Visibility of menuitem and can have one of the following parameters: - - - - - - - - - - - - - - - - - - - - - - - - - -
HiddenThem menuitem will not be displayed.
Enable, NormalEnabled the menuitem.
DisableDisabled the menuitem.
ExtendedThe menuitem appears when the Shift key is pressed.
ExtendedHiddenThe item appears disabled when the Shift key is pressed.
ExtendedDisableHide the menuitem when the Shift key is pressed.
- Default = Normal -

Applies to menu, item, separator.

-
Find -

Accept menuitem when the specified path name or path extension is contains or equal to the current find property.
Use this delimiter | to separate patterns.

- Default = null -

Applies to menu, item, separator.

-
Separator (sep)Add separator with menuitem position by parameters: - - - - - - - - - - - - - - - - - -
NoneNot adding a separator with the menuitem.
BeforeAdd a separator before the menuitem.
AfterAdd a separator after the menuitem.
BothAdd a separator before and after the menuitem.
- Default = none -

Applies to menu, item.

-
Position (pos)The position at which a menuitem should be inserted into the menu.
Position can have one of the following parameters: - - - - - - - - - - - - - - - - - - - - - -
AutoInsert the menuitem to the current position.
MiddleInsert the menuitem to the middle of the menu.
TopInsert the menuitem to the top of the menu.
BottomInsert the menuitem to the bottom of the menu.
Number setsInsert the menuitem to a specified position with integer numbers.
- Default = auto -

Applies to menu, item, separator.

-
Image, IconThe icon that appears in a menuitem, This property can be assigned as image files, resource icons, glyph or color. With one of the following parameters - - - - - - - - - - - - - - - - - - - - - - - - - -
nullShow menuitem without icon.
Inherit@*Inheriting the image from the parent.*@ - Inherits this property from its parent element.
CmdAssign image from the command property.
GlyphAssign image as Glyph.
ColorAssign image as color.
PathAssign image from location path or resource icon.
- Default = null -

Applies to menu, item.

-
Command (cmd)

The command associated with the menuitem. Occurs when the menuitem is clicked or selected using a shortcut key or access key defined for the menuitem.

- Default = null -

Applies to item.

-
Arguments (arg, args)

The parameter to pass to the Command property of a menuitem.

- Default = null -

Applies to item.

-
WindowControls how the window is to be shown. can be one of the following parameters: -

Hidden, Show, Visible, Minimized, Maximized

- Default = show -

Applies to item.

-
Directory (dir)

Specify the work directory to execute the command.

- Default = null -

Applies to item.

admin

Execute the command with administrative permissions.

- Default = false -

Applies to item.

-
VerbSpecifies that the operation is the default for the selected file. value type string and can have one of the following parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
nullSpecifies that the operation is the default for the selected file type.
OpenOpens a file or a application.
OpenAsOpener dialog when no program is associated to the extension.
RunAsIn Windows 7 and Vista, opens the UAC dialog andin others, open the Run as... Dialog.
EditOpens the default text editor for the file.
ExploreOpens the Windows Explorer in the folder specified in Directory.
PropertiesOpens the properties window of the file.
PrintStart printing the file with the default application.
FindStart a search.
- Default = open -

Applies to item.

-
Wait -

Waiting Until end of command.

- Default = false -

Applies to item.

-
Checked -

Value that indicates whether the menuitem is checked.

- - - - - - - - - - - - - -
0No checked mark.
1Displays menu item using a check mark.
2Displays menu item using a radio-button mark instead of a check mark.
- Default = 0 -

Applies to item.

-
Default -

Specifies that the menuitem is the default. A menu can contain only one default menuitem, which is displayed in bold.

- Default = false -

Applies to item.

-
-
-

The title property must include at least the following types of (menu or item).

+@page +@{ + ViewData["title"] = "Dynamic Items"; + ViewData["page-support"] = "Dynamic"; +} +

Dynamic Items

+
+

This section adds new menu items to the context menu.

+

Dynamic items have three types (menu, item, and separator). with properties to add new items with customization explained below in more details.
The types (menu and item) must contain the property title at least and their value cannot be null.
A separator-type item can be added without any properties.

+

In the following example, it shows how to write add an items to dynamic:

+
shell 
+{
+    dynamic
+    {
+        item(title = 'Hello, World!')
+        separtor
+        menu(title = 'sub menu' image = #0000ff)
+        {
+            item(title = 'test subitem')
+        }
+    }
+}
+
+
+

Properties

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PropertySummary
TitleSets a value indicating the caption of the menuitem.
+

This property must be included with menu and item, not required for separator.

+ Default = null +

Required for menu, item.

+
ModeAccept item by selections behavior. Value have one of the following parameters: + + + + + + + + + + + + + + + + + + + + + +
NoneAccept item when there are no selections.
SingleAccept menuitem when there are single selection.
MultiUniqueAccept when multiple selections are single type.
MultiSingleAccept when multiple selections are single file extension.
MultipleAccept all types.
+ Default = Single +

Required for menu, item, separator.

+
TypeSpecify the types of object files allowed for the menu item to appear. The property is assigned to one or more of these parameters and this character | is used to separate types.
+ Add a character ~ before single type to exclude. +

The property not supported syntax expressions.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileAccept menuitem when file are selected.
Dirctory(Dir)Accept menuitem when Dirctory are selected.
DriveDrive objects
USBAccept menuitem when USB flash drive are selected.
DVDThe drive is a DVD-ROM drive
FixedAccept menuitem when Fixed drive are selected. The drive has fixed media; for example, a hard disk drive or flash drive.
VHDAccept menuitem when Virtual Hard Disk are selected.
RemovableThe drive has removable media; for example, a floppy drive, thumb drive, or flash card reader.
RemoteThe drive is a remote (network) drive.
BackAccept menu item when the background of all types are selected or can specify of this types for the background (back.directory, back.drive[back.fixed, back.usb, back.dvd, back.vhd, back.Removable], back.namespace[back.computer, back.recyclebin]) +
DesktopAccept menuitem when the Desktop are selected.
NamespaceAccept menuitem when Namespace are selected. Can be virtual objects such as the My Network Places and Recycle Bin.
ComputerAccept menuitem when the My Computer are selected.
RecyclebinAccept menuitem when the Recycle bin are selected.
TaskbarAccept menuitem when the Taskbar are selected.
+ Default = All types +

Required for menu, item, separator.

+
Visibility (vis)Visibility of menuitem and can have one of the following parameters: + + + + + + + + + + + + + + + + + + + + + + + + + +
HiddenThem menuitem will not be displayed.
NormalEnabled the menuitem.
DisableDisabled the menuitem.
ExtendedThe menuitem appears when the Shift key is pressed.
ExtendedHiddenThe item appears disabled when the Shift key is pressed.
ExtendedDisableHide the menuitem when the Shift key is pressed.
+ Default = Noraml +

Required for menu, item, separator.

+
Find +

Accept menuitem when the specified path name or path extension is contains or equal to the current find property.
Use this delimiter | to separate patterns.

+ Default = null +

Required for menu, item, separator.

+
Separator (sep)Add separator with menuitem position by parameters: + + + + + + + + + + + + + + + + + +
NoneNot adding a separator with the menuitem.
BeforeAdd a separator before the menuitem.
AfterAdd a separator after the menuitem.
BothAdd a separator before and after the menuitem.
+ Default = none +

Required for menu, item.

+
Position (pos)The position at which a menuitem should be inserted into the menu.
Position can have one of the following parameters: + + + + + + + + + + + + + + + + + + + + + +
AutoInsert the menuitem to the current position.
MiddleInsert the menuitem to the middle of the menu.
TopInsert the menuitem to the top of the menu.
BottomInsert the menuitem to the bottom of the menu.
Number setsInsert the menuitem to a specified position with integer numbers.
+ Default = auto +

Required for menu, item, separator.

+
ImageThe icon that appears in a menuitem, This property can be assigned as image files, resource icons, glyph or color. With one of the following parameters + + + + + + + + + + + + + + + + + + + + + + + + + +
nullShow menuitem without icon.
Inherit@*Inheriting the image from the parent.*@ + Inherits this property from its parent element.
CmdAssign image from the command property.
GlyphAssign image as Glyph.
ColorAssign image as color.
PathAssign image from location path or resource icon.
+ Default = null +

Required for menu, item.

+
Parent

Move current item to another menu.

+ Default = null
Command (cmd)

The command associated with the menuitem. Occurs when the menuitem is clicked or selected using a shortcut key or access key defined for the menuitem.

+ Default = null +

Required for item.

+
Arguments (arg, args)

The parameter to pass to the Command property of a menuitem.

+ Default = null +

Required for item.

+
WindowControls how the window is to be shown. can be one of the following parameters: +

Hidden, Show, Visible, Minimized, Maximized

+ Default = show +

Required for item.

+
Directory (dir)

Specify the work directory to execute the command.

+ Default = null +

Required for item.

admin

Execute the command with administrative permissions.

+ Default = false +

Required for item.

+
VerbSpecifies that the operation is the default for the selected file. value type string and can have one of the following parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
nullSpecifies that the operation is the default for the selected file type.
OpenOpens a file or a application.
OpenAsOpener dialog when no program is associated to the extension.
RunAsIn Windows 7 and Vista, opens the UAC dialog andin others, open the Run as... Dialog.
EditOpens the default text editor for the file.
ExploreOpens the Windows Explorer in the folder specified in Directory.
PropertiesOpens the properties window of the file.
PrintStart printing the file with the default application.
FindStart a search.
+ Default = open +

Required for item.

+
Wait +

Waiting Until end of command.

+ Default = false +

Required for item.

+
Checked

Value that indicates whether the menuitem is checked.

+ Default = false +

Required for item.

+
Default +

Specifies that the menuitem is the default. A menu can contain only one default menuitem, which is displayed in bold.

+ Default = false +

Required for item.

+
+
+

The title property must include at least the following types of (menu or item).

diff --git a/docs/Syntax/Index.cshtml b/docs/Syntax/Index.cshtml index 7538557..112ff2d 100644 --- a/docs/Syntax/Index.cshtml +++ b/docs/Syntax/Index.cshtml @@ -2,7 +2,6 @@ @{ ViewData["title"] = "Syntax"; ViewData["page-support"] = "Syntax"; - ViewData["meta-og:image"] = "/images/support/config.png"; }

Syntax Rules for Configuration Files


diff --git a/docs/Syntax/Static.cshtml b/docs/Syntax/Static.cshtml index 44709fb..3a8346d 100644 --- a/docs/Syntax/Static.cshtml +++ b/docs/Syntax/Static.cshtml @@ -1,7 +1,7 @@ @page @{ - ViewData["title"] = "Static Items"; - ViewData["page-support"] = "Variables"; +ViewData["title"] = "Static Items"; + ViewData["page-support"] = "Static"; }

Static Items


@@ -78,7 +78,7 @@ Hide the menuitem. - Enable, Normal + Normal Enabled the menuitem. @@ -154,7 +154,7 @@ - Image, Icon + Image The icon that appears in a menuitem, This property can be assigned as image files, resource icons, glyph or color. With one of the following parameters