Skip to content

Commit

Permalink
Merge pull request #2 from SenchaArchitect/2.2
Browse files Browse the repository at this point in the history
Update to Architect 2.2.
  • Loading branch information
lojjic committed Mar 13, 2013
2 parents 755d909 + ce11172 commit 25cac15
Show file tree
Hide file tree
Showing 95 changed files with 535 additions and 592 deletions.
Binary file modified area-chart.xda
Binary file not shown.
6 changes: 5 additions & 1 deletion area-chart/app.js
@@ -1,7 +1,7 @@
/* /*
* File: app.js * File: app.js
* *
* This file was generated by Sencha Architect version 2.1.0. * This file was generated by Sencha Architect version 2.2.0.
* http://www.sencha.com/products/architect/ * http://www.sencha.com/products/architect/
* *
* This file requires use of the Ext JS 4.0.x library, under independent license. * This file requires use of the Ext JS 4.0.x library, under independent license.
Expand All @@ -18,6 +18,10 @@ Ext.Loader.setConfig({
}); });


Ext.application({ Ext.application({

requires: [
'MyApp.view.MyWindow'
],
stores: [ stores: [
'MyStore' 'MyStore'
], ],
Expand Down
2 changes: 1 addition & 1 deletion area-chart/app/store/MyStore.js
@@ -1,7 +1,7 @@
/* /*
* File: app/store/MyStore.js * File: app/store/MyStore.js
* *
* This file was generated by Sencha Architect version 2.1.0. * This file was generated by Sencha Architect version 2.2.0.
* http://www.sencha.com/products/architect/ * http://www.sencha.com/products/architect/
* *
* This file requires use of the Ext JS 4.0.x library, under independent license. * This file requires use of the Ext JS 4.0.x library, under independent license.
Expand Down
33 changes: 16 additions & 17 deletions area-chart/app/view/MyWindow.js
@@ -1,7 +1,7 @@
/* /*
* File: app/view/MyWindow.js * File: app/view/MyWindow.js
* *
* This file was generated by Sencha Architect version 2.1.0. * This file was generated by Sencha Architect version 2.2.0.
* http://www.sencha.com/products/architect/ * http://www.sencha.com/products/architect/
* *
* This file requires use of the Ext JS 4.0.x library, under independent license. * This file requires use of the Ext JS 4.0.x library, under independent license.
Expand All @@ -20,7 +20,6 @@ Ext.define('MyApp.view.MyWindow', {
autoShow: true, autoShow: true,
height: 600, height: 600,
width: 800, width: 800,
shadow: false,
layout: { layout: {
type: 'fit' type: 'fit'
}, },
Expand Down Expand Up @@ -73,15 +72,6 @@ Ext.define('MyApp.view.MyWindow', {
axes: [ axes: [
{ {
type: 'Numeric', type: 'Numeric',
fields: [
'data1',
'data2',
'data3',
'data4',
'data5',
'data6',
'data7'
],
grid: { grid: {
odd: { odd: {
opacity: 1, opacity: 1,
Expand All @@ -92,21 +82,30 @@ Ext.define('MyApp.view.MyWindow', {
}, },
position: 'left', position: 'left',
title: 'Numeric Axis', title: 'Numeric Axis',
fields: [
'data1',
'data2',
'data3',
'data4',
'data5',
'data6',
'data7'
],
minimum: 0 minimum: 0
}, },
{ {
type: 'Category', type: 'Category',
grid: true,
title: 'Month of the Year',
fields: [ fields: [
'name' 'name'
], ],
grid: true,
label: { label: {
rotate: { rotate: {
degrees: 315 degrees: 315
} }
}, },
position: 'bottom', position: 'bottom'
title: 'Month of the Year'
} }
], ],
series: [ series: [
Expand Down Expand Up @@ -137,16 +136,16 @@ Ext.define('MyApp.view.MyWindow', {
me.callParent(arguments); me.callParent(arguments);
}, },


onButtonClick: function(button, e, options) { onButtonClick: function(button, e, eOpts) {
this.refreshData(); this.refreshData();
}, },


onButtonToggle: function(button, pressed, options) { onButtonToggle: function(button, pressed, eOpts) {
var chart = this.child('chart'); var chart = this.child('chart');
chart.animate = pressed ? {easing: 'ease', duration: 500} : false; chart.animate = pressed ? {easing: 'ease', duration: 500} : false;
}, },


onWindowAfterRender: function(abstractcomponent, options) { onWindowAfterRender: function(component, eOpts) {
this.refreshData(); this.refreshData();
}, },


Expand Down
7 changes: 2 additions & 5 deletions area-chart/app/view/Viewport.js
@@ -1,7 +1,7 @@
/* /*
* File: app/view/Viewport.js * File: app/view/Viewport.js
* *
* This file was generated by Sencha Architect version 2.1.0. * This file was generated by Sencha Architect version 2.2.0.
* http://www.sencha.com/products/architect/ * http://www.sencha.com/products/architect/
* *
* This file requires use of the Ext JS 4.0.x library, under independent license. * This file requires use of the Ext JS 4.0.x library, under independent license.
Expand All @@ -15,8 +15,5 @@


Ext.define('MyApp.view.Viewport', { Ext.define('MyApp.view.Viewport', {
extend: 'MyApp.view.MyWindow', extend: 'MyApp.view.MyWindow',
renderTo: Ext.getBody(), renderTo: Ext.getBody()
requires: [
'MyApp.view.MyWindow'
]
}); });
6 changes: 3 additions & 3 deletions area-chart/area-chart.xds
Expand Up @@ -16,10 +16,10 @@
"appName": "MyApp", "appName": "MyApp",
"cssPath": "" "cssPath": ""
}, },
"xdsVersion": "2.1.0", "xdsVersion": "2.2.0",
"xdsBuild": 670, "xdsBuild": 840,
"schemaVersion": 1, "schemaVersion": 1,
"upgradeVersion": 210000000498, "upgradeVersion": 210000000499,
"framework": "ext40", "framework": "ext40",
"topInstanceFileMap": { "topInstanceFileMap": {
"2f0a83e9-cc8c-4aeb-b6d7-6f685decfa16": { "2f0a83e9-cc8c-4aeb-b6d7-6f685decfa16": {
Expand Down
3 changes: 1 addition & 2 deletions area-chart/metadata/Application
@@ -1,5 +1,5 @@
{ {
"type": "application", "type": "Ext.app.Application",
"reference": { "reference": {
"name": "items", "name": "items",
"type": "array" "type": "array"
Expand All @@ -15,6 +15,5 @@
"autoCreateViewport": true, "autoCreateViewport": true,
"name": "MyApp" "name": "MyApp"
}, },
"id": "ExtBox1-ext-gen78246",
"designerId": "application" "designerId": "application"
} }
1 change: 0 additions & 1 deletion area-chart/metadata/resource/Library
Expand Up @@ -5,6 +5,5 @@
"type": "array" "type": "array"
}, },
"codeClass": null, "codeClass": null,
"id": "ExtBox1-ext-gen1834",
"designerId": "464e301b-dd9d-4c4b-b030-b6874e6ff0be" "designerId": "464e301b-dd9d-4c4b-b030-b6874e6ff0be"
} }
57 changes: 30 additions & 27 deletions area-chart/metadata/store/MyStore
@@ -1,119 +1,122 @@
{ {
"type": "store", "type": "Ext.data.Store",
"reference": { "reference": {
"name": "items", "name": "items",
"type": "array" "type": "array"
}, },
"codeClass": null, "codeClass": null,
"userConfig": { "userConfig": {
"storeId": "MyStore",
"designer|userClassName": "MyStore", "designer|userClassName": "MyStore",
"storeId": "MyStore" "data": "[{\"name\":\"January\",\"data1\":27,\"data2\":65,\"data3\":79,\"data4\":99,\"data5\":20,\"data6\":52,\"data7\":23,\"data8\":20,\"data9\":67},{\"name\":\"February\",\"data1\":28,\"data2\":45,\"data3\":21,\"data4\":21,\"data5\":99,\"data6\":77,\"data7\":80,\"data8\":75,\"data9\":92},{\"name\":\"March\",\"data1\":33,\"data2\":20,\"data3\":20,\"data4\":20,\"data5\":31,\"data6\":96,\"data7\":96,\"data8\":31,\"data9\":90},{\"name\":\"April\",\"data1\":97,\"data2\":20,\"data3\":46,\"data4\":60,\"data5\":20,\"data6\":87,\"data7\":88,\"data8\":90,\"data9\":89},{\"name\":\"May\",\"data1\":20,\"data2\":42,\"data3\":99,\"data4\":79,\"data5\":67,\"data6\":26,\"data7\":85,\"data8\":72,\"data9\":54},{\"name\":\"June\",\"data1\":20,\"data2\":94,\"data3\":79,\"data4\":20,\"data5\":28,\"data6\":49,\"data7\":20,\"data8\":67,\"data9\":60},{\"name\":\"July\",\"data1\":99,\"data2\":66,\"data3\":70,\"data4\":32,\"data5\":51,\"data6\":30,\"data7\":56,\"data8\":96,\"data9\":75},{\"name\":\"August\",\"data1\":42,\"data2\":59,\"data3\":23,\"data4\":54,\"data5\":29,\"data6\":68,\"data7\":20,\"data8\":67,\"data9\":48},{\"name\":\"September\",\"data1\":76,\"data2\":20,\"data3\":67,\"data4\":53,\"data5\":94,\"data6\":39,\"data7\":54,\"data8\":88,\"data9\":20},{\"name\":\"October\",\"data1\":58,\"data2\":23,\"data3\":23,\"data4\":59,\"data5\":63,\"data6\":29,\"data7\":20,\"data8\":20,\"data9\":25},{\"name\":\"November\",\"data1\":20,\"data2\":73,\"data3\":91,\"data4\":53,\"data5\":25,\"data6\":64,\"data7\":70,\"data8\":20,\"data9\":36},{\"name\":\"December\",\"data1\":20,\"data2\":57,\"data3\":20,\"data4\":28,\"data5\":50,\"data6\":20,\"data7\":59,\"data8\":51,\"data9\":47}]"
}, },
"id": "ExtBox1-ext-gen14033", "mockCfgs": [
"data"
],
"designerId": "613a5e61-a5b9-4423-8837-9f746de96e01", "designerId": "613a5e61-a5b9-4423-8837-9f746de96e01",
"cn": [ "cn": [
{ {
"type": "datafield", "type": "Ext.data.Field",
"reference": { "reference": {
"name": "fields", "name": "fields",
"type": "array" "type": "array"
}, },
"codeClass": null, "codeClass": null,
"userConfig": { "userConfig": {
"designer|userClassName": "MyField", "name": "name",
"name": "name" "designer|userClassName": "MyField"
}, },
"designerId": "7529d9c3-45f9-4d19-bd31-165078cd5b28" "designerId": "7529d9c3-45f9-4d19-bd31-165078cd5b28"
}, },
{ {
"type": "datafield", "type": "Ext.data.Field",
"reference": { "reference": {
"name": "fields", "name": "fields",
"type": "array" "type": "array"
}, },
"codeClass": null, "codeClass": null,
"userConfig": { "userConfig": {
"designer|userClassName": "MyField1",
"name": "data1", "name": "data1",
"type": null "type": null,
"designer|userClassName": "MyField1"
}, },
"designerId": "81af2745-9543-4c5e-9f12-5d2716aaff52" "designerId": "81af2745-9543-4c5e-9f12-5d2716aaff52"
}, },
{ {
"type": "datafield", "type": "Ext.data.Field",
"reference": { "reference": {
"name": "fields", "name": "fields",
"type": "array" "type": "array"
}, },
"codeClass": null, "codeClass": null,
"userConfig": { "userConfig": {
"designer|userClassName": "MyField2", "name": "data2",
"name": "data2" "designer|userClassName": "MyField2"
}, },
"designerId": "a8061a74-8ef6-463c-a588-0b5a3ee5eb61" "designerId": "a8061a74-8ef6-463c-a588-0b5a3ee5eb61"
}, },
{ {
"type": "datafield", "type": "Ext.data.Field",
"reference": { "reference": {
"name": "fields", "name": "fields",
"type": "array" "type": "array"
}, },
"codeClass": null, "codeClass": null,
"userConfig": { "userConfig": {
"designer|userClassName": "MyField3", "name": "data3",
"name": "data3" "designer|userClassName": "MyField3"
}, },
"designerId": "77d026ef-a561-41bc-843d-327a1c0344d0" "designerId": "77d026ef-a561-41bc-843d-327a1c0344d0"
}, },
{ {
"type": "datafield", "type": "Ext.data.Field",
"reference": { "reference": {
"name": "fields", "name": "fields",
"type": "array" "type": "array"
}, },
"codeClass": null, "codeClass": null,
"userConfig": { "userConfig": {
"designer|userClassName": "MyField4", "name": "data4",
"name": "data4" "designer|userClassName": "MyField4"
}, },
"designerId": "61fda478-94c8-4b24-9e85-942f6a99dd6f" "designerId": "61fda478-94c8-4b24-9e85-942f6a99dd6f"
}, },
{ {
"type": "datafield", "type": "Ext.data.Field",
"reference": { "reference": {
"name": "fields", "name": "fields",
"type": "array" "type": "array"
}, },
"codeClass": null, "codeClass": null,
"userConfig": { "userConfig": {
"designer|userClassName": "MyField5", "name": "data5",
"name": "data5" "designer|userClassName": "MyField5"
}, },
"designerId": "b1af54dc-5c3a-4dad-81c9-647f48dfaa52" "designerId": "b1af54dc-5c3a-4dad-81c9-647f48dfaa52"
}, },
{ {
"type": "datafield", "type": "Ext.data.Field",
"reference": { "reference": {
"name": "fields", "name": "fields",
"type": "array" "type": "array"
}, },
"codeClass": null, "codeClass": null,
"userConfig": { "userConfig": {
"designer|userClassName": "MyField6", "name": "data6",
"name": "data6" "designer|userClassName": "MyField6"
}, },
"designerId": "081f5d91-2173-4628-8963-859ab01639c3" "designerId": "081f5d91-2173-4628-8963-859ab01639c3"
}, },
{ {
"type": "datafield", "type": "Ext.data.Field",
"reference": { "reference": {
"name": "fields", "name": "fields",
"type": "array" "type": "array"
}, },
"codeClass": null, "codeClass": null,
"userConfig": { "userConfig": {
"designer|userClassName": "MyField7", "name": "data7",
"name": "data7" "designer|userClassName": "MyField7"
}, },
"designerId": "d94cf916-436b-46f9-b994-b579e61e78f2" "designerId": "d94cf916-436b-46f9-b994-b579e61e78f2"
} }
Expand Down

0 comments on commit 25cac15

Please sign in to comment.