- added popup and configuration panel api
- remove all href attributes to prevent dragging showing urls
This commit is contained in:
parent
e5b7f63f08
commit
2d673310dd
7 changed files with 190 additions and 56 deletions
|
|
@ -2,12 +2,12 @@
|
|||
"presetPath": "/home/bordun/oscwork/oschtmlgui/presets/",
|
||||
"sessionPath": "/home/bordun/oscwork/oschtmlgui/sessions/",
|
||||
"recentSessions": [
|
||||
"/home/bordun/oscwork/oschtmlgui/sessions/demo.js",
|
||||
"/home/bordun/oscwork/oschtmlgui/sessions/knob.js",
|
||||
"/home/bordun/oscwork/oschtmlgui/sessions/xy.js",
|
||||
"/home/bordun/oscwork/oschtmlgui/sessions/sebkhachott.js",
|
||||
"/home/bordun/oscwork/oschtmlgui/sessions/demo-full.js",
|
||||
"/home/bordun/oscwork/oschtmlgui/sessions/fadertest.js",
|
||||
"/home/bordun/oscwork/oschtmlgui/sessions/monitorsjeannot.js"
|
||||
]
|
||||
"/home/bordun/oscwork/oschtmlgui/sessions/demo.js",
|
||||
"/home/bordun/oscwork/oschtmlgui/sessions/xy.js",
|
||||
"/home/bordun/oscwork/oschtmlgui/sessions/fadertest.js"
|
||||
],
|
||||
"oscInPort": "2222",
|
||||
"syncTargets": ""
|
||||
}
|
||||
19
main/main.js
19
main/main.js
|
|
@ -27,8 +27,8 @@ var defaultConfig = {
|
|||
oscInPort:5555
|
||||
}
|
||||
var editableConfig = {
|
||||
syncTargets: "List of target host (ip:port pairs), separeted by spaces. Every OSC message sent by the app will be sent to these hosts too.",
|
||||
oscInPort: "Port on which the app listens to synchronise with other apps."
|
||||
syncTargets: "List of target hosts (ip:port pairs), separeted by spaces. Every OSC message sent by the app will be sent to these hosts too.",
|
||||
oscInPort: "Port on which the app listens to synchronise with other apps. You'll need to restart the app for this change to take effect."
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -45,7 +45,18 @@ writeConfig = function(newconfig) {
|
|||
}
|
||||
|
||||
readConfig = function(key) {
|
||||
return config[key] || defaultConfig[key]
|
||||
if (key!=undefined) {
|
||||
return config[key] || defaultConfig[key]
|
||||
} else {
|
||||
var ret = {}
|
||||
for (i in editableConfig) {
|
||||
ret[i] = {
|
||||
value:readConfig(i),
|
||||
info:editableConfig[i]
|
||||
}
|
||||
}
|
||||
return ret
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -97,8 +108,6 @@ app.on('ready', function() {
|
|||
var Menu = require('menu');
|
||||
var MenuItem = require('menu-item');
|
||||
|
||||
var menu = new Menu();
|
||||
|
||||
var template = [
|
||||
{
|
||||
label: 'View',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue