Changeset 3600 for trunk/sources/HeuristicLab.PluginInfrastructure
- Timestamp:
- 05/03/10 19:15:41 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.PluginInfrastructure
- Files:
-
- 3 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/InstallationManagerForm.Designer.cs
r3573 r3600 63 63 this.logTextBox = new System.Windows.Forms.TextBox(); 64 64 this.menuStrip = new System.Windows.Forms.MenuStrip(); 65 this.viewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();66 this.simpleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();67 this.advancedToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();68 65 this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 69 66 this.connectionSettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); … … 119 116 this.tabControl.Size = new System.Drawing.Size(598, 392); 120 117 this.tabControl.TabIndex = 16; 121 this.tabControl.Selected += new System.Windows.Forms.TabControlEventHandler(this.tabControl_Selected);122 118 // 123 119 // updateAllPluginsTabPage … … 272 268 // 273 269 this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { 274 this.viewToolStripMenuItem,275 270 this.optionsToolStripMenuItem}); 276 271 this.menuStrip.Location = new System.Drawing.Point(0, 0); … … 279 274 this.menuStrip.TabIndex = 17; 280 275 this.menuStrip.Text = "menuStrip1"; 281 //282 // viewToolStripMenuItem283 //284 this.viewToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {285 this.simpleToolStripMenuItem,286 this.advancedToolStripMenuItem});287 this.viewToolStripMenuItem.Name = "viewToolStripMenuItem";288 this.viewToolStripMenuItem.Size = new System.Drawing.Size(44, 20);289 this.viewToolStripMenuItem.Text = "View";290 this.viewToolStripMenuItem.Visible = false;291 //292 // simpleToolStripMenuItem293 //294 this.simpleToolStripMenuItem.Checked = true;295 this.simpleToolStripMenuItem.CheckOnClick = true;296 this.simpleToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;297 this.simpleToolStripMenuItem.Name = "simpleToolStripMenuItem";298 this.simpleToolStripMenuItem.Size = new System.Drawing.Size(214, 22);299 this.simpleToolStripMenuItem.Text = "Show Most Recent Plugins";300 this.simpleToolStripMenuItem.Click += new System.EventHandler(this.simpleToolStripMenuItem_Click);301 //302 // advancedToolStripMenuItem303 //304 this.advancedToolStripMenuItem.CheckOnClick = true;305 this.advancedToolStripMenuItem.Name = "advancedToolStripMenuItem";306 this.advancedToolStripMenuItem.Size = new System.Drawing.Size(214, 22);307 this.advancedToolStripMenuItem.Text = "Show All Plugins";308 this.advancedToolStripMenuItem.Click += new System.EventHandler(this.advancedToolStripMenuItem_Click);309 276 // 310 277 // optionsToolStripMenuItem … … 365 332 private System.Windows.Forms.TextBox logTextBox; 366 333 private System.Windows.Forms.MenuStrip menuStrip; 367 private System.Windows.Forms.ToolStripMenuItem viewToolStripMenuItem;368 private System.Windows.Forms.ToolStripMenuItem simpleToolStripMenuItem;369 private System.Windows.Forms.ToolStripMenuItem advancedToolStripMenuItem;370 334 private System.Windows.Forms.ToolStripMenuItem optionsToolStripMenuItem; 371 335 private System.Windows.Forms.ToolStripMenuItem connectionSettingsToolStripMenuItem; -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/InstallationManagerForm.cs
r3573 r3600 29 29 using System.IO; 30 30 using HeuristicLab.PluginInfrastructure.Manager; 31 using System.Diagnostics; 31 32 32 33 namespace HeuristicLab.PluginInfrastructure.Advanced { … … 38 39 public InstallationManagerForm(PluginManager pluginManager) { 39 40 InitializeComponent(); 40 Text = "HeuristicLab Plugin Manager " + GetType().Assembly.GetName().Version.ToString(); 41 FileVersionInfo pluginInfrastructureVersion = FileVersionInfo.GetVersionInfo(GetType().Assembly.Location); 42 Text = "HeuristicLab Plugin Manager " + pluginInfrastructureVersion.FileVersion; 41 43 42 44 this.pluginManager = pluginManager; … … 138 140 new ConnectionSetupView().ShowDialog(); 139 141 } 140 141 private void tabControl_Selected(object sender, TabControlEventArgs e) {142 viewToolStripMenuItem.Visible = e.TabPage == availablePluginsTabPage;143 toolStripStatusLabel.Text = string.Empty;144 toolStripProgressBar.Visible = false;145 }146 147 private void simpleToolStripMenuItem_Click(object sender, EventArgs e) {148 remotePluginInstaller.ShowAllPlugins = false;149 advancedToolStripMenuItem.Checked = false;150 }151 152 private void advancedToolStripMenuItem_Click(object sender, EventArgs e) {153 remotePluginInstaller.ShowAllPlugins = true;154 simpleToolStripMenuItem.Checked = false;155 }156 142 #endregion 157 143 -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/LocalPluginsView.cs
r3547 r3600 156 156 removeButton.Enabled = localPluginsListView.CheckedItems.Count > 0; 157 157 updateSelectedButton.Enabled = localPluginsListView.CheckedItems.Count > 0; 158 foreach (ColumnHeader column in localPluginsListView.Columns) { 159 if (localPluginsListView.Items.Count > 0) 160 column.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); 161 else column.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); 162 } 158 163 } 159 164 -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/PluginEditor.cs
r3547 r3600 97 97 } 98 98 foreach (ColumnHeader column in listView.Columns) 99 column.Width = -1; 99 if (listView.Items.Count > 0) 100 column.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); 101 else column.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); 100 102 //listView.suppressCheckedEvents = false; 101 103 listView.CheckBoxes = true; -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/PluginListView.cs
r3474 r3600 74 74 } 75 75 foreach (ColumnHeader column in listView.Columns) 76 column.Width = -1; 76 column.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); 77 77 78 listView.SuppressItemCheckedEvents = false; 78 79 } -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/PluginView.cs
r3573 r3600 89 89 filesListView.Items.Add(fileItem); 90 90 } 91 foreach (ColumnHeader column in dependenciesListView.Columns) { 92 if (dependenciesListView.Items.Count > 0) 93 column.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); 94 else column.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); 95 } 96 foreach (ColumnHeader column in filesListView.Columns) { 97 if (filesListView.Items.Count > 0) 98 column.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); 99 else 100 column.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); 101 } 91 102 licenseButton.Enabled = !string.IsNullOrEmpty(plugin.LicenseText); 92 103 } -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/RemotePluginInstaller.cs
r3547 r3600 229 229 } 230 230 } 231 foreach (ColumnHeader column in remotePluginsListView.Columns) 232 if (remotePluginsListView.Items.Count > 0) 233 column.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); 234 else column.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); 235 231 236 remotePluginsListView.SuppressItemCheckedEvents = false; 232 237 } -
trunk/sources/HeuristicLab.PluginInfrastructure/Starter/StarterForm.Designer.cs
r3573 r3600 47 47 this.components = new System.ComponentModel.Container(); 48 48 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(StarterForm)); 49 System.Windows.Forms.ListViewGroup listViewGroup 1= new System.Windows.Forms.ListViewGroup("Applications", System.Windows.Forms.HorizontalAlignment.Left);50 System.Windows.Forms.ListViewGroup listViewGroup 2= new System.Windows.Forms.ListViewGroup("Plugin Management", System.Windows.Forms.HorizontalAlignment.Left);49 System.Windows.Forms.ListViewGroup listViewGroup3 = new System.Windows.Forms.ListViewGroup("Applications", System.Windows.Forms.HorizontalAlignment.Left); 50 System.Windows.Forms.ListViewGroup listViewGroup4 = new System.Windows.Forms.ListViewGroup("Plugin Management", System.Windows.Forms.HorizontalAlignment.Left); 51 51 this.startButton = new System.Windows.Forms.Button(); 52 52 this.largeImageList = new System.Windows.Forms.ImageList(this.components); … … 57 57 this.smallImageList = new System.Windows.Forms.ImageList(this.components); 58 58 this.toolTip = new System.Windows.Forms.ToolTip(this.components); 59 this.showL istButton = new System.Windows.Forms.RadioButton();59 this.showLargeIconsButton = new System.Windows.Forms.RadioButton(); 60 60 this.showDetailsButton = new System.Windows.Forms.RadioButton(); 61 this.groupBox = new System.Windows.Forms.GroupBox();62 this.groupBox.SuspendLayout();63 61 this.SuspendLayout(); 64 62 // … … 67 65 this.startButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 68 66 this.startButton.Enabled = false; 69 this.startButton.Location = new System.Drawing.Point(579, 5 07);67 this.startButton.Location = new System.Drawing.Point(579, 511); 70 68 this.startButton.Name = "startButton"; 71 69 this.startButton.Size = new System.Drawing.Size(75, 23); … … 91 89 this.versionColumnHeader, 92 90 this.descriptionColumnHeader}); 93 listViewGroup 1.Header = "Applications";94 listViewGroup 1.Name = "Applications";95 listViewGroup 2.Header = "Plugin Management";96 listViewGroup 2.Name = "Plugin Management";91 listViewGroup3.Header = "Applications"; 92 listViewGroup3.Name = "Applications"; 93 listViewGroup4.Header = "Plugin Management"; 94 listViewGroup4.Name = "Plugin Management"; 97 95 this.applicationsListView.Groups.AddRange(new System.Windows.Forms.ListViewGroup[] { 98 listViewGroup 1,99 listViewGroup 2});96 listViewGroup3, 97 listViewGroup4}); 100 98 this.applicationsListView.LargeImageList = this.largeImageList; 101 99 this.applicationsListView.Location = new System.Drawing.Point(12, 12); … … 103 101 this.applicationsListView.Name = "applicationsListView"; 104 102 this.applicationsListView.ShowItemToolTips = true; 105 this.applicationsListView.Size = new System.Drawing.Size(642, 4 79);103 this.applicationsListView.Size = new System.Drawing.Size(642, 493); 106 104 this.applicationsListView.SmallImageList = this.smallImageList; 107 this.applicationsListView.TabIndex = 2;105 this.applicationsListView.TabIndex = 0; 108 106 this.applicationsListView.UseCompatibleStateImageBehavior = false; 109 107 this.applicationsListView.ItemActivate += new System.EventHandler(this.applicationsListView_ItemActivate); … … 130 128 this.smallImageList.Images.SetKeyName(0, "HeuristicLab.ico"); 131 129 // 132 // showL istButton130 // showLargeIconsButton 133 131 // 134 this.showListButton.Appearance = System.Windows.Forms.Appearance.Button; 135 this.showListButton.Image = global::HeuristicLab.PluginInfrastructure.Properties.Resources.show_icons; 136 this.showListButton.Location = new System.Drawing.Point(6, 9); 137 this.showListButton.Name = "showListButton"; 138 this.showListButton.Size = new System.Drawing.Size(25, 25); 139 this.showListButton.TabIndex = 3; 140 this.showListButton.TabStop = true; 141 this.toolTip.SetToolTip(this.showListButton, "Show List"); 142 this.showListButton.UseVisualStyleBackColor = true; 143 this.showListButton.Click += new System.EventHandler(this.largeIconsButton_Click); 132 this.showLargeIconsButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 133 this.showLargeIconsButton.Appearance = System.Windows.Forms.Appearance.Button; 134 this.showLargeIconsButton.Checked = true; 135 this.showLargeIconsButton.Image = global::HeuristicLab.PluginInfrastructure.Properties.Resources.show_icons; 136 this.showLargeIconsButton.Location = new System.Drawing.Point(12, 511); 137 this.showLargeIconsButton.Name = "showLargeIconsButton"; 138 this.showLargeIconsButton.Size = new System.Drawing.Size(23, 23); 139 this.showLargeIconsButton.TabIndex = 2; 140 this.toolTip.SetToolTip(this.showLargeIconsButton, "Show Large Icons"); 141 this.showLargeIconsButton.UseVisualStyleBackColor = false; 142 this.showLargeIconsButton.Click += new System.EventHandler(this.largeIconsButton_Click); 144 143 // 145 144 // showDetailsButton 146 145 // 146 this.showDetailsButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 147 147 this.showDetailsButton.Appearance = System.Windows.Forms.Appearance.Button; 148 148 this.showDetailsButton.Image = global::HeuristicLab.PluginInfrastructure.Properties.Resources.show_details; 149 this.showDetailsButton.Location = new System.Drawing.Point( 37, 9);149 this.showDetailsButton.Location = new System.Drawing.Point(41, 511); 150 150 this.showDetailsButton.Name = "showDetailsButton"; 151 this.showDetailsButton.Size = new System.Drawing.Size(25, 25); 152 this.showDetailsButton.TabIndex = 4; 153 this.showDetailsButton.TabStop = true; 151 this.showDetailsButton.Size = new System.Drawing.Size(23, 23); 152 this.showDetailsButton.TabIndex = 3; 154 153 this.toolTip.SetToolTip(this.showDetailsButton, "Show Details"); 155 this.showDetailsButton.UseVisualStyleBackColor = true;154 this.showDetailsButton.UseVisualStyleBackColor = false; 156 155 this.showDetailsButton.Click += new System.EventHandler(this.detailsButton_Click); 157 //158 // groupBox159 //160 this.groupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));161 this.groupBox.Controls.Add(this.showListButton);162 this.groupBox.Controls.Add(this.showDetailsButton);163 this.groupBox.Location = new System.Drawing.Point(12, 497);164 this.groupBox.Name = "groupBox";165 this.groupBox.Size = new System.Drawing.Size(68, 37);166 this.groupBox.TabIndex = 5;167 this.groupBox.TabStop = false;168 156 // 169 157 // StarterForm … … 172 160 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 173 161 this.ClientSize = new System.Drawing.Size(666, 546); 174 this.Controls.Add(this.groupBox); 162 this.Controls.Add(this.showDetailsButton); 163 this.Controls.Add(this.showLargeIconsButton); 175 164 this.Controls.Add(this.applicationsListView); 176 165 this.Controls.Add(this.startButton); … … 179 168 this.Text = "HeuristicLab Starter"; 180 169 this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); 181 this.groupBox.ResumeLayout(false);182 170 this.ResumeLayout(false); 183 171 … … 194 182 private System.Windows.Forms.ImageList smallImageList; 195 183 private System.Windows.Forms.ToolTip toolTip; 196 private System.Windows.Forms.RadioButton showL istButton;184 private System.Windows.Forms.RadioButton showLargeIconsButton; 197 185 private System.Windows.Forms.RadioButton showDetailsButton; 198 private System.Windows.Forms.GroupBox groupBox;199 186 } 200 187 } -
trunk/sources/HeuristicLab.PluginInfrastructure/Starter/StarterForm.cs
r3573 r3600 54 54 : base() { 55 55 InitializeComponent(); 56 Text = "HeuristicLab " + this.GetType().Assembly.GetName().Version; 56 FileVersionInfo pluginInfrastructureVersion = FileVersionInfo.GetVersionInfo(GetType().Assembly.Location); 57 Text = "HeuristicLab " + pluginInfrastructureVersion.FileVersion; 57 58 58 59 string pluginPath = Path.GetFullPath(Application.StartupPath); … … 113 114 private void UpdateApplicationsList() { 114 115 applicationsListView.Items.Clear(); 115 116 FileVersionInfo pluginInfrastructureVersion = FileVersionInfo.GetVersionInfo(GetType().Assembly.Location); 116 117 pluginManagerListViewItem = new ListViewItem("Plugin Manager", 0); 117 118 pluginManagerListViewItem.Group = applicationsListView.Groups["Plugin Management"]; 118 pluginManagerListViewItem.SubItems.Add(new ListViewItem.ListViewSubItem(pluginManagerListViewItem, GetType().Assembly.GetName().Version.ToString()));119 pluginManagerListViewItem.SubItems.Add(new ListViewItem.ListViewSubItem(pluginManagerListViewItem, pluginInfrastructureVersion.FileVersion)); 119 120 pluginManagerListViewItem.SubItems.Add(new ListViewItem.ListViewSubItem(pluginManagerListViewItem, "Install, upgrade or delete plugins")); 120 121 pluginManagerListViewItem.ToolTipText = "Install, upgrade or delete plugins"; … … 130 131 item.ToolTipText = info.Description; 131 132 applicationsListView.Items.Add(item); 133 } 134 foreach (ColumnHeader column in applicationsListView.Columns) { 135 if (applicationsListView.Items.Count > 0) 136 column.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); 137 else column.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); 132 138 } 133 139 } … … 165 171 private void detailsButton_Click(object sender, EventArgs e) { 166 172 applicationsListView.View = View.Details; 173 foreach (ColumnHeader column in applicationsListView.Columns) { 174 if (applicationsListView.Items.Count > 0) 175 column.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); 176 else column.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); 177 } 167 178 } 168 179 -
trunk/sources/HeuristicLab.PluginInfrastructure/Starter/StarterForm.resx
r3573 r3600 213 213 </value> 214 214 </data> 215 <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 216 <value>274, 17</value> 217 </metadata> 215 218 <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> 216 219 <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
Note: See TracChangeset
for help on using the changeset viewer.