Skip to content

Commit

Permalink
Release 4.0.4 version
Browse files Browse the repository at this point in the history
  • Loading branch information
adonais committed Aug 27, 2023
1 parent 504af29 commit 19ebf48
Show file tree
Hide file tree
Showing 234 changed files with 1,237 additions and 551 deletions.
6 changes: 5 additions & 1 deletion conf/conf.d/eu_accel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ function eu_accel.loadaccel()
" {bit.bor(FVIRTKEY,FCONTROL), string.byte(\"G\"), IDM_SEARCH_GOTOLINE},\n",
" {bit.bor(FVIRTKEY,FCONTROL), string.byte(\"B\"), IDM_SEARCH_MATCHING_BRACE},\n",
" {bit.bor(FVIRTKEY,FCONTROL,FALT), string.byte(\"B\"), IDM_SEARCH_MATCHING_BRACE_SELECT},\n",
" {bit.bor(FVIRTKEY,FALT), VK_UP, IDM_SEARCH_NAVIGATE_PREV_HISTORY},\n",
" {bit.bor(FVIRTKEY,FALT), VK_DOWN, IDM_SEARCH_NAVIGATE_NEXT_HISTORY},\n",
" {bit.bor(FVIRTKEY,FALT), string.byte(\"0\"), IDM_SEARCH_NAVIGATE_CLEAR_HISTORY},\n",
" {bit.bor(FVIRTKEY,FALT), VK_NUMPAD0, IDM_SEARCH_NAVIGATE_CLEAR_HISTORY},\n",
" {bit.bor(FVIRTKEY), VK_F9, IDM_SEARCH_TOGGLE_BOOKMARK},\n",
" {bit.bor(FVIRTKEY,FCONTROL), VK_F9, IDM_SEARCH_REMOVE_ALL_BOOKMARKS},\n",
" {bit.bor(FVIRTKEY,FCONTROL), VK_F2, IDM_SEARCH_GOTO_PREV_BOOKMARK},\n",
Expand Down Expand Up @@ -202,7 +206,7 @@ function eu_accel.loadaccel()
end
local m_len = tonumber(#my_code)
if (m_len ~= nil) then
if (m_len < 171) then
if (m_len < 174) then
eu_core.euapi.eu_reset_accs_mask()
end
local m_accel = eu_core.ffi.new("ACCEL[?]", m_len, {})
Expand Down
5 changes: 5 additions & 0 deletions conf/conf.d/eu_conf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ function eu_conf.loadconf()
"window_statusbar_visiable = true\n" ..
"line_number_visiable = true\n" ..
"last_search_flags = 0x000044\n" ..
"history_mask = 44711\n" ..
"white_space_visiable = false\n" ..
"white_space_size = 2\n" ..
"newline_visiable = false\n" ..
Expand Down Expand Up @@ -183,6 +184,9 @@ function eu_conf.loadconf()
if (process_customized == nil) then
process_customized = {}
end
if (history_mask == nil) then
history_mask = 44711
end
local m_config = eu_core.ffi.new("struct eu_config", {
newfile_eols,
newfile_encoding,
Expand All @@ -194,6 +198,7 @@ function eu_conf.loadconf()
window_statusbar_visiable,
line_number_visiable,
last_search_flags,
history_mask,
white_space_visiable,
white_space_size,
newline_visiable,
Expand Down
5 changes: 5 additions & 0 deletions conf/conf.d/eu_core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ struct eu_config
bool m_linenumber;

uint32_t last_flags;
uint32_t history_mask;
bool ws_visiable;
int ws_size;
bool newline_visialbe;
Expand Down Expand Up @@ -201,12 +202,16 @@ struct styletheme
struct styleclass cdata;
struct styleclass phpsection;
struct styleclass aspsection;
struct styleclass xmlsection;

struct styleclass activetab;
struct styleclass caret;
struct styleclass symbolic;
struct styleclass hyperlink;
struct styleclass results;
struct styleclass bracesection;
struct styleclass nchistory;
struct styleclass dochistory;
};

struct eu_theme
Expand Down
3 changes: 3 additions & 0 deletions conf/conf.d/eu_sci.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3406,6 +3406,9 @@ IDM_SEARCH_GOTO_NEXT_BOOKMARK_INALL = 30302
IDM_SEARCH_NAVIGATE_PREV_THIS = 30303
IDM_SEARCH_NAVIGATE_PREV_INALL = 30304
IDM_SEARCH_SELECT_MATCHING_ALL = 44700
IDM_SEARCH_NAVIGATE_NEXT_HISTORY = 44721
IDM_SEARCH_NAVIGATE_PREV_HISTORY = 44722
IDM_SEARCH_NAVIGATE_CLEAR_HISTORY = 44723
-- View
IDM_VIEW_FILETREE = 30020
IDM_VIEW_SYMTREE = 30021
Expand Down
104 changes: 98 additions & 6 deletions conf/conf.d/eu_theme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require("eu_core")
function eu_theme.get_default(name)
local theme = nil
if (name == "black") then
theme = -- 暗黑主题配置文件
theme = -- 默认主题配置文件
"linenumber_font = \"Consolas\"\n" ..
"linenumber_fontsize = 9\n" ..
"linenumber_color = 0x00A0A0A0\n" ..
Expand Down Expand Up @@ -126,6 +126,11 @@ function eu_theme.get_default(name)
"aspsection_color = 0x00808080\n" ..
"aspsection_bgcolor = 0x00000000\n" ..
"aspsection_bold = 0\n" ..
"xmlsection_font = \"Consolas\"\n" ..
"xmlsection_fontsize = 11\n" ..
"xmlsection_color = 0x00C972C9\n" ..
"xmlsection_bgcolor = 0x00000000\n" ..
"xmlsection_bold = 1\n" ..
"activetab_font = \"DEFAULT_GUI_FONT\"\n" ..
"activetab_fontsize = 11\n" ..
"activetab_color = 0\n" ..
Expand All @@ -150,7 +155,22 @@ function eu_theme.get_default(name)
"results_fontsize = 11\n" ..
"results_color = 0x00FF8000\n" ..
"results_bgcolor = 0x00C080FF\n" ..
"results_bold = 0"
"results_bold = 0\n" ..
"bracesection_font = \"Consolas\"\n" ..
"bracesection_fontsize = 11\n" ..
"bracesection_color = 0x000000FF\n" ..
"bracesection_bgcolor = 0x001E1E1E\n" ..
"bracesection_bold = 1\n" ..
"nchistory_font = \"Consolas\"\n" ..
"nchistory_fontsize = 11\n" ..
"nchistory_color = 0x000080FF\n" ..
"nchistory_bgcolor = 0x0000A000\n" ..
"nchistory_bold = 0\n" ..
"dochistory_font = \"Consolas\"\n" ..
"dochistory_fontsize = 11\n" ..
"dochistory_color = 0x000080FF\n" ..
"dochistory_bgcolor = 0x0000A000\n" ..
"dochistory_bold = 0"
elseif (name == "white") then
theme = -- 经典白主题配置文件
"linenumber_font = \"Consolas\"\n" ..
Expand Down Expand Up @@ -273,6 +293,11 @@ function eu_theme.get_default(name)
"aspsection_color = 0x00C0C0C0\n" ..
"aspsection_bgcolor = 0x00000000\n" ..
"aspsection_bold = 0\n" ..
"xmlsection_font = \"Consolas\"\n" ..
"xmlsection_fontsize = 11\n" ..
"xmlsection_color = 0x00F651F6\n" ..
"xmlsection_bgcolor = 0x00000000\n" ..
"xmlsection_bold = 1\n" ..
"activetab_font = \"DEFAULT_GUI_FONT\"\n" ..
"activetab_fontsize = 11\n" ..
"activetab_color = 0\n" ..
Expand All @@ -297,9 +322,24 @@ function eu_theme.get_default(name)
"results_fontsize = 11\n" ..
"results_color = 0x00FF8000\n" ..
"results_bgcolor = 0x00588609\n" ..
"results_bold = 0"
"results_bold = 0\n" ..
"bracesection_font = \"Consolas\"\n" ..
"bracesection_fontsize = 11\n" ..
"bracesection_color = 0x000000FF\n" ..
"bracesection_bgcolor = 0x00FFFFFF\n" ..
"bracesection_bold = 1\n" ..
"nchistory_font = \"Consolas\"\n" ..
"nchistory_fontsize = 11\n" ..
"nchistory_color = 0x000080FF\n" ..
"nchistory_bgcolor = 0x0000A000\n" ..
"nchistory_bold = 0\n" ..
"dochistory_font = \"Consolas\"\n" ..
"dochistory_fontsize = 11\n" ..
"dochistory_color = 0x000080FF\n" ..
"dochistory_bgcolor = 0x0000A000\n" ..
"dochistory_bold = 0"
else
theme = -- 默认主题配置文件
theme = -- dark主题配置文件
"linenumber_font = \"Consolas\"\n" ..
"linenumber_fontsize = 9\n" ..
"linenumber_color = 0x00FFFFFF\n" ..
Expand Down Expand Up @@ -422,6 +462,11 @@ function eu_theme.get_default(name)
"aspsection_color = 0x00808080\n" ..
"aspsection_bgcolor = 0x00000000\n" ..
"aspsection_bold = 0\n" ..
"xmlsection_font = \"Consolas\"\n" ..
"xmlsection_fontsize = 11\n" ..
"xmlsection_color = 0x00C972C9\n" ..
"xmlsection_bgcolor = 0x00000000\n" ..
"xmlsection_bold = 1\n" ..
"activetab_font = \"DEFAULT_GUI_FONT\"\n" ..
"activetab_fontsize = 11\n" ..
"activetab_color = 0\n" ..
Expand All @@ -446,7 +491,22 @@ function eu_theme.get_default(name)
"results_fontsize = 11\n" ..
"results_color = 0x000000B050\n" ..
"results_bgcolor = 0x00A8CE93\n" ..
"results_bold = 0"
"results_bold = 0\n" ..
"bracesection_font = \"Consolas\"\n" ..
"bracesection_fontsize = 11\n" ..
"bracesection_color = 0x000000FF\n" ..
"bracesection_bgcolor = 0x00444444\n" ..
"bracesection_bold = 1\n" ..
"nchistory_font = \"Consolas\"\n" ..
"nchistory_fontsize = 11\n" ..
"nchistory_color = 0x000080FF\n" ..
"nchistory_bgcolor = 0x0000A000\n" ..
"nchistory_bold = 0\n" ..
"dochistory_font = \"Consolas\"\n" ..
"dochistory_fontsize = 11\n" ..
"dochistory_color = 0x000080FF\n" ..
"dochistory_bgcolor = 0x0000A000\n" ..
"dochistory_bold = 0"
end
return theme
end
Expand Down Expand Up @@ -493,13 +553,41 @@ function eu_theme.load_default(name)
dofile(file)
tname = name
end
if (xmlsection_font == nil) then
xmlsection_font = "Consola"
xmlsection_fontsize = 11
xmlsection_color = 0xC972C9
xmlsection_bgcolor = 0x00000000
xmlsection_bold = 1
end
if (results_font == nil) then
results_font = "Consola"
results_fontsize = 11
results_color = keywords_color
results_bgcolor = number_color
results_bold = 0
end
if (bracesection_font == nil) then
bracesection_font = "Consola"
bracesection_fontsize = 11
bracesection_color = 0x000000FF
bracesection_bgcolor = text_bgcolor
bracesection_bold = 1
end
if (nchistory_font == nil) then
nchistory_font = "Consola"
nchistory_fontsize = 11
nchistory_color = 0x0080FF
nchistory_bgcolor = 0x00A000
nchistory_bold = 0
end
if (dochistory_font == nil) then
dochistory_font = "Consola"
dochistory_fontsize = 11
dochistory_color = 0x0080FF
dochistory_bgcolor = 0x00A000
dochistory_bold = 0
end
local m_file = eu_core.ffi.new('char[260]')
eu_core.ffi.C._fullpath(m_file, file, 260)
local m_theme = eu_core.ffi.new("struct eu_theme", {m_file, tname,
Expand Down Expand Up @@ -528,11 +616,15 @@ function eu_theme.load_default(name)
{cdata_font,cdata_fontsize,cdata_color,cdata_bgcolor,cdata_bold},
{phpsection_font,phpsection_fontsize,phpsection_color,phpsection_bgcolor,phpsection_bold},
{aspsection_font,aspsection_fontsize,aspsection_color,aspsection_bgcolor,aspsection_bold},
{xmlsection_font,xmlsection_fontsize,xmlsection_color,xmlsection_bgcolor,xmlsection_bold},
{activetab_font,activetab_fontsize,activetab_color,activetab_bgcolor,activetab_bold},
{caret_font,caret_fontsize,caret_color,caret_bgcolor,caret_bold},
{symbolic_font,symbolic_fontsize,symbolic_color,symbolic_bgcolor,symbolic_bold},
{hyperlink_font,hyperlink_fontsize,hyperlink_color,hyperlink_bgcolor,hyperlink_bold},
{results_font,results_fontsize,results_color,results_bgcolor,results_bold}
{results_font,results_fontsize,results_color,results_bgcolor,results_bold},
{bracesection_font,bracesection_fontsize,bracesection_color,bracesection_bgcolor,bracesection_bold},
{nchistory_font,nchistory_fontsize,nchistory_color,nchistory_bgcolor,nchistory_bold},
{dochistory_font,dochistory_fontsize,dochistory_color,dochistory_bgcolor,dochistory_bold}
}
})
return eu_core.euapi.eu_theme_ptr(m_theme, true)
Expand Down
Loading

0 comments on commit 19ebf48

Please sign in to comment.