Skip to content

Commit d5aadbc

Browse files
committed
Релиз 1.0.0.0
1 parent 733b7c3 commit d5aadbc

File tree

333 files changed

+12963
-2178
lines changed

Some content is hidden

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

333 files changed

+12963
-2178
lines changed

DeclarativeForms/DeclarativeForms/Action.cs

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using ScriptEngine.Machine.Contexts;
22
using ScriptEngine.Machine;
3+
using System.IO;
34

45
namespace osdf
56
{
@@ -11,12 +12,23 @@ public DfAction(IRuntimeContextInstance script, string methodName, IValue param
1112
Script = script;
1213
MethodName = methodName;
1314
Parameter = param;
15+
16+
ItemKey = "d" + Path.GetRandomFileName().Replace(".", "");
17+
DeclarativeForms.AddToHashtable(ItemKey, this);
1418
}
1519

1620
public DfAction()
1721
{
1822
}
1923

24+
private string itemKey;
25+
[ContextProperty("КлючЭлемента", "ItemKey")]
26+
public string ItemKey
27+
{
28+
get { return itemKey; }
29+
private set { itemKey = value; }
30+
}
31+
2032
[ContextProperty("ИмяМетода", "MethodName")]
2133
public string MethodName { get; set; }
2234

DeclarativeForms/DeclarativeForms/AdditionalDiv.cs

+26
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,32 @@ public DfAction DoubleClick
262262
}
263263
}
264264

265+
public DfAction mouseover;
266+
[ContextProperty("МышьНадЭлементом", "MouseOver")]
267+
public DfAction MouseOver
268+
{
269+
get { return mouseover; }
270+
set
271+
{
272+
mouseover = value;
273+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022mouseover\u0022, doEvent);";
274+
DeclarativeForms.strFunctions = DeclarativeForms.strFunctions + strFunc + DeclarativeForms.funDelimiter;
275+
}
276+
}
277+
278+
public DfAction mouseout;
279+
[ContextProperty("МышьПокинулаЭлемент", "MouseOut")]
280+
public DfAction MouseOut
281+
{
282+
get { return mouseout; }
283+
set
284+
{
285+
mouseout = value;
286+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022mouseout\u0022, doEvent);";
287+
DeclarativeForms.strFunctions = DeclarativeForms.strFunctions + strFunc + DeclarativeForms.funDelimiter;
288+
}
289+
}
290+
265291
public DfAction click;
266292
[ContextProperty("Нажатие", "Click")]
267293
public DfAction Click

DeclarativeForms/DeclarativeForms/Area.cs

+26
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,32 @@ public DfAction DoubleClick
333333
}
334334
}
335335

336+
public DfAction mouseover;
337+
[ContextProperty("МышьНадЭлементом", "MouseOver")]
338+
public DfAction MouseOver
339+
{
340+
get { return mouseover; }
341+
set
342+
{
343+
mouseover = value;
344+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022mouseover\u0022, doEvent);";
345+
DeclarativeForms.strFunctions = DeclarativeForms.strFunctions + strFunc + DeclarativeForms.funDelimiter;
346+
}
347+
}
348+
349+
public DfAction mouseout;
350+
[ContextProperty("МышьПокинулаЭлемент", "MouseOut")]
351+
public DfAction MouseOut
352+
{
353+
get { return mouseout; }
354+
set
355+
{
356+
mouseout = value;
357+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022mouseout\u0022, doEvent);";
358+
DeclarativeForms.strFunctions = DeclarativeForms.strFunctions + strFunc + DeclarativeForms.funDelimiter;
359+
}
360+
}
361+
336362
public DfAction click;
337363
[ContextProperty("Нажатие", "Click")]
338364
public DfAction Click

DeclarativeForms/DeclarativeForms/Audio.cs

+26
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,32 @@ public DfAction DoubleClick
329329
}
330330
}
331331

332+
public DfAction mouseover;
333+
[ContextProperty("МышьНадЭлементом", "MouseOver")]
334+
public DfAction MouseOver
335+
{
336+
get { return mouseover; }
337+
set
338+
{
339+
mouseover = value;
340+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022mouseover\u0022, doEvent);";
341+
DeclarativeForms.strFunctions = DeclarativeForms.strFunctions + strFunc + DeclarativeForms.funDelimiter;
342+
}
343+
}
344+
345+
public DfAction mouseout;
346+
[ContextProperty("МышьПокинулаЭлемент", "MouseOut")]
347+
public DfAction MouseOut
348+
{
349+
get { return mouseout; }
350+
set
351+
{
352+
mouseout = value;
353+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022mouseout\u0022, doEvent);";
354+
DeclarativeForms.strFunctions = DeclarativeForms.strFunctions + strFunc + DeclarativeForms.funDelimiter;
355+
}
356+
}
357+
332358
public DfAction click;
333359
[ContextProperty("Нажатие", "Click")]
334360
public DfAction Click
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
using ScriptEngine.Machine.Contexts;
2+
using ScriptEngine.Machine;
3+
using System.Reflection;
4+
5+
namespace osdf
6+
{
7+
[ContextClass("ДфФон", "DfBackground")]
8+
public class DfBackground : AutoContext<DfBackground>
9+
{
10+
public DfBackground(IValue p1, IValue p2, IValue p3, IValue p4, IValue p5, IValue p6, IValue p7, IValue p8)
11+
{
12+
BackgroundColor = p1;
13+
BackgroundImage = p2;
14+
BackgroundRepeat = p3;
15+
BackgroundPosition = p4;
16+
BackgroundOrigin = p5;
17+
BackgroundClip = p6;
18+
BackgroundSize = p7;
19+
BackgroundAttachment = p8;
20+
}
21+
22+
public PropertyInfo this[string p1]
23+
{
24+
get { return this.GetType().GetProperty(p1); }
25+
}
26+
27+
private IValue backgroundColor;
28+
[ContextProperty("ЦветФона", "BackgroundColor")]
29+
public IValue BackgroundColor
30+
{
31+
get { return backgroundColor; }
32+
set { backgroundColor = value; }
33+
}
34+
35+
private IValue backgroundImage;
36+
[ContextProperty("ФоновоеИзображение", "BackgroundImage")]
37+
public IValue BackgroundImage
38+
{
39+
get { return backgroundImage; }
40+
set { backgroundImage = value; }
41+
}
42+
43+
private IValue backgroundRepeat;
44+
[ContextProperty("МозаикаКартинки", "BackgroundRepeat")]
45+
public IValue BackgroundRepeat
46+
{
47+
get { return backgroundRepeat; }
48+
set { backgroundRepeat = value; }
49+
}
50+
51+
private IValue backgroundPosition;
52+
[ContextProperty("ПоложениеКартинки", "BackgroundPosition")]
53+
public IValue BackgroundPosition
54+
{
55+
get { return backgroundPosition; }
56+
set { backgroundPosition = value; }
57+
}
58+
59+
private IValue backgroundOrigin;
60+
[ContextProperty("ОбластьКартинки", "BackgroundOrigin")]
61+
public IValue BackgroundOrigin
62+
{
63+
get { return backgroundOrigin; }
64+
set { backgroundOrigin = value; }
65+
}
66+
67+
private IValue backgroundClip;
68+
[ContextProperty("ОбластьРисования", "BackgroundClip")]
69+
public IValue BackgroundClip
70+
{
71+
get { return backgroundClip; }
72+
set { backgroundClip = value; }
73+
}
74+
75+
private IValue backgroundSize;
76+
[ContextProperty("РазмерКартинки", "BackgroundSize")]
77+
public IValue BackgroundSize
78+
{
79+
get { return backgroundSize; }
80+
set { backgroundSize = value; }
81+
}
82+
83+
private IValue backgroundAttachment;
84+
[ContextProperty("ФоновоеВложение", "BackgroundAttachment")]
85+
public IValue BackgroundAttachment
86+
{
87+
get { return backgroundAttachment; }
88+
set { backgroundAttachment = value; }
89+
}
90+
}
91+
}

DeclarativeForms/DeclarativeForms/Body.cs

+26
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,32 @@ public DfAction DoubleClick
257257
}
258258
}
259259

260+
public DfAction mouseover;
261+
[ContextProperty("МышьНадЭлементом", "MouseOver")]
262+
public DfAction MouseOver
263+
{
264+
get { return mouseover; }
265+
set
266+
{
267+
mouseover = value;
268+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022mouseover\u0022, doEvent);";
269+
DeclarativeForms.strFunctions = DeclarativeForms.strFunctions + strFunc + DeclarativeForms.funDelimiter;
270+
}
271+
}
272+
273+
public DfAction mouseout;
274+
[ContextProperty("МышьПокинулаЭлемент", "MouseOut")]
275+
public DfAction MouseOut
276+
{
277+
get { return mouseout; }
278+
set
279+
{
280+
mouseout = value;
281+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022mouseout\u0022, doEvent);";
282+
DeclarativeForms.strFunctions = DeclarativeForms.strFunctions + strFunc + DeclarativeForms.funDelimiter;
283+
}
284+
}
285+
260286
public DfAction click;
261287
[ContextProperty("Нажатие", "Click")]
262288
public DfAction Click

DeclarativeForms/DeclarativeForms/BoldText.cs

+26
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,32 @@ public DfAction DoubleClick
262262
}
263263
}
264264

