List Command Panel
The key model is ListCommand.
- Assistant Model
Layout
- Columns Layout (Two column with one splition bar)
- Command Entry List Panel
Provide entrys for selection
The model is CommandEntryList.
- Head Line
- Add Command Dropdown Button
(Note that Dropdown is not combobox.)
- Buttons for adding:
- PreSettingCommand
- Content Panel: PreSetting Command Panel
Note
This command sets up initial parameters before NC simulation which attempt to take the effect.
- NcOptOptionCommand
- Content Panel: NcOptOption Panel
Note
This command is also a type of pre-setting that should be applied before NC simulation which attempt to take the effect.
- NcFileCommand
- Content Panel: NcFile Command Panel
- NcCodeCommand
- ScriptCommand
- Content Panel: Script Command Panel
- PostExecutionCommand
- Content Panel: PostExecution Command Panel
- PreSettingCommand
- Buttons for adding:
- Remove Command Button
- Move Up Command Button
- Move Down Command Button
- Add Command Dropdown Button
(Note that Dropdown is not combobox.)
- Command Entrys Selection Panel
- (Each) Command Entry Box:
The boxes are multi-selectable for re-order, remove and etc..
The boxes are draggable for re-order.
- Enable CheckBox
- The model is IsEnabled.
Tip
Show the label text.
- Title Label
- Apply GetCommandTitle if the command is inherited from ITitleCommand; otherwise, show the class name.
Tip
Apply style changed if the entry is selected.
- If there is only one PreSettingCommand in the list and at the begining, Keep it at begining when items adding, shows a “pin at begining” label with a pin icon.
- If there is only one PostExecutionCommand in the list and at the end, Keep it at end when items adding, shows a “pin at end” label a pin icon.
- Enable CheckBox
- (Each) Command Entry Box:
The boxes are multi-selectable for re-order, remove and etc..
The boxes are draggable for re-order.
- Support file drag from the external application (such as file explorer), files drag into the Command Entrys List Panel is equivalent to create NcFileCommands (with the EnablingWrapper) and set the file into the NC File Command.
- Head Line
- Vertical Splition Bar
- The bar can be drag to tune the width.
- Selected Command Content Panel
- The model is Command.
- The panel is based on command type
Tip
The width of the entry block should expand to fulfill the content block.
- Command Entry List Panel
Provide entrys for selection
The model is CommandEntryList.
Tip
Use Disabled Style for command panels if the Enable checkbox is not checked.
Note
Each command entry can be individually enabled or disabled without removing it from the list.
Features
Update the Title Label if the Command is updated by the Command Content Panel.
Source Code Path
See this page for git repository.
WPF Application Source Code Path
- Mission/ListCommandPanel
Web Page Application Source Code Path
- wwwroot/mission/panels/list-command-panel.html (Component HTML)
- wwwroot/mission/panels/list-command-panel.css (Component styles)
- wwwroot/mission/panels/list-command-panel.js (JavaScript component with full ListCommand logic)
- Controller/MissionController.cs (REST API - ListCommand CRUD operations)