add editor for Microsoft ACME setup bootstrapper LST file
This commit is contained in:
parent
2f720bd471
commit
24c3801f93
@ -0,0 +1,562 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.22.2 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.20"/>
|
||||
<object class="GtkWindow">
|
||||
<property name="can_focus">False</property>
|
||||
<child type="titlebar">
|
||||
<placeholder/>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkPaned">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<property name="position">200</property>
|
||||
<property name="position_set">True</property>
|
||||
<property name="wide_handle">True</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkFrame">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label_xalign">0</property>
|
||||
<property name="shadow_type">none</property>
|
||||
<child>
|
||||
<object class="GtkAlignment">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="left_padding">12</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkToolbar" id="tbPlatforms">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbPlatformAdd">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Add</property>
|
||||
<property name="label" translatable="yes">_Add</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-add</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbPlatformEdit">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Edit</property>
|
||||
<property name="label" translatable="yes">_Edit</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-edit</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbPlatformRemove">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">_Remove</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-remove</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSeparatorToolItem">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbPlatformMoveUp">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Move Up</property>
|
||||
<property name="label" translatable="yes">Move _Up</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-go-up</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbPlatformMoveDown">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Move Down</property>
|
||||
<property name="label" translatable="yes">Move _Down</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-go-down</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkScrolledWindow">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="shadow_type">in</property>
|
||||
<child>
|
||||
<object class="GtkTreeView" id="tvPlatforms">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="model">tsPlatforms</property>
|
||||
<property name="search_column">0</property>
|
||||
<child internal-child="selection">
|
||||
<object class="GtkTreeSelection"/>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkTreeViewColumn" id="tvcPlatformName">
|
||||
<property name="resizable">True</property>
|
||||
<property name="title" translatable="yes">Name</property>
|
||||
<property name="clickable">True</property>
|
||||
<property name="reorderable">True</property>
|
||||
<property name="sort_column_id">0</property>
|
||||
<child>
|
||||
<object class="GtkCellRendererText"/>
|
||||
<attributes>
|
||||
<attribute name="text">0</attribute>
|
||||
</attributes>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child type="label">
|
||||
<object class="GtkLabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">Platforms</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="resize">True</property>
|
||||
<property name="shrink">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkNotebook">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkToolbar" id="tbParameters">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbParameterAdd">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Add</property>
|
||||
<property name="label" translatable="yes">_Add</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-add</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbParameterEdit">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Edit</property>
|
||||
<property name="label" translatable="yes">_Edit</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-edit</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbParameterRemove">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">_Remove</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-remove</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSeparatorToolItem">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbParameterMoveUp">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Move Up</property>
|
||||
<property name="label" translatable="yes">Move _Up</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-go-up</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbParameterMoveDown">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Move Down</property>
|
||||
<property name="label" translatable="yes">Move _Down</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-go-down</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkScrolledWindow">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="shadow_type">in</property>
|
||||
<child>
|
||||
<object class="GtkTreeView" id="tvParameters">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="model">tsParameters</property>
|
||||
<property name="search_column">0</property>
|
||||
<child internal-child="selection">
|
||||
<object class="GtkTreeSelection"/>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkTreeViewColumn" id="tvcParameterName">
|
||||
<property name="resizable">True</property>
|
||||
<property name="title" translatable="yes">Name</property>
|
||||
<property name="clickable">True</property>
|
||||
<property name="reorderable">True</property>
|
||||
<property name="sort_column_id">0</property>
|
||||
<child>
|
||||
<object class="GtkCellRendererText"/>
|
||||
<attributes>
|
||||
<attribute name="text">0</attribute>
|
||||
</attributes>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkTreeViewColumn" id="tvcParameterValue">
|
||||
<property name="resizable">True</property>
|
||||
<property name="title" translatable="yes">Value</property>
|
||||
<property name="clickable">True</property>
|
||||
<property name="reorderable">True</property>
|
||||
<property name="sort_column_id">1</property>
|
||||
<child>
|
||||
<object class="GtkCellRendererText"/>
|
||||
<attributes>
|
||||
<attribute name="text">1</attribute>
|
||||
</attributes>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">Parameters</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="tab_fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkToolbar" id="tbFiles">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbFileAdd">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Add</property>
|
||||
<property name="label" translatable="yes">_Add</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-add</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbFileEdit">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Edit</property>
|
||||
<property name="label" translatable="yes">_Edit</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-edit</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbFileRemove">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">_Remove</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-remove</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSeparatorToolItem">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbFileMoveUp">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Move Up</property>
|
||||
<property name="label" translatable="yes">Move _Up</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-go-up</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbFileMoveDown">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Move Down</property>
|
||||
<property name="label" translatable="yes">Move _Down</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-go-down</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkScrolledWindow">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="shadow_type">in</property>
|
||||
<child>
|
||||
<object class="GtkTreeView" id="tvFiles">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="model">tsFiles</property>
|
||||
<property name="search_column">0</property>
|
||||
<child internal-child="selection">
|
||||
<object class="GtkTreeSelection"/>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkTreeViewColumn" id="tvcFileSourceFileName">
|
||||
<property name="resizable">True</property>
|
||||
<property name="title" translatable="yes">Source</property>
|
||||
<property name="clickable">True</property>
|
||||
<property name="reorderable">True</property>
|
||||
<property name="sort_column_id">0</property>
|
||||
<child>
|
||||
<object class="GtkCellRendererText"/>
|
||||
<attributes>
|
||||
<attribute name="text">0</attribute>
|
||||
</attributes>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkTreeViewColumn" id="tvcFileDestinationFileName">
|
||||
<property name="resizable">True</property>
|
||||
<property name="title" translatable="yes">Destination</property>
|
||||
<property name="clickable">True</property>
|
||||
<property name="reorderable">True</property>
|
||||
<property name="sort_column_id">1</property>
|
||||
<child>
|
||||
<object class="GtkCellRendererText"/>
|
||||
<attributes>
|
||||
<attribute name="text">1</attribute>
|
||||
</attributes>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">Files</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="position">1</property>
|
||||
<property name="tab_fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="resize">False</property>
|
||||
<property name="shrink">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
<object class="GtkTreeStore" id="tsFiles">
|
||||
<columns>
|
||||
<!-- column-name colFileSourceFileName -->
|
||||
<column type="gchararray"/>
|
||||
<!-- column-name colFileDestinationFileName -->
|
||||
<column type="gchararray"/>
|
||||
</columns>
|
||||
</object>
|
||||
<object class="GtkTreeStore" id="tsParameters">
|
||||
<columns>
|
||||
<!-- column-name colParameterName -->
|
||||
<column type="gchararray"/>
|
||||
<!-- column-name colParameterValue -->
|
||||
<column type="gchararray"/>
|
||||
</columns>
|
||||
</object>
|
||||
<object class="GtkTreeStore" id="tsPlatforms">
|
||||
<columns>
|
||||
<!-- column-name colPlatformName -->
|
||||
<column type="gchararray"/>
|
||||
</columns>
|
||||
</object>
|
||||
</interface>
|
||||
@ -0,0 +1,556 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.22.2 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.20"/>
|
||||
<object class="GtkTreeStore" id="tsFiles">
|
||||
<columns>
|
||||
<!-- column-name colFileSourceFileName -->
|
||||
<column type="gchararray"/>
|
||||
<!-- column-name colFileDestinationFileName -->
|
||||
<column type="gchararray"/>
|
||||
</columns>
|
||||
</object>
|
||||
<object class="GtkTreeStore" id="tsParameters">
|
||||
<columns>
|
||||
<!-- column-name colParameterName -->
|
||||
<column type="gchararray"/>
|
||||
<!-- column-name colParameterValue -->
|
||||
<column type="gchararray"/>
|
||||
</columns>
|
||||
</object>
|
||||
<object class="GtkTreeStore" id="tsPlatforms">
|
||||
<columns>
|
||||
<!-- column-name colPlatformName -->
|
||||
<column type="gchararray"/>
|
||||
</columns>
|
||||
</object>
|
||||
<object class="GtkWindow">
|
||||
<property name="can_focus">False</property>
|
||||
<child type="titlebar">
|
||||
<placeholder/>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkFrame">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label_xalign">0</property>
|
||||
<property name="shadow_type">none</property>
|
||||
<child>
|
||||
<object class="GtkAlignment">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="left_padding">12</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkToolbar" id="tbPlatforms">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbPlatformAdd">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Add</property>
|
||||
<property name="label" translatable="yes">_Add</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-add</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbPlatformEdit">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Edit</property>
|
||||
<property name="label" translatable="yes">_Edit</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-edit</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbPlatformRemove">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">_Remove</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-remove</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSeparatorToolItem">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbPlatformMoveUp">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Move Up</property>
|
||||
<property name="label" translatable="yes">Move _Up</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-go-up</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbPlatformMoveDown">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Move Down</property>
|
||||
<property name="label" translatable="yes">Move _Down</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-go-down</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkScrolledWindow">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="shadow_type">in</property>
|
||||
<child>
|
||||
<object class="GtkTreeView" id="tvPlatforms">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="model">tsPlatforms</property>
|
||||
<property name="search_column">0</property>
|
||||
<child internal-child="selection">
|
||||
<object class="GtkTreeSelection"/>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkTreeViewColumn" id="tvcPlatformName">
|
||||
<property name="resizable">True</property>
|
||||
<property name="title" translatable="yes">Name</property>
|
||||
<property name="clickable">True</property>
|
||||
<property name="reorderable">True</property>
|
||||
<property name="sort_column_id">0</property>
|
||||
<child>
|
||||
<object class="GtkCellRendererText"/>
|
||||
<attributes>
|
||||
<attribute name="text">0</attribute>
|
||||
</attributes>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child type="label">
|
||||
<object class="GtkLabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">Platforms</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkFrame">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label_xalign">0</property>
|
||||
<property name="shadow_type">none</property>
|
||||
<child>
|
||||
<object class="GtkAlignment">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="left_padding">12</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkToolbar" id="tbParameters">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbParameterAdd">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Add</property>
|
||||
<property name="label" translatable="yes">_Add</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-add</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbParameterEdit">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Edit</property>
|
||||
<property name="label" translatable="yes">_Edit</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-edit</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbParameterRemove">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">_Remove</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-remove</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSeparatorToolItem">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbParameterMoveUp">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Move Up</property>
|
||||
<property name="label" translatable="yes">Move _Up</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-go-up</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbParameterMoveDown">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Move Down</property>
|
||||
<property name="label" translatable="yes">Move _Down</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-go-down</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkScrolledWindow">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="shadow_type">in</property>
|
||||
<child>
|
||||
<object class="GtkTreeView" id="tvParameters">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="model">tsParameters</property>
|
||||
<property name="search_column">0</property>
|
||||
<child internal-child="selection">
|
||||
<object class="GtkTreeSelection"/>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkTreeViewColumn" id="tvcParameterName">
|
||||
<property name="resizable">True</property>
|
||||
<property name="title" translatable="yes">Name</property>
|
||||
<property name="clickable">True</property>
|
||||
<property name="reorderable">True</property>
|
||||
<property name="sort_column_id">0</property>
|
||||
<child>
|
||||
<object class="GtkCellRendererText"/>
|
||||
<attributes>
|
||||
<attribute name="text">0</attribute>
|
||||
</attributes>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkTreeViewColumn" id="tvcParameterValue">
|
||||
<property name="resizable">True</property>
|
||||
<property name="title" translatable="yes">Value</property>
|
||||
<property name="clickable">True</property>
|
||||
<property name="reorderable">True</property>
|
||||
<property name="sort_column_id">1</property>
|
||||
<child>
|
||||
<object class="GtkCellRendererText"/>
|
||||
<attributes>
|
||||
<attribute name="text">1</attribute>
|
||||
</attributes>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child type="label">
|
||||
<object class="GtkLabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">Parameters</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkFrame">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label_xalign">0</property>
|
||||
<property name="shadow_type">none</property>
|
||||
<child>
|
||||
<object class="GtkAlignment">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="left_padding">12</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkToolbar" id="tbFiles">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbFileAdd">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Add</property>
|
||||
<property name="label" translatable="yes">_Add</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-add</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbFileEdit">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Edit</property>
|
||||
<property name="label" translatable="yes">_Edit</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-edit</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbFileRemove">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">_Remove</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-remove</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSeparatorToolItem">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbFileMoveUp">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Move Up</property>
|
||||
<property name="label" translatable="yes">Move _Up</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-go-up</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToolButton" id="tsbFileMoveDown">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Move Down</property>
|
||||
<property name="label" translatable="yes">Move _Down</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="stock_id">gtk-go-down</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkScrolledWindow">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="shadow_type">in</property>
|
||||
<child>
|
||||
<object class="GtkTreeView" id="tvFiles">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="model">tsFiles</property>
|
||||
<property name="search_column">0</property>
|
||||
<child internal-child="selection">
|
||||
<object class="GtkTreeSelection"/>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkTreeViewColumn" id="tvcFileSourceFileName">
|
||||
<property name="resizable">True</property>
|
||||
<property name="title" translatable="yes">Source</property>
|
||||
<property name="clickable">True</property>
|
||||
<property name="reorderable">True</property>
|
||||
<property name="sort_column_id">0</property>
|
||||
<child>
|
||||
<object class="GtkCellRendererText"/>
|
||||
<attributes>
|
||||
<attribute name="text">0</attribute>
|
||||
</attributes>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkTreeViewColumn" id="tvcFileDestinationFileName">
|
||||
<property name="resizable">True</property>
|
||||
<property name="title" translatable="yes">Destination</property>
|
||||
<property name="clickable">True</property>
|
||||
<property name="reorderable">True</property>
|
||||
<property name="sort_column_id">1</property>
|
||||
<child>
|
||||
<object class="GtkCellRendererText"/>
|
||||
<attributes>
|
||||
<attribute name="text">1</attribute>
|
||||
</attributes>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child type="label">
|
||||
<object class="GtkLabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">Files</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">2</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
||||
@ -749,6 +749,7 @@
|
||||
<Content Include="Editors\Markup\Commands.uexml" />
|
||||
<Content Include="Extensions\Microsoft\Associations\OLE1.uexml" />
|
||||
<Content Include="Extensions\FileSystem\Associations\Microsoft\NTFS.uexml" />
|
||||
<Content Include="Editors\Setup\BootstrapScript\BootstrapScriptEditor.glade" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Configuration\Application.upl" />
|
||||
@ -815,6 +816,8 @@
|
||||
<Folder Include="Extensions\Office\" />
|
||||
<Folder Include="Extensions\Office\Associations\" />
|
||||
<Folder Include="Extensions\Office\Associations\Presentation\" />
|
||||
<Folder Include="Editors\Setup\" />
|
||||
<Folder Include="Editors\Setup\BootstrapScript\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Extensions\SoftwareDeveloper\Templates\Project\Software Development\Arduino\Images\Blink.xcf" />
|
||||
|
||||
@ -0,0 +1,408 @@
|
||||
//
|
||||
// BootstrapScriptEditor.cs
|
||||
//
|
||||
// Author:
|
||||
// Michael Becker <alcexhim@gmail.com>
|
||||
//
|
||||
// Copyright (c) 2020 Mike Becker's Software
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using MBS.Framework.UserInterface;
|
||||
using MBS.Framework.UserInterface.Controls;
|
||||
using MBS.Framework.UserInterface.Dialogs;
|
||||
using UniversalEditor.ObjectModels.Setup.Microsoft.ACME.BootstrapScript;
|
||||
using UniversalEditor.UserInterface;
|
||||
using UniversalEditor.UserInterface.Dialogs;
|
||||
|
||||
namespace UniversalEditor.Plugins.Setup.UserInterface
|
||||
{
|
||||
[ContainerLayout("~/Editors/Setup/BootstrapScript/BootstrapScriptEditor.glade")]
|
||||
public class BootstrapScriptEditor : Editor
|
||||
{
|
||||
private ListView tvPlatforms;
|
||||
private ListView tvParameters;
|
||||
private ListView tvFiles;
|
||||
|
||||
private Toolbar tbPlatforms;
|
||||
private Toolbar tbParameters;
|
||||
private Toolbar tbFiles;
|
||||
|
||||
private static EditorReference _er = null;
|
||||
public override EditorReference MakeReference()
|
||||
{
|
||||
if (_er == null)
|
||||
{
|
||||
_er = base.MakeReference();
|
||||
_er.SupportedObjectModels.Add(typeof(BootstrapScriptObjectModel));
|
||||
}
|
||||
return _er;
|
||||
}
|
||||
|
||||
[EventHandler(nameof(tvPlatforms), "SelectionChanged")]
|
||||
private void tvPlatforms_SelectionChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (tvPlatforms.SelectedRows.Count < 1) return;
|
||||
|
||||
tvParameters.Model.Rows.Clear();
|
||||
tvFiles.Model.Rows.Clear();
|
||||
|
||||
BootstrapOperatingSystem os = tvPlatforms.SelectedRows[0].GetExtraData<BootstrapOperatingSystem>("item");
|
||||
|
||||
foreach (KeyValuePair<string, string> kvp in os.Parameters)
|
||||
{
|
||||
TreeModelRow row = new TreeModelRow(new TreeModelRowColumn[]
|
||||
{
|
||||
new TreeModelRowColumn(tvParameters.Model.Columns[0], kvp.Key),
|
||||
new TreeModelRowColumn(tvParameters.Model.Columns[1], kvp.Value)
|
||||
});
|
||||
row.SetExtraData<KeyValuePair<string, string>>("item", kvp);
|
||||
tvParameters.Model.Rows.Add(row);
|
||||
}
|
||||
foreach (BootstrapFile file in os.Files)
|
||||
{
|
||||
TreeModelRow row = new TreeModelRow(new TreeModelRowColumn[]
|
||||
{
|
||||
new TreeModelRowColumn(tvFiles.Model.Columns[0], file.SourceFileName),
|
||||
new TreeModelRowColumn(tvFiles.Model.Columns[1], file.DestinationFileName)
|
||||
});
|
||||
row.SetExtraData<BootstrapFile>("item", file);
|
||||
tvFiles.Model.Rows.Add(row);
|
||||
}
|
||||
}
|
||||
|
||||
[EventHandler(nameof(tvPlatforms), "RowActivated")]
|
||||
private void tvPlatforms_RowActivated(object sender, ListViewRowActivatedEventArgs e)
|
||||
{
|
||||
if (e.Row == null) return;
|
||||
tsbPlatformEdit_Click(sender, e);
|
||||
}
|
||||
|
||||
private void tsbPlatformAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
BootstrapScriptObjectModel setup = (ObjectModel as BootstrapScriptObjectModel);
|
||||
if (setup == null) return;
|
||||
|
||||
CustomOptionsDialog dlg = new CustomOptionsDialog();
|
||||
dlg.CustomOptions.Add(new CustomOptionText("Name", "Platform _name"));
|
||||
if (dlg.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
string platformName = dlg.CustomOptions[0].GetValue()?.ToString();
|
||||
|
||||
BootstrapOperatingSystem os = new BootstrapOperatingSystem();
|
||||
os.Name = platformName;
|
||||
|
||||
TreeModelRow row = new TreeModelRow(new TreeModelRowColumn[]
|
||||
{
|
||||
new TreeModelRowColumn(tvPlatforms.Model.Columns[0], platformName)
|
||||
});
|
||||
row.SetExtraData<BootstrapOperatingSystem>("item", os);
|
||||
tvPlatforms.Model.Rows.Add(row);
|
||||
|
||||
BeginEdit();
|
||||
setup.OperatingSystems.Add(os);
|
||||
EndEdit();
|
||||
}
|
||||
}
|
||||
|
||||
private void tsbPlatformEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
BootstrapScriptObjectModel setup = (ObjectModel as BootstrapScriptObjectModel);
|
||||
if (setup == null) return;
|
||||
|
||||
if (tvPlatforms.SelectedRows.Count < 1) return;
|
||||
|
||||
BootstrapOperatingSystem os = tvPlatforms.SelectedRows[0].GetExtraData<BootstrapOperatingSystem>("item");
|
||||
if (os == null) return;
|
||||
|
||||
CustomOptionsDialog dlg = new CustomOptionsDialog();
|
||||
dlg.CustomOptions.Add(new CustomOptionText("Name", "Platform _name", os.Name));
|
||||
if (dlg.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
string platformName = dlg.CustomOptions[0].GetValue()?.ToString();
|
||||
|
||||
BeginEdit();
|
||||
os.Name = platformName;
|
||||
EndEdit();
|
||||
|
||||
tvPlatforms.SelectedRows[0].RowColumns[0].Value = platformName;
|
||||
}
|
||||
}
|
||||
|
||||
private void tsbPlatformRemove_Click(object sender, EventArgs e)
|
||||
{
|
||||
BootstrapScriptObjectModel setup = (ObjectModel as BootstrapScriptObjectModel);
|
||||
if (setup == null) return;
|
||||
|
||||
if (tvPlatforms.SelectedRows.Count < 1) return;
|
||||
|
||||
BootstrapOperatingSystem os = tvPlatforms.SelectedRows[0].GetExtraData<BootstrapOperatingSystem>("item");
|
||||
if (os == null) return;
|
||||
|
||||
if (MessageDialog.ShowDialog("Removing the selected platform will remove all associated parameters and files. Continue?", "Remove Platform", MessageDialogButtons.YesNo, MessageDialogIcon.Warning) != DialogResult.Yes)
|
||||
return;
|
||||
|
||||
BeginEdit();
|
||||
setup.OperatingSystems.Remove(os);
|
||||
EndEdit();
|
||||
|
||||
tvPlatforms.Model.Rows.Remove(tvPlatforms.SelectedRows[0]);
|
||||
}
|
||||
|
||||
[EventHandler(nameof(tvParameters), "RowActivated")]
|
||||
private void tvParameters_RowActivated(object sender, ListViewRowActivatedEventArgs e)
|
||||
{
|
||||
if (e.Row == null) return;
|
||||
tsbParameterEdit_Click(sender, e);
|
||||
}
|
||||
|
||||
private void tsbParameterAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
BootstrapScriptObjectModel setup = (ObjectModel as BootstrapScriptObjectModel);
|
||||
if (setup == null) return;
|
||||
|
||||
if (tvPlatforms.SelectedRows.Count < 1) return;
|
||||
|
||||
BootstrapOperatingSystem os = tvPlatforms.SelectedRows[0].GetExtraData<BootstrapOperatingSystem>("item");
|
||||
if (os == null) return;
|
||||
|
||||
CustomOptionsDialog dlg = new CustomOptionsDialog();
|
||||
dlg.CustomOptions.Add(new CustomOptionText("Name", "Parameter _name"));
|
||||
dlg.CustomOptions.Add(new CustomOptionText("Value", "_Value"));
|
||||
if (dlg.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
string name = dlg.CustomOptions[0].GetValue()?.ToString();
|
||||
string value = dlg.CustomOptions[1].GetValue()?.ToString();
|
||||
|
||||
TreeModelRow row = new TreeModelRow(new TreeModelRowColumn[]
|
||||
{
|
||||
new TreeModelRowColumn(tvParameters.Model.Columns[0], name),
|
||||
new TreeModelRowColumn(tvParameters.Model.Columns[1], value)
|
||||
});
|
||||
row.SetExtraData<KeyValuePair<string, string>>("item", new KeyValuePair<string, string>(name, value));
|
||||
tvParameters.Model.Rows.Add(row);
|
||||
|
||||
BeginEdit();
|
||||
os.Parameters.Add(name, value);
|
||||
EndEdit();
|
||||
}
|
||||
}
|
||||
|
||||
private void tsbParameterEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
BootstrapScriptObjectModel setup = (ObjectModel as BootstrapScriptObjectModel);
|
||||
if (setup == null) return;
|
||||
|
||||
if (tvPlatforms.SelectedRows.Count < 1) return;
|
||||
|
||||
BootstrapOperatingSystem os = tvPlatforms.SelectedRows[0].GetExtraData<BootstrapOperatingSystem>("item");
|
||||
if (os == null) return;
|
||||
|
||||
string oldname = tvParameters.SelectedRows[0].GetExtraData<KeyValuePair<string, string>>("item").Key;
|
||||
|
||||
CustomOptionsDialog dlg = new CustomOptionsDialog();
|
||||
dlg.CustomOptions.Add(new CustomOptionText("Name", "Parameter _name", oldname));
|
||||
dlg.CustomOptions.Add(new CustomOptionText("Value", "_Value", os.Parameters[oldname]));
|
||||
if (dlg.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
string name = dlg.CustomOptions[0].GetValue()?.ToString();
|
||||
string value = dlg.CustomOptions[1].GetValue()?.ToString();
|
||||
|
||||
if (os.Parameters.ContainsKey(oldname))
|
||||
{
|
||||
os.Parameters.Remove(oldname);
|
||||
}
|
||||
|
||||
BeginEdit();
|
||||
os.Parameters[name] = value;
|
||||
EndEdit();
|
||||
|
||||
tvParameters.SelectedRows[0].RowColumns[0].Value = name;
|
||||
tvParameters.SelectedRows[0].RowColumns[1].Value = value;
|
||||
}
|
||||
}
|
||||
|
||||
private void tsbParameterRemove_Click(object sender, EventArgs e)
|
||||
{
|
||||
BootstrapScriptObjectModel setup = (ObjectModel as BootstrapScriptObjectModel);
|
||||
if (setup == null) return;
|
||||
|
||||
if (tvPlatforms.SelectedRows.Count < 1) return;
|
||||
|
||||
BootstrapOperatingSystem os = tvPlatforms.SelectedRows[0].GetExtraData<BootstrapOperatingSystem>("item");
|
||||
if (os == null) return;
|
||||
|
||||
string name = tvParameters.SelectedRows[0].GetExtraData<KeyValuePair<string, string>>("item").Key;
|
||||
|
||||
if (MessageDialog.ShowDialog(String.Format("Are you sure you want to remove the '{0}' parameter?", name), "Remove Parameter", MessageDialogButtons.YesNo, MessageDialogIcon.Warning) != DialogResult.Yes)
|
||||
return;
|
||||
|
||||
BeginEdit();
|
||||
os.Parameters.Remove(name);
|
||||
EndEdit();
|
||||
|
||||
tvParameters.Model.Rows.Remove(tvParameters.SelectedRows[0]);
|
||||
}
|
||||
|
||||
[EventHandler(nameof(tvFiles), "RowActivated")]
|
||||
private void tvFiles_RowActivated(object sender, ListViewRowActivatedEventArgs e)
|
||||
{
|
||||
if (e.Row == null) return;
|
||||
tsbFileEdit_Click(sender, e);
|
||||
}
|
||||
|
||||
private void tsbFileAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
BootstrapScriptObjectModel setup = (ObjectModel as BootstrapScriptObjectModel);
|
||||
if (setup == null) return;
|
||||
|
||||
if (tvPlatforms.SelectedRows.Count < 1) return;
|
||||
|
||||
BootstrapOperatingSystem os = tvPlatforms.SelectedRows[0].GetExtraData<BootstrapOperatingSystem>("item");
|
||||
if (os == null) return;
|
||||
|
||||
CustomOptionsDialog dlg = new CustomOptionsDialog();
|
||||
dlg.CustomOptions.Add(new CustomOptionText("SourceFileName", "_Source"));
|
||||
dlg.CustomOptions.Add(new CustomOptionText("DestinationFileName", "_Destination"));
|
||||
if (dlg.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
string name = dlg.CustomOptions[0].GetValue()?.ToString();
|
||||
string value = dlg.CustomOptions[1].GetValue()?.ToString();
|
||||
|
||||
TreeModelRow row = new TreeModelRow(new TreeModelRowColumn[]
|
||||
{
|
||||
new TreeModelRowColumn(tvFiles.Model.Columns[0], name),
|
||||
new TreeModelRowColumn(tvFiles.Model.Columns[1], value)
|
||||
});
|
||||
|
||||
BootstrapFile file = new BootstrapFile();
|
||||
file.SourceFileName = name;
|
||||
file.DestinationFileName = value;
|
||||
row.SetExtraData<BootstrapFile>("item", file);
|
||||
tvFiles.Model.Rows.Add(row);
|
||||
|
||||
BeginEdit();
|
||||
os.Files.Add(file);
|
||||
EndEdit();
|
||||
}
|
||||
}
|
||||
|
||||
private void tsbFileEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
BootstrapScriptObjectModel setup = (ObjectModel as BootstrapScriptObjectModel);
|
||||
if (setup == null) return;
|
||||
|
||||
if (tvPlatforms.SelectedRows.Count < 1) return;
|
||||
|
||||
BootstrapOperatingSystem os = tvPlatforms.SelectedRows[0].GetExtraData<BootstrapOperatingSystem>("item");
|
||||
if (os == null) return;
|
||||
|
||||
if (tvFiles.SelectedRows.Count < 1) return;
|
||||
|
||||
BootstrapFile file = tvFiles.SelectedRows[0].GetExtraData<BootstrapFile>("item");
|
||||
|
||||
CustomOptionsDialog dlg = new CustomOptionsDialog();
|
||||
dlg.CustomOptions.Add(new CustomOptionText("Name", "_Source", file.SourceFileName));
|
||||
dlg.CustomOptions.Add(new CustomOptionText("Value", "_Destination", file.DestinationFileName));
|
||||
if (dlg.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
string name = dlg.CustomOptions[0].GetValue()?.ToString();
|
||||
string value = dlg.CustomOptions[1].GetValue()?.ToString();
|
||||
|
||||
BeginEdit();
|
||||
file.SourceFileName = name;
|
||||
file.DestinationFileName = value;
|
||||
EndEdit();
|
||||
|
||||
tvFiles.SelectedRows[0].RowColumns[0].Value = name;
|
||||
tvFiles.SelectedRows[0].RowColumns[1].Value = value;
|
||||
}
|
||||
}
|
||||
|
||||
private void tsbFileRemove_Click(object sender, EventArgs e)
|
||||
{
|
||||
BootstrapScriptObjectModel setup = (ObjectModel as BootstrapScriptObjectModel);
|
||||
if (setup == null) return;
|
||||
|
||||
if (tvPlatforms.SelectedRows.Count < 1) return;
|
||||
|
||||
BootstrapOperatingSystem os = tvPlatforms.SelectedRows[0].GetExtraData<BootstrapOperatingSystem>("item");
|
||||
if (os == null) return;
|
||||
|
||||
BootstrapFile file = tvFiles.SelectedRows[0].GetExtraData<BootstrapFile>("item");
|
||||
|
||||
if (MessageDialog.ShowDialog(String.Format("Are you sure you want to remove the '{0}' file?", file.SourceFileName), "Remove File", MessageDialogButtons.YesNo, MessageDialogIcon.Warning) != DialogResult.Yes)
|
||||
return;
|
||||
|
||||
BeginEdit();
|
||||
os.Files.Remove(file);
|
||||
EndEdit();
|
||||
|
||||
tvFiles.Model.Rows.Remove(tvFiles.SelectedRows[0]);
|
||||
}
|
||||
|
||||
protected override void OnCreated(EventArgs e)
|
||||
{
|
||||
base.OnCreated(e);
|
||||
|
||||
(tbPlatforms.Items["tsbPlatformAdd"] as ToolbarItemButton).Click += tsbPlatformAdd_Click;
|
||||
(tbPlatforms.Items["tsbPlatformEdit"] as ToolbarItemButton).Click += tsbPlatformEdit_Click;
|
||||
(tbPlatforms.Items["tsbPlatformRemove"] as ToolbarItemButton).Click += tsbPlatformRemove_Click;
|
||||
|
||||
(tbParameters.Items["tsbParameterAdd"] as ToolbarItemButton).Click += tsbParameterAdd_Click;
|
||||
(tbParameters.Items["tsbParameterEdit"] as ToolbarItemButton).Click += tsbParameterEdit_Click;
|
||||
(tbParameters.Items["tsbParameterRemove"] as ToolbarItemButton).Click += tsbParameterRemove_Click;
|
||||
|
||||
(tbFiles.Items["tsbFileAdd"] as ToolbarItemButton).Click += tsbFileAdd_Click;
|
||||
(tbFiles.Items["tsbFileEdit"] as ToolbarItemButton).Click += tsbFileEdit_Click;
|
||||
(tbFiles.Items["tsbFileRemove"] as ToolbarItemButton).Click += tsbFileRemove_Click;
|
||||
|
||||
OnObjectModelChanged(e);
|
||||
}
|
||||
protected override void OnObjectModelChanged(EventArgs e)
|
||||
{
|
||||
base.OnObjectModelChanged(e);
|
||||
|
||||
if (!IsCreated) return;
|
||||
|
||||
tvPlatforms.Model.Rows.Clear();
|
||||
tvParameters.Model.Rows.Clear();
|
||||
tvFiles.Model.Rows.Clear();
|
||||
|
||||
BootstrapScriptObjectModel setup = (ObjectModel as BootstrapScriptObjectModel);
|
||||
if (setup == null) return;
|
||||
|
||||
foreach (BootstrapOperatingSystem os in setup.OperatingSystems)
|
||||
{
|
||||
TreeModelRow row = new TreeModelRow(new TreeModelRowColumn[]
|
||||
{
|
||||
new TreeModelRowColumn(tvPlatforms.Model.Columns[0], os.Name)
|
||||
});
|
||||
row.SetExtraData<BootstrapOperatingSystem>("item", os);
|
||||
tvPlatforms.Model.Rows.Add(row);
|
||||
}
|
||||
}
|
||||
|
||||
protected override EditorSelection CreateSelectionInternal(object content)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
public override void UpdateSelections()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
//
|
||||
// AssemblyInfo.cs
|
||||
//
|
||||
// Author:
|
||||
// Michael Becker <alcexhim@gmail.com>
|
||||
//
|
||||
// Copyright (c) 2020 Mike Becker's Software
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
// Information about this assembly is defined by the following attributes.
|
||||
// Change them to the values specific to your project.
|
||||
|
||||
[assembly: AssemblyTitle("UniversalEditor.Plugins.Setup.UserInterface")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Mike Becker's Software")]
|
||||
[assembly: AssemblyProduct("")]
|
||||
[assembly: AssemblyCopyright("Mike Becker's Software")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
|
||||
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
|
||||
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
|
||||
|
||||
[assembly: AssemblyVersion("1.0.*")]
|
||||
|
||||
// The following attributes are used to specify the signing key for the assembly,
|
||||
// if desired. See the Mono documentation for more information about signing.
|
||||
|
||||
//[assembly: AssemblyDelaySign(false)]
|
||||
//[assembly: AssemblyKeyFile("")]
|
||||
@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{047F47EF-2A68-45A6-9F81-4EB499D9FB06}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>UniversalEditor.Plugins.Setup.UserInterface</RootNamespace>
|
||||
<AssemblyName>UniversalEditor.Plugins.Setup.UserInterface</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
|
||||
<ReleaseVersion>4.0.2019.12</ReleaseVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\Output\Debug\Plugins</OutputPath>
|
||||
<DefineConstants>DEBUG;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>..\..\Output\Release\Plugins</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Editors\BootstrapScriptEditor.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Editors\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Plugins\UniversalEditor.Plugins.Microsoft.Setup\UniversalEditor.Plugins.Microsoft.Setup.csproj">
|
||||
<Project>{05127997-B7F3-4802-8021-06C048C8FE63}</Project>
|
||||
<Name>UniversalEditor.Plugins.Microsoft.Setup</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\MBS.Framework\MBS.Framework\MBS.Framework.csproj">
|
||||
<Project>{00266B21-35C9-4A7F-A6BA-D54D7FDCC25C}</Project>
|
||||
<Name>MBS.Framework</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\MBS.Framework.UserInterface\Libraries\MBS.Framework.UserInterface\MBS.Framework.UserInterface.csproj">
|
||||
<Project>{29E1C1BB-3EA5-4062-B62F-85EEC703FE07}</Project>
|
||||
<Name>MBS.Framework.UserInterface</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Libraries\UniversalEditor.Core\UniversalEditor.Core.csproj">
|
||||
<Project>{2D4737E6-6D95-408A-90DB-8DFF38147E85}</Project>
|
||||
<Name>UniversalEditor.Core</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Libraries\UniversalEditor.Essential\UniversalEditor.Essential.csproj">
|
||||
<Project>{30467E5C-05BC-4856-AADC-13906EF4CADD}</Project>
|
||||
<Name>UniversalEditor.Essential</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Libraries\UniversalEditor.UserInterface\UniversalEditor.UserInterface.csproj">
|
||||
<Project>{8622EBC4-8E20-476E-B284-33D472081F5C}</Project>
|
||||
<Name>UniversalEditor.UserInterface</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@ -60,7 +60,9 @@ namespace UniversalEditor.DataFormats.Setup.Microsoft.ACME.BootstrapScript
|
||||
base.AfterLoadInternal(objectModels);
|
||||
|
||||
PropertyListObjectModel plom = (objectModels.Pop() as PropertyListObjectModel);
|
||||
|
||||
BootstrapScriptObjectModel script = (objectModels.Pop() as BootstrapScriptObjectModel);
|
||||
if (script == null) throw new ObjectModelNotSupportedException();
|
||||
|
||||
foreach (Group grp in plom.Items.OfType<Group>())
|
||||
{
|
||||
@ -89,6 +91,10 @@ namespace UniversalEditor.DataFormats.Setup.Microsoft.ACME.BootstrapScript
|
||||
operatingSystem.Require31Enabled = true;
|
||||
operatingSystem.Require31Message = grp.GetPropertyValue<string>("Require31");
|
||||
}
|
||||
if (grp.Items.Contains<Property>("DrvModName"))
|
||||
{
|
||||
operatingSystem.DriverModuleName = grp.GetPropertyValue<string>("DrvModName");
|
||||
}
|
||||
}
|
||||
else if (grp.Name == "Files" || grp.Name.EndsWith(" Files"))
|
||||
{
|
||||
|
||||
@ -20,6 +20,7 @@
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace UniversalEditor.ObjectModels.Setup.Microsoft.ACME.BootstrapScript
|
||||
{
|
||||
@ -73,43 +74,43 @@ namespace UniversalEditor.ObjectModels.Setup.Microsoft.ACME.BootstrapScript
|
||||
/// <summary>
|
||||
/// The title of the setup initialization dialog.
|
||||
/// </summary>
|
||||
public string WindowTitle { get { return mvarWindowTitle; } set { mvarWindowTitle = value; } }
|
||||
public string WindowTitle { get { return Parameters.ContainsKey("WndTitle") ? Parameters["WndTitle"] : mvarWindowTitle; } set { mvarWindowTitle = value; Parameters["WndTitle"] = value; } }
|
||||
|
||||
private string mvarWindowMessage = "Initializing Setup...";
|
||||
/// <summary>
|
||||
/// The message to display inside the setup initialization dialog.
|
||||
/// </summary>
|
||||
public string WindowMessage { get { return mvarWindowMessage; } set { mvarWindowMessage = value; } }
|
||||
public string WindowMessage { get { return Parameters.ContainsKey("WndMess") ? Parameters["WndMess"] : mvarWindowMessage; } set { mvarWindowMessage = value; Parameters["WndMess"] = value; } }
|
||||
|
||||
private int mvarTemporaryDirectorySize = 3200;
|
||||
/// <summary>
|
||||
/// The size of the directory in which to place the bootstrapped files.
|
||||
/// </summary>
|
||||
public int TemporaryDirectorySize { get { return mvarTemporaryDirectorySize; } set { mvarTemporaryDirectorySize = value; } }
|
||||
public int TemporaryDirectorySize { get { return Parameters.ContainsKey("TmpDirSize") ? Int32.Parse(Parameters["TmpDirSize"]) : mvarTemporaryDirectorySize; } set { mvarTemporaryDirectorySize = value; Parameters["TmpDirSize"] = value.ToString(); } }
|
||||
|
||||
private string mvarTemporaryDirectoryName = "~msstfqf.t";
|
||||
/// <summary>
|
||||
/// The name of the directory in which to place the bootstrapped files.
|
||||
/// </summary>
|
||||
public string TemporaryDirectoryName { get { return mvarTemporaryDirectoryName; } set { mvarTemporaryDirectoryName = value; } }
|
||||
public string TemporaryDirectoryName { get { return Parameters.ContainsKey("TmpDirName") ? Parameters["TmpDirName"] : mvarTemporaryDirectoryName; } set { mvarTemporaryDirectoryName = value; Parameters["TmpDirName"] = value; } }
|
||||
|
||||
private string mvarCommandLine = String.Empty;
|
||||
/// <summary>
|
||||
/// The command to execute after bootstrapping, including any arguments.
|
||||
/// </summary>
|
||||
public string CommandLine { get { return mvarCommandLine; } set { mvarCommandLine = value; } }
|
||||
public string CommandLine { get { return Parameters.ContainsKey("CmdLine") ? Parameters["CmdLine"] : mvarCommandLine; } set { mvarCommandLine = value; Parameters["CmdLine"] = value; } }
|
||||
|
||||
private string mvarWindowClassName = "Stuff-Shell";
|
||||
/// <summary>
|
||||
/// The name of the window class to register for the setup initialization dialog.
|
||||
/// </summary>
|
||||
public string WindowClassName { get { return mvarWindowClassName; } set { mvarWindowClassName = value; } }
|
||||
public string WindowClassName { get { return Parameters.ContainsKey("DrvWinClass") ? Parameters["DrvWinClass"] : mvarWindowClassName; } set { mvarWindowClassName = value; Parameters["DrvWinClass"] = value; } }
|
||||
|
||||
private string mvarRequire31Message = "This application requires a newer version of Microsoft Windows.";
|
||||
/// <summary>
|
||||
/// The message to display when a newer version of Microsoft Windows is required.
|
||||
/// </summary>
|
||||
public string Require31Message { get { return mvarRequire31Message; } set { mvarRequire31Message = value; } }
|
||||
public string Require31Message { get { return Parameters.ContainsKey("Require31") ? Parameters["Require31"] : mvarRequire31Message; } set { mvarRequire31Message = value; Parameters["Require31"] = value; } }
|
||||
|
||||
private bool mvarRequire31Enabled = false;
|
||||
/// <summary>
|
||||
@ -117,20 +118,19 @@ namespace UniversalEditor.ObjectModels.Setup.Microsoft.ACME.BootstrapScript
|
||||
/// </summary>
|
||||
public bool Require31Enabled { get { return mvarRequire31Enabled; } set { mvarRequire31Enabled = value; } }
|
||||
|
||||
private string mvarDriverModuleName = null;
|
||||
public string DriverModuleName { get { return Parameters.ContainsKey("DrvModName") ? Parameters["DrvModName"] : mvarDriverModuleName; } set { mvarDriverModuleName = value; Parameters["DrvModName"] = value; } }
|
||||
|
||||
private BootstrapFile.BootstrapFileCollection mvarFiles = new BootstrapFile.BootstrapFileCollection();
|
||||
public BootstrapFile.BootstrapFileCollection Files { get { return mvarFiles; } }
|
||||
|
||||
public object Clone()
|
||||
{
|
||||
BootstrapOperatingSystem clone = new BootstrapOperatingSystem();
|
||||
clone.WindowTitle = (mvarWindowTitle.Clone() as string);
|
||||
clone.WindowMessage = (mvarWindowMessage.Clone() as string);
|
||||
clone.TemporaryDirectorySize = mvarTemporaryDirectorySize;
|
||||
clone.TemporaryDirectoryName = (mvarTemporaryDirectoryName.Clone() as string);
|
||||
clone.CommandLine = (mvarCommandLine.Clone() as string);
|
||||
clone.WindowClassName = (mvarWindowClassName.Clone() as string);
|
||||
clone.Require31Message = (mvarRequire31Message.Clone() as string);
|
||||
clone.Require31Enabled = mvarRequire31Enabled;
|
||||
foreach (KeyValuePair<string, string> kvp in Parameters)
|
||||
{
|
||||
clone.Parameters.Add(kvp.Key, kvp.Value);
|
||||
}
|
||||
foreach (BootstrapFile file in mvarFiles)
|
||||
{
|
||||
clone.Files.Add(file.Clone() as BootstrapFile);
|
||||
@ -144,6 +144,8 @@ namespace UniversalEditor.ObjectModels.Setup.Microsoft.ACME.BootstrapScript
|
||||
/// </summary>
|
||||
public static BootstrapOperatingSystem PlatformIndependent { get { return mvarPlatformIndependent; } }
|
||||
|
||||
public Dictionary<string, string> Parameters { get; } = new Dictionary<string, string>();
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return mvarName;
|
||||
|
||||
@ -177,6 +177,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UniversalEditor.Plugins.Off
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UniversalEditor.Plugins.Office.UserInterface", "Plugins.UserInterface\UniversalEditor.Plugins.Office.UserInterface\UniversalEditor.Plugins.Office.UserInterface.csproj", "{317CDFBC-9B41-4157-B2C0-D37E2BCEB42B}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UniversalEditor.Plugins.Setup.UserInterface", "Plugins.UserInterface\UniversalEditor.Plugins.Setup.UserInterface\UniversalEditor.Plugins.Setup.UserInterface.csproj", "{047F47EF-2A68-45A6-9F81-4EB499D9FB06}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@ -513,6 +515,10 @@ Global
|
||||
{317CDFBC-9B41-4157-B2C0-D37E2BCEB42B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{317CDFBC-9B41-4157-B2C0-D37E2BCEB42B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{317CDFBC-9B41-4157-B2C0-D37E2BCEB42B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{047F47EF-2A68-45A6-9F81-4EB499D9FB06}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{047F47EF-2A68-45A6-9F81-4EB499D9FB06}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{047F47EF-2A68-45A6-9F81-4EB499D9FB06}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{047F47EF-2A68-45A6-9F81-4EB499D9FB06}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(NestedProjects) = preSolution
|
||||
{6F0AB1AF-E1A1-4D19-B19C-05BBB15C94B2} = {05D15661-E684-4EC9-8FBD-C014BA433CC5}
|
||||
@ -596,6 +602,7 @@ Global
|
||||
{03B0D6C8-1C3C-4972-B102-3350FB628C5D} = {7B535D74-5496-4802-B809-89ED88274A91}
|
||||
{5D62192C-EB3E-4E73-A440-C53579B6EB47} = {2ED32D16-6C06-4450-909A-40D32DA67FB4}
|
||||
{317CDFBC-9B41-4157-B2C0-D37E2BCEB42B} = {7B535D74-5496-4802-B809-89ED88274A91}
|
||||
{047F47EF-2A68-45A6-9F81-4EB499D9FB06} = {7B535D74-5496-4802-B809-89ED88274A91}
|
||||
EndGlobalSection
|
||||
GlobalSection(MonoDevelopProperties) = preSolution
|
||||
Policies = $0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user