diff --git a/examples/menus/menu_example.json b/examples/menus/menu_example.json index c66bab8..e37be09 100644 --- a/examples/menus/menu_example.json +++ b/examples/menus/menu_example.json @@ -5,8 +5,9 @@ "style": "color: #000000" }, "file-choice": [ - {"text": "This is view 1", "file": "menu_1.json"}, - {"text": "This is view 2", "file": "menu_2.json"} + + {"text": "SUB-MENU2", "file": "/Users/ebner/Git/pylauncher/examples/menus2/menu_example.json"}, + {"text": "SUB-MENU", "file": "menu_2.json"} ], "menu": [ { @@ -15,7 +16,7 @@ }, { "type": "menu", - "text": "This is sub-menu -default style", + "text": "This is sub-menu -default style", "file": "menu_2.json", "tip": "Menu tip.", "help-link": "http://www.link.com/to/help" diff --git a/examples/menus2/menu_5.json b/examples/menus2/menu_5.json new file mode 100644 index 0000000..51e6c95 --- /dev/null +++ b/examples/menus2/menu_5.json @@ -0,0 +1,24 @@ +{ + "menu-title": + {"text": "F_L1","theme": "green", "style": "color: #FF3388"}, + "file-choice": [ + {"text": "Load F_L2", "file": "menu_2.json"} + ], + "menu": [ + {"type": "title", "text": "General"}, + {"type": "cmd", "text": "Who is online", "command": "xeyes", "tip": "List of currently connected users.", "help-link": "http://www.google.com"}, + {"type": "title", "text": "HighLevel Applications", "theme": "green"}, + {"type": "cmd", "text": "ScreenMonitorTool", "command": "ls", "theme": "green", "style": "color: #FF3388"}, + {"type": "cmd", "text": "QE Measurement", "command": "ls -l", "theme": "green"}, + {"type": "separator"}, + {"type": "title", "text": "Utilities", "theme": "green"}, + {"type": "cmd", "text": "Remote network access control by control room", "command": "ls"}, + {"type": "menu", "text": "Strip-tool", "file": "menu_10.json"}, + {"type": "caqtdm", "text": "CA-screen", "macros": "SYS=TEST", "panel": "screen.ui" }, + {"type": "medm", "text": "MEDM-screen", "macros": "SYS=TEST", "panel": "screen.adl" }, + {"type": "cmd", "text": "Test", "command": "pep -mc S10BC02-MBND100:I-SET"}, + {"type": "cmd", "text": "Test 2", "command": "pylauncher -h"}, + {"type": "pep", "text": "Pep type test (.prc)", "panel": "S_TEST_REMOTECTRL_GUDE_SF-CTRL-TEST01.prc"}, + {"type": "pep", "text": "Pep type test (.prc)", "param": "-mc S10BC02-MBND100:I-SET"} + ] +} \ No newline at end of file diff --git a/examples/menus2/menu_example.json b/examples/menus2/menu_example.json new file mode 100644 index 0000000..3292a9d --- /dev/null +++ b/examples/menus2/menu_example.json @@ -0,0 +1,26 @@ +{ + "menu-title": { + "text": ">>>> MENU 2 <<<<", + "theme": "green", + "style": "color: #000000" + }, + "menu": [ + { + "type": "title", + "text": "Title 1 - default style" + }, + { + "type": "menu", + "text": "Menu 5", + "file": "menu_5.json", + "tip": "Menu tip.", + "help-link": "http://www.link.com/to/help" + }, + { + "type": "cmd", + "text": "This is command-default style", + "command": "xeyes", + "tip": "Opens xeyes." + } + ] +}