265+
public DfAction mouseover;
266+
[ContextProperty("МышьНадЭлементом", "MouseOver")]
267+
public DfAction MouseOver
268+
{
269+
get { return mouseover; }
270+
set
271+
{
272+
mouseover = value;
273+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022mouseover\u0022, doEvent);";
274+
DeclarativeForms.strFunctions = DeclarativeForms.strFunctions + strFunc + DeclarativeForms.funDelimiter;
275+
}
276+
}
277+
278+
public DfAction mouseout;
279+
[ContextProperty("МышьПокинулаЭлемент", "MouseOut")]
280+
public DfAction MouseOut
281+
{
282+
get { return mouseout; }
283+
set
284+
{
285+
mouseout = value;
286+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022mouseout\u0022, doEvent);";
287+
DeclarativeForms.strFunctions = DeclarativeForms.strFunctions + strFunc + DeclarativeForms.funDelimiter;
288+
}
289+
}
290+
265291
public DfAction click;
266292
[ContextProperty("Нажатие", "Click")]
267293
public DfAction Click

DeclarativeForms/DeclarativeForms/Button.cs

+26
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,32 @@ public DfAction DoubleClick
304304
}
305305
}
306306

307+
public DfAction mouseover;
308+
[ContextProperty("МышьНадЭлементом", "MouseOver")]
309+
public DfAction MouseOver
310+
{
311+
get { return mouseover; }
312+
set
313+
{
314+
mouseover = value;
315+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022mouseover\u0022, doEvent);";
316+
DeclarativeForms.strFunctions = DeclarativeForms.strFunctions + strFunc + DeclarativeForms.funDelimiter;
317+
}
318+
}
319+
320+
public DfAction mouseout;
321+
[ContextProperty("МышьПокинулаЭлемент", "MouseOut")]
322+
public DfAction MouseOut
323+
{
324+
get { return mouseout; }
325+
set
326+
{
327+
mouseout = value;
328+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022mouseout\u0022, doEvent);";
329+
DeclarativeForms.strFunctions = DeclarativeForms.strFunctions + strFunc + DeclarativeForms.funDelimiter;
330+
}
331+
}
332+
307333
public DfAction click;
308334
[ContextProperty("Нажатие", "Click")]
309335
public DfAction Click

DeclarativeForms/DeclarativeForms/Canvas.cs

+26
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,32 @@ public DfAction DoubleClick
274274
}
275275
}
276276

277+
public DfAction mouseover;
278+
[ContextProperty("МышьНадЭлементом", "MouseOver")]
279+
public DfAction MouseOver
280+
{
281+
get { return mouseover; }
282+
set
283+
{
284+
mouseover = value;
285+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022mouseover\u0022, doEvent);";
286+
DeclarativeForms.strFunctions = DeclarativeForms.strFunctions + strFunc + DeclarativeForms.funDelimiter;
287+
}
288+
}
289+
290+
public DfAction mouseout;
291+
[ContextProperty("МышьПокинулаЭлемент", "MouseOut")]
292+
public DfAction MouseOut
293+
{
294+
get { return mouseout; }
295+
set
296+
{
297+
mouseout = value;
298+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022mouseout\u0022, doEvent);";
299+
DeclarativeForms.strFunctions = DeclarativeForms.strFunctions + strFunc + DeclarativeForms.funDelimiter;
300+
}
301+
}
302+
277303
public DfAction click;
278304
[ContextProperty("Нажатие", "Click")]
279305
public DfAction Click

DeclarativeForms/DeclarativeForms/Caption.cs

+26
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,32 @@ public DfAction DoubleClick
262262
}
263263
}
264264

265+
public DfAction mouseover;
266+
[ContextProperty("МышьНадЭлементом", "MouseOver")]
267+
public DfAction MouseOver
268+
{
269+
get { return mouseover; }
270+
set
271+
{
272+
mouseover = value;
273+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022mouseover\u0022, doEvent);";
274+
DeclarativeForms.strFunctions = DeclarativeForms.strFunctions + strFunc + DeclarativeForms.funDelimiter;
275+
}
276+
}
277+
278+
public DfAction mouseout;
279+
[ContextProperty("МышьПокинулаЭлемент", "MouseOut")]
280+
public DfAction MouseOut
281+
{
282+
get { return mouseout; }
283+
set
284+
{
285+
mouseout = value;
286+
string strFunc = "mapKeyEl.get(\u0022" + ItemKey + "\u0022).addEventListener(\u0022mouseout\u0022, doEvent);";
287+
DeclarativeForms.strFunctions = DeclarativeForms.strFunctions + strFunc + DeclarativeForms.funDelimiter;
288+
}
289+
}
290+
265291
public DfAction click;
266292
[ContextProperty("Нажатие", "Click")]
267293
public DfAction Click

0 commit comments

Comments
 (0)