Commit 499636be8b4fafd29d0662133bf3675af6f2dc7c

Authored by Nikita Kulshreshtha
2 parents b11818b4 eac09189

Merge branch 'Develop' of http://52.6.196.163/ADAM/AIAHTML5 into Develop

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -3907,6 +3907,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -3907,6 +3907,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
3907 // console.log("extract button is active"); 3907 // console.log("extract button is active");
3908 3908
3909 } 3909 }
  3910 +
  3911 +
3910 //in case of annotation toolbar is open below code will be executed to draw Tbox 3912 //in case of annotation toolbar is open below code will be executed to draw Tbox
3911 if ($rootScope.isAnnotationWindowOpen == true) { 3913 if ($rootScope.isAnnotationWindowOpen == true) {
3912 if ($rootScope.isAnnotaionToolBarDrawingModeActive == true) { 3914 if ($rootScope.isAnnotaionToolBarDrawingModeActive == true) {
@@ -5649,15 +5651,23 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -5649,15 +5651,23 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
5649 5651
5650 //for enabling annoataions. 5652 //for enabling annoataions.
5651 //Now everything si done on canavases uswed in annotation toolbar. 5653 //Now everything si done on canavases uswed in annotation toolbar.
5652 -  
5653 - if (parseInt($("#canvasPaint").css("z-index")) > parseInt($("#canvas").css("z-index")))  
5654 - {  
5655 - $rootScope.switchCanvasToPaintCanvas(); 5654 +
  5655 + $rootScope.switchCanvas();
  5656 + if ($rootScope.isAnnotaionToolBarDrawingModeActive == true) {
  5657 +
  5658 + $("#OnIdentify").removeClass('annotationtoolbartab');
  5659 + $("#DrawMode").addClass('annotationtoolbartab');
  5660 + //$('.btnCursor').trigger('click');
  5661 + $("#annotationpaintbrushsize").removeClass("activebtncolor");
  5662 + $('.btnCursor').addClass('activebtncolor');
  5663 +
5656 } 5664 }
5657 - else  
5658 - {  
5659 - $rootScope.switchCanvas(); 5665 + else {
  5666 +
  5667 + $("#OnIdentify").addClass('annotationtoolbartab');
  5668 + $("#DrawMode").removeClass('annotationtoolbartab');
5660 } 5669 }
  5670 +
5661 // $rootScope.switchCanvas(); 5671 // $rootScope.switchCanvas();
5662 //To enable extract button 5672 //To enable extract button
5663 $scope.isTransparencyActivated = false; 5673 $scope.isTransparencyActivated = false;
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
@@ -670,8 +670,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -670,8 +670,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
670 $('.btnCursor').removeClass('activebtncolor'); 670 $('.btnCursor').removeClass('activebtncolor');
671 $(".btn-annotation").removeClass("activebtncolor"); 671 $(".btn-annotation").removeClass("activebtncolor");
672 $(".btn-annotation-line").addClass("activebtncolor"); 672 $(".btn-annotation-line").addClass("activebtncolor");
673 -  
674 - 673 + $("#OnIdentify").removeClass('annotationtoolbartab');
  674 + $("#DrawMode").addClass('annotationtoolbartab');
  675 + $rootScope.isAnnotaionToolBarDrawingModeActive = true;
675 } 676 }
676 677
677 678
@@ -687,6 +688,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -687,6 +688,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
687 $('.btnCursor').removeClass('activebtncolor'); 688 $('.btnCursor').removeClass('activebtncolor');
688 $(".btn-annotation").removeClass("activebtncolor"); 689 $(".btn-annotation").removeClass("activebtncolor");
689 $(".btn-annotation-pin").addClass("activebtncolor"); 690 $(".btn-annotation-pin").addClass("activebtncolor");
  691 + $("#OnIdentify").removeClass('annotationtoolbartab');
  692 + $("#DrawMode").addClass('annotationtoolbartab');
  693 + $rootScope.isAnnotaionToolBarDrawingModeActive = true;
690 } 694 }
691 695
692 $rootScope.Cursor = function () { 696 $rootScope.Cursor = function () {
@@ -696,6 +700,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -696,6 +700,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
696 $(".btn-annotation").removeClass("activebtncolor"); 700 $(".btn-annotation").removeClass("activebtncolor");
697 // $("#" + e.currentTarget.id).removeClass("activebtncolor"); 701 // $("#" + e.currentTarget.id).removeClass("activebtncolor");
698 $('.btnCursor').addClass('activebtncolor'); 702 $('.btnCursor').addClass('activebtncolor');
  703 + $("#OnIdentify").removeClass('annotationtoolbartab');
  704 + $("#DrawMode").addClass('annotationtoolbartab');
  705 + $rootScope.isAnnotaionToolBarDrawingModeActive = true;
699 } 706 }
700 707
701 708
@@ -708,10 +715,13 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -708,10 +715,13 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
708 $('.btnCursor').removeClass('activebtncolor'); 715 $('.btnCursor').removeClass('activebtncolor');
709 $(".btn-annotation").removeClass("activebtncolor"); 716 $(".btn-annotation").removeClass("activebtncolor");
710 $(".btn-annotation-rectangle").addClass("activebtncolor"); 717 $(".btn-annotation-rectangle").addClass("activebtncolor");
  718 + $("#OnIdentify").removeClass('annotationtoolbartab');
  719 + $("#DrawMode").addClass('annotationtoolbartab');
  720 + $rootScope.isAnnotaionToolBarDrawingModeActive = true;
