Skip to content

Commit

Permalink
24.2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
tablacus committed Feb 9, 2024
1 parent f5f89da commit 29e1a6a
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 60 deletions.
Binary file added docs/iconoverlay/iconoverlay_112.zip
Binary file not shown.
8 changes: 4 additions & 4 deletions docs/index.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<TablacusExplorer><Item Id="openinstead"><General><Version>1.14</Version><MinVersion>2023.9.13</MinVersion><pubDate>Thu, 08 Feb 2024 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Open instead</Name><Description>Open instead of Explorer</Description></en><ja><Name>エクスプローラの代わりに開く</Name><Description>エクスプローラの代わりにTablacus Explorerで開きます。</Description></ja><zh><Name>接替檔案總管</Name></zh></Item>
<TablacusExplorer><Item Id="iconoverlay"><General><Version>1.12</Version><MinVersion>2023.9.13</MinVersion><pubDate>Fri, 09 Feb 2024 00:00:00 GMT</pubDate><DllVersion>1.1.3.0</DllVersion><Creator>Gaku</Creator></General><en><Name>Icon overlay</Name><Description>Icon overlay unlimited</Description></en><ja><Name>アイコンオーバーレイ</Name><Description>アイコンオーバーレイを無制限に</Description></ja><zh><Name>解除疊置圖示上限</Name></zh></Item>
<Item Id="sidetreeview"><General><Version>1.30</Version><MinVersion>2023.9.13</MinVersion><pubDate>Fri, 09 Feb 2024 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Side tree view</Name><Description>Side tree view</Description></en><ja><Name>サイドツリー</Name></ja><zh><Name>共用式樹狀目錄</Name></zh></Item>
<Item Id="treeview"><General><Version>1.45</Version><MinVersion>2023.9.13</MinVersion><pubDate>Fri, 09 Feb 2024 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Tree view</Name><Description>Tree view</Description></en><ja><Name>ツリー</Name></ja><zh><Name>樹狀目錄</Name></zh></Item>
<Item Id="openinstead"><General><Version>1.14</Version><MinVersion>2023.9.13</MinVersion><pubDate>Thu, 08 Feb 2024 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Open instead</Name><Description>Open instead of Explorer</Description></en><ja><Name>エクスプローラの代わりに開く</Name><Description>エクスプローラの代わりにTablacus Explorerで開きます。</Description></ja><zh><Name>接替檔案總管</Name></zh></Item>
<Item Id="mpv"><General><Version>1.01</Version><MinVersion>2023.9.13</MinVersion><pubDate>Mon, 1 Jan 2024 00:00:00 GMT</pubDate><Creator>ccfs</Creator></General><en><Name>mpv</Name><Description>Play selected image and media using mpv</Description></en></Item>
<Item Id="colorlabels"><General><Version>1.12</Version><MinVersion>2023.7.12</MinVersion><pubDate>Mon, 06 Nov 2023 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Color labels</Name><Description>Color labels</Description></en><ja><Name>カラーラベル</Name></ja><zh><Name>以背景色標示</Name></zh></Item>
<Item Id="sidetreeview"><General><Version>1.29</Version><MinVersion>2023.9.13</MinVersion><pubDate>Wed, 18 Oct 2023 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Side tree view</Name><Description>Side tree view</Description></en><ja><Name>サイドツリー</Name></ja><zh><Name>共用式樹狀目錄</Name></zh></Item>
<Item Id="treeview"><General><Version>1.44</Version><MinVersion>2023.9.13</MinVersion><pubDate>Wed, 18 Oct 2023 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Tree view</Name><Description>Tree view</Description></en><ja><Name>ツリー</Name></ja><zh><Name>樹狀目錄</Name></zh></Item>
<Item Id="everything"><General><Version>1.46</Version><MinVersion>2023.7.12</MinVersion><pubDate>Tue, 12 Sep 2023 00:00:00 GMT</pubDate><Creator>Gaku</Creator><Creator>Gaku</Creator></General><en><Name>Everything</Name><Description>Search using Everything Search Engine.</Description></en><ja><Name>Everything</Name><Description>Everything Search Engineで検索を行います。</Description></ja></Item>
<Item Id="addressbar"><General><Version>1.71</Version><MinVersion>2022.1.12</MinVersion><pubDate>Mon, 22 May 2023 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Address bar</Name><Description>Breadcrumbs and XP style is available.</Description></en><ja><Name>アドレスバー</Name><Description>パンくずリスト、XPスタイルが選べます。</Description></ja><zh><Name>位址列</Name></zh></Item>
<Item Id="dragdropmenu"><General><Version>1.04</Version><MinVersion>2023.1.31</MinVersion><pubDate>Wed, 08 Feb 2023 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Right button drag-and-drop menu</Name><Description>Right button drag-and-drop menu</Description></en><ja><Name>右ボタンドラッグ&ドロップメニュー</Name></ja></Item>
Expand Down Expand Up @@ -59,7 +60,6 @@
<Item Id="hidetitlebar"><General><Version>1.10</Version><MinVersion>2022.2.5</MinVersion><pubDate>Mon, 07 Feb 2022 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Hide Title bar</Name><Description>Hide Title bar</Description></en><ja><Name>タイトルバーを消す</Name></ja><zh><Name>隱藏標題列</Name></zh></Item>
<Item Id="previewwindow"><General><Version>1.32</Version><MinVersion>2022.2.5</MinVersion><pubDate>Mon, 07 Feb 2022 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Preview window</Name><Description>Displays the contents of selected text, image and media files in a external preview window.</Description></en><ja><Name>プレビューウインドウ</Name><Description>外部ウインドウを用いたプレビュー</Description></ja><zh><Name>預覽視窗</Name></zh></Item>
<Item Id="stripeslite"><General><Version>1.09</Version><MinVersion>2022.2.3</MinVersion><pubDate>Sat, 05 Feb 2022 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Stripes lite</Name><Description>Display alternating stripes in the background when the detail view.</Description></en><ja><Name>ストライプ ライト</Name><Description>詳細表示の際に背景を交互縞で表示します。</Description></ja><zh><Name>快速斑馬條紋</Name></zh></Item>
<Item Id="iconoverlay"><General><Version>1.11</Version><MinVersion>2022.1.25</MinVersion><pubDate>Tue, 01 Feb 2022 00:00:00 GMT</pubDate><DllVersion>1.1.3.0</DllVersion><Creator>Gaku</Creator></General><en><Name>Icon overlay</Name><Description>Icon overlay unlimited</Description></en><ja><Name>アイコンオーバーレイ</Name><Description>アイコンオーバーレイを無制限に</Description></ja><zh><Name>解除疊置圖示上限</Name></zh></Item>
<Item Id="innerfilterbar"><General><Version>1.34</Version><MinVersion>2022.1.25</MinVersion><pubDate>Sun, 30 Jan 2022 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Inner Filter bar</Name><Description>Filter bar for each pane</Description></en><ja><Name>Inner フィルターバー</Name><Description>ペイン毎のフィルターバー</Description></ja><zh><Name>窗格內篩選列</Name></zh></Item>
<Item Id="filterbar"><General><Version>1.39</Version><MinVersion>2022.1.25</MinVersion><pubDate>Sun, 30 Jan 2022 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Filter bar</Name><Description>Filter bar</Description></en><ja><Name>フィルターバー</Name></ja><zh><Name>篩選列</Name></zh></Item>
<Item Id="aboutblank"><General><Version>1.04</Version><MinVersion>2022.1.25</MinVersion><pubDate>Thu, 27 Jan 2022 00:00:00 GMT</pubDate><Creator>Gaku</Creator></General><en><Name>Blank page</Name><Description>Blank page</Description></en><ja><Name>空白ページ</Name></ja><zh><Name>起始分頁</Name></zh></Item>
Expand Down
Binary file added docs/sidetreeview/sidetreeview_130.zip
Binary file not shown.
Binary file added docs/treeview/treeview_145.zip
Binary file not shown.
6 changes: 3 additions & 3 deletions iconoverlay/config.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<TablacusExplorer>
<General>
<Version>1.11</Version>
<MinVersion>2022.1.25</MinVersion>
<pubDate>Tue, 01 Feb 2022 00:00:00 GMT</pubDate>
<Version>1.12</Version>
<MinVersion>2023.9.13</MinVersion>
<pubDate>Fri, 09 Feb 2024 00:00:00 GMT</pubDate>
<Options>Common:0:0</Options>
<DllVersion>1.1.3.0</DllVersion>
<Level>2</Level>
Expand Down
6 changes: 6 additions & 0 deletions iconoverlay/options.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<label>Base</label><br>
<input type="text" id="Base" placeholder="11" style="width: 100%"><br>
<br>
<label>View</label><br>
<label><input type="checkbox" id="!NoList">List</label><br>
<label><input type="checkbox" id="!NoTree">Tree</label><br>
2 changes: 1 addition & 1 deletion iconoverlay/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ if (window.Addon == 1) {
};
$.importScript("addons\\" + Addon_Id + "\\sync.js");
} else {
SetTabContents(0, "General", '<label>Base</label><br><input type="text" id="Base" placeholder="11" style="width: 100%">');
SetTabContents(0, "", await ReadTextFile("addons\\" + Addon_Id + "\\options.html"));
}
24 changes: 15 additions & 9 deletions iconoverlay/sync.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
const Addon_Id = "iconoverlay";
const item = GetAddonElement(Addon_Id);

