Browse Source

replace ConfigureSideBarDialog xfrms by Windows Forms

formsdesignerappdomain
Siegfried Pammer 14 years ago
parent
commit
3ca72bb60b
  1. 263
      src/AddIns/DisplayBindings/FormsDesigner/FormsDesigner.AddIn/Toolbox/ConfigureSideBarDialog.Designer.cs
  2. 115
      src/AddIns/DisplayBindings/FormsDesigner/FormsDesigner.AddIn/Toolbox/ConfigureSideBarDialog.cs
  3. 120
      src/AddIns/DisplayBindings/FormsDesigner/FormsDesigner.AddIn/Toolbox/ConfigureSideBarDialog.resx
  4. 8
      src/AddIns/DisplayBindings/FormsDesigner/FormsDesigner.AddIn/Toolbox/CustomComponentsSideTab.cs
  5. 102
      src/AddIns/DisplayBindings/FormsDesigner/FormsDesigner.AddIn/Toolbox/RenameCategoryDialog.Designer.cs
  6. 33
      src/AddIns/DisplayBindings/FormsDesigner/FormsDesigner.AddIn/Toolbox/RenameCategoryDialog.cs
  7. 120
      src/AddIns/DisplayBindings/FormsDesigner/FormsDesigner.AddIn/Toolbox/RenameCategoryDialog.resx
  8. 25
      src/AddIns/DisplayBindings/FormsDesigner/Project/FormsDesigner.csproj
  9. 149
      src/AddIns/DisplayBindings/FormsDesigner/Project/Resources/ConfigureSidebarDialog.xfrm
  10. 48
      src/AddIns/DisplayBindings/FormsDesigner/Project/Resources/RenameSidebarCategoryDialog.xfrm
  11. 47
      src/AddIns/DisplayBindings/FormsDesigner/Project/Src/FormsDesignerLoggingService.cs

263
src/AddIns/DisplayBindings/FormsDesigner/FormsDesigner.AddIn/Toolbox/ConfigureSideBarDialog.Designer.cs generated

