개정판 3797ff05
불필요 주석 및 사용하지 않는 변수 삭제
KCOM/Events/Move.cs | ||
---|---|---|
19 | 19 |
{ |
20 | 20 |
#region 변수 선언 |
21 | 21 |
public SelectControl selectcontrol; |
22 |
private Dictionary<object, Point> Dic; |
|
23 |
RectangleControl rectanglecontrol; |
|
24 |
CircleControl circlecontrol; |
|
25 |
TriControl tricontrol; |
|
26 |
RectCloudControl rectCloudcontrol; |
|
27 |
LineControl linecontrol; |
|
28 |
ArcControl arccontrol; |
|
29 |
ArrowControl_Multi arrowControl_Multi; |
|
30 |
TextControl textcontrol; |
|
31 |
CloudControl cloudcontrol; |
|
32 |
PolygonControl polygoncontrol; |
|
33 |
ArrowTextControl arrowtextcontrol; |
|
34 |
IMarkupCommonData CommonData; |
|
35 | 22 |
Vector rectSize; |
36 | 23 |
Rect itemRect; |
37 | 24 |
Point s_point; |
38 | 25 |
Point e_point; |
39 | 26 |
Rect DragRect; |
40 |
Dictionary<Geometry, string> selected_item; |
|
41 | 27 |
#endregion |
42 | 28 |
|
43 | 29 |
Point[] StartPoint |
... | ... | |
77 | 63 |
} |
78 | 64 |
|
79 | 65 |
|
80 |
#region 아이템 선택 |
|
66 |
/// <summary> |
|
67 |
/// Control Select |
|
68 |
/// </summary> |
|
69 |
/// <param name="Control"></param> |
|
70 |
/// <param name="dragrect"></param> |
|
71 |
/// <returns></returns> |
|
81 | 72 |
public Boolean control_Select(object Control, Rect dragrect) |
82 | 73 |
{ |
83 |
//CommonData = commonData; |
|
84 | 74 |
DragRect = dragrect; |
85 | 75 |
|
86 | 76 |
ItemRect(Control); |
... | ... | |
89 | 79 |
return true; |
90 | 80 |
else |
91 | 81 |
return false; |
92 |
#region 주석 |
|
93 |
|
|
94 |
//switch (commonData.ControlType) |
|
95 |
//{ |
|
96 |
// #region Shape |
|
97 |
// case (ControlType.Rectangle): |
|
98 |
// { |
|
99 |
// Flag = IsSelectionControl((Control as RectangleControl).OverViewPathData); |
|
100 |
// } |
|
101 |
// break; |
|
102 |
// case (ControlType.Circle): |
|
103 |
// { |
|
104 |
// Flag = IsSelectionControl((Control as CircleControl).OverViewPathData); |
|
105 |
// } |
|
106 |
// break; |
|
107 |
// case (ControlType.RectCloud): |
|
108 |
// { |
|
109 |
// Flag = IsSelectionControl((Control as RectCloudControl).OverViewPathData); |
|
110 |
// } |
|
111 |
// break; |
|
112 |
// case (ControlType.Triangle): |
|
113 |
// { |
|
114 |
// Flag = IsSelectionControl((Control as TriControl).OverViewPathData); |
|
115 |
// } |
|
116 |
// break; |
|
117 |
// #endregion |
|
118 |
// #region Line |
|
119 |
// case (ControlType.SingleLine): |
|
120 |
// { |
|
121 |
// Flag = IsSelectionControl((Control as LineControl).OverViewPathData); |
|
122 |
// } |
|
123 |
// break; |
|
124 |
// case (ControlType.ArrowLine): |
|
125 |
// { |
|
126 |
// Flag = IsSelectionControl((Control as LineControl).OverViewPathData); |
|
127 |
// } |
|
128 |
// break; |
|
129 |
// case (ControlType.ArrowMultiLine): |
|
130 |
// { |
|
131 |
// Flag = IsSelectionControl((Control as ArrowControl_Multi).OverViewPathData); |
|
132 |
// } |
|
133 |
// break; |
|
134 |
// case (ControlType.CancelLine): |
|
135 |
// { |
|
136 |
// Flag = IsSelectionControl((Control as LineControl).OverViewPathData); |
|
137 |
// } |
|
138 |
// break; |
|
139 |
// case (ControlType.ChainLine): |
|
140 |
// { |
|
141 |
// Flag = IsSelectionControl((Control as LineControl).OverViewPathData); |
|
142 |
// } |
|
143 |
// break; |
|
144 |
// case (ControlType.DimLine): |
|
145 |
// { |
|
146 |
// Flag = IsSelectionControl((Control as LineControl).OverViewPathData); |
|
147 |
// } |
|
148 |
// break; |
|
149 |
// case (ControlType.TwinLine): |
|
150 |
// { |
|
151 |
// Flag = IsSelectionControl((Control as LineControl).OverViewPathData); |
|
152 |
// } |
|
153 |
// break; |
|
154 |
// case (ControlType.ArcLine): |
|
155 |
// { |
|
156 |
// Flag = IsSelectionControl((Control as ArcControl).OverViewPathData); |
|
157 |
// } |
|
158 |
// break; |
|
159 |
// case (ControlType.ArcArrow): |
|
160 |
// { |
|
161 |
// Flag = IsSelectionControl((Control as ArcControl).OverViewPathData); |
|
162 |
// } |
|
163 |
// break; |
|
164 |
// #endregion |
|
165 |
|
|
166 |
// #region text |
|
167 |
|
|
168 |
// case (ControlType.TextControl): |
|
169 |
// { |
|
170 |
// //IsSelectionControl((Control as TextControl).OverViewPathData); |
|
171 |
// Flag = IsSelectionControl((Control as TextControl).OverViewPathData); |
|
172 |
// } |
|
173 |
// break; |
|
174 |
|
|
175 |
// case (ControlType.TextBorder): |
|
176 |
// { |
|
177 |
// //IsSelectionControl((Control as TextControl).OverViewPathData); |
|
178 |
// Flag = IsSelectionControl((Control as TextControl).OverViewPathData); |
|
179 |
// } |
|
180 |
// break; |
|
181 |
|
|
182 |
// case (ControlType.TextCloud): |
|
183 |
// { |
|
184 |
// //IsSelectionControl((Control as TextControl).OverViewPathData); |
|
185 |
// Flag = IsSelectionControl((Control as TextControl).OverViewPathData); |
|
186 |
// } |
|
187 |
// break; |
|
188 |
// #endregion |
|
189 |
// #region ArrowText |
|
190 |
|
|
191 |
// case (ControlType.ArrowTextControl): |
|
192 |
// { |
|
193 |
// //IsSelectionControl((Control as TextControl).OverViewPathData); |
|
194 |
// Flag = IsSelectionControl((Control as ArrowTextControl).OverViewPathData); |
|
195 |
// } |
|
196 |
// break; |
|
197 |
// case (ControlType.ArrowTextBorderControl): |
|
198 |
// { |
|
199 |
// //IsSelectionControl((Control as TextControl).OverViewPathData); |
|
200 |
// Flag = IsSelectionControl((Control as ArrowTextControl).OverViewPathData); |
|
201 |
// } |
|
202 |
// break; |
|
203 |
// case (ControlType.ArrowTextCloudControl): |
|
204 |
// { |
|
205 |
// //IsSelectionControl((Control as TextControl).OverViewPathData); |
|
206 |
// Flag = IsSelectionControl((Control as ArrowTextControl).OverViewPathData); |
|
207 |
// } |
|
208 |
// break; |
|
209 |
// case (ControlType.ArrowTransTextControl): |
|
210 |
// { |
|
211 |
// //IsSelectionControl((Control as TextControl).OverViewPathData); |
|
212 |
// Flag = IsSelectionControl((Control as ArrowTextControl).OverViewPathData); |
|
213 |
// } |
|
214 |
// break; |
|
215 |
// case (ControlType.ArrowTransTextBorderControl): |
|
216 |
// { |
|
217 |
// //IsSelectionControl((Control as TextControl).OverViewPathData); |
|
218 |
// Flag = IsSelectionControl((Control as ArrowTextControl).OverViewPathData); |
|
219 |
// } |
|
220 |
// break; |
|
221 |
// case (ControlType.ArrowTransTextCloudControl): |
|
222 |
// { |
|
223 |
// //IsSelectionControl((Control as TextControl).OverViewPathData); |
|
224 |
// Flag = IsSelectionControl((Control as ArrowTextControl).OverViewPathData); |
|
225 |
// } |
|
226 |
// break; |
|
227 |
// #endregion |
|
228 |
|
|
229 |
//} |
|
230 |
#endregion |
|
82 |
|
|
231 | 83 |
} |
232 |
#endregion |
|
84 |
|
|
233 | 85 |
|
234 | 86 |
/// <summary> |
235 | 87 |
/// return bounding box of given control |
... | ... | |
632 | 484 |
return itemRect; |
633 | 485 |
} |
634 | 486 |
|
487 |
/// <summary> |
|
488 |
/// Control Select 여부 확인 |
|
489 |
/// </summary> |
|
490 |
/// <param name="OverViewPathData"></param> |
|
491 |
/// <returns>Select여부</returns> |
|
635 | 492 |
public Boolean IsSelectionControl(Geometry OverViewPathData) |
636 | 493 |
{ |
637 | 494 |
if (DragRect.Contains(itemRect)) |
내보내기 Unified diff