summaryrefslogtreecommitdiff
path: root/src/components/HMI/app/view/info
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/HMI/app/view/info')
-rw-r--r--src/components/HMI/app/view/info/alertsView.js118
-rw-r--r--src/components/HMI/app/view/info/appsView.js155
-rw-r--r--src/components/HMI/app/view/info/calendarView.js104
-rw-r--r--src/components/HMI/app/view/info/devicelistView.js142
-rw-r--r--src/components/HMI/app/view/info/nonMediaView.js264
-rw-r--r--src/components/HMI/app/view/info/servicesView.js54
-rw-r--r--src/components/HMI/app/view/info/travelLinkView.js164
7 files changed, 0 insertions, 1001 deletions
diff --git a/src/components/HMI/app/view/info/alertsView.js b/src/components/HMI/app/view/info/alertsView.js
deleted file mode 100644
index 6e4e935f58..0000000000
--- a/src/components/HMI/app/view/info/alertsView.js
+++ /dev/null
@@ -1,118 +0,0 @@
-/*
- * Copyright (c) 2013, Ford Motor Company All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met: ·
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer. · Redistributions in binary
- * form must reproduce the above copyright notice, this list of conditions and
- * the following disclaimer in the documentation and/or other materials provided
- * with the distribution. · Neither the name of the Ford Motor Company nor the
- * names of its contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-/**
- * @name SDL.InfoAlertsView
- * @desc Info Alerts module visual representation
- * @category View
- * @filesource app/view/sinfo/InfoAlertsView.js
- * @version 1.0
- */
-
-SDL.InfoAlertsView = Em.ContainerView.create( {
- /** Bind class for visual representation */
- classNameBindings: [
- 'SDL.States.info.alerts.active:active_state:inactive_state'
- ],
-
- elementId: 'info_alerts',
-
- childViews: [
- 'listCaption', 'mainlist', 'rightlist'
- ],
-
- listCaption: SDL.LabelPlusToggleButton.extend( {
- elementId: 'info_alerts_listCaption',
- labelContentBinding: 'SDL.locale.label.view_info_alerts_sort',
- tButtonValue: 0,
- tButtonRange: 2,
- tButtonLabelsBinding: 'SDL.locale.label.view_info_alerts_dateIcon',
- labelDisabled: true,
- tButtonDisabled: true
- }),
-
- mainlist: SDL.List.extend( {
-
- elementId: 'info_alerts_list',
-
- itemsOnPage: 6,
-
- items: [
- {
- type: SDL.Label,
-
- params: {
- disabled: true
- }
- }, {
- type: SDL.Button,
- params: {
- classNames: [
- 'ember-view ffw-button notpressed list-item disabled active'
- ],
- textBinding: 'SDL.locale.label.view_info_alerts_911Assist',
- templateName: 'rightIcon',
- icon: 'images/info/ico_emergcyAndEnvelope.png',
- righticon: 'images/info/ico_arrowLock.png',
- disabled: true
- }
- }
- ]
- }),
-
- rightlist: SDL.List.extend( {
-
- elementId: 'info_alerts_rightList',
-
- itemsOnPage: 5,
-
- disableScrollbar: true,
-
- items: [
- {
- type: SDL.Button,
- params: {
- className: 'button',
- textBinding: 'SDL.locale.label.view_info_alerts_view',
- disabled: true
- }
- }, {
- type: SDL.Button,
- params: {
- className: 'button',
- textBinding: 'SDL.locale.label.view_info_alerts_delete',
- disabled: true
- }
- }, {
- type: SDL.Button,
- params: {
- className: 'button',
- textBinding: 'SDL.locale.label.view_info_alerts_deleteAll',
- disabled: true
- }
- }
- ]
- })
-}); \ No newline at end of file
diff --git a/src/components/HMI/app/view/info/appsView.js b/src/components/HMI/app/view/info/appsView.js
deleted file mode 100644
index 81d1ce5104..0000000000
--- a/src/components/HMI/app/view/info/appsView.js
+++ /dev/null
@@ -1,155 +0,0 @@
-/*
- * Copyright (c) 2013, Ford Motor Company All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met: ·
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer. · Redistributions in binary
- * form must reproduce the above copyright notice, this list of conditions and
- * the following disclaimer in the documentation and/or other materials provided
- * with the distribution. · Neither the name of the Ford Motor Company nor the
- * names of its contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-/**
- * @name SDL.InfoAppsview
- * @desc Info Apps visual representation
- * @category View
- * @filesource app/view/info/AppsView.js
- * @version 1.0
- */
-
-SDL.InfoAppsView = Em.ContainerView
- .create( {
-
- elementId: 'info_apps',
-
- classNameBindings: [
- 'SDL.States.info.apps.active:active_state:inactive_state'
- ],
-
- childViews: [
- 'vehicleHealthReport',
- 'Asist911',
- 'installButton',
- 'findNewApps',
- 'getDeviceList',
- 'listOfApplications'
- ],
-
- /**
- * Function to add application to application list
- */
- showAppList: function() {
-
- this.get('listOfApplications.list').removeAllChildren();
-
- this.listOfApplications.list.refresh();
-
- var i, apps = SDL.SDLModel.updatedAppsList, btn, appIndex;
-
- for (i = 0; i < apps.length; i++) {
-
- btn = {
- action: 'onActivateSDLApp',
- target: 'SDL.SDLController',
- text: apps[i].appName + " - " + apps[i].deviceName,
- appName: apps[i].appName,
- appID: apps[i].appID,
- classNames: 'list-item button',
- disabled: apps[i].greyOut
- };
-
- if (SDL.SDLController.getApplicationModel(apps[i].appID)) {
- var index = SDL.SDLModel.registeredApps.indexOf(
- SDL.SDLController.getApplicationModel(apps[i].appID)
- );
- btn.iconBinding = 'SDL.SDLModel.registeredApps.' + index + '.appIcon';
- } else {
- btn.icon = apps[i].icon ? apps[i].icon : SDL.SDLModel.defaultListOfIcons.app;
- }
-
- this.get('listOfApplications.list.childViews').pushObject(SDL.Button.create(btn));
- }
-
- },
-
- vehicleHealthReport: SDL.Button
- .extend( {
- goToState: 'vehicle.healthReport',
- classNames: 'button vehicleHealthReport leftButtons',
- icon: 'images/info/ico_vehicle.png',
- textBinding: 'SDL.locale.label.view_info_apps_vehicle_VehicleHealthReport',
- elementId: 'infoAppsVehicleHealthReport',
- arrow: true,
- onDown: false
- }),
-
- Asist911: SDL.Button.extend( {
- goToState: 'help.helpAssist',
- classNames: 'button Asist911 leftButtons',
- icon: 'images/info/ico_assist.png',
- textBinding: 'SDL.locale.label.view_info_apps_911Assist',
- elementId: 'infoAppsAsist911',
- arrow: true,
- onDown: false
- }),
-
- installButton: SDL.Button
- .extend( {
- goToState: 'settings.system.installApplications',
- icon: 'images/info/ico_info_install.png',
- textBinding: 'SDL.locale.label.view_info_apps_vehicle_InstallApplicationsUp',
- elementId: 'infoAppsInstallButton',
- classNames: 'button installButton leftButtons',
- arrow: true,
- onDown: false
- }),
-
- findNewApps: SDL.Button
- .extend( {
- goToState: 'settings.system.installApplications',
- icon: 'images/sdl/new_apps.png',
- textBinding: 'SDL.locale.label.view_info_apps_vehicle_FindNewApplications',
- elementId: 'infoAppsFindNewApps',
- classNames: 'button findNewApps leftButtons',
- arrow: true,
- action: 'findNewApps',
- target: 'SDL.SDLController',
- onDown: false
- }),
-
- getDeviceList: SDL.Button
- .extend( {
- icon: 'images/sdl/devices.png',
- textBinding: 'SDL.locale.label.view_info_apps_vehicle_GetDeviceList',
- elementId: 'infoAppsGetDeviceList',
- classNames: 'button getDeviceList leftButtons',
- arrow: true,
- action: 'onGetDeviceList',
- target: 'SDL.SDLController',
- onDown: false
- }),
-
- listOfApplications: SDL.List.extend( {
-
- elementId: 'info_apps_list',
-
- itemsOnPage: 5,
-
- /** Items */
- items: new Array()
- })
- });
diff --git a/src/components/HMI/app/view/info/calendarView.js b/src/components/HMI/app/view/info/calendarView.js
deleted file mode 100644
index 235938a90e..0000000000
--- a/src/components/HMI/app/view/info/calendarView.js
+++ /dev/null
@@ -1,104 +0,0 @@
-/*
- * Copyright (c) 2013, Ford Motor Company All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met: ·
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer. · Redistributions in binary
- * form must reproduce the above copyright notice, this list of conditions and
- * the following disclaimer in the documentation and/or other materials provided
- * with the distribution. · Neither the name of the Ford Motor Company nor the
- * names of its contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-/**
- * @name SDL.InfoCalendarView
- * @desc Info Calendar module visual representation
- * @category View
- * @filesource app/view/sinfo/CalendarView.js
- * @version 1.0
- */
-
-SDL.InfoCalendarView = Em.View
- .create( {
- /** Bind class for visual representation */
- classNameBindings: [
- 'SDL.States.info.calendar.active:active_state:inactive_state'
- ],
-
- elementId: 'info_calendar',
-
- template: Ember.Handlebars
- .compile('<div class="inner-wrapper">'
- + '<div class="label-20 disabled date">{{SDL.locale.label.view_info_calendar_date}}</div>'
- +
-
- '{{view SDL.Button '
- + 'class= "today button" '
- + 'textBinding="SDL.locale.label.view_info_calendar_today" '
- + 'disabled=true '
- + '}}'
- +
-
- '<div class="day day-1">{{SDL.locale.label.view_info_calendar_day1}}</div>'
- + '<div class="day day-2">{{SDL.locale.label.view_info_calendar_day2}}</div>'
- + '<div class="day day-3">{{SDL.locale.label.view_info_calendar_day3}}</div>'
- + '<div class="day day-4">{{SDL.locale.label.view_info_calendar_day4}}</div>'
- + '<div class="day day-5">{{SDL.locale.label.view_info_calendar_day5}}</div>'
- + '<div class="day day-6">{{SDL.locale.label.view_info_calendar_day6}}</div>'
- + '<div class="day day-7 active">{{SDL.locale.label.view_info_calendar_day7}}</div>'
- +
-
- '<div class="c-btn disabled btn-1">1</div>'
- + '<div class="c-btn disabled btn-8">8</div>'
- + '<div class="c-btn disabled btn-15">15</div>'
- + '<div class="c-btn disabled btn-22">22</div>'
- + '<div class="c-btn disabled btn-29">29</div>' +
-
- '<div class="c-btn disabled btn-7">7</div>'
- + '<div class="c-btn disabled btn-14">14</div>'
- + '<div class="c-btn disabled btn-21">21</div>'
- + '<div class="c-btn disabled active btn-28">28</div>' +
-
- '<div class="c-btn disabled btn-6">6</div>'
- + '<div class="c-btn disabled btn-13">13</div>'
- + '<div class="c-btn disabled btn-20">20</div>'
- + '<div class="c-btn disabled btn-27">27</div>' +
-
- '<div class="c-btn disabled btn-5">5</div>'
- + '<div class="c-btn disabled btn-12">12</div>'
- + '<div class="c-btn disabled btn-19">19</div>'
- + '<div class="c-btn disabled btn-26">26</div>' +
-
- '<div class="c-btn disabled btn-4">4</div>'
- + '<div class="c-btn disabled btn-11">11</div>'
- + '<div class="c-btn disabled btn-18">18</div>'
- + '<div class="c-btn disabled btn-25">25</div>' +
-
- '<div class="c-btn disabled btn-3">3</div>'
- + '<div class="c-btn disabled btn-10">10</div>'
- + '<div class="c-btn disabled btn-17">17</div>'
- + '<div class="c-btn disabled btn-24">24</div>'
- + '<div class="c-btn disabled btn-31">31</div>' +
-
- '<div class="c-btn disabled btn-2">2</div>'
- + '<div class="c-btn disabled btn-9">9</div>'
- + '<div class="c-btn disabled btn-16">16</div>'
- + '<div class="c-btn disabled btn-23">23</div>'
- + '<div class="c-btn disabled btn-30">30</div>' +
-
- '</div>')
-
- }); \ No newline at end of file
diff --git a/src/components/HMI/app/view/info/devicelistView.js b/src/components/HMI/app/view/info/devicelistView.js
deleted file mode 100644
index 5bd6b8e686..0000000000
--- a/src/components/HMI/app/view/info/devicelistView.js
+++ /dev/null
@@ -1,142 +0,0 @@
-/*
- * Copyright (c) 2013, Ford Motor Company All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met: ·
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer. · Redistributions in binary
- * form must reproduce the above copyright notice, this list of conditions and
- * the following disclaimer in the documentation and/or other materials provided
- * with the distribution. · Neither the name of the Ford Motor Company nor the
- * names of its contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-/**
- * @name SDL.DeviceListView
- * @desc Media App Options module visual representation
- * @category View
- * @filesource app/view/media/devicelistView.js
- * @version 1.0
- */
-
-SDL.DeviceListView = Em.ContainerView.create( {
-
- classNames: [
- 'info_apps_deviceList_view'
- ],
-
- classNameBindings: [
- 'SDL.States.info.devicelist.active:active_state:inactive_state'
- ],
-
- /**
- * View Id
- */
- elementId: 'info_apps_deviceList_view',
-
- /**
- * View Components
- */
- childViews: [
- 'backButton',
- 'listOfDevices',
- 'deviceListLabel',
- 'progress'
- ],
-
- /**
- * Animation of search devices progress
- */
- progress: Em.View.extend( {
- classNames: [
- 'progress'
- ],
- classNameBindings: ['SDL.SDLModel.deviceSearchProgress:progress']
- }),
-
-
- /**
- * Button to return to previous view
- */
- backButton: SDL.Button.extend( {
- classNames: [
- 'backButton', 'button'
- ],
- action: 'turnChangeDeviceViewBack',
- target: 'SDL.SDLController',
- icon: 'images/media/ico_back.png'
- }),
-
- /**
- * Label in title
- */
- deviceListLabel: SDL.Label.extend( {
-
- elementId: 'deviceListLabel',
-
- classNames: 'deviceListLabel',
-
- content: 'Change Devices'
- }),
-
- /**
- * Function calls when notification from RPC comes and creates buttons to
- * choose devices
- */
- ShowDeviceList: function(params) {
-
- this.clearDeviceList();
-
- var i, len = params.deviceList.length;
- for (i = 0; i < len; i++) {
- this.get('listOfDevices.list.childViews').pushObject(SDL.Button
- .create( {
- deviceName: params.deviceList[i].name,
- icon: params.deviceList[i].icon,
- text: params.deviceList[i].name,
- classNames: 'ffw-button notpressed list-item',
- templateName: params.deviceList[i].icon ? 'rightIcon'
- : 'text',
- action: 'onDeviceChoosed',
- target: 'SDL.SDLController',
- onDown: false,
- id: params.deviceList[i].id
- }));
- }
- },
-
- /**
- * Function calls each time when user enters Change Device menu and clear
- * all old data about devices
- */
- clearDeviceList: function() {
-
- this.get('listOfDevices.list').removeAllChildren();
- this.listOfDevices.rerender();
- },
-
- /**
- * List for option on DeviceListView screen
- */
- listOfDevices: SDL.List.extend( {
-
- elementId: 'info_apps_deviceList_list',
-
- itemsOnPage: 5,
-
- /** Items array */
- items: []
- })
-});
diff --git a/src/components/HMI/app/view/info/nonMediaView.js b/src/components/HMI/app/view/info/nonMediaView.js
deleted file mode 100644
index 12dd8a654e..0000000000
--- a/src/components/HMI/app/view/info/nonMediaView.js
+++ /dev/null
@@ -1,264 +0,0 @@
-/*
- * Copyright (c) 2013, Ford Motor Company All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met: ·
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer. · Redistributions in binary
- * form must reproduce the above copyright notice, this list of conditions and
- * the following disclaimer in the documentation and/or other materials provided
- * with the distribution. · Neither the name of the Ford Motor Company nor the
- * names of its contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-/**
- * @name SDL.InfoNonMedia
- * @desc NonMedia application visual representation
- * @category View
- * @filesource app/view/info/nonMedia.js
- * @version 1.0
- */
-
-SDL.InfoNonMedia = Em.ContainerView
- .create( {
-
- elementId: 'info_nonMedia',
-
- controller: SDL.SDLAppController,
-
- childViews: [
- 'content'
- ],
-
- classNameBindings: [
- 'this.activeState:active_state:inactive_state'
- ],
-
- activeState: function(){
- if (SDL.TurnByTurnView.activeTBT) {
- return false;
- } else if (SDL.States.info.nonMedia.active) {
- return true;
- } else {
- return false;
- }
- }.property('SDL.States.info.nonMedia.active', 'SDL.TurnByTurnView.activeTBT'),
-
- content: Em.ContainerView
- .extend( {
- classNames: [
- 'inner_content'
- ],
-
- childViews: [
- 'deviceName', 'image', 'fields', 'innerMenu', 'presets'
- ],
-
- /**
- * Deactivate View
- */
- deactivate: function() {
-
- SDL.States.goToStates('info.apps');
- },
-
- deviceName: SDL.Label.extend( {
-
- classNames: [
- 'app_title'
- ],
-
- contentBinding: 'SDL.SDLAppController.model.deviceName'
- }),
-
- image: Em.View
- .extend( {
-
- classNames: [
- 'app_image'
- ],
-
- template: Ember.Handlebars
- .compile('<img width="150px" {{bindAttr src="SDL.SDLAppController.model.appInfo.mainImage"}}>')
- }),
-
- fields: Em.ContainerView.extend( {
-
- classNames: [
- 'app_fields'
- ],
-
- childViews: [
- 'field1', 'field2', 'field3', 'field4'
- ],
-
- field1: SDL.Label.extend( {
- contentBinding: 'controller.model.appInfo.field1',
- attributeBindings: ["style"],
- style: function(){
- if (SDL.SDLAppController.model) {
- return SDL.SDLAppController.model.appInfo.alignment;
- } else {
- return null;
- }
- }.property("SDL.SDLAppController.model.appInfo.alignment")
- }),
-
- field2: SDL.Label.extend( {
- contentBinding: 'controller.model.appInfo.field2',
- attributeBindings: ["style"],
- style: function(){
- if (SDL.SDLAppController.model) {
- return SDL.SDLAppController.model.appInfo.alignment;
- } else {
- return null;
- }
- }.property("SDL.SDLAppController.model.appInfo.alignment")
- }),
-
- field3: SDL.Label.extend( {
- contentBinding: 'controller.model.appInfo.field3'
- }),
-
- field4: SDL.Label.extend( {
- contentBinding: 'controller.model.appInfo.field4'
- })
-
- }),
-
- innerMenu: SDL.MenuList
- .extend( {
-
- refreshItems: function() {
-
- if (SDL.SDLAppController.model && SDL.SDLAppController.model.appID == SDL.NonMediaController.currentAppId) {
- this
- .addItems(SDL.SDLAppController.model.softButtons,
- SDL.SDLAppController.model.appID);
- }
- }
- .observes('SDL.SDLAppController.model.softButtons.@each'),
-
- groupName: "NonMediaView",
-
- content: Em.ContainerView.extend( {
-
- classNames: [
- 'content'
- ],
-
- attributeBindings: [
- 'parentView.contentPositon:style'
- ],
-
- childViews: [
- 'optionsButton'
- ],
-
- optionsButton: SDL.Button.extend( {
- text: 'Options',
-
- templateName: 'arrow',
-
- action: 'openCommandsList',
- target: 'SDL.SDLAppController'
- })
- })
- }),
-
- presets: Em.ContainerView
- .extend( {
- classNames: [
- 'presets'
- ],
-
- classNameBindings: [
- 'hidden'
- ],
-
- hidden: function() {
-
- if (SDL.SDLAppController.model) { return !Boolean(SDL.SDLAppController.model
- .get('appInfo.customPresets').length); }
-
- }
- .property('SDL.SDLAppController.model.appInfo.customPresets.@each'),
-
- childViews: [
- 'perset1',
- 'perset2',
- 'perset3',
- 'perset4',
- 'perset5',
- 'perset6',
- 'perset7',
- 'perset8',
- 'perset9',
- 'perset10'
- ],
-
- perset1: SDL.Button.extend(SDL.PresetEvents, {
- textBinding: 'SDL.SDLAppController.model.appInfo.customPresets.0',
- presetName: 'PRESET_0',
- templateName: 'text'
- }),
- perset2: SDL.Button.extend(SDL.PresetEvents, {
- textBinding: 'SDL.SDLAppController.model.appInfo.customPresets.1',
- presetName: 'PRESET_1',
- templateName: 'text'
- }),
- perset3: SDL.Button.extend(SDL.PresetEvents, {
- textBinding: 'SDL.SDLAppController.model.appInfo.customPresets.2',
- presetName: 'PRESET_2',
- templateName: 'text'
- }),
- perset4: SDL.Button.extend(SDL.PresetEvents, {
- textBinding: 'SDL.SDLAppController.model.appInfo.customPresets.3',
- presetName: 'PRESET_3',
- templateName: 'text'
- }),
- perset5: SDL.Button.extend(SDL.PresetEvents, {
- textBinding: 'SDL.SDLAppController.model.appInfo.customPresets.4',
- presetName: 'PRESET_4',
- templateName: 'text'
- }),
- perset6: SDL.Button.extend(SDL.PresetEvents, {
- textBinding: 'SDL.SDLAppController.model.appInfo.customPresets.5',
- presetName: 'PRESET_5',
- templateName: 'text'
- }),
- perset7: SDL.Button.extend(SDL.PresetEvents, {
- textBinding: 'SDL.SDLAppController.model.appInfo.customPresets.6',
- presetName: 'PRESET_6',
- templateName: 'text'
- }),
- perset8: SDL.Button.extend(SDL.PresetEvents, {
- textBinding: 'SDL.SDLAppController.model.appInfo.customPresets.7',
- presetName: 'PRESET_7',
- templateName: 'text'
- }),
- perset9: SDL.Button.extend(SDL.PresetEvents, {
- textBinding: 'SDL.SDLAppController.model.appInfo.customPresets.8',
- presetName: 'PRESET_8',
- templateName: 'text'
- }),
- perset10: SDL.Button.extend(SDL.PresetEvents, {
- textBinding: 'SDL.SDLAppController.model.appInfo.customPresets.9',
- presetName: 'PRESET_9',
- templateName: 'text'
- })
- })
- })
- }); \ No newline at end of file
diff --git a/src/components/HMI/app/view/info/servicesView.js b/src/components/HMI/app/view/info/servicesView.js
deleted file mode 100644
index f4bac6d0ee..0000000000
--- a/src/components/HMI/app/view/info/servicesView.js
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright (c) 2013, Ford Motor Company All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met: ·
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer. · Redistributions in binary
- * form must reproduce the above copyright notice, this list of conditions and
- * the following disclaimer in the documentation and/or other materials provided
- * with the distribution. · Neither the name of the Ford Motor Company nor the
- * names of its contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-/**
- * @name SDL.ServicesView
- * @desc Info Services module visual representation
- * @category Info
- * @filesource app/view/ServicesView.js
- * @version 1.0
- */
-
-SDL.InfoServicesView = Em.View
- .create( {
-
- elementId: 'info_services_view',
-
- classNameBindings: [
- 'SDL.States.info.services.active:active_state:inactive_state'
- ],
-
- /** Define module template */
- template: Ember.Handlebars
- .compile('<div class="inner-content">'
- + '<div id="info_sync_services" class="info-text">{{SDL.locale.label.view_info_services_syncServices}}</div>'
- + '<div id="info_traff" class="info-text">{{SDL.locale.label.view_info_services_trafficDirectionsAndInformation}}</div>'
- + '<div id="info_traffic_report" class="info-text">{{SDL.locale.label.view_info_services_getTheLatestTrafficRreport}}</div>'
- + '<div id="info_traffic_pts" class="info-text">{{SDL.locale.label.view_info_services_findBusinessesAndDownloadSaved}}<br>{{SDL.locale.label.view_info_services_Pts}}</div>'
- + '<div id="info_traffic_hear" class="info-text">{{SDL.locale.label.view_info_services_hearPersonalizedInformationMore}}</div>'
- + '<div id="info_connect" class="info-text">{{SDL.locale.label.view_info_services_connecttoServices}}</div>'
- + '<div id="info_log" class="info-text">{{SDL.locale.label.view_info_services_toActivate}}</div>'
- + '</div>')
- }); \ No newline at end of file
diff --git a/src/components/HMI/app/view/info/travelLinkView.js b/src/components/HMI/app/view/info/travelLinkView.js
deleted file mode 100644
index 2bf6b90a95..0000000000
--- a/src/components/HMI/app/view/info/travelLinkView.js
+++ /dev/null
@@ -1,164 +0,0 @@
-/*
- * Copyright (c) 2013, Ford Motor Company All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met: ·
- * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer. · Redistributions in binary
- * form must reproduce the above copyright notice, this list of conditions and
- * the following disclaimer in the documentation and/or other materials provided
- * with the distribution. · Neither the name of the Ford Motor Company nor the
- * names of its contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-/**
- * @name SDL.InfoTravelLinkView
- * @desc Info Travel Link Help module visual representation
- * @category View
- * @filesource app/view/settings/InfoTravelLinkView.js
- * @version 1.0
- */
-
-SDL.InfoTravelLinkView = Em.ContainerView
- .create( {
-
- classNameBindings: [
- 'SDL.States.info.travelLink.active:active_state:inactive_state'
- ],
-
- elementId: 'info_travelLink',
-
- childViews: [
- 'imageLogo', 'listLeft', 'listRight',
- ],
-
- imageLogo: SDL.Label.extend( {
- elementId: 'info_travelLink_logo',
- icon: 'images/info/info_travelLink_sirius_logo.png',
- templateName: 'icon'
- }),
-
- listLeft: SDL.List
- .extend( {
- elementId: 'info_travelLink_listLeft',
-
- disableScrollbar: true,
-
- itemsOnPage: 5,
-
- /** Items */
- items: [
- {
-
- type: SDL.Button,
-
- params: {
- textBinding: 'SDL.locale.label.view_info_travelLink_trafficOnRoute',
- templateName: 'arrow',
- disabled: true
- }
-
- },
- {
-
- type: SDL.Button,
-
- params: {
- textBinding: 'SDL.locale.label.view_info_travelLink_trafficNearby',
- templateName: 'arrow',
- disabled: true
- }
-
- },
- {
-
- type: SDL.Button,
-
- params: {
- textBinding: 'SDL.locale.label.view_info_travelLink_fuelPrices',
- templateName: 'arrow',
- disabled: true
- }
-
- },
- {
-
- type: SDL.Button,
-
- params: {
- textBinding: 'SDL.locale.label.view_info_travelLink_movieListings',
- templateName: 'arrow',
- disabled: true
- }
-
- },
- ]
- }),
-
- listRight: SDL.List
- .extend( {
- elementId: 'info_travelLink_listRight',
-
- disableScrollbar: true,
-
- /** Items */
- items: [
- {
-
- type: SDL.Button,
-
- params: {
-
- textBinding: 'SDL.locale.label.view_info_travelLink_subscriptionInfo',
- disabled: true
- }
-
- },
- {
-
- type: SDL.Button,
-
- params: {
- textBinding: 'SDL.locale.label.view_info_travelLink_weather',
- templateName: 'arrow',
- disabled: true
- }
-
- },
- {
-
- type: SDL.Button,
-
- params: {
- textBinding: 'SDL.locale.label.view_info_travelLink_sportsInfo',
- templateName: 'arrow',
- disabled: true
- }
-
- },
- {
-
- type: SDL.Button,
-
- params: {
- textBinding: 'SDL.locale.label.view_info_travelLink_skiConditions',
- templateName: 'arrow',
- disabled: true
- }
-
- }
- ]
- })
- }); \ No newline at end of file