update code

This commit is contained in:
Xuan Sang LE
2020-06-05 17:45:07 +02:00
parent aae08d9efe
commit 676cce26c2
61 changed files with 685 additions and 264 deletions

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@
"author": "Xuan Sang LE",
"email": "xsang.le@gmail.com"
},
"version":"0.0.4-a",
"version":"0.0.5-a",
"category":"System",
"iconclass":"fa fa-terminal",
"mimes":["none"],

Binary file not shown.

View File

@ -16,7 +16,7 @@
# You should have received a copy of the GNU General Public License
#along with this program. If not, see https://www.gnu.org/licenses/
class wTerm extends this.OS.GUI.BaseApplication
class wTerm extends this.OS.application.BaseApplication
constructor: (args) ->
super "wTerm", args
@ -35,13 +35,13 @@ class wTerm extends this.OS.GUI.BaseApplication
@on "focus", () => @term.focus()
@mterm.contextmenuHandle = (e, m) =>
m.set "items", [
m.items = [
{ text: "__(Copy)", id: "copy" },
{ text: "__(Paste)", id: "paste"}
]
m.set "onmenuselect", (e) =>
m.onmenuselect = (e) =>
return unless e
@mctxHandle e.data.item.get "data"
@mctxHandle e.data.item.data
m.show e
@resizeContent()
@openSession()
@ -100,7 +100,7 @@ class wTerm extends this.OS.GUI.BaseApplication
menu: () ->
{
text: "__(Edit)",
child: [
nodes: [
{ text: "__(Terminal URI)", dataid: "#{@name}-termuri" }
],
onchildselect: (e) => @configure()

View File

@ -6,7 +6,7 @@
"author": "Xuan Sang LE",
"email": "xsang.le@gmail.com"
},
"version":"0.0.4-a",
"version":"0.0.5-a",
"category":"System",
"iconclass":"fa fa-terminal",
"mimes":["none"],