Skip to content

Commit

Permalink
更新到 4.0.0-beta.13
Browse files Browse the repository at this point in the history
  • Loading branch information
hbl917070 committed Apr 1, 2022
1 parent 29ce7ae commit 6183a66
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 58 deletions.
2 changes: 1 addition & 1 deletion Tiefsee/Tiefsee/bin/output/www/MainWindow.html
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@
<div class="main-welcomeview" id="main-welcomeview">
<div>
<img class="welcomeview-logo" src="./img/logo.svg">
<div class="welcomeview-txt">Tiefsee 4.0.0-beta.12</div>
<div class="welcomeview-txt">Tiefsee 4.0.0-beta.13</div>
</div>
</div>
<textarea id="main-txtview" class="main-txtview base-scrollbar"></textarea>
Expand Down
2 changes: 1 addition & 1 deletion Tiefsee/Tiefsee/bin/output/www/SettingWindow.html
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@
<div class="box">
<div class="box-title">
<span>版本:</span>
<span> Tiefsee 4.0.0-beta.12</span>
<span> Tiefsee 4.0.0-beta.13</span>
</div>
<div class="box-title">
<span>作者:</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
<div class="main-welcomeview" id="main-welcomeview">
<div>
<img class="welcomeview-logo" src="./img/logo.svg">
<div class="welcomeview-txt">Tiefsee 4.0.0-beta.12</div>
<div class="welcomeview-txt">Tiefsee 4.0.0-beta.13</div>
</div>
</div>
<textarea id="main-txtview" class="main-txtview base-scrollbar"></textarea>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@
<div class="box">
<div class="box-title">
<span>版本:</span>
<span> Tiefsee 4.0.0-beta.12</span>
<span> Tiefsee 4.0.0-beta.13</span>
</div>
<div class="box-title">
<span>作者:</span>
Expand Down
50 changes: 25 additions & 25 deletions Tiefsee/Tiefsee/bin/output/www/js/MainWindow/InitMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,38 +368,38 @@ class Menu_layout {
setCheckState(dom_mainDirList, isMainDirList);
setCheckState(dom_mainFileList, isMainFileList);
}
function setTopmost(bool) {
if (bool === void 0) {
bool = !isTopmost;
function setTopmost(val) {
if (val === void 0) {
val = !isTopmost;
}
isTopmost = bool;
baseWindow.topMost = bool;
setCheckState(dom_topmost, bool);
WV_Window.TopMost = bool;
isTopmost = val;
baseWindow.topMost = val;
setCheckState(dom_topmost, val);
WV_Window.TopMost = val;
}
function setMainTools(bool) {
if (bool === void 0) {
bool = !isMainTools;
function setMainTools(val) {
if (val === void 0) {
val = !isMainTools;
}
isMainTools = bool;
setCheckState(dom_mainTools, bool);
M.mainTools.setEnabled(bool);
isMainTools = val;
setCheckState(dom_mainTools, val);
M.mainTools.setEnabled(val);
}
function setMainDirList(bool) {
if (bool === void 0) {
bool = !isMainDirList;
function setMainDirList(val) {
if (val === void 0) {
val = !isMainDirList;
}
isMainDirList = bool;
setCheckState(dom_mainDirList, bool);
M.mainDirList.setEnabled(bool);
isMainDirList = val;
setCheckState(dom_mainDirList, val);
M.mainDirList.setEnabled(val);
}
function setMainFileList(bool) {
if (bool === void 0) {
bool = !isMainFileList;
function setMainFileList(val) {
if (val === void 0) {
val = !isMainFileList;
}
isMainFileList = bool;
setCheckState(dom_mainFileList, bool);
M.mainFileList.setEnabled(bool);
isMainFileList = val;
setCheckState(dom_mainFileList, val);
M.mainFileList.setEnabled(val);
}
function setCheckState(dom2, bool) {
if (bool) {
Expand Down
78 changes: 49 additions & 29 deletions Tiefsee/Tiefsee/bin/output/www/ts/MainWindow/InitMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,6 @@ class InitMenu {







/**
* 初始化 menu-圖片的右鍵選單
*/
Expand Down Expand Up @@ -410,7 +406,7 @@ class InitMenu {

}


/** 版面的下拉選單 */
class Menu_layout {

public show;
Expand Down Expand Up @@ -443,8 +439,12 @@ class Menu_layout {
setMainFileList();
});

//------------------------


/**
* 開啟選單
* @param btn
*/
function show(btn?: HTMLElement) {
updateData();
if (btn === undefined) {
Expand All @@ -454,8 +454,9 @@ class Menu_layout {
}
}


/**
* 判斷哪些選項要被勾選
* 判斷哪些選項要被勾選,於開啟選單時呼叫
*/
function updateData() {
isMainTools = M.config.settings.layout.mainToolsEnabled;
Expand All @@ -466,41 +467,60 @@ class Menu_layout {
setCheckState(dom_mainFileList, isMainFileList);
}

function setTopmost(bool?: boolean) {
if (bool === undefined) { bool = !isTopmost }

isTopmost = bool;
baseWindow.topMost = bool;
setCheckState(dom_topmost, bool);
WV_Window.TopMost = bool;
/**
* 顯示或隱藏 視窗固定最上層
* @param val
*/
function setTopmost(val?: boolean) {
if (val === undefined) { val = !isTopmost }
isTopmost = val;
baseWindow.topMost = val;
setCheckState(dom_topmost, val);
WV_Window.TopMost = val;
}

function setMainTools(bool?: boolean) {
if (bool === undefined) { bool = !isMainTools }

isMainTools = bool;
setCheckState(dom_mainTools, bool);
M.mainTools.setEnabled(bool);
/**
* 顯示或隱藏 工具列
* @param val
*/
function setMainTools(val?: boolean) {
if (val === undefined) { val = !isMainTools }
isMainTools = val;
setCheckState(dom_mainTools, val);
M.mainTools.setEnabled(val);
}

function setMainDirList(bool?: boolean) {
if (bool === undefined) { bool = !isMainDirList }

isMainDirList = bool;
setCheckState(dom_mainDirList, bool);
M.mainDirList.setEnabled(bool);
/**
* 顯示或隱藏 資料夾預覽列表
*/
function setMainDirList(val?: boolean) {
if (val === undefined) { val = !isMainDirList }
isMainDirList = val;
setCheckState(dom_mainDirList, val);
M.mainDirList.setEnabled(val);
}


function setMainFileList(bool?: boolean) {
if (bool === undefined) { bool = !isMainFileList }

isMainFileList = bool;
setCheckState(dom_mainFileList, bool);
M.mainFileList.setEnabled(bool);
/**
* 顯示或隱藏檔案預覽列表
* @param val
*/
function setMainFileList(val?: boolean) {
if (val === undefined) { val = !isMainFileList }
isMainFileList = val;
setCheckState(dom_mainFileList, val);
M.mainFileList.setEnabled(val);
}


/**
* 設定是否勾選
* @param dom
* @param bool
*/
function setCheckState(dom: HTMLElement, bool: boolean) {
if (bool) {
dom.getElementsByClassName("menu-hor-icon")[0].innerHTML = SvgList["yes.svg"];
Expand Down

0 comments on commit 6183a66

Please sign in to comment.