프로젝트

일반

사용자정보

개정판 f06cce07

IDf06cce075157cf3ac666534d98ae950db3fe1f18
상위 f87dfb18
하위 91e84544

김태성이(가) 약 5년 전에 추가함

CTRL+마우스휠 : 이미지 상하 이동

Change-Id: I94b4f84a8bab8e9612e50c4f19b0d4bc957f8149

차이점 보기:

KCOM/Events/Event_KeyEvent.cs
288 288

  
289 289
                                    if ((e.Key == Key.NumPad5) || (e.Key == Key.Down))
290 290
                                    {
291
                                        if (instance.ContentHeight > instance.ContentOffsetY)
291
                                        if (instance.ContentHeight > instance.ContentOffsetY + instance.ContentViewportHeight)
292 292
                                        {
293 293
                                            IsMovePossibility = true;
294 294
                                        }
......
309 309
                                    }
310 310
                                    else if ((e.Key == Key.NumPad6) || (e.Key == Key.Right))
311 311
                                    {
312
                                        if (instance.ContentWidth > instance.ContentOffsetX)
312
                                        if (instance.ContentWidth > instance.ContentOffsetX + instance.ContentViewportWidth)
313 313
                                        {
314 314
                                            IsMovePossibility = true;
315 315
                                        }
KCOM/Views/MainMenu.xaml.cs
905 905

  
906 906
        private void zoomAndPanControl_MouseWheel(object sender, MouseWheelEventArgs e)
907 907
        {
908
            if (ViewerDataModel.Instance.IsPressCtrl)
908
            var instance = ViewerDataModel.Instance;
909

  
910
            if (instance.IsPressCtrl)
909 911
            {
910 912
                if (e.Delta > 0)
911 913
                {
912
                    pageNavigator.GotoPage(Convert.ToInt32(Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator.CurrentPage.PageNumber) - 1);
914
                    if (0 < instance.ContentOffsetY + instance.ContentViewportHeight)
915
                    {
916
                        Vector dragOffset = new Vector(0, e.Delta);
917
                        MoveZoomAndPanControl(dragOffset);
918
                    }
919
                    //else
920
                    //{
921
                    //    pageNavigator.GotoPage(Convert.ToInt32(Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator.CurrentPage.PageNumber) - 1);
922
                    //}
913 923
                }
914
                else
924
                else if(e.Delta < 0)
915 925
                {
916
                    pageNavigator.GotoPage(Convert.ToInt32(Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator.CurrentPage.PageNumber) + 1);
926
                    if (instance.ContentHeight > instance.ContentOffsetY + instance.ContentViewportHeight)
927
                    {
928
                        Vector dragOffset = new Vector(0,e.Delta);
929
                        MoveZoomAndPanControl(dragOffset);
930
                    }
931
                    //else
932
                    //{
933
                    //    pageNavigator.GotoPage(Convert.ToInt32(Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator.CurrentPage.PageNumber) + 1);
934
                    //}
917 935
                }
918

  
919 936
            }
920 937
            else
921 938
            {
KCOM_API/HtmlPage1.html
1
<html>
2
<head>
3
    <script type="text/javascript" src="Scripts/json2.js"></script>
4
    <script type="text/javascript" src="Scripts/webtoolkit.base64.js"></script>
5
    <script language="JavaScript" type="text/javascript">
6

  
7
$(window).load(function () {
8
	var parm = {
9
                        DocumentItemID : DocumentItemID,
10
                        bPartner : false,
11
                        CreateFinalPDFPermission : bCreatFinalPDFPermission,
12
                        NewCommentPermission : bNewCommentPermission,
13
                        ProjectNO : ProjectNo,
14
                        UserID : UserID,
15
                        Mode : 0
16
                     };
17
                     var parm_str = JSON.stringify(parm);
18
                     var encoding_str = Base64.encode(parm_str);
19

  
20

  
21
var url = "KCOM://"+encoding_str;
22
location.href = url;
23
}
24
//---- Extract value that posted on parameterName
25
function getParameter (strValue, parameterName, sep) {
26
	strValue = RTrim(LTrim(strValue));
27
	var lists = strValue.split(sep);
28
	for (var i=0; i < lists.length; i++) {
29
		if (Left(lists[i], "=").toLowerCase() == parameterName.toLowerCase()) {
30
			return (Right(lists[i], "="));
31
		}
32
	}
33
	return "";
34
}
35
//----Extraction left string
36
function Left(SourceStr, FindStr) {
37
	Index = SourceStr.indexOf(FindStr);
38
	if(Index < 0) {
39
		return ("");
40
	}else{
41
		return (SourceStr.substring(0, Index));
42
	}
43
}
44
//-----Extraction right string
45
function Right(SourceStr, FindStr) {
46
	Index = SourceStr.indexOf(FindStr);
47
	if(Index < 0) {
48
		return ("");
49
	}else{
50
		Len = SourceStr.length;
51
		return(SourceStr.substring(Index+FindStr.length, Len));
52
	}
53
}
54
//----Elimination empty string value
55
function Trim(SourceStr) {
56
	newStr = SourceStr.replace(/ /gi, "");
57
	return (newStr);
58
}
59
//----Elimination left empty string value
60
function LTrim(value) {
61
	var pos = 0;
62
	for(var i=0; i < value.length; i++) {
63
		if(value.substr(i,1) != " ") { pos = i; break; }
64
	}
65
	return (value.substring(pos, value.length));
66
}
67
//----Elimination right empty string value
68
function RTrim(value) {
69
	var pos = 0;
70
	for(var i=value.length-1; i >= 0; i--) {
71
		if(value.substr(i,1) != " ") { pos = i; break; }
72
	}
73
	return (value.substring(0, pos+1));
74
}
75
// -->
76
    </script>
77
</head>
78
<body text="#000000" bgcolor="#FFFFFF" onload="init();">
79

  
80
    <script>
81
var ACTION = getParameter(location.search, "action", "&");
82
var CALLBACK = getParameter(location.search, "callback", "&");
83
var TARGET_HOST = getParameter(location.search, "host", "&");
84
var ProjectNo = getParameter(location.search, "ProjectNo", "&");
85
var UserID = getParameter(location.search, "UserID", "&");
86
var DocumentItemID = getParameter(location.search, "DocumentItemID", "&");
87
var bNewCommentPermission = getParameter(location.search, "NewCommentPermission", "&");
88
var bCreatFinalPDFPermission = getParameter(location.search, "CreateFinalPDFPermission", "&");
89
var bPartner = getParameter(location.search, "bPartner", "&");
90
var locationY = getParameter(location.search, "locationY", "&");
91
    </script>
92
    <DIV ID="PersistData" style="behavior:url(#default#userdata);"></DIV>
93

  
94
</body>
95
</html>
KCOM_API/KCOM_API.csproj
84 84
    </Reference>
85 85
  </ItemGroup>
86 86
  <ItemGroup>
87
    <Content Include="HtmlPage1.html" />
87 88
    <Content Include="License-LGPL.txt" />
88 89
    <Content Include="MarkusService.svc" />
89 90
    <Content Include="ServiceDeepView.svc" />

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)