@ -0,0 +1,263 @@ @@ -0,0 +1,263 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
namespace ICSharpCode.FormsDesigner.Gui
{
partial class ConfigureSideBarDialog
{
/// <summary>
/// Designer variable used to keep track of non-visual components.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Disposes resources used by the form.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing) {
if (components != null) {
components.Dispose();
}
}
base.Dispose(disposing);
}
/// <summary>
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
/// </summary>
private void InitializeComponent()
{
this.panel2 = new System.Windows.Forms.Panel();
this.addComponentsButton = new System.Windows.Forms.Button();
this.removeComponentsButton = new System.Windows.Forms.Button();
this.renameCategoryButton = new System.Windows.Forms.Button();
this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
this.splitter = new System.Windows.Forms.Splitter();
this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
this.categoryListView = new System.Windows.Forms.ListView();
this.columnHeader5 = new System.Windows.Forms.ColumnHeader();
this.cancelButton = new System.Windows.Forms.Button();
this.columnHeader = new System.Windows.Forms.ColumnHeader();
this.okButton = new System.Windows.Forms.Button();
this.removeCategoryButton = new System.Windows.Forms.Button();
this.componentListView = new System.Windows.Forms.ListView();
this.newCategoryButton = new System.Windows.Forms.Button();
this.panel = new System.Windows.Forms.Panel();
this.panel2.SuspendLayout();
this.panel.SuspendLayout();
this.SuspendLayout();
//
// panel2
//
this.panel2.Controls.Add(this.addComponentsButton);
this.panel2.Controls.Add(this.removeComponentsButton);
this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel2.Location = new System.Drawing.Point(166, 315);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(420, 40);
this.panel2.TabIndex = 3;
//
// addComponentsButton
//
this.addComponentsButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.addComponentsButton.Location = new System.Drawing.Point(70, 8);
this.addComponentsButton.Name = "addComponentsButton";
this.addComponentsButton.Size = new System.Drawing.Size(166, 23);
this.addComponentsButton.TabIndex = 3;
this.addComponentsButton.Text = "${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.ConfigureSidebarDialog.AddCompone" +
"ntsButton}";
this.addComponentsButton.Click += new System.EventHandler(this.AddComponentsButtonClick);
//
// removeComponentsButton
//
this.removeComponentsButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.removeComponentsButton.Location = new System.Drawing.Point(246, 8);
this.removeComponentsButton.Name = "removeComponentsButton";
this.removeComponentsButton.Size = new System.Drawing.Size(166, 23);
this.removeComponentsButton.TabIndex = 4;
this.removeComponentsButton.Text = "${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.ConfigureSidebarDialog.RemoveComp" +
"onentsButton}";
this.removeComponentsButton.Click += new System.EventHandler(this.RemoveComponentsButtonClick);
//
// renameCategoryButton
//
this.renameCategoryButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.renameCategoryButton.Location = new System.Drawing.Point(200, 371);
this.renameCategoryButton.Name = "renameCategoryButton";
this.renameCategoryButton.Size = new System.Drawing.Size(90, 23);
this.renameCategoryButton.TabIndex = 9;
this.renameCategoryButton.Text = "${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.ConfigureSidebarDialog.RenameButt" +
"on}";
this.renameCategoryButton.Click += new System.EventHandler(this.RenameCategoryButtonClick);
//
// columnHeader3
//
this.columnHeader3.Name = "columnHeader3";
this.columnHeader3.Text = "${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.ConfigureSidebarDialog.Assembly}";
this.columnHeader3.Width = 148;
//
// splitter
//
this.splitter.Location = new System.Drawing.Point(160, 0);
this.splitter.Name = "splitter";
this.splitter.Size = new System.Drawing.Size(6, 355);
this.splitter.TabIndex = 1;
this.splitter.TabStop = false;
//
// columnHeader2
//
this.columnHeader2.Name = "columnHeader2";
this.columnHeader2.Text = "${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.ConfigureSidebarDialog.Namespace}" +
"";
this.columnHeader2.Width = 145;
//
// categoryListView
//
this.categoryListView.CheckBoxes = true;
this.categoryListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader5});
this.categoryListView.Dock = System.Windows.Forms.DockStyle.Left;
this.categoryListView.FullRowSelect = true;
this.categoryListView.HideSelection = false;
this.categoryListView.Location = new System.Drawing.Point(0, 0);
this.categoryListView.MultiSelect = false;
this.categoryListView.Name = "categoryListView";
this.categoryListView.Size = new System.Drawing.Size(160, 355);
this.categoryListView.TabIndex = 0;
this.categoryListView.UseCompatibleStateImageBehavior = false;
this.categoryListView.View = System.Windows.Forms.View.Details;
this.categoryListView.SelectedIndexChanged += new System.EventHandler(this.CategoryListViewSelectedIndexChanged);
//
// columnHeader5
//
this.columnHeader5.Name = "columnHeader5";
this.columnHeader5.Text = "${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.ConfigureSidebarDialog.Categories" +
"}";
this.columnHeader5.Width = 156;
//
// cancelButton
//
this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelButton.Location = new System.Drawing.Point(519, 371);
this.cancelButton.Name = "cancelButton";
this.cancelButton.Size = new System.Drawing.Size(75, 23);
this.cancelButton.TabIndex = 11;
this.cancelButton.Text = "${res:Global.CancelButtonText}";
//
// columnHeader
//
this.columnHeader.Name = "columnHeader";
this.columnHeader.Text = "${res:Global.Name}";
this.columnHeader.Width = 123;
//
// okButton
//
this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
this.okButton.Location = new System.Drawing.Point(439, 371);
this.okButton.Name = "okButton";
this.okButton.Size = new System.Drawing.Size(75, 23);
this.okButton.TabIndex = 10;
this.okButton.Text = "${res:Global.OKButtonText}";
this.okButton.Click += new System.EventHandler(this.OkButtonClick);
//
// removeCategoryButton
//
this.removeCategoryButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.removeCategoryButton.Location = new System.Drawing.Point(104, 371);
this.removeCategoryButton.Name = "removeCategoryButton";
this.removeCategoryButton.Size = new System.Drawing.Size(90, 23);
this.removeCategoryButton.TabIndex = 8;
this.removeCategoryButton.Text = "${res:Global.RemoveButtonText}";
this.removeCategoryButton.Click += new System.EventHandler(this.RemoveCategoryButtonClick);
//
// componentListView
//
this.componentListView.CheckBoxes = true;
this.componentListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader,
this.columnHeader2,
this.columnHeader3});
this.componentListView.Dock = System.Windows.Forms.DockStyle.Fill;
this.componentListView.FullRowSelect = true;
this.componentListView.GridLines = true;
this.componentListView.HideSelection = false;
this.componentListView.Location = new System.Drawing.Point(166, 0);
this.componentListView.Name = "componentListView";
this.componentListView.Size = new System.Drawing.Size(420, 315);
this.componentListView.TabIndex = 2;
this.componentListView.UseCompatibleStateImageBehavior = false;
this.componentListView.View = System.Windows.Forms.View.Details;
this.componentListView.SelectedIndexChanged += new System.EventHandler(this.ComponentListViewSelectedIndexChanged);
//
// newCategoryButton
//
this.newCategoryButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.newCategoryButton.Location = new System.Drawing.Point(8, 371);
this.newCategoryButton.Name = "newCategoryButton";
this.newCategoryButton.Size = new System.Drawing.Size(90, 23);
this.newCategoryButton.TabIndex = 7;
this.newCategoryButton.Text = "${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.ConfigureSidebarDialog.NewButton}" +
"";
this.newCategoryButton.Click += new System.EventHandler(this.NewCategoryButtonClick);
//
// panel
//
this.panel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel.Controls.Add(this.componentListView);
this.panel.Controls.Add(this.panel2);
this.panel.Controls.Add(this.splitter);
this.panel.Controls.Add(this.categoryListView);
this.panel.Location = new System.Drawing.Point(8, 8);
this.panel.Name = "panel";
this.panel.Size = new System.Drawing.Size(586, 355);
this.panel.TabIndex = 6;
//
// ConfigureSideBarDialog
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(602, 402);
this.Controls.Add(this.renameCategoryButton);
this.Controls.Add(this.cancelButton);
this.Controls.Add(this.okButton);
this.Controls.Add(this.removeCategoryButton);
this.Controls.Add(this.newCategoryButton);
this.Controls.Add(this.panel);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "ConfigureSideBarDialog";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.ConfigureSidebarDialog.DialogName" +
"}";
this.panel2.ResumeLayout(false);
this.panel.ResumeLayout(false);
this.ResumeLayout(false);
}
private System.Windows.Forms.Panel panel;
private System.Windows.Forms.Button newCategoryButton;
private System.Windows.Forms.ListView componentListView;
private System.Windows.Forms.Button removeCategoryButton;
private System.Windows.Forms.Button okButton;
private System.Windows.Forms.ColumnHeader columnHeader;
private System.Windows.Forms.Button cancelButton;
private System.Windows.Forms.ColumnHeader columnHeader5;
private System.Windows.Forms.ListView categoryListView;
private System.Windows.Forms.ColumnHeader columnHeader2;
private System.Windows.Forms.Splitter splitter;
private System.Windows.Forms.ColumnHeader columnHeader3;
private System.Windows.Forms.Button renameCategoryButton;
private System.Windows.Forms.Button removeComponentsButton;
private System.Windows.Forms.Button addComponentsButton;
private System.Windows.Forms.Panel panel2;
}
}

