Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/16/10 17:59:05 (15 years ago)
Author:
gkronber
Message:

Improved dialogs in plugin manager. #891 (Refactor GUI for plugin management)

Location:
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced
Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/ConnectionSetupView.cs

    r3068 r3069  
    4747        form = new Form();
    4848        form.Name = this.Name;
    49         form.Size = this.Size;
     49        form.ClientSize = Size;
    5050        this.Dock = DockStyle.Fill;
    5151        form.Controls.Add(this);
    52       } 
     52      }
    5353      form.Show();
    5454    }
  • trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/InstallationManagerControl.cs

    r3006 r3069  
    1616    internal virtual void ShowInForm() {
    1717      Form form = new Form();
    18       form.Size = this.Size;
     18      form.ClientSize = this.Size;
    1919      form.Text = this.Name;
    2020      this.Dock = DockStyle.Fill;
  • trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/InstallationManagerForm.cs

    r3006 r3069  
    256256    private bool ConfirmRemoveAction(IEnumerable<IPluginDescription> plugins) {
    257257      StringBuilder strBuilder = new StringBuilder();
    258       strBuilder.AppendLine("Delete files:");
    259258      foreach (var plugin in plugins) {
    260259        foreach (var file in plugin.Files) {
    261           strBuilder.AppendLine(file.ToString());
     260          strBuilder.AppendLine(Path.GetFileName(file.Name));
    262261        }
    263262      }
    264       return MessageBox.Show(strBuilder.ToString(), "Confirm Delete", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK;
     263      return (new ConfirmationDialog("Confirm Delete", "Do you want to delete following files?", strBuilder.ToString())).ShowDialog() == DialogResult.OK;
    265264    }
    266265
    267266    private bool ConfirmUpdateAction(IEnumerable<IPluginDescription> plugins) {
    268267      StringBuilder strBuilder = new StringBuilder();
    269       strBuilder.AppendLine("Update plugins:");
    270268      foreach (var plugin in plugins) {
    271269        strBuilder.AppendLine(plugin.ToString());
    272270      }
    273       return MessageBox.Show(strBuilder.ToString(), "Confirm Update", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK;
     271      return (new ConfirmationDialog("Confirm Update", "Do you want to update following plugins?", strBuilder.ToString())).ShowDialog() == DialogResult.OK;
    274272    }
    275273
  • trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/LicenseConfirmationBox.Designer.cs

    r3009 r3069  
    3030      this.label1 = new System.Windows.Forms.Label();
    3131      this.radioButtonGroupBox = new System.Windows.Forms.GroupBox();
     32      this.rejectRadioButton = new System.Windows.Forms.RadioButton();
    3233      this.acceptRadioButton = new System.Windows.Forms.RadioButton();
    33       this.rejectRadioButton = new System.Windows.Forms.RadioButton();
     34      this.panel1 = new System.Windows.Forms.Panel();
    3435      this.radioButtonGroupBox.SuspendLayout();
     36      this.panel1.SuspendLayout();
    3537      this.SuspendLayout();
    3638      //
     
    4042                  | System.Windows.Forms.AnchorStyles.Left)
    4143                  | System.Windows.Forms.AnchorStyles.Right)));
     44      this.richTextBox.BackColor = System.Drawing.SystemColors.HighlightText;
    4245      this.richTextBox.Location = new System.Drawing.Point(12, 48);
    4346      this.richTextBox.Name = "richTextBox";
    4447      this.richTextBox.ReadOnly = true;
    45       this.richTextBox.Size = new System.Drawing.Size(494, 261);
     48      this.richTextBox.Size = new System.Drawing.Size(494, 287);
    4649      this.richTextBox.TabIndex = 0;
    4750      this.richTextBox.Text = "";
     
    5154      this.acceptButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    5255      this.acceptButton.Enabled = false;
    53       this.acceptButton.Location = new System.Drawing.Point(346, 394);
     56      this.acceptButton.Location = new System.Drawing.Point(347, 53);
    5457      this.acceptButton.Name = "acceptButton";
    5558      this.acceptButton.Size = new System.Drawing.Size(75, 23);
     
    6265      //
    6366      this.rejectButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    64       this.rejectButton.Location = new System.Drawing.Point(427, 394);
     67      this.rejectButton.Location = new System.Drawing.Point(428, 53);
    6568      this.rejectButton.Name = "rejectButton";
    6669      this.rejectButton.Size = new System.Drawing.Size(79, 23);
     
    9497      this.radioButtonGroupBox.Controls.Add(this.rejectRadioButton);
    9598      this.radioButtonGroupBox.Controls.Add(this.acceptRadioButton);
    96       this.radioButtonGroupBox.Location = new System.Drawing.Point(12, 315);
     99      this.radioButtonGroupBox.Location = new System.Drawing.Point(13, 5);
    97100      this.radioButtonGroupBox.Name = "radioButtonGroupBox";
    98101      this.radioButtonGroupBox.Size = new System.Drawing.Size(281, 71);
    99102      this.radioButtonGroupBox.TabIndex = 5;
    100103      this.radioButtonGroupBox.TabStop = false;
     104      //
     105      // rejectRadioButton
     106      //
     107      this.rejectRadioButton.AutoSize = true;
     108      this.rejectRadioButton.Location = new System.Drawing.Point(6, 42);
     109      this.rejectRadioButton.Name = "rejectRadioButton";
     110      this.rejectRadioButton.Size = new System.Drawing.Size(264, 17);
     111      this.rejectRadioButton.TabIndex = 1;
     112      this.rejectRadioButton.TabStop = true;
     113      this.rejectRadioButton.Text = "I do not accept the terms in the license agreement.";
     114      this.rejectRadioButton.UseVisualStyleBackColor = true;
     115      this.rejectRadioButton.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
    101116      //
    102117      // acceptRadioButton
     
    112127      this.acceptRadioButton.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
    113128      //
    114       // rejectRadioButton
     129      // panel1
    115130      //
    116       this.rejectRadioButton.AutoSize = true;
    117       this.rejectRadioButton.Location = new System.Drawing.Point(6, 42);
    118       this.rejectRadioButton.Name = "rejectRadioButton";
    119       this.rejectRadioButton.Size = new System.Drawing.Size(264, 17);
    120       this.rejectRadioButton.TabIndex = 1;
    121       this.rejectRadioButton.TabStop = true;
    122       this.rejectRadioButton.Text = "I do not accept the terms in the license agreement.";
    123       this.rejectRadioButton.UseVisualStyleBackColor = true;
    124       this.rejectRadioButton.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
     131      this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
     132                  | System.Windows.Forms.AnchorStyles.Right)));
     133      this.panel1.BackColor = System.Drawing.SystemColors.Control;
     134      this.panel1.Controls.Add(this.acceptButton);
     135      this.panel1.Controls.Add(this.radioButtonGroupBox);
     136      this.panel1.Controls.Add(this.rejectButton);
     137      this.panel1.Location = new System.Drawing.Point(-1, 341);
     138      this.panel1.Name = "panel1";
     139      this.panel1.Size = new System.Drawing.Size(520, 88);
     140      this.panel1.TabIndex = 6;
    125141      //
    126142      // LicenseConfirmationBox
     
    128144      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    129145      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     146      this.BackColor = System.Drawing.SystemColors.HighlightText;
    130147      this.ClientSize = new System.Drawing.Size(518, 429);
    131       this.Controls.Add(this.radioButtonGroupBox);
     148      this.Controls.Add(this.panel1);
    132149      this.Controls.Add(this.label1);
    133150      this.Controls.Add(this.licenseLabel);
    134       this.Controls.Add(this.rejectButton);
    135       this.Controls.Add(this.acceptButton);
    136151      this.Controls.Add(this.richTextBox);
    137152      this.Name = "LicenseConfirmationBox";
    138153      this.radioButtonGroupBox.ResumeLayout(false);
    139154      this.radioButtonGroupBox.PerformLayout();
     155      this.panel1.ResumeLayout(false);
    140156      this.ResumeLayout(false);
    141157      this.PerformLayout();
     
    153169    private System.Windows.Forms.RadioButton rejectRadioButton;
    154170    private System.Windows.Forms.RadioButton acceptRadioButton;
     171    private System.Windows.Forms.Panel panel1;
    155172  }
    156173}
  • trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/RemotePluginInstaller.Designer.cs

    r3068 r3069  
    7272      //
    7373      this.nameHeader.Text = "Name";
    74       this.nameHeader.Width = 115;
     74      this.nameHeader.Width = 185;
    7575      //
    7676      // versionHeader
    7777      //
    7878      this.versionHeader.Text = "Version";
    79       this.versionHeader.Width = 161;
     79      this.versionHeader.Width = 93;
    8080      //
    8181      // descriptionHeader
Note: See TracChangeset for help on using the changeset viewer.