Changeset 6381 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.4
- Timestamp:
- 06/08/11 00:04:16 (13 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.4
- Files:
-
- 2 added
- 2 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.4
-
Property
svn:ignore
set to
bin
HeuristicLab.Clients.Hive.ExperimentManager-3.4.csproj.user
HeuristicLab.Clients.Hive.ExperimentManager-3.4.csproj.vs10x
HeuristicLabClientsHiveExperimentManagerPlugin.cs
obj
-
Property
svn:ignore
set to
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.4/HeuristicLab.Clients.Hive.ExperimentManager-3.4.csproj
r6373 r6381 151 151 </ItemGroup> 152 152 <ItemGroup> 153 <Compile Include="Views\ HiveExperimentListView.cs">153 <Compile Include="Views\RefreshableHiveExperimentListView.cs"> 154 154 <SubType>UserControl</SubType> 155 155 </Compile> 156 <Compile Include="Views\ HiveExperimentListView.Designer.cs">157 <DependentUpon> HiveExperimentListView.cs</DependentUpon>156 <Compile Include="Views\RefreshableHiveExperimentListView.Designer.cs"> 157 <DependentUpon>RefreshableHiveExperimentListView.cs</DependentUpon> 158 158 </Compile> 159 159 <Compile Include="Views\HiveExperimentManagerView.cs"> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.4/Views/HiveExperimentManagerView.Designer.cs
r6373 r6381 46 46 private void InitializeComponent() { 47 47 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HiveExperimentManagerView)); 48 this.hiveExperimentListView = new HiveExperimentListView();48 this.hiveExperimentListView = new RefreshableHiveExperimentListView(); 49 49 this.refreshButton = new System.Windows.Forms.Button(); 50 50 this.SuspendLayout(); … … 86 86 #endregion 87 87 88 private HiveExperimentListView hiveExperimentListView;88 private RefreshableHiveExperimentListView hiveExperimentListView; 89 89 private System.Windows.Forms.Button refreshButton; 90 90 -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.4/Views/RefreshableHiveExperimentView.Designer.cs
r6373 r6381 50 50 this.tabControl = new System.Windows.Forms.TabControl(); 51 51 this.jobsTabPage = new System.Windows.Forms.TabPage(); 52 this.jobsTreeView = new HeuristicLab.Clients.Hive.Views.ExperimentManager.HiveJobItemTreeView(); 52 53 this.logTabPage = new System.Windows.Forms.TabPage(); 53 54 this.logView = new HeuristicLab.Core.Views.LogView(); … … 73 74 this.calculatingLabel = new System.Windows.Forms.Label(); 74 75 this.jobsLabel = new System.Windows.Forms.Label(); 75 this. jobsTreeView = new HeuristicLab.Clients.Hive.Views.ExperimentManager.HiveJobItemTreeView();76 this.isPrivilegedCheckBox = new System.Windows.Forms.CheckBox(); 76 77 this.tabControl.SuspendLayout(); 77 78 this.jobsTabPage.SuspendLayout(); … … 90 91 this.tabControl.Name = "tabControl"; 91 92 this.tabControl.SelectedIndex = 0; 92 this.tabControl.Size = new System.Drawing.Size( 821, 520);93 this.tabControl.Size = new System.Drawing.Size(717, 452); 93 94 this.tabControl.TabIndex = 4; 94 95 // … … 98 99 this.jobsTabPage.Location = new System.Drawing.Point(4, 22); 99 100 this.jobsTabPage.Name = "jobsTabPage"; 100 this.jobsTabPage.Size = new System.Drawing.Size( 813, 494);101 this.jobsTabPage.Size = new System.Drawing.Size(709, 426); 101 102 this.jobsTabPage.TabIndex = 5; 102 103 this.jobsTabPage.Text = "Jobs"; 103 104 this.jobsTabPage.UseVisualStyleBackColor = true; 105 // 106 // jobsTreeView 107 // 108 this.jobsTreeView.AllowDrop = true; 109 this.jobsTreeView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 110 | System.Windows.Forms.AnchorStyles.Left) 111 | System.Windows.Forms.AnchorStyles.Right))); 112 this.jobsTreeView.Caption = "ItemTree View"; 113 this.jobsTreeView.Content = null; 114 this.jobsTreeView.Location = new System.Drawing.Point(2, 3); 115 this.jobsTreeView.Name = "jobsTreeView"; 116 this.jobsTreeView.ReadOnly = false; 117 this.jobsTreeView.Size = new System.Drawing.Size(704, 420); 118 this.jobsTreeView.TabIndex = 0; 119 this.jobsTreeView.DragDrop += new System.Windows.Forms.DragEventHandler(this.jobsTreeView_DragDrop); 120 this.jobsTreeView.DragEnter += new System.Windows.Forms.DragEventHandler(this.jobsTreeView_DragEnter); 121 this.jobsTreeView.DragOver += new System.Windows.Forms.DragEventHandler(this.jobsTreeView_DragOver); 104 122 // 105 123 // logTabPage … … 128 146 this.startButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 129 147 this.startButton.Image = ((System.Drawing.Image)(resources.GetObject("startButton.Image"))); 130 this.startButton.Location = new System.Drawing.Point(0, 604);148 this.startButton.Location = new System.Drawing.Point(0, 536); 131 149 this.startButton.Name = "startButton"; 132 150 this.startButton.Size = new System.Drawing.Size(24, 24); … … 140 158 this.stopButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 141 159 this.stopButton.Image = ((System.Drawing.Image)(resources.GetObject("stopButton.Image"))); 142 this.stopButton.Location = new System.Drawing.Point(60, 604);160 this.stopButton.Location = new System.Drawing.Point(60, 536); 143 161 this.stopButton.Name = "stopButton"; 144 162 this.stopButton.Size = new System.Drawing.Size(24, 24); … … 153 171 this.resetButton.Enabled = false; 154 172 this.resetButton.Image = ((System.Drawing.Image)(resources.GetObject("resetButton.Image"))); 155 this.resetButton.Location = new System.Drawing.Point(90, 604);173 this.resetButton.Location = new System.Drawing.Point(90, 536); 156 174 this.resetButton.Name = "resetButton"; 157 175 this.resetButton.Size = new System.Drawing.Size(24, 24); … … 165 183 this.executionTimeLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 166 184 this.executionTimeLabel.AutoSize = true; 167 this.executionTimeLabel.Location = new System.Drawing.Point( 595, 611);185 this.executionTimeLabel.Location = new System.Drawing.Point(491, 543); 168 186 this.executionTimeLabel.Name = "executionTimeLabel"; 169 187 this.executionTimeLabel.Size = new System.Drawing.Size(83, 13); … … 174 192 // 175 193 this.executionTimeTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 176 this.executionTimeTextBox.Location = new System.Drawing.Point( 684, 608);194 this.executionTimeTextBox.Location = new System.Drawing.Point(580, 540); 177 195 this.executionTimeTextBox.Name = "executionTimeTextBox"; 178 196 this.executionTimeTextBox.ReadOnly = true; … … 185 203 this.pauseButton.Enabled = false; 186 204 this.pauseButton.Image = ((System.Drawing.Image)(resources.GetObject("pauseButton.Image"))); 187 this.pauseButton.Location = new System.Drawing.Point(30, 604);205 this.pauseButton.Location = new System.Drawing.Point(30, 536); 188 206 this.pauseButton.Name = "pauseButton"; 189 207 this.pauseButton.Size = new System.Drawing.Size(24, 24); … … 208 226 this.resourceNamesTextBox.Location = new System.Drawing.Point(73, 53); 209 227 this.resourceNamesTextBox.Name = "resourceNamesTextBox"; 210 this.resourceNamesTextBox.Size = new System.Drawing.Size( 494, 20);228 this.resourceNamesTextBox.Size = new System.Drawing.Size(304, 20); 211 229 this.resourceNamesTextBox.TabIndex = 14; 212 230 this.resourceNamesTextBox.Validated += new System.EventHandler(this.resourceNamesTextBox_Validated); … … 216 234 this.useLocalPluginsCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 217 235 this.useLocalPluginsCheckBox.AutoSize = true; 218 this.useLocalPluginsCheckBox.Location = new System.Drawing.Point( 573, 56);236 this.useLocalPluginsCheckBox.Location = new System.Drawing.Point(469, 56); 219 237 this.useLocalPluginsCheckBox.Name = "useLocalPluginsCheckBox"; 220 238 this.useLocalPluginsCheckBox.Size = new System.Drawing.Size(105, 17); … … 239 257 this.nameTextBox.Location = new System.Drawing.Point(73, 27); 240 258 this.nameTextBox.Name = "nameTextBox"; 241 this.nameTextBox.Size = new System.Drawing.Size( 605, 20);259 this.nameTextBox.Size = new System.Drawing.Size(501, 20); 242 260 this.nameTextBox.TabIndex = 21; 243 261 this.nameTextBox.Validated += new System.EventHandler(this.nameTextBox_Validated); … … 274 292 this.infoGroupBox.Controls.Add(this.calculatingLabel); 275 293 this.infoGroupBox.Controls.Add(this.jobsLabel); 276 this.infoGroupBox.Location = new System.Drawing.Point( 684, 5);294 this.infoGroupBox.Location = new System.Drawing.Point(580, 5); 277 295 this.infoGroupBox.Name = "infoGroupBox"; 278 296 this.infoGroupBox.Size = new System.Drawing.Size(133, 89); … … 335 353 this.jobsLabel.Text = "Jobs:"; 336 354 // 337 // jobsTreeView 338 // 339 this.jobsTreeView.AllowDrop = true; 340 this.jobsTreeView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 341 | System.Windows.Forms.AnchorStyles.Left) 342 | System.Windows.Forms.AnchorStyles.Right))); 343 this.jobsTreeView.Caption = "ItemTree View"; 344 this.jobsTreeView.Content = null; 345 this.jobsTreeView.Location = new System.Drawing.Point(2, 3); 346 this.jobsTreeView.Name = "jobsTreeView"; 347 this.jobsTreeView.ReadOnly = false; 348 this.jobsTreeView.Size = new System.Drawing.Size(808, 488); 349 this.jobsTreeView.TabIndex = 0; 350 this.jobsTreeView.DragDrop += new System.Windows.Forms.DragEventHandler(this.jobsTreeView_DragDrop); 351 this.jobsTreeView.DragEnter += new System.Windows.Forms.DragEventHandler(this.jobsTreeView_DragEnter); 352 this.jobsTreeView.DragOver += new System.Windows.Forms.DragEventHandler(this.jobsTreeView_DragOver); 355 // isPrivilegedCheckBox 356 // 357 this.isPrivilegedCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 358 this.isPrivilegedCheckBox.AutoSize = true; 359 this.isPrivilegedCheckBox.Location = new System.Drawing.Point(383, 55); 360 this.isPrivilegedCheckBox.Name = "isPrivilegedCheckBox"; 361 this.isPrivilegedCheckBox.Size = new System.Drawing.Size(80, 17); 362 this.isPrivilegedCheckBox.TabIndex = 26; 363 this.isPrivilegedCheckBox.Text = "IsPrivileged"; 364 this.toolTip.SetToolTip(this.isPrivilegedCheckBox, "If checked, the job will be executed in a privileged sandbox on the slave."); 365 this.isPrivilegedCheckBox.UseVisualStyleBackColor = true; 366 this.isPrivilegedCheckBox.CheckedChanged += new System.EventHandler(this.isPrivilegedCheckBox_CheckedChanged); 353 367 // 354 368 // RefreshableHiveExperimentView … … 356 370 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 357 371 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 372 this.Controls.Add(this.isPrivilegedCheckBox); 358 373 this.Controls.Add(this.infoGroupBox); 359 374 this.Controls.Add(this.refreshAutomaticallyCheckBox); … … 372 387 this.Controls.Add(this.resetButton); 373 388 this.Name = "RefreshableHiveExperimentView"; 374 this.Size = new System.Drawing.Size( 821, 628);389 this.Size = new System.Drawing.Size(717, 560); 375 390 this.tabControl.ResumeLayout(false); 376 391 this.jobsTabPage.ResumeLayout(false); … … 410 425 private System.Windows.Forms.Label calculatingLabel; 411 426 private System.Windows.Forms.Label jobsLabel; 427 private System.Windows.Forms.CheckBox isPrivilegedCheckBox; 412 428 413 429 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.4/Views/RefreshableHiveExperimentView.cs
r6373 r6381 103 103 resourceNamesTextBox.Text = string.Empty; 104 104 useLocalPluginsCheckBox.Checked = false; 105 isPrivilegedCheckBox.Checked = false; 105 106 logView.Content = null; 106 //includeJobsCheckBox.Checked = false; 107 refreshAutomaticallyCheckBox.Checked = false; 107 refreshAutomaticallyCheckBox.Checked = false; 108 108 logView.Content = null; 109 109 } else { … … 112 112 resourceNamesTextBox.Text = Content.HiveExperiment.ResourceNames; 113 113 useLocalPluginsCheckBox.Checked = Content.HiveExperiment.UseLocalPlugins; 114 //includeJobsCheckBox.Checked = Content.IncludeJobs;114 isPrivilegedCheckBox.Checked = Content.HiveExperiment.IsPrivileged; 115 115 refreshAutomaticallyCheckBox.Checked = Content.RefreshAutomatically; 116 116 logView.Content = Content.Log; … … 138 138 this.jobsTreeView.ReadOnly = !Content.IsControllable || Content.HiveExperiment.ExecutionState != ExecutionState.Prepared || alreadyUploaded; 139 139 140 this.isPrivilegedCheckBox.Enabled = Content.IsControllable && !(Content.HiveExperiment.ExecutionState != ExecutionState.Prepared || alreadyUploaded); // TODO: check if user has the rights to do this 140 141 this.useLocalPluginsCheckBox.Enabled = Content.IsControllable && !(Content.HiveExperiment.ExecutionState != ExecutionState.Prepared || alreadyUploaded); 141 142 this.refreshAutomaticallyCheckBox.Enabled = Content.IsControllable && alreadyUploaded && jobsLoaded && Content.HiveExperiment.ExecutionState == ExecutionState.Started; 142 143 this.refreshButton.Enabled = Content.IsControllable && alreadyUploaded; 143 144 this.Locked = !Content.IsControllable || Content.HiveExperiment.ExecutionState == ExecutionState.Started; 145 144 146 } 145 147 SetEnabledStateOfExecutableButtons(); … … 296 298 private void useLocalPluginsCheckBox_CheckedChanged(object sender, EventArgs e) { 297 299 if (Content != null) Content.HiveExperiment.UseLocalPlugins = useLocalPluginsCheckBox.Checked; 300 } 301 302 private void isPrivilegedCheckBox_CheckedChanged(object sender, EventArgs e) { 303 if (Content != null) Content.HiveExperiment.IsPrivileged = isPrivilegedCheckBox.Checked; 298 304 } 299 305
Note: See TracChangeset
for help on using the changeset viewer.