Commit 4a6500fa7e167e281502ae5f16c241da7af1f6e5
Refs: 7646, 7914
commit after buBugFix.
Showing
3 changed files
with
77 additions
and
15 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -1462,8 +1462,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -1462,8 +1462,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
1462 | // console.log('$rootScope.isListManagerSelected= ' + $rootScope.isListManagerSelected + ' length= ' + $scope.ColoredImageSRC.length) | 1462 | // console.log('$rootScope.isListManagerSelected= ' + $rootScope.isListManagerSelected + ' length= ' + $scope.ColoredImageSRC.length) |
1463 | 1463 | ||
1464 | 1464 | ||
1465 | - if (($scope.ColoredImageSRC != null || $scope.ColoredImageSRC != undefined)) { | ||
1466 | - | 1465 | + if (($scope.ColoredImageSRC != null || $scope.ColoredImageSRC != undefined)) { |
1466 | + | ||
1467 | if ((($rootScope.viewOrientationId == '1') || ($rootScope.viewOrientationId == '4')) && ($scope.ColoredImageSRC.length == 9)) { | 1467 | if ((($rootScope.viewOrientationId == '1') || ($rootScope.viewOrientationId == '4')) && ($scope.ColoredImageSRC.length == 9)) { |
1468 | $scope.isEligibleForHighlight = true; | 1468 | $scope.isEligibleForHighlight = true; |
1469 | } | 1469 | } |
@@ -4925,7 +4925,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -4925,7 +4925,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
4925 | $rootScope.isHighlightBodyByBodySystem = false; | 4925 | $rootScope.isHighlightBodyByBodySystem = false; |
4926 | 4926 | ||
4927 | if ($rootScope.isHighLight == true) { | 4927 | if ($rootScope.isHighLight == true) { |
4928 | - | 4928 | + |
4929 | } | 4929 | } |
4930 | else { | 4930 | else { |
4931 | $rootScope.isHighLight = true; | 4931 | $rootScope.isHighLight = true; |
@@ -4994,6 +4994,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -4994,6 +4994,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
4994 | 4994 | ||
4995 | 4995 | ||
4996 | if ($rootScope.isNormalMode == true) { | 4996 | if ($rootScope.isNormalMode == true) { |
4997 | + | ||
4998 | + | ||
4999 | + | ||
5000 | + | ||
4997 | 5001 | ||
4998 | } | 5002 | } |
4999 | else { | 5003 | else { |
@@ -5018,7 +5022,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -5018,7 +5022,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
5018 | 5022 | ||
5019 | //7. | 5023 | //7. |
5020 | $scope.CalculateImageCordinates($rootScope.viewOrientationId); | 5024 | $scope.CalculateImageCordinates($rootScope.viewOrientationId); |
5021 | - | 5025 | + // alert($rootScope.viewOrientationId + "gadash") |
5022 | $("#canvasDiv").scrollTop($rootScope.CanvasDivTopPosition); | 5026 | $("#canvasDiv").scrollTop($rootScope.CanvasDivTopPosition); |
5023 | $("#canvasDiv").scrollLeft($rootScope.CanvasDivLeftPosition); | 5027 | $("#canvasDiv").scrollLeft($rootScope.CanvasDivLeftPosition); |
5024 | 5028 | ||
@@ -7422,7 +7426,33 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -7422,7 +7426,33 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
7422 | 7426 | ||
7423 | //list manager | 7427 | //list manager |
7424 | $scope.$on('listManagerEvent', function (event, data) { | 7428 | $scope.$on('listManagerEvent', function (event, data) { |
7425 | - | 7429 | + |
7430 | + if ($rootScope.disableAnnotationtoolOnListManager == true) | ||
7431 | + { | ||
7432 | + $('#AnnotaionPopupDiv').find('input, textarea, button, select').attr('disabled', 'disabled'); | ||
7433 | + $('#slider-range-min-2').slider('disable'); | ||
7434 | + if ($rootScope.setListManagerZindex == true) | ||
7435 | + { | ||
7436 | + var canvasPaintZindex = $('#canvasPaint').css("z-index"); //x | ||
7437 | + | ||
7438 | + var canvasZindex = $('#canvas').css("z-index"); //y | ||
7439 | + var listManagerZindex = $('#listManager').css("z-index"); //z | ||
7440 | + if (canvasPaintZindex > canvasZindex) { | ||
7441 | + //y = parseInt(canvasPaintZindex) + 1; | ||
7442 | + //if (listManagerZindex <= canvasPaintZindex) { | ||
7443 | + // listManagerZindex = parseInt(canvasPaintZindex) + 1; | ||
7444 | + // $('#listManager').css("z-index", z); | ||
7445 | + //} | ||
7446 | + //else { | ||
7447 | + $('#listManager').css("z-index", canvasPaintZindex); | ||
7448 | + // } | ||
7449 | + } else { | ||
7450 | + //y = parseInt(y) + 1; | ||
7451 | + $('#listManager').css("z-index", canvasZindex); | ||
7452 | + } | ||
7453 | + | ||
7454 | + } | ||
7455 | + } | ||
7426 | $('#spinner').css('visibility', 'visible'); | 7456 | $('#spinner').css('visibility', 'visible'); |
7427 | console.log('listManagerEvent'); | 7457 | console.log('listManagerEvent'); |
7428 | 7458 | ||
@@ -7535,6 +7565,19 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -7535,6 +7565,19 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
7535 | $scope.terminateCurrentlyRunningWPs(); | 7565 | $scope.terminateCurrentlyRunningWPs(); |
7536 | //debugger | 7566 | //debugger |
7537 | $rootScope.isListManagerSelected = true; | 7567 | $rootScope.isListManagerSelected = true; |
7568 | + //--- | ||
7569 | + if ($rootScope.isListManagerSelected == true) { | ||
7570 | + $("#btnHighLight").addClass("btn-primary"); | ||
7571 | + $("#btnHighLight").removeClass("btn-black"); | ||
7572 | + if (!$("#btnNormalMode").hasClass("btn-black")) { | ||
7573 | + $("#btnNormalMode").addClass("btn-black"); | ||
7574 | + } | ||
7575 | + | ||
7576 | + if ($("#btnNormalMode").hasClass("btn-primary")) { | ||
7577 | + $("#btnNormalMode").removeClass("btn-primary"); | ||
7578 | + } | ||
7579 | + } | ||
7580 | + //--- | ||
7538 | $rootScope.isLoading = true; | 7581 | $rootScope.isLoading = true; |
7539 | 7582 | ||
7540 | $('#spinner').css('visibility', 'visible'); | 7583 | $('#spinner').css('visibility', 'visible'); |
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
@@ -26,6 +26,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | @@ -26,6 +26,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | ||
26 | $rootScope.clickDrag = new Array(); | 26 | $rootScope.clickDrag = new Array(); |
27 | $rootScope.isLineDrawSelecyed = false; | 27 | $rootScope.isLineDrawSelecyed = false; |
28 | $rootScope.isAnnotationWindowClose = false; | 28 | $rootScope.isAnnotationWindowClose = false; |
29 | + $rootScope.setListManagerZindex = false; | ||
29 | $rootScope.lastX; | 30 | $rootScope.lastX; |
30 | $rootScope.lastY; | 31 | $rootScope.lastY; |
31 | $rootScope.CommonData; | 32 | $rootScope.CommonData; |
@@ -158,19 +159,21 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | @@ -158,19 +159,21 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | ||
158 | 159 | ||
159 | 160 | ||
160 | //----Annotation Toolbar: Jcanvas----- | 161 | //----Annotation Toolbar: Jcanvas----- |
161 | - | 162 | + |
162 | $rootScope.DrLine = function (e) { | 163 | $rootScope.DrLine = function (e) { |
163 | - | 164 | + $rootScope.setListManagerZindex = true; |
164 | $("#canvasPaint").css("display", "block"); | 165 | $("#canvasPaint").css("display", "block"); |
165 | $("#canvas").css("display", "block"); | 166 | $("#canvas").css("display", "block"); |
166 | 167 | ||
167 | $rootScope.switchCanvas(); | 168 | $rootScope.switchCanvas(); |
168 | $rootScope.shapeType = "Line"; | 169 | $rootScope.shapeType = "Line"; |
169 | - | 170 | + |
171 | + | ||
170 | $('.btnCursor').removeClass('activebtncolor'); | 172 | $('.btnCursor').removeClass('activebtncolor'); |
171 | $(".btn-annotation").removeClass("activebtncolor"); | 173 | $(".btn-annotation").removeClass("activebtncolor"); |
172 | $(".btn-annotation-line").addClass("activebtncolor"); | 174 | $(".btn-annotation-line").addClass("activebtncolor"); |
173 | 175 | ||
176 | + | ||
174 | } | 177 | } |
175 | 178 | ||
176 | 179 | ||
@@ -180,6 +183,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | @@ -180,6 +183,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | ||
180 | 183 | ||
181 | $rootScope.switchCanvas(); | 184 | $rootScope.switchCanvas(); |
182 | $rootScope.switchCanvas(); | 185 | $rootScope.switchCanvas(); |
186 | + $rootScope.setListManagerZindex = true; | ||
183 | $rootScope.shapeType = "Pin"; | 187 | $rootScope.shapeType = "Pin"; |
184 | 188 | ||
185 | $('.btnCursor').removeClass('activebtncolor'); | 189 | $('.btnCursor').removeClass('activebtncolor'); |
@@ -196,8 +200,9 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | @@ -196,8 +200,9 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | ||
196 | $('.btnCursor').addClass('activebtncolor'); | 200 | $('.btnCursor').addClass('activebtncolor'); |
197 | } | 201 | } |
198 | 202 | ||
203 | + | ||
199 | $rootScope.DrawRectangle = function (e) { | 204 | $rootScope.DrawRectangle = function (e) { |
200 | - | 205 | + $rootScope.setListManagerZindex = true; |
201 | $("#canvasPaint").css("display", "block"); | 206 | $("#canvasPaint").css("display", "block"); |
202 | $("#canvas").css("display", "block"); | 207 | $("#canvas").css("display", "block"); |
203 | $rootScope.switchCanvas(); | 208 | $rootScope.switchCanvas(); |
@@ -209,6 +214,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | @@ -209,6 +214,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | ||
209 | $rootScope.paintBrush = function () { | 214 | $rootScope.paintBrush = function () { |
210 | // debugger; | 215 | // debugger; |
211 | // $('.btnCursor').addClass('activebtncolor'); | 216 | // $('.btnCursor').addClass('activebtncolor'); |
217 | + $rootScope.setListManagerZindex = true; | ||
212 | $("#canvasPaint").css("display", "block"); | 218 | $("#canvasPaint").css("display", "block"); |
213 | $("#canvas").css("display", "block"); | 219 | $("#canvas").css("display", "block"); |
214 | $rootScope.switchCanvasToPaintCanvas(); | 220 | $rootScope.switchCanvasToPaintCanvas(); |
@@ -244,6 +250,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | @@ -244,6 +250,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | ||
244 | } | 250 | } |
245 | 251 | ||
246 | $rootScope.DrawCircle = function (e) { | 252 | $rootScope.DrawCircle = function (e) { |
253 | + $rootScope.setListManagerZindex = true; | ||
247 | $("#canvasPaint").css("display", "block"); | 254 | $("#canvasPaint").css("display", "block"); |
248 | $("#canvas").css("display", "block"); | 255 | $("#canvas").css("display", "block"); |
249 | $rootScope.switchCanvas(); | 256 | $rootScope.switchCanvas(); |
@@ -254,6 +261,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | @@ -254,6 +261,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | ||
254 | } | 261 | } |
255 | 262 | ||
256 | $rootScope.DrawArrow = function (e) { | 263 | $rootScope.DrawArrow = function (e) { |
264 | + $rootScope.setListManagerZindex = true; | ||
257 | $("#canvasPaint").css("display", "block"); | 265 | $("#canvasPaint").css("display", "block"); |
258 | $("#canvas").css("display", "block"); | 266 | $("#canvas").css("display", "block"); |
259 | $rootScope.switchCanvas(); | 267 | $rootScope.switchCanvas(); |
@@ -263,6 +271,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | @@ -263,6 +271,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | ||
263 | $(".btn-annotation-arrow").addClass("activebtncolor"); | 271 | $(".btn-annotation-arrow").addClass("activebtncolor"); |
264 | } | 272 | } |
265 | $rootScope.DrawText = function () { | 273 | $rootScope.DrawText = function () { |
274 | + $rootScope.setListManagerZindex = true; | ||
266 | $("#canvasPaint").css("display", "block"); | 275 | $("#canvasPaint").css("display", "block"); |
267 | $("#canvas").css("display", "block"); | 276 | $("#canvas").css("display", "block"); |
268 | $rootScope.switchCanvas(); | 277 | $rootScope.switchCanvas(); |
@@ -276,6 +285,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | @@ -276,6 +285,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | ||
276 | } | 285 | } |
277 | 286 | ||
278 | $rootScope.DrawPolygon = function () { | 287 | $rootScope.DrawPolygon = function () { |
288 | + $rootScope.setListManagerZindex = true; | ||
279 | $("#canvasPaint").css("display", "block"); | 289 | $("#canvasPaint").css("display", "block"); |
280 | $("#canvas").css("display", "block"); | 290 | $("#canvas").css("display", "block"); |
281 | $rootScope.shapeType = "DrawPolygon"; | 291 | $rootScope.shapeType = "DrawPolygon"; |
@@ -441,9 +451,11 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | @@ -441,9 +451,11 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | ||
441 | //list manager function | 451 | //list manager function |
442 | 452 | ||
443 | //list manager function | 453 | //list manager function |
444 | - | 454 | + |
455 | + $rootScope.disableAnnotationtoolOnListManager = false; | ||
445 | $rootScope.ShowListManager = function () { | 456 | $rootScope.ShowListManager = function () { |
446 | console.log('ShowListManager') | 457 | console.log('ShowListManager') |
458 | + $rootScope.disableAnnotationtoolOnListManager = true; | ||
447 | 459 | ||
448 | $rootScope.isLoading = true; | 460 | $rootScope.isLoading = true; |
449 | $('#spinner').css('visibility', 'visible'); | 461 | $('#spinner').css('visibility', 'visible'); |
@@ -460,6 +472,12 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | @@ -460,6 +472,12 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | ||
460 | 472 | ||
461 | $rootScope.CloseListManager = function () { | 473 | $rootScope.CloseListManager = function () { |
462 | console.log('close') | 474 | console.log('close') |
475 | + | ||
476 | + $rootScope.disableAnnotationtoolOnListManager = false; | ||
477 | + if ($rootScope.disableAnnotationtoolOnListManager == false) { | ||
478 | + $('#AnnotaionPopupDiv').find('input, textarea, button, select,img,div').removeAttr('disabled', 'disabled'); | ||
479 | + $('#slider-range-min-2').slider('enable'); | ||
480 | + } | ||
463 | //$rootScope.isListManagerSelected = false; | 481 | //$rootScope.isListManagerSelected = false; |
464 | $('#listManager').css('display', 'none'); | 482 | $('#listManager').css('display', 'none'); |
465 | $("#listManager").css("visibility", "hidden"); | 483 | $("#listManager").css("visibility", "hidden"); |
400-SOURCECODE/AIAHTML5.Web/index.html
@@ -408,18 +408,18 @@ | @@ -408,18 +408,18 @@ | ||
408 | <button type="button" class="close" aria-label="Close" ng-click="CloseAnnotationTool()"><span aria-hidden="true">×</span></button> | 408 | <button type="button" class="close" aria-label="Close" ng-click="CloseAnnotationTool()"><span aria-hidden="true">×</span></button> |
409 | <h4 class="modal-title" id="myModalLabel">Annotation</h4> | 409 | <h4 class="modal-title" id="myModalLabel">Annotation</h4> |
410 | </div> | 410 | </div> |
411 | - <div class="modal-body"> | 411 | + <div class="modal-body" id="AnnotaionPopupDiv" > |
412 | <div class="row"> | 412 | <div class="row"> |
413 | <div class="col-sm-12"> | 413 | <div class="col-sm-12"> |
414 | <h5>Mode</h5> | 414 | <h5>Mode</h5> |
415 | 415 | ||
416 | <div class="btn-group btn-group-justified" role="group" aria-label="..."> | 416 | <div class="btn-group btn-group-justified" role="group" aria-label="..."> |
417 | <div class="btn-group" role="group" tooltip> | 417 | <div class="btn-group" role="group" tooltip> |
418 | - <div id="identify-block" style="display: none; font-size:13px;">Identify Mode</div> | ||
419 | - <button id="OnIdentify" type="button" class="btn btn-sm btn-success" ng-click="OnIdentifyClick()">Identify</button> | 418 | + <div id="identify-block" style="display: none; font-size:13px;">Identify Mode</div> |
419 | + <button id="OnIdentify" type="button" class="btn btn-sm btn-success" ng-click="OnIdentifyClick()">Identify</button> | ||
420 | </div> | 420 | </div> |
421 | <div class="btn-group" role="group"> | 421 | <div class="btn-group" role="group"> |
422 | - <div id="draw-block" style="display: none; font-size: 13px;">Draw Mode</div> | 422 | + <div id="draw-block" style="display: none; font-size: 13px;">Draw Mode</div> |
423 | <button id="DrawMode" type="button" ng-click="DrawingMode()" class="btn btn-sm btn-success">Draw</button> | 423 | <button id="DrawMode" type="button" ng-click="DrawingMode()" class="btn btn-sm btn-success">Draw</button> |
424 | </div> | 424 | </div> |
425 | </div> | 425 | </div> |
@@ -444,7 +444,7 @@ | @@ -444,7 +444,7 @@ | ||
444 | </div> | 444 | </div> |
445 | </div> | 445 | </div> |
446 | <div class="well-popup well"> | 446 | <div class="well-popup well"> |
447 | - <img src="content/images/blank-shape.jpg" alt="..." class="img-rounded img-responsive" ng-click="enableAnnotationToolBar()"> | 447 | + <img src="content/images/blank-shape.jpg" alt="..." class="img-rounded img-responsive" ng-click="disableAnnotationtoolOnListManager||enableAnnotationToolBar()"> |
448 | </div> | 448 | </div> |
449 | <div class="well well-popup"> | 449 | <div class="well well-popup"> |
450 | <div class="" role="group" aria-label="..."> | 450 | <div class="" role="group" aria-label="..."> |
@@ -1394,6 +1394,7 @@ | @@ -1394,6 +1394,7 @@ | ||
1394 | }); | 1394 | }); |
1395 | </script> | 1395 | </script> |
1396 | 1396 | ||
1397 | + | ||
1397 | 1398 | ||
1398 | 1399 | ||
1399 | </body> | 1400 | </body> |