115
src/AddIns/DisplayBindings/FormsDesigner/FormsDesigner.AddIn/Toolbox/ConfigureSideBarDialog.cs

@ -1,7 +1,5 @@ @@ -1,7 +1,5 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
// created on 07.08.2003 at 13:36
using System;
using System.Collections;
using System.Drawing;
@ -13,64 +11,57 @@ using ICSharpCode.SharpDevelop.Gui.XmlForms; @@ -13,64 +11,57 @@ using ICSharpCode.SharpDevelop.Gui.XmlForms;
namespace ICSharpCode.FormsDesigner.Gui
{
public class ConfigureSideBarDialog : BaseSharpDevelopForm
public partial class ConfigureSideBarDialog : Form
{
ArrayList oldComponents;
ToolboxProvider toolbox;
public ConfigureSideBarDialog()
public ConfigureSideBarDialog(ToolboxProvider toolbox)
{
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("ICSharpCode.FormsDesigner.Resources.ConfigureSidebarDialog.xfrm"));
InitializeComponent();
oldComponents = ToolboxProvider.ComponentLibraryLoader.CopyCategories();
oldComponents = toolbox.ComponentLibraryLoader.CopyCategories();
FillCategories();
categoryListViewSelectedIndexChanged(this, EventArgs.Empty);
componentListViewSelectedIndexChanged(this, EventArgs.Empty);
ControlDictionary["okButton"].Click += new System.EventHandler(this.okButtonClick);
ControlDictionary["newCategoryButton"].Click += new System.EventHandler(this.newCategoryButtonClick);
ControlDictionary["renameCategoryButton"].Click += new System.EventHandler(this.renameCategoryButtonClick);
ControlDictionary["removeCategoryButton"].Click += new System.EventHandler(this.removeCategoryButtonClick);
ControlDictionary["addComponentsButton"].Click += new System.EventHandler(this.button3Click);
ControlDictionary["removeComponentsButton"].Click += new System.EventHandler(this.removeComponentsButtonClick);
((ListView)ControlDictionary["categoryListView"]).SelectedIndexChanged += new System.EventHandler(this.categoryListViewSelectedIndexChanged);
((ListView)ControlDictionary["componentListView"]).SelectedIndexChanged += new System.EventHandler(this.componentListViewSelectedIndexChanged);
CategoryListViewSelectedIndexChanged(this, EventArgs.Empty);
ComponentListViewSelectedIndexChanged(this, EventArgs.Empty);
}
void FillCategories()
{
((ListView)ControlDictionary["categoryListView"]).BeginUpdate();
((ListView)ControlDictionary["categoryListView"]).Items.Clear();
foreach (Category category in ToolboxProvider.ComponentLibraryLoader.Categories) {
categoryListView.BeginUpdate();
categoryListView.Items.Clear();
foreach (Category category in toolbox.ComponentLibraryLoader.Categories) {
ListViewItem newItem = new ListViewItem(category.Name);
newItem.Checked = category.IsEnabled;
newItem.Tag = category;
((ListView)ControlDictionary["categoryListView"]).Items.Add(newItem);
categoryListView.Items.Add(newItem);
}
((ListView)ControlDictionary["categoryListView"]).EndUpdate();
categoryListView.EndUpdate();
}
void FillComponents()
{
((ListView)ControlDictionary["componentListView"]).ItemCheck -= new System.Windows.Forms.ItemCheckEventHandler(this.componentListViewItemCheck);
((ListView)ControlDictionary["componentListView"]).BeginUpdate();
((ListView)ControlDictionary["componentListView"]).Items.Clear();
((ListView)ControlDictionary["componentListView"]).SmallImageList = new ImageList();
categoryListView.ItemCheck -= this.ComponentListViewItemCheck;
categoryListView.BeginUpdate();
categoryListView.Items.Clear();
categoryListView.SmallImageList = new ImageList();
if (((ListView)ControlDictionary["categoryListView"]).SelectedItems != null && ((ListView)ControlDictionary["categoryListView"]).SelectedItems.Count == 1) {
Category category = (Category)((ListView)ControlDictionary["categoryListView"]).SelectedItems[0].Tag;
if (categoryListView.SelectedItems != null && categoryListView.SelectedItems.Count == 1) {
Category category = (Category)categoryListView.SelectedItems[0].Tag;
foreach (ToolComponent component in category.ToolComponents) {
Bitmap icon = null;
string loadError = null;
try {
icon = ToolboxProvider.ComponentLibraryLoader.GetIcon(component);
icon = toolbox.ComponentLibraryLoader.GetIcon(component);
} catch (Exception e) {
icon = IconService.GetBitmap("Icons.16x16.Warning");
loadError = e.Message;
}
if (icon != null) {
((ListView)ControlDictionary["componentListView"]).SmallImageList.Images.Add(icon);
componentListView.SmallImageList.Images.Add(icon);
}
ListViewItem newItem = new ListViewItem(component.Name);
@ -79,32 +70,32 @@ namespace ICSharpCode.FormsDesigner.Gui @@ -79,32 +70,32 @@ namespace ICSharpCode.FormsDesigner.Gui
newItem.Checked = component.IsEnabled;
newItem.Tag = component;
newItem.ImageIndex = ((ListView)ControlDictionary["componentListView"]).SmallImageList.Images.Count - 1;
((ListView)ControlDictionary["componentListView"]).Items.Add(newItem);
newItem.ImageIndex = componentListView.SmallImageList.Images.Count - 1;
componentListView.Items.Add(newItem);
}
}
((ListView)ControlDictionary["componentListView"]).EndUpdate();
((ListView)ControlDictionary["componentListView"]).ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.componentListViewItemCheck);
componentListView.EndUpdate();
componentListView.ItemCheck += this.ComponentListViewItemCheck;
}
// THIS METHOD IS MAINTAINED BY THE FORM DESIGNER
// DO NOT EDIT IT MANUALLY! YOUR CHANGES ARE LIKELY TO BE LOST
void categoryListViewSelectedIndexChanged(object sender, System.EventArgs e)
void CategoryListViewSelectedIndexChanged(object sender, System.EventArgs e)
{
ControlDictionary["renameCategoryButton"].Enabled = ControlDictionary["addComponentsButton"].Enabled = CurrentCategory != null;
renameCategoryButton.Enabled = addComponentsButton.Enabled = CurrentCategory != null;
FillComponents();
}
Category CurrentCategory {
get {
if (((ListView)ControlDictionary["categoryListView"]).SelectedItems != null && ((ListView)ControlDictionary["categoryListView"]).SelectedItems.Count == 1) {
return (Category)((ListView)ControlDictionary["categoryListView"]).SelectedItems[0].Tag;
if (categoryListView.SelectedItems != null && categoryListView.SelectedItems.Count == 1) {
return (Category)categoryListView.SelectedItems[0].Tag;
}
return null;
}
}
void button3Click(object sender, System.EventArgs e)
void AddComponentsButtonClick(object sender, System.EventArgs e)
{
AddComponentsDialog addComponentsDialog = new AddComponentsDialog();
if (addComponentsDialog.ShowDialog(this) == DialogResult.OK) {
@ -112,47 +103,47 @@ namespace ICSharpCode.FormsDesigner.Gui @@ -112,47 +103,47 @@ namespace ICSharpCode.FormsDesigner.Gui
CurrentCategory.ToolComponents.Add(component);
}
FillComponents();
categoryListViewSelectedIndexChanged(this, EventArgs.Empty);
componentListViewSelectedIndexChanged(this, EventArgs.Empty);
CategoryListViewSelectedIndexChanged(this, EventArgs.Empty);
ComponentListViewSelectedIndexChanged(this, EventArgs.Empty);
}
}
void newCategoryButtonClick(object sender, System.EventArgs e)
void NewCategoryButtonClick(object sender, System.EventArgs e)
{
RenameCategoryDialog renameCategoryDialog = new RenameCategoryDialog(null, this);
RenameCategoryDialog renameCategoryDialog = new RenameCategoryDialog(toolbox, null, this);
if (renameCategoryDialog.ShowDialog(this) == DialogResult.OK) {
ToolboxProvider.ComponentLibraryLoader.Categories.Add(new Category(renameCategoryDialog.CategoryName));
toolbox.ComponentLibraryLoader.Categories.Add(new Category(renameCategoryDialog.CategoryName));
FillCategories();
}
}
void removeCategoryButtonClick(object sender, System.EventArgs e)
void RemoveCategoryButtonClick(object sender, System.EventArgs e)
{
if (MessageService.AskQuestion("${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.ConfigureSideBarDialog.RemoveCategoryQuestion}")) {
categoryListViewSelectedIndexChanged(this, EventArgs.Empty);
ToolboxProvider.ComponentLibraryLoader.Categories.Remove(CurrentCategory);
CategoryListViewSelectedIndexChanged(this, EventArgs.Empty);
toolbox.ComponentLibraryLoader.Categories.Remove(CurrentCategory);
FillCategories();
FillComponents();
categoryListViewSelectedIndexChanged(this, EventArgs.Empty);
componentListViewSelectedIndexChanged(this, EventArgs.Empty);
CategoryListViewSelectedIndexChanged(this, EventArgs.Empty);
ComponentListViewSelectedIndexChanged(this, EventArgs.Empty);
}
}
void componentListViewSelectedIndexChanged(object sender, System.EventArgs e)
void ComponentListViewSelectedIndexChanged(object sender, System.EventArgs e)
{
ControlDictionary["removeComponentsButton"].Enabled = ((ListView)ControlDictionary["componentListView"]).SelectedItems != null && ((ListView)ControlDictionary["componentListView"]).SelectedItems.Count > 0;
removeComponentsButton.Enabled = componentListView.SelectedItems != null && componentListView.SelectedItems.Count > 0;
}
void removeComponentsButtonClick(object sender, System.EventArgs e)
void RemoveComponentsButtonClick(object sender, System.EventArgs e)
{
if (MessageService.AskQuestion("${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.ConfigureSideBarDialog.RemoveComponentsQuestion}")) {
foreach (ListViewItem item in ((ListView)ControlDictionary["componentListView"]).SelectedItems) {
foreach (ListViewItem item in componentListView.SelectedItems) {
CurrentCategory.ToolComponents.Remove((ToolComponent)item.Tag);
}
FillComponents();
componentListViewSelectedIndexChanged(this, EventArgs.Empty);
ComponentListViewSelectedIndexChanged(this, EventArgs.Empty);
}
}
@ -160,34 +151,34 @@ namespace ICSharpCode.FormsDesigner.Gui @@ -160,34 +151,34 @@ namespace ICSharpCode.FormsDesigner.Gui
{
base.OnClosed(e);
if (oldComponents != null) {
ToolboxProvider.ComponentLibraryLoader.Categories = oldComponents;
toolbox.ComponentLibraryLoader.Categories = oldComponents;
}
}
void renameCategoryButtonClick(object sender, System.EventArgs e)
void RenameCategoryButtonClick(object sender, System.EventArgs e)
{
RenameCategoryDialog renameCategoryDialog = new RenameCategoryDialog(this.CurrentCategory.Name, this);
RenameCategoryDialog renameCategoryDialog = new RenameCategoryDialog(toolbox, this.CurrentCategory.Name, this);
if (renameCategoryDialog.ShowDialog(this) == DialogResult.OK) {
this.CurrentCategory.Name = renameCategoryDialog.CategoryName;
FillCategories();
}
}
void okButtonClick(object sender, System.EventArgs e)
void OkButtonClick(object sender, System.EventArgs e)
{
oldComponents = null;
foreach (ListViewItem item in ((ListView)ControlDictionary["categoryListView"]).Items) {
foreach (ListViewItem item in categoryListView.Items) {
Category category = (Category)item.Tag;
category.IsEnabled = item.Checked;
}
ToolboxProvider.SaveToolbox();
toolbox.SaveToolbox();
}
void componentListViewItemCheck(object sender, System.Windows.Forms.ItemCheckEventArgs e)
void ComponentListViewItemCheck(object sender, System.Windows.Forms.ItemCheckEventArgs e)
{
ToolComponent tc = (ToolComponent)((ListView)ControlDictionary["componentListView"]).Items[e.Index].Tag;
ToolComponent tc = (ToolComponent)componentListView.Items[e.Index].Tag;
tc.IsEnabled = !tc.IsEnabled;
}
}

120
src/AddIns/DisplayBindings/FormsDesigner/FormsDesigner.AddIn/Toolbox/ConfigureSideBarDialog.resx

@ -0,0 +1,120 @@ @@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

8
src/AddIns/DisplayBindings/FormsDesigner/FormsDesigner.AddIn/Toolbox/CustomComponentsSideTab.cs

@ -22,11 +22,13 @@ namespace ICSharpCode.FormsDesigner.Gui @@ -22,11 +22,13 @@ namespace ICSharpCode.FormsDesigner.Gui
public class CustomComponentsSideTab : SideTabDesigner, IDisposable
{
bool disposed;
ToolboxProvider provider;
///<summary>Load an assembly's controls</summary>
public CustomComponentsSideTab(SideBarControl sideTab, string name, IToolboxService toolboxService)
public CustomComponentsSideTab(ToolboxProvider provider, SideBarControl sideTab, string name, IToolboxService toolboxService)
: base(sideTab, name, toolboxService)
{
this.provider = provider;
this.DisplayName = StringParser.Parse(this.Name);
ScanProjectAssemblies();
ProjectService.BuildFinished += RescanProjectAssemblies;
@ -49,7 +51,7 @@ namespace ICSharpCode.FormsDesigner.Gui @@ -49,7 +51,7 @@ namespace ICSharpCode.FormsDesigner.Gui
Items.Clear();
AddDefaultItem();
ScanProjectAssemblies();
ToolboxProvider.FormsDesignerSideBar.Refresh();
provider.FormsDesignerSideBar.Refresh();
}
void ProjectItemAdded(object sender, ProjectItemEventArgs e)
@ -113,7 +115,7 @@ namespace ICSharpCode.FormsDesigner.Gui @@ -113,7 +115,7 @@ namespace ICSharpCode.FormsDesigner.Gui
// is not a design component
continue;
isDesignComponent:
this.Items.Add(new SideTabItemDesigner(c.Name, new CustomComponentToolBoxItem(c.CompilationUnit.FileName, c.FullyQualifiedName)));
this.Items.Add(new SideTabItemDesigner(provider, c.Name, new CustomComponentToolBoxItem(c.CompilationUnit.FileName, c.FullyQualifiedName)));
}
}
}

102
src/AddIns/DisplayBindings/FormsDesigner/FormsDesigner.AddIn/Toolbox/RenameCategoryDialog.Designer.cs generated

@ -0,0 +1,102 @@ @@ -0,0 +1,102 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
namespace ICSharpCode.FormsDesigner.Gui
{
partial class RenameCategoryDialog
{
/// <summary>
/// Designer variable used to keep track of non-visual components.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Disposes resources used by the form.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing) {
if (components != null) {
components.Dispose();
}
}
base.Dispose(disposing);
}
/// <summary>
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
/// </summary>
private void InitializeComponent()
{
this.cancelButton = new System.Windows.Forms.Button();
this.okButton = new System.Windows.Forms.Button();
this.categoryNameTextBox = new System.Windows.Forms.TextBox();
this.label = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// cancelButton
//
this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelButton.Location = new System.Drawing.Point(211, 54);
this.cancelButton.Name = "cancelButton";
this.cancelButton.Size = new System.Drawing.Size(75, 23);
this.cancelButton.TabIndex = 7;
this.cancelButton.Text = "${res:Global.CancelButtonText}";
//
// okButton
//
this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.okButton.Location = new System.Drawing.Point(131, 54);
this.okButton.Name = "okButton";
this.okButton.Size = new System.Drawing.Size(75, 23);
this.okButton.TabIndex = 6;
this.okButton.Text = "${res:Global.OKButtonText}";
//
// categoryNameTextBox
//
this.categoryNameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.categoryNameTextBox.Location = new System.Drawing.Point(5, 23);
this.categoryNameTextBox.Name = "categoryNameTextBox";
this.categoryNameTextBox.Size = new System.Drawing.Size(280, 20);
this.categoryNameTextBox.TabIndex = 5;
//
// label
//
this.label.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label.Location = new System.Drawing.Point(5, 7);
this.label.Name = "label";
this.label.Size = new System.Drawing.Size(288, 16);
this.label.TabIndex = 4;
this.label.Text = "${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.RenameCategoryDialog.CategoryName" +
"Label}";
//
// RenameCategoryDialog
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(298, 85);
this.Controls.Add(this.cancelButton);
this.Controls.Add(this.okButton);
this.Controls.Add(this.categoryNameTextBox);
this.Controls.Add(this.label);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "RenameCategoryDialog";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.ResumeLayout(false);
this.PerformLayout();
}
private System.Windows.Forms.Label label;
private System.Windows.Forms.TextBox categoryNameTextBox;
private System.Windows.Forms.Button okButton;
private System.Windows.Forms.Button cancelButton;
}
}

