LocationNavigationDialog.cs 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769
  1. using PaintDotNet.CustomControl;
  2. using System;
  3. using System.Windows.Forms;
  4. namespace PaintDotNet.Hardware
  5. {
  6. internal partial class LocationNavigationDialog : HardwareBaseDialog
  7. {
  8. #region 声明组件
  9. private System.Windows.Forms.Panel panelall;
  10. private System.Windows.Forms.Label label9;
  11. private System.Windows.Forms.Panel panel1;
  12. private System.Windows.Forms.Panel panel2;
  13. private System.Windows.Forms.Panel panel3;
  14. private System.Windows.Forms.Label label10;
  15. private System.Windows.Forms.Label label6;
  16. private System.Windows.Forms.Label label5;
  17. private System.Windows.Forms.GroupBox groupBox1;
  18. private System.Windows.Forms.GroupBox groupBox2;
  19. private System.Windows.Forms.GroupBox groupBox3;
  20. private System.Windows.Forms.GroupBox groupBox4;
  21. private System.Windows.Forms.GroupBox groupBox5;
  22. private System.Windows.Forms.GroupBox groupBox6;
  23. private System.Windows.Forms.GroupBox groupBox7;
  24. private System.Windows.Forms.GroupBox groupBox9;
  25. private System.Windows.Forms.GroupBox groupBox10;
  26. private System.Windows.Forms.GroupBox groupBox12;
  27. private System.Windows.Forms.GroupBox groupBox13;
  28. private System.Windows.Forms.GroupBox groupBox14;
  29. private System.Windows.Forms.Button btnXYDistanceClear;
  30. private System.Windows.Forms.RadioButton rbtSpeedHarmonizeNo;
  31. private System.Windows.Forms.RadioButton rbtSpeedHarmonizeYes;
  32. private GroupBox groupBox8;
  33. private Button btnZDistanceClear;
  34. private CircleControl circleControl;
  35. private CircleControl circleSportControl;
  36. #endregion
  37. /// <summary>
  38. /// Z,XY速度同步
  39. /// </summary>
  40. protected override bool IsSpeedHarmonize => rbtSpeedHarmonizeYes.Checked;
  41. #region Dialog Initialize
  42. public LocationNavigationDialog() : base()
  43. {
  44. InitializeComponent();
  45. }
  46. public LocationNavigationDialog(AppWorkspace appWorkspace) : base(appWorkspace)
  47. {
  48. this.DoubleBuffered = true;//设置本窗体/
  49. SetStyle(ControlStyles.UserPaint, true);
  50. SetStyle(ControlStyles.AllPaintingInWmPaint, true); // 禁止擦除背景.
  51. SetStyle(ControlStyles.DoubleBuffer, true); // 双缓冲
  52. InitializeComponent();
  53. InitializeLanguageText();
  54. this.panel1.Controls.Add(m_documentWorkspace);
  55. circleControl = initViewCircal(100);
  56. circleSportControl = initSportCircal(100);
  57. panel2.Controls.Add(circleControl);
  58. panel3.Controls.Add(circleSportControl);
  59. // 步长单位初始化
  60. cmbXYStepUnit.Items.Clear();
  61. cmbZStepUnit.Items.Clear();
  62. this.cmbXYStepUnit.Items.AddRange(m_unit);
  63. this.cmbXYStepUnit.SelectedIndex = 1;
  64. this.cmbZStepUnit.Items.AddRange(m_unit);
  65. this.cmbZStepUnit.SelectedIndex = 1;
  66. }
  67. private new void InitializeLanguageText()
  68. {
  69. this.groupBox3.Text = PdnResources.GetString("Menu.Hardwontrol.Locationgation.navigate.text");
  70. this.label6.Text = "Y" + PdnResources.GetString("Menu.position.text") + ":";
  71. this.label5.Text = "X" + PdnResources.GetString("Menu.position.text") + ":";
  72. this.groupBox12.Text = PdnResources.GetString("Menu.Zaxis.text");
  73. this.groupBox13.Text = PdnResources.GetString("Menu.continuous.text");
  74. this.groupBox14.Text = PdnResources.GetString("Menu.Fixedlength.text");
  75. this.groupBox7.Text = PdnResources.GetString("Menu.Hardwantrol.Locatavtion.Linkagespeedregulation.text");
  76. this.rbtSpeedHarmonizeNo.Text = PdnResources.GetString("Menu.no.text");
  77. this.rbtSpeedHarmonizeYes.Text = PdnResources.GetString("Menu.Yes.text");
  78. this.groupBox8.Text = PdnResources.GetString("Menu.Hardwantrol.Locatavtion.Zaxisposition.text");
  79. this.btnZDistanceClear.Text = PdnResources.GetString("Menu.zeroclearing.text");
  80. this.gboxZspeed.Text = PdnResources.GetString("Menu.Runningspeed.text");
  81. this.groupBox9.Text = PdnResources.GetString("Menu.operation.text");
  82. this.groupBox10.Text = PdnResources.GetString("Menu.Hardwantrol.Locatavtion.Step-sizesetting.text");
  83. this.groupBox6.Text = PdnResources.GetString("Menu.Hardwantrol.Locatavtion.navigateoperation.text");
  84. this.groupBox5.Text = PdnResources.GetString("Menu.measuring.text");
  85. this.btnXYDistanceClear.Text = PdnResources.GetString("Menu.zeroclearing.text");
  86. this.groupBox4.Text = PdnResources.GetString("Menu.Hardwaontrol.Locatgation.navigatespeed.text");
  87. this.gboxXYspeed.Text = PdnResources.GetString("Menu.Hardwaontrol.Locatavigation.Movementspeed.text");
  88. this.groupBox2.Text = PdnResources.GetString("Menu.movementmode.text");
  89. this.groupBox1.Text = PdnResources.GetString("Menu.viewmode.text");
  90. this.Text = PdnResources.GetString("Menu.HardwareControl.LocationNavigation.Text");
  91. base.InitializeLanguageText();
  92. }
  93. private void InitializeComponent()
  94. {
  95. this.panelall = new System.Windows.Forms.Panel();
  96. this.groupBox3 = new System.Windows.Forms.GroupBox();
  97. this.label6 = new System.Windows.Forms.Label();
  98. this.label5 = new System.Windows.Forms.Label();
  99. this.panel1 = new System.Windows.Forms.Panel();
  100. this.groupBox12 = new System.Windows.Forms.GroupBox();
  101. this.groupBox8 = new System.Windows.Forms.GroupBox();
  102. this.btnZDistanceClear = new System.Windows.Forms.Button();
  103. this.groupBox13 = new System.Windows.Forms.GroupBox();
  104. this.groupBox14 = new System.Windows.Forms.GroupBox();
  105. this.groupBox7 = new System.Windows.Forms.GroupBox();
  106. this.rbtSpeedHarmonizeNo = new System.Windows.Forms.RadioButton();
  107. this.rbtSpeedHarmonizeYes = new System.Windows.Forms.RadioButton();
  108. this.groupBox9 = new System.Windows.Forms.GroupBox();
  109. this.groupBox10 = new System.Windows.Forms.GroupBox();
  110. this.groupBox6 = new System.Windows.Forms.GroupBox();
  111. this.groupBox5 = new System.Windows.Forms.GroupBox();
  112. this.btnXYDistanceClear = new System.Windows.Forms.Button();
  113. this.groupBox4 = new System.Windows.Forms.GroupBox();
  114. this.groupBox2 = new System.Windows.Forms.GroupBox();
  115. this.panel3 = new System.Windows.Forms.Panel();
  116. this.label10 = new System.Windows.Forms.Label();
  117. this.label9 = new System.Windows.Forms.Label();
  118. this.groupBox1 = new System.Windows.Forms.GroupBox();
  119. this.panel2 = new System.Windows.Forms.Panel();
  120. this.panelall.SuspendLayout();
  121. this.groupBox3.SuspendLayout();
  122. this.groupBox12.SuspendLayout();
  123. this.groupBox8.SuspendLayout();
  124. this.groupBox13.SuspendLayout();
  125. this.groupBox14.SuspendLayout();
  126. this.groupBox7.SuspendLayout();
  127. this.groupBox9.SuspendLayout();
  128. this.groupBox10.SuspendLayout();
  129. this.groupBox6.SuspendLayout();
  130. this.groupBox5.SuspendLayout();
  131. this.groupBox4.SuspendLayout();
  132. this.groupBox2.SuspendLayout();
  133. this.groupBox1.SuspendLayout();
  134. this.SuspendLayout();
  135. //
  136. // gboxXYspeed
  137. //
  138. this.gboxXYspeed.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  139. | System.Windows.Forms.AnchorStyles.Left)));
  140. this.gboxXYspeed.Location = new System.Drawing.Point(3, 518);
  141. this.gboxXYspeed.Size = new System.Drawing.Size(236, 101);
  142. this.gboxXYspeed.TabIndex = 2;
  143. this.gboxXYspeed.Text = "运动速度";
  144. //
  145. // gboxZspeed
  146. //
  147. this.gboxZspeed.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  148. | System.Windows.Forms.AnchorStyles.Left)));
  149. this.gboxZspeed.Location = new System.Drawing.Point(11, 325);
  150. this.gboxZspeed.Size = new System.Drawing.Size(192, 126);
  151. this.gboxZspeed.TabIndex = 10;
  152. this.gboxZspeed.Text = "运行速度";
  153. //
  154. // lblXPosition
  155. //
  156. this.lblXPosition.AutoSize = true;
  157. this.lblXPosition.Location = new System.Drawing.Point(72, 25);
  158. this.lblXPosition.Size = new System.Drawing.Size(11, 12);
  159. this.lblXPosition.TabIndex = 16;
  160. this.lblXPosition.Text = "0";
  161. //
  162. // lblYPosition
  163. //
  164. this.lblYPosition.AutoSize = true;
  165. this.lblYPosition.Location = new System.Drawing.Point(319, 25);
  166. this.lblYPosition.Size = new System.Drawing.Size(11, 12);
  167. this.lblYPosition.TabIndex = 17;
  168. this.lblYPosition.Text = "0";
  169. //
  170. // lblZPosition
  171. //
  172. this.lblZPosition.Location = new System.Drawing.Point(12, 25);
  173. this.lblZPosition.TabIndex = 1;
  174. //
  175. // lblXDistance
  176. //
  177. this.lblXDistance.AutoSize = true;
  178. this.lblXDistance.Location = new System.Drawing.Point(6, 21);
  179. this.lblXDistance.Size = new System.Drawing.Size(23, 12);
  180. this.lblXDistance.TabIndex = 20;
  181. this.lblXDistance.Text = "X:0";
  182. //
  183. // lblYDistance
  184. //
  185. this.lblYDistance.AutoSize = true;
  186. this.lblYDistance.Location = new System.Drawing.Point(6, 39);
  187. this.lblYDistance.Size = new System.Drawing.Size(23, 12);
  188. this.lblYDistance.TabIndex = 1;
  189. this.lblYDistance.Text = "Y:0";
  190. //
  191. // lblLDistance
  192. //
  193. this.lblLDistance.AutoSize = true;
  194. this.lblLDistance.Location = new System.Drawing.Point(6, 57);
  195. this.lblLDistance.Size = new System.Drawing.Size(23, 12);
  196. this.lblLDistance.TabIndex = 2;
  197. this.lblLDistance.Text = "L:0";
  198. //
  199. // btnFreeloadstage
  200. //
  201. this.btnFreeloadstage.Location = new System.Drawing.Point(161, 48);
  202. this.btnFreeloadstage.Size = new System.Drawing.Size(52, 23);
  203. this.btnFreeloadstage.TabIndex = 5;
  204. this.btnFreeloadstage.Text = "锁定";
  205. this.btnFreeloadstage.UseVisualStyleBackColor = true;
  206. //
  207. // btnStoploadstage
  208. //
  209. this.btnStoploadstage.Location = new System.Drawing.Point(98, 48);
  210. this.btnStoploadstage.Size = new System.Drawing.Size(52, 23);
  211. this.btnStoploadstage.TabIndex = 4;
  212. this.btnStoploadstage.Text = "停止";
  213. this.btnStoploadstage.UseVisualStyleBackColor = true;
  214. //
  215. // btnResetloadstage
  216. //
  217. this.btnResetloadstage.Location = new System.Drawing.Point(32, 48);
  218. this.btnResetloadstage.Size = new System.Drawing.Size(52, 23);
  219. this.btnResetloadstage.TabIndex = 3;
  220. this.btnResetloadstage.Text = "复位";
  221. this.btnResetloadstage.UseVisualStyleBackColor = true;
  222. //
  223. // btnCenterloadstage
  224. //
  225. this.btnCenterloadstage.Location = new System.Drawing.Point(161, 19);
  226. this.btnCenterloadstage.Size = new System.Drawing.Size(52, 23);
  227. this.btnCenterloadstage.TabIndex = 2;
  228. this.btnCenterloadstage.Text = "中心";
  229. this.btnCenterloadstage.UseVisualStyleBackColor = true;
  230. //
  231. // btnInloadstage
  232. //
  233. this.btnInloadstage.Location = new System.Drawing.Point(98, 19);
  234. this.btnInloadstage.Size = new System.Drawing.Size(52, 23);
  235. this.btnInloadstage.TabIndex = 1;
  236. this.btnInloadstage.Text = "进片";
  237. this.btnInloadstage.UseVisualStyleBackColor = true;
  238. //
  239. // btnOutloadstage
  240. //
  241. this.btnOutloadstage.Location = new System.Drawing.Point(32, 19);
  242. this.btnOutloadstage.Size = new System.Drawing.Size(52, 23);
  243. this.btnOutloadstage.TabIndex = 5;
  244. this.btnOutloadstage.Text = "出片";
  245. this.btnOutloadstage.UseVisualStyleBackColor = true;
  246. //
  247. // btnZStop
  248. //
  249. this.btnZStop.Location = new System.Drawing.Point(18, 22);
  250. this.btnZStop.Size = new System.Drawing.Size(52, 23);
  251. this.btnZStop.TabIndex = 1;
  252. this.btnZStop.Text = "停止";
  253. this.btnZStop.UseVisualStyleBackColor = true;
  254. //
  255. // btnZFree
  256. //
  257. this.btnZFree.Location = new System.Drawing.Point(118, 22);
  258. this.btnZFree.Size = new System.Drawing.Size(52, 23);
  259. this.btnZFree.TabIndex = 1;
  260. this.btnZFree.Text = "锁定";
  261. this.btnZFree.UseVisualStyleBackColor = true;
  262. //
  263. // txtXStep
  264. //
  265. this.txtXStep.Location = new System.Drawing.Point(36, 232);
  266. this.txtXStep.Size = new System.Drawing.Size(55, 21);
  267. this.txtXStep.TabIndex = 48;
  268. this.txtXStep.Text = "1000";
  269. //
  270. // txtYStep
  271. //
  272. this.txtYStep.Location = new System.Drawing.Point(122, 232);
  273. this.txtYStep.Size = new System.Drawing.Size(56, 21);
  274. this.txtYStep.TabIndex = 2;
  275. this.txtYStep.Text = "1000";
  276. //
  277. // txtZStep
  278. //
  279. this.txtZStep.Location = new System.Drawing.Point(18, 24);
  280. this.txtZStep.Size = new System.Drawing.Size(57, 21);
  281. this.txtZStep.TabIndex = 1;
  282. this.txtZStep.Text = "200";
  283. //
  284. // cmbXYStepUnit
  285. //
  286. this.cmbXYStepUnit.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  287. this.cmbXYStepUnit.FormattingEnabled = true;
  288. this.cmbXYStepUnit.Location = new System.Drawing.Point(184, 233);
  289. this.cmbXYStepUnit.Size = new System.Drawing.Size(40, 20);
  290. this.cmbXYStepUnit.TabIndex = 27;
  291. //
  292. // cmbZStepUnit
  293. //
  294. this.cmbZStepUnit.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  295. this.cmbZStepUnit.FormattingEnabled = true;
  296. this.cmbZStepUnit.Location = new System.Drawing.Point(113, 24);
  297. this.cmbZStepUnit.Size = new System.Drawing.Size(57, 20);
  298. this.cmbZStepUnit.TabIndex = 1;
  299. //
  300. // btnContinuityLower
  301. //
  302. this.btnContinuityLower.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
  303. this.btnContinuityLower.Location = new System.Drawing.Point(20, 91);
  304. this.btnContinuityLower.Size = new System.Drawing.Size(50, 50);
  305. this.btnContinuityLower.TabIndex = 13;
  306. this.btnContinuityLower.UseVisualStyleBackColor = true;
  307. //
  308. // btnContinuityUp
  309. //
  310. this.btnContinuityUp.Location = new System.Drawing.Point(20, 36);
  311. this.btnContinuityUp.Size = new System.Drawing.Size(50, 50);
  312. this.btnContinuityUp.TabIndex = 12;
  313. this.btnContinuityUp.UseVisualStyleBackColor = true;
  314. //
  315. // btnFixedLower
  316. //
  317. this.btnFixedLower.Location = new System.Drawing.Point(19, 91);
  318. this.btnFixedLower.Size = new System.Drawing.Size(50, 50);
  319. this.btnFixedLower.TabIndex = 15;
  320. this.btnFixedLower.UseVisualStyleBackColor = true;
  321. //
  322. // btnFixedUp
  323. //
  324. this.btnFixedUp.Location = new System.Drawing.Point(19, 36);
  325. this.btnFixedUp.Size = new System.Drawing.Size(50, 50);
  326. this.btnFixedUp.TabIndex = 14;
  327. this.btnFixedUp.UseVisualStyleBackColor = true;
  328. //
  329. // btnCenterDisplay
  330. //
  331. this.btnCenterDisplay.Location = new System.Drawing.Point(136, 20);
  332. this.btnCenterDisplay.Size = new System.Drawing.Size(86, 23);
  333. this.btnCenterDisplay.TabIndex = 2;
  334. this.btnCenterDisplay.Text = "中心显示";
  335. this.btnCenterDisplay.UseVisualStyleBackColor = true;
  336. //
  337. // btnStopall
  338. //
  339. this.btnStopall.Location = new System.Drawing.Point(25, 49);
  340. this.btnStopall.Size = new System.Drawing.Size(86, 23);
  341. this.btnStopall.TabIndex = 4;
  342. this.btnStopall.Text = "全部停止";
  343. this.btnStopall.UseVisualStyleBackColor = true;
  344. //
  345. // btnDsRocker
  346. //
  347. this.btnDsRocker.Location = new System.Drawing.Point(25, 20);
  348. this.btnDsRocker.Size = new System.Drawing.Size(86, 23);
  349. this.btnDsRocker.TabIndex = 3;
  350. this.btnDsRocker.Text = "禁用摇杆";
  351. this.btnDsRocker.UseVisualStyleBackColor = true;
  352. //
  353. // btnSetting
  354. //
  355. this.btnSetting.Location = new System.Drawing.Point(136, 49);
  356. this.btnSetting.Size = new System.Drawing.Size(86, 23);
  357. this.btnSetting.TabIndex = 5;
  358. this.btnSetting.Text = "参数设置";
  359. this.btnSetting.UseVisualStyleBackColor = true;
  360. //
  361. // panelall
  362. //
  363. this.panelall.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  364. | System.Windows.Forms.AnchorStyles.Left)
  365. | System.Windows.Forms.AnchorStyles.Right)));
  366. this.panelall.Controls.Add(this.groupBox3);
  367. this.panelall.Controls.Add(this.groupBox12);
  368. this.panelall.Controls.Add(this.groupBox6);
  369. this.panelall.Controls.Add(this.groupBox5);
  370. this.panelall.Controls.Add(this.groupBox4);
  371. this.panelall.Controls.Add(this.gboxXYspeed);
  372. this.panelall.Controls.Add(this.groupBox2);
  373. this.panelall.Controls.Add(this.groupBox1);
  374. this.panelall.Location = new System.Drawing.Point(10, 12);
  375. this.panelall.Name = "panelall";
  376. this.panelall.Size = new System.Drawing.Size(985, 715);
  377. this.panelall.TabIndex = 1;
  378. this.panelall.Controls.SetChildIndex(this.groupBox1, 0);
  379. this.panelall.Controls.SetChildIndex(this.groupBox2, 0);
  380. this.panelall.Controls.SetChildIndex(this.gboxXYspeed, 0);
  381. this.panelall.Controls.SetChildIndex(this.groupBox4, 0);
  382. this.panelall.Controls.SetChildIndex(this.groupBox5, 0);
  383. this.panelall.Controls.SetChildIndex(this.groupBox6, 0);
  384. this.panelall.Controls.SetChildIndex(this.groupBox12, 0);
  385. this.panelall.Controls.SetChildIndex(this.groupBox3, 0);
  386. //
  387. // groupBox3
  388. //
  389. this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  390. | System.Windows.Forms.AnchorStyles.Left)
  391. | System.Windows.Forms.AnchorStyles.Right)));
  392. this.groupBox3.Controls.Add(this.lblYPosition);
  393. this.groupBox3.Controls.Add(this.lblXPosition);
  394. this.groupBox3.Controls.Add(this.label6);
  395. this.groupBox3.Controls.Add(this.label5);
  396. this.groupBox3.Controls.Add(this.panel1);
  397. this.groupBox3.Location = new System.Drawing.Point(245, 6);
  398. this.groupBox3.Name = "groupBox3";
  399. this.groupBox3.Size = new System.Drawing.Size(507, 597);
  400. this.groupBox3.TabIndex = 17;
  401. this.groupBox3.TabStop = false;
  402. this.groupBox3.Text = "导航";
  403. this.groupBox3.Controls.SetChildIndex(this.panel1, 0);
  404. this.groupBox3.Controls.SetChildIndex(this.label5, 0);
  405. this.groupBox3.Controls.SetChildIndex(this.label6, 0);
  406. this.groupBox3.Controls.SetChildIndex(this.lblXPosition, 0);
  407. this.groupBox3.Controls.SetChildIndex(this.lblYPosition, 0);
  408. //
  409. // label6
  410. //
  411. this.label6.AutoSize = true;
  412. this.label6.Location = new System.Drawing.Point(253, 25);
  413. this.label6.Name = "label6";
  414. this.label6.Size = new System.Drawing.Size(47, 12);
  415. this.label6.TabIndex = 15;
  416. this.label6.Text = "Y位置:";
  417. //
  418. // label5
  419. //
  420. this.label5.AutoSize = true;
  421. this.label5.Location = new System.Drawing.Point(6, 25);
  422. this.label5.Name = "label5";
  423. this.label5.Size = new System.Drawing.Size(47, 12);
  424. this.label5.TabIndex = 14;
  425. this.label5.Text = "X位置:";
  426. //
  427. // panel1
  428. //
  429. this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  430. | System.Windows.Forms.AnchorStyles.Left)
  431. | System.Windows.Forms.AnchorStyles.Right)));
  432. this.panel1.BackColor = System.Drawing.SystemColors.Control;
  433. this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  434. this.panel1.Location = new System.Drawing.Point(8, 56);
  435. this.panel1.Name = "panel1";
  436. this.panel1.Size = new System.Drawing.Size(492, 531);
  437. this.panel1.TabIndex = 13;
  438. //
  439. // groupBox12
  440. //
  441. this.groupBox12.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  442. | System.Windows.Forms.AnchorStyles.Right)));
  443. this.groupBox12.Controls.Add(this.groupBox8);
  444. this.groupBox12.Controls.Add(this.groupBox13);
  445. this.groupBox12.Controls.Add(this.groupBox14);
  446. this.groupBox12.Controls.Add(this.groupBox7);
  447. this.groupBox12.Controls.Add(this.gboxZspeed);
  448. this.groupBox12.Controls.Add(this.groupBox9);
  449. this.groupBox12.Controls.Add(this.groupBox10);
  450. this.groupBox12.Location = new System.Drawing.Point(758, 6);
  451. this.groupBox12.Name = "groupBox12";
  452. this.groupBox12.Size = new System.Drawing.Size(216, 699);
  453. this.groupBox12.TabIndex = 11;
  454. this.groupBox12.TabStop = false;
  455. this.groupBox12.Text = "Z轴";
  456. this.groupBox12.Controls.SetChildIndex(this.groupBox10, 0);
  457. this.groupBox12.Controls.SetChildIndex(this.groupBox9, 0);
  458. this.groupBox12.Controls.SetChildIndex(this.gboxZspeed, 0);
  459. this.groupBox12.Controls.SetChildIndex(this.groupBox7, 0);
  460. this.groupBox12.Controls.SetChildIndex(this.groupBox14, 0);
  461. this.groupBox12.Controls.SetChildIndex(this.groupBox13, 0);
  462. this.groupBox12.Controls.SetChildIndex(this.groupBox8, 0);
  463. //
  464. // groupBox8
  465. //
  466. this.groupBox8.Controls.Add(this.btnZDistanceClear);
  467. this.groupBox8.Controls.Add(this.lblZPosition);
  468. this.groupBox8.Location = new System.Drawing.Point(11, 25);
  469. this.groupBox8.Name = "groupBox8";
  470. this.groupBox8.Size = new System.Drawing.Size(192, 60);
  471. this.groupBox8.TabIndex = 14;
  472. this.groupBox8.TabStop = false;
  473. this.groupBox8.Text = "Z轴位置";
  474. this.groupBox8.Controls.SetChildIndex(this.lblZPosition, 0);
  475. this.groupBox8.Controls.SetChildIndex(this.btnZDistanceClear, 0);
  476. //
  477. // btnZDistanceClear
  478. //
  479. this.btnZDistanceClear.Location = new System.Drawing.Point(118, 25);
  480. this.btnZDistanceClear.Name = "btnZDistanceClear";
  481. this.btnZDistanceClear.Size = new System.Drawing.Size(52, 23);
  482. this.btnZDistanceClear.TabIndex = 0;
  483. this.btnZDistanceClear.Text = "ClearZ";
  484. this.btnZDistanceClear.UseVisualStyleBackColor = true;
  485. this.btnZDistanceClear.Click += new System.EventHandler(this.btnZDistanceClear_Click);
  486. //
  487. // groupBox13
  488. //
  489. this.groupBox13.Controls.Add(this.btnContinuityLower);
  490. this.groupBox13.Controls.Add(this.btnContinuityUp);
  491. this.groupBox13.Location = new System.Drawing.Point(11, 101);
  492. this.groupBox13.Name = "groupBox13";
  493. this.groupBox13.Size = new System.Drawing.Size(93, 205);
  494. this.groupBox13.TabIndex = 12;
  495. this.groupBox13.TabStop = false;
  496. this.groupBox13.Text = "连续";
  497. //
  498. // groupBox14
  499. //
  500. this.groupBox14.Controls.Add(this.btnFixedLower);
  501. this.groupBox14.Controls.Add(this.btnFixedUp);
  502. this.groupBox14.Location = new System.Drawing.Point(110, 101);
  503. this.groupBox14.Name = "groupBox14";
  504. this.groupBox14.Size = new System.Drawing.Size(93, 205);
  505. this.groupBox14.TabIndex = 13;
  506. this.groupBox14.TabStop = false;
  507. this.groupBox14.Text = "定长";
  508. //
  509. // groupBox7
  510. //
  511. this.groupBox7.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
  512. | System.Windows.Forms.AnchorStyles.Right)));
  513. this.groupBox7.Controls.Add(this.rbtSpeedHarmonizeNo);
  514. this.groupBox7.Controls.Add(this.rbtSpeedHarmonizeYes);
  515. this.groupBox7.Location = new System.Drawing.Point(11, 618);
  516. this.groupBox7.Name = "groupBox7";
  517. this.groupBox7.Size = new System.Drawing.Size(192, 72);
  518. this.groupBox7.TabIndex = 6;
  519. this.groupBox7.TabStop = false;
  520. this.groupBox7.Text = "联动调速";
  521. //
  522. // rbtSpeedHarmonizeNo
  523. //
  524. this.rbtSpeedHarmonizeNo.AutoSize = true;
  525. this.rbtSpeedHarmonizeNo.Location = new System.Drawing.Point(118, 34);
  526. this.rbtSpeedHarmonizeNo.Name = "rbtSpeedHarmonizeNo";
  527. this.rbtSpeedHarmonizeNo.Size = new System.Drawing.Size(35, 16);
  528. this.rbtSpeedHarmonizeNo.TabIndex = 1;
  529. this.rbtSpeedHarmonizeNo.Text = "否";
  530. this.rbtSpeedHarmonizeNo.UseVisualStyleBackColor = true;
  531. //
  532. // rbtSpeedHarmonizeYes
  533. //
  534. this.rbtSpeedHarmonizeYes.AutoSize = true;
  535. this.rbtSpeedHarmonizeYes.Checked = true;
  536. this.rbtSpeedHarmonizeYes.Location = new System.Drawing.Point(18, 33);
  537. this.rbtSpeedHarmonizeYes.Name = "rbtSpeedHarmonizeYes";
  538. this.rbtSpeedHarmonizeYes.Size = new System.Drawing.Size(35, 16);
  539. this.rbtSpeedHarmonizeYes.TabIndex = 0;
  540. this.rbtSpeedHarmonizeYes.TabStop = true;
  541. this.rbtSpeedHarmonizeYes.Text = "是";
  542. this.rbtSpeedHarmonizeYes.UseVisualStyleBackColor = true;
  543. //
  544. // groupBox9
  545. //
  546. this.groupBox9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  547. this.groupBox9.Controls.Add(this.btnZFree);
  548. this.groupBox9.Controls.Add(this.btnZStop);
  549. this.groupBox9.Location = new System.Drawing.Point(11, 537);
  550. this.groupBox9.Name = "groupBox9";
  551. this.groupBox9.Size = new System.Drawing.Size(192, 60);
  552. this.groupBox9.TabIndex = 7;
  553. this.groupBox9.TabStop = false;
  554. this.groupBox9.Text = "操作";
  555. //
  556. // groupBox10
  557. //
  558. this.groupBox10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  559. this.groupBox10.Controls.Add(this.cmbZStepUnit);
  560. this.groupBox10.Controls.Add(this.txtZStep);
  561. this.groupBox10.Location = new System.Drawing.Point(11, 457);
  562. this.groupBox10.Name = "groupBox10";
  563. this.groupBox10.Size = new System.Drawing.Size(192, 67);
  564. this.groupBox10.TabIndex = 8;
  565. this.groupBox10.TabStop = false;
  566. this.groupBox10.Text = "步长设置";
  567. //
  568. // groupBox6
  569. //
  570. this.groupBox6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
  571. this.groupBox6.Controls.Add(this.btnSetting);
  572. this.groupBox6.Controls.Add(this.btnStopall);
  573. this.groupBox6.Controls.Add(this.btnCenterDisplay);
  574. this.groupBox6.Controls.Add(this.btnDsRocker);
  575. this.groupBox6.Location = new System.Drawing.Point(502, 621);
  576. this.groupBox6.Name = "groupBox6";
  577. this.groupBox6.Size = new System.Drawing.Size(250, 84);
  578. this.groupBox6.TabIndex = 5;
  579. this.groupBox6.TabStop = false;
  580. this.groupBox6.Text = "导航操作";
  581. //
  582. // groupBox5
  583. //
  584. this.groupBox5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
  585. | System.Windows.Forms.AnchorStyles.Right)));
  586. this.groupBox5.Controls.Add(this.btnXYDistanceClear);
  587. this.groupBox5.Controls.Add(this.lblLDistance);
  588. this.groupBox5.Controls.Add(this.lblYDistance);
  589. this.groupBox5.Controls.Add(this.lblXDistance);
  590. this.groupBox5.Location = new System.Drawing.Point(245, 621);
  591. this.groupBox5.Name = "groupBox5";
  592. this.groupBox5.Size = new System.Drawing.Size(251, 84);
  593. this.groupBox5.TabIndex = 4;
  594. this.groupBox5.TabStop = false;
  595. this.groupBox5.Text = "测量";
  596. this.groupBox5.Controls.SetChildIndex(this.lblXDistance, 0);
  597. this.groupBox5.Controls.SetChildIndex(this.lblYDistance, 0);
  598. this.groupBox5.Controls.SetChildIndex(this.lblLDistance, 0);
  599. this.groupBox5.Controls.SetChildIndex(this.btnXYDistanceClear, 0);
  600. //
  601. // btnXYDistanceClear
  602. //
  603. this.btnXYDistanceClear.Location = new System.Drawing.Point(198, 34);
  604. this.btnXYDistanceClear.Name = "btnXYDistanceClear";
  605. this.btnXYDistanceClear.Size = new System.Drawing.Size(46, 23);
  606. this.btnXYDistanceClear.TabIndex = 17;
  607. this.btnXYDistanceClear.Text = "清零";
  608. this.btnXYDistanceClear.UseVisualStyleBackColor = true;
  609. this.btnXYDistanceClear.Click += new System.EventHandler(this.btnXYDistanceClear_Click);
  610. //
  611. // groupBox4
  612. //
  613. this.groupBox4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  614. this.groupBox4.Controls.Add(this.btnFreeloadstage);
  615. this.groupBox4.Controls.Add(this.btnStoploadstage);
  616. this.groupBox4.Controls.Add(this.btnResetloadstage);
  617. this.groupBox4.Controls.Add(this.btnCenterloadstage);
  618. this.groupBox4.Controls.Add(this.btnInloadstage);
  619. this.groupBox4.Controls.Add(this.btnOutloadstage);
  620. this.groupBox4.Location = new System.Drawing.Point(3, 621);
  621. this.groupBox4.Name = "groupBox4";
  622. this.groupBox4.Size = new System.Drawing.Size(236, 84);
  623. this.groupBox4.TabIndex = 3;
  624. this.groupBox4.TabStop = false;
  625. this.groupBox4.Text = "导航速度";
  626. //
  627. // groupBox2
  628. //
  629. this.groupBox2.Controls.Add(this.panel3);
  630. this.groupBox2.Controls.Add(this.label10);
  631. this.groupBox2.Controls.Add(this.cmbXYStepUnit);
  632. this.groupBox2.Controls.Add(this.txtYStep);
  633. this.groupBox2.Controls.Add(this.label9);
  634. this.groupBox2.Controls.Add(this.txtXStep);
  635. this.groupBox2.Location = new System.Drawing.Point(3, 246);
  636. this.groupBox2.Name = "groupBox2";
  637. this.groupBox2.Size = new System.Drawing.Size(236, 266);
  638. this.groupBox2.TabIndex = 1;
  639. this.groupBox2.TabStop = false;
  640. this.groupBox2.Text = "运动模式";
  641. this.groupBox2.Controls.SetChildIndex(this.txtXStep, 0);
  642. this.groupBox2.Controls.SetChildIndex(this.label9, 0);
  643. this.groupBox2.Controls.SetChildIndex(this.txtYStep, 0);
  644. this.groupBox2.Controls.SetChildIndex(this.cmbXYStepUnit, 0);
  645. this.groupBox2.Controls.SetChildIndex(this.label10, 0);
  646. this.groupBox2.Controls.SetChildIndex(this.panel3, 0);
  647. //
  648. // panel3
  649. //
  650. this.panel3.Location = new System.Drawing.Point(13, 23);
  651. this.panel3.Name = "panel3";
  652. this.panel3.Size = new System.Drawing.Size(211, 203);
  653. this.panel3.TabIndex = 45;
  654. //
  655. // label10
  656. //
  657. this.label10.Location = new System.Drawing.Point(97, 236);
  658. this.label10.Name = "label10";
  659. this.label10.Size = new System.Drawing.Size(19, 18);
  660. this.label10.TabIndex = 44;
  661. this.label10.Text = "Y:";
  662. //
  663. // label9
  664. //
  665. this.label9.Location = new System.Drawing.Point(11, 235);
  666. this.label9.Name = "label9";
  667. this.label9.Size = new System.Drawing.Size(19, 18);
  668. this.label9.TabIndex = 1;
  669. this.label9.Text = "X:";
  670. //
  671. // groupBox1
  672. //
  673. this.groupBox1.Controls.Add(this.panel2);
  674. this.groupBox1.Location = new System.Drawing.Point(3, 3);
  675. this.groupBox1.Name = "groupBox1";
  676. this.groupBox1.Size = new System.Drawing.Size(236, 237);
  677. this.groupBox1.TabIndex = 0;
  678. this.groupBox1.TabStop = false;
  679. this.groupBox1.Text = "视场模式";
  680. //
  681. // panel2
  682. //
  683. this.panel2.Location = new System.Drawing.Point(10, 20);
  684. this.panel2.Name = "panel2";
  685. this.panel2.Size = new System.Drawing.Size(214, 211);
  686. this.panel2.TabIndex = 0;
  687. //
  688. // LocationNavigationDialog
  689. //
  690. this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
  691. this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  692. this.AutoScroll = true;
  693. this.ClientSize = new System.Drawing.Size(1008, 735);
  694. this.Controls.Add(this.panelall);
  695. this.MinimumSize = new System.Drawing.Size(1024, 774);
  696. this.Name = "LocationNavigationDialog";
  697. this.Text = "位置导航";
  698. this.Controls.SetChildIndex(this.panelall, 0);
  699. this.panelall.ResumeLayout(false);
  700. this.groupBox3.ResumeLayout(false);
  701. this.groupBox3.PerformLayout();
  702. this.groupBox12.ResumeLayout(false);
  703. this.groupBox8.ResumeLayout(false);
  704. this.groupBox13.ResumeLayout(false);
  705. this.groupBox14.ResumeLayout(false);
  706. this.groupBox7.ResumeLayout(false);
  707. this.groupBox7.PerformLayout();
  708. this.groupBox9.ResumeLayout(false);
  709. this.groupBox10.ResumeLayout(false);
  710. this.groupBox10.PerformLayout();
  711. this.groupBox6.ResumeLayout(false);
  712. this.groupBox5.ResumeLayout(false);
  713. this.groupBox5.PerformLayout();
  714. this.groupBox4.ResumeLayout(false);
  715. this.groupBox2.ResumeLayout(false);
  716. this.groupBox2.PerformLayout();
  717. this.groupBox1.ResumeLayout(false);
  718. this.ResumeLayout(false);
  719. }
  720. private void RbtSpeedHarmonizeYes_CheckedChanged(object sender, EventArgs e)
  721. {
  722. RadioButton tempBtn = (RadioButton)sender;
  723. bool tempB = tempBtn.Checked;
  724. if (tempB)
  725. {// 需要将xy速度选中的值与z选中的值保持一致
  726. for (int i = 0; i < gboxXYspeed.Controls.Count; i++)
  727. {
  728. RadioButton tempSelectBtn = (RadioButton)gboxXYspeed.Controls[i];
  729. if (tempSelectBtn.Checked)
  730. {
  731. ((RadioButton)gboxZspeed.Controls[i]).Checked = true;
  732. }
  733. }
  734. }
  735. }
  736. #endregion
  737. #region Clear Distance
  738. protected virtual void btnXYDistanceClear_Click(object sender, EventArgs e)
  739. {
  740. lblXDistance.Text = "X:0";
  741. lblYDistance.Text = "Y:0";
  742. lblLDistance.Text = "L:0";
  743. m_initStepX = m_Stage.X;
  744. m_initStepY = m_Stage.Y;
  745. }
  746. protected virtual void btnZDistanceClear_Click(object sender, EventArgs e)
  747. {
  748. m_Stage.ClearPosZ();
  749. }
  750. #endregion
  751. }
  752. }