711 } 721 }
712 722
713 $rootScope.paintBrush = function () { 723 $rootScope.paintBrush = function () {
714 - $rootScope.isAnnotaionToolBarDrawingModeActive = false; 724 + $rootScope.isAnnotaionToolBarDrawingModeActive = true;
715 if ($rootScope.disableAnnotationtoolOnListManager == true) { 725 if ($rootScope.disableAnnotationtoolOnListManager == true) {
716 $rootScope.switchCanvas(); 726 $rootScope.switchCanvas();
717 var canvasPaintZindex = $('#canvasPaint').css("z-index"); //x 727 var canvasPaintZindex = $('#canvasPaint').css("z-index"); //x
@@ -764,7 +774,8 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -764,7 +774,8 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
764 $('.btnCursor').removeClass('activebtncolor'); 774 $('.btnCursor').removeClass('activebtncolor');
765 $(".btn-annotation").removeClass("activebtncolor"); 775 $(".btn-annotation").removeClass("activebtncolor");
766 $(".btn-annotation-brush").addClass("activebtncolor"); 776 $(".btn-annotation-brush").addClass("activebtncolor");
767 - 777 + $("#OnIdentify").removeClass('annotationtoolbartab');
  778 + $("#DrawMode").addClass('annotationtoolbartab');
768 } 779 }
769 780
770 $rootScope.switchCanvasToPaintCanvas = function (e) { 781 $rootScope.switchCanvasToPaintCanvas = function (e) {
@@ -789,6 +800,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -789,6 +800,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
789 $('.btnCursor').removeClass('activebtncolor'); 800 $('.btnCursor').removeClass('activebtncolor');
790 $(".btn-annotation").removeClass("activebtncolor"); 801 $(".btn-annotation").removeClass("activebtncolor");
791 $(".btn-annotation-circle").addClass("activebtncolor"); 802 $(".btn-annotation-circle").addClass("activebtncolor");
  803 + $("#OnIdentify").removeClass('annotationtoolbartab');
  804 + $("#DrawMode").addClass('annotationtoolbartab');
  805 + $rootScope.isAnnotaionToolBarDrawingModeActive = true;
792 } 806 }
793 807
794 $rootScope.DrawArrow = function (e) { 808 $rootScope.DrawArrow = function (e) {
@@ -800,6 +814,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -800,6 +814,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
800 $('.btnCursor').removeClass('activebtncolor'); 814 $('.btnCursor').removeClass('activebtncolor');
801 $(".btn-annotation").removeClass("activebtncolor"); 815 $(".btn-annotation").removeClass("activebtncolor");
802 $(".btn-annotation-arrow").addClass("activebtncolor"); 816 $(".btn-annotation-arrow").addClass("activebtncolor");
  817 + $("#OnIdentify").removeClass('annotationtoolbartab');
  818 + $("#DrawMode").addClass('annotationtoolbartab');
  819 + $rootScope.isAnnotaionToolBarDrawingModeActive = true;
803 } 820 }
804 $rootScope.DrawText = function () { 821 $rootScope.DrawText = function () {
805 822
@@ -812,6 +829,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -812,6 +829,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
812 $('.btnCursor').removeClass('activebtncolor'); 829 $('.btnCursor').removeClass('activebtncolor');
813 $(".btn-annotation").removeClass("activebtncolor"); 830 $(".btn-annotation").removeClass("activebtncolor");
814 $(".btn-annotation-Text").addClass("activebtncolor"); 831 $(".btn-annotation-Text").addClass("activebtncolor");
  832 + $("#OnIdentify").removeClass('annotationtoolbartab');
  833 + $("#DrawMode").addClass('annotationtoolbartab');
  834 + $rootScope.isAnnotaionToolBarDrawingModeActive = true;
815 } 835 }
816 836
817 $rootScope.DrawPolygon = function () { 837 $rootScope.DrawPolygon = function () {
@@ -819,6 +839,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -819,6 +839,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
819 $("#canvasPaint").css("display", "block"); 839 $("#canvasPaint").css("display", "block");
820 $("#canvas").css("display", "block"); 840 $("#canvas").css("display", "block");
821 $rootScope.shapeType = "DrawPolygon"; 841 $rootScope.shapeType = "DrawPolygon";
  842 + $("#OnIdentify").removeClass('annotationtoolbartab');
  843 + $("#DrawMode").addClass('annotationtoolbartab');
  844 + $rootScope.isAnnotaionToolBarDrawingModeActive = true;
822 } 845 }
823 846
824 847
@@ -841,6 +864,8 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -841,6 +864,8 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
841 $('.btnCursor').removeClass('activebtncolor'); 864 $('.btnCursor').removeClass('activebtncolor');
842 $(".btn-annotation").removeClass("activebtncolor"); 865 $(".btn-annotation").removeClass("activebtncolor");
843 $(".btn-annotation-erase").addClass("activebtncolor"); 866 $(".btn-annotation-erase").addClass("activebtncolor");
  867 + $("#OnIdentify").removeClass('annotationtoolbartab');
  868 + $("#DrawMode").addClass('annotationtoolbartab');
844 869
845 } 870 }
846 871