Changeset 18
- Timestamp:
- 02/20/08 15:16:22 (17 years ago)
- Location:
- trunk/sources/HeuristicLab.PluginInfrastructure.GUI
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure.GUI/ManagerForm.cs
r15 r18 61 61 installMenuItem.Enabled = false; 62 62 installMenuItem.Checked = false; 63 removeButton.Enabled = false;64 removeButton.Checked = false;65 removeMenuItem.Enabled = false;66 removeMenuItem.Checked = false;63 deleteButton.Enabled = false; 64 deleteButton.Checked = false; 65 deleteMenuItem.Enabled = false; 66 deleteMenuItem.Checked = false; 67 67 68 68 installedPlugins = new TreeNode("Installed plugins"); … … 567 567 publishButton.Enabled = (tag.State & PluginState.Installed) == PluginState.Installed; 568 568 installButton.Enabled = (tag.State & PluginState.Available) == PluginState.Available; 569 removeButton.Enabled = (tag.State & (PluginState.Installed | PluginState.Upgradeable)) != 0;569 deleteButton.Enabled = (tag.State & (PluginState.Installed | PluginState.Upgradeable)) != 0; 570 570 571 571 installButton.Checked = GetAction(tag) == ManagerAction.Install; 572 removeButton.Checked = GetAction(tag) == ManagerAction.Remove;572 deleteButton.Checked = GetAction(tag) == ManagerAction.Remove; 573 573 574 574 publishMenuItem.Enabled = publishButton.Enabled; 575 575 installMenuItem.Enabled = installButton.Enabled; 576 removeMenuItem.Enabled = removeButton.Enabled;576 deleteMenuItem.Enabled = deleteButton.Enabled; 577 577 installMenuItem.Checked = installButton.Checked; 578 removeMenuItem.Checked = removeButton.Checked;578 deleteMenuItem.Checked = deleteButton.Checked; 579 579 580 580 } … … 957 957 publishButton.Enabled = false; 958 958 installButton.Enabled = false; 959 removeButton.Enabled = false;959 deleteButton.Enabled = false; 960 960 } 961 961 } … … 1010 1010 } 1011 1011 1012 private void pluginTreeView_KeyPress(object sender, KeyPressEventArgs e) { 1013 e.Handled = true; 1014 if(e.KeyChar == 'i' && installButton.Enabled) { 1015 installButton_Clicked(sender, e); 1016 } else if(e.KeyChar == 'd' && deleteButton.Enabled) { 1017 removeButton_Clicked(sender, e); 1018 } 1019 } 1012 1020 } 1013 1021 } -
trunk/sources/HeuristicLab.PluginInfrastructure.GUI/ManagerForm.designer.cs
r15 r18 68 68 this.toolStripSeparator = new System.Windows.Forms.ToolStripSeparator(); 69 69 this.installButton = new System.Windows.Forms.ToolStripButton(); 70 this. removeButton = new System.Windows.Forms.ToolStripButton();70 this.deleteButton = new System.Windows.Forms.ToolStripButton(); 71 71 this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); 72 72 this.publishButton = new System.Windows.Forms.ToolStripButton(); 73 73 this.pluginContextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components); 74 74 this.installMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 75 this. removeMenuItem = new System.Windows.Forms.ToolStripMenuItem();75 this.deleteMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 76 76 this.publishMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 77 77 this.menuStrip.SuspendLayout(); … … 138 138 // 139 139 this.installNewPluginsToolStripMenuItem.Name = "installNewPluginsToolStripMenuItem"; 140 this.installNewPluginsToolStripMenuItem.Size = new System.Drawing.Size(2 14, 22);141 this.installNewPluginsToolStripMenuItem.Text = " Remove/Upgrade/Install...";140 this.installNewPluginsToolStripMenuItem.Size = new System.Drawing.Size(206, 22); 141 this.installNewPluginsToolStripMenuItem.Text = "Delete/Upgrade/Install..."; 142 142 this.installNewPluginsToolStripMenuItem.Click += new System.EventHandler(this.upgradeButton_Click); 143 143 // … … 206 206 this.pluginTreeView.Size = new System.Drawing.Size(828, 220); 207 207 this.pluginTreeView.TabIndex = 0; 208 this.pluginTreeView.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.pluginTreeView_KeyPress); 208 209 this.pluginTreeView.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.pluginTreeView_NodeMouseClick); 209 210 this.pluginTreeView.BeforeSelect += new System.Windows.Forms.TreeViewCancelEventHandler(this.pluginTreeView_BeforeSelect); … … 235 236 this.toolStripSeparator, 236 237 this.installButton, 237 this. removeButton,238 this.deleteButton, 238 239 this.toolStripSeparator1, 239 240 this.publishButton}); … … 251 252 this.updateButton.Name = "updateButton"; 252 253 this.updateButton.Size = new System.Drawing.Size(46, 22); 253 this.updateButton.Text = "U &pdate";254 this.updateButton.Text = "Update"; 254 255 this.updateButton.Click += new System.EventHandler(this.updateButton_Click); 255 256 // … … 260 261 this.upgradeButton.ImageTransparentColor = System.Drawing.Color.Magenta; 261 262 this.upgradeButton.Name = "upgradeButton"; 262 this.upgradeButton.Size = new System.Drawing.Size(1 40, 22);263 this.upgradeButton.Text = " Remove/&Upgrade/Install...";263 this.upgradeButton.Size = new System.Drawing.Size(132, 22); 264 this.upgradeButton.Text = "Delete/Upgrade/Install..."; 264 265 this.upgradeButton.Click += new System.EventHandler(this.upgradeButton_Click); 265 266 // … … 280 281 this.installButton.Click += new System.EventHandler(this.installButton_Clicked); 281 282 // 282 // removeButton283 // 284 this. removeButton.CheckOnClick = true;285 this. removeButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;286 this. removeButton.Image = ((System.Drawing.Image)(resources.GetObject("removeButton.Image")));287 this. removeButton.ImageTransparentColor = System.Drawing.Color.Magenta;288 this. removeButton.Name = "removeButton";289 this. removeButton.Size = new System.Drawing.Size(50, 22);290 this. removeButton.Text = "&Remove";291 this. removeButton.Click += new System.EventHandler(this.removeButton_Clicked);283 // deleteButton 284 // 285 this.deleteButton.CheckOnClick = true; 286 this.deleteButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; 287 this.deleteButton.Image = ((System.Drawing.Image)(resources.GetObject("deleteButton.Image"))); 288 this.deleteButton.ImageTransparentColor = System.Drawing.Color.Magenta; 289 this.deleteButton.Name = "deleteButton"; 290 this.deleteButton.Size = new System.Drawing.Size(42, 22); 291 this.deleteButton.Text = "&Delete"; 292 this.deleteButton.Click += new System.EventHandler(this.removeButton_Clicked); 292 293 // 293 294 // toolStripSeparator1 … … 310 311 this.pluginContextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { 311 312 this.installMenuItem, 312 this. removeMenuItem,313 this.deleteMenuItem, 313 314 this.publishMenuItem}); 314 315 this.pluginContextMenuStrip.Name = "pluginContextMenuStrip"; 315 this.pluginContextMenuStrip.Size = new System.Drawing.Size(1 25, 70);316 this.pluginContextMenuStrip.Size = new System.Drawing.Size(119, 70); 316 317 // 317 318 // installMenuItem 318 319 // 319 320 this.installMenuItem.Name = "installMenuItem"; 320 this.installMenuItem.Size = new System.Drawing.Size(1 24, 22);321 this.installMenuItem.Size = new System.Drawing.Size(152, 22); 321 322 this.installMenuItem.Text = "Install"; 322 323 this.installMenuItem.Click += new System.EventHandler(this.installButton_Clicked); 323 324 // 324 // removeMenuItem325 // 326 this. removeMenuItem.Name = "removeMenuItem";327 this. removeMenuItem.Size = new System.Drawing.Size(124, 22);328 this. removeMenuItem.Text = "Remove";329 this. removeMenuItem.Click += new System.EventHandler(this.removeButton_Clicked);325 // deleteMenuItem 326 // 327 this.deleteMenuItem.Name = "deleteMenuItem"; 328 this.deleteMenuItem.Size = new System.Drawing.Size(118, 22); 329 this.deleteMenuItem.Text = "Delete"; 330 this.deleteMenuItem.Click += new System.EventHandler(this.removeButton_Clicked); 330 331 // 331 332 // publishMenuItem 332 333 // 333 334 this.publishMenuItem.Name = "publishMenuItem"; 334 this.publishMenuItem.Size = new System.Drawing.Size(1 24, 22);335 this.publishMenuItem.Size = new System.Drawing.Size(152, 22); 335 336 this.publishMenuItem.Text = "Publish"; 336 337 this.publishMenuItem.Click += new System.EventHandler(this.publishButton_Click); … … 379 380 private System.Windows.Forms.ToolStripSeparator toolStripSeparator; 380 381 private System.Windows.Forms.ToolStripButton installButton; 381 private System.Windows.Forms.ToolStripButton removeButton;382 private System.Windows.Forms.ToolStripButton deleteButton; 382 383 private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem; 383 384 private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; … … 385 386 private System.Windows.Forms.ContextMenuStrip pluginContextMenuStrip; 386 387 private System.Windows.Forms.ToolStripMenuItem installMenuItem; 387 private System.Windows.Forms.ToolStripMenuItem removeMenuItem;388 private System.Windows.Forms.ToolStripMenuItem deleteMenuItem; 388 389 private System.Windows.Forms.ToolStripMenuItem publishMenuItem; 389 390 private System.Windows.Forms.ToolStripMenuItem installPluginFromFileToolStripMenuItem; -
trunk/sources/HeuristicLab.PluginInfrastructure.GUI/ManagerForm.resx
r2 r18 257 257 </value> 258 258 </data> 259 <data name=" removeButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">259 <data name="deleteButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> 260 260 <value> 261 261 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
Note: See TracChangeset
for help on using the changeset viewer.