From 3a754133dbc138390503341fd2e9beba3e43aa4b Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Fri, 27 Jan 2012 12:05:17 -0800 Subject: Merged old FileIO --- js/data/menu-data.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) mode change 100644 => 100755 js/data/menu-data.js (limited to 'js/data/menu-data.js') diff --git a/js/data/menu-data.js b/js/data/menu-data.js old mode 100644 new mode 100755 index e9e47dc0..bafc30da --- a/js/data/menu-data.js +++ b/js/data/menu-data.js @@ -15,7 +15,7 @@ exports.MenuData = Montage.create( Montage, { { "displayText" : "New Project", "hasSubMenu" : false, - "enabled": true, + "enabled": false, "action": "executeNewProject" }, { @@ -37,17 +37,18 @@ exports.MenuData = Montage.create( Montage, { { "displayText" : "Save", "hasSubMenu" : false, - "enabled": false + "enabled": true }, { "displayText" : "Save As", "hasSubMenu" : false, - "enabled": false + "enabled": true, + "action":"saveAs" }, { "displayText" : "Save All", "hasSubMenu" : false, - "enabled": false + "enabled": true }, { "displayText" : "", @@ -56,12 +57,12 @@ exports.MenuData = Montage.create( Montage, { { "displayText" : "Open Project", "hasSubMenu" : false, - "enabled": true + "enabled": false }, { "displayText" : "Open Recent", "hasSubMenu" : false, - "enabled": true + "enabled": false }, { "displayText" : "Close Project", -- cgit v1.2.3 From 729bc48212d7244539c99ca206be673eed011115 Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Mon, 6 Feb 2012 16:07:46 -0800 Subject: integrated save for the document tabs, detect codemirror history to show document dirty indicator. Signed-off-by: Ananya Sen --- js/data/menu-data.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'js/data/menu-data.js') diff --git a/js/data/menu-data.js b/js/data/menu-data.js index bafc30da..07337fa0 100755 --- a/js/data/menu-data.js +++ b/js/data/menu-data.js @@ -37,7 +37,8 @@ exports.MenuData = Montage.create( Montage, { { "displayText" : "Save", "hasSubMenu" : false, - "enabled": true + "enabled": true, + "action": "executeSave" }, { "displayText" : "Save As", @@ -48,7 +49,8 @@ exports.MenuData = Montage.create( Montage, { { "displayText" : "Save All", "hasSubMenu" : false, - "enabled": true + "enabled": true, + "action": "executeSaveAll" }, { "displayText" : "", -- cgit v1.2.3 From ad0ee69be3512325ede94738f23597086a141a3e Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Fri, 10 Feb 2012 01:55:30 -0800 Subject: file open and file new integrated again Signed-off-by: Ananya Sen --- js/data/menu-data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/data/menu-data.js') diff --git a/js/data/menu-data.js b/js/data/menu-data.js index 07337fa0..683be2dc 100755 --- a/js/data/menu-data.js +++ b/js/data/menu-data.js @@ -25,7 +25,7 @@ exports.MenuData = Montage.create( Montage, { "action": "executeNewFile" }, { - "displayText" : "Open...", + "displayText" : "Open File", "hasSubMenu" : false, "enabled": true, "action": "executeFileOpen" -- cgit v1.2.3 From cde1dd9a9156b9682fdf85ce2cd4acdd94124c37 Mon Sep 17 00:00:00 2001 From: John Mayhew Date: Fri, 10 Feb 2012 16:00:35 -0800 Subject: -Changed the capitalization of all main top level menus from all caps -Added new main-menu-controller to be the default generic handler for menu item calls that do not need to call to a specific controller -Removed the test menu item -Finalized the help submenu items and hooked them up to the main-menu-controller --- js/data/menu-data.js | 41 +++++++++++++++++------------------------ 1 file changed, 17 insertions(+), 24 deletions(-) (limited to 'js/data/menu-data.js') diff --git a/js/data/menu-data.js b/js/data/menu-data.js index e9e47dc0..34adc82d 100644 --- a/js/data/menu-data.js +++ b/js/data/menu-data.js @@ -10,7 +10,7 @@ exports.MenuData = Montage.create( Montage, { topLevelMenu: { value: [ { - "header": "FILE", + "header": "File", "entries": [ { "displayText" : "New Project", @@ -71,7 +71,7 @@ exports.MenuData = Montage.create( Montage, { ] }, { - "header": "EDIT", + "header": "Edit", "entries": [ { "displayText" : "Undo", @@ -111,7 +111,7 @@ exports.MenuData = Montage.create( Montage, { ] }, { - "header": "VIEW", + "header": "View", "entries": [ { "displayText" : "Zoom In", @@ -282,7 +282,7 @@ exports.MenuData = Montage.create( Montage, { ] }, { - "header": "WINDOW", + "header": "Window", "entries": [ { "displayText" : "Tools", @@ -356,41 +356,34 @@ exports.MenuData = Montage.create( Montage, { ] }, { - "header": "HELP", + "header": "Help", "entries": [ { - "displayText" : "About", + "displayText" : "Ninja FAQ", "hasSubMenu" : false, - "enabled": true + "enabled": true, + "action": "executeHelpFAQ" }, { - "displayText" : "FAQ", + "displayText" : "Ninja Forums", "hasSubMenu" : false, - "enabled": true + "enabled": true, + "action": "executeHelpForums" }, { - "displayText" : "Forums", + "displayText" : "Help Topics", "hasSubMenu" : false, - "enabled": true - } - ] - }, - { - "header": "TEST", - "entries": [ - { - "displayText" : "Open CSS View", - "hasSubMenu" : false, - "enabled": true + "enabled": true, + "action": "executeHelpTopics" }, { - "displayText" : "Open JS View", + "displayText" : "About Ninja...", "hasSubMenu" : false, - "enabled": true + "enabled": true, + "action": "executeHelpAbout" } ] } - ] } }); -- cgit v1.2.3 From fa51b9cf6c034313c10cf2963e720feeeabcfc4a Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Thu, 16 Feb 2012 16:10:33 -0800 Subject: Presets Panel - Move to bottom, add to menu --- js/data/menu-data.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'js/data/menu-data.js') diff --git a/js/data/menu-data.js b/js/data/menu-data.js index 3a065958..6503e776 100755 --- a/js/data/menu-data.js +++ b/js/data/menu-data.js @@ -351,6 +351,15 @@ exports.MenuData = Montage.create( Montage, { "boundProperty": "MaterialsPanel" } }, + { + "displayText" : "Presets", + "hasSubMenu" : false, + "enabled": true, + "checked": { + "value": true, + "boundProperty": "PresetsPanel" + } + }, { "displayText" : "Code", "hasSubMenu" : false, -- cgit v1.2.3 From d47c4c0f6053fb8390526f32c2ee08dee0bdec20 Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Fri, 17 Feb 2012 15:22:23 -0800 Subject: Chrome Preview --- js/data/menu-data.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'js/data/menu-data.js') diff --git a/js/data/menu-data.js b/js/data/menu-data.js index 6503e776..7c3ca5d4 100755 --- a/js/data/menu-data.js +++ b/js/data/menu-data.js @@ -139,6 +139,15 @@ exports.MenuData = Montage.create( Montage, { "boundProperty": "livePreview" } }, + { + "displayText" : "Chrome Preview", + "hasSubMenu" : false, + "enabled": true, + "checked": { + "value": false, + "boundProperty": "chromePreview" + } + }, { "displayText" : "Layout View", "hasSubMenu" : false, -- cgit v1.2.3