33
src/AddIns/DisplayBindings/FormsDesigner/FormsDesigner.AddIn/Toolbox/RenameCategoryDialog.cs

@ -1,17 +1,15 @@ @@ -1,17 +1,15 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
// created on 08.08.2003 at 13:02
using System;
using System.Windows.Forms;
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop.Gui;
using ICSharpCode.SharpDevelop.Gui.XmlForms;
using ICSharpCode.SharpDevelop.Widgets.SideBar;
namespace ICSharpCode.FormsDesigner.Gui
{
public class RenameCategoryDialog : BaseSharpDevelopForm
public partial class RenameCategoryDialog : Form
{
string categoryName = String.Empty;
@ -21,50 +19,49 @@ namespace ICSharpCode.FormsDesigner.Gui @@ -21,50 +19,49 @@ namespace ICSharpCode.FormsDesigner.Gui
}
}
public RenameCategoryDialog(string categoryName, Form owner)
ToolboxProvider toolbox;
public RenameCategoryDialog(ToolboxProvider toolbox, string categoryName, Form owner)
{
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("ICSharpCode.FormsDesigner.Resources.RenameSidebarCategoryDialog.xfrm"));
this.toolbox = toolbox;
InitializeComponent();
this.Owner = owner;
if (categoryName == null) {
ControlDictionary["categoryNameTextBox"].Text = "New Category";
categoryNameTextBox.Text = "New Category";
Text = StringParser.Parse("${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.RenameCategoryDialog.NewCategoryDialogName}");
} else {
this.categoryName = categoryName;
ControlDictionary["categoryNameTextBox"].Text = categoryName;
categoryNameTextBox.Text = categoryName;
Text = StringParser.Parse("${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.RenameCategoryDialog.RenameCategoryDialogName}");
}
ControlDictionary["okButton"].Click += new EventHandler(okButtonClick);
}
void ShowDuplicateErrorMessage()
{
MessageService.ShowError("${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.RenameCategoryDialog.DuplicateNameError}");
}
void okButtonClick(object sender, System.EventArgs e)
void OkButtonClick(object sender, System.EventArgs e)
{
if (categoryName != ControlDictionary["categoryNameTextBox"].Text) {
foreach (Category cat in ToolboxProvider.ComponentLibraryLoader.Categories) {
if (cat.Name == ControlDictionary["categoryNameTextBox"].Text) {
if (categoryName != categoryNameTextBox.Text) {
foreach (Category cat in toolbox.ComponentLibraryLoader.Categories) {
if (cat.Name == categoryNameTextBox.Text) {
ShowDuplicateErrorMessage();
return;
}
}
foreach (SideTab tab in ToolboxProvider.FormsDesignerSideBar.Tabs) {
foreach (SideTab tab in toolbox.FormsDesignerSideBar.Tabs) {
if (!(tab is SideTabDesigner) && !(tab is CustomComponentsSideTab)) {
if (tab.Name == ControlDictionary["categoryNameTextBox"].Text) {
if (tab.Name == categoryNameTextBox.Text) {
ShowDuplicateErrorMessage();
return;
}
}
}
categoryName = ControlDictionary["categoryNameTextBox"].Text;
categoryName = categoryNameTextBox.Text;
}
DialogResult = System.Windows.Forms.DialogResult.OK;
}

120
src/AddIns/DisplayBindings/FormsDesigner/FormsDesigner.AddIn/Toolbox/RenameCategoryDialog.resx

@ -0,0 +1,120 @@ @@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

25
src/AddIns/DisplayBindings/FormsDesigner/Project/FormsDesigner.csproj

@ -45,28 +45,47 @@ @@ -45,28 +45,47 @@
<DefineConstants>DEBUG, FORMSDESIGNER_DLL</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="PresentationCore">
<RequiredTargetFramework>3.0</RequiredTargetFramework>
</Reference>
<Reference Include="PresentationFramework">
<RequiredTargetFramework>3.0</RequiredTargetFramework>
</Reference>
<Reference Include="System" />
<Reference Include="System.AddIn" />
<Reference Include="System.AddIn.Contract">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Core" />
<Reference Include="System.Design" />
<Reference Include="System.Drawing" />
<Reference Include="System.Drawing.Design" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Windows.Presentation">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="System.XML" />
<Reference Include="WindowsBase">
<RequiredTargetFramework>3.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsFormsIntegration">
<RequiredTargetFramework>3.0</RequiredTargetFramework>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\..\Main\ICSharpCode.SharpDevelop.Dom\Project\Src\EasyCodeDom.cs">
<Link>EasyCodeDom.cs</Link>
</Compile>
<EmbeddedResource Include="Resources\AddSidebarComponentsDialog.xfrm" />
<EmbeddedResource Include="Resources\ConfigureSidebarDialog.xfrm" />
<EmbeddedResource Include="Resources\RenameSidebarCategoryDialog.xfrm" />
<EmbeddedResource Include="Resources\WindowsFormsGridOptions.xfrm" />
<Compile Include="Configuration\AssemblyInfo.cs" />
<Compile Include="FormsDesignerAppDomainHost.cs" />
<Compile Include="Src\DesignerAppDomainManager.cs" />
<Compile Include="Src\DesignerLoader\SharpDevelopDesignerLoader.cs" />
<Compile Include="Src\DesignerLoader\IDesignerLoader.cs" />
<Compile Include="Src\FormsDesignerLoggingService.cs" />
<Compile Include="Src\Gui\ComponentLibraryLoader.cs" />
<Compile Include="Src\Gui\CustomComponentToolBoxItem.cs" />
<Compile Include="Src\IDesignerGenerator.cs" />

149
src/AddIns/DisplayBindings/FormsDesigner/Project/Resources/ConfigureSidebarDialog.xfrm

@ -1,149 +0,0 @@ @@ -1,149 +0,0 @@
<Components version="1.0">
<System.Windows.Forms.Form>
<Name value="ConfigureSideBarDialog" />
<ShowInTaskbar value="False" />
<FormBorderStyle value="FixedDialog" />
<StartPosition value="CenterScreen" />
<ClientSize value="{Width=602, Height=402}" />
<MinimizeBox value="False" />
<DockPadding value="" />
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.ConfigureSidebarDialog.DialogName}" />
<AcceptButton value="okButton [System.Windows.Forms.Button], Text: ${res:Global.OKButtonText}" />
<CancelButton value="cancelButton [System.Windows.Forms.Button], Text: ${res:Global.CancelButtonText}" />
<MaximizeBox value="False" />
<Controls>
<System.Windows.Forms.Button>
<Name value="renameCategoryButton" />
<Location value="{X=200,Y=371}" />
<ClientSize value="{Width=90, Height=23}" />
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.ConfigureSidebarDialog.RenameButton}" />
<Anchor value="Bottom, Left" />
<TabIndex value="3" />
</System.Windows.Forms.Button>
<System.Windows.Forms.Button>
<Name value="cancelButton" />
<Location value="{X=519,Y=371}" />
<ClientSize value="{Width=75, Height=23}" />
<Text value="${res:Global.CancelButtonText}" />
<Anchor value="Bottom, Right" />
<TabIndex value="5" />
<DialogResult value="Cancel" />
</System.Windows.Forms.Button>
<System.Windows.Forms.Button>
<Name value="okButton" />
<Location value="{X=439,Y=371}" />
<ClientSize value="{Width=75, Height=23}" />
<Text value="${res:Global.OKButtonText}" />
<Anchor value="Bottom, Right" />
<TabIndex value="4" />
<DialogResult value="OK" />
</System.Windows.Forms.Button>
<System.Windows.Forms.Button>
<Name value="removeCategoryButton" />
<Location value="{X=104,Y=371}" />
<ClientSize value="{Width=90, Height=23}" />
<Text value="${res:Global.RemoveButtonText}" />
<Anchor value="Bottom, Left" />
<TabIndex value="2" />
</System.Windows.Forms.Button>
<System.Windows.Forms.Button>
<Name value="newCategoryButton" />
<Location value="{X=8,Y=371}" />
<ClientSize value="{Width=90, Height=23}" />
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.ConfigureSidebarDialog.NewButton}" />
<Anchor value="Bottom, Left" />
<TabIndex value="1" />
</System.Windows.Forms.Button>
<System.Windows.Forms.Panel>
<Name value="panel" />
<Location value="{X=8,Y=8}" />
<ClientSize value="{Width=586, Height=355}" />
<DockPadding value="" />
<Anchor value="Top, Bottom, Left, Right" />
<TabIndex value="0" />
<Controls>
<System.Windows.Forms.ListView>
<Name value="componentListView" />
<GridLines value="True" />
<Dock value="Fill" />
<TabIndex value="2" />
<View value="Details" />
<FullRowSelect value="True" />
<Location value="{X=166,Y=0}" />
<ClientSize value="{Width=416, Height=311}" />
<CheckBoxes value="True" />
<HideSelection value="False" />
<Columns>
<System.Windows.Forms.ColumnHeader>
<Width value="123" />
<Name value="columnHeader" />
<Text value="${res:Global.Name}" />
</System.Windows.Forms.ColumnHeader>
<System.Windows.Forms.ColumnHeader>
<Width value="145" />
<Name value="columnHeader2" />
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.ConfigureSidebarDialog.Namespace}" />
</System.Windows.Forms.ColumnHeader>
<System.Windows.Forms.ColumnHeader>
<Width value="148" />
<Name value="columnHeader3" />
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.ConfigureSidebarDialog.Assembly}" />
</System.Windows.Forms.ColumnHeader>
</Columns>
</System.Windows.Forms.ListView>
<System.Windows.Forms.Panel>
<Name value="panel2" />
<Location value="{X=166,Y=315}" />
<ClientSize value="{Width=420, Height=40}" />
<DockPadding value="" />
<TabIndex value="3" />
<Dock value="Bottom" />
<Controls>
<System.Windows.Forms.Button>
<Name value="addComponentsButton" />
<Location value="{X=70,Y=8}" />
<ClientSize value="{Width=166, Height=23}" />
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.ConfigureSidebarDialog.AddComponentsButton}" />
<Anchor value="Bottom, Right" />
<TabIndex value="3" />
</System.Windows.Forms.Button>
<System.Windows.Forms.Button>
<Name value="removeComponentsButton" />
<Location value="{X=246,Y=8}" />
<ClientSize value="{Width=166, Height=23}" />
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.ConfigureSidebarDialog.RemoveComponentsButton}" />
<Anchor value="Bottom, Right" />
<TabIndex value="4" />
</System.Windows.Forms.Button>
</Controls>
</System.Windows.Forms.Panel>
<System.Windows.Forms.Splitter>
<Name value="splitter" />
<TabIndex value="1" />
<ClientSize value="{Width=6, Height=355}" />
<Location value="{X=160,Y=0}" />
</System.Windows.Forms.Splitter>
<System.Windows.Forms.ListView>
<Name value="categoryListView" />
<Dock value="Left" />
<MultiSelect value="False" />
<TabIndex value="0" />
<View value="Details" />
<FullRowSelect value="True" />
<Location value="{X=0,Y=0}" />
<ClientSize value="{Width=156, Height=351}" />
<CheckBoxes value="True" />
<HideSelection value="False" />
<Columns>
<System.Windows.Forms.ColumnHeader>
<Width value="156" />
<Name value="columnHeader5" />
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.ConfigureSidebarDialog.Categories}" />
</System.Windows.Forms.ColumnHeader>
</Columns>
</System.Windows.Forms.ListView>
</Controls>
</System.Windows.Forms.Panel>
</Controls>
</System.Windows.Forms.Form>
</Components>

