Changeset 3208
- Timestamp:
- 03/24/10 19:33:44 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.PluginAdministrator/3.3
- Files:
-
- 10 edited
- 2 copied
- 7 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginAdministrator/3.3/ConnectionPropertiesAction.cs
r3206 r3208 26 26 27 27 namespace HeuristicLab.PluginAdministrator { 28 internal static class EditConnectionAction {28 internal static class ConnectionPropertiesAction { 29 29 internal static void Execute(IMainForm mainForm) { 30 Connection SetupView connectionSetup = new ConnectionSetupView();31 connection Setup.Show();30 ConnectionPropertiesView connectionPropertiesView = new ConnectionPropertiesView(); 31 connectionPropertiesView.Show(); 32 32 } 33 33 } -
trunk/sources/HeuristicLab.PluginAdministrator/3.3/ConnectionPropertiesMenuItem.cs
r3206 r3208 26 26 27 27 namespace HeuristicLab.PluginAdministrator { 28 internal class EditConnectionMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItem, IUserInterfaceItemProvider {28 internal class ConnectionPropertiesMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItem, IUserInterfaceItemProvider { 29 29 public override string Name { 30 get { return " EditConnection Properties"; }30 get { return "Connection Properties"; } 31 31 } 32 32 33 33 public override IEnumerable<string> Structure { 34 get { return new string[] { " Plugin Server" }; }34 get { return new string[] { "Settings" }; } 35 35 } 36 36 37 37 public override int Position { 38 get { return 1300; }38 get { return 2100; } 39 39 } 40 40 41 41 public override void Execute() { 42 EditConnectionAction.Execute(MainFormManager.MainForm);42 ConnectionPropertiesAction.Execute(MainFormManager.MainForm); 43 43 } 44 44 } -
trunk/sources/HeuristicLab.PluginAdministrator/3.3/ConnectionPropertiesView.Designer.cs
r3206 r3208 20 20 #endregion 21 21 namespace HeuristicLab.PluginAdministrator { 22 partial class Connection SetupView {22 partial class ConnectionPropertiesView { 23 23 /// <summary> 24 24 /// Required designer variable. -
trunk/sources/HeuristicLab.PluginAdministrator/3.3/ConnectionPropertiesView.cs
r3206 r3208 29 29 30 30 namespace HeuristicLab.PluginAdministrator { 31 internal partial class Connection SetupView : HeuristicLab.MainForm.WindowsForms.View {32 public Connection SetupView() {31 internal partial class ConnectionPropertiesView : HeuristicLab.MainForm.WindowsForms.View { 32 public ConnectionPropertiesView() { 33 33 InitializeComponent(); 34 Caption = " Edit Connection Settings";34 Caption = "Connection Properties"; 35 35 updateAddressTextBox.Text = HeuristicLab.PluginInfrastructure.Properties.Settings.Default.UpdateLocation; 36 36 adminAddressTextBox.Text = HeuristicLab.PluginInfrastructure.Properties.Settings.Default.UpdateLocationAdministrationAddress; -
trunk/sources/HeuristicLab.PluginAdministrator/3.3/EditProductsAction.cs
r3206 r3208 27 27 28 28 namespace HeuristicLab.PluginAdministrator { 29 internal static class OpenProductEditorAction {29 internal static class EditProductsAction { 30 30 internal static void Execute(IMainForm mainForm) { 31 ProductEditor editor = new ProductEditor(); 32 editor.Show(); 31 if (mainForm.Views.Any(x => x is ProductEditor)) { 32 mainForm.Views.First(x => x is ProductEditor).Show(); 33 } else { 34 ProductEditor editor = new ProductEditor(); 35 editor.Show(); 36 } 33 37 } 34 38 } -
trunk/sources/HeuristicLab.PluginAdministrator/3.3/EditProductsMenuItem.cs
r3206 r3208 27 27 28 28 namespace HeuristicLab.PluginAdministrator { 29 internal class OpenServerProductsEditorMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItem, IUserInterfaceItemProvider {29 internal class EditProductsMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItem, IUserInterfaceItemProvider { 30 30 public override string Name { 31 31 get { return "Edit Products"; } … … 33 33 34 34 public override IEnumerable<string> Structure { 35 get { return new string[] { " Plugin Server" }; }35 get { return new string[] { "Views" }; } 36 36 } 37 37 38 38 public override int Position { 39 get { return 1 300; }39 get { return 1200; } 40 40 } 41 41 42 42 public override void Execute() { 43 OpenProductEditorAction.Execute(MainFormManager.MainForm);43 EditProductsAction.Execute(MainFormManager.MainForm); 44 44 } 45 45 } -
trunk/sources/HeuristicLab.PluginAdministrator/3.3/HeuristicLab.PluginAdministrator-3.3.csproj
r3081 r3208 92 92 </ItemGroup> 93 93 <ItemGroup> 94 <Compile Include="ConnectionSetupView.cs"> 95 <SubType>UserControl</SubType> 96 </Compile> 97 <Compile Include="ConnectionSetupView.Designer.cs"> 98 <DependentUpon>ConnectionSetupView.cs</DependentUpon> 99 </Compile> 100 <Compile Include="EditConnectionAction.cs" /> 101 <Compile Include="EditConnectionMenuItem.cs" /> 94 <Compile Include="ConnectionPropertiesAction.cs" /> 95 <Compile Include="ConnectionPropertiesMenuItem.cs" /> 96 <Compile Include="ConnectionPropertiesView.cs"> 97 <SubType>UserControl</SubType> 98 </Compile> 99 <Compile Include="ConnectionPropertiesView.Designer.cs"> 100 <DependentUpon>ConnectionPropertiesView.cs</DependentUpon> 101 </Compile> 102 <Compile Include="EditProductsAction.cs" /> 103 <Compile Include="EditProductsMenuItem.cs" /> 102 104 <Compile Include="HeuristicLabPluginAdministratorApplication.cs" /> 103 105 <Compile Include="HeuristicLabPluginAdministratorPlugin.cs" /> … … 144 146 <DependentUpon>ProductEditor.cs</DependentUpon> 145 147 </Compile> 146 <Compile Include="OpenProductEditorAction.cs" />147 <Compile Include="OpenServerProductsEditMenuItem.cs" />148 148 <Compile Include="IUserInterfaceItemProvider.cs" /> 149 149 <Compile Include="MainForm.cs"> … … 151 151 </Compile> 152 152 <Compile Include="Properties\AssemblyInfo.cs" /> 153 <Compile Include="UploadPluginsAction.cs" /> 154 <Compile Include="UploadPluginsMenuItem.cs" /> 153 155 </ItemGroup> 154 156 <ItemGroup> … … 174 176 </ItemGroup> 175 177 <ItemGroup> 176 <EmbeddedResource Include="Connection SetupView.resx">177 <DependentUpon>Connection SetupView.cs</DependentUpon>178 <EmbeddedResource Include="ConnectionPropertiesView.resx"> 179 <DependentUpon>ConnectionPropertiesView.cs</DependentUpon> 178 180 </EmbeddedResource> 179 181 <EmbeddedResource Include="LicenseView.resx"> -
trunk/sources/HeuristicLab.PluginAdministrator/3.3/MainForm.cs
r3179 r3208 33 33 : base(type) { 34 34 InitializeComponent(); 35 this.Controls.Remove(toolStrip); 36 this.statusStrip.Items.Add(progressBar); 37 this.statusStrip.Items.Add(statusLabel); 35 38 } 36 39 -
trunk/sources/HeuristicLab.PluginAdministrator/3.3/PluginEditor.Designer.cs
r3081 r3208 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 this.components = new System.ComponentModel.Container();48 this.imageList = new System.Windows.Forms.ImageList(this.components);49 47 this.refreshButton = new System.Windows.Forms.Button(); 50 48 this.uploadButton = new System.Windows.Forms.Button(); 51 this.listView = new MultiSelectListView();49 this.listView = new HeuristicLab.PluginAdministrator.MultiSelectListView(); 52 50 this.pluginNameHeader = new System.Windows.Forms.ColumnHeader(); 53 51 this.localVersionHeader = new System.Windows.Forms.ColumnHeader(); … … 55 53 this.descriptionHeader = new System.Windows.Forms.ColumnHeader(); 56 54 this.SuspendLayout(); 57 //58 // imageList59 //60 this.imageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;61 this.imageList.ImageSize = new System.Drawing.Size(16, 16);62 this.imageList.TransparentColor = System.Drawing.Color.Transparent;63 55 // 64 56 // refreshButton … … 97 89 this.listView.Name = "listView"; 98 90 this.listView.Size = new System.Drawing.Size(536, 444); 99 this.listView.StateImageList = this.imageList;100 91 this.listView.SuppressItemCheckedEvents = false; 101 92 this.listView.TabIndex = 8; … … 108 99 // 109 100 this.pluginNameHeader.Text = "Name"; 110 this.pluginNameHeader.Width = 161;101 this.pluginNameHeader.Width = 40; 111 102 // 112 103 // localVersionHeader 113 104 // 114 105 this.localVersionHeader.Text = "Local Version"; 115 this.localVersionHeader.Width = 85;106 this.localVersionHeader.Width = 76; 116 107 // 117 108 // serverVersionHeader 118 109 // 119 110 this.serverVersionHeader.Text = "Server Version"; 120 this.serverVersionHeader.Width = 91;111 this.serverVersionHeader.Width = 81; 121 112 // 122 113 // descriptionHeader 123 114 // 124 115 this.descriptionHeader.Text = "Description"; 125 this.descriptionHeader.Width = 194;116 this.descriptionHeader.Width = 335; 126 117 // 127 118 // PluginEditor … … 142 133 private System.Windows.Forms.Button refreshButton; 143 134 private System.Windows.Forms.Button uploadButton; 144 private System.Windows.Forms.ImageList imageList;145 135 private MultiSelectListView listView; 146 136 private System.Windows.Forms.ColumnHeader pluginNameHeader; -
trunk/sources/HeuristicLab.PluginAdministrator/3.3/PluginEditor.cs
r3179 r3208 44 44 public PluginEditor() { 45 45 InitializeComponent(); 46 imageList.Images.Add(HeuristicLab.Common.Resources.VS2008ImageLibrary.Assembly); 47 imageList.Images.Add(HeuristicLab.Common.Resources.VS2008ImageLibrary.ArrowUp); 48 Caption = "Plugins"; 46 Caption = "Upload Plugins"; 49 47 50 48 localAndServerPlugins = new Dictionary<IPluginDescription, PluginDeploymentService.PluginDescription>(); … … 88 86 listView.Items.Add(item); 89 87 } 88 foreach (ColumnHeader column in listView.Columns) 89 column.Width = -1; 90 90 //listView.suppressCheckedEvents = false; 91 91 listView.CheckBoxes = true; … … 160 160 pluginUploadWorker.RunWorkerAsync(selectedPlugins.ToList()); 161 161 } 162 }163 164 private void connectButton_Click(object sender, EventArgs e) {165 var connectionSetupView = new ConnectionSetupView();166 connectionSetupView.Show();167 162 } 168 163 -
trunk/sources/HeuristicLab.PluginAdministrator/3.3/PluginEditor.resx
r3072 r3208 118 118 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 119 119 </resheader> 120 <metadata name="imageList.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">121 <value>17, 17</value>122 </metadata>123 120 </root> -
trunk/sources/HeuristicLab.PluginAdministrator/3.3/PluginListView.Designer.cs
r3081 r3208 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 this.listView = new MultiSelectListView();47 this.listView = new HeuristicLab.PluginAdministrator.MultiSelectListView(); 48 48 this.nameHeader = new System.Windows.Forms.ColumnHeader(); 49 49 this.versionHeader = new System.Windows.Forms.ColumnHeader(); … … 60 60 this.listView.Name = "listView"; 61 61 this.listView.Size = new System.Drawing.Size(341, 320); 62 this.listView.SuppressItemCheckedEvents = false; 62 63 this.listView.TabIndex = 1; 63 64 this.listView.UseCompatibleStateImageBehavior = false; … … 68 69 // 69 70 this.nameHeader.Text = "Name"; 71 this.nameHeader.Width = 40; 70 72 // 71 73 // versionHeader 72 74 // 73 75 this.versionHeader.Text = "Version"; 76 this.versionHeader.Width = 297; 74 77 // 75 78 // PluginListView -
trunk/sources/HeuristicLab.PluginAdministrator/3.3/PluginListView.cs
r3179 r3208 73 73 listView.Items.Add(CreateListViewItem(plugin)); 74 74 } 75 foreach (ColumnHeader column in listView.Columns) 76 column.Width = -1; 75 77 listView.SuppressItemCheckedEvents = false; 76 78 } -
trunk/sources/HeuristicLab.PluginAdministrator/3.3/PluginView.Designer.cs
r3081 r3208 165 165 // 166 166 this.pluginNameHeader.Text = "Name"; 167 this.pluginNameHeader.Width = 200;167 this.pluginNameHeader.Width = 40; 168 168 // 169 169 // pluginVersionHeader 170 170 // 171 171 this.pluginVersionHeader.Text = "Version"; 172 this.pluginVersionHeader.Width = 120;172 this.pluginVersionHeader.Width = 288; 173 173 // 174 174 // imageList … … 181 181 // 182 182 this.filesListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { 183 this.file NameHeader,184 this.file TypeHeader});183 this.fileTypeHeader, 184 this.fileNameHeader}); 185 185 this.filesListView.Dock = System.Windows.Forms.DockStyle.Fill; 186 186 this.filesListView.Location = new System.Drawing.Point(3, 16); … … 195 195 // 196 196 this.fileNameHeader.Text = "Name"; 197 this.fileNameHeader.Width = 2 00;197 this.fileNameHeader.Width = 289; 198 198 // 199 199 // fileTypeHeader 200 200 // 201 201 this.fileTypeHeader.Text = "Type"; 202 this.fileTypeHeader.Width = 120;202 this.fileTypeHeader.Width = 36; 203 203 // 204 204 // filesGroupBox -
trunk/sources/HeuristicLab.PluginAdministrator/3.3/ProductEditor.Designer.cs
r3179 r3208 47 47 this.components = new System.ComponentModel.Container(); 48 48 this.refreshButton = new System.Windows.Forms.Button(); 49 this. saveButton = new System.Windows.Forms.Button();49 this.uploadButton = new System.Windows.Forms.Button(); 50 50 this.newProductButton = new System.Windows.Forms.Button(); 51 51 this.splitContainer = new System.Windows.Forms.SplitContainer(); 52 this.productsGroupBox = new System.Windows.Forms.GroupBox(); 52 53 this.productsListView = new System.Windows.Forms.ListView(); 53 54 this.productNameHeader = new System.Windows.Forms.ColumnHeader(); 54 55 this.productVersionHeader = new System.Windows.Forms.ColumnHeader(); 55 56 this.productImageList = new System.Windows.Forms.ImageList(this.components); 57 this.detailsGroupBox = new System.Windows.Forms.GroupBox(); 58 this.pluginsGroupBox = new System.Windows.Forms.GroupBox(); 56 59 this.pluginListView = new HeuristicLab.PluginAdministrator.PluginListView(); 57 this.pluginsLabel = new System.Windows.Forms.Label();58 60 this.versionTextBox = new System.Windows.Forms.TextBox(); 61 this.nameLabel = new System.Windows.Forms.Label(); 62 this.nameTextBox = new System.Windows.Forms.TextBox(); 59 63 this.versionLabel = new System.Windows.Forms.Label(); 60 this.nameTextBox = new System.Windows.Forms.TextBox();61 this.nameLabel = new System.Windows.Forms.Label();62 64 this.pluginImageList = new System.Windows.Forms.ImageList(this.components); 63 65 this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components); … … 65 67 this.splitContainer.Panel2.SuspendLayout(); 66 68 this.splitContainer.SuspendLayout(); 69 this.productsGroupBox.SuspendLayout(); 70 this.detailsGroupBox.SuspendLayout(); 71 this.pluginsGroupBox.SuspendLayout(); 67 72 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 68 73 this.SuspendLayout(); … … 70 75 // refreshButton 71 76 // 72 this.refreshButton.Location = new System.Drawing.Point( 3, 3);77 this.refreshButton.Location = new System.Drawing.Point(6, 19); 73 78 this.refreshButton.Name = "refreshButton"; 74 79 this.refreshButton.Size = new System.Drawing.Size(75, 23); … … 78 83 this.refreshButton.Click += new System.EventHandler(this.refreshButton_Click); 79 84 // 80 // saveButton81 // 82 this. saveButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));83 this. saveButton.Enabled = false;84 this. saveButton.Location = new System.Drawing.Point(3, 365);85 this. saveButton.Name = "saveButton";86 this. saveButton.Size = new System.Drawing.Size(96, 23);87 this. saveButton.TabIndex = 2;88 this. saveButton.Text = "Upload Products";89 this. saveButton.UseVisualStyleBackColor = true;90 this. saveButton.Click += new System.EventHandler(this.saveButton_Click);85 // uploadButton 86 // 87 this.uploadButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 88 this.uploadButton.Enabled = false; 89 this.uploadButton.Location = new System.Drawing.Point(6, 397); 90 this.uploadButton.Name = "uploadButton"; 91 this.uploadButton.Size = new System.Drawing.Size(96, 23); 92 this.uploadButton.TabIndex = 2; 93 this.uploadButton.Text = "Upload Products"; 94 this.uploadButton.UseVisualStyleBackColor = true; 95 this.uploadButton.Click += new System.EventHandler(this.saveButton_Click); 91 96 // 92 97 // newProductButton 93 98 // 94 99 this.newProductButton.Enabled = false; 95 this.newProductButton.Location = new System.Drawing.Point(8 4, 3);100 this.newProductButton.Location = new System.Drawing.Point(87, 19); 96 101 this.newProductButton.Name = "newProductButton"; 97 102 this.newProductButton.Size = new System.Drawing.Size(91, 23); … … 103 108 // splitContainer 104 109 // 105 this.splitContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 106 | System.Windows.Forms.AnchorStyles.Left) 107 | System.Windows.Forms.AnchorStyles.Right))); 108 this.splitContainer.Location = new System.Drawing.Point(3, 32); 110 this.splitContainer.Dock = System.Windows.Forms.DockStyle.Fill; 111 this.splitContainer.Location = new System.Drawing.Point(0, 0); 109 112 this.splitContainer.Name = "splitContainer"; 110 113 // 111 114 // splitContainer.Panel1 112 115 // 113 this.splitContainer.Panel1.Controls.Add(this.productsListView); 114 this.splitContainer.Panel1.Controls.Add(this.saveButton); 116 this.splitContainer.Panel1.Controls.Add(this.productsGroupBox); 115 117 // 116 118 // splitContainer.Panel2 117 119 // 118 this.splitContainer.Panel2.Controls.Add(this.pluginListView); 119 this.splitContainer.Panel2.Controls.Add(this.pluginsLabel); 120 this.splitContainer.Panel2.Controls.Add(this.versionTextBox); 121 this.splitContainer.Panel2.Controls.Add(this.versionLabel); 122 this.splitContainer.Panel2.Controls.Add(this.nameTextBox); 123 this.splitContainer.Panel2.Controls.Add(this.nameLabel); 124 this.splitContainer.Size = new System.Drawing.Size(659, 391); 125 this.splitContainer.SplitterDistance = 319; 120 this.splitContainer.Panel2.Controls.Add(this.detailsGroupBox); 121 this.splitContainer.Size = new System.Drawing.Size(665, 426); 122 this.splitContainer.SplitterDistance = 321; 126 123 this.splitContainer.TabIndex = 4; 124 // 125 // productsGroupBox 126 // 127 this.productsGroupBox.Controls.Add(this.uploadButton); 128 this.productsGroupBox.Controls.Add(this.newProductButton); 129 this.productsGroupBox.Controls.Add(this.productsListView); 130 this.productsGroupBox.Controls.Add(this.refreshButton); 131 this.productsGroupBox.Dock = System.Windows.Forms.DockStyle.Fill; 132 this.productsGroupBox.Location = new System.Drawing.Point(0, 0); 133 this.productsGroupBox.Name = "productsGroupBox"; 134 this.productsGroupBox.Size = new System.Drawing.Size(321, 426); 135 this.productsGroupBox.TabIndex = 5; 136 this.productsGroupBox.TabStop = false; 137 this.productsGroupBox.Text = "Products"; 127 138 // 128 139 // productsListView … … 136 147 this.productsListView.Enabled = false; 137 148 this.productsListView.FullRowSelect = true; 138 this.productsListView.Location = new System.Drawing.Point( 3, 3);149 this.productsListView.Location = new System.Drawing.Point(6, 48); 139 150 this.productsListView.MultiSelect = false; 140 151 this.productsListView.Name = "productsListView"; 141 this.productsListView.Size = new System.Drawing.Size(3 13, 356);152 this.productsListView.Size = new System.Drawing.Size(309, 343); 142 153 this.productsListView.SmallImageList = this.productImageList; 143 154 this.productsListView.TabIndex = 4; … … 149 160 // 150 161 this.productNameHeader.Text = "Name"; 151 this.productNameHeader.Width = 150;162 this.productNameHeader.Width = 40; 152 163 // 153 164 // productVersionHeader 154 165 // 155 166 this.productVersionHeader.Text = "Version"; 156 this.productVersionHeader.Width = 100;167 this.productVersionHeader.Width = 265; 157 168 // 158 169 // productImageList … … 162 173 this.productImageList.TransparentColor = System.Drawing.Color.Transparent; 163 174 // 164 // pluginListView 165 // 166 this.pluginListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 175 // detailsGroupBox 176 // 177 this.detailsGroupBox.Controls.Add(this.pluginsGroupBox); 178 this.detailsGroupBox.Controls.Add(this.versionTextBox); 179 this.detailsGroupBox.Controls.Add(this.nameLabel); 180 this.detailsGroupBox.Controls.Add(this.nameTextBox); 181 this.detailsGroupBox.Controls.Add(this.versionLabel); 182 this.detailsGroupBox.Dock = System.Windows.Forms.DockStyle.Fill; 183 this.detailsGroupBox.Location = new System.Drawing.Point(0, 0); 184 this.detailsGroupBox.Name = "detailsGroupBox"; 185 this.detailsGroupBox.Size = new System.Drawing.Size(340, 426); 186 this.detailsGroupBox.TabIndex = 8; 187 this.detailsGroupBox.TabStop = false; 188 this.detailsGroupBox.Text = "Details"; 189 // 190 // pluginsGroupBox 191 // 192 this.pluginsGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 167 193 | System.Windows.Forms.AnchorStyles.Left) 168 194 | System.Windows.Forms.AnchorStyles.Right))); 195 this.pluginsGroupBox.Controls.Add(this.pluginListView); 196 this.pluginsGroupBox.Location = new System.Drawing.Point(6, 71); 197 this.pluginsGroupBox.Name = "pluginsGroupBox"; 198 this.pluginsGroupBox.Size = new System.Drawing.Size(328, 349); 199 this.pluginsGroupBox.TabIndex = 6; 200 this.pluginsGroupBox.TabStop = false; 201 this.pluginsGroupBox.Text = "Plugins"; 202 // 203 // pluginListView 204 // 205 this.pluginListView.Dock = System.Windows.Forms.DockStyle.Fill; 169 206 this.pluginListView.Enabled = false; 170 this.pluginListView.Location = new System.Drawing.Point(3, 85);207 this.pluginListView.Location = new System.Drawing.Point(3, 16); 171 208 this.pluginListView.Name = "pluginListView"; 172 209 this.pluginListView.Plugins = null; 173 this.pluginListView.Size = new System.Drawing.Size(3 30, 303);210 this.pluginListView.Size = new System.Drawing.Size(322, 330); 174 211 this.pluginListView.TabIndex = 7; 175 212 this.pluginListView.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.pluginListView_ItemChecked); 176 //177 // pluginsLabel178 //179 this.pluginsLabel.AutoSize = true;180 this.pluginsLabel.Location = new System.Drawing.Point(11, 69);181 this.pluginsLabel.Name = "pluginsLabel";182 this.pluginsLabel.Size = new System.Drawing.Size(44, 13);183 this.pluginsLabel.TabIndex = 6;184 this.pluginsLabel.Text = "Plugins:";185 213 // 186 214 // versionTextBox … … 189 217 | System.Windows.Forms.AnchorStyles.Right))); 190 218 this.versionTextBox.Enabled = false; 191 this.versionTextBox.Location = new System.Drawing.Point( 68, 29);219 this.versionTextBox.Location = new System.Drawing.Point(57, 45); 192 220 this.versionTextBox.Name = "versionTextBox"; 193 this.versionTextBox.Size = new System.Drawing.Size(2 33, 20);221 this.versionTextBox.Size = new System.Drawing.Size(277, 20); 194 222 this.versionTextBox.TabIndex = 5; 195 223 this.versionTextBox.TextChanged += new System.EventHandler(this.versionTextBox_TextChanged); 196 224 // 225 // nameLabel 226 // 227 this.nameLabel.AutoSize = true; 228 this.nameLabel.Enabled = false; 229 this.nameLabel.Location = new System.Drawing.Point(13, 22); 230 this.nameLabel.Name = "nameLabel"; 231 this.nameLabel.Size = new System.Drawing.Size(38, 13); 232 this.nameLabel.TabIndex = 2; 233 this.nameLabel.Text = "Name:"; 234 // 235 // nameTextBox 236 // 237 this.nameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 238 | System.Windows.Forms.AnchorStyles.Right))); 239 this.nameTextBox.Enabled = false; 240 this.nameTextBox.Location = new System.Drawing.Point(57, 19); 241 this.nameTextBox.Name = "nameTextBox"; 242 this.nameTextBox.Size = new System.Drawing.Size(277, 20); 243 this.nameTextBox.TabIndex = 3; 244 this.nameTextBox.TextChanged += new System.EventHandler(this.nameTextBox_TextChanged); 245 // 197 246 // versionLabel 198 247 // 199 248 this.versionLabel.AutoSize = true; 200 249 this.versionLabel.Enabled = false; 201 this.versionLabel.Location = new System.Drawing.Point( 10, 32);250 this.versionLabel.Location = new System.Drawing.Point(6, 48); 202 251 this.versionLabel.Name = "versionLabel"; 203 252 this.versionLabel.Size = new System.Drawing.Size(45, 13); … … 205 254 this.versionLabel.Text = "Version:"; 206 255 // 207 // nameTextBox208 //209 this.nameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)210 | System.Windows.Forms.AnchorStyles.Right)));211 this.nameTextBox.Enabled = false;212 this.nameTextBox.Location = new System.Drawing.Point(68, 3);213 this.nameTextBox.Name = "nameTextBox";214 this.nameTextBox.Size = new System.Drawing.Size(233, 20);215 this.nameTextBox.TabIndex = 3;216 this.nameTextBox.TextChanged += new System.EventHandler(this.nameTextBox_TextChanged);217 //218 // nameLabel219 //220 this.nameLabel.AutoSize = true;221 this.nameLabel.Enabled = false;222 this.nameLabel.Location = new System.Drawing.Point(17, 6);223 this.nameLabel.Name = "nameLabel";224 this.nameLabel.Size = new System.Drawing.Size(38, 13);225 this.nameLabel.TabIndex = 2;226 this.nameLabel.Text = "Name:";227 //228 256 // pluginImageList 229 257 // … … 241 269 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 242 270 this.Controls.Add(this.splitContainer); 243 this.Controls.Add(this.newProductButton);244 this.Controls.Add(this.refreshButton);245 271 this.Name = "ProductEditor"; 246 272 this.Size = new System.Drawing.Size(665, 426); 247 273 this.splitContainer.Panel1.ResumeLayout(false); 248 274 this.splitContainer.Panel2.ResumeLayout(false); 249 this.splitContainer.Panel2.PerformLayout();250 275 this.splitContainer.ResumeLayout(false); 276 this.productsGroupBox.ResumeLayout(false); 277 this.detailsGroupBox.ResumeLayout(false); 278 this.detailsGroupBox.PerformLayout(); 279 this.pluginsGroupBox.ResumeLayout(false); 251 280 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 252 281 this.ResumeLayout(false); … … 257 286 258 287 private System.Windows.Forms.Button refreshButton; 259 private System.Windows.Forms.Button saveButton;288 private System.Windows.Forms.Button uploadButton; 260 289 private System.Windows.Forms.Button newProductButton; 261 290 private System.Windows.Forms.SplitContainer splitContainer; 262 private System.Windows.Forms.Label pluginsLabel;263 291 private System.Windows.Forms.TextBox versionTextBox; 264 292 private System.Windows.Forms.Label versionLabel; … … 272 300 private System.Windows.Forms.ImageList pluginImageList; 273 301 private PluginListView pluginListView; 302 private System.Windows.Forms.GroupBox productsGroupBox; 303 private System.Windows.Forms.GroupBox detailsGroupBox; 304 private System.Windows.Forms.GroupBox pluginsGroupBox; 274 305 275 306 } -
trunk/sources/HeuristicLab.PluginAdministrator/3.3/ProductEditor.cs
r3179 r3208 111 111 productsListView.Items.Add(CreateListViewItem(prodDesc)); 112 112 } 113 foreach (ColumnHeader column in productsListView.Columns) 114 column.Width = -1; 113 115 } 114 116 115 117 private void productsListBox_SelectedIndexChanged(object sender, EventArgs e) { 116 if (productsListView.SelectedItems.Count == 0) return; 118 bool productSelected = productsListView.SelectedItems.Count > 0; 119 detailsGroupBox.Enabled = productSelected; 120 uploadButton.Enabled = productSelected; 121 if (productsListView.SelectedItems.Count == 0) { 122 ClearProductDetails(); 123 return; 124 } 117 125 PluginDeploymentService.ProductDescription activeProduct = (PluginDeploymentService.ProductDescription)((ListViewItem)productsListView.SelectedItems[0]).Tag; 118 126 UpdateProductDetails(activeProduct); 127 } 128 129 private void ClearProductDetails() { 130 nameTextBox.Text = string.Empty; 131 versionTextBox.Text = string.Empty; 132 pluginListView.Plugins = new IPluginDescription[0]; 119 133 } 120 134 … … 134 148 135 149 private void SetControlsEnabled(bool enabled) { 136 saveButton.Enabled = enabled;150 uploadButton.Enabled = enabled; 137 151 refreshButton.Enabled = enabled; 138 152 newProductButton.Enabled = enabled; -
trunk/sources/HeuristicLab.PluginAdministrator/3.3/UploadPluginsAction.cs
r3206 r3208 27 27 28 28 namespace HeuristicLab.PluginAdministrator { 29 internal static class OpenProductEditorAction {29 internal static class UploadPluginsAction { 30 30 internal static void Execute(IMainForm mainForm) { 31 ProductEditor editor = new ProductEditor(); 32 editor.Show(); 31 if (mainForm.Views.Any(x => x is PluginEditor)) { 32 mainForm.Views.First(x => x is PluginEditor).Show(); 33 } else { 34 PluginEditor editor = new PluginEditor(); 35 editor.Show(); 36 } 33 37 } 34 38 } -
trunk/sources/HeuristicLab.PluginAdministrator/3.3/UploadPluginsMenuItem.cs
r3206 r3208 27 27 28 28 namespace HeuristicLab.PluginAdministrator { 29 internal class OpenServerProductsEditorMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItem, IUserInterfaceItemProvider {29 internal class UploadPluginsMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItem, IUserInterfaceItemProvider { 30 30 public override string Name { 31 get { return " Edit Products"; }31 get { return "Upload Plugins"; } 32 32 } 33 33 34 34 public override IEnumerable<string> Structure { 35 get { return new string[] { " Plugin Server" }; }35 get { return new string[] { "Views" }; } 36 36 } 37 37 38 38 public override int Position { 39 get { return 1 300; }39 get { return 1100; } 40 40 } 41 41 42 42 public override void Execute() { 43 OpenProductEditorAction.Execute(MainFormManager.MainForm);43 UploadPluginsAction.Execute(MainFormManager.MainForm); 44 44 } 45 45 }
Note: See TracChangeset
for help on using the changeset viewer.