Skip to content

Commit 482d67f

Browse files
committed
Релиз 2.3.0.0
1 parent 66d35c4 commit 482d67f

File tree

230 files changed

+81822
-53043
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

230 files changed

+81822
-53043
lines changed

DeclarativeForms/DeclarativeForms/AdditionalDiv.cs

+173
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,87 @@ public string Dir
131131
}
132132
}
133133

134+
public bool movable { get; set; }
135+
[ContextProperty("Перемещаемый", "Movable")]
136+
public bool Movable
137+
{
138+
get { return movable; }
139+
set
140+
{
141+
movable = value;
142+
string strFunc;
143+
if (value)
144+
{
145+
strFunc = "mapKeyEl.get('" + ItemKey + "')['movable'] = " + movable.ToString().ToLower() + ";";
146+
strFunc += @"
147+
mapKeyDraggableEl.set('" + ItemKey + "', mapKeyEl.get('" + ItemKey + @"'));
148+
function dragElement" + ItemKey + @"() {
149+
let elmnt = mapKeyDraggableEl.get('" + ItemKey + @"');
150+
//alert('' + elmnt);
151+
if (elmnt != undefined)
152+
{
153+
var pos1 = 0;
154+
var pos2 = 0;
155+
var pos3 = 0;
156+
var pos4 = 0;
157+
elmnt.onmousedown = dragMouseDown;
158+
function dragMouseDown(e)
159+
{
160+
e = e || window.event;
161+
e.preventDefault();
162+
pos3 = e.clientX;
163+
pos4 = e.clientY;
164+
document.onmouseup = closeDragElement;
165+
document.onmousemove = elementDrag;
166+
}
167+
function elementDrag(e)
168+
{
169+
e = e || window.event;
170+
e.preventDefault();
171+
pos1 = pos3 - e.clientX;
172+
pos2 = pos4 - e.clientY;
173+
pos3 = e.clientX;
174+
pos4 = e.clientY;
175+
elmnt.style.top = (elmnt.offsetTop - pos2) + 'px';
176+
elmnt.style.left = (elmnt.offsetLeft - pos1) + 'px';
177+
}
178+
function closeDragElement()
179+
{
180+
document.onmouseup = null;
181+
document.onmousemove = null;
182+
}
183+
}
184+
else
185+
{
186+
mapKeyEl.get('" + ItemKey + @"').onmousedown = null;
187+
}
188+
}
189+
dragElement" + ItemKey + "();";
190+
}
191+
else
192+
{
193+
strFunc = @"
194+
mapKeyDraggableEl.delete('" + ItemKey + @"');
195+
function dragElement" + ItemKey + @"() { mapKeyEl.get('" + ItemKey + @"').onmousedown = null; }
196+
dragElement" + ItemKey + "();";
197+
}
198+
DeclarativeForms.SendStrFunc(strFunc);
199+
}
200+
}
201+
202+
public bool draggable { get; set; }
203+
[ContextProperty("Перетаскиваемый", "Draggable")]
204+
public bool Draggable
205+
{
206+
get { return draggable; }
207+
set
208+
{
209+
draggable = value;
210+
string strFunc = "mapKeyEl.get('" + ItemKey + "')['draggable'] = " + draggable.ToString().ToLower() + ";";
211+
DeclarativeForms.SendStrFunc(strFunc);
212+
}
213+
}
214+
134215
public int tabIndex { get; set; }
135216
[ContextProperty("ПорядокОбхода", "TabIndex")]
136217
public int TabIndex
@@ -243,6 +324,20 @@ public ArrayImpl Children
243324
get { return children; }
244325
}
245326

327+
public DfAction drop { get; set; }
328+
[ContextProperty("Бросить", "Drop")]
329+
public DfAction Drop
330+
{
331+
get { return drop; }
332+
set
333+
{
334+
drop = value;
335+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022drop\u0022, doEvent);";
336+
strFunc += "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022dragover\u0022, doEvent);";
337+
DeclarativeForms.SendStrFunc(strFunc);
338+
}
339+
}
340+
246341
public DfAction dblclick { get; set; }
247342
[ContextProperty("ДвойноеНажатие", "DoubleClick")]
248343
public DfAction DoubleClick
@@ -256,6 +351,19 @@ public DfAction DoubleClick
256351
}
257352
}
258353

