Save head-file and changes on GUI

This commit is contained in:
2015-07-19 21:07:05 +02:00
parent 691cbf23e3
commit 572735bffe
2 changed files with 222 additions and 151 deletions

View File

@ -40,33 +40,38 @@
this.label3 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label();
this.txtPrefix = new System.Windows.Forms.TextBox(); this.txtPrefix = new System.Windows.Forms.TextBox();
this.chkWrap = new System.Windows.Forms.CheckBox(); this.chkWrap = new System.Windows.Forms.CheckBox();
this.btnGenICode = new System.Windows.Forms.Button();
this.chkUnique = new System.Windows.Forms.CheckBox(); this.chkUnique = new System.Windows.Forms.CheckBox();
this.btnMoves = new System.Windows.Forms.Button();
this.btnChooseFile = new System.Windows.Forms.Button(); this.btnChooseFile = new System.Windows.Forms.Button();
this.openFile = new System.Windows.Forms.OpenFileDialog(); this.openFile = new System.Windows.Forms.OpenFileDialog();
this.btnMoveFrom = new System.Windows.Forms.Button();
this.label4 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label();
this.txtMaxOcc = new System.Windows.Forms.TextBox(); this.txtMaxOcc = new System.Windows.Forms.TextBox();
this.chkUniqueAttrVars = new System.Windows.Forms.CheckBox(); this.chkUniqueAttrVars = new System.Windows.Forms.CheckBox();
this.chkUniqueVars = new System.Windows.Forms.CheckBox(); this.chkUniqueVars = new System.Windows.Forms.CheckBox();
this.chkDisplays = new System.Windows.Forms.CheckBox();
this.chkNoNsRef = new System.Windows.Forms.CheckBox(); this.chkNoNsRef = new System.Windows.Forms.CheckBox();
this.cmbLastFile = new System.Windows.Forms.ComboBox(); this.cmbLastFile = new System.Windows.Forms.ComboBox();
this.btnClearSettings = new System.Windows.Forms.Button(); this.btnClearSettings = new System.Windows.Forms.Button();
this.chkCountVars = new System.Windows.Forms.CheckBox(); this.chkCountVars = new System.Windows.Forms.CheckBox();
this.btnSettings = new System.Windows.Forms.Button(); this.btnSettings = new System.Windows.Forms.Button();
this.chkPerform = new System.Windows.Forms.CheckBox();
this.chkMvToDisp = new System.Windows.Forms.CheckBox();
this.chkNewArea = new System.Windows.Forms.CheckBox();
this.label5 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label();
this.txtExpPrefix = new System.Windows.Forms.TextBox(); this.txtExpPrefix = new System.Windows.Forms.TextBox();
this.chkAttribs = new System.Windows.Forms.CheckBox();
this.btnTestThings = new System.Windows.Forms.Button(); this.btnTestThings = new System.Windows.Forms.Button();
this.btnFrXMLTo = new System.Windows.Forms.Button();
this.btnCrossref = new System.Windows.Forms.Button(); this.btnCrossref = new System.Windows.Forms.Button();
this.chkBackupVars = new System.Windows.Forms.CheckBox(); this.chkBackupVars = new System.Windows.Forms.CheckBox();
this.btnRerun = new System.Windows.Forms.Button(); this.btnRerun = new System.Windows.Forms.Button();
this.grpProduce = new System.Windows.Forms.GroupBox();
this.btnFrXMLTo = new System.Windows.Forms.Button();
this.chkAttribs = new System.Windows.Forms.CheckBox();
this.chkNewArea = new System.Windows.Forms.CheckBox();
this.chkMvToDisp = new System.Windows.Forms.CheckBox();
this.chkPerform = new System.Windows.Forms.CheckBox();
this.chkDisplays = new System.Windows.Forms.CheckBox();
this.btnMoveFrom = new System.Windows.Forms.Button();
this.btnMoves = new System.Windows.Forms.Button();
this.btnGenICode = new System.Windows.Forms.Button();
this.grpSettings = new System.Windows.Forms.GroupBox();
this.btnSaveArea = new System.Windows.Forms.Button();
this.grpProduce.SuspendLayout();
this.grpSettings.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// button1 // button1
@ -88,7 +93,7 @@
this.outText.Multiline = true; this.outText.Multiline = true;
this.outText.Name = "outText"; this.outText.Name = "outText";
this.outText.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.outText.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.outText.Size = new System.Drawing.Size(380, 480); this.outText.Size = new System.Drawing.Size(380, 446);
this.outText.TabIndex = 1; this.outText.TabIndex = 1;
this.outText.WordWrap = false; this.outText.WordWrap = false;
// //
@ -102,7 +107,7 @@
this.outCob.Multiline = true; this.outCob.Multiline = true;
this.outCob.Name = "outCob"; this.outCob.Name = "outCob";
this.outCob.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.outCob.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.outCob.Size = new System.Drawing.Size(533, 480); this.outCob.Size = new System.Drawing.Size(514, 446);
this.outCob.TabIndex = 2; this.outCob.TabIndex = 2;
this.outCob.WordWrap = false; this.outCob.WordWrap = false;
this.outCob.KeyDown += new System.Windows.Forms.KeyEventHandler(this.outCob_KeyDown); this.outCob.KeyDown += new System.Windows.Forms.KeyEventHandler(this.outCob_KeyDown);
@ -130,9 +135,9 @@
// btnClose // btnClose
// //
this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnClose.Location = new System.Drawing.Point(864, 639); this.btnClose.Location = new System.Drawing.Point(848, 670);
this.btnClose.Name = "btnClose"; this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(75, 23); this.btnClose.Size = new System.Drawing.Size(72, 23);
this.btnClose.TabIndex = 6; this.btnClose.TabIndex = 6;
this.btnClose.Text = "Close"; this.btnClose.Text = "Close";
this.btnClose.UseVisualStyleBackColor = true; this.btnClose.UseVisualStyleBackColor = true;
@ -190,19 +195,6 @@
this.chkWrap.UseVisualStyleBackColor = true; this.chkWrap.UseVisualStyleBackColor = true;
this.chkWrap.CheckedChanged += new System.EventHandler(this.chkWrap_CheckedChanged); this.chkWrap.CheckedChanged += new System.EventHandler(this.chkWrap_CheckedChanged);
// //
// btnGenICode
//
this.btnGenICode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnGenICode.Enabled = false;
this.btnGenICode.Location = new System.Drawing.Point(410, 616);
this.btnGenICode.Margin = new System.Windows.Forms.Padding(2);
this.btnGenICode.Name = "btnGenICode";
this.btnGenICode.Size = new System.Drawing.Size(81, 23);
this.btnGenICode.TabIndex = 12;
this.btnGenICode.Text = "Gen Init kod";
this.btnGenICode.UseVisualStyleBackColor = true;
this.btnGenICode.Click += new System.EventHandler(this.btnGenICodeNew_Click);
//
// chkUnique // chkUnique
// //
this.chkUnique.AutoSize = true; this.chkUnique.AutoSize = true;
@ -215,19 +207,6 @@
this.chkUnique.UseVisualStyleBackColor = true; this.chkUnique.UseVisualStyleBackColor = true;
this.chkUnique.CheckedChanged += new System.EventHandler(this.chkUnique_CheckedChanged); this.chkUnique.CheckedChanged += new System.EventHandler(this.chkUnique_CheckedChanged);
// //
// btnMoves
//
this.btnMoves.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnMoves.Enabled = false;
this.btnMoves.Location = new System.Drawing.Point(495, 616);
this.btnMoves.Margin = new System.Windows.Forms.Padding(2);
this.btnMoves.Name = "btnMoves";
this.btnMoves.Size = new System.Drawing.Size(93, 23);
this.btnMoves.TabIndex = 14;
this.btnMoves.Text = "Gen Move kod";
this.btnMoves.UseVisualStyleBackColor = true;
this.btnMoves.Click += new System.EventHandler(this.btnMoves_Click);
//
// btnChooseFile // btnChooseFile
// //
this.btnChooseFile.Location = new System.Drawing.Point(20, 17); this.btnChooseFile.Location = new System.Drawing.Point(20, 17);
@ -242,18 +221,6 @@
// //
this.openFile.FileName = "openFile"; this.openFile.FileName = "openFile";
// //
// btnMoveFrom
//
this.btnMoveFrom.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnMoveFrom.Enabled = false;
this.btnMoveFrom.Location = new System.Drawing.Point(672, 616);
this.btnMoveFrom.Name = "btnMoveFrom";
this.btnMoveFrom.Size = new System.Drawing.Size(92, 23);
this.btnMoveFrom.TabIndex = 16;
this.btnMoveFrom.Text = "Gen Move från";
this.btnMoveFrom.UseVisualStyleBackColor = true;
this.btnMoveFrom.Click += new System.EventHandler(this.btnMoveFrom_Click);
//
// label4 // label4
// //
this.label4.AutoSize = true; this.label4.AutoSize = true;
@ -296,19 +263,6 @@
this.chkUniqueVars.UseVisualStyleBackColor = true; this.chkUniqueVars.UseVisualStyleBackColor = true;
this.chkUniqueVars.CheckedChanged += new System.EventHandler(this.chkUniqueVars_CheckedChanged); this.chkUniqueVars.CheckedChanged += new System.EventHandler(this.chkUniqueVars_CheckedChanged);
// //
// chkDisplays
//
this.chkDisplays.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.chkDisplays.AutoSize = true;
this.chkDisplays.Enabled = false;
this.chkDisplays.Location = new System.Drawing.Point(771, 628);
this.chkDisplays.Name = "chkDisplays";
this.chkDisplays.Size = new System.Drawing.Size(71, 17);
this.chkDisplays.TabIndex = 21;
this.chkDisplays.Text = "(Displays)";
this.chkDisplays.UseVisualStyleBackColor = true;
this.chkDisplays.CheckedChanged += new System.EventHandler(this.chkDisplays_CheckedChanged);
//
// chkNoNsRef // chkNoNsRef
// //
this.chkNoNsRef.AutoSize = true; this.chkNoNsRef.AutoSize = true;
@ -353,7 +307,7 @@
// btnSettings // btnSettings
// //
this.btnSettings.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnSettings.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnSettings.Location = new System.Drawing.Point(20, 616); this.btnSettings.Location = new System.Drawing.Point(9, 26);
this.btnSettings.Margin = new System.Windows.Forms.Padding(2); this.btnSettings.Margin = new System.Windows.Forms.Padding(2);
this.btnSettings.Name = "btnSettings"; this.btnSettings.Name = "btnSettings";
this.btnSettings.Size = new System.Drawing.Size(81, 23); this.btnSettings.Size = new System.Drawing.Size(81, 23);
@ -362,43 +316,6 @@
this.btnSettings.UseVisualStyleBackColor = true; this.btnSettings.UseVisualStyleBackColor = true;
this.btnSettings.Click += new System.EventHandler(this.btnSettings_Click); this.btnSettings.Click += new System.EventHandler(this.btnSettings_Click);
// //
// chkPerform
//
this.chkPerform.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.chkPerform.AutoSize = true;
this.chkPerform.Location = new System.Drawing.Point(594, 611);
this.chkPerform.Name = "chkPerform";
this.chkPerform.Size = new System.Drawing.Size(62, 17);
this.chkPerform.TabIndex = 27;
this.chkPerform.Text = "Perform";
this.chkPerform.UseVisualStyleBackColor = true;
this.chkPerform.CheckedChanged += new System.EventHandler(this.chkPerform_CheckedChanged);
//
// chkMvToDisp
//
this.chkMvToDisp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.chkMvToDisp.AutoSize = true;
this.chkMvToDisp.Location = new System.Drawing.Point(594, 628);
this.chkMvToDisp.Name = "chkMvToDisp";
this.chkMvToDisp.Size = new System.Drawing.Size(71, 17);
this.chkMvToDisp.TabIndex = 28;
this.chkMvToDisp.Text = "(Displays)";
this.chkMvToDisp.UseVisualStyleBackColor = true;
this.chkMvToDisp.CheckedChanged += new System.EventHandler(this.chkMvToDisp_CheckedChanged);
//
// chkNewArea
//
this.chkNewArea.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.chkNewArea.AutoSize = true;
this.chkNewArea.Location = new System.Drawing.Point(770, 611);
this.chkNewArea.Name = "chkNewArea";
this.chkNewArea.Size = new System.Drawing.Size(64, 17);
this.chkNewArea.TabIndex = 29;
this.chkNewArea.Text = "Till Area";
this.chkNewArea.UseVisualStyleBackColor = true;
this.chkNewArea.Visible = false;
this.chkNewArea.CheckedChanged += new System.EventHandler(this.chkNewArea_CheckedChanged);
//
// label5 // label5
// //
this.label5.AutoSize = true; this.label5.AutoSize = true;
@ -417,22 +334,10 @@
this.txtExpPrefix.Text = "GWX_"; this.txtExpPrefix.Text = "GWX_";
this.txtExpPrefix.TextChanged += new System.EventHandler(this.txtExpPrefix_TextChanged); this.txtExpPrefix.TextChanged += new System.EventHandler(this.txtExpPrefix_TextChanged);
// //
// chkAttribs
//
this.chkAttribs.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.chkAttribs.AutoSize = true;
this.chkAttribs.Location = new System.Drawing.Point(768, 644);
this.chkAttribs.Name = "chkAttribs";
this.chkAttribs.Size = new System.Drawing.Size(85, 17);
this.chkAttribs.TabIndex = 32;
this.chkAttribs.Text = "Move Attribs";
this.chkAttribs.UseVisualStyleBackColor = true;
this.chkAttribs.Visible = false;
//
// btnTestThings // btnTestThings
// //
this.btnTestThings.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnTestThings.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnTestThings.Location = new System.Drawing.Point(21, 639); this.btnTestThings.Location = new System.Drawing.Point(9, 49);
this.btnTestThings.Name = "btnTestThings"; this.btnTestThings.Name = "btnTestThings";
this.btnTestThings.Size = new System.Drawing.Size(81, 23); this.btnTestThings.Size = new System.Drawing.Size(81, 23);
this.btnTestThings.TabIndex = 33; this.btnTestThings.TabIndex = 33;
@ -440,21 +345,10 @@
this.btnTestThings.UseVisualStyleBackColor = true; this.btnTestThings.UseVisualStyleBackColor = true;
this.btnTestThings.Click += new System.EventHandler(this.btnTestThings_Click); this.btnTestThings.Click += new System.EventHandler(this.btnTestThings_Click);
// //
// btnFrXMLTo
//
this.btnFrXMLTo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnFrXMLTo.Location = new System.Drawing.Point(672, 639);
this.btnFrXMLTo.Name = "btnFrXMLTo";
this.btnFrXMLTo.Size = new System.Drawing.Size(92, 22);
this.btnFrXMLTo.TabIndex = 34;
this.btnFrXMLTo.Text = "Kopiera XML";
this.btnFrXMLTo.UseVisualStyleBackColor = true;
this.btnFrXMLTo.Click += new System.EventHandler(this.btnFrXMLTo_Click);
//
// btnCrossref // btnCrossref
// //
this.btnCrossref.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnCrossref.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnCrossref.Location = new System.Drawing.Point(191, 616); this.btnCrossref.Location = new System.Drawing.Point(180, 26);
this.btnCrossref.Name = "btnCrossref"; this.btnCrossref.Name = "btnCrossref";
this.btnCrossref.Size = new System.Drawing.Size(81, 23); this.btnCrossref.Size = new System.Drawing.Size(81, 23);
this.btnCrossref.TabIndex = 35; this.btnCrossref.TabIndex = 35;
@ -466,7 +360,7 @@
// //
this.chkBackupVars.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.chkBackupVars.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.chkBackupVars.AutoSize = true; this.chkBackupVars.AutoSize = true;
this.chkBackupVars.Location = new System.Drawing.Point(278, 620); this.chkBackupVars.Location = new System.Drawing.Point(267, 30);
this.chkBackupVars.Name = "chkBackupVars"; this.chkBackupVars.Name = "chkBackupVars";
this.chkBackupVars.Size = new System.Drawing.Size(87, 17); this.chkBackupVars.Size = new System.Drawing.Size(87, 17);
this.chkBackupVars.TabIndex = 36; this.chkBackupVars.TabIndex = 36;
@ -484,37 +378,183 @@
this.btnRerun.UseVisualStyleBackColor = true; this.btnRerun.UseVisualStyleBackColor = true;
this.btnRerun.Click += new System.EventHandler(this.btnRerun_Click); this.btnRerun.Click += new System.EventHandler(this.btnRerun_Click);
// //
// grpProduce
//
this.grpProduce.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.grpProduce.Controls.Add(this.btnFrXMLTo);
this.grpProduce.Controls.Add(this.chkAttribs);
this.grpProduce.Controls.Add(this.chkNewArea);
this.grpProduce.Controls.Add(this.chkMvToDisp);
this.grpProduce.Controls.Add(this.chkPerform);
this.grpProduce.Controls.Add(this.chkDisplays);
this.grpProduce.Controls.Add(this.btnMoveFrom);
this.grpProduce.Controls.Add(this.btnMoves);
this.grpProduce.Controls.Add(this.btnGenICode);
this.grpProduce.Location = new System.Drawing.Point(406, 568);
this.grpProduce.Name = "grpProduce";
this.grpProduce.Size = new System.Drawing.Size(514, 77);
this.grpProduce.TabIndex = 38;
this.grpProduce.TabStop = false;
this.grpProduce.Text = "Producera";
//
// btnFrXMLTo
//
this.btnFrXMLTo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnFrXMLTo.Location = new System.Drawing.Point(266, 49);
this.btnFrXMLTo.Name = "btnFrXMLTo";
this.btnFrXMLTo.Size = new System.Drawing.Size(92, 22);
this.btnFrXMLTo.TabIndex = 43;
this.btnFrXMLTo.Text = "Kopiera XML";
this.btnFrXMLTo.UseVisualStyleBackColor = true;
this.btnFrXMLTo.Click += new System.EventHandler(this.btnFrXMLTo_Click);
//
// chkAttribs
//
this.chkAttribs.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.chkAttribs.AutoSize = true;
this.chkAttribs.Location = new System.Drawing.Point(362, 54);
this.chkAttribs.Name = "chkAttribs";
this.chkAttribs.Size = new System.Drawing.Size(85, 17);
this.chkAttribs.TabIndex = 42;
this.chkAttribs.Text = "Move Attribs";
this.chkAttribs.UseVisualStyleBackColor = true;
this.chkAttribs.Visible = false;
//
// chkNewArea
//
this.chkNewArea.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.chkNewArea.AutoSize = true;
this.chkNewArea.Location = new System.Drawing.Point(364, 21);
this.chkNewArea.Name = "chkNewArea";
this.chkNewArea.Size = new System.Drawing.Size(64, 17);
this.chkNewArea.TabIndex = 41;
this.chkNewArea.Text = "Till Area";
this.chkNewArea.UseVisualStyleBackColor = true;
this.chkNewArea.Visible = false;
this.chkNewArea.CheckedChanged += new System.EventHandler(this.chkNewArea_CheckedChanged);
//
// chkMvToDisp
//
this.chkMvToDisp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.chkMvToDisp.AutoSize = true;
this.chkMvToDisp.Location = new System.Drawing.Point(188, 38);
this.chkMvToDisp.Name = "chkMvToDisp";
this.chkMvToDisp.Size = new System.Drawing.Size(71, 17);
this.chkMvToDisp.TabIndex = 40;
this.chkMvToDisp.Text = "(Displays)";
this.chkMvToDisp.UseVisualStyleBackColor = true;
this.chkMvToDisp.CheckedChanged += new System.EventHandler(this.chkMvToDisp_CheckedChanged);
//
// chkPerform
//
this.chkPerform.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.chkPerform.AutoSize = true;
this.chkPerform.Location = new System.Drawing.Point(188, 21);
this.chkPerform.Name = "chkPerform";
this.chkPerform.Size = new System.Drawing.Size(62, 17);
this.chkPerform.TabIndex = 39;
this.chkPerform.Text = "Perform";
this.chkPerform.UseVisualStyleBackColor = true;
this.chkPerform.CheckedChanged += new System.EventHandler(this.chkPerform_CheckedChanged);
//
// chkDisplays
//
this.chkDisplays.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.chkDisplays.AutoSize = true;
this.chkDisplays.Enabled = false;
this.chkDisplays.Location = new System.Drawing.Point(365, 38);
this.chkDisplays.Name = "chkDisplays";
this.chkDisplays.Size = new System.Drawing.Size(71, 17);
this.chkDisplays.TabIndex = 38;
this.chkDisplays.Text = "(Displays)";
this.chkDisplays.UseVisualStyleBackColor = true;
this.chkDisplays.CheckedChanged += new System.EventHandler(this.chkDisplays_CheckedChanged);
//
// btnMoveFrom
//
this.btnMoveFrom.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnMoveFrom.Enabled = false;
this.btnMoveFrom.Location = new System.Drawing.Point(266, 26);
this.btnMoveFrom.Name = "btnMoveFrom";
this.btnMoveFrom.Size = new System.Drawing.Size(92, 23);
this.btnMoveFrom.TabIndex = 37;
this.btnMoveFrom.Text = "Gen Move från";
this.btnMoveFrom.UseVisualStyleBackColor = true;
this.btnMoveFrom.Click += new System.EventHandler(this.btnMoveFrom_Click);
//
// btnMoves
//
this.btnMoves.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnMoves.Enabled = false;
this.btnMoves.Location = new System.Drawing.Point(89, 26);
this.btnMoves.Margin = new System.Windows.Forms.Padding(2);
this.btnMoves.Name = "btnMoves";
this.btnMoves.Size = new System.Drawing.Size(93, 23);
this.btnMoves.TabIndex = 36;
this.btnMoves.Text = "Gen Move kod";
this.btnMoves.UseVisualStyleBackColor = true;
this.btnMoves.Click += new System.EventHandler(this.btnMoves_Click);
//
// btnGenICode
//
this.btnGenICode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnGenICode.Enabled = false;
this.btnGenICode.Location = new System.Drawing.Point(4, 26);
this.btnGenICode.Margin = new System.Windows.Forms.Padding(2);
this.btnGenICode.Name = "btnGenICode";
this.btnGenICode.Size = new System.Drawing.Size(81, 23);
this.btnGenICode.TabIndex = 35;
this.btnGenICode.Text = "Gen Init kod";
this.btnGenICode.UseVisualStyleBackColor = true;
this.btnGenICode.Click += new System.EventHandler(this.btnGenICodeNew_Click);
//
// grpSettings
//
this.grpSettings.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.grpSettings.Controls.Add(this.chkBackupVars);
this.grpSettings.Controls.Add(this.btnSettings);
this.grpSettings.Controls.Add(this.btnTestThings);
this.grpSettings.Controls.Add(this.btnCrossref);
this.grpSettings.Location = new System.Drawing.Point(20, 568);
this.grpSettings.Name = "grpSettings";
this.grpSettings.Size = new System.Drawing.Size(379, 77);
this.grpSettings.TabIndex = 39;
this.grpSettings.TabStop = false;
this.grpSettings.Text = "Ställ in, testa";
//
// btnSaveArea
//
this.btnSaveArea.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnSaveArea.Location = new System.Drawing.Point(407, 665);
this.btnSaveArea.Name = "btnSaveArea";
this.btnSaveArea.Size = new System.Drawing.Size(75, 23);
this.btnSaveArea.TabIndex = 40;
this.btnSaveArea.Text = "Spara copy";
this.btnSaveArea.UseVisualStyleBackColor = true;
this.btnSaveArea.Click += new System.EventHandler(this.btnSaveArea_Click);
//
// GenCobCode // GenCobCode
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(951, 693); this.ClientSize = new System.Drawing.Size(932, 705);
this.Controls.Add(this.btnSaveArea);
this.Controls.Add(this.grpSettings);
this.Controls.Add(this.grpProduce);
this.Controls.Add(this.btnRerun); this.Controls.Add(this.btnRerun);
this.Controls.Add(this.chkBackupVars);
this.Controls.Add(this.btnCrossref);
this.Controls.Add(this.btnFrXMLTo);
this.Controls.Add(this.btnTestThings);
this.Controls.Add(this.chkAttribs);
this.Controls.Add(this.txtExpPrefix); this.Controls.Add(this.txtExpPrefix);
this.Controls.Add(this.label5); this.Controls.Add(this.label5);
this.Controls.Add(this.chkNewArea);
this.Controls.Add(this.chkMvToDisp);
this.Controls.Add(this.chkPerform);
this.Controls.Add(this.btnSettings);
this.Controls.Add(this.chkCountVars); this.Controls.Add(this.chkCountVars);
this.Controls.Add(this.btnClearSettings); this.Controls.Add(this.btnClearSettings);
this.Controls.Add(this.cmbLastFile); this.Controls.Add(this.cmbLastFile);
this.Controls.Add(this.chkNoNsRef); this.Controls.Add(this.chkNoNsRef);
this.Controls.Add(this.chkDisplays);
this.Controls.Add(this.chkUniqueVars); this.Controls.Add(this.chkUniqueVars);
this.Controls.Add(this.chkUniqueAttrVars); this.Controls.Add(this.chkUniqueAttrVars);
this.Controls.Add(this.txtMaxOcc); this.Controls.Add(this.txtMaxOcc);
this.Controls.Add(this.label4); this.Controls.Add(this.label4);
this.Controls.Add(this.btnMoveFrom);
this.Controls.Add(this.btnChooseFile); this.Controls.Add(this.btnChooseFile);
this.Controls.Add(this.btnMoves);
this.Controls.Add(this.chkUnique); this.Controls.Add(this.chkUnique);
this.Controls.Add(this.btnGenICode);
this.Controls.Add(this.chkWrap); this.Controls.Add(this.chkWrap);
this.Controls.Add(this.txtPrefix); this.Controls.Add(this.txtPrefix);
this.Controls.Add(this.label3); this.Controls.Add(this.label3);
@ -531,6 +571,11 @@
this.Text = "X M L to C O B"; this.Text = "X M L to C O B";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.GenCobCode_FormClosing); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.GenCobCode_FormClosing);
this.Load += new System.EventHandler(this.Form1_Load); this.Load += new System.EventHandler(this.Form1_Load);
this.ClientSizeChanged += new System.EventHandler(this.GenCobCode_ClientSizeChanged);
this.grpProduce.ResumeLayout(false);
this.grpProduce.PerformLayout();
this.grpSettings.ResumeLayout(false);
this.grpSettings.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
@ -549,33 +594,36 @@
private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox txtPrefix; private System.Windows.Forms.TextBox txtPrefix;
private System.Windows.Forms.CheckBox chkWrap; private System.Windows.Forms.CheckBox chkWrap;
private System.Windows.Forms.Button btnGenICode;
private System.Windows.Forms.CheckBox chkUnique; private System.Windows.Forms.CheckBox chkUnique;
private System.Windows.Forms.Button btnMoves;
private System.Windows.Forms.Button btnChooseFile; private System.Windows.Forms.Button btnChooseFile;
private System.Windows.Forms.OpenFileDialog openFile; private System.Windows.Forms.OpenFileDialog openFile;
private System.Windows.Forms.Button btnMoveFrom;
private System.Windows.Forms.Label label4; private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox txtMaxOcc; private System.Windows.Forms.TextBox txtMaxOcc;
private System.Windows.Forms.CheckBox chkUniqueAttrVars; private System.Windows.Forms.CheckBox chkUniqueAttrVars;
private System.Windows.Forms.CheckBox chkUniqueVars; private System.Windows.Forms.CheckBox chkUniqueVars;
private System.Windows.Forms.CheckBox chkDisplays;
private System.Windows.Forms.CheckBox chkNoNsRef; private System.Windows.Forms.CheckBox chkNoNsRef;
private System.Windows.Forms.ComboBox cmbLastFile; private System.Windows.Forms.ComboBox cmbLastFile;
private System.Windows.Forms.Button btnClearSettings; private System.Windows.Forms.Button btnClearSettings;
private System.Windows.Forms.CheckBox chkCountVars; private System.Windows.Forms.CheckBox chkCountVars;
private System.Windows.Forms.Button btnSettings; private System.Windows.Forms.Button btnSettings;
private System.Windows.Forms.CheckBox chkPerform;
private System.Windows.Forms.CheckBox chkMvToDisp;
private System.Windows.Forms.CheckBox chkNewArea;
private System.Windows.Forms.Label label5; private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox txtExpPrefix; private System.Windows.Forms.TextBox txtExpPrefix;
private System.Windows.Forms.CheckBox chkAttribs;
private System.Windows.Forms.Button btnTestThings; private System.Windows.Forms.Button btnTestThings;
private System.Windows.Forms.Button btnFrXMLTo;
private System.Windows.Forms.Button btnCrossref; private System.Windows.Forms.Button btnCrossref;
private System.Windows.Forms.CheckBox chkBackupVars; private System.Windows.Forms.CheckBox chkBackupVars;
private System.Windows.Forms.Button btnRerun; private System.Windows.Forms.Button btnRerun;
private System.Windows.Forms.GroupBox grpProduce;
private System.Windows.Forms.Button btnFrXMLTo;
private System.Windows.Forms.CheckBox chkAttribs;
private System.Windows.Forms.CheckBox chkNewArea;
private System.Windows.Forms.CheckBox chkMvToDisp;
private System.Windows.Forms.CheckBox chkPerform;
private System.Windows.Forms.CheckBox chkDisplays;
private System.Windows.Forms.Button btnMoveFrom;
private System.Windows.Forms.Button btnMoves;
private System.Windows.Forms.Button btnGenICode;
private System.Windows.Forms.GroupBox grpSettings;
private System.Windows.Forms.Button btnSaveArea;
} }
} }

