|
|
|
|
using DevExpress.XtraEditors;
|
|
|
|
|
using DevExpress.XtraEditors.Controls;
|
|
|
|
|
using DevExpress.XtraTab;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
|
|
|
|
|
namespace KGIS.Plugin.LayerProperty.View
|
|
|
|
|
{
|
|
|
|
|
partial class FormPlacmentProps
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Required designer variable.
|
|
|
|
|
/// </summary>
|
|
|
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Clean up any resources being used.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
|
|
|
protected override void Dispose(bool disposing)
|
|
|
|
|
{
|
|
|
|
|
if (disposing && (components != null))
|
|
|
|
|
{
|
|
|
|
|
components.Dispose();
|
|
|
|
|
}
|
|
|
|
|
base.Dispose(disposing);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Required method for Designer support - do not modify
|
|
|
|
|
/// the contents of this method with the code editor.
|
|
|
|
|
/// </summary>
|
|
|
|
|
private void InitializeComponent()
|
|
|
|
|
{
|
|
|
|
|
this.components = new System.ComponentModel.Container();
|
|
|
|
|
this.xtraTabControl1 = new XtraTabControl();
|
|
|
|
|
this.xtraTabPage1 = new XtraTabPage();
|
|
|
|
|
this.groupControl2 = new GroupControl();
|
|
|
|
|
this.rgpDuplicateLabel = new RadioGroup();
|
|
|
|
|
this.grpLabelSet = new GroupControl();
|
|
|
|
|
this.xtraTabPage2 = new XtraTabPage();
|
|
|
|
|
this.chkOverlapping = new CheckEdit();
|
|
|
|
|
this.groupControl4 = new GroupControl();
|
|
|
|
|
this.labelControl7 = new LabelControl();
|
|
|
|
|
this.txtBufferRatio = new TextEdit();
|
|
|
|
|
this.labelControl6 = new LabelControl();
|
|
|
|
|
this.groupControl3 = new GroupControl();
|
|
|
|
|
this.labelControl5 = new LabelControl();
|
|
|
|
|
this.labelControl4 = new LabelControl();
|
|
|
|
|
this.cmbFeatureWeight = new ComboBoxEdit();
|
|
|
|
|
this.labelControl3 = new LabelControl();
|
|
|
|
|
this.groupControl1 = new GroupControl();
|
|
|
|
|
this.labelControl2 = new LabelControl();
|
|
|
|
|
this.cmbLabelWeight = new ComboBoxEdit();
|
|
|
|
|
this.labelControl1 = new LabelControl();
|
|
|
|
|
this.btnOK = new SimpleButton();
|
|
|
|
|
this.btnCancel = new SimpleButton();
|
|
|
|
|
((ISupportInitialize)this.xtraTabControl1).BeginInit();
|
|
|
|
|
this.xtraTabControl1.SuspendLayout();
|
|
|
|
|
this.xtraTabPage1.SuspendLayout();
|
|
|
|
|
((ISupportInitialize)this.groupControl2).BeginInit();
|
|
|
|
|
this.groupControl2.SuspendLayout();
|
|
|
|
|
((ISupportInitialize)this.rgpDuplicateLabel.Properties).BeginInit();
|
|
|
|
|
((ISupportInitialize)this.grpLabelSet).BeginInit();
|
|
|
|
|
this.xtraTabPage2.SuspendLayout();
|
|
|
|
|
((ISupportInitialize)this.chkOverlapping.Properties).BeginInit();
|
|
|
|
|
((ISupportInitialize)this.groupControl4).BeginInit();
|
|
|
|
|
this.groupControl4.SuspendLayout();
|
|
|
|
|
((ISupportInitialize)this.txtBufferRatio.Properties).BeginInit();
|
|
|
|
|
((ISupportInitialize)this.groupControl3).BeginInit();
|
|
|
|
|
this.groupControl3.SuspendLayout();
|
|
|
|
|
((ISupportInitialize)this.cmbFeatureWeight.Properties).BeginInit();
|
|
|
|
|
((ISupportInitialize)this.groupControl1).BeginInit();
|
|
|
|
|
this.groupControl1.SuspendLayout();
|
|
|
|
|
((ISupportInitialize)this.cmbLabelWeight.Properties).BeginInit();
|
|
|
|
|
base.SuspendLayout();
|
|
|
|
|
this.xtraTabControl1.Location = new Point(9, 9);
|
|
|
|
|
this.xtraTabControl1.Name = "xtraTabControl1";
|
|
|
|
|
this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1;
|
|
|
|
|
this.xtraTabControl1.Size = new Size(374, 422);
|
|
|
|
|
this.xtraTabControl1.TabIndex = 0;
|
|
|
|
|
this.xtraTabControl1.TabPages.AddRange(new XtraTabPage[]
|
|
|
|
|
{
|
|
|
|
|
this.xtraTabPage1,
|
|
|
|
|
this.xtraTabPage2
|
|
|
|
|
});
|
|
|
|
|
this.xtraTabPage1.Controls.Add(this.groupControl2);
|
|
|
|
|
this.xtraTabPage1.Controls.Add(this.grpLabelSet);
|
|
|
|
|
this.xtraTabPage1.Name = "xtraTabPage1";
|
|
|
|
|
this.xtraTabPage1.Size = new Size(365, 390);
|
|
|
|
|
this.xtraTabPage1.Text = "布局";
|
|
|
|
|
this.groupControl2.Controls.Add(this.rgpDuplicateLabel);
|
|
|
|
|
this.groupControl2.Location = new Point(3, 288);
|
|
|
|
|
this.groupControl2.Name = "groupControl2";
|
|
|
|
|
this.groupControl2.Size = new Size(359, 99);
|
|
|
|
|
this.groupControl2.TabIndex = 1;
|
|
|
|
|
this.groupControl2.Text = "重复标注";
|
|
|
|
|
this.rgpDuplicateLabel.Location = new Point(5, 24);
|
|
|
|
|
this.rgpDuplicateLabel.Name = "rgpDuplicateLabel";
|
|
|
|
|
this.rgpDuplicateLabel.Properties.Appearance.BackColor = Color.Transparent;
|
|
|
|
|
this.rgpDuplicateLabel.Properties.Appearance.Options.UseBackColor = true;
|
|
|
|
|
this.rgpDuplicateLabel.Properties.BorderStyle = BorderStyles.NoBorder;
|
|
|
|
|
this.rgpDuplicateLabel.Properties.Items.AddRange(new RadioGroupItem[]
|
|
|
|
|
{
|
|
|
|
|
new RadioGroupItem(null, "移除重复标注"),
|
|
|
|
|
new RadioGroupItem(null, "一个要素一个标注"),
|
|
|
|
|
new RadioGroupItem(null, "标注每个要素的各个部分")
|
|
|
|
|
});
|
|
|
|
|
this.rgpDuplicateLabel.Size = new Size(342, 70);
|
|
|
|
|
this.rgpDuplicateLabel.TabIndex = 2;
|
|
|
|
|
this.rgpDuplicateLabel.SelectedIndexChanged += new System.EventHandler(this.rgpDuplicateLabel_SelectedIndexChanged);
|
|
|
|
|
this.grpLabelSet.Location = new Point(3, 3);
|
|
|
|
|
this.grpLabelSet.Name = "grpLabelSet";
|
|
|
|
|
this.grpLabelSet.Size = new Size(359, 279);
|
|
|
|
|
this.grpLabelSet.TabIndex = 0;
|
|
|
|
|
this.grpLabelSet.Text = "面状要素设置";
|
|
|
|
|
this.xtraTabPage2.Controls.Add(this.chkOverlapping);
|
|
|
|
|
this.xtraTabPage2.Controls.Add(this.groupControl4);
|
|
|
|
|
this.xtraTabPage2.Controls.Add(this.groupControl3);
|
|
|
|
|
this.xtraTabPage2.Controls.Add(this.groupControl1);
|
|
|
|
|
this.xtraTabPage2.Name = "xtraTabPage2";
|
|
|
|
|
this.xtraTabPage2.Size = new Size(365, 390);
|
|
|
|
|
this.xtraTabPage2.Text = "冲突探测";
|
|
|
|
|
this.chkOverlapping.Location = new Point(3, 360);
|
|
|
|
|
this.chkOverlapping.Name = "chkOverlapping";
|
|
|
|
|
this.chkOverlapping.Properties.Caption = "放置重叠标注";
|
|
|
|
|
this.chkOverlapping.Size = new Size(125, 19);
|
|
|
|
|
this.chkOverlapping.TabIndex = 1;
|
|
|
|
|
this.groupControl4.Controls.Add(this.labelControl7);
|
|
|
|
|
this.groupControl4.Controls.Add(this.txtBufferRatio);
|
|
|
|
|
this.groupControl4.Controls.Add(this.labelControl6);
|
|
|
|
|
this.groupControl4.Location = new Point(3, 237);
|
|
|
|
|
this.groupControl4.Name = "groupControl4";
|
|
|
|
|
this.groupControl4.Size = new Size(359, 113);
|
|
|
|
|
this.groupControl4.TabIndex = 0;
|
|
|
|
|
this.groupControl4.Text = "缓冲";
|
|
|
|
|
this.labelControl7.Location = new Point(16, 63);
|
|
|
|
|
this.labelControl7.Name = "labelControl7";
|
|
|
|
|
this.labelControl7.Size = new Size(336, 28);
|
|
|
|
|
this.labelControl7.TabIndex = 2;
|
|
|
|
|
this.labelControl7.Text = "该设置是为了防止标注之间的距离太紧凑,通过定义缓冲值使得\r\n缓冲范围内没有其他标注。";
|
|
|
|
|
this.txtBufferRatio.Location = new Point(164, 31);
|
|
|
|
|
this.txtBufferRatio.Name = "txtBufferRatio";
|
|
|
|
|
this.txtBufferRatio.Size = new Size(100, 21);
|
|
|
|
|
this.txtBufferRatio.TabIndex = 1;
|
|
|
|
|
this.labelControl6.Location = new Point(16, 34);
|
|
|
|
|
this.labelControl6.Name = "labelControl6";
|
|
|
|
|
this.labelControl6.Size = new Size(144, 14);
|
|
|
|
|
this.labelControl6.TabIndex = 0;
|
|
|
|
|
this.labelControl6.Text = "缓冲值为标注高度的比率:\r\n";
|
|
|
|
|
this.groupControl3.Controls.Add(this.labelControl5);
|
|
|
|
|
this.groupControl3.Controls.Add(this.labelControl4);
|
|
|
|
|
this.groupControl3.Controls.Add(this.cmbFeatureWeight);
|
|
|
|
|
this.groupControl3.Controls.Add(this.labelControl3);
|
|
|
|
|
this.groupControl3.Location = new Point(3, 102);
|
|
|
|
|
this.groupControl3.Name = "groupControl3";
|
|
|
|
|
this.groupControl3.Size = new Size(359, 129);
|
|
|
|
|
this.groupControl3.TabIndex = 0;
|
|
|
|
|
this.groupControl3.Text = "要素重要性";
|
|
|
|
|
this.labelControl5.Location = new Point(16, 110);
|
|
|
|
|
this.labelControl5.Name = "labelControl5";
|
|
|
|
|
this.labelControl5.Size = new Size(252, 14);
|
|
|
|
|
this.labelControl5.TabIndex = 2;
|
|
|
|
|
this.labelControl5.Text = "提示:为获得较快的显示速度重要性要设置为无\r\n";
|
|
|
|
|
this.labelControl4.Location = new Point(16, 76);
|
|
|
|
|
this.labelControl4.Name = "labelControl4";
|
|
|
|
|
this.labelControl4.Size = new Size(324, 28);
|
|
|
|
|
this.labelControl4.TabIndex = 2;
|
|
|
|
|
this.labelControl4.Text = "该项设置该图层的要素是否可以被本图层或其他图层的标注覆\r\n盖。如果重要性较低要素会被标注覆盖。";
|
|
|
|
|
this.cmbFeatureWeight.EditValue = "无";
|
|
|
|
|
this.cmbFeatureWeight.Location = new Point(94, 33);
|
|
|
|
|
this.cmbFeatureWeight.Name = "cmbFeatureWeight";
|
|
|
|
|
this.cmbFeatureWeight.Properties.Buttons.AddRange(new EditorButton[]
|
|
|
|
|
{
|
|
|
|
|
new EditorButton(ButtonPredefines.Combo)
|
|
|
|
|
});
|
|
|
|
|
this.cmbFeatureWeight.Properties.Items.AddRange(new object[]
|
|
|
|
|
{
|
|
|
|
|
"高",
|
|
|
|
|
"中",
|
|
|
|
|
"低",
|
|
|
|
|
"无"
|
|
|
|
|
});
|
|
|
|
|
this.cmbFeatureWeight.Properties.TextEditStyle = TextEditStyles.DisableTextEditor;
|
|
|
|
|
this.cmbFeatureWeight.Size = new Size(119, 21);
|
|
|
|
|
this.cmbFeatureWeight.TabIndex = 1;
|
|
|
|
|
this.labelControl3.Location = new Point(16, 36);
|
|
|
|
|
this.labelControl3.Name = "labelControl3";
|
|
|
|
|
this.labelControl3.Size = new Size(72, 14);
|
|
|
|
|
this.labelControl3.TabIndex = 0;
|
|
|
|
|
this.labelControl3.Text = "要素重要性:";
|
|
|
|
|
this.groupControl1.Controls.Add(this.labelControl2);
|
|
|
|
|
this.groupControl1.Controls.Add(this.cmbLabelWeight);
|
|
|
|
|
this.groupControl1.Controls.Add(this.labelControl1);
|
|
|
|
|
this.groupControl1.Location = new Point(3, 3);
|
|
|
|
|
this.groupControl1.Name = "groupControl1";
|
|
|
|
|
this.groupControl1.Size = new Size(359, 93);
|
|
|
|
|
this.groupControl1.TabIndex = 0;
|
|
|
|
|
this.groupControl1.Text = "标注重要性";
|
|
|
|
|
this.labelControl2.Location = new Point(14, 57);
|
|
|
|
|
this.labelControl2.Name = "labelControl2";
|
|
|
|
|
this.labelControl2.Size = new Size(324, 28);
|
|
|
|
|
this.labelControl2.TabIndex = 2;
|
|
|
|
|
this.labelControl2.Text = "该项设置该层的标注是否可以被其他图层的标注覆盖。重要性\r\n越高,被覆盖的几率越小。";
|
|
|
|
|
this.cmbLabelWeight.EditValue = "高";
|
|
|
|
|
this.cmbLabelWeight.Location = new Point(92, 30);
|
|
|
|
|
this.cmbLabelWeight.Name = "cmbLabelWeight";
|
|
|
|
|
this.cmbLabelWeight.Properties.Buttons.AddRange(new EditorButton[]
|
|
|
|
|
{
|
|
|
|
|
new EditorButton(ButtonPredefines.Combo)
|
|
|
|
|
});
|
|
|
|
|
this.cmbLabelWeight.Properties.Items.AddRange(new object[]
|
|
|
|
|
{
|
|
|
|
|
"高",
|
|
|
|
|
"中",
|
|
|
|
|
"低"
|
|
|
|
|
});
|
|
|
|
|
this.cmbLabelWeight.Properties.TextEditStyle = TextEditStyles.DisableTextEditor;
|
|
|
|
|
this.cmbLabelWeight.Size = new Size(121, 21);
|
|
|
|
|
this.cmbLabelWeight.TabIndex = 1;
|
|
|
|
|
this.labelControl1.Location = new Point(14, 33);
|
|
|
|
|
this.labelControl1.Name = "labelControl1";
|
|
|
|
|
this.labelControl1.Size = new Size(72, 14);
|
|
|
|
|
this.labelControl1.TabIndex = 0;
|
|
|
|
|
this.labelControl1.Text = "标注重要性:";
|
|
|
|
|
this.btnOK.Location = new Point(227, 437);
|
|
|
|
|
this.btnOK.Name = "btnOK";
|
|
|
|
|
this.btnOK.Size = new Size(75, 23);
|
|
|
|
|
this.btnOK.TabIndex = 1;
|
|
|
|
|
this.btnOK.Text = "确定";
|
|
|
|
|
this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
|
|
|
|
|
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
|
|
|
|
this.btnCancel.Location = new Point(308, 437);
|
|
|
|
|
this.btnCancel.Name = "btnCancel";
|
|
|
|
|
this.btnCancel.Size = new Size(75, 23);
|
|
|
|
|
this.btnCancel.TabIndex = 1;
|
|
|
|
|
this.btnCancel.Text = "取消";
|
|
|
|
|
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
|
|
|
|
|
base.AcceptButton = this.btnOK;
|
|
|
|
|
base.CancelButton = this.btnCancel;
|
|
|
|
|
base.ClientSize = new Size(390, 470);
|
|
|
|
|
base.Controls.Add(this.btnCancel);
|
|
|
|
|
base.Controls.Add(this.btnOK);
|
|
|
|
|
base.Controls.Add(this.xtraTabControl1);
|
|
|
|
|
base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
|
|
|
|
base.MaximizeBox = false;
|
|
|
|
|
base.MinimizeBox = false;
|
|
|
|
|
base.Name = "FormPlacmentProps";
|
|
|
|
|
base.ShowIcon = false;
|
|
|
|
|
base.ShowInTaskbar = false;
|
|
|
|
|
base.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
|
|
|
this.Text = "标注布局";
|
|
|
|
|
((ISupportInitialize)this.xtraTabControl1).EndInit();
|
|
|
|
|
this.xtraTabControl1.ResumeLayout(false);
|
|
|
|
|
this.xtraTabPage1.ResumeLayout(false);
|
|
|
|
|
((ISupportInitialize)this.groupControl2).EndInit();
|
|
|
|
|
this.groupControl2.ResumeLayout(false);
|
|
|
|
|
((ISupportInitialize)this.rgpDuplicateLabel.Properties).EndInit();
|
|
|
|
|
((ISupportInitialize)this.grpLabelSet).EndInit();
|
|
|
|
|
this.xtraTabPage2.ResumeLayout(false);
|
|
|
|
|
((ISupportInitialize)this.chkOverlapping.Properties).EndInit();
|
|
|
|
|
((ISupportInitialize)this.groupControl4).EndInit();
|
|
|
|
|
this.groupControl4.ResumeLayout(false);
|
|
|
|
|
this.groupControl4.PerformLayout();
|
|
|
|
|
((ISupportInitialize)this.txtBufferRatio.Properties).EndInit();
|
|
|
|
|
((ISupportInitialize)this.groupControl3).EndInit();
|
|
|
|
|
this.groupControl3.ResumeLayout(false);
|
|
|
|
|
this.groupControl3.PerformLayout();
|
|
|
|
|
((ISupportInitialize)this.cmbFeatureWeight.Properties).EndInit();
|
|
|
|
|
((ISupportInitialize)this.groupControl1).EndInit();
|
|
|
|
|
this.groupControl1.ResumeLayout(false);
|
|
|
|
|
this.groupControl1.PerformLayout();
|
|
|
|
|
((ISupportInitialize)this.cmbLabelWeight.Properties).EndInit();
|
|
|
|
|
base.ResumeLayout(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
private XtraTabControl xtraTabControl1;
|
|
|
|
|
private XtraTabPage xtraTabPage1;
|
|
|
|
|
private XtraTabPage xtraTabPage2;
|
|
|
|
|
private SimpleButton btnOK;
|
|
|
|
|
private SimpleButton btnCancel;
|
|
|
|
|
private GroupControl groupControl2;
|
|
|
|
|
private RadioGroup rgpDuplicateLabel;
|
|
|
|
|
private GroupControl grpLabelSet;
|
|
|
|
|
private GroupControl groupControl4;
|
|
|
|
|
private GroupControl groupControl3;
|
|
|
|
|
private GroupControl groupControl1;
|
|
|
|
|
private LabelControl labelControl2;
|
|
|
|
|
private ComboBoxEdit cmbLabelWeight;
|
|
|
|
|
private LabelControl labelControl1;
|
|
|
|
|
private LabelControl labelControl4;
|
|
|
|
|
private ComboBoxEdit cmbFeatureWeight;
|
|
|
|
|
private LabelControl labelControl3;
|
|
|
|
|
private LabelControl labelControl5;
|
|
|
|
|
private TextEdit txtBufferRatio;
|
|
|
|
|
private LabelControl labelControl6;
|
|
|
|
|
private LabelControl labelControl7;
|
|
|
|
|
private CheckEdit chkOverlapping;
|
|
|
|
|
}
|
|
|
|
|
}
|