2013-12-24 22:09:19 +00:00
|
|
|
/**
|
|
|
|
******************************************************************************
|
|
|
|
* Xenia : Xbox 360 Emulator Research Project *
|
|
|
|
******************************************************************************
|
|
|
|
* Copyright 2013 Ben Vanik. All rights reserved. *
|
|
|
|
* Released under the BSD license - see LICENSE in the root for more details. *
|
|
|
|
******************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var module = angular.module('xe.ui.code.moduleInfo', [
|
|
|
|
'ui.bootstrap',
|
|
|
|
'xe.log',
|
|
|
|
'xe.session'
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
|
|
module.controller('ModuleInfoController', function(
|
2013-12-25 01:25:29 +00:00
|
|
|
$rootScope, $scope, $modal, log, moduleName, moduleInfo) {
|
|
|
|
$scope.moduleName = moduleName;
|
|
|
|
$scope.moduleInfo = moduleInfo;
|
|
|
|
|
2013-12-25 06:08:44 +00:00
|
|
|
$scope.headerSort = {
|
|
|
|
column: 'key',
|
|
|
|
reverse: false
|
|
|
|
};
|
|
|
|
$scope.sectionSort = {
|
|
|
|
column: 'startAddress',
|
|
|
|
reverse: false
|
|
|
|
};
|
|
|
|
$scope.staticLibrarySort = {
|
|
|
|
column: 'name',
|
|
|
|
reverse: false
|
|
|
|
};
|
|
|
|
$scope.importSort = {
|
|
|
|
column: 'ordinal',
|
|
|
|
reverse: false
|
|
|
|
};
|
|
|
|
$scope.changeSort = function(sort, column) {
|
|
|
|
if (sort.column == column) {
|
|
|
|
sort.reverse = !sort.reverse;
|
|
|
|
} else {
|
|
|
|
sort.column = column;
|
|
|
|
sort.reverse = false;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2013-12-24 22:09:19 +00:00
|
|
|
$scope.close = function() {
|
|
|
|
$scope.$close(null);
|
|
|
|
};
|
|
|
|
});
|