修复加载被禁用打开设置插件加载的Bug,修复书签自定义的添加后删除的Bug。完善书签支持。
This commit is contained in:
parent
829cc70f5d
commit
c84e668c76
|
@ -243,6 +243,20 @@ namespace Be.Windows.Forms
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取在指定字节位置的高亮区块
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="index"></param>
|
||||||
|
/// <param name="IsMain"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public HighlightedRegion GetHighligedRegion(long index, bool IsMain = true)
|
||||||
|
{
|
||||||
|
List<HighlightedRegion> highlightedRegions = IsMain ? HighligedRegions : HighlightedRegions;
|
||||||
|
|
||||||
|
return highlightedRegions.Find(k => k.Start <= index && k.Start + k.Length >= index);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 清空高亮区段
|
/// 清空高亮区段
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -1,8 +1,18 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<configSections>
|
<configSections>
|
||||||
|
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
|
||||||
|
<section name="HexExplorer.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||||
|
</sectionGroup>
|
||||||
</configSections>
|
</configSections>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
|
<applicationSettings>
|
||||||
|
<HexExplorer.Properties.Settings>
|
||||||
|
<setting name="EmojiFont" serializeAs="String">
|
||||||
|
<value>Segoe UI Emoji, 7pt</value>
|
||||||
|
</setting>
|
||||||
|
</HexExplorer.Properties.Settings>
|
||||||
|
</applicationSettings>
|
||||||
</configuration>
|
</configuration>
|
|
@ -18,7 +18,7 @@ namespace HexExplorer
|
||||||
|
|
||||||
if (LicenseManager.UsageMode != LicenseUsageMode.Designtime)
|
if (LicenseManager.UsageMode != LicenseUsageMode.Designtime)
|
||||||
{
|
{
|
||||||
Font = UserSetting.UserProfile.ProgramFont;
|
DataBindings.Add(new Binding("Font", UserSetting.UserProfile, "ProgramFont", true, DataSourceUpdateMode.OnPropertyChanged));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,8 +7,6 @@ namespace HexExplorer
|
||||||
|
|
||||||
public static class Setting
|
public static class Setting
|
||||||
{
|
{
|
||||||
public static readonly Binding ProgramFont
|
|
||||||
= new Binding("Font", UserSetting.UserProfile, "ProgramFont", true, DataSourceUpdateMode.OnPropertyChanged);
|
|
||||||
public static readonly Binding ProgramFontName
|
public static readonly Binding ProgramFontName
|
||||||
= new Binding("Text", UserSetting.UserProfile.ProgramFont, "Name", true, DataSourceUpdateMode.OnPropertyChanged);
|
= new Binding("Text", UserSetting.UserProfile.ProgramFont, "Name", true, DataSourceUpdateMode.OnPropertyChanged);
|
||||||
public static readonly Binding StringViewEncoding
|
public static readonly Binding StringViewEncoding
|
||||||
|
@ -72,10 +70,12 @@ namespace HexExplorer
|
||||||
public static readonly Binding HexStringLinePenFore
|
public static readonly Binding HexStringLinePenFore
|
||||||
= new Binding("ForeColor", UserSetting.UserProfile.HexStringLinePen, "Color", true, DataSourceUpdateMode.OnPropertyChanged);
|
= new Binding("ForeColor", UserSetting.UserProfile.HexStringLinePen, "Color", true, DataSourceUpdateMode.OnPropertyChanged);
|
||||||
|
|
||||||
|
public static readonly Binding BookMarkDefaultColor
|
||||||
|
= new Binding("ForeColor", UserSetting.UserProfile, "BookMarkDefaultColor", true, DataSourceUpdateMode.OnPropertyChanged);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static readonly Binding LogInfo = new Binding("Text", LoggingLib.Instance, "LogInfo");
|
public static readonly Binding LogInfo = new Binding("Text", LoggingLib.Instance, "LogInfo");
|
||||||
public static readonly Binding UseShell = new Binding("Checked", FrmSetting.UseShell, null , true, DataSourceUpdateMode.OnPropertyChanged);
|
public static readonly Binding UseShell = new Binding("Checked", FrmSetting.UseShell, null , true, DataSourceUpdateMode.OnPropertyChanged);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -724,6 +724,7 @@
|
||||||
//
|
//
|
||||||
// MenuPlugin
|
// MenuPlugin
|
||||||
//
|
//
|
||||||
|
this.MenuPlugin.Enabled = false;
|
||||||
this.MenuPlugin.Image = global::HexExplorer.Properties.Resources.plugin;
|
this.MenuPlugin.Image = global::HexExplorer.Properties.Resources.plugin;
|
||||||
this.MenuPlugin.Name = "MenuPlugin";
|
this.MenuPlugin.Name = "MenuPlugin";
|
||||||
this.MenuPlugin.Size = new System.Drawing.Size(92, 24);
|
this.MenuPlugin.Size = new System.Drawing.Size(92, 24);
|
||||||
|
@ -1512,7 +1513,7 @@
|
||||||
this.tbBookMark.Size = new System.Drawing.Size(29, 24);
|
this.tbBookMark.Size = new System.Drawing.Size(29, 24);
|
||||||
this.tbBookMark.Tag = "2";
|
this.tbBookMark.Tag = "2";
|
||||||
this.tbBookMark.Text = "书签";
|
this.tbBookMark.Text = "书签";
|
||||||
this.tbBookMark.Click += new System.EventHandler(this.MIBookMark_Click);
|
this.tbBookMark.MouseDown += new System.Windows.Forms.MouseEventHandler(this.TbBookMark_MouseDown);
|
||||||
this.tbBookMark.MouseLeave += new System.EventHandler(this.HideToolTipGroup_MouseLeave);
|
this.tbBookMark.MouseLeave += new System.EventHandler(this.HideToolTipGroup_MouseLeave);
|
||||||
this.tbBookMark.MouseMove += new System.Windows.Forms.MouseEventHandler(this.ShowToolTipGroup_MouseMove);
|
this.tbBookMark.MouseMove += new System.Windows.Forms.MouseEventHandler(this.ShowToolTipGroup_MouseMove);
|
||||||
//
|
//
|
||||||
|
@ -1798,6 +1799,7 @@
|
||||||
this.Controls.Add(MainMenu);
|
this.Controls.Add(MainMenu);
|
||||||
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
|
this.KeyPreview = true;
|
||||||
this.MainMenuStrip = MainMenu;
|
this.MainMenuStrip = MainMenu;
|
||||||
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||||
this.Name = "FrmMain";
|
this.Name = "FrmMain";
|
||||||
|
@ -1805,6 +1807,8 @@
|
||||||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
|
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
|
||||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmMain_FormClosing);
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmMain_FormClosing);
|
||||||
this.Load += new System.EventHandler(this.FrmMain_Load);
|
this.Load += new System.EventHandler(this.FrmMain_Load);
|
||||||
|
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FrmMain_KeyDown);
|
||||||
|
this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.FrmMain_KeyUp);
|
||||||
MainMenu.ResumeLayout(false);
|
MainMenu.ResumeLayout(false);
|
||||||
MainMenu.PerformLayout();
|
MainMenu.PerformLayout();
|
||||||
this.hexMenuStrip.ResumeLayout(false);
|
this.hexMenuStrip.ResumeLayout(false);
|
||||||
|
|
|
@ -14,7 +14,7 @@ namespace HexExplorer
|
||||||
public partial class FrmMain : FormBase
|
public partial class FrmMain : FormBase
|
||||||
{
|
{
|
||||||
private readonly EditorPageManager pageManager;
|
private readonly EditorPageManager pageManager;
|
||||||
private string[] Args;
|
private readonly string[] Args;
|
||||||
|
|
||||||
private readonly string EditFileExt = string.Empty;
|
private readonly string EditFileExt = string.Empty;
|
||||||
|
|
||||||
|
@ -29,8 +29,10 @@ namespace HexExplorer
|
||||||
private readonly ConstInfo constInfo;
|
private readonly ConstInfo constInfo;
|
||||||
private readonly char[] InvalidFilenameChars = Path.GetInvalidFileNameChars();
|
private readonly char[] InvalidFilenameChars = Path.GetInvalidFileNameChars();
|
||||||
|
|
||||||
private readonly Lazy<List<HexBox.HighlightedRegion>> BookMarkregions = new Lazy<List<HexBox.HighlightedRegion>>();
|
|
||||||
private readonly WSPlugin pluginManager;
|
private readonly WSPlugin pluginManager;
|
||||||
|
private static readonly MUserProfile mUser = UserSetting.UserProfile;
|
||||||
|
private readonly List<BookMarkProperty> bookMarks = mUser.MarkProperties;
|
||||||
|
private Keys keydown = Keys.None;
|
||||||
|
|
||||||
public FrmMain(string[] args = null)
|
public FrmMain(string[] args = null)
|
||||||
{
|
{
|
||||||
|
@ -67,6 +69,7 @@ namespace HexExplorer
|
||||||
|
|
||||||
if (UserSetting.UserProfile.EnablePlugin)
|
if (UserSetting.UserProfile.EnablePlugin)
|
||||||
{
|
{
|
||||||
|
MenuPlugin.Enabled = true;
|
||||||
pluginManager = WSPlugin.Instance;
|
pluginManager = WSPlugin.Instance;
|
||||||
pluginManager.ToHostMessagePipe += PluginManager_ToHostMessagePipe;
|
pluginManager.ToHostMessagePipe += PluginManager_ToHostMessagePipe;
|
||||||
WSPlugin.PluginSupportLib.pluginManager = pluginManager;
|
WSPlugin.PluginSupportLib.pluginManager = pluginManager;
|
||||||
|
@ -387,6 +390,16 @@ namespace HexExplorer
|
||||||
|
|
||||||
#region 窗体事件与消息
|
#region 窗体事件与消息
|
||||||
|
|
||||||
|
private void FrmMain_KeyDown(object sender, KeyEventArgs e)
|
||||||
|
{
|
||||||
|
keydown = e.Modifiers;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void FrmMain_KeyUp(object sender, KeyEventArgs e)
|
||||||
|
{
|
||||||
|
keydown = Keys.None;
|
||||||
|
}
|
||||||
|
|
||||||
private void FrmMain_FormClosing(object sender, FormClosingEventArgs e)
|
private void FrmMain_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
{
|
{
|
||||||
if (e.CloseReason != CloseReason.WindowsShutDown)
|
if (e.CloseReason != CloseReason.WindowsShutDown)
|
||||||
|
@ -967,18 +980,45 @@ namespace HexExplorer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void BookMark(Color color)
|
||||||
|
{
|
||||||
|
var hexbox = pageManager.CurrentHexBox;
|
||||||
|
var region = hexbox.GetHighligedRegion(hexbox.SelectionStart);
|
||||||
|
|
||||||
|
if (region == null)
|
||||||
|
{
|
||||||
|
var hr = new HexBox.HighlightedRegion
|
||||||
|
{
|
||||||
|
Color = color,
|
||||||
|
Length = hexbox.SelectionLength == 0 ? 1 : hexbox.SelectionLength,
|
||||||
|
Start = hexbox.SelectionStart
|
||||||
|
};
|
||||||
|
|
||||||
|
hexbox.AddHighligedRegion(hr);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (hexbox.SelectionLength > 0)
|
||||||
|
{
|
||||||
|
if (MessageBox.Show("如果要删除区块,请不要添加选区。如果要删除选区,请点击是,将根据状态栏的位置作为判断依据。",
|
||||||
|
"提示", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
hexbox.RemoveHighlightedRegion(region);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void MIBookMark_Click(object sender, EventArgs e)
|
private void MIBookMark_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
int res = BookMarkregions.Value.FindIndex(k => k.IsByteSelected(pageManager.CurrentHexBox.SelectionStart));
|
BookMark(mUser.BookMarkDefaultColor);
|
||||||
if (!pageManager.CurrentHexBox.RemoveHighlightedRegionAt(res))
|
}
|
||||||
{
|
|
||||||
pageManager.CurrentHexBox.AddHighligedRegion(new HexBox.HighlightedRegion
|
private void TbBookMark_MouseDown(object sender, MouseEventArgs e)
|
||||||
{
|
{
|
||||||
Color = Color.AliceBlue,
|
var bookmark = bookMarks.Find(k => k.KeyDown == keydown && k.MouseButton == e.Button);
|
||||||
Length = pageManager.CurrentHexBox.SelectionLength == 0 ? 1 : pageManager.CurrentHexBox.SelectionLength,
|
BookMark(bookmark != null ? bookmark.Color : mUser.BookMarkDefaultColor);
|
||||||
Start = pageManager.CurrentHexBox.SelectionStart
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void MIAboutThis_Click(object sender, EventArgs e)
|
private void MIAboutThis_Click(object sender, EventArgs e)
|
||||||
|
|
|
@ -135,30 +135,6 @@
|
||||||
<metadata name="MainMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="MainMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>17, 17</value>
|
<value>17, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="MenuItemSetting.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>False</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="MenuItemAbout.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>False</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="MINew.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>False</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="MIOpen.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>False</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="MIOpenProcess.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>False</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="MIS0.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>False</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="MIS1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>False</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="MIExit.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>False</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="MINew.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="MINew.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>False</value>
|
<value>False</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
@ -207,21 +183,6 @@
|
||||||
<metadata name="MIInfo.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="MIInfo.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>False</value>
|
<value>False</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="MIGeneral.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>False</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="MIPlugin.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>False</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="MIInfo.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>False</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="MICalculator.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>False</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="MIAddrConverter.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>False</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="MICalculator.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="MICalculator.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>False</value>
|
<value>False</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
@ -237,6 +198,39 @@
|
||||||
<metadata name="MISponsor.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="MISponsor.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>False</value>
|
<value>False</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="MINew.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>False</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="MIOpen.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>False</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="MIOpenProcess.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>False</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="MIS0.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>False</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="MIS1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>False</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="MIExit.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>False</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="MIGeneral.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>False</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="MIPlugin.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>False</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="MIInfo.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>False</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="MICalculator.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>False</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="MIAddrConverter.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>False</value>
|
||||||
|
</metadata>
|
||||||
<metadata name="MIAbout.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="MIAbout.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>False</value>
|
<value>False</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
@ -281,7 +275,7 @@
|
||||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
||||||
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
||||||
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADQ
|
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADQ
|
||||||
DwAAAk1TRnQBSQFMAgEBBAEAAeABBAHgAQQBEAEAARABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFA
|
DwAAAk1TRnQBSQFMAgEBBAEAAfgBBAH4AQQBEAEAARABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFA
|
||||||
AwABIAMAAQEBAAEgBgABIP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8AugADQAFwA2IB7wNi
|
AwABIAMAAQEBAAEgBgABIP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8AugADQAFwA2IB7wNi
|
||||||
Ae8DQAFwGAAD9gH/A/YB/wP2Af8D9gH/A/YB/wP2Af8D9gH/A/YB/wP2Af8cAAP2Af8D9gH/A/YB/wP2
|
Ae8DQAFwGAAD9gH/A/YB/wP2Af8D9gH/A/YB/wP2Af8D9gH/A/YB/wP2Af8cAAP2Af8D9gH/A/YB/wP2
|
||||||
Af8D9gH/A/YB/wP2Af8D9gH/A/YB/wP2Af8D9gH/A/YB/wP2Af8D9gH/A/YB/wP2Af9QAAMXASADWQG/
|
Af8D9gH/A/YB/wP2Af8D9gH/A/YB/wP2Af8D9gH/A/YB/wP2Af8D9gH/A/YB/wP2Af9QAAMXASADWQG/
|
||||||
|
|
|
@ -54,6 +54,7 @@ namespace HexExplorer
|
||||||
this.cbEnableString = new System.Windows.Forms.CheckBox();
|
this.cbEnableString = new System.Windows.Forms.CheckBox();
|
||||||
this.cbLineInfo = new System.Windows.Forms.CheckBox();
|
this.cbLineInfo = new System.Windows.Forms.CheckBox();
|
||||||
this.btnSelTextColor = new System.Windows.Forms.Button();
|
this.btnSelTextColor = new System.Windows.Forms.Button();
|
||||||
|
this.btnBMDColor = new System.Windows.Forms.Button();
|
||||||
this.btnSelBackColor = new System.Windows.Forms.Button();
|
this.btnSelBackColor = new System.Windows.Forms.Button();
|
||||||
this.ntScaling = new System.Windows.Forms.NumericUpDown();
|
this.ntScaling = new System.Windows.Forms.NumericUpDown();
|
||||||
this.cbEnablePE = new System.Windows.Forms.CheckBox();
|
this.cbEnablePE = new System.Windows.Forms.CheckBox();
|
||||||
|
@ -79,6 +80,10 @@ namespace HexExplorer
|
||||||
this.cD = new System.Windows.Forms.ColorDialog();
|
this.cD = new System.Windows.Forms.ColorDialog();
|
||||||
this.fD = new System.Windows.Forms.FontDialog();
|
this.fD = new System.Windows.Forms.FontDialog();
|
||||||
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
|
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
|
||||||
|
this.menustrip = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||||
|
this.添加ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.删除ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.清空ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
tabGeneral = new System.Windows.Forms.TabPage();
|
tabGeneral = new System.Windows.Forms.TabPage();
|
||||||
groupBox2 = new System.Windows.Forms.GroupBox();
|
groupBox2 = new System.Windows.Forms.GroupBox();
|
||||||
groupBox1 = new System.Windows.Forms.GroupBox();
|
groupBox1 = new System.Windows.Forms.GroupBox();
|
||||||
|
@ -98,6 +103,7 @@ namespace HexExplorer
|
||||||
tabOther.SuspendLayout();
|
tabOther.SuspendLayout();
|
||||||
this.gpNeedAdmin.SuspendLayout();
|
this.gpNeedAdmin.SuspendLayout();
|
||||||
this.tabSetting.SuspendLayout();
|
this.tabSetting.SuspendLayout();
|
||||||
|
this.menustrip.SuspendLayout();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// tabGeneral
|
// tabGeneral
|
||||||
|
@ -147,6 +153,7 @@ namespace HexExplorer
|
||||||
this.btnFont.TabIndex = 0;
|
this.btnFont.TabIndex = 0;
|
||||||
this.btnFont.Text = "微软雅黑";
|
this.btnFont.Text = "微软雅黑";
|
||||||
this.btnFont.UseVisualStyleBackColor = true;
|
this.btnFont.UseVisualStyleBackColor = true;
|
||||||
|
this.btnFont.Click += new System.EventHandler(this.BtnFont_Click);
|
||||||
//
|
//
|
||||||
// cbEncoding
|
// cbEncoding
|
||||||
//
|
//
|
||||||
|
@ -195,6 +202,7 @@ namespace HexExplorer
|
||||||
groupBox1.Controls.Add(this.cbEnableString);
|
groupBox1.Controls.Add(this.cbEnableString);
|
||||||
groupBox1.Controls.Add(this.cbLineInfo);
|
groupBox1.Controls.Add(this.cbLineInfo);
|
||||||
groupBox1.Controls.Add(this.btnSelTextColor);
|
groupBox1.Controls.Add(this.btnSelTextColor);
|
||||||
|
groupBox1.Controls.Add(this.btnBMDColor);
|
||||||
groupBox1.Controls.Add(this.btnSelBackColor);
|
groupBox1.Controls.Add(this.btnSelBackColor);
|
||||||
groupBox1.Controls.Add(label4);
|
groupBox1.Controls.Add(label4);
|
||||||
groupBox1.Controls.Add(this.ntScaling);
|
groupBox1.Controls.Add(this.ntScaling);
|
||||||
|
@ -210,6 +218,7 @@ namespace HexExplorer
|
||||||
//
|
//
|
||||||
// btnStringLine
|
// btnStringLine
|
||||||
//
|
//
|
||||||
|
this.btnStringLine.Font = global::HexExplorer.Properties.Settings.Default.EmojiFont;
|
||||||
this.btnStringLine.Location = new System.Drawing.Point(319, 122);
|
this.btnStringLine.Location = new System.Drawing.Point(319, 122);
|
||||||
this.btnStringLine.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
this.btnStringLine.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||||
this.btnStringLine.Name = "btnStringLine";
|
this.btnStringLine.Name = "btnStringLine";
|
||||||
|
@ -222,6 +231,7 @@ namespace HexExplorer
|
||||||
//
|
//
|
||||||
// btnGroupLine
|
// btnGroupLine
|
||||||
//
|
//
|
||||||
|
this.btnGroupLine.Font = global::HexExplorer.Properties.Settings.Default.EmojiFont;
|
||||||
this.btnGroupLine.Location = new System.Drawing.Point(319, 93);
|
this.btnGroupLine.Location = new System.Drawing.Point(319, 93);
|
||||||
this.btnGroupLine.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
this.btnGroupLine.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||||
this.btnGroupLine.Name = "btnGroupLine";
|
this.btnGroupLine.Name = "btnGroupLine";
|
||||||
|
@ -236,13 +246,14 @@ namespace HexExplorer
|
||||||
//
|
//
|
||||||
this.btnColInfo.BackColor = System.Drawing.Color.Black;
|
this.btnColInfo.BackColor = System.Drawing.Color.Black;
|
||||||
this.btnColInfo.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
this.btnColInfo.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||||
|
this.btnColInfo.Font = global::HexExplorer.Properties.Settings.Default.EmojiFont;
|
||||||
this.btnColInfo.ForeColor = System.Drawing.Color.White;
|
this.btnColInfo.ForeColor = System.Drawing.Color.White;
|
||||||
this.btnColInfo.Location = new System.Drawing.Point(319, 63);
|
this.btnColInfo.Location = new System.Drawing.Point(319, 63);
|
||||||
this.btnColInfo.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
this.btnColInfo.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||||
this.btnColInfo.Name = "btnColInfo";
|
this.btnColInfo.Name = "btnColInfo";
|
||||||
this.btnColInfo.Size = new System.Drawing.Size(43, 25);
|
this.btnColInfo.Size = new System.Drawing.Size(43, 25);
|
||||||
this.btnColInfo.TabIndex = 0;
|
this.btnColInfo.TabIndex = 0;
|
||||||
this.btnColInfo.Text = "☻";
|
this.btnColInfo.Text = "😀";
|
||||||
this.toolTip.SetToolTip(this.btnColInfo, "更改颜色");
|
this.toolTip.SetToolTip(this.btnColInfo, "更改颜色");
|
||||||
this.btnColInfo.UseVisualStyleBackColor = false;
|
this.btnColInfo.UseVisualStyleBackColor = false;
|
||||||
this.btnColInfo.Click += new System.EventHandler(this.BtnSelectColor_Click);
|
this.btnColInfo.Click += new System.EventHandler(this.BtnSelectColor_Click);
|
||||||
|
@ -251,13 +262,14 @@ namespace HexExplorer
|
||||||
//
|
//
|
||||||
this.btnLineInfo.BackColor = System.Drawing.Color.Black;
|
this.btnLineInfo.BackColor = System.Drawing.Color.Black;
|
||||||
this.btnLineInfo.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
this.btnLineInfo.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||||
|
this.btnLineInfo.Font = global::HexExplorer.Properties.Settings.Default.EmojiFont;
|
||||||
this.btnLineInfo.ForeColor = System.Drawing.Color.White;
|
this.btnLineInfo.ForeColor = System.Drawing.Color.White;
|
||||||
this.btnLineInfo.Location = new System.Drawing.Point(319, 34);
|
this.btnLineInfo.Location = new System.Drawing.Point(319, 34);
|
||||||
this.btnLineInfo.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
this.btnLineInfo.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||||
this.btnLineInfo.Name = "btnLineInfo";
|
this.btnLineInfo.Name = "btnLineInfo";
|
||||||
this.btnLineInfo.Size = new System.Drawing.Size(43, 25);
|
this.btnLineInfo.Size = new System.Drawing.Size(43, 25);
|
||||||
this.btnLineInfo.TabIndex = 0;
|
this.btnLineInfo.TabIndex = 0;
|
||||||
this.btnLineInfo.Text = "☻";
|
this.btnLineInfo.Text = "😀";
|
||||||
this.toolTip.SetToolTip(this.btnLineInfo, "更改颜色");
|
this.toolTip.SetToolTip(this.btnLineInfo, "更改颜色");
|
||||||
this.btnLineInfo.UseVisualStyleBackColor = false;
|
this.btnLineInfo.UseVisualStyleBackColor = false;
|
||||||
this.btnLineInfo.Click += new System.EventHandler(this.BtnSelectColor_Click);
|
this.btnLineInfo.Click += new System.EventHandler(this.BtnSelectColor_Click);
|
||||||
|
@ -341,6 +353,20 @@ namespace HexExplorer
|
||||||
this.btnSelTextColor.UseVisualStyleBackColor = false;
|
this.btnSelTextColor.UseVisualStyleBackColor = false;
|
||||||
this.btnSelTextColor.Click += new System.EventHandler(this.BtnSelectColor_Click);
|
this.btnSelTextColor.Click += new System.EventHandler(this.BtnSelectColor_Click);
|
||||||
//
|
//
|
||||||
|
// btnBMDColor
|
||||||
|
//
|
||||||
|
this.btnBMDColor.BackColor = System.Drawing.Color.Black;
|
||||||
|
this.btnBMDColor.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||||
|
this.btnBMDColor.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.btnBMDColor.Location = new System.Drawing.Point(385, 34);
|
||||||
|
this.btnBMDColor.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||||
|
this.btnBMDColor.Name = "btnBMDColor";
|
||||||
|
this.btnBMDColor.Size = new System.Drawing.Size(172, 28);
|
||||||
|
this.btnBMDColor.TabIndex = 0;
|
||||||
|
this.btnBMDColor.Text = "默认书签底色";
|
||||||
|
this.btnBMDColor.UseVisualStyleBackColor = false;
|
||||||
|
this.btnBMDColor.Click += new System.EventHandler(this.BtnSelectColor_Click);
|
||||||
|
//
|
||||||
// btnSelBackColor
|
// btnSelBackColor
|
||||||
//
|
//
|
||||||
this.btnSelBackColor.BackColor = System.Drawing.Color.Black;
|
this.btnSelBackColor.BackColor = System.Drawing.Color.Black;
|
||||||
|
@ -635,6 +661,7 @@ namespace HexExplorer
|
||||||
//
|
//
|
||||||
// clbPlugin
|
// clbPlugin
|
||||||
//
|
//
|
||||||
|
this.clbPlugin.ContextMenuStrip = this.menustrip;
|
||||||
this.clbPlugin.FormattingEnabled = true;
|
this.clbPlugin.FormattingEnabled = true;
|
||||||
this.clbPlugin.ItemHeight = 15;
|
this.clbPlugin.ItemHeight = 15;
|
||||||
this.clbPlugin.Location = new System.Drawing.Point(20, 55);
|
this.clbPlugin.Location = new System.Drawing.Point(20, 55);
|
||||||
|
@ -716,6 +743,34 @@ namespace HexExplorer
|
||||||
this.fD.ScriptsOnly = true;
|
this.fD.ScriptsOnly = true;
|
||||||
this.fD.ShowEffects = false;
|
this.fD.ShowEffects = false;
|
||||||
//
|
//
|
||||||
|
// menustrip
|
||||||
|
//
|
||||||
|
this.menustrip.ImageScalingSize = new System.Drawing.Size(20, 20);
|
||||||
|
this.menustrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
|
this.添加ToolStripMenuItem,
|
||||||
|
this.删除ToolStripMenuItem,
|
||||||
|
this.清空ToolStripMenuItem});
|
||||||
|
this.menustrip.Name = "menustrip";
|
||||||
|
this.menustrip.Size = new System.Drawing.Size(109, 76);
|
||||||
|
//
|
||||||
|
// 添加ToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.添加ToolStripMenuItem.Name = "添加ToolStripMenuItem";
|
||||||
|
this.添加ToolStripMenuItem.Size = new System.Drawing.Size(108, 24);
|
||||||
|
this.添加ToolStripMenuItem.Text = "添加";
|
||||||
|
//
|
||||||
|
// 删除ToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.删除ToolStripMenuItem.Name = "删除ToolStripMenuItem";
|
||||||
|
this.删除ToolStripMenuItem.Size = new System.Drawing.Size(108, 24);
|
||||||
|
this.删除ToolStripMenuItem.Text = "删除";
|
||||||
|
//
|
||||||
|
// 清空ToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.清空ToolStripMenuItem.Name = "清空ToolStripMenuItem";
|
||||||
|
this.清空ToolStripMenuItem.Size = new System.Drawing.Size(108, 24);
|
||||||
|
this.清空ToolStripMenuItem.Text = "清空";
|
||||||
|
//
|
||||||
// FrmSetting
|
// FrmSetting
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
|
||||||
|
@ -743,6 +798,7 @@ namespace HexExplorer
|
||||||
this.gpNeedAdmin.ResumeLayout(false);
|
this.gpNeedAdmin.ResumeLayout(false);
|
||||||
this.gpNeedAdmin.PerformLayout();
|
this.gpNeedAdmin.PerformLayout();
|
||||||
this.tabSetting.ResumeLayout(false);
|
this.tabSetting.ResumeLayout(false);
|
||||||
|
this.menustrip.ResumeLayout(false);
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -789,5 +845,10 @@ namespace HexExplorer
|
||||||
private System.Windows.Forms.CheckBox cbAdmin;
|
private System.Windows.Forms.CheckBox cbAdmin;
|
||||||
private System.Windows.Forms.CheckBox cbShellRight;
|
private System.Windows.Forms.CheckBox cbShellRight;
|
||||||
private System.Windows.Forms.GroupBox gpNeedAdmin;
|
private System.Windows.Forms.GroupBox gpNeedAdmin;
|
||||||
|
private System.Windows.Forms.Button btnBMDColor;
|
||||||
|
private System.Windows.Forms.ContextMenuStrip menustrip;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem 添加ToolStripMenuItem;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem 删除ToolStripMenuItem;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem 清空ToolStripMenuItem;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -5,6 +5,7 @@ using System.Drawing;
|
||||||
using Microsoft.Win32;
|
using Microsoft.Win32;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
namespace HexExplorer
|
namespace HexExplorer
|
||||||
{
|
{
|
||||||
|
@ -14,9 +15,10 @@ namespace HexExplorer
|
||||||
private static FrmSetting frmSetting=null;
|
private static FrmSetting frmSetting=null;
|
||||||
public static bool UseShell = false;
|
public static bool UseShell = false;
|
||||||
private readonly List<WSPlugin.PluginInfo> pluginInfos;
|
private readonly List<WSPlugin.PluginInfo> pluginInfos;
|
||||||
private readonly WSPlugin plugin = WSPlugin.Instance;
|
private readonly WSPlugin plugin ;
|
||||||
private static string app= Application.ExecutablePath;
|
private static readonly string app= Application.ExecutablePath;
|
||||||
private string appp = $"\"{app}\" \"%1\"";
|
private readonly string appp = $"\"{app}\" \"%1\"";
|
||||||
|
readonly MUserProfile mUser = UserSetting.UserProfile;
|
||||||
|
|
||||||
public static FrmSetting Instance
|
public static FrmSetting Instance
|
||||||
{
|
{
|
||||||
|
@ -38,7 +40,6 @@ namespace HexExplorer
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//创建绑定,少些重复性代码
|
//创建绑定,少些重复性代码
|
||||||
DataBindings.Add(BindingEnum.Setting.ProgramFont);
|
|
||||||
btnFont.DataBindings.Add(BindingEnum.Setting.ProgramFontName);
|
btnFont.DataBindings.Add(BindingEnum.Setting.ProgramFontName);
|
||||||
cbEncoding.DataBindings.Add(BindingEnum.Setting.StringViewEncoding);
|
cbEncoding.DataBindings.Add(BindingEnum.Setting.StringViewEncoding);
|
||||||
ntScaling.DataBindings.Add(BindingEnum.Setting.ScalingPercent);
|
ntScaling.DataBindings.Add(BindingEnum.Setting.ScalingPercent);
|
||||||
|
@ -73,6 +74,7 @@ namespace HexExplorer
|
||||||
btnGroupLine.DataBindings.Add(BindingEnum.Setting.GroupLinePenFore);
|
btnGroupLine.DataBindings.Add(BindingEnum.Setting.GroupLinePenFore);
|
||||||
btnStringLine.DataBindings.Add(BindingEnum.Setting.HexStringLinePen);
|
btnStringLine.DataBindings.Add(BindingEnum.Setting.HexStringLinePen);
|
||||||
btnStringLine.DataBindings.Add(BindingEnum.Setting.HexStringLinePenFore);
|
btnStringLine.DataBindings.Add(BindingEnum.Setting.HexStringLinePenFore);
|
||||||
|
btnBMDColor.DataBindings.Add(BindingEnum.Setting.BookMarkDefaultColor);
|
||||||
|
|
||||||
cbShellRight.DataBindings.Add(BindingEnum.UseShell);
|
cbShellRight.DataBindings.Add(BindingEnum.UseShell);
|
||||||
|
|
||||||
|
@ -85,10 +87,10 @@ namespace HexExplorer
|
||||||
gpNeedAdmin.BackgroundImage = Program.AdminIconP;
|
gpNeedAdmin.BackgroundImage = Program.AdminIconP;
|
||||||
}
|
}
|
||||||
|
|
||||||
MUserProfile mUser = UserSetting.UserProfile;
|
|
||||||
var dplugin = mUser.DisableGuid;
|
var dplugin = mUser.DisableGuid;
|
||||||
if (mUser.EnablePlugin)
|
if (mUser.EnablePlugin)
|
||||||
{
|
{
|
||||||
|
plugin = WSPlugin.Instance;
|
||||||
pluginInfos = new List<WSPlugin.PluginInfo>();
|
pluginInfos = new List<WSPlugin.PluginInfo>();
|
||||||
foreach (var item in plugin.plugins.Value)
|
foreach (var item in plugin.plugins.Value)
|
||||||
{
|
{
|
||||||
|
@ -203,5 +205,14 @@ namespace HexExplorer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void BtnFont_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (fD.ShowDialog()== DialogResult.OK)
|
||||||
|
{
|
||||||
|
mUser.ProgramFont = fD.Font;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -123,6 +123,12 @@
|
||||||
<metadata name="groupBox2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="groupBox2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>False</value>
|
<value>False</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="groupBox1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>False</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="groupBox2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>False</value>
|
||||||
|
</metadata>
|
||||||
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>167, 17</value>
|
<value>167, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
@ -135,6 +141,12 @@
|
||||||
<metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>False</value>
|
<value>False</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="label4.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>False</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>False</value>
|
||||||
|
</metadata>
|
||||||
<metadata name="tabPE.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="tabPE.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>False</value>
|
<value>False</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
@ -144,6 +156,9 @@
|
||||||
<metadata name="tabPlugin.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="tabPlugin.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>False</value>
|
<value>False</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="menustrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>276, 17</value>
|
||||||
|
</metadata>
|
||||||
<metadata name="tabOther.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="tabOther.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>False</value>
|
<value>False</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
@ -153,4 +168,7 @@
|
||||||
<metadata name="fD.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="fD.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>93, 17</value>
|
<value>93, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>167, 17</value>
|
||||||
|
</metadata>
|
||||||
</root>
|
</root>
|
|
@ -35,6 +35,7 @@ namespace HexExplorer
|
||||||
public static Color DefaultIMAGE_Debug_DIRECTORY_Color = Color.FromArgb(255, 197, 61, 76);
|
public static Color DefaultIMAGE_Debug_DIRECTORY_Color = Color.FromArgb(255, 197, 61, 76);
|
||||||
public static Color DefaultIMAGE_dotNetDIRECTORY_Color = Color.FromArgb(255, 66, 202, 166);
|
public static Color DefaultIMAGE_dotNetDIRECTORY_Color = Color.FromArgb(255, 66, 202, 166);
|
||||||
public static Color DefaultImage_OtherColor = Color.FromArgb(255, 247, 247, 140);
|
public static Color DefaultImage_OtherColor = Color.FromArgb(255, 247, 247, 140);
|
||||||
|
public static Color DefaultBookMarkDefaultColor = Color.FromArgb(100, 255, 0, 195);
|
||||||
|
|
||||||
public static PenF DefaultGroupLinePen = new PenF()
|
public static PenF DefaultGroupLinePen = new PenF()
|
||||||
{
|
{
|
||||||
|
@ -101,6 +102,7 @@ namespace HexExplorer
|
||||||
private bool enableAdvBookMark;
|
private bool enableAdvBookMark;
|
||||||
private List<BookMarkProperty> markProperties;
|
private List<BookMarkProperty> markProperties;
|
||||||
private bool adminStart;
|
private bool adminStart;
|
||||||
|
private Color bookMarkDefaultColor;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
@ -124,6 +126,7 @@ namespace HexExplorer
|
||||||
HexStringLinePen = DefaultHexStringLinePen;
|
HexStringLinePen = DefaultHexStringLinePen;
|
||||||
LineInfoBackColor = DefaultLineInfoBackColor;
|
LineInfoBackColor = DefaultLineInfoBackColor;
|
||||||
ColInfoBackColor = DefaultColInfoBackColor;
|
ColInfoBackColor = DefaultColInfoBackColor;
|
||||||
|
BookMarkDefaultColor = DefaultBookMarkDefaultColor;
|
||||||
IMAGE_DOS_HEADER_Color = DefaultIMAGE_DOS_HEADER_Color;
|
IMAGE_DOS_HEADER_Color = DefaultIMAGE_DOS_HEADER_Color;
|
||||||
IMAGE_NT_HEADERS_Color = DefaultIMAGE_NT_HEADERS_Color;
|
IMAGE_NT_HEADERS_Color = DefaultIMAGE_NT_HEADERS_Color;
|
||||||
IMAGE_FILE_HEADER_Color = DefaultIMAGE_FILE_HEADER_Color;
|
IMAGE_FILE_HEADER_Color = DefaultIMAGE_FILE_HEADER_Color;
|
||||||
|
@ -150,6 +153,15 @@ namespace HexExplorer
|
||||||
|
|
||||||
#region 常规
|
#region 常规
|
||||||
|
|
||||||
|
public Color BookMarkDefaultColor
|
||||||
|
{
|
||||||
|
get => bookMarkDefaultColor; set
|
||||||
|
{
|
||||||
|
bookMarkDefaultColor = value;
|
||||||
|
NotifyPropertyChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public Font ProgramFont
|
public Font ProgramFont
|
||||||
{
|
{
|
||||||
get => programFont;
|
get => programFont;
|
||||||
|
|
|
@ -22,5 +22,14 @@ namespace HexExplorer.Properties {
|
||||||
return defaultInstance;
|
return defaultInstance;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[global::System.Configuration.DefaultSettingValueAttribute("Segoe UI Emoji, 7pt")]
|
||||||
|
public global::System.Drawing.Font EmojiFont {
|
||||||
|
get {
|
||||||
|
return ((global::System.Drawing.Font)(this["EmojiFont"]));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
<?xml version='1.0' encoding='utf-8'?>
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="HexExplorer.Properties" GeneratedClassName="Settings">
|
||||||
<Profiles />
|
<Profiles />
|
||||||
<Settings />
|
<Settings>
|
||||||
|
<Setting Name="EmojiFont" Type="System.Drawing.Font" Scope="Application">
|
||||||
|
<Value Profile="(Default)">Segoe UI Emoji, 7pt</Value>
|
||||||
|
</Setting>
|
||||||
|
</Settings>
|
||||||
</SettingsFile>
|
</SettingsFile>
|
Loading…
Reference in New Issue