354+
public DfAction dragend { get; set; }
355+
[ContextProperty("КонецПеретаскивания", "DragEnd")]
356+
public DfAction DragEnd
357+
{
358+
get { return dragend; }
359+
set
360+
{
361+
dragend = value;
362+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022dragend\u0022, doEvent);";
363+
DeclarativeForms.SendStrFunc(strFunc);
364+
}
365+
}
366+
259367
public DfAction mouseover { get; set; }
260368
[ContextProperty("МышьНадЭлементом", "MouseOver")]
261369
public DfAction MouseOver
@@ -282,6 +390,19 @@ public DfAction MouseOut
282390
}
283391
}
284392

393+
public DfAction dragenter { get; set; }
394+
[ContextProperty("НадЦелью", "DragEnter")]
395+
public DfAction DragEnter
396+
{
397+
get { return dragenter; }
398+
set
399+
{
400+
dragenter = value;
401+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022dragenter\u0022, doEvent);";
402+
DeclarativeForms.SendStrFunc(strFunc);
403+
}
404+
}
405+
285406
public DfAction click { get; set; }
286407
[ContextProperty("Нажатие", "Click")]
287408
public DfAction Click
@@ -295,6 +416,32 @@ public DfAction Click
295416
}
296417
}
297418

419+
public DfAction dragstart { get; set; }
420+
[ContextProperty("НачалоПеретаскивания", "DragStart")]
421+
public DfAction DragStart
422+
{
423+
get { return dragstart; }
424+
set
425+
{
426+
dragstart = value;
427+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022dragstart\u0022, doEvent);";
428+
DeclarativeForms.SendStrFunc(strFunc);
429+
}
430+
}
431+
432+
public DfAction mousedown { get; set; }
433+
[ContextProperty("ПриНажатииМыши", "MouseDown")]
434+
public DfAction MouseDown
435+
{
436+
get { return mousedown; }
437+
set
438+
{
439+
mousedown = value;
440+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022mousedown\u0022, doEvent);";
441+
DeclarativeForms.SendStrFunc(strFunc);
442+
}
443+
}
444+
298445
public DfAction mouseup { get; set; }
299446
[ContextProperty("ПриОтпусканииМыши", "MouseUp")]
300447
public DfAction MouseUp
@@ -308,6 +455,19 @@ public DfAction MouseUp
308455
}
309456
}
310457

458+
public DfAction mousemove { get; set; }
459+
[ContextProperty("ПриПеремещенииМыши", "MouseMove")]
460+
public DfAction MouseMove
461+
{
462+
get { return mousemove; }
463+
set
464+
{
465+
mousemove = value;
466+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022mousemove\u0022, doEvent);";
467+
DeclarativeForms.SendStrFunc(strFunc);
468+
}
469+
}
470+
311471
public DfAction focus { get; set; }
312472
[ContextProperty("ФокусПолучен", "Focused")]
313473
public DfAction Focused
@@ -334,6 +494,19 @@ public DfAction LostFocus
334494
}
335495
}
336496

497+
public DfAction dragleave { get; set; }
498+
[ContextProperty("ЦельПокинута", "DragLeave")]
499+
public DfAction DragLeave
500+
{
501+
get { return dragleave; }
502+
set
503+
{
504+
dragleave = value;
505+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022dragleave\u0022, doEvent);";
506+
DeclarativeForms.SendStrFunc(strFunc);
507+
}
508+
}
509+
337510
[ContextMethod("Анимация", "Animation")]
338511
public DfAnimation Animation(DfFrames p1, DfAnimationOptions p2)
339512
{

DeclarativeForms/DeclarativeForms/Area.cs

+26
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,19 @@ public DfAction Click
340340
}
341341
}
342342

343+
public DfAction mousedown { get; set; }
344+
[ContextProperty("ПриНажатииМыши", "MouseDown")]
345+
public DfAction MouseDown
346+
{
347+
get { return mousedown; }
348+
set
349+
{
350+
mousedown = value;
351+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022mousedown\u0022, doEvent);";
352+
DeclarativeForms.SendStrFunc(strFunc);
353+
}
354+
}
355+
343356
public DfAction mouseup { get; set; }
344357
[ContextProperty("ПриОтпусканииМыши", "MouseUp")]
345358
public DfAction MouseUp
@@ -353,6 +366,19 @@ public DfAction MouseUp
353366
}
354367
}
355368

369+
public DfAction mousemove { get; set; }
370+
[ContextProperty("ПриПеремещенииМыши", "MouseMove")]
371+
public DfAction MouseMove
372+
{
373+
get { return mousemove; }
374+
set
375+
{
376+
mousemove = value;
377+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022mousemove\u0022, doEvent);";
378+
DeclarativeForms.SendStrFunc(strFunc);
379+
}
380+
}
381+
356382
[ContextMethod("ДвойноеНажатие", "DoubleClick")]
357383
public void DoubleClick2()
358384
{

0 commit comments

Comments
 (0)