Sync.IconOverlay = {
DLL: api.DllGetClassObject(BuildPath(te.Data.Installed, ["addons\\iconoverlay\\ticonoverlay", api.sizeof("HANDLE") * 8, ".dll"].join("")), "{ADB2CB70-5C00-4fa2-B121-CB60B556FFA7}"),
List: !item.getAttribute("NoList"),
Tree: !item.getAttribute("NoTree"),
Icon: [],
db: {},

Expand Down Expand Up @@ -32,7 +36,7 @@ AddEvent("AddonDisabled", function (Id) {
});

if (Sync.IconOverlay.DLL) {
Sync.IconOverlay.DLL.Init(GetAddonOption(Addon_Id, "Base") || 11, Sync.IconOverlay.Callback);
Sync.IconOverlay.DLL.Init(item.getAttribute("Base") || 11, Sync.IconOverlay.Callback);
const o = {};
for (let i = 0; ; i++) {
const hr = Sync.IconOverlay.DLL.GetOverlayInfo(i, o);
Expand All @@ -47,9 +51,9 @@ if (Sync.IconOverlay.DLL) {
if (!pid || !Sync.IconOverlay.DLL) {
return;
}
let hwnd = Ctrl.hwndList;
let hwnd = Sync.IconOverlay.List && Ctrl.hwndList;
const Id = hwnd ? Ctrl.Id : 0;
if (!hwnd) {
if (!hwnd && Sync.IconOverlay.Tree) {
hwnd = Ctrl.hwndTree;
}
if (!hwnd) {
Expand Down Expand Up @@ -89,12 +93,14 @@ if (Sync.IconOverlay.DLL) {
}
});

AddEvent("ListViewCreated", function (Ctrl) {
Sync.IconOverlay.db[Ctrl.Id] = {};
if (Sync.IconOverlay.db[0] && Sync.IconOverlay.db[0][Ctrl.FolderItem.Path] != null) {
Sync.IconOverlay.DLL.GetOverlayIconIndex(Ctrl.FolderItem.Path, api.GetAttributesOf(Ctrl.FolderItem, SFGAO_STORAGECAPMASK), 0);
}
});
if (Sync.IconOverlay.List) {
AddEvent("ListViewCreated", function (Ctrl) {
Sync.IconOverlay.db[Ctrl.Id] = {};
if (Sync.IconOverlay.db[0] && Sync.IconOverlay.db[0][Ctrl.FolderItem.Path] != null) {
Sync.IconOverlay.DLL.GetOverlayIconIndex(Ctrl.FolderItem.Path, api.GetAttributesOf(Ctrl.FolderItem, SFGAO_STORAGECAPMASK), 0);
}
});
}

AddEvent("Command", function (Ctrl, hwnd, msg, wParam, lParam) {
if (msg == WM_NULL) {
Expand Down
4 changes: 2 additions & 2 deletions sidetreeview/config.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<TablacusExplorer>
<General>
<Version>1.29</Version>
<Version>1.30</Version>
<MinVersion>2023.9.13</MinVersion>
<pubDate>Wed, 18 Oct 2023 00:00:00 GMT</pubDate>
<pubDate>Fri, 09 Feb 2024 00:00:00 GMT</pubDate>
<Options>Common:0:0</Options>
<Level>2</Level>
<Creator>Gaku</Creator>
Expand Down
21 changes: 2 additions & 19 deletions sidetreeview/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,6 @@ Sync.SideTreeView = {
}
}

AddEvent("AppMessage", function (Ctrl, hwnd, msg, wParam, lParam) {
if (msg == Common.SideTreeView.WM) {
var pidls = {};
var hLock = api.SHChangeNotification_Lock(wParam, lParam, pidls);
if (hLock) {
api.SHChangeNotification_Unlock(hLock);
if (pidls[0] && /^[A-Z]:\\|^\\\\\w/i.test(pidls[0].Path) && !IsCloud(pidls[0])) {
Common.SideTreeView.TV.Notify(pidls.lEvent, pidls[0], pidls[1], wParam, lParam);
}
}
return S_OK;
}
AddEvent("ChangeNotify", function (Ctrl, pidls, wParam, lParam) {
Common.SideTreeView.TV.Notify(pidls.lEvent, pidls[0], pidls[1], wParam, lParam);
});

AddEvent("Finalize", function () {
api.SHChangeNotifyDeregister(Common.SideTreeView.uRegisterId);
});

Common.SideTreeView.WM = TWM_APP++;
Common.SideTreeView.uRegisterId = api.SHChangeNotifyRegister(te.hwnd, SHCNRF_InterruptLevel | SHCNRF_NewDelivery, SHCNE_MKDIR | SHCNE_MEDIAINSERTED | SHCNE_DRIVEADD | SHCNE_NETSHARE | SHCNE_DRIVEREMOVED | SHCNE_MEDIAREMOVED | SHCNE_NETUNSHARE | SHCNE_RENAMEFOLDER | SHCNE_RMDIR | SHCNE_SERVERDISCONNECT | SHCNE_UPDATEDIR, Common.SideTreeView.WM, ssfDESKTOP, true);
4 changes: 2 additions & 2 deletions treeview/config.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<TablacusExplorer>
<General>
<Version>1.44</Version>
<Version>1.45</Version>
<MinVersion>2023.9.13</MinVersion>
<pubDate>Wed, 18 Oct 2023 00:00:00 GMT</pubDate>
<pubDate>Fri, 09 Feb 2024 00:00:00 GMT</pubDate>
<Options>Common:0,5,6,7,8,9:0</Options>
<Level>2</Level>
<Creator>Gaku</Creator>
Expand Down
24 changes: 4 additions & 20 deletions treeview/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,26 +155,10 @@ SetKeyExec("Tree", "$1c", function (Ctrl, pt) {
AddTypeEx("Add-ons", "Tree", Sync.TreeView.Exec);

if (WINVER >= 0x600) {
AddEvent("AppMessage", function (Ctrl, hwnd, msg, wParam, lParam) {
if (msg == Sync.TreeView.WM) {
const pidls = {};
const hLock = api.SHChangeNotification_Lock(wParam, lParam, pidls);
if (hLock) {
api.SHChangeNotification_Unlock(hLock);
if (pidls[0] && /^[A-Z]:\\|^\\\\\w/i.test(pidls[0].Path) && !IsCloud(pidls[0])) {
const cFV = te.Ctrls(CTRL_FV);
for (let i in cFV) {
cFV[i].TreeView.Notify(pidls.lEvent, pidls[0], pidls[1], wParam, lParam);
}
}
}
return S_OK;
AddEvent("ChangeNotify", function (Ctrl, pidls, wParam, lParam) {
const cFV = te.Ctrls(CTRL_FV);
for (let i in cFV) {
cFV[i].TreeView.Notify(pidls.lEvent, pidls[0], pidls[1], wParam, lParam);
}
});

AddEvent("Finalize", function () {
api.SHChangeNotifyDeregister(Sync.TreeView.uRegisterId);
});

Sync.TreeView.uRegisterId = api.SHChangeNotifyRegister(te.hwnd, SHCNRF_InterruptLevel | SHCNRF_NewDelivery, SHCNE_MKDIR | SHCNE_MEDIAINSERTED | SHCNE_DRIVEADD | SHCNE_NETSHARE | SHCNE_DRIVEREMOVED | SHCNE_MEDIAREMOVED | SHCNE_NETUNSHARE | SHCNE_RENAMEFOLDER | SHCNE_RMDIR | SHCNE_SERVERDISCONNECT | SHCNE_UPDATEDIR, Sync.TreeView.WM, ssfDESKTOP, true);
}

0 comments on commit 29e1a6a

Please sign in to comment.