48
src/AddIns/DisplayBindings/FormsDesigner/Project/Resources/RenameSidebarCategoryDialog.xfrm

@ -1,48 +0,0 @@ @@ -1,48 +0,0 @@
<Components version="1.0">
<System.Windows.Forms.Form>
<Name value="RenameCategoryDialog" />
<FormBorderStyle value="FixedDialog" />
<StartPosition value="CenterParent" />
<ClientSize value="{Width=298, Height=85}" />
<MinimizeBox value="False" />
<DockPadding value="" />
<AcceptButton value="okButton [System.Windows.Forms.Button], Text: ${res:Global.OKButtonText}" />
<CancelButton value="cancelButton [System.Windows.Forms.Button], Text: ${res:Global.CancelButtonText}" />
<MaximizeBox value="False" />
<Controls>
<System.Windows.Forms.Button>
<Name value="cancelButton" />
<Location value="{X=214,Y=55}" />
<ClientSize value="{Width=75, Height=23}" />
<Text value="${res:Global.CancelButtonText}" />
<Anchor value="Bottom, Right" />
<TabIndex value="3" />
<DialogResult value="Cancel" />
</System.Windows.Forms.Button>
<System.Windows.Forms.Button>
<Name value="okButton" />
<Location value="{X=134,Y=55}" />
<ClientSize value="{Width=75, Height=23}" />
<Text value="${res:Global.OKButtonText}" />
<Anchor value="Bottom, Right" />
<TabIndex value="2" />
</System.Windows.Forms.Button>
<System.Windows.Forms.TextBox>
<Name value="categoryNameTextBox" />
<Anchor value="Top, Left, Right" />
<TabIndex value="1" />
<Location value="{X=8,Y=24}" />
<ClientSize value="{Width=276, Height=17}" />
<Text value="" />
</System.Windows.Forms.TextBox>
<System.Windows.Forms.Label>
<Name value="label" />
<Text value="${res:ICSharpCode.SharpDevelop.FormDesigner.Gui.RenameCategoryDialog.CategoryNameLabel}" />
<Anchor value="Top, Left, Right" />
<TabIndex value="0" />
<ClientSize value="{Width=288, Height=16}" />
<Location value="{X=8,Y=8}" />
</System.Windows.Forms.Label>
</Controls>
</System.Windows.Forms.Form>
</Components>

47
src/AddIns/DisplayBindings/FormsDesigner/Project/Src/FormsDesignerLoggingService.cs

@ -1,47 +0,0 @@ @@ -1,47 +0,0 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
namespace ICSharpCode.FormsDesigner
{
public class FormsDesignerLoggingService
{
public static IFormsDesignerLoggingService Service;
public static void Debug(string message)
{
Service.Debug(message);
}
public static void Info(string message)
{
Service.Info(message);
}
public static void Warn(string message)
{
Service.Warn(message);
}
public static void Error(Exception error)
{
Service.Error(error);
}
public static void Error(string message, Exception error)
{
Service.Error(message, error);
}
public static void DebugFormatted(string format, params object[] args)
{
Service.DebugFormatted(format, args);
}
public static void WarnFormatted(string format, params object[] args)
{
Service.WarnFormatted(format, args);
}
}
}
Loading…
Cancel
Save