View File

@ -39,6 +39,7 @@ namespace CobXmlSupport
private bool eventRun = false, formLoading = false; private bool eventRun = false, formLoading = false;
private string indTemp = ""; private string indTemp = "";
private char[] splitChars = { '#' }; private char[] splitChars = { '#' };
private int ClientSizeMinWidth;
Dictionary<string, GenSetting> setObjs; // = new Dictionary<string, GenSetting>(); Dictionary<string, GenSetting> setObjs; // = new Dictionary<string, GenSetting>();
SaverListener sl; SaverListener sl;
@ -749,6 +750,7 @@ namespace CobXmlSupport
chkDisplays.Checked = true; chkDisplays.Checked = true;
chkWrap.Checked = true; chkWrap.Checked = true;
chkNewArea.Checked = false; chkNewArea.Checked = false;
ClientSizeMinWidth = this.ClientSize.Width;
@ -2273,6 +2275,27 @@ namespace CobXmlSupport
} }
} }
private void btnSaveArea_Click(object sender, EventArgs e)
{
SaveRegCopyFile srcf = new SaveRegCopyFile();
savedFile localSaver = new savedFile();
localSaver.idConnect = "4B0E5C02-B2D0-4755-B4EC-AF449D513582";
localSaver.usageName = "XMLCOBfrom_"+S.ettingActualFile;
srcf.SavedFile = localSaver;
srcf.FileData = this.outCob.Text;
srcf.ShowDialog();
}
private void GenCobCode_ClientSizeChanged(object sender, EventArgs e)
{
if (ClientSize.Width < ClientSizeMinWidth)
{
MessageBox.Show("Form can't be narrower !");
this.Size = new Size(ClientSizeMinWidth + 15, Size.Height);
}
}
private void btnCrossref_Click(object sender, EventArgs e) private void btnCrossref_Click(object sender, EventArgs e)
{ {
//Create showing window //Create showing window