diff --git a/ShowCase/build/debug/main.js b/ShowCase/build/debug/main.js index 7d3c200..3f9f803 100644 --- a/ShowCase/build/debug/main.js +++ b/ShowCase/build/debug/main.js @@ -349,6 +349,10 @@ { text: "File dialog", id: "file" + }, + { + text: "Text dialog", + id: "text" } ]); return btrun.set("onbtclick", (e) => { @@ -419,6 +423,13 @@ }).then((f, name) => { return this.notify(f, name); }); + case "text": + return this.openDialog("TextDialog", { + title: "Text dialog review", + value: "txt data" + }).then((d) => { + return this.notify(d); + }); } }); } diff --git a/ShowCase/build/debug/package.json b/ShowCase/build/debug/package.json index 232d2c8..cf86e25 100644 --- a/ShowCase/build/debug/package.json +++ b/ShowCase/build/debug/package.json @@ -7,7 +7,7 @@ "email": "xsang.le@gmail.com", "licences": "GPLv3" }, - "version":"0.0.1-a", + "version":"0.0.2-a", "category":"Other", "mimes":["none"], "iconclass": "fa fa-delicious", diff --git a/ShowCase/build/release/ShowCase.zip b/ShowCase/build/release/ShowCase.zip index 86dff95..e76ded7 100644 Binary files a/ShowCase/build/release/ShowCase.zip and b/ShowCase/build/release/ShowCase.zip differ diff --git a/ShowCase/coffees/main.coffee b/ShowCase/coffees/main.coffee index 261c5ea..0d80357 100644 --- a/ShowCase/coffees/main.coffee +++ b/ShowCase/coffees/main.coffee @@ -153,7 +153,8 @@ class ShowCase extends this.OS.GUI.BaseApplication { text: "YesNo dialog", id: "yesno" }, { text: "Selection dialog", id: "selection" }, { text: "About dialog", id: "about" }, - { text: "File dialog", id: "file" } + { text: "File dialog", id: "file" }, + { text: "Text dialog", id: "text" } ] btrun.set "onbtclick", (e) => @@ -216,6 +217,14 @@ class ShowCase extends this.OS.GUI.BaseApplication }) .then (f, name) => @notify f, name + + when "text" + @openDialog("TextDialog", { + title: "Text dialog review", + value: "txt data" + }) + .then (d) => + @notify d else return diff --git a/ShowCase/package.json b/ShowCase/package.json index 232d2c8..cf86e25 100644 --- a/ShowCase/package.json +++ b/ShowCase/package.json @@ -7,7 +7,7 @@ "email": "xsang.le@gmail.com", "licences": "GPLv3" }, - "version":"0.0.1-a", + "version":"0.0.2-a", "category":"Other", "mimes":["none"], "iconclass": "fa fa-delicious", diff --git a/packages.json b/packages.json index 7084f9a..33232c8 100644 --- a/packages.json +++ b/packages.json @@ -41,7 +41,7 @@ "description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/ShowCase/README.md", "category": "Other", "author": "Xuan Sang LE", - "version": "0.0.1-a", + "version": "0.0.2-a", "download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/ShowCase/build/release/ShowCase.zip" }, { @@ -50,7 +50,7 @@ "description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/wTerm/README.md", "category": "System", "author": "Xuan Sang LE", - "version": "0.0.1-a", + "version": "0.0.2-a", "download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/wTerm/build/release/wTerm.zip" } diff --git a/wTerm/build/debug/main.css b/wTerm/build/debug/main.css index e7c59c2..5855f5b 100644 --- a/wTerm/build/debug/main.css +++ b/wTerm/build/debug/main.css @@ -171,6 +171,3 @@ text-decoration: underline; } -afx-app-window[data-id="ClipboardDialog"] textarea { - resize: none -} diff --git a/wTerm/build/debug/main.js b/wTerm/build/debug/main.js index cb0003d..b3abec8 100644 --- a/wTerm/build/debug/main.js +++ b/wTerm/build/debug/main.js @@ -1,6 +1,6 @@ (function() { void 0; - var ClipboardDialog, wTerm; + var wTerm; // Copyright 2017-2018 Xuan Sang LE @@ -18,50 +18,7 @@ // General Public License for more details. // You should have received a copy of the GNU General Public License - //along with this program. If not, see https://www.gnu.org/licenses/. - ClipboardDialog = class ClipboardDialog extends this.OS.GUI.BasicDialog { - constructor() { - super("ClipboardDialog", ClipboardDialog.scheme); - } - - init() { - this.find("btnOk").set("onbtclick", (e) => { - var value; - value = $(this.find("txtInput")).val(); - if (!(value && value !== "")) { - return; - } - if (this.handle) { - this.handle(value); - } - return this.quit(); - }); - return this.find("btnCancel").set("onbtclick", (e) => { - return this.quit(); - }); - } - - }; - - ClipboardDialog.scheme = ` - - -
- -
-