Commit f96a1338 authored by JoyJ's avatar JoyJ

able to change tooltip font; able to scroll down when at text bottom when edit code

parent 79e724fb
Pipeline #1017 passed with stage
in 51 seconds
...@@ -50,6 +50,7 @@ private void InitializeComponent() ...@@ -50,6 +50,7 @@ private void InitializeComponent()
this.menuitem_find = new System.Windows.Forms.ToolStripMenuItem(); this.menuitem_find = new System.Windows.Forms.ToolStripMenuItem();
this.menuitem_replace = new System.Windows.Forms.ToolStripMenuItem(); this.menuitem_replace = new System.Windows.Forms.ToolStripMenuItem();
this.menuitem_setcard = new System.Windows.Forms.ToolStripMenuItem(); this.menuitem_setcard = new System.Windows.Forms.ToolStripMenuItem();
this.menuitem_tooltipFont = new System.Windows.Forms.ToolStripMenuItem();
this.menuitem_help = new System.Windows.Forms.ToolStripMenuItem(); this.menuitem_help = new System.Windows.Forms.ToolStripMenuItem();
this.menuitem_about = new System.Windows.Forms.ToolStripMenuItem(); this.menuitem_about = new System.Windows.Forms.ToolStripMenuItem();
this.menuitem_tools = new System.Windows.Forms.ToolStripMenuItem(); this.menuitem_tools = new System.Windows.Forms.ToolStripMenuItem();
...@@ -73,7 +74,7 @@ private void InitializeComponent() ...@@ -73,7 +74,7 @@ private void InitializeComponent()
this.menuitem_tools}); this.menuitem_tools});
this.mainMenu.Location = new System.Drawing.Point(0, 0); this.mainMenu.Location = new System.Drawing.Point(0, 0);
this.mainMenu.Name = "mainMenu"; this.mainMenu.Name = "mainMenu";
this.mainMenu.Size = new System.Drawing.Size(705, 25); this.mainMenu.Size = new System.Drawing.Size(705, 24);
this.mainMenu.TabIndex = 0; this.mainMenu.TabIndex = 0;
this.mainMenu.Text = "mainMenu"; this.mainMenu.Text = "mainMenu";
// //
...@@ -86,14 +87,14 @@ private void InitializeComponent() ...@@ -86,14 +87,14 @@ private void InitializeComponent()
this.toolStripSeparator1, this.toolStripSeparator1,
this.menuitem_quit}); this.menuitem_quit});
this.menuitem_file.Name = "menuitem_file"; this.menuitem_file.Name = "menuitem_file";
this.menuitem_file.Size = new System.Drawing.Size(53, 21); this.menuitem_file.Size = new System.Drawing.Size(51, 20);
this.menuitem_file.Text = "File(&F)"; this.menuitem_file.Text = "File(&F)";
// //
// menuitem_open // menuitem_open
// //
this.menuitem_open.Name = "menuitem_open"; this.menuitem_open.Name = "menuitem_open";
this.menuitem_open.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O))); this.menuitem_open.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
this.menuitem_open.Size = new System.Drawing.Size(155, 22); this.menuitem_open.Size = new System.Drawing.Size(145, 22);
this.menuitem_open.Text = "Open"; this.menuitem_open.Text = "Open";
this.menuitem_open.Click += new System.EventHandler(this.Menuitem_openClick); this.menuitem_open.Click += new System.EventHandler(this.Menuitem_openClick);
// //
...@@ -101,26 +102,26 @@ private void InitializeComponent() ...@@ -101,26 +102,26 @@ private void InitializeComponent()
// //
this.menuitem_save.Name = "menuitem_save"; this.menuitem_save.Name = "menuitem_save";
this.menuitem_save.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S))); this.menuitem_save.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
this.menuitem_save.Size = new System.Drawing.Size(155, 22); this.menuitem_save.Size = new System.Drawing.Size(145, 22);
this.menuitem_save.Text = "Save"; this.menuitem_save.Text = "Save";
this.menuitem_save.Click += new System.EventHandler(this.SaveToolStripMenuItemClick); this.menuitem_save.Click += new System.EventHandler(this.SaveToolStripMenuItemClick);
// //
// menuitem_saveas // menuitem_saveas
// //
this.menuitem_saveas.Name = "menuitem_saveas"; this.menuitem_saveas.Name = "menuitem_saveas";
this.menuitem_saveas.Size = new System.Drawing.Size(155, 22); this.menuitem_saveas.Size = new System.Drawing.Size(145, 22);
this.menuitem_saveas.Text = "Save As"; this.menuitem_saveas.Text = "Save As";
this.menuitem_saveas.Click += new System.EventHandler(this.SaveAsToolStripMenuItemClick); this.menuitem_saveas.Click += new System.EventHandler(this.SaveAsToolStripMenuItemClick);
// //
// toolStripSeparator1 // toolStripSeparator1
// //
this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(152, 6); this.toolStripSeparator1.Size = new System.Drawing.Size(142, 6);
// //
// menuitem_quit // menuitem_quit
// //
this.menuitem_quit.Name = "menuitem_quit"; this.menuitem_quit.Name = "menuitem_quit";
this.menuitem_quit.Size = new System.Drawing.Size(155, 22); this.menuitem_quit.Size = new System.Drawing.Size(145, 22);
this.menuitem_quit.Text = "Quit"; this.menuitem_quit.Text = "Quit";
this.menuitem_quit.Click += new System.EventHandler(this.QuitToolStripMenuItemClick); this.menuitem_quit.Click += new System.EventHandler(this.QuitToolStripMenuItemClick);
// //
...@@ -131,15 +132,16 @@ private void InitializeComponent() ...@@ -131,15 +132,16 @@ private void InitializeComponent()
this.menuitem_showinput, this.menuitem_showinput,
this.menuitem_find, this.menuitem_find,
this.menuitem_replace, this.menuitem_replace,
this.menuitem_setcard}); this.menuitem_setcard,
this.menuitem_tooltipFont});
this.menuitem_setting.Name = "menuitem_setting"; this.menuitem_setting.Name = "menuitem_setting";
this.menuitem_setting.Size = new System.Drawing.Size(81, 21); this.menuitem_setting.Size = new System.Drawing.Size(75, 20);
this.menuitem_setting.Text = "Settings(&S)"; this.menuitem_setting.Text = "Settings(&S)";
// //
// menuitem_showmap // menuitem_showmap
// //
this.menuitem_showmap.Name = "menuitem_showmap"; this.menuitem_showmap.Name = "menuitem_showmap";
this.menuitem_showmap.Size = new System.Drawing.Size(195, 22); this.menuitem_showmap.Size = new System.Drawing.Size(184, 22);
this.menuitem_showmap.Text = "Show/Hide Map"; this.menuitem_showmap.Text = "Show/Hide Map";
this.menuitem_showmap.Click += new System.EventHandler(this.ShowMapToolStripMenuItemClick); this.menuitem_showmap.Click += new System.EventHandler(this.ShowMapToolStripMenuItemClick);
// //
...@@ -148,7 +150,7 @@ private void InitializeComponent() ...@@ -148,7 +150,7 @@ private void InitializeComponent()
this.menuitem_showinput.Checked = true; this.menuitem_showinput.Checked = true;
this.menuitem_showinput.CheckState = System.Windows.Forms.CheckState.Checked; this.menuitem_showinput.CheckState = System.Windows.Forms.CheckState.Checked;
this.menuitem_showinput.Name = "menuitem_showinput"; this.menuitem_showinput.Name = "menuitem_showinput";
this.menuitem_showinput.Size = new System.Drawing.Size(195, 22); this.menuitem_showinput.Size = new System.Drawing.Size(184, 22);
this.menuitem_showinput.Text = "Show/Hide InputBox"; this.menuitem_showinput.Text = "Show/Hide InputBox";
this.menuitem_showinput.Click += new System.EventHandler(this.Menuitem_showinputClick); this.menuitem_showinput.Click += new System.EventHandler(this.Menuitem_showinputClick);
// //
...@@ -156,7 +158,7 @@ private void InitializeComponent() ...@@ -156,7 +158,7 @@ private void InitializeComponent()
// //
this.menuitem_find.Name = "menuitem_find"; this.menuitem_find.Name = "menuitem_find";
this.menuitem_find.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F))); this.menuitem_find.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F)));
this.menuitem_find.Size = new System.Drawing.Size(195, 22); this.menuitem_find.Size = new System.Drawing.Size(184, 22);
this.menuitem_find.Text = "Find"; this.menuitem_find.Text = "Find";
this.menuitem_find.Click += new System.EventHandler(this.Menuitem_findClick); this.menuitem_find.Click += new System.EventHandler(this.Menuitem_findClick);
// //
...@@ -164,28 +166,35 @@ private void InitializeComponent() ...@@ -164,28 +166,35 @@ private void InitializeComponent()
// //
this.menuitem_replace.Name = "menuitem_replace"; this.menuitem_replace.Name = "menuitem_replace";
this.menuitem_replace.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.H))); this.menuitem_replace.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.H)));
this.menuitem_replace.Size = new System.Drawing.Size(195, 22); this.menuitem_replace.Size = new System.Drawing.Size(184, 22);
this.menuitem_replace.Text = "Replace"; this.menuitem_replace.Text = "Replace";
this.menuitem_replace.Click += new System.EventHandler(this.Menuitem_replaceClick); this.menuitem_replace.Click += new System.EventHandler(this.Menuitem_replaceClick);
// //
// menuitem_setcard // menuitem_setcard
// //
this.menuitem_setcard.Name = "menuitem_setcard"; this.menuitem_setcard.Name = "menuitem_setcard";
this.menuitem_setcard.Size = new System.Drawing.Size(195, 22); this.menuitem_setcard.Size = new System.Drawing.Size(184, 22);
this.menuitem_setcard.Text = "Set Cards"; this.menuitem_setcard.Text = "Set Cards";
// //
// menuitem_tooltipFont
//
this.menuitem_tooltipFont.Name = "menuitem_tooltipFont";
this.menuitem_tooltipFont.Size = new System.Drawing.Size(184, 22);
this.menuitem_tooltipFont.Text = "Set Tooltip Font";
this.menuitem_tooltipFont.Click += new System.EventHandler(this.menuitem_tooltipFont_Click);
//
// menuitem_help // menuitem_help
// //
this.menuitem_help.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.menuitem_help.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.menuitem_about}); this.menuitem_about});
this.menuitem_help.Name = "menuitem_help"; this.menuitem_help.Name = "menuitem_help";
this.menuitem_help.Size = new System.Drawing.Size(64, 21); this.menuitem_help.Size = new System.Drawing.Size(61, 20);
this.menuitem_help.Text = "Help(&H)"; this.menuitem_help.Text = "Help(&H)";
// //
// menuitem_about // menuitem_about
// //
this.menuitem_about.Name = "menuitem_about"; this.menuitem_about.Name = "menuitem_about";
this.menuitem_about.Size = new System.Drawing.Size(111, 22); this.menuitem_about.Size = new System.Drawing.Size(107, 22);
this.menuitem_about.Text = "About"; this.menuitem_about.Text = "About";
this.menuitem_about.Click += new System.EventHandler(this.AboutToolStripMenuItemClick); this.menuitem_about.Click += new System.EventHandler(this.AboutToolStripMenuItemClick);
// //
...@@ -195,14 +204,14 @@ private void InitializeComponent() ...@@ -195,14 +204,14 @@ private void InitializeComponent()
this.menuitem_testlua, this.menuitem_testlua,
this.menuitem_effectcreator}); this.menuitem_effectcreator});
this.menuitem_tools.Name = "menuitem_tools"; this.menuitem_tools.Name = "menuitem_tools";
this.menuitem_tools.Size = new System.Drawing.Size(67, 21); this.menuitem_tools.Size = new System.Drawing.Size(60, 20);
this.menuitem_tools.Text = "Tools(&T)"; this.menuitem_tools.Text = "Tools(&T)";
// //
// menuitem_testlua // menuitem_testlua
// //
this.menuitem_testlua.Name = "menuitem_testlua"; this.menuitem_testlua.Name = "menuitem_testlua";
this.menuitem_testlua.ShortcutKeys = System.Windows.Forms.Keys.F5; this.menuitem_testlua.ShortcutKeys = System.Windows.Forms.Keys.F5;
this.menuitem_testlua.Size = new System.Drawing.Size(180, 22); this.menuitem_testlua.Size = new System.Drawing.Size(164, 22);
this.menuitem_testlua.Text = "Syntax Check"; this.menuitem_testlua.Text = "Syntax Check";
this.menuitem_testlua.Click += new System.EventHandler(this.menuitem_testlua_Click); this.menuitem_testlua.Click += new System.EventHandler(this.menuitem_testlua_Click);
// //
...@@ -210,7 +219,7 @@ private void InitializeComponent() ...@@ -210,7 +219,7 @@ private void InitializeComponent()
// //
this.menuitem_effectcreator.Name = "menuitem_effectcreator"; this.menuitem_effectcreator.Name = "menuitem_effectcreator";
this.menuitem_effectcreator.ShortcutKeys = System.Windows.Forms.Keys.F3; this.menuitem_effectcreator.ShortcutKeys = System.Windows.Forms.Keys.F3;
this.menuitem_effectcreator.Size = new System.Drawing.Size(180, 22); this.menuitem_effectcreator.Size = new System.Drawing.Size(164, 22);
this.menuitem_effectcreator.Text = "Effect Creator"; this.menuitem_effectcreator.Text = "Effect Creator";
this.menuitem_effectcreator.Visible = false; this.menuitem_effectcreator.Visible = false;
this.menuitem_effectcreator.Click += new System.EventHandler(this.effectCreatorToolStripMenuItem_Click); this.menuitem_effectcreator.Click += new System.EventHandler(this.effectCreatorToolStripMenuItem_Click);
...@@ -268,8 +277,8 @@ private void InitializeComponent() ...@@ -268,8 +277,8 @@ private void InitializeComponent()
this.fctb.Language = FastColoredTextBoxNS.Language.Lua; this.fctb.Language = FastColoredTextBoxNS.Language.Lua;
this.fctb.LeftBracket = '('; this.fctb.LeftBracket = '(';
this.fctb.LeftBracket2 = '{'; this.fctb.LeftBracket2 = '{';
this.fctb.LineNumberColor = System.Drawing.Color.Gainsboro; this.fctb.LineNumberColor = System.Drawing.Color.WhiteSmoke;
this.fctb.Location = new System.Drawing.Point(0, 25); this.fctb.Location = new System.Drawing.Point(0, 24);
this.fctb.Margin = new System.Windows.Forms.Padding(0); this.fctb.Margin = new System.Windows.Forms.Padding(0);
this.fctb.Name = "fctb"; this.fctb.Name = "fctb";
this.fctb.Paddings = new System.Windows.Forms.Padding(0); this.fctb.Paddings = new System.Windows.Forms.Padding(0);
...@@ -277,7 +286,7 @@ private void InitializeComponent() ...@@ -277,7 +286,7 @@ private void InitializeComponent()
this.fctb.RightBracket2 = '}'; this.fctb.RightBracket2 = '}';
this.fctb.SelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255))))); this.fctb.SelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
this.fctb.ServiceColors = ((FastColoredTextBoxNS.ServiceColors)(resources.GetObject("fctb.ServiceColors"))); this.fctb.ServiceColors = ((FastColoredTextBoxNS.ServiceColors)(resources.GetObject("fctb.ServiceColors")));
this.fctb.Size = new System.Drawing.Size(514, 369); this.fctb.Size = new System.Drawing.Size(514, 370);
this.fctb.TabIndex = 0; this.fctb.TabIndex = 0;
this.fctb.ToolTipDelay = 1; this.fctb.ToolTipDelay = 1;
this.fctb.WordWrap = true; this.fctb.WordWrap = true;
...@@ -293,9 +302,9 @@ private void InitializeComponent() ...@@ -293,9 +302,9 @@ private void InitializeComponent()
this.documentMap1.BackColor = System.Drawing.Color.DimGray; this.documentMap1.BackColor = System.Drawing.Color.DimGray;
this.documentMap1.Dock = System.Windows.Forms.DockStyle.Right; this.documentMap1.Dock = System.Windows.Forms.DockStyle.Right;
this.documentMap1.ForeColor = System.Drawing.Color.Maroon; this.documentMap1.ForeColor = System.Drawing.Color.Maroon;
this.documentMap1.Location = new System.Drawing.Point(514, 25); this.documentMap1.Location = new System.Drawing.Point(514, 24);
this.documentMap1.Name = "documentMap1"; this.documentMap1.Name = "documentMap1";
this.documentMap1.Size = new System.Drawing.Size(191, 390); this.documentMap1.Size = new System.Drawing.Size(191, 391);
this.documentMap1.TabIndex = 5; this.documentMap1.TabIndex = 5;
this.documentMap1.Target = this.fctb; this.documentMap1.Target = this.fctb;
this.documentMap1.Text = "documentMap1"; this.documentMap1.Text = "documentMap1";
...@@ -351,5 +360,6 @@ private void InitializeComponent() ...@@ -351,5 +360,6 @@ private void InitializeComponent()
private System.Windows.Forms.ToolStripMenuItem menuitem_tools; private System.Windows.Forms.ToolStripMenuItem menuitem_tools;
private System.Windows.Forms.ToolStripMenuItem menuitem_testlua; private System.Windows.Forms.ToolStripMenuItem menuitem_testlua;
private System.Windows.Forms.ToolStripMenuItem menuitem_effectcreator; private System.Windows.Forms.ToolStripMenuItem menuitem_effectcreator;
private System.Windows.Forms.ToolStripMenuItem menuitem_tooltipFont;
} }
} }
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Web.Script.Serialization;
using System.Windows.Forms; using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking; using WeifenLuo.WinFormsUI.Docking;
...@@ -420,8 +421,7 @@ void HideMenu() ...@@ -420,8 +421,7 @@ void HideMenu()
void CodeEditFormLoad(object sender, EventArgs e) void CodeEditFormLoad(object sender, EventArgs e)
{ {
this.HideMenu();
this.fctb.OnTextChangedDelayed(this.fctb.Range);
} }
void Menuitem_findClick(object sender, EventArgs e) void Menuitem_findClick(object sender, EventArgs e)
{ {
...@@ -680,5 +680,23 @@ private void OnDragDtop(object sender, DragEventArgs e) ...@@ -680,5 +680,23 @@ private void OnDragDtop(object sender, DragEventArgs e)
(this.DockPanel.Parent as MainForm).Open(file); (this.DockPanel.Parent as MainForm).Open(file);
} }
} }
private void menuitem_tooltipFont_Click(object sender, EventArgs e)
{
FontDialog fd = new FontDialog();
string fontJson = MyConfig.ReadString(MyConfig.TOOLTIP_FONT);
Font f = new Font("微软雅黑",10);
JavaScriptSerializer jss = new JavaScriptSerializer();
try
{
f = jss.Deserialize<Font>(fontJson);
}
catch { }
fd.Font = f;
if (fd.ShowDialog() == DialogResult.OK)
{
Common.XMLReader.Save(MyConfig.TOOLTIP_FONT, jss.Serialize(fd.Font));
this.fctb.lbTooltip.Font = fd.Font;
}
}
} }
} }
...@@ -172,6 +172,10 @@ public class MyConfig : XMLReader ...@@ -172,6 +172,10 @@ public class MyConfig : XMLReader
/// 连接标志 /// 连接标志
/// </summary> /// </summary>
public const string TAG_MARKER = "link marker"; public const string TAG_MARKER = "link marker";
/// <summary>
/// 临时文件
/// </summary>
public const string TOOLTIP_FONT = "tooltip_font";
#endregion #endregion
#region 读取内容 #region 读取内容
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
*/ */
using System; using System;
using System.Drawing; using System.Drawing;
using System.Web.Script.Serialization;
using System.Windows.Forms; using System.Windows.Forms;
namespace FastColoredTextBoxNS namespace FastColoredTextBoxNS
...@@ -14,6 +15,7 @@ namespace FastColoredTextBoxNS ...@@ -14,6 +15,7 @@ namespace FastColoredTextBoxNS
public class FastColoredTextBoxEx : FastColoredTextBox public class FastColoredTextBoxEx : FastColoredTextBox
{ {
public Label lbTooltip; public Label lbTooltip;
private Label lbSizeController;
Point lastMouseCoord; Point lastMouseCoord;
public FastColoredTextBoxEx() : base() public FastColoredTextBoxEx() : base()
{ {
...@@ -25,12 +27,6 @@ public FastColoredTextBoxEx() : base() ...@@ -25,12 +27,6 @@ public FastColoredTextBoxEx() : base()
this.Selection.ColumnSelectionMode = true; this.Selection.ColumnSelectionMode = true;
this.InitializeComponent(); this.InitializeComponent();
} }
public override void OnTextChanged()
{
}
public new event EventHandler<ToolTipNeededEventArgs> ToolTipNeeded; public new event EventHandler<ToolTipNeededEventArgs> ToolTipNeeded;
protected override void OnMouseMove(MouseEventArgs e) protected override void OnMouseMove(MouseEventArgs e)
{ {
...@@ -124,31 +120,46 @@ void FctbTextChanged(object sender, TextChangedEventArgs e) ...@@ -124,31 +120,46 @@ void FctbTextChanged(object sender, TextChangedEventArgs e)
private void InitializeComponent() private void InitializeComponent()
{ {
this.lbTooltip = new Label(); this.lbTooltip = new System.Windows.Forms.Label();
this.lbSizeController = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// lbTooltip // lbTooltip
// //
this.lbTooltip.AutoSize = true; this.lbTooltip.AutoSize = true;
this.lbTooltip.BackColor = SystemColors.Desktop; this.lbTooltip.BackColor = System.Drawing.SystemColors.Desktop;
this.lbTooltip.Font = new Font("微软雅黑", 15.75F, FontStyle.Regular, GraphicsUnit.Point, 0); this.lbTooltip.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbTooltip.ForeColor = SystemColors.Control; this.lbTooltip.ForeColor = System.Drawing.SystemColors.Control;
this.lbTooltip.Location = new Point(221, 117); this.lbTooltip.Location = new System.Drawing.Point(221, 117);
this.lbTooltip.MaximumSize = new Size(480, 0); this.lbTooltip.MaximumSize = new System.Drawing.Size(480, 0);
this.lbTooltip.Name = "lbTooltip"; this.lbTooltip.Name = "lbTooltip";
this.lbTooltip.Size = new Size(0, 28); this.lbTooltip.Size = new System.Drawing.Size(0, 28);
this.lbTooltip.TabIndex = 1; this.lbTooltip.TabIndex = 1;
this.lbTooltip.MouseMove += new MouseEventHandler(this.lbTooltip_MouseMove); this.lbTooltip.MouseMove += new System.Windows.Forms.MouseEventHandler(this.lbTooltip_MouseMove);
//
// lbSizeController
//
this.lbSizeController.AutoSize = true;
this.lbSizeController.BackColor = System.Drawing.Color.Transparent;
this.lbSizeController.ForeColor = System.Drawing.Color.Transparent;
this.lbSizeController.Location = new System.Drawing.Point(179, 293);
this.lbSizeController.Name = "lbSizeController";
this.lbSizeController.Size = new System.Drawing.Size(136, 16);
this.lbSizeController.TabIndex = 2;
this.lbSizeController.Text = "lbSizeController";
// //
// FastColoredTextBoxEx // FastColoredTextBoxEx
// //
this.AutoScrollMinSize = new Size(27, 14); this.AutoScrollMinSize = new System.Drawing.Size(27, 14);
this.BackColor = SystemColors.Control; this.BackColor = System.Drawing.SystemColors.Control;
this.Controls.Add(this.lbSizeController);
this.Controls.Add(this.lbTooltip); this.Controls.Add(this.lbTooltip);
this.Name = "FastColoredTextBoxEx"; this.Name = "FastColoredTextBoxEx";
this.Size = new Size(584, 327); this.Size = new System.Drawing.Size(584, 327);
this.Load += new EventHandler(this.FastColoredTextBoxEx_Load); this.Load += new System.EventHandler(this.FastColoredTextBoxEx_Load);
this.Scroll += new System.Windows.Forms.ScrollEventHandler(this.FastColoredTextBoxEx_Scroll);
this.SizeChanged += new System.EventHandler(this.FastColoredTextBoxEx_SizeChanged);
((System.ComponentModel.ISupportInitialize)(this)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
...@@ -164,5 +175,20 @@ private void lbTooltip_MouseMove(object sender, MouseEventArgs e) ...@@ -164,5 +175,20 @@ private void lbTooltip_MouseMove(object sender, MouseEventArgs e)
{ {
this.lbTooltip.Visible = false; this.lbTooltip.Visible = false;
} }
private void ResizeWindow()
{
lbSizeController.Location = new Point(0, this.Height);
lbSizeController.Text = "\r\n\r\n";
}
private void FastColoredTextBoxEx_SizeChanged(object sender, EventArgs e)
{
lbTooltip.Visible = false;
this.ResizeWindow();
}
private void FastColoredTextBoxEx_Scroll(object sender, ScrollEventArgs e)
{
this.ResizeWindow();
}
} }
} }
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
<Reference Include="System.configuration" /> <Reference Include="System.configuration" />
<Reference Include="System.Data" /> <Reference Include="System.Data" />
<Reference Include="System.Data.SQLite, Version=1.0.113.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL"> <Reference Include="System.Data.SQLite, Version=1.0.113.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL">
<HintPath>..\packages\System.Data.SQLite.Core.1.0.113.1\lib\net46\System.Data.SQLite.dll</HintPath> <HintPath>..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.113.1\lib\net46\System.Data.SQLite.dll</HintPath>
</Reference> </Reference>
<Reference Include="System.Data.SQLite.EF6, Version=1.0.113.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL"> <Reference Include="System.Data.SQLite.EF6, Version=1.0.113.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL">
<HintPath>..\packages\System.Data.SQLite.EF6.1.0.113.0\lib\net46\System.Data.SQLite.EF6.dll</HintPath> <HintPath>..\packages\System.Data.SQLite.EF6.1.0.113.0\lib\net46\System.Data.SQLite.EF6.dll</HintPath>
...@@ -84,6 +84,7 @@ ...@@ -84,6 +84,7 @@
<HintPath>..\packages\System.Data.SQLite.Linq.1.0.113.0\lib\net46\System.Data.SQLite.Linq.dll</HintPath> <HintPath>..\packages\System.Data.SQLite.Linq.1.0.113.0\lib\net46\System.Data.SQLite.Linq.dll</HintPath>
</Reference> </Reference>
<Reference Include="System.Drawing" /> <Reference Include="System.Drawing" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Windows.Forms" /> <Reference Include="System.Windows.Forms" />
<Reference Include="System.Xaml" /> <Reference Include="System.Xaml" />
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
...@@ -313,10 +314,10 @@ ...@@ -313,10 +314,10 @@
<PropertyGroup> <PropertyGroup>
<ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText> <ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText>
</PropertyGroup> </PropertyGroup>
<Error Condition="!Exists('..\packages\System.Data.SQLite.Core.1.0.113.1\build\net46\System.Data.SQLite.Core.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\System.Data.SQLite.Core.1.0.113.1\build\net46\System.Data.SQLite.Core.targets'))" />
<Error Condition="!Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\EntityFramework.6.4.4\build\EntityFramework.props'))" /> <Error Condition="!Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\EntityFramework.6.4.4\build\EntityFramework.props'))" />
<Error Condition="!Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\EntityFramework.6.4.4\build\EntityFramework.targets'))" /> <Error Condition="!Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\EntityFramework.6.4.4\build\EntityFramework.targets'))" />
<Error Condition="!Exists('..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.113.1\build\net46\Stub.System.Data.SQLite.Core.NetFramework.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.113.1\build\net46\Stub.System.Data.SQLite.Core.NetFramework.targets'))" />
</Target> </Target>
<Import Project="..\packages\System.Data.SQLite.Core.1.0.113.1\build\net46\System.Data.SQLite.Core.targets" Condition="Exists('..\packages\System.Data.SQLite.Core.1.0.113.1\build\net46\System.Data.SQLite.Core.targets')" />
<Import Project="..\packages\EntityFramework.6.4.4\build\EntityFramework.targets" Condition="Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.targets')" /> <Import Project="..\packages\EntityFramework.6.4.4\build\EntityFramework.targets" Condition="Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.targets')" />
<Import Project="..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.113.1\build\net46\Stub.System.Data.SQLite.Core.NetFramework.targets" Condition="Exists('..\packages\Stub.System.Data.SQLite.Core.NetFramework.1.0.113.1\build\net46\Stub.System.Data.SQLite.Core.NetFramework.targets')" />
</Project> </Project>
\ No newline at end of file
...@@ -70,12 +70,12 @@ private void InitializeComponent() ...@@ -70,12 +70,12 @@ private void InitializeComponent()
this.dockPanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; this.dockPanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.dockPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.dockPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.dockPanel.DockBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(242))))); this.dockPanel.DockBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(242)))));
this.dockPanel.Location = new System.Drawing.Point(0, 25); this.dockPanel.Location = new System.Drawing.Point(0, 24);
this.dockPanel.Margin = new System.Windows.Forms.Padding(0); this.dockPanel.Margin = new System.Windows.Forms.Padding(0);
this.dockPanel.Name = "dockPanel"; this.dockPanel.Name = "dockPanel";
this.dockPanel.Padding = new System.Windows.Forms.Padding(6); this.dockPanel.Padding = new System.Windows.Forms.Padding(6);
this.dockPanel.ShowAutoHideContentOnHover = false; this.dockPanel.ShowAutoHideContentOnHover = false;
this.dockPanel.Size = new System.Drawing.Size(992, 736); this.dockPanel.Size = new System.Drawing.Size(992, 725);
this.dockPanel.TabIndex = 0; this.dockPanel.TabIndex = 0;
this.dockPanel.Theme = this.theme; this.dockPanel.Theme = this.theme;
// //
...@@ -87,7 +87,7 @@ private void InitializeComponent() ...@@ -87,7 +87,7 @@ private void InitializeComponent()
this.mainMenu.Location = new System.Drawing.Point(0, 0); this.mainMenu.Location = new System.Drawing.Point(0, 0);
this.mainMenu.MdiWindowListItem = this.menuitem_windows; this.mainMenu.MdiWindowListItem = this.menuitem_windows;
this.mainMenu.Name = "mainMenu"; this.mainMenu.Name = "mainMenu";
this.mainMenu.Size = new System.Drawing.Size(992, 25); this.mainMenu.Size = new System.Drawing.Size(992, 24);
this.mainMenu.TabIndex = 3; this.mainMenu.TabIndex = 3;
this.mainMenu.Text = "mainMenu"; this.mainMenu.Text = "mainMenu";
// //
...@@ -110,14 +110,14 @@ private void InitializeComponent() ...@@ -110,14 +110,14 @@ private void InitializeComponent()
this.toolStripSeparator5, this.toolStripSeparator5,
this.menuitem_quit}); this.menuitem_quit});
this.menuitem_file.Name = "menuitem_file"; this.menuitem_file.Name = "menuitem_file";
this.menuitem_file.Size = new System.Drawing.Size(53, 21); this.menuitem_file.Size = new System.Drawing.Size(51, 20);
this.menuitem_file.Text = "File(&F)"; this.menuitem_file.Text = "File(&F)";
// //
// menuitem_open // menuitem_open
// //
this.menuitem_open.Name = "menuitem_open"; this.menuitem_open.Name = "menuitem_open";
this.menuitem_open.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O))); this.menuitem_open.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
this.menuitem_open.Size = new System.Drawing.Size(261, 22); this.menuitem_open.Size = new System.Drawing.Size(239, 22);
this.menuitem_open.Text = "Open"; this.menuitem_open.Text = "Open";
this.menuitem_open.Click += new System.EventHandler(this.Menuitem_openClick); this.menuitem_open.Click += new System.EventHandler(this.Menuitem_openClick);
// //
...@@ -125,7 +125,7 @@ private void InitializeComponent() ...@@ -125,7 +125,7 @@ private void InitializeComponent()
// //
this.menuitem_new.Name = "menuitem_new"; this.menuitem_new.Name = "menuitem_new";
this.menuitem_new.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N))); this.menuitem_new.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)));
this.menuitem_new.Size = new System.Drawing.Size(261, 22); this.menuitem_new.Size = new System.Drawing.Size(239, 22);
this.menuitem_new.Text = "New"; this.menuitem_new.Text = "New";
this.menuitem_new.Click += new System.EventHandler(this.Menuitem_newClick); this.menuitem_new.Click += new System.EventHandler(this.Menuitem_newClick);
// //
...@@ -133,28 +133,28 @@ private void InitializeComponent() ...@@ -133,28 +133,28 @@ private void InitializeComponent()
// //
this.menuitem_save.Name = "menuitem_save"; this.menuitem_save.Name = "menuitem_save";
this.menuitem_save.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S))); this.menuitem_save.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
this.menuitem_save.Size = new System.Drawing.Size(261, 22); this.menuitem_save.Size = new System.Drawing.Size(239, 22);
this.menuitem_save.Text = "Save"; this.menuitem_save.Text = "Save";
this.menuitem_save.Click += new System.EventHandler(this.Menuitem_saveClick); this.menuitem_save.Click += new System.EventHandler(this.Menuitem_saveClick);
// //
// toolStripSeparator3 // toolStripSeparator3
// //
this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Name = "toolStripSeparator3";
this.toolStripSeparator3.Size = new System.Drawing.Size(258, 6); this.toolStripSeparator3.Size = new System.Drawing.Size(236, 6);
// //
// menuitem_copyselect // menuitem_copyselect
// //
this.menuitem_copyselect.Name = "menuitem_copyselect"; this.menuitem_copyselect.Name = "menuitem_copyselect";
this.menuitem_copyselect.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) this.menuitem_copyselect.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
| System.Windows.Forms.Keys.C))); | System.Windows.Forms.Keys.C)));
this.menuitem_copyselect.Size = new System.Drawing.Size(261, 22); this.menuitem_copyselect.Size = new System.Drawing.Size(239, 22);
this.menuitem_copyselect.Text = "Copy Select Cards"; this.menuitem_copyselect.Text = "Copy Select Cards";
this.menuitem_copyselect.Click += new System.EventHandler(this.Menuitem_copyselecttoClick); this.menuitem_copyselect.Click += new System.EventHandler(this.Menuitem_copyselecttoClick);
// //
// menuitem_copyall // menuitem_copyall
// //
this.menuitem_copyall.Name = "menuitem_copyall"; this.menuitem_copyall.Name = "menuitem_copyall";
this.menuitem_copyall.Size = new System.Drawing.Size(261, 22); this.menuitem_copyall.Size = new System.Drawing.Size(239, 22);
this.menuitem_copyall.Text = "Copy All Cards"; this.menuitem_copyall.Text = "Copy All Cards";
this.menuitem_copyall.Click += new System.EventHandler(this.Menuitem_copyallClick); this.menuitem_copyall.Click += new System.EventHandler(this.Menuitem_copyallClick);
// //
...@@ -163,19 +163,19 @@ private void InitializeComponent() ...@@ -163,19 +163,19 @@ private void InitializeComponent()
this.menuitem_pastecards.Name = "menuitem_pastecards"; this.menuitem_pastecards.Name = "menuitem_pastecards";
this.menuitem_pastecards.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) this.menuitem_pastecards.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
| System.Windows.Forms.Keys.V))); | System.Windows.Forms.Keys.V)));
this.menuitem_pastecards.Size = new System.Drawing.Size(261, 22); this.menuitem_pastecards.Size = new System.Drawing.Size(239, 22);
this.menuitem_pastecards.Text = "Paste Cards"; this.menuitem_pastecards.Text = "Paste Cards";
this.menuitem_pastecards.Click += new System.EventHandler(this.Menuitem_pastecardsClick); this.menuitem_pastecards.Click += new System.EventHandler(this.Menuitem_pastecardsClick);
// //
// toolStripSeparator4 // toolStripSeparator4
// //
this.toolStripSeparator4.Name = "toolStripSeparator4"; this.toolStripSeparator4.Name = "toolStripSeparator4";
this.toolStripSeparator4.Size = new System.Drawing.Size(258, 6); this.toolStripSeparator4.Size = new System.Drawing.Size(236, 6);
// //
// menuitem_comp1 // menuitem_comp1
// //
this.menuitem_comp1.Name = "menuitem_comp1"; this.menuitem_comp1.Name = "menuitem_comp1";
this.menuitem_comp1.Size = new System.Drawing.Size(261, 22); this.menuitem_comp1.Size = new System.Drawing.Size(239, 22);
this.menuitem_comp1.Text = "Compare DB 1"; this.menuitem_comp1.Text = "Compare DB 1";
this.menuitem_comp1.Click += new System.EventHandler(this.Menuitem_comp1Click); this.menuitem_comp1.Click += new System.EventHandler(this.Menuitem_comp1Click);
// //
...@@ -183,36 +183,36 @@ private void InitializeComponent() ...@@ -183,36 +183,36 @@ private void InitializeComponent()
// //
this.menuitem_comp2.Enabled = false; this.menuitem_comp2.Enabled = false;
this.menuitem_comp2.Name = "menuitem_comp2"; this.menuitem_comp2.Name = "menuitem_comp2";
this.menuitem_comp2.Size = new System.Drawing.Size(261, 22); this.menuitem_comp2.Size = new System.Drawing.Size(239, 22);
this.menuitem_comp2.Text = "Compare DB 2"; this.menuitem_comp2.Text = "Compare DB 2";
this.menuitem_comp2.Click += new System.EventHandler(this.Menuitem_comp2Click); this.menuitem_comp2.Click += new System.EventHandler(this.Menuitem_comp2Click);
// //
// toolStripSeparator1 // toolStripSeparator1
// //
this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(258, 6); this.toolStripSeparator1.Size = new System.Drawing.Size(236, 6);
// //
// menuitem_history // menuitem_history
// //
this.menuitem_history.Name = "menuitem_history"; this.menuitem_history.Name = "menuitem_history";
this.menuitem_history.Size = new System.Drawing.Size(261, 22); this.menuitem_history.Size = new System.Drawing.Size(239, 22);
this.menuitem_history.Text = "History(&H)"; this.menuitem_history.Text = "History(&H)";
// //
// menuitem_shistory // menuitem_shistory
// //
this.menuitem_shistory.Name = "menuitem_shistory"; this.menuitem_shistory.Name = "menuitem_shistory";
this.menuitem_shistory.Size = new System.Drawing.Size(261, 22); this.menuitem_shistory.Size = new System.Drawing.Size(239, 22);
this.menuitem_shistory.Text = "Script History"; this.menuitem_shistory.Text = "Script History";
// //
// toolStripSeparator5 // toolStripSeparator5
// //
this.toolStripSeparator5.Name = "toolStripSeparator5"; this.toolStripSeparator5.Name = "toolStripSeparator5";
this.toolStripSeparator5.Size = new System.Drawing.Size(258, 6); this.toolStripSeparator5.Size = new System.Drawing.Size(236, 6);
// //
// menuitem_quit // menuitem_quit
// //
this.menuitem_quit.Name = "menuitem_quit"; this.menuitem_quit.Name = "menuitem_quit";
this.menuitem_quit.Size = new System.Drawing.Size(261, 22); this.menuitem_quit.Size = new System.Drawing.Size(239, 22);
this.menuitem_quit.Text = "Quit"; this.menuitem_quit.Text = "Quit";
this.menuitem_quit.Click += new System.EventHandler(this.QuitToolStripMenuItemClick); this.menuitem_quit.Click += new System.EventHandler(this.QuitToolStripMenuItemClick);
// //
...@@ -226,47 +226,47 @@ private void InitializeComponent() ...@@ -226,47 +226,47 @@ private void InitializeComponent()
this.menuitem_closeother, this.menuitem_closeother,
this.menuitem_closeall}); this.menuitem_closeall});
this.menuitem_windows.Name = "menuitem_windows"; this.menuitem_windows.Name = "menuitem_windows";
this.menuitem_windows.Size = new System.Drawing.Size(93, 21); this.menuitem_windows.Size = new System.Drawing.Size(87, 20);
this.menuitem_windows.Text = "Windows(&W)"; this.menuitem_windows.Text = "Windows(&W)";
// //
// menuitem_dataeditor // menuitem_dataeditor
// //
this.menuitem_dataeditor.Name = "menuitem_dataeditor"; this.menuitem_dataeditor.Name = "menuitem_dataeditor";
this.menuitem_dataeditor.Size = new System.Drawing.Size(157, 22); this.menuitem_dataeditor.Size = new System.Drawing.Size(146, 22);
this.menuitem_dataeditor.Text = "DataEditor"; this.menuitem_dataeditor.Text = "DataEditor";
this.menuitem_dataeditor.Click += new System.EventHandler(this.DataEditorToolStripMenuItemClick); this.menuitem_dataeditor.Click += new System.EventHandler(this.DataEditorToolStripMenuItemClick);
// //
// menuitem_codeeditor // menuitem_codeeditor
// //
this.menuitem_codeeditor.Name = "menuitem_codeeditor"; this.menuitem_codeeditor.Name = "menuitem_codeeditor";
this.menuitem_codeeditor.Size = new System.Drawing.Size(157, 22); this.menuitem_codeeditor.Size = new System.Drawing.Size(146, 22);
this.menuitem_codeeditor.Text = "CodeEditor"; this.menuitem_codeeditor.Text = "CodeEditor";
this.menuitem_codeeditor.Click += new System.EventHandler(this.Menuitem_codeeditorClick); this.menuitem_codeeditor.Click += new System.EventHandler(this.Menuitem_codeeditorClick);
// //
// toolStripSeparator2 // toolStripSeparator2
// //
this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Name = "toolStripSeparator2";
this.toolStripSeparator2.Size = new System.Drawing.Size(154, 6); this.toolStripSeparator2.Size = new System.Drawing.Size(143, 6);
// //
// menuitem_close // menuitem_close
// //
this.menuitem_close.Name = "menuitem_close"; this.menuitem_close.Name = "menuitem_close";
this.menuitem_close.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.W))); this.menuitem_close.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.W)));
this.menuitem_close.Size = new System.Drawing.Size(157, 22); this.menuitem_close.Size = new System.Drawing.Size(146, 22);
this.menuitem_close.Text = "Close"; this.menuitem_close.Text = "Close";
this.menuitem_close.Click += new System.EventHandler(this.CloseToolStripMenuItemClick); this.menuitem_close.Click += new System.EventHandler(this.CloseToolStripMenuItemClick);
// //
// menuitem_closeother // menuitem_closeother
// //
this.menuitem_closeother.Name = "menuitem_closeother"; this.menuitem_closeother.Name = "menuitem_closeother";
this.menuitem_closeother.Size = new System.Drawing.Size(157, 22); this.menuitem_closeother.Size = new System.Drawing.Size(146, 22);
this.menuitem_closeother.Text = "Close Other"; this.menuitem_closeother.Text = "Close Other";
this.menuitem_closeother.Click += new System.EventHandler(this.CloseOtherToolStripMenuItemClick); this.menuitem_closeother.Click += new System.EventHandler(this.CloseOtherToolStripMenuItemClick);
// //
// menuitem_closeall // menuitem_closeall
// //
this.menuitem_closeall.Name = "menuitem_closeall"; this.menuitem_closeall.Name = "menuitem_closeall";
this.menuitem_closeall.Size = new System.Drawing.Size(157, 22); this.menuitem_closeall.Size = new System.Drawing.Size(146, 22);
this.menuitem_closeall.Text = "Close All"; this.menuitem_closeall.Text = "Close All";
this.menuitem_closeall.Click += new System.EventHandler(this.CloseAllToolStripMenuItemClick); this.menuitem_closeall.Click += new System.EventHandler(this.CloseAllToolStripMenuItemClick);
// //
...@@ -279,12 +279,12 @@ private void InitializeComponent() ...@@ -279,12 +279,12 @@ private void InitializeComponent()
// //
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.SystemColors.Control; this.BackColor = System.Drawing.SystemColors.Control;
this.ClientSize = new System.Drawing.Size(992, 761); this.ClientSize = new System.Drawing.Size(992, 749);
this.Controls.Add(this.dockPanel); this.Controls.Add(this.dockPanel);
this.Controls.Add(this.mainMenu); this.Controls.Add(this.mainMenu);
this.IsMdiContainer = true; this.IsMdiContainer = true;
this.MainMenuStrip = this.mainMenu; this.MainMenuStrip = this.mainMenu;
this.MinimumSize = new System.Drawing.Size(1008, 800); this.MinimumSize = new System.Drawing.Size(1008, 736);
this.Name = "MainForm"; this.Name = "MainForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "MainForm"; this.Text = "MainForm";
......
...@@ -32,6 +32,8 @@ ...@@ -32,6 +32,8 @@
<add key="opera_with_cards_file" value="true"/> <add key="opera_with_cards_file" value="true"/>
<!-- open file in this.such as lua --> <!-- open file in this.such as lua -->
<add key="open_file_in_this" value="true"/> <add key="open_file_in_this" value="true"/>
<!-- open file in this.such as lua -->
<add key="tooltip_font" value=""/>
<!-- check update when opening application automatically --> <!-- check update when opening application automatically -->
<add key="auto_check_update" value="true"/> <add key="auto_check_update" value="true"/>
<!-- add require automatically --> <!-- add require automatically -->
......
...@@ -5,6 +5,7 @@ CodeEditForm.mainMenu.menuitem_save 保存 ...@@ -5,6 +5,7 @@ CodeEditForm.mainMenu.menuitem_save 保存
CodeEditForm.mainMenu.menuitem_saveas 另存为 CodeEditForm.mainMenu.menuitem_saveas 另存为
CodeEditForm.mainMenu.menuitem_quit 退出 CodeEditForm.mainMenu.menuitem_quit 退出
CodeEditForm.mainMenu.menuitem_setting 选项(&S) CodeEditForm.mainMenu.menuitem_setting 选项(&S)
CodeEditForm.mainMenu.menuitem_tooltipFont 设置函数提示字体
CodeEditForm.mainMenu.menuitem_showmap 显示/隐藏结构图 CodeEditForm.mainMenu.menuitem_showmap 显示/隐藏结构图
CodeEditForm.mainMenu.menuitem_showinput 显示/隐藏输入框 CodeEditForm.mainMenu.menuitem_showinput 显示/隐藏输入框
CodeEditForm.mainMenu.menuitem_find 查找 CodeEditForm.mainMenu.menuitem_find 查找
......
...@@ -7,8 +7,9 @@ ...@@ -7,8 +7,9 @@
<package id="Microsoft.CSharp" version="4.7.0" targetFramework="net46" /> <package id="Microsoft.CSharp" version="4.7.0" targetFramework="net46" />
<package id="NeoLua" version="1.3.11" targetFramework="net46" /> <package id="NeoLua" version="1.3.11" targetFramework="net46" />
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net46" /> <package id="Newtonsoft.Json" version="12.0.3" targetFramework="net46" />
<package id="System.Data.SQLite" version="1.0.113.1" targetFramework="net46" /> <package id="Stub.System.Data.SQLite.Core.NetFramework" version="1.0.113.1" targetFramework="net46" />
<package id="System.Data.SQLite.Core" version="1.0.113.1" targetFramework="net46" /> <package id="System.Data.SQLite" version="1.0.113.3" targetFramework="net46" />
<package id="System.Data.SQLite.Core" version="1.0.113.3" targetFramework="net46" />
<package id="System.Data.SQLite.EF6" version="1.0.113.0" targetFramework="net46" /> <package id="System.Data.SQLite.EF6" version="1.0.113.0" targetFramework="net46" />
<package id="System.Data.SQLite.Linq" version="1.0.113.0" targetFramework="net46" /> <package id="System.Data.SQLite.Linq" version="1.0.113.0" targetFramework="net46" />
</packages> </packages>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment