2016-07-07 16:47:46 +00:00
|
|
|
/*****************************************************************************
|
|
|
|
* Open MCT Web, Copyright (c) 2014-2015, United States Government
|
|
|
|
* as represented by the Administrator of the National Aeronautics and Space
|
|
|
|
* Administration. All rights reserved.
|
|
|
|
*
|
|
|
|
* Open MCT Web is licensed under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0.
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
* License for the specific language governing permissions and limitations
|
|
|
|
* under the License.
|
|
|
|
*
|
|
|
|
* Open MCT Web includes source code licensed under additional open source
|
|
|
|
* licenses. See the Open Source Licenses file (LICENSES.md) included with
|
|
|
|
* this source code distribution or the Licensing information page available
|
|
|
|
* at runtime from the About dialog for additional information.
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
define([
|
2016-08-11 01:22:30 +00:00
|
|
|
"./src/ui/TimeConductorViewService",
|
2016-07-18 15:23:27 +00:00
|
|
|
"./src/ui/TimeConductorController",
|
2016-08-11 01:22:30 +00:00
|
|
|
"./src/TimeConductor",
|
2016-09-12 23:53:48 +00:00
|
|
|
"./src/ui/ConductorAxisController",
|
2016-08-11 01:22:30 +00:00
|
|
|
"./src/ui/MctConductorAxis",
|
2016-08-04 00:40:37 +00:00
|
|
|
"./src/ui/NumberFormat",
|
2016-07-07 16:47:46 +00:00
|
|
|
"text!./res/templates/time-conductor.html",
|
|
|
|
"text!./res/templates/mode-selector/mode-selector.html",
|
|
|
|
"text!./res/templates/mode-selector/mode-menu.html",
|
2016-09-12 23:53:48 +00:00
|
|
|
"legacyRegistry"
|
2016-07-07 16:47:46 +00:00
|
|
|
], function (
|
2016-08-11 01:22:30 +00:00
|
|
|
TimeConductorViewService,
|
2016-07-07 16:47:46 +00:00
|
|
|
TimeConductorController,
|
2016-08-11 01:22:30 +00:00
|
|
|
TimeConductor,
|
2016-09-12 23:53:48 +00:00
|
|
|
ConductorAxisController,
|
2016-07-07 16:47:46 +00:00
|
|
|
MCTConductorAxis,
|
2016-08-04 00:40:37 +00:00
|
|
|
NumberFormat,
|
2016-07-07 16:47:46 +00:00
|
|
|
timeConductorTemplate,
|
|
|
|
modeSelectorTemplate,
|
|
|
|
modeMenuTemplate,
|
|
|
|
legacyRegistry
|
|
|
|
) {
|
|
|
|
|
2016-08-01 22:14:23 +00:00
|
|
|
legacyRegistry.register("platform/features/conductor-v2/conductor", {
|
2016-07-07 16:47:46 +00:00
|
|
|
"extensions": {
|
|
|
|
"services": [
|
2016-08-03 20:05:43 +00:00
|
|
|
{
|
|
|
|
"key": "timeConductor",
|
2016-08-11 01:22:30 +00:00
|
|
|
"implementation": TimeConductor
|
2016-08-03 20:05:43 +00:00
|
|
|
},
|
2016-07-07 16:47:46 +00:00
|
|
|
{
|
2016-08-11 01:22:30 +00:00
|
|
|
"key": "timeConductorViewService",
|
|
|
|
"implementation": TimeConductorViewService,
|
|
|
|
"depends": [
|
|
|
|
"timeConductor",
|
|
|
|
"timeSystems[]"
|
|
|
|
]
|
2016-07-07 16:47:46 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"controllers": [
|
|
|
|
{
|
|
|
|
"key": "TimeConductorController",
|
|
|
|
"implementation": TimeConductorController,
|
|
|
|
"depends": [
|
|
|
|
"$scope",
|
2016-08-24 14:28:19 +00:00
|
|
|
"$window",
|
2016-08-11 01:22:30 +00:00
|
|
|
"timeConductor",
|
|
|
|
"timeConductorViewService",
|
2016-07-18 15:23:27 +00:00
|
|
|
"timeSystems[]"
|
2016-07-07 16:47:46 +00:00
|
|
|
]
|
2016-09-12 23:53:48 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "ConductorAxisController",
|
|
|
|
"implementation": ConductorAxisController,
|
|
|
|
"depends": [
|
|
|
|
"timeConductor",
|
|
|
|
"formatService"
|
|
|
|
]
|
2016-07-07 16:47:46 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"directives": [
|
|
|
|
{
|
|
|
|
"key": "mctConductorAxis",
|
|
|
|
"implementation": MCTConductorAxis,
|
2016-07-07 23:57:03 +00:00
|
|
|
"depends": [
|
2016-08-11 01:22:30 +00:00
|
|
|
"timeConductor",
|
2016-07-22 03:03:40 +00:00
|
|
|
"formatService"
|
2016-07-07 23:57:03 +00:00
|
|
|
]
|
2016-07-07 16:47:46 +00:00
|
|
|
}
|
|
|
|
],
|
2016-07-20 01:33:24 +00:00
|
|
|
"stylesheets": [
|
|
|
|
{
|
2016-08-01 19:00:53 +00:00
|
|
|
"stylesheetUrl": "css/time-conductor-espresso.css",
|
|
|
|
"theme": "espresso"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"stylesheetUrl": "css/time-conductor-snow.css",
|
|
|
|
"theme": "snow"
|
2016-07-20 01:33:24 +00:00
|
|
|
}
|
|
|
|
],
|
2016-09-07 21:29:21 +00:00
|
|
|
"templates": [
|
|
|
|
{
|
2016-09-09 23:39:21 +00:00
|
|
|
"key": "conductor",
|
2016-09-07 21:29:21 +00:00
|
|
|
"template": timeConductorTemplate
|
2016-09-09 23:39:21 +00:00
|
|
|
},
|
2016-07-07 16:47:46 +00:00
|
|
|
{
|
2016-09-09 23:39:21 +00:00
|
|
|
"key": "mode-menu",
|
|
|
|
"template": modeMenuTemplate
|
2016-07-07 16:47:46 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "mode-selector",
|
|
|
|
"template": modeSelectorTemplate
|
2016-09-09 23:39:21 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"representations": [
|
2016-07-07 16:47:46 +00:00
|
|
|
{
|
2016-09-09 23:39:21 +00:00
|
|
|
"key": "time-conductor",
|
|
|
|
"template": timeConductorTemplate
|
2016-07-07 16:47:46 +00:00
|
|
|
}
|
2016-08-04 00:40:37 +00:00
|
|
|
],
|
|
|
|
"formats": [
|
|
|
|
{
|
|
|
|
"key": "number",
|
|
|
|
"implementation": NumberFormat
|
|
|
|
}
|
2016-07-07 16:47:46 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|