mirror of
https://github.com/KeymonSoft/Mazapa-Reparto.git
synced 2026-04-18 05:19:16 +00:00
Version: 5.06.01
Se corrigio el tiempo real y se guarda el server si se modifica
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -1,46 +0,0 @@
|
||||
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.pc.PCBA;
|
||||
import anywheresoftware.b4a.pc.RemoteObject;
|
||||
|
||||
public class animatedcounter {
|
||||
public static RemoteObject myClass;
|
||||
public animatedcounter() {
|
||||
}
|
||||
public static PCBA staticBA = new PCBA(null, animatedcounter.class);
|
||||
|
||||
public static RemoteObject __c = RemoteObject.declareNull("anywheresoftware.b4a.keywords.Common");
|
||||
public static RemoteObject _meventname = RemoteObject.createImmutable("");
|
||||
public static RemoteObject _mcallback = RemoteObject.declareNull("Object");
|
||||
public static RemoteObject _mbase = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _xui = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");
|
||||
public static RemoteObject _imageviews = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
|
||||
public static RemoteObject _mdigits = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _lbltemplate = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _mvalue = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
|
||||
public static RemoteObject _digitheight = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _digitwidth = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _mduration = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _fade = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper");
|
||||
public static RemoteObject _xfadeiv = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _tag = RemoteObject.declareNull("Object");
|
||||
public static RemoteObject _dateutils = RemoteObject.declareNull("b4a.example.dateutils");
|
||||
public static reparto_mazapa.keymon.lat.main _main = null;
|
||||
public static reparto_mazapa.keymon.lat.appupdater _appupdater = null;
|
||||
public static reparto_mazapa.keymon.lat.tracker _tracker = null;
|
||||
public static reparto_mazapa.keymon.lat.starter _starter = null;
|
||||
public static reparto_mazapa.keymon.lat.subs _subs = null;
|
||||
public static reparto_mazapa.keymon.lat.firebasemessaging _firebasemessaging = null;
|
||||
public static reparto_mazapa.keymon.lat.foto _foto = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_cliente _mapa_cliente = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_rutas _mapa_rutas = null;
|
||||
public static reparto_mazapa.keymon.lat.newinst2 _newinst2 = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xpages _b4xpages = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xcollections _b4xcollections = null;
|
||||
public static reparto_mazapa.keymon.lat.httputils2service _httputils2service = null;
|
||||
public static reparto_mazapa.keymon.lat.xuiviewsutils _xuiviewsutils = null;
|
||||
public static Object[] GetGlobals(RemoteObject _ref) throws Exception {
|
||||
return new Object[] {"DateUtils",_ref.getField(false, "_dateutils"),"DigitHeight",_ref.getField(false, "_digitheight"),"DigitWidth",_ref.getField(false, "_digitwidth"),"fade",_ref.getField(false, "_fade"),"ImageViews",_ref.getField(false, "_imageviews"),"lblTemplate",_ref.getField(false, "_lbltemplate"),"mBase",_ref.getField(false, "_mbase"),"mCallBack",_ref.getField(false, "_mcallback"),"mdigits",_ref.getField(false, "_mdigits"),"mDuration",_ref.getField(false, "_mduration"),"mEventName",_ref.getField(false, "_meventname"),"mValue",_ref.getField(false, "_mvalue"),"Tag",_ref.getField(false, "_tag"),"xfadeIv",_ref.getField(false, "_xfadeiv"),"xui",_ref.getField(false, "_xui")};
|
||||
}
|
||||
}
|
||||
@@ -1,471 +0,0 @@
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.BA;
|
||||
import anywheresoftware.b4a.pc.*;
|
||||
|
||||
public class animatedcounter_subs_0 {
|
||||
|
||||
|
||||
public static RemoteObject _base_resize(RemoteObject __ref,RemoteObject _width,RemoteObject _height) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Base_Resize (animatedcounter) ","animatedcounter",47,__ref.getField(false, "ba"),__ref,70);
|
||||
if (RapidSub.canDelegate("base_resize")) { return __ref.runUserSub(false, "animatedcounter","base_resize", __ref, _width, _height);}
|
||||
RemoteObject _columns = RemoteObject.createImmutable(0);
|
||||
RemoteObject _bmp = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper");
|
||||
RemoteObject _left = RemoteObject.createImmutable(0);
|
||||
int _i = 0;
|
||||
RemoteObject _iv = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
Debug.locals.put("Width", _width);
|
||||
Debug.locals.put("Height", _height);
|
||||
BA.debugLineNum = 70;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 71;BA.debugLine="mBase.GetView(0).SetLayoutAnimated(0, 0, 0, Width";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 0))).runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, _width)),(Object)(BA.numberCast(int.class, _height)));
|
||||
BA.debugLineNum = 72;BA.debugLine="xfadeIv.SetLayoutAnimated(0, 0, 0, Width, Height)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_xfadeiv" /*RemoteObject*/ ).runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, _width)),(Object)(BA.numberCast(int.class, _height)));
|
||||
BA.debugLineNum = 73;BA.debugLine="xfadeIv.SetBitmap(fade.Resize(Width, Height, Fals";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_xfadeiv" /*RemoteObject*/ ).runVoidMethod ("SetBitmap",(Object)((__ref.getField(false,"_fade" /*RemoteObject*/ ).runMethod(false,"Resize",(Object)(BA.numberCast(int.class, _width)),(Object)(BA.numberCast(int.class, _height)),(Object)(animatedcounter.__c.getField(true,"False"))).getObject())));
|
||||
BA.debugLineNum = 74;BA.debugLine="DigitHeight = Height";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_digitheight" /*RemoteObject*/ ,BA.numberCast(int.class, _height));
|
||||
BA.debugLineNum = 75;BA.debugLine="Dim Columns As Int = mdigits";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_columns = __ref.getField(true,"_mdigits" /*RemoteObject*/ );Debug.locals.put("Columns", _columns);Debug.locals.put("Columns", _columns);
|
||||
BA.debugLineNum = 76;BA.debugLine="DigitWidth = Width / Columns";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_digitwidth" /*RemoteObject*/ ,BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_width,_columns}, "/",0, 0)));
|
||||
BA.debugLineNum = 77;BA.debugLine="Dim bmp As B4XBitmap = CreateBitmap(lblTemplate)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_bmp = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper");
|
||||
_bmp = __ref.runClassMethod (reparto_mazapa.keymon.lat.animatedcounter.class, "_createbitmap" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_lbltemplate" /*RemoteObject*/ )));Debug.locals.put("bmp", _bmp);Debug.locals.put("bmp", _bmp);
|
||||
BA.debugLineNum = 78;BA.debugLine="Dim left As Int = Width";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_left = BA.numberCast(int.class, _width);Debug.locals.put("left", _left);Debug.locals.put("left", _left);
|
||||
BA.debugLineNum = 79;BA.debugLine="For i = 0 To ImageViews.Size - 1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
{
|
||||
final int step9 = 1;
|
||||
final int limit9 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_imageviews" /*RemoteObject*/ ).runMethod(true,"getSize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
|
||||
_i = 0 ;
|
||||
for (;(step9 > 0 && _i <= limit9) || (step9 < 0 && _i >= limit9) ;_i = ((int)(0 + _i + step9)) ) {
|
||||
Debug.locals.put("i", _i);
|
||||
BA.debugLineNum = 80;BA.debugLine="Dim iv As B4XView = ImageViews.Get(i)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_iv = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
_iv = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.getField(false,"_imageviews" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _i))));Debug.locals.put("iv", _iv);Debug.locals.put("iv", _iv);
|
||||
BA.debugLineNum = 82;BA.debugLine="left = left - DigitWidth";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_left = RemoteObject.solve(new RemoteObject[] {_left,__ref.getField(true,"_digitwidth" /*RemoteObject*/ )}, "-",1, 1);Debug.locals.put("left", _left);
|
||||
BA.debugLineNum = 83;BA.debugLine="iv.SetLayoutAnimated(0, left, TopFromValue(i), D";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_iv.runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(_left),(Object)(__ref.runClassMethod (reparto_mazapa.keymon.lat.animatedcounter.class, "_topfromvalue" /*RemoteObject*/ ,(Object)(BA.numberCast(int.class, _i)))),(Object)(__ref.getField(true,"_digitwidth" /*RemoteObject*/ )),(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_digitheight" /*RemoteObject*/ ),RemoteObject.createImmutable(10)}, "*",0, 1)));
|
||||
BA.debugLineNum = 84;BA.debugLine="iv.SetBitmap(bmp)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_iv.runVoidMethod ("SetBitmap",(Object)((_bmp.getObject())));
|
||||
}
|
||||
}Debug.locals.put("i", _i);
|
||||
;
|
||||
BA.debugLineNum = 86;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _class_globals(RemoteObject __ref) throws Exception{
|
||||
//BA.debugLineNum = 5;BA.debugLine="Sub Class_Globals";
|
||||
//BA.debugLineNum = 6;BA.debugLine="Private mEventName As String 'ignore";
|
||||
animatedcounter._meventname = RemoteObject.createImmutable("");__ref.setField("_meventname",animatedcounter._meventname);
|
||||
//BA.debugLineNum = 7;BA.debugLine="Private mCallBack As Object 'ignore";
|
||||
animatedcounter._mcallback = RemoteObject.createNew ("Object");__ref.setField("_mcallback",animatedcounter._mcallback);
|
||||
//BA.debugLineNum = 8;BA.debugLine="Public mBase As B4XView 'ignore";
|
||||
animatedcounter._mbase = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_mbase",animatedcounter._mbase);
|
||||
//BA.debugLineNum = 9;BA.debugLine="Private xui As XUI 'ignore";
|
||||
animatedcounter._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");__ref.setField("_xui",animatedcounter._xui);
|
||||
//BA.debugLineNum = 10;BA.debugLine="Private ImageViews As List";
|
||||
animatedcounter._imageviews = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_imageviews",animatedcounter._imageviews);
|
||||
//BA.debugLineNum = 11;BA.debugLine="Private mdigits As Int";
|
||||
animatedcounter._mdigits = RemoteObject.createImmutable(0);__ref.setField("_mdigits",animatedcounter._mdigits);
|
||||
//BA.debugLineNum = 12;BA.debugLine="Private lblTemplate As B4XView";
|
||||
animatedcounter._lbltemplate = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_lbltemplate",animatedcounter._lbltemplate);
|
||||
//BA.debugLineNum = 13;BA.debugLine="Private mValue As List";
|
||||
animatedcounter._mvalue = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_mvalue",animatedcounter._mvalue);
|
||||
//BA.debugLineNum = 14;BA.debugLine="Private DigitHeight, DigitWidth As Int";
|
||||
animatedcounter._digitheight = RemoteObject.createImmutable(0);__ref.setField("_digitheight",animatedcounter._digitheight);
|
||||
animatedcounter._digitwidth = RemoteObject.createImmutable(0);__ref.setField("_digitwidth",animatedcounter._digitwidth);
|
||||
//BA.debugLineNum = 15;BA.debugLine="Private mDuration As Int";
|
||||
animatedcounter._mduration = RemoteObject.createImmutable(0);__ref.setField("_mduration",animatedcounter._mduration);
|
||||
//BA.debugLineNum = 16;BA.debugLine="Private fade As B4XBitmap";
|
||||
animatedcounter._fade = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper");__ref.setField("_fade",animatedcounter._fade);
|
||||
//BA.debugLineNum = 17;BA.debugLine="Private xfadeIv As B4XView";
|
||||
animatedcounter._xfadeiv = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_xfadeiv",animatedcounter._xfadeiv);
|
||||
//BA.debugLineNum = 18;BA.debugLine="Public Tag As Object";
|
||||
animatedcounter._tag = RemoteObject.createNew ("Object");__ref.setField("_tag",animatedcounter._tag);
|
||||
//BA.debugLineNum = 20;BA.debugLine="End Sub";
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
public static RemoteObject _createbitmap(RemoteObject __ref,RemoteObject _lbl) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("CreateBitmap (animatedcounter) ","animatedcounter",47,__ref.getField(false, "ba"),__ref,93);
|
||||
if (RapidSub.canDelegate("createbitmap")) { return __ref.runUserSub(false, "animatedcounter","createbitmap", __ref, _lbl);}
|
||||
RemoteObject _p = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
RemoteObject _cvs = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XCanvas");
|
||||
RemoteObject _r = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XCanvas.B4XRect");
|
||||
RemoteObject _baseline = RemoteObject.createImmutable(0);
|
||||
int _i = 0;
|
||||
RemoteObject _res = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper");
|
||||
Debug.locals.put("lbl", _lbl);
|
||||
BA.debugLineNum = 93;BA.debugLine="Private Sub CreateBitmap (lbl As B4XView) As B4XBi";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 94;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_p = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
_p = __ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(false,"CreatePanel",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("")));Debug.locals.put("p", _p);Debug.locals.put("p", _p);
|
||||
BA.debugLineNum = 95;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, DigitWidth, DigitHei";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_p.runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(__ref.getField(true,"_digitwidth" /*RemoteObject*/ )),(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_digitheight" /*RemoteObject*/ ),RemoteObject.createImmutable(10)}, "*",0, 1)));
|
||||
BA.debugLineNum = 96;BA.debugLine="Dim cvs As B4XCanvas";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_cvs = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XCanvas");Debug.locals.put("cvs", _cvs);
|
||||
BA.debugLineNum = 97;BA.debugLine="cvs.Initialize(p)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_cvs.runVoidMethod ("Initialize",(Object)(_p));
|
||||
BA.debugLineNum = 98;BA.debugLine="Dim r As B4XRect = cvs.MeasureText(\"5\", lbl.Font)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_r = _cvs.runMethod(false,"MeasureText",(Object)(BA.ObjectToString("5")),(Object)(_lbl.runMethod(false,"getFont")));Debug.locals.put("r", _r);Debug.locals.put("r", _r);
|
||||
BA.debugLineNum = 99;BA.debugLine="Dim BaseLine As Int = DigitHeight / 2 - r.Height";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_baseline = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_digitheight" /*RemoteObject*/ ),RemoteObject.createImmutable(2),_r.runMethod(true,"getHeight"),RemoteObject.createImmutable(2),_r.runMethod(true,"getTop")}, "/-/-",2, 0));Debug.locals.put("BaseLine", _baseline);Debug.locals.put("BaseLine", _baseline);
|
||||
BA.debugLineNum = 100;BA.debugLine="For i = 0 To 9";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
{
|
||||
final int step7 = 1;
|
||||
final int limit7 = 9;
|
||||
_i = 0 ;
|
||||
for (;(step7 > 0 && _i <= limit7) || (step7 < 0 && _i >= limit7) ;_i = ((int)(0 + _i + step7)) ) {
|
||||
Debug.locals.put("i", _i);
|
||||
BA.debugLineNum = 101;BA.debugLine="cvs.DrawText(i, DigitWidth / 2, i * DigitHeight";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_cvs.runVoidMethod ("DrawText",__ref.getField(false, "ba"),(Object)(BA.NumberToString(_i)),(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_digitwidth" /*RemoteObject*/ ),RemoteObject.createImmutable(2)}, "/",0, 0))),(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(_i),__ref.getField(true,"_digitheight" /*RemoteObject*/ ),_baseline}, "*+",1, 1))),(Object)(_lbl.runMethod(false,"getFont")),(Object)(_lbl.runMethod(true,"getTextColor")),(Object)(BA.getEnumFromString(BA.getDeviceClass("android.graphics.Paint.Align"),RemoteObject.createImmutable("CENTER"))));
|
||||
}
|
||||
}Debug.locals.put("i", _i);
|
||||
;
|
||||
BA.debugLineNum = 103;BA.debugLine="cvs.Invalidate";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_cvs.runVoidMethod ("Invalidate");
|
||||
BA.debugLineNum = 104;BA.debugLine="Dim res As B4XBitmap = cvs.CreateBitmap";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_res = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper");
|
||||
_res = _cvs.runMethod(false,"CreateBitmap");Debug.locals.put("res", _res);Debug.locals.put("res", _res);
|
||||
BA.debugLineNum = 105;BA.debugLine="cvs.Release";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_cvs.runVoidMethod ("Release");
|
||||
BA.debugLineNum = 106;BA.debugLine="Return res";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return _res;
|
||||
BA.debugLineNum = 107;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _createfadebitmap(RemoteObject __ref,RemoteObject _clr) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("CreateFadeBitmap (animatedcounter) ","animatedcounter",47,__ref.getField(false, "ba"),__ref,56);
|
||||
if (RapidSub.canDelegate("createfadebitmap")) { return __ref.runUserSub(false, "animatedcounter","createfadebitmap", __ref, _clr);}
|
||||
RemoteObject _bc = RemoteObject.declareNull("b4a.example.bitmapcreator");
|
||||
RemoteObject _r = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XCanvas.B4XRect");
|
||||
RemoteObject _tclr = RemoteObject.createImmutable(0);
|
||||
Debug.locals.put("clr", _clr);
|
||||
BA.debugLineNum = 56;BA.debugLine="Private Sub CreateFadeBitmap (clr As Int) As B4XBi";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 57;BA.debugLine="Dim bc As BitmapCreator";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_bc = RemoteObject.createNew ("b4a.example.bitmapcreator");Debug.locals.put("bc", _bc);
|
||||
BA.debugLineNum = 58;BA.debugLine="bc.Initialize(200, 50)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_bc.runVoidMethod ("_initialize",__ref.getField(false, "ba"),(Object)(BA.numberCast(int.class, 200)),(Object)(BA.numberCast(int.class, 50)));
|
||||
BA.debugLineNum = 59;BA.debugLine="Dim r As B4XRect";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_r = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XCanvas.B4XRect");Debug.locals.put("r", _r);
|
||||
BA.debugLineNum = 60;BA.debugLine="r.Initialize(0, 0, bc.mWidth, bc.mHeight / 3)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_r.runVoidMethod ("Initialize",(Object)(BA.numberCast(float.class, 0)),(Object)(BA.numberCast(float.class, 0)),(Object)(BA.numberCast(float.class, _bc.getField(true,"_mwidth"))),(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_bc.getField(true,"_mheight"),RemoteObject.createImmutable(3)}, "/",0, 0))));
|
||||
BA.debugLineNum = 61;BA.debugLine="Dim tclr As Int = Bit.And(0x00ffffff, clr)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_tclr = animatedcounter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0x00ffffff))),(Object)(_clr));Debug.locals.put("tclr", _tclr);Debug.locals.put("tclr", _tclr);
|
||||
BA.debugLineNum = 62;BA.debugLine="bc.FillGradient(Array As Int(clr, tclr), r, \"TOP_";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_bc.runVoidMethod ("_fillgradient",(Object)(RemoteObject.createNewArray("int",new int[] {2},new Object[] {_clr,_tclr})),(Object)(_r),(Object)(RemoteObject.createImmutable("TOP_BOTTOM")));
|
||||
BA.debugLineNum = 63;BA.debugLine="r.Top = bc.mHeight * 2 / 3";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_r.runMethod(true,"setTop",BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_bc.getField(true,"_mheight"),RemoteObject.createImmutable(2),RemoteObject.createImmutable(3)}, "*/",0, 0)));
|
||||
BA.debugLineNum = 64;BA.debugLine="r.Bottom = bc.mHeight";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_r.runMethod(true,"setBottom",BA.numberCast(float.class, _bc.getField(true,"_mheight")));
|
||||
BA.debugLineNum = 65;BA.debugLine="bc.FillGradient(Array As Int(clr, tclr), r, \"BOTT";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_bc.runVoidMethod ("_fillgradient",(Object)(RemoteObject.createNewArray("int",new int[] {2},new Object[] {_clr,_tclr})),(Object)(_r),(Object)(RemoteObject.createImmutable("BOTTOM_TOP")));
|
||||
BA.debugLineNum = 66;BA.debugLine="Return bc.Bitmap";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return _bc.runMethod(false,"_getbitmap");
|
||||
BA.debugLineNum = 67;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _designercreateview(RemoteObject __ref,RemoteObject _base,RemoteObject _lbl,RemoteObject _props) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("DesignerCreateView (animatedcounter) ","animatedcounter",47,__ref.getField(false, "ba"),__ref,30);
|
||||
if (RapidSub.canDelegate("designercreateview")) { return __ref.runUserSub(false, "animatedcounter","designercreateview", __ref, _base, _lbl, _props);}
|
||||
RemoteObject _pnl = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
int _i = 0;
|
||||
RemoteObject _iv = RemoteObject.declareNull("anywheresoftware.b4a.objects.ImageViewWrapper");
|
||||
RemoteObject _fadeiv = RemoteObject.declareNull("anywheresoftware.b4a.objects.ImageViewWrapper");
|
||||
Debug.locals.put("Base", _base);
|
||||
Debug.locals.put("lbl", _lbl);
|
||||
Debug.locals.put("Props", _props);
|
||||
BA.debugLineNum = 30;BA.debugLine="Public Sub DesignerCreateView (Base As Object, lbl";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 31;BA.debugLine="mBase = Base";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).setObject (_base);
|
||||
BA.debugLineNum = 32;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_tag" /*RemoteObject*/ ,__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(false,"getTag"));
|
||||
BA.debugLineNum = 32;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(false,"setTag",__ref);
|
||||
BA.debugLineNum = 33;BA.debugLine="Dim pnl As B4XView = xui.CreatePanel(\"\") 'needed";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_pnl = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
_pnl = __ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(false,"CreatePanel",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("")));Debug.locals.put("pnl", _pnl);Debug.locals.put("pnl", _pnl);
|
||||
BA.debugLineNum = 34;BA.debugLine="mBase.AddView(pnl, 0, 0, 0, 0)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runVoidMethod ("AddView",(Object)((_pnl.getObject())),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)));
|
||||
BA.debugLineNum = 35;BA.debugLine="mdigits = Props.Get(\"Digits\")";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mdigits" /*RemoteObject*/ ,BA.numberCast(int.class, _props.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("Digits"))))));
|
||||
BA.debugLineNum = 36;BA.debugLine="mDuration = Props.Get(\"Duration\")";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mduration" /*RemoteObject*/ ,BA.numberCast(int.class, _props.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("Duration"))))));
|
||||
BA.debugLineNum = 37;BA.debugLine="lblTemplate = lbl";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_lbltemplate" /*RemoteObject*/ ).setObject (_lbl.getObject());
|
||||
BA.debugLineNum = 38;BA.debugLine="fade = CreateFadeBitmap(xui.PaintOrColorToColor(P";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_fade" /*RemoteObject*/ ,__ref.runClassMethod (reparto_mazapa.keymon.lat.animatedcounter.class, "_createfadebitmap" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(true,"PaintOrColorToColor",(Object)(_props.runMethod(false,"GetDefault",(Object)(RemoteObject.createImmutable(("FadeColor"))),(Object)((__ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"Color_White")))))))));
|
||||
BA.debugLineNum = 39;BA.debugLine="For i = 0 To mdigits - 1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
{
|
||||
final int step10 = 1;
|
||||
final int limit10 = RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_mdigits" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
|
||||
_i = 0 ;
|
||||
for (;(step10 > 0 && _i <= limit10) || (step10 < 0 && _i >= limit10) ;_i = ((int)(0 + _i + step10)) ) {
|
||||
Debug.locals.put("i", _i);
|
||||
BA.debugLineNum = 40;BA.debugLine="Dim iv As ImageView";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_iv = RemoteObject.createNew ("anywheresoftware.b4a.objects.ImageViewWrapper");Debug.locals.put("iv", _iv);
|
||||
BA.debugLineNum = 41;BA.debugLine="iv.Initialize(\"\")";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_iv.runVoidMethod ("Initialize",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("")));
|
||||
BA.debugLineNum = 42;BA.debugLine="ImageViews.Add(iv)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_imageviews" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((_iv.getObject())));
|
||||
BA.debugLineNum = 43;BA.debugLine="mBase.GetView(0).AddView(iv, 0, 0, 0, 0)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 0))).runVoidMethod ("AddView",(Object)((_iv.getObject())),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)));
|
||||
}
|
||||
}Debug.locals.put("i", _i);
|
||||
;
|
||||
BA.debugLineNum = 45;BA.debugLine="Dim fadeIv As ImageView";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_fadeiv = RemoteObject.createNew ("anywheresoftware.b4a.objects.ImageViewWrapper");Debug.locals.put("fadeIv", _fadeiv);
|
||||
BA.debugLineNum = 46;BA.debugLine="fadeIv.Initialize(\"\")";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_fadeiv.runVoidMethod ("Initialize",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("")));
|
||||
BA.debugLineNum = 47;BA.debugLine="xfadeIv = fadeIv";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_xfadeiv" /*RemoteObject*/ ).setObject (_fadeiv.getObject());
|
||||
BA.debugLineNum = 48;BA.debugLine="mBase.GetView(0).AddView(fadeIv, 0, 0, 0, 0)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 0))).runVoidMethod ("AddView",(Object)((_fadeiv.getObject())),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)));
|
||||
BA.debugLineNum = 49;BA.debugLine="setValue(0)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.animatedcounter.class, "_setvalue" /*RemoteObject*/ ,(Object)(BA.numberCast(int.class, 0)));
|
||||
BA.debugLineNum = 50;BA.debugLine="If xui.IsB4A Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (__ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(true,"getIsB4A").<Boolean>get().booleanValue()) {
|
||||
BA.debugLineNum = 51;BA.debugLine="Base_Resize(mBase.Width, mBase.Height)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.animatedcounter.class, "_base_resize" /*RemoteObject*/ ,(Object)(BA.numberCast(double.class, __ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getWidth"))),(Object)(BA.numberCast(double.class, __ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getHeight"))));
|
||||
BA.debugLineNum = 52;BA.debugLine="setValue(getValue)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.animatedcounter.class, "_setvalue" /*RemoteObject*/ ,(Object)(__ref.runClassMethod (reparto_mazapa.keymon.lat.animatedcounter.class, "_getvalue" /*RemoteObject*/ )));
|
||||
};
|
||||
BA.debugLineNum = 54;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getvalue(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("getValue (animatedcounter) ","animatedcounter",47,__ref.getField(false, "ba"),__ref,120);
|
||||
if (RapidSub.canDelegate("getvalue")) { return __ref.runUserSub(false, "animatedcounter","getvalue", __ref);}
|
||||
RemoteObject _res = RemoteObject.createImmutable(0);
|
||||
int _i = 0;
|
||||
BA.debugLineNum = 120;BA.debugLine="Public Sub getValue As Int";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 121;BA.debugLine="Dim res As Int";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_res = RemoteObject.createImmutable(0);Debug.locals.put("res", _res);
|
||||
BA.debugLineNum = 122;BA.debugLine="For i = 0 To mValue.Size - 1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
{
|
||||
final int step2 = 1;
|
||||
final int limit2 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mvalue" /*RemoteObject*/ ).runMethod(true,"getSize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
|
||||
_i = 0 ;
|
||||
for (;(step2 > 0 && _i <= limit2) || (step2 < 0 && _i >= limit2) ;_i = ((int)(0 + _i + step2)) ) {
|
||||
Debug.locals.put("i", _i);
|
||||
BA.debugLineNum = 123;BA.debugLine="res = res + mValue.Get(i) * Power(10, i)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_res = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_res,BA.numberCast(double.class, __ref.getField(false,"_mvalue" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _i)))),animatedcounter.__c.runMethod(true,"Power",(Object)(BA.numberCast(double.class, 10)),(Object)(BA.numberCast(double.class, _i)))}, "+*",1, 0));Debug.locals.put("res", _res);
|
||||
}
|
||||
}Debug.locals.put("i", _i);
|
||||
;
|
||||
BA.debugLineNum = 125;BA.debugLine="Return res";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return _res;
|
||||
BA.debugLineNum = 126;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(0);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _initialize(RemoteObject __ref,RemoteObject _ba,RemoteObject _callback,RemoteObject _eventname) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Initialize (animatedcounter) ","animatedcounter",47,__ref.getField(false, "ba"),__ref,22);
|
||||
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "animatedcounter","initialize", __ref, _ba, _callback, _eventname);}
|
||||
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
|
||||
Debug.locals.put("ba", _ba);
|
||||
Debug.locals.put("Callback", _callback);
|
||||
Debug.locals.put("EventName", _eventname);
|
||||
BA.debugLineNum = 22;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 23;BA.debugLine="mEventName = EventName";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_meventname" /*RemoteObject*/ ,_eventname);
|
||||
BA.debugLineNum = 24;BA.debugLine="mCallBack = Callback";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mcallback" /*RemoteObject*/ ,_callback);
|
||||
BA.debugLineNum = 25;BA.debugLine="ImageViews.Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_imageviews" /*RemoteObject*/ ).runVoidMethod ("Initialize");
|
||||
BA.debugLineNum = 26;BA.debugLine="mValue.Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mvalue" /*RemoteObject*/ ).runVoidMethod ("Initialize");
|
||||
BA.debugLineNum = 27;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _setvalue(RemoteObject __ref,RemoteObject _v) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("setValue (animatedcounter) ","animatedcounter",47,__ref.getField(false, "ba"),__ref,109);
|
||||
if (RapidSub.canDelegate("setvalue")) { return __ref.runUserSub(false, "animatedcounter","setvalue", __ref, _v);}
|
||||
int _i = 0;
|
||||
RemoteObject _iv = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
Debug.locals.put("v", _v);
|
||||
BA.debugLineNum = 109;BA.debugLine="Public Sub setValue(v As Int)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 110;BA.debugLine="mValue.Clear";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mvalue" /*RemoteObject*/ ).runVoidMethod ("Clear");
|
||||
BA.debugLineNum = 111;BA.debugLine="For i = 0 To mdigits - 1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
{
|
||||
final int step2 = 1;
|
||||
final int limit2 = RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_mdigits" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
|
||||
_i = 0 ;
|
||||
for (;(step2 > 0 && _i <= limit2) || (step2 < 0 && _i >= limit2) ;_i = ((int)(0 + _i + step2)) ) {
|
||||
Debug.locals.put("i", _i);
|
||||
BA.debugLineNum = 112;BA.debugLine="mValue.Add(v Mod 10)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mvalue" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((RemoteObject.solve(new RemoteObject[] {_v,RemoteObject.createImmutable(10)}, "%",0, 1))));
|
||||
BA.debugLineNum = 113;BA.debugLine="v = v / 10";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_v = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_v,RemoteObject.createImmutable(10)}, "/",0, 0));Debug.locals.put("v", _v);
|
||||
BA.debugLineNum = 114;BA.debugLine="Dim iv As B4XView = ImageViews.Get(i)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_iv = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
_iv = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), __ref.getField(false,"_imageviews" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _i))));Debug.locals.put("iv", _iv);Debug.locals.put("iv", _iv);
|
||||
BA.debugLineNum = 115;BA.debugLine="iv.SetLayoutAnimated(mDuration, iv.Left, TopFrom";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_iv.runVoidMethod ("SetLayoutAnimated",(Object)(__ref.getField(true,"_mduration" /*RemoteObject*/ )),(Object)(_iv.runMethod(true,"getLeft")),(Object)(__ref.runClassMethod (reparto_mazapa.keymon.lat.animatedcounter.class, "_topfromvalue" /*RemoteObject*/ ,(Object)(BA.numberCast(int.class, _i)))),(Object)(BA.numberCast(int.class, animatedcounter.__c.runMethod(true,"Max",(Object)(BA.numberCast(double.class, 1)),(Object)(BA.numberCast(double.class, _iv.runMethod(true,"getWidth")))))),(Object)(BA.numberCast(int.class, animatedcounter.__c.runMethod(true,"Max",(Object)(BA.numberCast(double.class, 1)),(Object)(BA.numberCast(double.class, _iv.runMethod(true,"getHeight")))))));
|
||||
}
|
||||
}Debug.locals.put("i", _i);
|
||||
;
|
||||
BA.debugLineNum = 118;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _topfromvalue(RemoteObject __ref,RemoteObject _digit) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("TopFromValue (animatedcounter) ","animatedcounter",47,__ref.getField(false, "ba"),__ref,88);
|
||||
if (RapidSub.canDelegate("topfromvalue")) { return __ref.runUserSub(false, "animatedcounter","topfromvalue", __ref, _digit);}
|
||||
RemoteObject _d = RemoteObject.createImmutable(0);
|
||||
Debug.locals.put("Digit", _digit);
|
||||
BA.debugLineNum = 88;BA.debugLine="Private Sub TopFromValue (Digit As Int) As Int";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 89;BA.debugLine="Dim d As Int = mValue.Get(Digit)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d = BA.numberCast(int.class, __ref.getField(false,"_mvalue" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(_digit)));Debug.locals.put("d", _d);Debug.locals.put("d", _d);
|
||||
BA.debugLineNum = 90;BA.debugLine="Return -d * DigitHeight";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return BA.numberCast(int.class, -(double) (0 + _d.<Integer>get().intValue())*(double) (0 + __ref.getField(true,"_digitheight" /*RemoteObject*/ ).<Integer>get().intValue()));
|
||||
BA.debugLineNum = 91;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(0);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.pc.PCBA;
|
||||
import anywheresoftware.b4a.pc.RemoteObject;
|
||||
|
||||
public class anotherprogressbar {
|
||||
public static RemoteObject myClass;
|
||||
public anotherprogressbar() {
|
||||
}
|
||||
public static PCBA staticBA = new PCBA(null, anotherprogressbar.class);
|
||||
|
||||
public static RemoteObject __c = RemoteObject.declareNull("anywheresoftware.b4a.keywords.Common");
|
||||
public static RemoteObject _meventname = RemoteObject.createImmutable("");
|
||||
public static RemoteObject _mcallback = RemoteObject.declareNull("Object");
|
||||
public static RemoteObject _mbase = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _xui = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");
|
||||
public static RemoteObject _busybrush = RemoteObject.declareNull("b4a.example.bcpath._bcbrush");
|
||||
public static RemoteObject _backgroundcolor = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _busyindex = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _bc = RemoteObject.declareNull("b4a.example.bitmapcreator");
|
||||
public static RemoteObject _miv = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _transparentbrush = RemoteObject.declareNull("b4a.example.bcpath._bcbrush");
|
||||
public static RemoteObject _vertical = RemoteObject.createImmutable(false);
|
||||
public static RemoteObject _currentvalue = RemoteObject.createImmutable(0f);
|
||||
public static RemoteObject _emptycolor = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _emptybrush = RemoteObject.declareNull("b4a.example.bcpath._bcbrush");
|
||||
public static RemoteObject _mvalue = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _tag = RemoteObject.declareNull("Object");
|
||||
public static RemoteObject _valuechangepersecond = RemoteObject.createImmutable(0f);
|
||||
public static RemoteObject _cornerradius = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _brushoffsetdelta = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _dateutils = RemoteObject.declareNull("b4a.example.dateutils");
|
||||
public static reparto_mazapa.keymon.lat.main _main = null;
|
||||
public static reparto_mazapa.keymon.lat.appupdater _appupdater = null;
|
||||
public static reparto_mazapa.keymon.lat.tracker _tracker = null;
|
||||
public static reparto_mazapa.keymon.lat.starter _starter = null;
|
||||
public static reparto_mazapa.keymon.lat.subs _subs = null;
|
||||
public static reparto_mazapa.keymon.lat.firebasemessaging _firebasemessaging = null;
|
||||
public static reparto_mazapa.keymon.lat.foto _foto = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_cliente _mapa_cliente = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_rutas _mapa_rutas = null;
|
||||
public static reparto_mazapa.keymon.lat.newinst2 _newinst2 = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xpages _b4xpages = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xcollections _b4xcollections = null;
|
||||
public static reparto_mazapa.keymon.lat.httputils2service _httputils2service = null;
|
||||
public static reparto_mazapa.keymon.lat.xuiviewsutils _xuiviewsutils = null;
|
||||
public static Object[] GetGlobals(RemoteObject _ref) throws Exception {
|
||||
return new Object[] {"BackgroundColor",_ref.getField(false, "_backgroundcolor"),"bc",_ref.getField(false, "_bc"),"BrushOffsetDelta",_ref.getField(false, "_brushoffsetdelta"),"BusyBrush",_ref.getField(false, "_busybrush"),"BusyIndex",_ref.getField(false, "_busyindex"),"CornerRadius",_ref.getField(false, "_cornerradius"),"CurrentValue",_ref.getField(false, "_currentvalue"),"DateUtils",_ref.getField(false, "_dateutils"),"EmptyBrush",_ref.getField(false, "_emptybrush"),"EmptyColor",_ref.getField(false, "_emptycolor"),"mBase",_ref.getField(false, "_mbase"),"mCallBack",_ref.getField(false, "_mcallback"),"mEventName",_ref.getField(false, "_meventname"),"mIV",_ref.getField(false, "_miv"),"mValue",_ref.getField(false, "_mvalue"),"Tag",_ref.getField(false, "_tag"),"TransparentBrush",_ref.getField(false, "_transparentbrush"),"ValueChangePerSecond",_ref.getField(false, "_valuechangepersecond"),"Vertical",_ref.getField(false, "_vertical"),"xui",_ref.getField(false, "_xui")};
|
||||
}
|
||||
}
|
||||
@@ -1,740 +0,0 @@
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.BA;
|
||||
import anywheresoftware.b4a.pc.*;
|
||||
|
||||
public class anotherprogressbar_subs_0 {
|
||||
|
||||
|
||||
public static RemoteObject _base_resize(RemoteObject __ref,RemoteObject _width,RemoteObject _height) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Base_Resize (anotherprogressbar) ","anotherprogressbar",48,__ref.getField(false, "ba"),__ref,49);
|
||||
if (RapidSub.canDelegate("base_resize")) { return __ref.runUserSub(false, "anotherprogressbar","base_resize", __ref, _width, _height);}
|
||||
RemoteObject _v = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
Debug.locals.put("Width", _width);
|
||||
Debug.locals.put("Height", _height);
|
||||
BA.debugLineNum = 49;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 50;BA.debugLine="For Each v As B4XView In mBase.GetAllViewsRecursi";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_v = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
{
|
||||
final RemoteObject group1 = __ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(false,"GetAllViewsRecursive");
|
||||
final int groupLen1 = group1.runMethod(true,"getSize").<Integer>get()
|
||||
;int index1 = 0;
|
||||
;
|
||||
for (; index1 < groupLen1;index1++){
|
||||
_v = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), group1.runMethod(false,"Get",index1));Debug.locals.put("v", _v);
|
||||
Debug.locals.put("v", _v);
|
||||
BA.debugLineNum = 51;BA.debugLine="v.SetLayoutAnimated(0, 0, 0, Width, Height)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_v.runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, _width)),(Object)(BA.numberCast(int.class, _height)));
|
||||
}
|
||||
}Debug.locals.put("v", _v);
|
||||
;
|
||||
BA.debugLineNum = 53;BA.debugLine="bc.Initialize(mBase.Width / xui.Scale, mBase.Heig";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_bc" /*RemoteObject*/ ).runVoidMethod ("_initialize",__ref.getField(false, "ba"),(Object)(BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getWidth"),__ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(true,"getScale")}, "/",0, 0))),(Object)(BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getHeight"),__ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(true,"getScale")}, "/",0, 0))));
|
||||
BA.debugLineNum = 54;BA.debugLine="Vertical = mBase.Height > mBase.Width";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_vertical" /*RemoteObject*/ ,BA.ObjectToBoolean(RemoteObject.solveBoolean(">",__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getHeight"),BA.numberCast(double.class, __ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getWidth")))));
|
||||
BA.debugLineNum = 55;BA.debugLine="UpdateGraphics";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.anotherprogressbar.class, "_updategraphics" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 57;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static void _busyloop(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("BusyLoop (anotherprogressbar) ","anotherprogressbar",48,__ref.getField(false, "ba"),__ref,59);
|
||||
if (RapidSub.canDelegate("busyloop")) { __ref.runUserSub(false, "anotherprogressbar","busyloop", __ref); return;}
|
||||
ResumableSub_BusyLoop rsub = new ResumableSub_BusyLoop(null,__ref);
|
||||
rsub.resume(null, null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static class ResumableSub_BusyLoop extends BA.ResumableSub {
|
||||
public ResumableSub_BusyLoop(reparto_mazapa.keymon.lat.anotherprogressbar parent,RemoteObject __ref) {
|
||||
this.parent = parent;
|
||||
this.__ref = __ref;
|
||||
}
|
||||
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
|
||||
RemoteObject __ref;
|
||||
reparto_mazapa.keymon.lat.anotherprogressbar parent;
|
||||
RemoteObject _myindex = RemoteObject.createImmutable(0);
|
||||
RemoteObject _r = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XCanvas.B4XRect");
|
||||
RemoteObject _lasttime = RemoteObject.createImmutable(0L);
|
||||
RemoteObject _tasks = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
|
||||
RemoteObject _delta = RemoteObject.createImmutable(0f);
|
||||
RemoteObject _change = RemoteObject.createImmutable(0f);
|
||||
RemoteObject _bmp = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper");
|
||||
|
||||
@Override
|
||||
public void resume(BA ba, RemoteObject result) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("BusyLoop (anotherprogressbar) ","anotherprogressbar",48,__ref.getField(false, "ba"),__ref,59);
|
||||
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;
|
||||
|
||||
while (true) {
|
||||
switch (state) {
|
||||
case -1:
|
||||
return;
|
||||
|
||||
case 0:
|
||||
//C
|
||||
this.state = 1;
|
||||
Debug.locals.put("_ref", __ref);
|
||||
BA.debugLineNum = 60;BA.debugLine="Dim MyIndex As Int = BusyIndex";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_myindex = __ref.getField(true,"_busyindex" /*RemoteObject*/ );Debug.locals.put("MyIndex", _myindex);Debug.locals.put("MyIndex", _myindex);
|
||||
BA.debugLineNum = 61;BA.debugLine="Dim r As B4XRect";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_r = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XCanvas.B4XRect");Debug.locals.put("r", _r);
|
||||
BA.debugLineNum = 62;BA.debugLine="r.Initialize(0, 0, bc.mWidth, bc.mHeight)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_r.runVoidMethod ("Initialize",(Object)(BA.numberCast(float.class, 0)),(Object)(BA.numberCast(float.class, 0)),(Object)(BA.numberCast(float.class, __ref.getField(false,"_bc" /*RemoteObject*/ ).getField(true,"_mwidth"))),(Object)(BA.numberCast(float.class, __ref.getField(false,"_bc" /*RemoteObject*/ ).getField(true,"_mheight"))));
|
||||
BA.debugLineNum = 63;BA.debugLine="Dim LastTime As Long = DateTime.Now";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_lasttime = parent.__c.getField(false,"DateTime").runMethod(true,"getNow");Debug.locals.put("LastTime", _lasttime);Debug.locals.put("LastTime", _lasttime);
|
||||
BA.debugLineNum = 64;BA.debugLine="Do While MyIndex = BusyIndex";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) break;
|
||||
|
||||
case 1:
|
||||
//do while
|
||||
this.state = 37;
|
||||
while (RemoteObject.solveBoolean("=",_myindex,BA.numberCast(double.class, __ref.getField(true,"_busyindex" /*RemoteObject*/ )))) {
|
||||
this.state = 3;
|
||||
if (true) break;
|
||||
}
|
||||
if (true) break;
|
||||
|
||||
case 3:
|
||||
//C
|
||||
this.state = 4;
|
||||
BA.debugLineNum = 65;BA.debugLine="If Vertical Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) break;
|
||||
|
||||
case 4:
|
||||
//if
|
||||
this.state = 9;
|
||||
if (__ref.getField(true,"_vertical" /*RemoteObject*/ ).<Boolean>get().booleanValue()) {
|
||||
this.state = 6;
|
||||
}else {
|
||||
this.state = 8;
|
||||
}if (true) break;
|
||||
|
||||
case 6:
|
||||
//C
|
||||
this.state = 9;
|
||||
BA.debugLineNum = 66;BA.debugLine="BusyBrush.SrcOffsetY = BusyBrush.SrcOffsetY + B";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_busybrush" /*RemoteObject*/ ).setField ("SrcOffsetY",RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_busybrush" /*RemoteObject*/ ).getField(true,"SrcOffsetY"),__ref.getField(true,"_brushoffsetdelta" /*RemoteObject*/ )}, "+",1, 1));
|
||||
if (true) break;
|
||||
|
||||
case 8:
|
||||
//C
|
||||
this.state = 9;
|
||||
BA.debugLineNum = 68;BA.debugLine="BusyBrush.SrcOffsetX = BusyBrush.SrcOffsetX + B";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_busybrush" /*RemoteObject*/ ).setField ("SrcOffsetX",RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_busybrush" /*RemoteObject*/ ).getField(true,"SrcOffsetX"),__ref.getField(true,"_brushoffsetdelta" /*RemoteObject*/ )}, "+",1, 1));
|
||||
if (true) break;
|
||||
|
||||
case 9:
|
||||
//C
|
||||
this.state = 10;
|
||||
;
|
||||
BA.debugLineNum = 70;BA.debugLine="Dim tasks As List";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_tasks = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");Debug.locals.put("tasks", _tasks);
|
||||
BA.debugLineNum = 71;BA.debugLine="tasks.Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_tasks.runVoidMethod ("Initialize");
|
||||
BA.debugLineNum = 72;BA.debugLine="tasks.Add(bc.AsyncDrawRect(bc.TargetRect, Transp";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_tasks.runVoidMethod ("Add",(Object)((__ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(false,"_asyncdrawrect",(Object)(__ref.getField(false,"_bc" /*RemoteObject*/ ).getField(false,"_targetrect")),(Object)(__ref.getField(false,"_transparentbrush" /*RemoteObject*/ )),(Object)(parent.__c.getField(true,"True")),(Object)(BA.numberCast(int.class, 0))))));
|
||||
BA.debugLineNum = 73;BA.debugLine="Dim delta As Float = mValue - CurrentValue";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_delta = BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_mvalue" /*RemoteObject*/ ),__ref.getField(true,"_currentvalue" /*RemoteObject*/ )}, "-",1, 0));Debug.locals.put("delta", _delta);Debug.locals.put("delta", _delta);
|
||||
BA.debugLineNum = 74;BA.debugLine="If Abs(delta) <= 1 Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) break;
|
||||
|
||||
case 10:
|
||||
//if
|
||||
this.state = 21;
|
||||
if (RemoteObject.solveBoolean("k",parent.__c.runMethod(true,"Abs",(Object)(BA.numberCast(double.class, _delta))),BA.numberCast(double.class, 1))) {
|
||||
this.state = 12;
|
||||
}else {
|
||||
this.state = 14;
|
||||
}if (true) break;
|
||||
|
||||
case 12:
|
||||
//C
|
||||
this.state = 21;
|
||||
BA.debugLineNum = 75;BA.debugLine="CurrentValue = mValue";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_currentvalue" /*RemoteObject*/ ,BA.numberCast(float.class, __ref.getField(true,"_mvalue" /*RemoteObject*/ )));
|
||||
if (true) break;
|
||||
|
||||
case 14:
|
||||
//C
|
||||
this.state = 15;
|
||||
BA.debugLineNum = 77;BA.debugLine="Dim change As Float = (DateTime.Now - LastTime)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_change = BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {parent.__c.getField(false,"DateTime").runMethod(true,"getNow"),_lasttime}, "-",1, 2)),RemoteObject.createImmutable(1000),__ref.getField(true,"_valuechangepersecond" /*RemoteObject*/ )}, "/*",0, 0));Debug.locals.put("change", _change);Debug.locals.put("change", _change);
|
||||
BA.debugLineNum = 78;BA.debugLine="If delta > 0 Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) break;
|
||||
|
||||
case 15:
|
||||
//if
|
||||
this.state = 20;
|
||||
if (RemoteObject.solveBoolean(">",_delta,BA.numberCast(double.class, 0))) {
|
||||
this.state = 17;
|
||||
}else {
|
||||
this.state = 19;
|
||||
}if (true) break;
|
||||
|
||||
case 17:
|
||||
//C
|
||||
this.state = 20;
|
||||
BA.debugLineNum = 79;BA.debugLine="CurrentValue = CurrentValue + Min(change, mVal";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_currentvalue" /*RemoteObject*/ ,BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_currentvalue" /*RemoteObject*/ ),parent.__c.runMethod(true,"Min",(Object)(BA.numberCast(double.class, _change)),(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_mvalue" /*RemoteObject*/ ),__ref.getField(true,"_currentvalue" /*RemoteObject*/ )}, "-",1, 0)))}, "+",1, 0)));
|
||||
if (true) break;
|
||||
|
||||
case 19:
|
||||
//C
|
||||
this.state = 20;
|
||||
BA.debugLineNum = 81;BA.debugLine="CurrentValue = CurrentValue - Min(change, Curr";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_currentvalue" /*RemoteObject*/ ,BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_currentvalue" /*RemoteObject*/ ),parent.__c.runMethod(true,"Min",(Object)(BA.numberCast(double.class, _change)),(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_currentvalue" /*RemoteObject*/ ),__ref.getField(true,"_mvalue" /*RemoteObject*/ )}, "-",1, 0)))}, "-",1, 0)));
|
||||
if (true) break;
|
||||
|
||||
case 20:
|
||||
//C
|
||||
this.state = 21;
|
||||
;
|
||||
if (true) break;
|
||||
|
||||
case 21:
|
||||
//C
|
||||
this.state = 22;
|
||||
;
|
||||
BA.debugLineNum = 84;BA.debugLine="LastTime = DateTime.Now";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_lasttime = parent.__c.getField(false,"DateTime").runMethod(true,"getNow");Debug.locals.put("LastTime", _lasttime);
|
||||
BA.debugLineNum = 85;BA.debugLine="If CurrentValue < 100 Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) break;
|
||||
|
||||
case 22:
|
||||
//if
|
||||
this.state = 25;
|
||||
if (RemoteObject.solveBoolean("<",__ref.getField(true,"_currentvalue" /*RemoteObject*/ ),BA.numberCast(double.class, 100))) {
|
||||
this.state = 24;
|
||||
}if (true) break;
|
||||
|
||||
case 24:
|
||||
//C
|
||||
this.state = 25;
|
||||
BA.debugLineNum = 86;BA.debugLine="tasks.Add(bc.AsyncDrawRectRounded(bc.TargetRect";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_tasks.runVoidMethod ("Add",(Object)((__ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(false,"_asyncdrawrectrounded",(Object)(__ref.getField(false,"_bc" /*RemoteObject*/ ).getField(false,"_targetrect")),(Object)(__ref.getField(false,"_emptybrush" /*RemoteObject*/ )),(Object)(parent.__c.getField(true,"True")),(Object)(BA.numberCast(int.class, 0)),(Object)(__ref.getField(true,"_cornerradius" /*RemoteObject*/ ))))));
|
||||
if (true) break;
|
||||
;
|
||||
BA.debugLineNum = 88;BA.debugLine="If Vertical Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
|
||||
case 25:
|
||||
//if
|
||||
this.state = 30;
|
||||
if (__ref.getField(true,"_vertical" /*RemoteObject*/ ).<Boolean>get().booleanValue()) {
|
||||
this.state = 27;
|
||||
}else {
|
||||
this.state = 29;
|
||||
}if (true) break;
|
||||
|
||||
case 27:
|
||||
//C
|
||||
this.state = 30;
|
||||
BA.debugLineNum = 89;BA.debugLine="r.Bottom = Round(CurrentValue / 100 * bc.mHeigh";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_r.runMethod(true,"setBottom",BA.numberCast(float.class, parent.__c.runMethod(true,"Round",(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_currentvalue" /*RemoteObject*/ ),RemoteObject.createImmutable(100),__ref.getField(false,"_bc" /*RemoteObject*/ ).getField(true,"_mheight")}, "/*",0, 0)))));
|
||||
if (true) break;
|
||||
|
||||
case 29:
|
||||
//C
|
||||
this.state = 30;
|
||||
BA.debugLineNum = 91;BA.debugLine="r.Right = Round(CurrentValue / 100 * bc.mWidth)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_r.runMethod(true,"setRight",BA.numberCast(float.class, parent.__c.runMethod(true,"Round",(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_currentvalue" /*RemoteObject*/ ),RemoteObject.createImmutable(100),__ref.getField(false,"_bc" /*RemoteObject*/ ).getField(true,"_mwidth")}, "/*",0, 0)))));
|
||||
if (true) break;
|
||||
|
||||
case 30:
|
||||
//C
|
||||
this.state = 31;
|
||||
;
|
||||
BA.debugLineNum = 94;BA.debugLine="tasks.Add(bc.AsyncDrawRectRounded(r, BusyBrush,";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_tasks.runVoidMethod ("Add",(Object)((__ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(false,"_asyncdrawrectrounded",(Object)(_r),(Object)(__ref.getField(false,"_busybrush" /*RemoteObject*/ )),(Object)(parent.__c.getField(true,"True")),(Object)(BA.numberCast(int.class, 0)),(Object)(__ref.getField(true,"_cornerradius" /*RemoteObject*/ ))))));
|
||||
BA.debugLineNum = 95;BA.debugLine="bc.DrawBitmapCreatorsAsync(Me, \"BC\", tasks)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_bc" /*RemoteObject*/ ).runVoidMethod ("_drawbitmapcreatorsasync",(Object)(__ref),(Object)(BA.ObjectToString("BC")),(Object)(_tasks));
|
||||
BA.debugLineNum = 96;BA.debugLine="Wait For BC_BitmapReady (bmp As B4XBitmap)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
parent.__c.runVoidMethod ("WaitFor","bc_bitmapready", __ref.getField(false, "ba"), anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "anotherprogressbar", "busyloop"), null);
|
||||
this.state = 38;
|
||||
return;
|
||||
case 38:
|
||||
//C
|
||||
this.state = 31;
|
||||
_bmp = (RemoteObject) result.getArrayElement(false,RemoteObject.createImmutable(1));Debug.locals.put("bmp", _bmp);
|
||||
;
|
||||
BA.debugLineNum = 97;BA.debugLine="If xui.IsB4J Then bmp = bc.Bitmap";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) break;
|
||||
|
||||
case 31:
|
||||
//if
|
||||
this.state = 36;
|
||||
if (__ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(true,"getIsB4J").<Boolean>get().booleanValue()) {
|
||||
this.state = 33;
|
||||
;}if (true) break;
|
||||
|
||||
case 33:
|
||||
//C
|
||||
this.state = 36;
|
||||
_bmp = __ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(false,"_getbitmap");Debug.locals.put("bmp", _bmp);
|
||||
if (true) break;
|
||||
|
||||
case 36:
|
||||
//C
|
||||
this.state = 1;
|
||||
;
|
||||
BA.debugLineNum = 98;BA.debugLine="bc.SetBitmapToImageView(bmp, mIV)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_bc" /*RemoteObject*/ ).runVoidMethod ("_setbitmaptoimageview",(Object)(_bmp),(Object)(__ref.getField(false,"_miv" /*RemoteObject*/ )));
|
||||
BA.debugLineNum = 99;BA.debugLine="Sleep(30)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "anotherprogressbar", "busyloop"),BA.numberCast(int.class, 30));
|
||||
this.state = 39;
|
||||
return;
|
||||
case 39:
|
||||
//C
|
||||
this.state = 1;
|
||||
;
|
||||
if (true) break;
|
||||
|
||||
case 37:
|
||||
//C
|
||||
this.state = -1;
|
||||
;
|
||||
BA.debugLineNum = 101;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) break;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
}
|
||||
public static void _bc_bitmapready(RemoteObject __ref,RemoteObject _bmp) throws Exception{
|
||||
}
|
||||
public static RemoteObject _class_globals(RemoteObject __ref) throws Exception{
|
||||
//BA.debugLineNum = 4;BA.debugLine="Sub Class_Globals";
|
||||
//BA.debugLineNum = 5;BA.debugLine="Private mEventName As String 'ignore";
|
||||
anotherprogressbar._meventname = RemoteObject.createImmutable("");__ref.setField("_meventname",anotherprogressbar._meventname);
|
||||
//BA.debugLineNum = 6;BA.debugLine="Private mCallBack As Object 'ignore";
|
||||
anotherprogressbar._mcallback = RemoteObject.createNew ("Object");__ref.setField("_mcallback",anotherprogressbar._mcallback);
|
||||
//BA.debugLineNum = 7;BA.debugLine="Public mBase As B4XView 'ignore";
|
||||
anotherprogressbar._mbase = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_mbase",anotherprogressbar._mbase);
|
||||
//BA.debugLineNum = 8;BA.debugLine="Private xui As XUI 'ignore";
|
||||
anotherprogressbar._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");__ref.setField("_xui",anotherprogressbar._xui);
|
||||
//BA.debugLineNum = 9;BA.debugLine="Private BusyBrush As BCBrush";
|
||||
anotherprogressbar._busybrush = RemoteObject.createNew ("b4a.example.bcpath._bcbrush");__ref.setField("_busybrush",anotherprogressbar._busybrush);
|
||||
//BA.debugLineNum = 10;BA.debugLine="Private BackgroundColor As Int";
|
||||
anotherprogressbar._backgroundcolor = RemoteObject.createImmutable(0);__ref.setField("_backgroundcolor",anotherprogressbar._backgroundcolor);
|
||||
//BA.debugLineNum = 11;BA.debugLine="Private BusyIndex As Int";
|
||||
anotherprogressbar._busyindex = RemoteObject.createImmutable(0);__ref.setField("_busyindex",anotherprogressbar._busyindex);
|
||||
//BA.debugLineNum = 12;BA.debugLine="Private bc As BitmapCreator";
|
||||
anotherprogressbar._bc = RemoteObject.createNew ("b4a.example.bitmapcreator");__ref.setField("_bc",anotherprogressbar._bc);
|
||||
//BA.debugLineNum = 13;BA.debugLine="Private mIV As B4XView";
|
||||
anotherprogressbar._miv = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_miv",anotherprogressbar._miv);
|
||||
//BA.debugLineNum = 14;BA.debugLine="Private TransparentBrush As BCBrush";
|
||||
anotherprogressbar._transparentbrush = RemoteObject.createNew ("b4a.example.bcpath._bcbrush");__ref.setField("_transparentbrush",anotherprogressbar._transparentbrush);
|
||||
//BA.debugLineNum = 15;BA.debugLine="Private Vertical As Boolean";
|
||||
anotherprogressbar._vertical = RemoteObject.createImmutable(false);__ref.setField("_vertical",anotherprogressbar._vertical);
|
||||
//BA.debugLineNum = 16;BA.debugLine="Private CurrentValue As Float";
|
||||
anotherprogressbar._currentvalue = RemoteObject.createImmutable(0f);__ref.setField("_currentvalue",anotherprogressbar._currentvalue);
|
||||
//BA.debugLineNum = 17;BA.debugLine="Public EmptyColor As Int = xui.Color_White";
|
||||
anotherprogressbar._emptycolor = __ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"Color_White");__ref.setField("_emptycolor",anotherprogressbar._emptycolor);
|
||||
//BA.debugLineNum = 18;BA.debugLine="Private EmptyBrush As BCBrush";
|
||||
anotherprogressbar._emptybrush = RemoteObject.createNew ("b4a.example.bcpath._bcbrush");__ref.setField("_emptybrush",anotherprogressbar._emptybrush);
|
||||
//BA.debugLineNum = 19;BA.debugLine="Private mValue As Int";
|
||||
anotherprogressbar._mvalue = RemoteObject.createImmutable(0);__ref.setField("_mvalue",anotherprogressbar._mvalue);
|
||||
//BA.debugLineNum = 20;BA.debugLine="Public Tag As Object";
|
||||
anotherprogressbar._tag = RemoteObject.createNew ("Object");__ref.setField("_tag",anotherprogressbar._tag);
|
||||
//BA.debugLineNum = 21;BA.debugLine="Public ValueChangePerSecond As Float = 60";
|
||||
anotherprogressbar._valuechangepersecond = BA.numberCast(float.class, 60);__ref.setField("_valuechangepersecond",anotherprogressbar._valuechangepersecond);
|
||||
//BA.debugLineNum = 22;BA.debugLine="Public CornerRadius As Int";
|
||||
anotherprogressbar._cornerradius = RemoteObject.createImmutable(0);__ref.setField("_cornerradius",anotherprogressbar._cornerradius);
|
||||
//BA.debugLineNum = 23;BA.debugLine="Public BrushOffsetDelta As Int = 3";
|
||||
anotherprogressbar._brushoffsetdelta = BA.numberCast(int.class, 3);__ref.setField("_brushoffsetdelta",anotherprogressbar._brushoffsetdelta);
|
||||
//BA.debugLineNum = 24;BA.debugLine="End Sub";
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
public static RemoteObject _designercreateview(RemoteObject __ref,RemoteObject _base,RemoteObject _lbl,RemoteObject _props) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("DesignerCreateView (anotherprogressbar) ","anotherprogressbar",48,__ref.getField(false, "ba"),__ref,32);
|
||||
if (RapidSub.canDelegate("designercreateview")) { return __ref.runUserSub(false, "anotherprogressbar","designercreateview", __ref, _base, _lbl, _props);}
|
||||
RemoteObject _iv = RemoteObject.declareNull("anywheresoftware.b4a.objects.ImageViewWrapper");
|
||||
Debug.locals.put("Base", _base);
|
||||
Debug.locals.put("lbl", _lbl);
|
||||
Debug.locals.put("Props", _props);
|
||||
BA.debugLineNum = 32;BA.debugLine="Public Sub DesignerCreateView (Base As Object, lbl";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 33;BA.debugLine="mBase = Base";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).setObject (_base);
|
||||
BA.debugLineNum = 34;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_tag" /*RemoteObject*/ ,__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(false,"getTag"));
|
||||
BA.debugLineNum = 34;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(false,"setTag",__ref);
|
||||
BA.debugLineNum = 35;BA.debugLine="Dim iv As ImageView";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_iv = RemoteObject.createNew ("anywheresoftware.b4a.objects.ImageViewWrapper");Debug.locals.put("iv", _iv);
|
||||
BA.debugLineNum = 36;BA.debugLine="iv.Initialize(\"\")";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_iv.runVoidMethod ("Initialize",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("")));
|
||||
BA.debugLineNum = 37;BA.debugLine="mIV = iv";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_miv" /*RemoteObject*/ ).setObject (_iv.getObject());
|
||||
BA.debugLineNum = 38;BA.debugLine="mIV.Color = xui.Color_Transparent";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_miv" /*RemoteObject*/ ).runMethod(true,"setColor",__ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"Color_Transparent"));
|
||||
BA.debugLineNum = 39;BA.debugLine="setValue(Props.GetDefault(\"Value\", 100))";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.anotherprogressbar.class, "_setvalue" /*RemoteObject*/ ,(Object)(BA.numberCast(int.class, _props.runMethod(false,"GetDefault",(Object)(RemoteObject.createImmutable(("Value"))),(Object)(RemoteObject.createImmutable((100)))))));
|
||||
BA.debugLineNum = 40;BA.debugLine="CurrentValue = mValue";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_currentvalue" /*RemoteObject*/ ,BA.numberCast(float.class, __ref.getField(true,"_mvalue" /*RemoteObject*/ )));
|
||||
BA.debugLineNum = 41;BA.debugLine="mBase.AddView(mIV, 0, 0, 0, 0)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runVoidMethod ("AddView",(Object)((__ref.getField(false,"_miv" /*RemoteObject*/ ).getObject())),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)));
|
||||
BA.debugLineNum = 42;BA.debugLine="mBase.AddView(lbl, 0, 0, mBase.Width, mBase.Heigh";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runVoidMethod ("AddView",(Object)((_lbl.getObject())),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getWidth")),(Object)(__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getHeight")));
|
||||
BA.debugLineNum = 43;BA.debugLine="mBase.SetColorAndBorder(xui.Color_Transparent, 0,";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runVoidMethod ("SetColorAndBorder",(Object)(__ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"Color_Transparent")),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)));
|
||||
BA.debugLineNum = 44;BA.debugLine="BackgroundColor = xui.PaintOrColorToColor(Props.G";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_backgroundcolor" /*RemoteObject*/ ,__ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(true,"PaintOrColorToColor",(Object)(_props.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("ProgressColor")))))));
|
||||
BA.debugLineNum = 45;BA.debugLine="CornerRadius = Props.GetDefault(\"CornerRadius\", 1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_cornerradius" /*RemoteObject*/ ,BA.numberCast(int.class, _props.runMethod(false,"GetDefault",(Object)(RemoteObject.createImmutable(("CornerRadius"))),(Object)(RemoteObject.createImmutable((15))))));
|
||||
BA.debugLineNum = 46;BA.debugLine="Base_Resize(mBase.Width, mBase.Height)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.anotherprogressbar.class, "_base_resize" /*RemoteObject*/ ,(Object)(BA.numberCast(double.class, __ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getWidth"))),(Object)(BA.numberCast(double.class, __ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getHeight"))));
|
||||
BA.debugLineNum = 47;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getprogresscolor(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("getProgressColor (anotherprogressbar) ","anotherprogressbar",48,__ref.getField(false, "ba"),__ref,103);
|
||||
if (RapidSub.canDelegate("getprogresscolor")) { return __ref.runUserSub(false, "anotherprogressbar","getprogresscolor", __ref);}
|
||||
BA.debugLineNum = 103;BA.debugLine="Public Sub getProgressColor As Int";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 104;BA.debugLine="Return BackgroundColor";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(true,"_backgroundcolor" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 105;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(0);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getvalue(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("getValue (anotherprogressbar) ","anotherprogressbar",48,__ref.getField(false, "ba"),__ref,157);
|
||||
if (RapidSub.canDelegate("getvalue")) { return __ref.runUserSub(false, "anotherprogressbar","getvalue", __ref);}
|
||||
BA.debugLineNum = 157;BA.debugLine="Public Sub getValue As Int";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 158;BA.debugLine="Return mValue";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(true,"_mvalue" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 159;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(0);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getvisible(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("getVisible (anotherprogressbar) ","anotherprogressbar",48,__ref.getField(false, "ba"),__ref,153);
|
||||
if (RapidSub.canDelegate("getvisible")) { return __ref.runUserSub(false, "anotherprogressbar","getvisible", __ref);}
|
||||
BA.debugLineNum = 153;BA.debugLine="Public Sub getVisible As Boolean";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 154;BA.debugLine="Return mBase.Visible";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getVisible");
|
||||
BA.debugLineNum = 155;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(false);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _initialize(RemoteObject __ref,RemoteObject _ba,RemoteObject _callback,RemoteObject _eventname) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Initialize (anotherprogressbar) ","anotherprogressbar",48,__ref.getField(false, "ba"),__ref,26);
|
||||
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "anotherprogressbar","initialize", __ref, _ba, _callback, _eventname);}
|
||||
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
|
||||
Debug.locals.put("ba", _ba);
|
||||
Debug.locals.put("Callback", _callback);
|
||||
Debug.locals.put("EventName", _eventname);
|
||||
BA.debugLineNum = 26;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 27;BA.debugLine="mEventName = EventName";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_meventname" /*RemoteObject*/ ,_eventname);
|
||||
BA.debugLineNum = 28;BA.debugLine="mCallBack = Callback";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mcallback" /*RemoteObject*/ ,_callback);
|
||||
BA.debugLineNum = 29;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _setprogresscolor(RemoteObject __ref,RemoteObject _c) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("setProgressColor (anotherprogressbar) ","anotherprogressbar",48,__ref.getField(false, "ba"),__ref,107);
|
||||
if (RapidSub.canDelegate("setprogresscolor")) { return __ref.runUserSub(false, "anotherprogressbar","setprogresscolor", __ref, _c);}
|
||||
Debug.locals.put("c", _c);
|
||||
BA.debugLineNum = 107;BA.debugLine="Public Sub setProgressColor (c As Int)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 108;BA.debugLine="BackgroundColor = c";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_backgroundcolor" /*RemoteObject*/ ,_c);
|
||||
BA.debugLineNum = 109;BA.debugLine="UpdateGraphics";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.anotherprogressbar.class, "_updategraphics" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 110;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _setvalue(RemoteObject __ref,RemoteObject _v) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("setValue (anotherprogressbar) ","anotherprogressbar",48,__ref.getField(false, "ba"),__ref,161);
|
||||
if (RapidSub.canDelegate("setvalue")) { return __ref.runUserSub(false, "anotherprogressbar","setvalue", __ref, _v);}
|
||||
Debug.locals.put("v", _v);
|
||||
BA.debugLineNum = 161;BA.debugLine="Public Sub setValue (v As Int)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 162;BA.debugLine="mValue = Max(0, Min(100, v))";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mvalue" /*RemoteObject*/ ,BA.numberCast(int.class, anotherprogressbar.__c.runMethod(true,"Max",(Object)(BA.numberCast(double.class, 0)),(Object)(anotherprogressbar.__c.runMethod(true,"Min",(Object)(BA.numberCast(double.class, 100)),(Object)(BA.numberCast(double.class, _v)))))));
|
||||
BA.debugLineNum = 163;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _setvaluenoanimation(RemoteObject __ref,RemoteObject _v) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("SetValueNoAnimation (anotherprogressbar) ","anotherprogressbar",48,__ref.getField(false, "ba"),__ref,165);
|
||||
if (RapidSub.canDelegate("setvaluenoanimation")) { return __ref.runUserSub(false, "anotherprogressbar","setvaluenoanimation", __ref, _v);}
|
||||
Debug.locals.put("v", _v);
|
||||
BA.debugLineNum = 165;BA.debugLine="Public Sub SetValueNoAnimation (v As Int)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 166;BA.debugLine="setValue(v)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.anotherprogressbar.class, "_setvalue" /*RemoteObject*/ ,(Object)(_v));
|
||||
BA.debugLineNum = 167;BA.debugLine="CurrentValue = mValue";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_currentvalue" /*RemoteObject*/ ,BA.numberCast(float.class, __ref.getField(true,"_mvalue" /*RemoteObject*/ )));
|
||||
BA.debugLineNum = 168;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _setvisible(RemoteObject __ref,RemoteObject _b) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("setVisible (anotherprogressbar) ","anotherprogressbar",48,__ref.getField(false, "ba"),__ref,145);
|
||||
if (RapidSub.canDelegate("setvisible")) { return __ref.runUserSub(false, "anotherprogressbar","setvisible", __ref, _b);}
|
||||
Debug.locals.put("b", _b);
|
||||
BA.debugLineNum = 145;BA.debugLine="Public Sub setVisible(b As Boolean)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 146;BA.debugLine="BusyIndex = BusyIndex + 1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_busyindex" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_busyindex" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "+",1, 1));
|
||||
BA.debugLineNum = 147;BA.debugLine="If b Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (_b.<Boolean>get().booleanValue()) {
|
||||
BA.debugLineNum = 148;BA.debugLine="BusyLoop";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.anotherprogressbar.class, "_busyloop" /*void*/ );
|
||||
};
|
||||
BA.debugLineNum = 150;BA.debugLine="mBase.Visible = b";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"setVisible",_b);
|
||||
BA.debugLineNum = 151;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _updategraphics(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("UpdateGraphics (anotherprogressbar) ","anotherprogressbar",48,__ref.getField(false, "ba"),__ref,112);
|
||||
if (RapidSub.canDelegate("updategraphics")) { return __ref.runUserSub(false, "anotherprogressbar","updategraphics", __ref);}
|
||||
RemoteObject _width = RemoteObject.createImmutable(0);
|
||||
RemoteObject _template = RemoteObject.declareNull("b4a.example.bitmapcreator");
|
||||
RemoteObject _bcolor = RemoteObject.declareNull("b4a.example.bitmapcreator._argbcolor");
|
||||
BA.debugLineNum = 112;BA.debugLine="Public Sub UpdateGraphics";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 113;BA.debugLine="EmptyBrush = bc.CreateBrushFromColor(EmptyColor)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_emptybrush" /*RemoteObject*/ ,__ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(false,"_createbrushfromcolor",(Object)(__ref.getField(true,"_emptycolor" /*RemoteObject*/ ))));
|
||||
BA.debugLineNum = 114;BA.debugLine="TransparentBrush = bc.CreateBrushFromColor(xui.Co";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_transparentbrush" /*RemoteObject*/ ,__ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(false,"_createbrushfromcolor",(Object)(__ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"Color_Transparent"))));
|
||||
BA.debugLineNum = 115;BA.debugLine="Dim Width As Int = 40";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_width = BA.numberCast(int.class, 40);Debug.locals.put("Width", _width);Debug.locals.put("Width", _width);
|
||||
BA.debugLineNum = 116;BA.debugLine="Dim Template As BitmapCreator";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_template = RemoteObject.createNew ("b4a.example.bitmapcreator");Debug.locals.put("Template", _template);
|
||||
BA.debugLineNum = 117;BA.debugLine="Dim bcolor As ARGBColor";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_bcolor = RemoteObject.createNew ("b4a.example.bitmapcreator._argbcolor");Debug.locals.put("bcolor", _bcolor);
|
||||
BA.debugLineNum = 118;BA.debugLine="bc.ColorToARGB(BackgroundColor, bcolor)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_bc" /*RemoteObject*/ ).runVoidMethod ("_colortoargb",(Object)(__ref.getField(true,"_backgroundcolor" /*RemoteObject*/ )),(Object)(_bcolor));
|
||||
BA.debugLineNum = 119;BA.debugLine="bcolor.r = Min(255, bcolor.r * 1.5)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_bcolor.setField ("r",BA.numberCast(int.class, anotherprogressbar.__c.runMethod(true,"Min",(Object)(BA.numberCast(double.class, 255)),(Object)(RemoteObject.solve(new RemoteObject[] {_bcolor.getField(true,"r"),RemoteObject.createImmutable(1.5)}, "*",0, 0)))));
|
||||
BA.debugLineNum = 120;BA.debugLine="bcolor.g = Min(255, bcolor.g * 1.5)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_bcolor.setField ("g",BA.numberCast(int.class, anotherprogressbar.__c.runMethod(true,"Min",(Object)(BA.numberCast(double.class, 255)),(Object)(RemoteObject.solve(new RemoteObject[] {_bcolor.getField(true,"g"),RemoteObject.createImmutable(1.5)}, "*",0, 0)))));
|
||||
BA.debugLineNum = 121;BA.debugLine="bcolor.b = Min(255, bcolor.b * 1.5)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_bcolor.setField ("b",BA.numberCast(int.class, anotherprogressbar.__c.runMethod(true,"Min",(Object)(BA.numberCast(double.class, 255)),(Object)(RemoteObject.solve(new RemoteObject[] {_bcolor.getField(true,"b"),RemoteObject.createImmutable(1.5)}, "*",0, 0)))));
|
||||
BA.debugLineNum = 122;BA.debugLine="If Vertical Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (__ref.getField(true,"_vertical" /*RemoteObject*/ ).<Boolean>get().booleanValue()) {
|
||||
BA.debugLineNum = 123;BA.debugLine="Template.Initialize(mBase.Width / xui.Scale, mBa";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_template.runVoidMethod ("_initialize",__ref.getField(false, "ba"),(Object)(BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getWidth"),__ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(true,"getScale")}, "/",0, 0))),(Object)(BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getWidth"),__ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(true,"getScale"),_width}, "/+",1, 0))));
|
||||
}else {
|
||||
BA.debugLineNum = 125;BA.debugLine="Template.Initialize(mBase.Height / xui.Scale + W";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_template.runVoidMethod ("_initialize",__ref.getField(false, "ba"),(Object)(BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getHeight"),__ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(true,"getScale"),_width}, "/+",1, 0))),(Object)(BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getHeight"),__ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(true,"getScale")}, "/",0, 0))));
|
||||
};
|
||||
BA.debugLineNum = 128;BA.debugLine="Template.DrawRect(Template.TargetRect, Background";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_template.runVoidMethod ("_drawrect",(Object)(_template.getField(false,"_targetrect")),(Object)(__ref.getField(true,"_backgroundcolor" /*RemoteObject*/ )),(Object)(anotherprogressbar.__c.getField(true,"True")),(Object)(BA.numberCast(int.class, 0)));
|
||||
BA.debugLineNum = 129;BA.debugLine="If Vertical Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (__ref.getField(true,"_vertical" /*RemoteObject*/ ).<Boolean>get().booleanValue()) {
|
||||
BA.debugLineNum = 130;BA.debugLine="Template.DrawLine(-Width / 2, Width / 2, Templat";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_template.runVoidMethod ("_drawline",(Object)(BA.numberCast(float.class, -(double) (0 + _width.<Integer>get().intValue())/(double)(double) (0 + 2))),(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_width,RemoteObject.createImmutable(2)}, "/",0, 0))),(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_template.getField(true,"_mwidth"),_width,RemoteObject.createImmutable(2)}, "+/",1, 0))),(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_template.getField(true,"_mheight"),_width,RemoteObject.createImmutable(2)}, "-/",1, 0))),(Object)(__ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(true,"_argbtocolor",(Object)(_bcolor))),(Object)(_width));
|
||||
}else {
|
||||
BA.debugLineNum = 132;BA.debugLine="Template.DrawLine(Width / 2, -Width / 2, Templat";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_template.runVoidMethod ("_drawline",(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_width,RemoteObject.createImmutable(2)}, "/",0, 0))),(Object)(BA.numberCast(float.class, -(double) (0 + _width.<Integer>get().intValue())/(double)(double) (0 + 2))),(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_template.getField(true,"_mwidth"),_width,RemoteObject.createImmutable(2)}, "-/",1, 0))),(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_template.getField(true,"_mheight"),_width,RemoteObject.createImmutable(2)}, "+/",1, 0))),(Object)(__ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(true,"_argbtocolor",(Object)(_bcolor))),(Object)(_width));
|
||||
};
|
||||
BA.debugLineNum = 134;BA.debugLine="BusyBrush = bc.CreateBrushFromBitmapCreator(Templ";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_busybrush" /*RemoteObject*/ ,__ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(false,"_createbrushfrombitmapcreator",(Object)(_template)));
|
||||
BA.debugLineNum = 135;BA.debugLine="If mValue = 100 Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_mvalue" /*RemoteObject*/ ),BA.numberCast(double.class, 100))) {
|
||||
BA.debugLineNum = 136;BA.debugLine="bc.DrawRectRounded(bc.TargetRect, BackgroundColo";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_bc" /*RemoteObject*/ ).runVoidMethod ("_drawrectrounded",(Object)(__ref.getField(false,"_bc" /*RemoteObject*/ ).getField(false,"_targetrect")),(Object)(__ref.getField(true,"_backgroundcolor" /*RemoteObject*/ )),(Object)(anotherprogressbar.__c.getField(true,"True")),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 15)));
|
||||
}else {
|
||||
BA.debugLineNum = 138;BA.debugLine="bc.DrawRectRounded2(bc.TargetRect, EmptyBrush, T";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_bc" /*RemoteObject*/ ).runVoidMethod ("_drawrectrounded2",(Object)(__ref.getField(false,"_bc" /*RemoteObject*/ ).getField(false,"_targetrect")),(Object)(__ref.getField(false,"_emptybrush" /*RemoteObject*/ )),(Object)(anotherprogressbar.__c.getField(true,"True")),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 15)));
|
||||
};
|
||||
BA.debugLineNum = 140;BA.debugLine="bc.SetBitmapToImageView(bc.Bitmap, mIV)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_bc" /*RemoteObject*/ ).runVoidMethod ("_setbitmaptoimageview",(Object)(__ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(false,"_getbitmap")),(Object)(__ref.getField(false,"_miv" /*RemoteObject*/ )));
|
||||
BA.debugLineNum = 141;BA.debugLine="setVisible(mBase.Visible)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.anotherprogressbar.class, "_setvisible" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getVisible")));
|
||||
BA.debugLineNum = 142;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
}
|
||||
@@ -1,76 +0,0 @@
|
||||
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import java.io.IOException;
|
||||
import anywheresoftware.b4a.BA;
|
||||
import anywheresoftware.b4a.pc.PCBA;
|
||||
import anywheresoftware.b4a.pc.RDebug;
|
||||
import anywheresoftware.b4a.pc.RemoteObject;
|
||||
import anywheresoftware.b4a.pc.RDebug.IRemote;
|
||||
import anywheresoftware.b4a.pc.Debug;
|
||||
import anywheresoftware.b4a.pc.B4XTypes.B4XClass;
|
||||
import anywheresoftware.b4a.pc.B4XTypes.DeviceClass;
|
||||
|
||||
public class appupdater implements IRemote{
|
||||
public static appupdater mostCurrent;
|
||||
public static RemoteObject processBA;
|
||||
public static boolean processGlobalsRun;
|
||||
public static RemoteObject myClass;
|
||||
public static RemoteObject remoteMe;
|
||||
public appupdater() {
|
||||
mostCurrent = this;
|
||||
}
|
||||
public RemoteObject getRemoteMe() {
|
||||
return remoteMe;
|
||||
}
|
||||
|
||||
public boolean isSingleton() {
|
||||
return true;
|
||||
}
|
||||
static {
|
||||
anywheresoftware.b4a.pc.RapidSub.moduleToObject.put(new B4XClass("appupdater"), "reparto_mazapa.keymon.lat.appupdater");
|
||||
}
|
||||
public static RemoteObject getObject() {
|
||||
return myClass;
|
||||
}
|
||||
public RemoteObject _service;
|
||||
private PCBA pcBA;
|
||||
|
||||
public PCBA create(Object[] args) throws ClassNotFoundException{
|
||||
processBA = (RemoteObject) args[1];
|
||||
_service = (RemoteObject) args[2];
|
||||
remoteMe = RemoteObject.declareNull("reparto_mazapa.keymon.lat.appupdater");
|
||||
anywheresoftware.b4a.keywords.Common.Density = (Float)args[3];
|
||||
pcBA = new PCBA(this, appupdater.class);
|
||||
main_subs_0.initializeProcessGlobals();
|
||||
return pcBA;
|
||||
}
|
||||
public static RemoteObject __c = RemoteObject.declareNull("anywheresoftware.b4a.keywords.Common");
|
||||
public static RemoteObject _lnk = RemoteObject.createImmutable("");
|
||||
public static RemoteObject _nnewapp = RemoteObject.declareNull("anywheresoftware.b4a.objects.NotificationWrapper");
|
||||
public static RemoteObject _nnewappnid = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _nativeme = RemoteObject.declareNull("anywheresoftware.b4j.object.JavaObject");
|
||||
public static RemoteObject _n2 = RemoteObject.declareNull("anywheresoftware.b4a.objects.NotificationWrapper");
|
||||
public static RemoteObject _n2id = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _sharedfolder = RemoteObject.createImmutable("");
|
||||
public static RemoteObject _usefileprovider = RemoteObject.createImmutable(false);
|
||||
public static RemoteObject _rp = RemoteObject.declareNull("anywheresoftware.b4a.objects.RuntimePermissions");
|
||||
public static RemoteObject _newapp = RemoteObject.declareNull("reparto_mazapa.keymon.lat.appupdater._mnewversion");
|
||||
public static RemoteObject _dateutils = RemoteObject.declareNull("b4a.example.dateutils");
|
||||
public static reparto_mazapa.keymon.lat.main _main = null;
|
||||
public static reparto_mazapa.keymon.lat.tracker _tracker = null;
|
||||
public static reparto_mazapa.keymon.lat.starter _starter = null;
|
||||
public static reparto_mazapa.keymon.lat.subs _subs = null;
|
||||
public static reparto_mazapa.keymon.lat.firebasemessaging _firebasemessaging = null;
|
||||
public static reparto_mazapa.keymon.lat.foto _foto = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_cliente _mapa_cliente = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_rutas _mapa_rutas = null;
|
||||
public static reparto_mazapa.keymon.lat.newinst2 _newinst2 = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xpages _b4xpages = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xcollections _b4xcollections = null;
|
||||
public static reparto_mazapa.keymon.lat.httputils2service _httputils2service = null;
|
||||
public static reparto_mazapa.keymon.lat.xuiviewsutils _xuiviewsutils = null;
|
||||
public Object[] GetGlobals() {
|
||||
return new Object[] {"B4XCollections",Debug.moduleToString(reparto_mazapa.keymon.lat.b4xcollections.class),"B4XPages",Debug.moduleToString(reparto_mazapa.keymon.lat.b4xpages.class),"DateUtils",appupdater.mostCurrent._dateutils,"FirebaseMessaging",Debug.moduleToString(reparto_mazapa.keymon.lat.firebasemessaging.class),"foto",Debug.moduleToString(reparto_mazapa.keymon.lat.foto.class),"HttpUtils2Service",Debug.moduleToString(reparto_mazapa.keymon.lat.httputils2service.class),"lnk",appupdater._lnk,"Main",Debug.moduleToString(reparto_mazapa.keymon.lat.main.class),"MAPA_CLIENTE",Debug.moduleToString(reparto_mazapa.keymon.lat.mapa_cliente.class),"MAPA_RUTAS",Debug.moduleToString(reparto_mazapa.keymon.lat.mapa_rutas.class),"n2",appupdater._n2,"n2ID",appupdater._n2id,"nativeMe",appupdater._nativeme,"newApp",appupdater._newapp,"newinst2",Debug.moduleToString(reparto_mazapa.keymon.lat.newinst2.class),"nNewApp",appupdater._nnewapp,"nNewAppnID",appupdater._nnewappnid,"rp",appupdater._rp,"Service",appupdater.mostCurrent._service,"SharedFolder",appupdater._sharedfolder,"Starter",Debug.moduleToString(reparto_mazapa.keymon.lat.starter.class),"Subs",Debug.moduleToString(reparto_mazapa.keymon.lat.subs.class),"Tracker",Debug.moduleToString(reparto_mazapa.keymon.lat.tracker.class),"UseFileProvider",appupdater._usefileprovider,"XUIViewsUtils",Debug.moduleToString(reparto_mazapa.keymon.lat.xuiviewsutils.class)};
|
||||
}
|
||||
}
|
||||
@@ -1,784 +0,0 @@
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.BA;
|
||||
import anywheresoftware.b4a.pc.*;
|
||||
|
||||
public class appupdater_subs_0 {
|
||||
|
||||
|
||||
public static RemoteObject _createnotification(RemoteObject _title,RemoteObject _content,RemoteObject _icon,RemoteObject _targetactivity,RemoteObject _sound,RemoteObject _vibrate) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("CreateNotification (appupdater) ","appupdater",1,appupdater.processBA,appupdater.mostCurrent,222);
|
||||
if (RapidSub.canDelegate("createnotification")) { return reparto_mazapa.keymon.lat.appupdater.remoteMe.runUserSub(false, "appupdater","createnotification", _title, _content, _icon, _targetactivity, _sound, _vibrate);}
|
||||
Debug.locals.put("Title", _title);
|
||||
Debug.locals.put("Content", _content);
|
||||
Debug.locals.put("Icon", _icon);
|
||||
Debug.locals.put("TargetActivity", _targetactivity);
|
||||
Debug.locals.put("Sound", _sound);
|
||||
Debug.locals.put("Vibrate", _vibrate);
|
||||
BA.debugLineNum = 222;BA.debugLine="Private Sub CreateNotification(Title As String, Co";
|
||||
Debug.ShouldStop(536870912);
|
||||
BA.debugLineNum = 223;BA.debugLine="n2.Initialize";
|
||||
Debug.ShouldStop(1073741824);
|
||||
appupdater._n2.runVoidMethod ("Initialize");
|
||||
BA.debugLineNum = 224;BA.debugLine="n2.Light = False";
|
||||
Debug.ShouldStop(-2147483648);
|
||||
appupdater._n2.runVoidMethod ("setLight",appupdater.mostCurrent.__c.getField(true,"False"));
|
||||
BA.debugLineNum = 225;BA.debugLine="n2.Vibrate = Vibrate";
|
||||
Debug.ShouldStop(1);
|
||||
appupdater._n2.runVoidMethod ("setVibrate",_vibrate);
|
||||
BA.debugLineNum = 226;BA.debugLine="n2.Sound = Sound";
|
||||
Debug.ShouldStop(2);
|
||||
appupdater._n2.runVoidMethod ("setSound",_sound);
|
||||
BA.debugLineNum = 227;BA.debugLine="n2.OnGoingEvent = True";
|
||||
Debug.ShouldStop(4);
|
||||
appupdater._n2.runVoidMethod ("setOnGoingEvent",appupdater.mostCurrent.__c.getField(true,"True"));
|
||||
BA.debugLineNum = 228;BA.debugLine="n2.Icon = Icon";
|
||||
Debug.ShouldStop(8);
|
||||
appupdater._n2.runVoidMethod ("setIcon",_icon);
|
||||
BA.debugLineNum = 229;BA.debugLine="n2.SetInfo(Title, Content, TargetActivity)";
|
||||
Debug.ShouldStop(16);
|
||||
appupdater._n2.runVoidMethod ("SetInfoNew",appupdater.processBA,(Object)(BA.ObjectToCharSequence(_title)),(Object)(BA.ObjectToCharSequence(_content)),(Object)(_targetactivity));
|
||||
BA.debugLineNum = 230;BA.debugLine="n2.Notify(nNewAppnID)";
|
||||
Debug.ShouldStop(32);
|
||||
appupdater._n2.runVoidMethod ("Notify",(Object)(appupdater._nnewappnid));
|
||||
BA.debugLineNum = 231;BA.debugLine="End Sub";
|
||||
Debug.ShouldStop(64);
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _createnotification2(RemoteObject _title,RemoteObject _content,RemoteObject _icon,RemoteObject _targetactivity,RemoteObject _sound,RemoteObject _vibrate,RemoteObject _pn,RemoteObject _pnid) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("CreateNotification2 (appupdater) ","appupdater",1,appupdater.processBA,appupdater.mostCurrent,206);
|
||||
if (RapidSub.canDelegate("createnotification2")) { return reparto_mazapa.keymon.lat.appupdater.remoteMe.runUserSub(false, "appupdater","createnotification2", _title, _content, _icon, _targetactivity, _sound, _vibrate, _pn, _pnid);}
|
||||
Debug.locals.put("Title", _title);
|
||||
Debug.locals.put("Content", _content);
|
||||
Debug.locals.put("Icon", _icon);
|
||||
Debug.locals.put("TargetActivity", _targetactivity);
|
||||
Debug.locals.put("Sound", _sound);
|
||||
Debug.locals.put("Vibrate", _vibrate);
|
||||
Debug.locals.put("pN", _pn);
|
||||
Debug.locals.put("pNID", _pnid);
|
||||
BA.debugLineNum = 206;BA.debugLine="Private Sub CreateNotification2(Title As String, C";
|
||||
Debug.ShouldStop(8192);
|
||||
BA.debugLineNum = 209;BA.debugLine="pN.Initialize2(pN.IMPORTANCE_HIGH)";
|
||||
Debug.ShouldStop(65536);
|
||||
_pn.runVoidMethod ("Initialize2",(Object)(_pn.getField(true,"IMPORTANCE_HIGH")));
|
||||
BA.debugLineNum = 212;BA.debugLine="pN.Vibrate = Vibrate";
|
||||
Debug.ShouldStop(524288);
|
||||
_pn.runVoidMethod ("setVibrate",_vibrate);
|
||||
BA.debugLineNum = 213;BA.debugLine="pN.Sound = Sound";
|
||||
Debug.ShouldStop(1048576);
|
||||
_pn.runVoidMethod ("setSound",_sound);
|
||||
BA.debugLineNum = 215;BA.debugLine="pN.Icon = Icon";
|
||||
Debug.ShouldStop(4194304);
|
||||
_pn.runVoidMethod ("setIcon",_icon);
|
||||
BA.debugLineNum = 216;BA.debugLine="pN.AutoCancel = True";
|
||||
Debug.ShouldStop(8388608);
|
||||
_pn.runVoidMethod ("setAutoCancel",appupdater.mostCurrent.__c.getField(true,"True"));
|
||||
BA.debugLineNum = 217;BA.debugLine="pN.SetInfo(Title, Content, TargetActivity)";
|
||||
Debug.ShouldStop(16777216);
|
||||
_pn.runVoidMethod ("SetInfoNew",appupdater.processBA,(Object)(BA.ObjectToCharSequence(_title)),(Object)(BA.ObjectToCharSequence(_content)),(Object)(_targetactivity));
|
||||
BA.debugLineNum = 218;BA.debugLine="pN.Notify(pNID)";
|
||||
Debug.ShouldStop(33554432);
|
||||
_pn.runVoidMethod ("Notify",(Object)(_pnid));
|
||||
BA.debugLineNum = 219;BA.debugLine="Return pN";
|
||||
Debug.ShouldStop(67108864);
|
||||
if (true) return _pn;
|
||||
BA.debugLineNum = 220;BA.debugLine="End Sub";
|
||||
Debug.ShouldStop(134217728);
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _download(RemoteObject _callback,RemoteObject _link) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Download (appupdater) ","appupdater",1,appupdater.processBA,appupdater.mostCurrent,199);
|
||||
if (RapidSub.canDelegate("download")) { return reparto_mazapa.keymon.lat.appupdater.remoteMe.runUserSub(false, "appupdater","download", _callback, _link);}
|
||||
RemoteObject _j = RemoteObject.declareNull("reparto_mazapa.keymon.lat.httpjob");
|
||||
Debug.locals.put("Callback", _callback);
|
||||
Debug.locals.put("link", _link);
|
||||
BA.debugLineNum = 199;BA.debugLine="Sub Download (Callback As Object, link As String)";
|
||||
Debug.ShouldStop(64);
|
||||
BA.debugLineNum = 200;BA.debugLine="Dim j As HttpJob";
|
||||
Debug.ShouldStop(128);
|
||||
_j = RemoteObject.createNew ("reparto_mazapa.keymon.lat.httpjob");Debug.locals.put("j", _j);
|
||||
BA.debugLineNum = 201;BA.debugLine="j.Initialize(\"\", Callback)";
|
||||
Debug.ShouldStop(256);
|
||||
_j.runClassMethod (reparto_mazapa.keymon.lat.httpjob.class, "_initialize" /*RemoteObject*/ ,appupdater.processBA,(Object)(BA.ObjectToString("")),(Object)(_callback));
|
||||
BA.debugLineNum = 202;BA.debugLine="j.Download(link)";
|
||||
Debug.ShouldStop(512);
|
||||
_j.runClassMethod (reparto_mazapa.keymon.lat.httpjob.class, "_download" /*RemoteObject*/ ,(Object)(_link));
|
||||
BA.debugLineNum = 203;BA.debugLine="Return j";
|
||||
Debug.ShouldStop(1024);
|
||||
if (true) return _j;
|
||||
BA.debugLineNum = 204;BA.debugLine="End Sub";
|
||||
Debug.ShouldStop(2048);
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _download_destroy() throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("download_Destroy (appupdater) ","appupdater",1,appupdater.processBA,appupdater.mostCurrent,194);
|
||||
if (RapidSub.canDelegate("download_destroy")) { return reparto_mazapa.keymon.lat.appupdater.remoteMe.runUserSub(false, "appupdater","download_destroy");}
|
||||
BA.debugLineNum = 194;BA.debugLine="Sub download_Destroy";
|
||||
Debug.ShouldStop(2);
|
||||
BA.debugLineNum = 195;BA.debugLine="n2.Cancel(n2ID)";
|
||||
Debug.ShouldStop(4);
|
||||
appupdater._n2.runVoidMethod ("Cancel",(Object)(appupdater._n2id));
|
||||
BA.debugLineNum = 196;BA.debugLine="Service.StopForeground(n2ID)";
|
||||
Debug.ShouldStop(8);
|
||||
appupdater.mostCurrent._service.runVoidMethod ("StopForeground",(Object)(appupdater._n2id));
|
||||
BA.debugLineNum = 197;BA.debugLine="End Sub";
|
||||
Debug.ShouldStop(16);
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static void _download_newapk() throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("download_newApk (appupdater) ","appupdater",1,appupdater.processBA,appupdater.mostCurrent,156);
|
||||
if (RapidSub.canDelegate("download_newapk")) { reparto_mazapa.keymon.lat.appupdater.remoteMe.runUserSub(false, "appupdater","download_newapk"); return;}
|
||||
ResumableSub_download_newApk rsub = new ResumableSub_download_newApk(null);
|
||||
rsub.resume(null, null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static class ResumableSub_download_newApk extends BA.ResumableSub {
|
||||
public ResumableSub_download_newApk(reparto_mazapa.keymon.lat.appupdater parent) {
|
||||
this.parent = parent;
|
||||
}
|
||||
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
|
||||
reparto_mazapa.keymon.lat.appupdater parent;
|
||||
RemoteObject _job_newapp = RemoteObject.declareNull("reparto_mazapa.keymon.lat.httpjob");
|
||||
RemoteObject _outnewapk = RemoteObject.declareNull("anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper");
|
||||
RemoteObject _in = RemoteObject.declareNull("anywheresoftware.b4a.objects.IntentWrapper");
|
||||
|
||||
@Override
|
||||
public void resume(BA ba, RemoteObject result) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("download_newApk (appupdater) ","appupdater",1,appupdater.processBA,appupdater.mostCurrent,156);
|
||||
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;
|
||||
|
||||
while (true) {
|
||||
switch (state) {
|
||||
case -1:
|
||||
return;
|
||||
|
||||
case 0:
|
||||
//C
|
||||
this.state = 1;
|
||||
BA.debugLineNum = 159;BA.debugLine="Log(\"Descargando actualización\")";
|
||||
Debug.ShouldStop(1073741824);
|
||||
parent.mostCurrent.__c.runVoidMethod ("LogImpl","3589827",RemoteObject.createImmutable("Descargando actualización"),0);
|
||||
BA.debugLineNum = 160;BA.debugLine="B4XPages.ShowPage(\"login\")";
|
||||
Debug.ShouldStop(-2147483648);
|
||||
parent.mostCurrent._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,appupdater.processBA,(Object)(RemoteObject.createImmutable("login")));
|
||||
BA.debugLineNum = 161;BA.debugLine="B4XPages.MainPage.muestraProgreso(\"Descargando ac";
|
||||
Debug.ShouldStop(1);
|
||||
parent.mostCurrent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,appupdater.processBA).runClassMethod (reparto_mazapa.keymon.lat.b4xmainpage.class, "_muestraprogreso" /*RemoteObject*/ ,(Object)(RemoteObject.createImmutable("Descargando actualización")));
|
||||
BA.debugLineNum = 162;BA.debugLine="Starter.muestraProgreso = 1";
|
||||
Debug.ShouldStop(2);
|
||||
parent.mostCurrent._starter._muestraprogreso /*RemoteObject*/ = BA.NumberToString(1);
|
||||
BA.debugLineNum = 163;BA.debugLine="Dim job_newAPP As HttpJob";
|
||||
Debug.ShouldStop(4);
|
||||
_job_newapp = RemoteObject.createNew ("reparto_mazapa.keymon.lat.httpjob");Debug.locals.put("job_newAPP", _job_newapp);
|
||||
BA.debugLineNum = 164;BA.debugLine="job_newAPP.Initialize(\"job_newAPP\",Me)";
|
||||
Debug.ShouldStop(8);
|
||||
_job_newapp.runClassMethod (reparto_mazapa.keymon.lat.httpjob.class, "_initialize" /*RemoteObject*/ ,appupdater.processBA,(Object)(BA.ObjectToString("job_newAPP")),(Object)(appupdater.getObject()));
|
||||
BA.debugLineNum = 165;BA.debugLine="job_newAPP.Download(newApp.appLink)";
|
||||
Debug.ShouldStop(16);
|
||||
_job_newapp.runClassMethod (reparto_mazapa.keymon.lat.httpjob.class, "_download" /*RemoteObject*/ ,(Object)(parent._newapp.getField(true,"appLink" /*RemoteObject*/ )));
|
||||
BA.debugLineNum = 166;BA.debugLine="Wait for (job_newAPP) JobDone (job_newAPP As Http";
|
||||
Debug.ShouldStop(32);
|
||||
parent.mostCurrent.__c.runVoidMethod ("WaitFor","jobdone", appupdater.processBA, anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "appupdater", "download_newapk"), (_job_newapp));
|
||||
this.state = 9;
|
||||
return;
|
||||
case 9:
|
||||
//C
|
||||
this.state = 1;
|
||||
_job_newapp = (RemoteObject) result.getArrayElement(false,RemoteObject.createImmutable(0));Debug.locals.put("job_newAPP", _job_newapp);
|
||||
;
|
||||
BA.debugLineNum = 167;BA.debugLine="If job_newAPP.Success = True Then";
|
||||
Debug.ShouldStop(64);
|
||||
if (true) break;
|
||||
|
||||
case 1:
|
||||
//if
|
||||
this.state = 8;
|
||||
if (RemoteObject.solveBoolean("=",_job_newapp.getField(true,"_success" /*RemoteObject*/ ),parent.mostCurrent.__c.getField(true,"True"))) {
|
||||
this.state = 3;
|
||||
}if (true) break;
|
||||
|
||||
case 3:
|
||||
//C
|
||||
this.state = 4;
|
||||
BA.debugLineNum = 169;BA.debugLine="If File.Exists(SharedFolder,\"newapp.apk\") Then";
|
||||
Debug.ShouldStop(256);
|
||||
if (true) break;
|
||||
|
||||
case 4:
|
||||
//if
|
||||
this.state = 7;
|
||||
if (parent.mostCurrent.__c.getField(false,"File").runMethod(true,"Exists",(Object)(parent._sharedfolder),(Object)(RemoteObject.createImmutable("newapp.apk"))).<Boolean>get().booleanValue()) {
|
||||
this.state = 6;
|
||||
}if (true) break;
|
||||
|
||||
case 6:
|
||||
//C
|
||||
this.state = 7;
|
||||
BA.debugLineNum = 170;BA.debugLine="File.Delete(SharedFolder,\"newapp.apk\")";
|
||||
Debug.ShouldStop(512);
|
||||
parent.mostCurrent.__c.getField(false,"File").runVoidMethod ("Delete",(Object)(parent._sharedfolder),(Object)(RemoteObject.createImmutable("newapp.apk")));
|
||||
if (true) break;
|
||||
|
||||
case 7:
|
||||
//C
|
||||
this.state = 8;
|
||||
;
|
||||
BA.debugLineNum = 173;BA.debugLine="Dim outNewAPK As OutputStream = File.OpenOutput(";
|
||||
Debug.ShouldStop(4096);
|
||||
_outnewapk = RemoteObject.createNew ("anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper");
|
||||
_outnewapk = parent.mostCurrent.__c.getField(false,"File").runMethod(false,"OpenOutput",(Object)(parent._sharedfolder),(Object)(BA.ObjectToString("newapp.apk")),(Object)(parent.mostCurrent.__c.getField(true,"False")));Debug.locals.put("outNewAPK", _outnewapk);Debug.locals.put("outNewAPK", _outnewapk);
|
||||
BA.debugLineNum = 174;BA.debugLine="File.Copy2(job_newAPP.GetInputStream, outNewAPK)";
|
||||
Debug.ShouldStop(8192);
|
||||
parent.mostCurrent.__c.getField(false,"File").runVoidMethod ("Copy2",(Object)((_job_newapp.runClassMethod (reparto_mazapa.keymon.lat.httpjob.class, "_getinputstream" /*RemoteObject*/ ).getObject())),(Object)((_outnewapk.getObject())));
|
||||
BA.debugLineNum = 175;BA.debugLine="outNewAPK.Close";
|
||||
Debug.ShouldStop(16384);
|
||||
_outnewapk.runVoidMethod ("Close");
|
||||
BA.debugLineNum = 177;BA.debugLine="B4XPages.MainPage.ocultaProgreso";
|
||||
Debug.ShouldStop(65536);
|
||||
parent.mostCurrent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,appupdater.processBA).runClassMethod (reparto_mazapa.keymon.lat.b4xmainpage.class, "_ocultaprogreso" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 178;BA.debugLine="Log(\"ocultamos prigreso DOWNLOAD APK\")";
|
||||
Debug.ShouldStop(131072);
|
||||
parent.mostCurrent.__c.runVoidMethod ("LogImpl","3589846",RemoteObject.createImmutable("ocultamos prigreso DOWNLOAD APK"),0);
|
||||
if (true) break;
|
||||
|
||||
case 8:
|
||||
//C
|
||||
this.state = -1;
|
||||
;
|
||||
BA.debugLineNum = 180;BA.debugLine="job_newAPP.Release";
|
||||
Debug.ShouldStop(524288);
|
||||
_job_newapp.runClassMethod (reparto_mazapa.keymon.lat.httpjob.class, "_release" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 182;BA.debugLine="Dim in As Intent";
|
||||
Debug.ShouldStop(2097152);
|
||||
_in = RemoteObject.createNew ("anywheresoftware.b4a.objects.IntentWrapper");Debug.locals.put("in", _in);
|
||||
BA.debugLineNum = 183;BA.debugLine="in.Initialize(in.ACTION_VIEW,\"\" )";
|
||||
Debug.ShouldStop(4194304);
|
||||
_in.runVoidMethod ("Initialize",(Object)(_in.getField(true,"ACTION_VIEW")),(Object)(RemoteObject.createImmutable("")));
|
||||
BA.debugLineNum = 184;BA.debugLine="SetFileUriAsIntentData(in, \"newapp.apk\")";
|
||||
Debug.ShouldStop(8388608);
|
||||
_setfileuriasintentdata(_in,RemoteObject.createImmutable("newapp.apk"));
|
||||
BA.debugLineNum = 186;BA.debugLine="in.SetType(\"application/vnd.android.package-archi";
|
||||
Debug.ShouldStop(33554432);
|
||||
_in.runVoidMethod ("SetType",(Object)(RemoteObject.createImmutable("application/vnd.android.package-archive")));
|
||||
BA.debugLineNum = 187;BA.debugLine="StartActivity(in)";
|
||||
Debug.ShouldStop(67108864);
|
||||
parent.mostCurrent.__c.runVoidMethod ("StartActivity",appupdater.processBA,(Object)((_in.getObject())));
|
||||
BA.debugLineNum = 188;BA.debugLine="n2.Cancel(nNewAppnID)";
|
||||
Debug.ShouldStop(134217728);
|
||||
parent._n2.runVoidMethod ("Cancel",(Object)(parent._nnewappnid));
|
||||
BA.debugLineNum = 190;BA.debugLine="StopService(Me)";
|
||||
Debug.ShouldStop(536870912);
|
||||
parent.mostCurrent.__c.runVoidMethod ("StopService",appupdater.processBA,(Object)(appupdater.getObject()));
|
||||
BA.debugLineNum = 192;BA.debugLine="End Sub";
|
||||
Debug.ShouldStop(-2147483648);
|
||||
if (true) break;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
}
|
||||
public static void _jobdone(RemoteObject _job_newapp) throws Exception{
|
||||
}
|
||||
public static RemoteObject _download_start(RemoteObject _startingintent) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("download_Start (appupdater) ","appupdater",1,appupdater.processBA,appupdater.mostCurrent,152);
|
||||
if (RapidSub.canDelegate("download_start")) { return reparto_mazapa.keymon.lat.appupdater.remoteMe.runUserSub(false, "appupdater","download_start", _startingintent);}
|
||||
Debug.locals.put("StartingIntent", _startingintent);
|
||||
BA.debugLineNum = 152;BA.debugLine="Sub download_Start (StartingIntent As Intent)";
|
||||
Debug.ShouldStop(8388608);
|
||||
BA.debugLineNum = 153;BA.debugLine="download_newApk";
|
||||
Debug.ShouldStop(16777216);
|
||||
_download_newapk();
|
||||
BA.debugLineNum = 154;BA.debugLine="End Sub";
|
||||
Debug.ShouldStop(33554432);
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _fileprovider_init() throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("fileProvider_init (appupdater) ","appupdater",1,appupdater.processBA,appupdater.mostCurrent,237);
|
||||
if (RapidSub.canDelegate("fileprovider_init")) { return reparto_mazapa.keymon.lat.appupdater.remoteMe.runUserSub(false, "appupdater","fileprovider_init");}
|
||||
RemoteObject _p = RemoteObject.declareNull("anywheresoftware.b4a.phone.Phone");
|
||||
BA.debugLineNum = 237;BA.debugLine="Sub fileProvider_init";
|
||||
Debug.ShouldStop(4096);
|
||||
BA.debugLineNum = 238;BA.debugLine="Dim p As Phone";
|
||||
Debug.ShouldStop(8192);
|
||||
_p = RemoteObject.createNew ("anywheresoftware.b4a.phone.Phone");Debug.locals.put("p", _p);
|
||||
BA.debugLineNum = 239;BA.debugLine="If p.SdkVersion >= 24 Or File.ExternalWritable =";
|
||||
Debug.ShouldStop(16384);
|
||||
if (RemoteObject.solveBoolean("g",_p.runMethod(true,"getSdkVersion"),BA.numberCast(double.class, 24)) || RemoteObject.solveBoolean("=",appupdater.mostCurrent.__c.getField(false,"File").runMethod(true,"getExternalWritable"),appupdater.mostCurrent.__c.getField(true,"False"))) {
|
||||
BA.debugLineNum = 240;BA.debugLine="UseFileProvider = True";
|
||||
Debug.ShouldStop(32768);
|
||||
appupdater._usefileprovider = appupdater.mostCurrent.__c.getField(true,"True");
|
||||
BA.debugLineNum = 241;BA.debugLine="SharedFolder = File.Combine(File.DirInternal, \"s";
|
||||
Debug.ShouldStop(65536);
|
||||
appupdater._sharedfolder = appupdater.mostCurrent.__c.getField(false,"File").runMethod(true,"Combine",(Object)(appupdater.mostCurrent.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(RemoteObject.createImmutable("shared")));
|
||||
BA.debugLineNum = 242;BA.debugLine="If Not(File.IsDirectory(File.DirInternal,\"shared";
|
||||
Debug.ShouldStop(131072);
|
||||
if (appupdater.mostCurrent.__c.runMethod(true,"Not",(Object)(appupdater.mostCurrent.__c.getField(false,"File").runMethod(true,"IsDirectory",(Object)(appupdater.mostCurrent.__c.getField(false,"File").runMethod(true,"getDirInternal")),(Object)(RemoteObject.createImmutable("shared"))))).<Boolean>get().booleanValue()) {
|
||||
BA.debugLineNum = 243;BA.debugLine="File.MakeDir(\"\", SharedFolder)";
|
||||
Debug.ShouldStop(262144);
|
||||
appupdater.mostCurrent.__c.getField(false,"File").runVoidMethod ("MakeDir",(Object)(BA.ObjectToString("")),(Object)(appupdater._sharedfolder));
|
||||
};
|
||||
}else {
|
||||
BA.debugLineNum = 246;BA.debugLine="UseFileProvider = False";
|
||||
Debug.ShouldStop(2097152);
|
||||
appupdater._usefileprovider = appupdater.mostCurrent.__c.getField(true,"False");
|
||||
BA.debugLineNum = 247;BA.debugLine="SharedFolder = rp.GetSafeDirDefaultExternal(\"sha";
|
||||
Debug.ShouldStop(4194304);
|
||||
appupdater._sharedfolder = appupdater._rp.runMethod(true,"GetSafeDirDefaultExternal",(Object)(RemoteObject.createImmutable("shared")));
|
||||
};
|
||||
BA.debugLineNum = 249;BA.debugLine="Log($\"Using FileProvider? - ${UseFileProvider}\"$)";
|
||||
Debug.ShouldStop(16777216);
|
||||
appupdater.mostCurrent.__c.runVoidMethod ("LogImpl","3983052",(RemoteObject.concat(RemoteObject.createImmutable("Using FileProvider? - "),appupdater.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((appupdater._usefileprovider))),RemoteObject.createImmutable(""))),0);
|
||||
BA.debugLineNum = 250;BA.debugLine="End Sub";
|
||||
Debug.ShouldStop(33554432);
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getfileuri(RemoteObject _filename) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("GetFileUri (appupdater) ","appupdater",1,appupdater.processBA,appupdater.mostCurrent,253);
|
||||
if (RapidSub.canDelegate("getfileuri")) { return reparto_mazapa.keymon.lat.appupdater.remoteMe.runUserSub(false, "appupdater","getfileuri", _filename);}
|
||||
RemoteObject _uri = RemoteObject.declareNull("anywheresoftware.b4j.object.JavaObject");
|
||||
RemoteObject _f = RemoteObject.declareNull("anywheresoftware.b4j.object.JavaObject");
|
||||
RemoteObject _fp = RemoteObject.declareNull("anywheresoftware.b4j.object.JavaObject");
|
||||
RemoteObject _context = RemoteObject.declareNull("anywheresoftware.b4j.object.JavaObject");
|
||||
Debug.locals.put("FileName", _filename);
|
||||
BA.debugLineNum = 253;BA.debugLine="Sub GetFileUri (FileName As String) As Object";
|
||||
Debug.ShouldStop(268435456);
|
||||
BA.debugLineNum = 254;BA.debugLine="Try";
|
||||
Debug.ShouldStop(536870912);
|
||||
try { BA.debugLineNum = 255;BA.debugLine="If Not(UseFileProvider) Then";
|
||||
Debug.ShouldStop(1073741824);
|
||||
if (appupdater.mostCurrent.__c.runMethod(true,"Not",(Object)(appupdater._usefileprovider)).<Boolean>get().booleanValue()) {
|
||||
BA.debugLineNum = 256;BA.debugLine="Dim uri As JavaObject";
|
||||
Debug.ShouldStop(-2147483648);
|
||||
_uri = RemoteObject.createNew ("anywheresoftware.b4j.object.JavaObject");Debug.locals.put("uri", _uri);
|
||||
BA.debugLineNum = 257;BA.debugLine="Return uri.InitializeStatic(\"android.net.Uri\").";
|
||||
Debug.ShouldStop(1);
|
||||
Debug.CheckDeviceExceptions();if (true) return _uri.runMethod(false,"InitializeStatic",(Object)(RemoteObject.createImmutable("android.net.Uri"))).runMethod(false,"RunMethod",(Object)(BA.ObjectToString("parse")),(Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.concat(RemoteObject.createImmutable("file://"),appupdater.mostCurrent.__c.getField(false,"File").runMethod(true,"Combine",(Object)(appupdater._sharedfolder),(Object)(_filename))))})));
|
||||
};
|
||||
BA.debugLineNum = 259;BA.debugLine="Dim f As JavaObject";
|
||||
Debug.ShouldStop(4);
|
||||
_f = RemoteObject.createNew ("anywheresoftware.b4j.object.JavaObject");Debug.locals.put("f", _f);
|
||||
BA.debugLineNum = 260;BA.debugLine="f.InitializeNewInstance(\"java.io.File\", Array(Sh";
|
||||
Debug.ShouldStop(8);
|
||||
_f.runVoidMethod ("InitializeNewInstance",(Object)(BA.ObjectToString("java.io.File")),(Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(appupdater._sharedfolder),(_filename)})));
|
||||
BA.debugLineNum = 261;BA.debugLine="Dim fp As JavaObject";
|
||||
Debug.ShouldStop(16);
|
||||
_fp = RemoteObject.createNew ("anywheresoftware.b4j.object.JavaObject");Debug.locals.put("fp", _fp);
|
||||
BA.debugLineNum = 262;BA.debugLine="Dim context As JavaObject";
|
||||
Debug.ShouldStop(32);
|
||||
_context = RemoteObject.createNew ("anywheresoftware.b4j.object.JavaObject");Debug.locals.put("context", _context);
|
||||
BA.debugLineNum = 263;BA.debugLine="context.InitializeContext";
|
||||
Debug.ShouldStop(64);
|
||||
_context.runVoidMethod ("InitializeContext",appupdater.processBA);
|
||||
BA.debugLineNum = 264;BA.debugLine="fp.InitializeStatic(\"android.support.v4.content.";
|
||||
Debug.ShouldStop(128);
|
||||
_fp.runVoidMethod ("InitializeStatic",(Object)(RemoteObject.createImmutable("androidx.core.content.FileProvider")));
|
||||
BA.debugLineNum = 265;BA.debugLine="Return fp.RunMethod(\"getUriForFile\", Array(conte";
|
||||
Debug.ShouldStop(256);
|
||||
Debug.CheckDeviceExceptions();if (true) return _fp.runMethod(false,"RunMethod",(Object)(BA.ObjectToString("getUriForFile")),(Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(_context.getObject()),(RemoteObject.concat(appupdater.mostCurrent.__c.getField(false,"Application").runMethod(true,"getPackageName"),RemoteObject.createImmutable(".provider"))),(_f.getObject())})));
|
||||
Debug.CheckDeviceExceptions();
|
||||
}
|
||||
catch (Exception e14) {
|
||||
BA.rdebugUtils.runVoidMethod("setLastException",appupdater.processBA, e14.toString()); BA.debugLineNum = 267;BA.debugLine="Log(\"FileProvider::GetFileUri - error - \" & Last";
|
||||
Debug.ShouldStop(1024);
|
||||
appupdater.mostCurrent.__c.runVoidMethod ("LogImpl","31048590",RemoteObject.concat(RemoteObject.createImmutable("FileProvider::GetFileUri - error - "),appupdater.mostCurrent.__c.runMethod(false,"LastException",appupdater.processBA).runMethod(true,"getMessage")),0);
|
||||
BA.debugLineNum = 268;BA.debugLine="Return \"\"";
|
||||
Debug.ShouldStop(2048);
|
||||
if (true) return RemoteObject.createImmutable((""));
|
||||
};
|
||||
BA.debugLineNum = 270;BA.debugLine="End Sub";
|
||||
Debug.ShouldStop(8192);
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _process_globals() throws Exception{
|
||||
//BA.debugLineNum = 70;BA.debugLine="Sub Process_Globals";
|
||||
//BA.debugLineNum = 75;BA.debugLine="Public lnk As String = \"https://keymon.lat/movil/";
|
||||
appupdater._lnk = BA.ObjectToString("https://keymon.lat/movil/MAZAPA/MAZAPA_reparto.ver");
|
||||
//BA.debugLineNum = 85;BA.debugLine="Public nNewApp As Notification";
|
||||
appupdater._nnewapp = RemoteObject.createNew ("anywheresoftware.b4a.objects.NotificationWrapper");
|
||||
//BA.debugLineNum = 86;BA.debugLine="Public nNewAppnID As Int = 16";
|
||||
appupdater._nnewappnid = BA.numberCast(int.class, 16);
|
||||
//BA.debugLineNum = 88;BA.debugLine="Dim nativeMe As JavaObject";
|
||||
appupdater._nativeme = RemoteObject.createNew ("anywheresoftware.b4j.object.JavaObject");
|
||||
//BA.debugLineNum = 89;BA.debugLine="Dim n2 As Notification";
|
||||
appupdater._n2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.NotificationWrapper");
|
||||
//BA.debugLineNum = 90;BA.debugLine="Dim n2ID As Int = 16";
|
||||
appupdater._n2id = BA.numberCast(int.class, 16);
|
||||
//BA.debugLineNum = 92;BA.debugLine="Public SharedFolder As String";
|
||||
appupdater._sharedfolder = RemoteObject.createImmutable("");
|
||||
//BA.debugLineNum = 93;BA.debugLine="Public UseFileProvider As Boolean";
|
||||
appupdater._usefileprovider = RemoteObject.createImmutable(false);
|
||||
//BA.debugLineNum = 94;BA.debugLine="Private rp As RuntimePermissions";
|
||||
appupdater._rp = RemoteObject.createNew ("anywheresoftware.b4a.objects.RuntimePermissions");
|
||||
//BA.debugLineNum = 96;BA.debugLine="Type mNewVersion(update As Boolean, nonewAPP As B";
|
||||
;
|
||||
//BA.debugLineNum = 98;BA.debugLine="Public newApp As mNewVersion";
|
||||
appupdater._newapp = RemoteObject.createNew ("reparto_mazapa.keymon.lat.appupdater._mnewversion");
|
||||
//BA.debugLineNum = 99;BA.debugLine="End Sub";
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
public static RemoteObject _service_create() throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Service_Create (appupdater) ","appupdater",1,appupdater.processBA,appupdater.mostCurrent,101);
|
||||
if (RapidSub.canDelegate("service_create")) { return reparto_mazapa.keymon.lat.appupdater.remoteMe.runUserSub(false, "appupdater","service_create");}
|
||||
BA.debugLineNum = 101;BA.debugLine="Sub Service_Create";
|
||||
Debug.ShouldStop(16);
|
||||
BA.debugLineNum = 102;BA.debugLine="Log(\"appUpdater(), Service_Create\")";
|
||||
Debug.ShouldStop(32);
|
||||
appupdater.mostCurrent.__c.runVoidMethod ("LogImpl","3393217",RemoteObject.createImmutable("appUpdater(), Service_Create"),0);
|
||||
BA.debugLineNum = 103;BA.debugLine="newApp.Initialize";
|
||||
Debug.ShouldStop(64);
|
||||
appupdater._newapp.runVoidMethod ("Initialize");
|
||||
BA.debugLineNum = 104;BA.debugLine="Service.AutomaticForegroundMode = Service.AUTOMAT";
|
||||
Debug.ShouldStop(128);
|
||||
appupdater.mostCurrent._service.setField ("AutomaticForegroundMode",appupdater.mostCurrent._service.getField(true,"AUTOMATIC_FOREGROUND_NEVER"));
|
||||
BA.debugLineNum = 105;BA.debugLine="n2.Initialize";
|
||||
Debug.ShouldStop(256);
|
||||
appupdater._n2.runVoidMethod ("Initialize");
|
||||
BA.debugLineNum = 106;BA.debugLine="nativeMe.InitializeContext";
|
||||
Debug.ShouldStop(512);
|
||||
appupdater._nativeme.runVoidMethod ("InitializeContext",appupdater.processBA);
|
||||
BA.debugLineNum = 107;BA.debugLine="End Sub";
|
||||
Debug.ShouldStop(1024);
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _service_destroy() throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Service_Destroy (appupdater) ","appupdater",1,appupdater.processBA,appupdater.mostCurrent,233);
|
||||
if (RapidSub.canDelegate("service_destroy")) { return reparto_mazapa.keymon.lat.appupdater.remoteMe.runUserSub(false, "appupdater","service_destroy");}
|
||||
BA.debugLineNum = 233;BA.debugLine="Sub Service_Destroy";
|
||||
Debug.ShouldStop(256);
|
||||
BA.debugLineNum = 234;BA.debugLine="Log(\"appUpdater(), Service_Destroy\")";
|
||||
Debug.ShouldStop(512);
|
||||
appupdater.mostCurrent.__c.runVoidMethod ("LogImpl","3917505",RemoteObject.createImmutable("appUpdater(), Service_Destroy"),0);
|
||||
BA.debugLineNum = 235;BA.debugLine="End Sub";
|
||||
Debug.ShouldStop(1024);
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static void _service_start(RemoteObject _startingintent) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Service_Start (appupdater) ","appupdater",1,appupdater.processBA,appupdater.mostCurrent,109);
|
||||
if (RapidSub.canDelegate("service_start")) { reparto_mazapa.keymon.lat.appupdater.remoteMe.runUserSub(false, "appupdater","service_start", _startingintent); return;}
|
||||
ResumableSub_Service_Start rsub = new ResumableSub_Service_Start(null,_startingintent);
|
||||
rsub.resume(null, null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static class ResumableSub_Service_Start extends BA.ResumableSub {
|
||||
public ResumableSub_Service_Start(reparto_mazapa.keymon.lat.appupdater parent,RemoteObject _startingintent) {
|
||||
this.parent = parent;
|
||||
this._startingintent = _startingintent;
|
||||
}
|
||||
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
|
||||
reparto_mazapa.keymon.lat.appupdater parent;
|
||||
RemoteObject _startingintent;
|
||||
RemoteObject _j = RemoteObject.declareNull("reparto_mazapa.keymon.lat.httpjob");
|
||||
RemoteObject _app = null;
|
||||
|
||||
@Override
|
||||
public void resume(BA ba, RemoteObject result) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Service_Start (appupdater) ","appupdater",1,appupdater.processBA,appupdater.mostCurrent,109);
|
||||
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;
|
||||
|
||||
while (true) {
|
||||
try {
|
||||
|
||||
switch (state) {
|
||||
case -1:
|
||||
return;
|
||||
|
||||
case 0:
|
||||
//C
|
||||
this.state = 1;
|
||||
Debug.locals.put("StartingIntent", _startingintent);
|
||||
BA.debugLineNum = 110;BA.debugLine="Log(\"appUpdater(), Service_Start\")";
|
||||
Debug.ShouldStop(8192);
|
||||
parent.mostCurrent.__c.runVoidMethod ("LogImpl","3458753",RemoteObject.createImmutable("appUpdater(), Service_Start"),0);
|
||||
BA.debugLineNum = 112;BA.debugLine="B4XPages.MainPage.muestraProgreso(\"Buscando actua";
|
||||
Debug.ShouldStop(32768);
|
||||
parent.mostCurrent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,appupdater.processBA).runClassMethod (reparto_mazapa.keymon.lat.b4xmainpage.class, "_muestraprogreso" /*RemoteObject*/ ,(Object)(RemoteObject.createImmutable("Buscando actualización")));
|
||||
BA.debugLineNum = 113;BA.debugLine="Log(\"Buscando actualización\")";
|
||||
Debug.ShouldStop(65536);
|
||||
parent.mostCurrent.__c.runVoidMethod ("LogImpl","3458756",RemoteObject.createImmutable("Buscando actualización"),0);
|
||||
BA.debugLineNum = 114;BA.debugLine="fileProvider_init";
|
||||
Debug.ShouldStop(131072);
|
||||
_fileprovider_init();
|
||||
BA.debugLineNum = 115;BA.debugLine="Wait For (Download(Me, lnk)) JobDone (j As HttpJo";
|
||||
Debug.ShouldStop(262144);
|
||||
parent.mostCurrent.__c.runVoidMethod ("WaitFor","jobdone", appupdater.processBA, anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "appupdater", "service_start"), (_download(appupdater.getObject(),parent._lnk)));
|
||||
this.state = 20;
|
||||
return;
|
||||
case 20:
|
||||
//C
|
||||
this.state = 1;
|
||||
_j = (RemoteObject) result.getArrayElement(false,RemoteObject.createImmutable(0));Debug.locals.put("j", _j);
|
||||
;
|
||||
BA.debugLineNum = 116;BA.debugLine="If j.Success Then";
|
||||
Debug.ShouldStop(524288);
|
||||
if (true) break;
|
||||
|
||||
case 1:
|
||||
//if
|
||||
this.state = 19;
|
||||
if (_j.getField(true,"_success" /*RemoteObject*/ ).<Boolean>get().booleanValue()) {
|
||||
this.state = 3;
|
||||
}else {
|
||||
this.state = 18;
|
||||
}if (true) break;
|
||||
|
||||
case 3:
|
||||
//C
|
||||
this.state = 4;
|
||||
BA.debugLineNum = 117;BA.debugLine="Try";
|
||||
Debug.ShouldStop(1048576);
|
||||
if (true) break;
|
||||
|
||||
case 4:
|
||||
//try
|
||||
this.state = 16;
|
||||
this.catchState = 15;
|
||||
this.state = 6;
|
||||
if (true) break;
|
||||
|
||||
case 6:
|
||||
//C
|
||||
this.state = 7;
|
||||
this.catchState = 15;
|
||||
BA.debugLineNum = 118;BA.debugLine="Dim app() As String = Regex.Split(Chr(9),j.GetS";
|
||||
Debug.ShouldStop(2097152);
|
||||
_app = parent.mostCurrent.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString(parent.mostCurrent.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, 9))))),(Object)(_j.runClassMethod (reparto_mazapa.keymon.lat.httpjob.class, "_getstring" /*RemoteObject*/ )));Debug.locals.put("app", _app);Debug.locals.put("app", _app);
|
||||
BA.debugLineNum = 120;BA.debugLine="newApp.appLink = app(3) 'Liga a nueva app";
|
||||
Debug.ShouldStop(8388608);
|
||||
parent._newapp.setField ("appLink" /*RemoteObject*/ ,_app.getArrayElement(true,BA.numberCast(int.class, 3)));
|
||||
BA.debugLineNum = 121;BA.debugLine="newApp.newMsg = app(1) 'Texto de que hay actual";
|
||||
Debug.ShouldStop(16777216);
|
||||
parent._newapp.setField ("newMsg" /*RemoteObject*/ ,_app.getArrayElement(true,BA.numberCast(int.class, 1)));
|
||||
BA.debugLineNum = 122;BA.debugLine="newApp.okMsg = app(2) 'Texto de app al corrient";
|
||||
Debug.ShouldStop(33554432);
|
||||
parent._newapp.setField ("okMsg" /*RemoteObject*/ ,_app.getArrayElement(true,BA.numberCast(int.class, 2)));
|
||||
BA.debugLineNum = 123;BA.debugLine="newApp.version = app(0) 'Version actual";
|
||||
Debug.ShouldStop(67108864);
|
||||
parent._newapp.setField ("version" /*RemoteObject*/ ,_app.getArrayElement(true,BA.numberCast(int.class, 0)));
|
||||
BA.debugLineNum = 125;BA.debugLine="Log($\"Application.VersionName=${Application.Ver";
|
||||
Debug.ShouldStop(268435456);
|
||||
parent.mostCurrent.__c.runVoidMethod ("LogImpl","3458768",(RemoteObject.concat(RemoteObject.createImmutable("Application.VersionName="),parent.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((parent.mostCurrent.__c.getField(false,"Application").runMethod(true,"getVersionName")))),RemoteObject.createImmutable(", newApp="),parent.mostCurrent.__c.runMethod(true,"SmartStringFormatter",(Object)(BA.ObjectToString("")),(Object)((parent._newapp))),RemoteObject.createImmutable(""))),0);
|
||||
BA.debugLineNum = 128;BA.debugLine="If newApp.version = Application.VersionName Th";
|
||||
Debug.ShouldStop(-2147483648);
|
||||
if (true) break;
|
||||
|
||||
case 7:
|
||||
//if
|
||||
this.state = 10;
|
||||
if (RemoteObject.solveBoolean("=",parent._newapp.getField(true,"version" /*RemoteObject*/ ),parent.mostCurrent.__c.getField(false,"Application").runMethod(true,"getVersionName"))) {
|
||||
this.state = 9;
|
||||
}if (true) break;
|
||||
|
||||
case 9:
|
||||
//C
|
||||
this.state = 10;
|
||||
BA.debugLineNum = 129;BA.debugLine="newApp.update = False";
|
||||
Debug.ShouldStop(1);
|
||||
parent._newapp.setField ("update" /*RemoteObject*/ ,parent.mostCurrent.__c.getField(true,"False"));
|
||||
BA.debugLineNum = 130;BA.debugLine="Log(\"No new app\")";
|
||||
Debug.ShouldStop(2);
|
||||
parent.mostCurrent.__c.runVoidMethod ("LogImpl","3458773",RemoteObject.createImmutable("No new app"),0);
|
||||
BA.debugLineNum = 131;BA.debugLine="B4XPages.ShowPage(\"updateAvailable\")";
|
||||
Debug.ShouldStop(4);
|
||||
parent.mostCurrent._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,appupdater.processBA,(Object)(RemoteObject.createImmutable("updateAvailable")));
|
||||
BA.debugLineNum = 133;BA.debugLine="CreateNotification2(\"Aplicacion al corriente\",";
|
||||
Debug.ShouldStop(16);
|
||||
_createnotification2(BA.ObjectToString("Aplicacion al corriente"),BA.ObjectToString("No hay actualizaciones disponibles"),BA.ObjectToString("ic_file_download_white_24dp"),(parent.mostCurrent._main.getObject()),parent.mostCurrent.__c.getField(true,"True"),parent.mostCurrent.__c.getField(true,"True"),parent._nnewapp,parent._nnewappnid);
|
||||
if (true) break;
|
||||
;
|
||||
BA.debugLineNum = 135;BA.debugLine="If newApp.version <> Application.VersionName T";
|
||||
Debug.ShouldStop(64);
|
||||
|
||||
case 10:
|
||||
//if
|
||||
this.state = 13;
|
||||
if (RemoteObject.solveBoolean("!",parent._newapp.getField(true,"version" /*RemoteObject*/ ),parent.mostCurrent.__c.getField(false,"Application").runMethod(true,"getVersionName"))) {
|
||||
this.state = 12;
|
||||
}if (true) break;
|
||||
|
||||
case 12:
|
||||
//C
|
||||
this.state = 13;
|
||||
BA.debugLineNum = 136;BA.debugLine="newApp.update = True";
|
||||
Debug.ShouldStop(128);
|
||||
parent._newapp.setField ("update" /*RemoteObject*/ ,parent.mostCurrent.__c.getField(true,"True"));
|
||||
BA.debugLineNum = 137;BA.debugLine="Log(\"New app true\")";
|
||||
Debug.ShouldStop(256);
|
||||
parent.mostCurrent.__c.runVoidMethod ("LogImpl","3458780",RemoteObject.createImmutable("New app true"),0);
|
||||
BA.debugLineNum = 138;BA.debugLine="B4XPages.ShowPage(\"updateAvailable\")";
|
||||
Debug.ShouldStop(512);
|
||||
parent.mostCurrent._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,appupdater.processBA,(Object)(RemoteObject.createImmutable("updateAvailable")));
|
||||
if (true) break;
|
||||
|
||||
case 13:
|
||||
//C
|
||||
this.state = 16;
|
||||
;
|
||||
Debug.CheckDeviceExceptions();
|
||||
if (true) break;
|
||||
|
||||
case 15:
|
||||
//C
|
||||
this.state = 16;
|
||||
this.catchState = 0;
|
||||
BA.debugLineNum = 143;BA.debugLine="Log(\"appUpdater(), Job Failed, error \" & LastE";
|
||||
Debug.ShouldStop(16384);
|
||||
parent.mostCurrent.__c.runVoidMethod ("LogImpl","3458786",RemoteObject.concat(RemoteObject.createImmutable("appUpdater(), Job Failed, error "),parent.mostCurrent.__c.runMethod(false,"LastException",appupdater.processBA).runMethod(true,"getMessage")),0);
|
||||
if (true) break;
|
||||
if (true) break;
|
||||
|
||||
case 16:
|
||||
//C
|
||||
this.state = 19;
|
||||
this.catchState = 0;
|
||||
;
|
||||
if (true) break;
|
||||
|
||||
case 18:
|
||||
//C
|
||||
this.state = 19;
|
||||
BA.debugLineNum = 146;BA.debugLine="Log(\"appUpdater(), Job Failed \" & lnk)";
|
||||
Debug.ShouldStop(131072);
|
||||
parent.mostCurrent.__c.runVoidMethod ("LogImpl","3458789",RemoteObject.concat(RemoteObject.createImmutable("appUpdater(), Job Failed "),parent._lnk),0);
|
||||
if (true) break;
|
||||
|
||||
case 19:
|
||||
//C
|
||||
this.state = -1;
|
||||
;
|
||||
BA.debugLineNum = 148;BA.debugLine="j.Release";
|
||||
Debug.ShouldStop(524288);
|
||||
_j.runClassMethod (reparto_mazapa.keymon.lat.httpjob.class, "_release" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 150;BA.debugLine="End Sub";
|
||||
Debug.ShouldStop(2097152);
|
||||
if (true) break;
|
||||
}}
|
||||
catch (Exception e0) {
|
||||
|
||||
if (catchState == 0)
|
||||
throw e0;
|
||||
else {
|
||||
state = catchState;
|
||||
BA.rdebugUtils.runVoidMethod("setLastException",appupdater.processBA, e0.toString());}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
}
|
||||
public static RemoteObject _setfileuriasintentdata(RemoteObject _intent,RemoteObject _filename) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("SetFileUriAsIntentData (appupdater) ","appupdater",1,appupdater.processBA,appupdater.mostCurrent,274);
|
||||
if (RapidSub.canDelegate("setfileuriasintentdata")) { return reparto_mazapa.keymon.lat.appupdater.remoteMe.runUserSub(false, "appupdater","setfileuriasintentdata", _intent, _filename);}
|
||||
RemoteObject _jo = RemoteObject.declareNull("anywheresoftware.b4j.object.JavaObject");
|
||||
Debug.locals.put("Intent", _intent);
|
||||
Debug.locals.put("FileName", _filename);
|
||||
BA.debugLineNum = 274;BA.debugLine="Sub SetFileUriAsIntentData (Intent As Intent, File";
|
||||
Debug.ShouldStop(131072);
|
||||
BA.debugLineNum = 275;BA.debugLine="Dim jo As JavaObject = Intent";
|
||||
Debug.ShouldStop(262144);
|
||||
_jo = RemoteObject.createNew ("anywheresoftware.b4j.object.JavaObject");
|
||||
_jo = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4j.object.JavaObject"), _intent.getObject());Debug.locals.put("jo", _jo);Debug.locals.put("jo", _jo);
|
||||
BA.debugLineNum = 276;BA.debugLine="jo.RunMethod(\"setData\", Array(GetFileUri(FileName";
|
||||
Debug.ShouldStop(524288);
|
||||
_jo.runVoidMethod ("RunMethod",(Object)(BA.ObjectToString("setData")),(Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {_getfileuri(_filename)})));
|
||||
BA.debugLineNum = 277;BA.debugLine="Intent.Flags = Bit.Or(Intent.Flags, 1) 'FLAG_GRAN";
|
||||
Debug.ShouldStop(1048576);
|
||||
_intent.runMethod(true,"setFlags",appupdater.mostCurrent.__c.getField(false,"Bit").runMethod(true,"Or",(Object)(_intent.runMethod(true,"getFlags")),(Object)(BA.numberCast(int.class, 1))));
|
||||
BA.debugLineNum = 278;BA.debugLine="End Sub";
|
||||
Debug.ShouldStop(2097152);
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.pc.PCBA;
|
||||
import anywheresoftware.b4a.pc.RemoteObject;
|
||||
|
||||
public class b4xbitset {
|
||||
public static RemoteObject myClass;
|
||||
public b4xbitset() {
|
||||
}
|
||||
public static PCBA staticBA = new PCBA(null, b4xbitset.class);
|
||||
|
||||
public static RemoteObject __c = RemoteObject.declareNull("anywheresoftware.b4a.keywords.Common");
|
||||
public static RemoteObject _data = null;
|
||||
public static RemoteObject _msize = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _dateutils = RemoteObject.declareNull("b4a.example.dateutils");
|
||||
public static reparto_mazapa.keymon.lat.main _main = null;
|
||||
public static reparto_mazapa.keymon.lat.appupdater _appupdater = null;
|
||||
public static reparto_mazapa.keymon.lat.tracker _tracker = null;
|
||||
public static reparto_mazapa.keymon.lat.starter _starter = null;
|
||||
public static reparto_mazapa.keymon.lat.subs _subs = null;
|
||||
public static reparto_mazapa.keymon.lat.firebasemessaging _firebasemessaging = null;
|
||||
public static reparto_mazapa.keymon.lat.foto _foto = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_cliente _mapa_cliente = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_rutas _mapa_rutas = null;
|
||||
public static reparto_mazapa.keymon.lat.newinst2 _newinst2 = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xpages _b4xpages = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xcollections _b4xcollections = null;
|
||||
public static reparto_mazapa.keymon.lat.httputils2service _httputils2service = null;
|
||||
public static reparto_mazapa.keymon.lat.xuiviewsutils _xuiviewsutils = null;
|
||||
public static Object[] GetGlobals(RemoteObject _ref) throws Exception {
|
||||
return new Object[] {"data",_ref.getField(false, "_data"),"DateUtils",_ref.getField(false, "_dateutils"),"mSize",_ref.getField(false, "_msize")};
|
||||
}
|
||||
}
|
||||
@@ -1,161 +0,0 @@
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.BA;
|
||||
import anywheresoftware.b4a.pc.*;
|
||||
|
||||
public class b4xbitset_subs_0 {
|
||||
|
||||
|
||||
public static RemoteObject _class_globals(RemoteObject __ref) throws Exception{
|
||||
//BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
|
||||
//BA.debugLineNum = 5;BA.debugLine="Private data() As Int";
|
||||
b4xbitset._data = RemoteObject.createNewArray ("int", new int[] {0}, new Object[]{});__ref.setField("_data",b4xbitset._data);
|
||||
//BA.debugLineNum = 7;BA.debugLine="Private mSize As Int";
|
||||
b4xbitset._msize = RemoteObject.createImmutable(0);__ref.setField("_msize",b4xbitset._msize);
|
||||
//BA.debugLineNum = 8;BA.debugLine="End Sub";
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
public static RemoteObject _clear(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Clear (b4xbitset) ","b4xbitset",35,__ref.getField(false, "ba"),__ref,54);
|
||||
if (RapidSub.canDelegate("clear")) { return __ref.runUserSub(false, "b4xbitset","clear", __ref);}
|
||||
BA.debugLineNum = 54;BA.debugLine="Public Sub Clear";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 58;BA.debugLine="Dim data(Bit.ShiftRight(mSize, 5) + 1) As Int";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
b4xbitset._data = RemoteObject.createNewArray ("int", new int[] {RemoteObject.solve(new RemoteObject[] {b4xbitset.__c.getField(false,"Bit").runMethod(true,"ShiftRight",(Object)(__ref.getField(true,"_msize" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 5))),RemoteObject.createImmutable(1)}, "+",1, 1).<Integer>get().intValue()}, new Object[]{});__ref.setField("_data",b4xbitset._data);
|
||||
BA.debugLineNum = 60;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _get(RemoteObject __ref,RemoteObject _index) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Get (b4xbitset) ","b4xbitset",35,__ref.getField(false, "ba"),__ref,38);
|
||||
if (RapidSub.canDelegate("get")) { return __ref.runUserSub(false, "b4xbitset","get", __ref, _index);}
|
||||
RemoteObject _dindex = RemoteObject.createImmutable(0);
|
||||
RemoteObject _offset = RemoteObject.createImmutable(0);
|
||||
RemoteObject _blockvalue = RemoteObject.createImmutable(0);
|
||||
Debug.locals.put("Index", _index);
|
||||
BA.debugLineNum = 38;BA.debugLine="Public Sub Get(Index As Int) As Boolean";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 39;BA.debugLine="Dim dindex As Int = Bit.ShiftRight(Index, 5)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_dindex = b4xbitset.__c.getField(false,"Bit").runMethod(true,"ShiftRight",(Object)(_index),(Object)(BA.numberCast(int.class, 5)));Debug.locals.put("dindex", _dindex);Debug.locals.put("dindex", _dindex);
|
||||
BA.debugLineNum = 40;BA.debugLine="Dim offset As Int = Bit.And(0x0000001f, Index)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_offset = b4xbitset.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0x0000001f))),(Object)(_index));Debug.locals.put("offset", _offset);Debug.locals.put("offset", _offset);
|
||||
BA.debugLineNum = 44;BA.debugLine="Dim BlockValue As Int = data(dindex)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_blockvalue = __ref.getField(false,"_data" /*RemoteObject*/ ).getArrayElement(true,_dindex);Debug.locals.put("BlockValue", _blockvalue);Debug.locals.put("BlockValue", _blockvalue);
|
||||
BA.debugLineNum = 46;BA.debugLine="Return Bit.And(BlockValue, Bit.ShiftLeft(1, offse";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return BA.ObjectToBoolean(RemoteObject.solveBoolean("!",b4xbitset.__c.getField(false,"Bit").runMethod(true,"And",(Object)(_blockvalue),(Object)(b4xbitset.__c.getField(false,"Bit").runMethod(true,"ShiftLeft",(Object)(BA.numberCast(int.class, 1)),(Object)(_offset)))),BA.numberCast(double.class, 0)));
|
||||
BA.debugLineNum = 47;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(false);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getsize(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("getSize (b4xbitset) ","b4xbitset",35,__ref.getField(false, "ba"),__ref,49);
|
||||
if (RapidSub.canDelegate("getsize")) { return __ref.runUserSub(false, "b4xbitset","getsize", __ref);}
|
||||
BA.debugLineNum = 49;BA.debugLine="Public Sub getSize As Int";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 50;BA.debugLine="Return mSize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(true,"_msize" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 51;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(0);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _initialize(RemoteObject __ref,RemoteObject _ba,RemoteObject _size) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Initialize (b4xbitset) ","b4xbitset",35,__ref.getField(false, "ba"),__ref,10);
|
||||
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "b4xbitset","initialize", __ref, _ba, _size);}
|
||||
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
|
||||
Debug.locals.put("ba", _ba);
|
||||
Debug.locals.put("Size", _size);
|
||||
BA.debugLineNum = 10;BA.debugLine="Public Sub Initialize (Size As Int)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 11;BA.debugLine="mSize = Size";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_msize" /*RemoteObject*/ ,_size);
|
||||
BA.debugLineNum = 12;BA.debugLine="Clear";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbitset.class, "_clear" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 13;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _set(RemoteObject __ref,RemoteObject _index,RemoteObject _value) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Set (b4xbitset) ","b4xbitset",35,__ref.getField(false, "ba"),__ref,16);
|
||||
if (RapidSub.canDelegate("set")) { return __ref.runUserSub(false, "b4xbitset","set", __ref, _index, _value);}
|
||||
RemoteObject _dindex = RemoteObject.createImmutable(0);
|
||||
RemoteObject _offset = RemoteObject.createImmutable(0);
|
||||
RemoteObject _blockvalue = RemoteObject.createImmutable(0);
|
||||
RemoteObject _newblockvalue = RemoteObject.createImmutable(0);
|
||||
Debug.locals.put("Index", _index);
|
||||
Debug.locals.put("Value", _value);
|
||||
BA.debugLineNum = 16;BA.debugLine="Public Sub Set(Index As Int, Value As Boolean)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 17;BA.debugLine="Dim dindex As Int = Bit.ShiftRight(Index, 5)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_dindex = b4xbitset.__c.getField(false,"Bit").runMethod(true,"ShiftRight",(Object)(_index),(Object)(BA.numberCast(int.class, 5)));Debug.locals.put("dindex", _dindex);Debug.locals.put("dindex", _dindex);
|
||||
BA.debugLineNum = 18;BA.debugLine="Dim offset As Int = Bit.And(0x0000001f, Index)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_offset = b4xbitset.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0x0000001f))),(Object)(_index));Debug.locals.put("offset", _offset);Debug.locals.put("offset", _offset);
|
||||
BA.debugLineNum = 22;BA.debugLine="Dim BlockValue As Int = data(dindex)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_blockvalue = __ref.getField(false,"_data" /*RemoteObject*/ ).getArrayElement(true,_dindex);Debug.locals.put("BlockValue", _blockvalue);Debug.locals.put("BlockValue", _blockvalue);
|
||||
BA.debugLineNum = 24;BA.debugLine="Dim NewBlockValue As Int";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_newblockvalue = RemoteObject.createImmutable(0);Debug.locals.put("NewBlockValue", _newblockvalue);
|
||||
BA.debugLineNum = 25;BA.debugLine="If Value Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (_value.<Boolean>get().booleanValue()) {
|
||||
BA.debugLineNum = 26;BA.debugLine="NewBlockValue = Bit.Or(BlockValue, Bit.ShiftLeft";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_newblockvalue = b4xbitset.__c.getField(false,"Bit").runMethod(true,"Or",(Object)(_blockvalue),(Object)(b4xbitset.__c.getField(false,"Bit").runMethod(true,"ShiftLeft",(Object)(BA.numberCast(int.class, 1)),(Object)(_offset))));Debug.locals.put("NewBlockValue", _newblockvalue);
|
||||
}else {
|
||||
BA.debugLineNum = 28;BA.debugLine="NewBlockValue = Bit.And(BlockValue, Bit.Not(Bit.";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_newblockvalue = b4xbitset.__c.getField(false,"Bit").runMethod(true,"And",(Object)(_blockvalue),(Object)(b4xbitset.__c.getField(false,"Bit").runMethod(true,"Not",(Object)(b4xbitset.__c.getField(false,"Bit").runMethod(true,"ShiftLeft",(Object)(BA.numberCast(int.class, 1)),(Object)(_offset))))));Debug.locals.put("NewBlockValue", _newblockvalue);
|
||||
};
|
||||
BA.debugLineNum = 33;BA.debugLine="data(dindex) = NewBlockValue";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_data" /*RemoteObject*/ ).setArrayElement (_newblockvalue,_dindex);
|
||||
BA.debugLineNum = 35;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.pc.PCBA;
|
||||
import anywheresoftware.b4a.pc.RemoteObject;
|
||||
|
||||
public class b4xbreadcrumb {
|
||||
public static RemoteObject myClass;
|
||||
public b4xbreadcrumb() {
|
||||
}
|
||||
public static PCBA staticBA = new PCBA(null, b4xbreadcrumb.class);
|
||||
|
||||
public static RemoteObject __c = RemoteObject.declareNull("anywheresoftware.b4a.keywords.Common");
|
||||
public static RemoteObject _meventname = RemoteObject.createImmutable("");
|
||||
public static RemoteObject _mcallback = RemoteObject.declareNull("Object");
|
||||
public static RemoteObject _mbase = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _xui = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");
|
||||
public static RemoteObject _cvs = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XCanvas");
|
||||
public static RemoteObject _mitems = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
|
||||
public static RemoteObject _rightpositions = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
|
||||
public static RemoteObject _textcolor = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _fnt = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont");
|
||||
public static RemoteObject _offset = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _bc = RemoteObject.declareNull("b4a.example.bitmapcreator");
|
||||
public static RemoteObject _crumbcolor = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _touchpanel = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _presseditem = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _tag = RemoteObject.declareNull("Object");
|
||||
public static RemoteObject _mhaptic = RemoteObject.createImmutable(false);
|
||||
public static RemoteObject _dateutils = RemoteObject.declareNull("b4a.example.dateutils");
|
||||
public static reparto_mazapa.keymon.lat.main _main = null;
|
||||
public static reparto_mazapa.keymon.lat.appupdater _appupdater = null;
|
||||
public static reparto_mazapa.keymon.lat.tracker _tracker = null;
|
||||
public static reparto_mazapa.keymon.lat.starter _starter = null;
|
||||
public static reparto_mazapa.keymon.lat.subs _subs = null;
|
||||
public static reparto_mazapa.keymon.lat.firebasemessaging _firebasemessaging = null;
|
||||
public static reparto_mazapa.keymon.lat.foto _foto = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_cliente _mapa_cliente = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_rutas _mapa_rutas = null;
|
||||
public static reparto_mazapa.keymon.lat.newinst2 _newinst2 = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xpages _b4xpages = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xcollections _b4xcollections = null;
|
||||
public static reparto_mazapa.keymon.lat.httputils2service _httputils2service = null;
|
||||
public static reparto_mazapa.keymon.lat.xuiviewsutils _xuiviewsutils = null;
|
||||
public static Object[] GetGlobals(RemoteObject _ref) throws Exception {
|
||||
return new Object[] {"bc",_ref.getField(false, "_bc"),"CrumbColor",_ref.getField(false, "_crumbcolor"),"cvs",_ref.getField(false, "_cvs"),"DateUtils",_ref.getField(false, "_dateutils"),"fnt",_ref.getField(false, "_fnt"),"mBase",_ref.getField(false, "_mbase"),"mCallBack",_ref.getField(false, "_mcallback"),"mEventName",_ref.getField(false, "_meventname"),"mHaptic",_ref.getField(false, "_mhaptic"),"mItems",_ref.getField(false, "_mitems"),"offset",_ref.getField(false, "_offset"),"PressedItem",_ref.getField(false, "_presseditem"),"RightPositions",_ref.getField(false, "_rightpositions"),"Tag",_ref.getField(false, "_tag"),"TextColor",_ref.getField(false, "_textcolor"),"TouchPanel",_ref.getField(false, "_touchpanel"),"xui",_ref.getField(false, "_xui")};
|
||||
}
|
||||
}
|
||||
@@ -1,562 +0,0 @@
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.BA;
|
||||
import anywheresoftware.b4a.pc.*;
|
||||
|
||||
public class b4xbreadcrumb_subs_0 {
|
||||
|
||||
|
||||
public static RemoteObject _base_resize(RemoteObject __ref,RemoteObject _width,RemoteObject _height) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Base_Resize (b4xbreadcrumb) ","b4xbreadcrumb",49,__ref.getField(false, "ba"),__ref,51);
|
||||
if (RapidSub.canDelegate("base_resize")) { return __ref.runUserSub(false, "b4xbreadcrumb","base_resize", __ref, _width, _height);}
|
||||
Debug.locals.put("Width", _width);
|
||||
Debug.locals.put("Height", _height);
|
||||
BA.debugLineNum = 51;BA.debugLine="Public Sub Base_Resize (Width As Double, Height As";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 52;BA.debugLine="cvs.Resize(Width, Height)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cvs" /*RemoteObject*/ ).runVoidMethod ("Resize",(Object)(BA.numberCast(float.class, _width)),(Object)(BA.numberCast(float.class, _height)));
|
||||
BA.debugLineNum = 53;BA.debugLine="TouchPanel.SetLayoutAnimated(0, 0, 0, Width, Heig";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_touchpanel" /*RemoteObject*/ ).runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, _width)),(Object)(BA.numberCast(int.class, _height)));
|
||||
BA.debugLineNum = 54;BA.debugLine="Draw";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbreadcrumb.class, "_draw" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 55;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _class_globals(RemoteObject __ref) throws Exception{
|
||||
//BA.debugLineNum = 5;BA.debugLine="Sub Class_Globals";
|
||||
//BA.debugLineNum = 6;BA.debugLine="Private mEventName As String 'ignore";
|
||||
b4xbreadcrumb._meventname = RemoteObject.createImmutable("");__ref.setField("_meventname",b4xbreadcrumb._meventname);
|
||||
//BA.debugLineNum = 7;BA.debugLine="Private mCallBack As Object 'ignore";
|
||||
b4xbreadcrumb._mcallback = RemoteObject.createNew ("Object");__ref.setField("_mcallback",b4xbreadcrumb._mcallback);
|
||||
//BA.debugLineNum = 8;BA.debugLine="Public mBase As B4XView 'ignore";
|
||||
b4xbreadcrumb._mbase = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_mbase",b4xbreadcrumb._mbase);
|
||||
//BA.debugLineNum = 9;BA.debugLine="Private xui As XUI 'ignore";
|
||||
b4xbreadcrumb._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");__ref.setField("_xui",b4xbreadcrumb._xui);
|
||||
//BA.debugLineNum = 10;BA.debugLine="Private cvs As B4XCanvas";
|
||||
b4xbreadcrumb._cvs = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XCanvas");__ref.setField("_cvs",b4xbreadcrumb._cvs);
|
||||
//BA.debugLineNum = 11;BA.debugLine="Private mItems As List";
|
||||
b4xbreadcrumb._mitems = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_mitems",b4xbreadcrumb._mitems);
|
||||
//BA.debugLineNum = 12;BA.debugLine="Private RightPositions As List";
|
||||
b4xbreadcrumb._rightpositions = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_rightpositions",b4xbreadcrumb._rightpositions);
|
||||
//BA.debugLineNum = 13;BA.debugLine="Public TextColor As Int";
|
||||
b4xbreadcrumb._textcolor = RemoteObject.createImmutable(0);__ref.setField("_textcolor",b4xbreadcrumb._textcolor);
|
||||
//BA.debugLineNum = 14;BA.debugLine="Public fnt As B4XFont";
|
||||
b4xbreadcrumb._fnt = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont");__ref.setField("_fnt",b4xbreadcrumb._fnt);
|
||||
//BA.debugLineNum = 15;BA.debugLine="Private offset As Int = 10dip";
|
||||
b4xbreadcrumb._offset = b4xbreadcrumb.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 10)));__ref.setField("_offset",b4xbreadcrumb._offset);
|
||||
//BA.debugLineNum = 16;BA.debugLine="Private bc As BitmapCreator";
|
||||
b4xbreadcrumb._bc = RemoteObject.createNew ("b4a.example.bitmapcreator");__ref.setField("_bc",b4xbreadcrumb._bc);
|
||||
//BA.debugLineNum = 17;BA.debugLine="Public CrumbColor As Int";
|
||||
b4xbreadcrumb._crumbcolor = RemoteObject.createImmutable(0);__ref.setField("_crumbcolor",b4xbreadcrumb._crumbcolor);
|
||||
//BA.debugLineNum = 18;BA.debugLine="Private TouchPanel As B4XView";
|
||||
b4xbreadcrumb._touchpanel = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_touchpanel",b4xbreadcrumb._touchpanel);
|
||||
//BA.debugLineNum = 19;BA.debugLine="Private PressedItem As Int = -1";
|
||||
b4xbreadcrumb._presseditem = BA.numberCast(int.class, -(double) (0 + 1));__ref.setField("_presseditem",b4xbreadcrumb._presseditem);
|
||||
//BA.debugLineNum = 20;BA.debugLine="Public Tag As Object";
|
||||
b4xbreadcrumb._tag = RemoteObject.createNew ("Object");__ref.setField("_tag",b4xbreadcrumb._tag);
|
||||
//BA.debugLineNum = 21;BA.debugLine="Public mHaptic As Boolean";
|
||||
b4xbreadcrumb._mhaptic = RemoteObject.createImmutable(false);__ref.setField("_mhaptic",b4xbreadcrumb._mhaptic);
|
||||
//BA.debugLineNum = 22;BA.debugLine="End Sub";
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
public static RemoteObject _designercreateview(RemoteObject __ref,RemoteObject _base,RemoteObject _lbl,RemoteObject _props) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("DesignerCreateView (b4xbreadcrumb) ","b4xbreadcrumb",49,__ref.getField(false, "ba"),__ref,33);
|
||||
if (RapidSub.canDelegate("designercreateview")) { return __ref.runUserSub(false, "b4xbreadcrumb","designercreateview", __ref, _base, _lbl, _props);}
|
||||
RemoteObject _xlbl = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
RemoteObject _items = RemoteObject.createImmutable("");
|
||||
RemoteObject _s = RemoteObject.createImmutable("");
|
||||
Debug.locals.put("Base", _base);
|
||||
Debug.locals.put("Lbl", _lbl);
|
||||
Debug.locals.put("Props", _props);
|
||||
BA.debugLineNum = 33;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 34;BA.debugLine="mBase = Base";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).setObject (_base);
|
||||
BA.debugLineNum = 35;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_tag" /*RemoteObject*/ ,__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(false,"getTag"));
|
||||
BA.debugLineNum = 35;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(false,"setTag",__ref);
|
||||
BA.debugLineNum = 36;BA.debugLine="cvs.Initialize(mBase)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cvs" /*RemoteObject*/ ).runVoidMethod ("Initialize",(Object)(__ref.getField(false,"_mbase" /*RemoteObject*/ )));
|
||||
BA.debugLineNum = 37;BA.debugLine="Dim xlbl As B4XView = Lbl";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_xlbl = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
_xlbl = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), _lbl.getObject());Debug.locals.put("xlbl", _xlbl);Debug.locals.put("xlbl", _xlbl);
|
||||
BA.debugLineNum = 38;BA.debugLine="fnt = xlbl.Font";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_fnt" /*RemoteObject*/ ,_xlbl.runMethod(false,"getFont"));
|
||||
BA.debugLineNum = 39;BA.debugLine="TextColor = xlbl.TextColor";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_textcolor" /*RemoteObject*/ ,_xlbl.runMethod(true,"getTextColor"));
|
||||
BA.debugLineNum = 40;BA.debugLine="CrumbColor = xui.PaintOrColorToColor(Props.Get(\"C";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_crumbcolor" /*RemoteObject*/ ,__ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(true,"PaintOrColorToColor",(Object)(_props.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CrumbColor")))))));
|
||||
BA.debugLineNum = 41;BA.debugLine="mHaptic = Props.GetDefault(\"HapticFeedback\", Fals";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mhaptic" /*RemoteObject*/ ,BA.ObjectToBoolean(_props.runMethod(false,"GetDefault",(Object)(RemoteObject.createImmutable(("HapticFeedback"))),(Object)((b4xbreadcrumb.__c.getField(true,"False"))))));
|
||||
BA.debugLineNum = 42;BA.debugLine="TouchPanel = xui.CreatePanel(\"Touch\")";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_touchpanel" /*RemoteObject*/ ,__ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(false,"CreatePanel",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Touch"))));
|
||||
BA.debugLineNum = 43;BA.debugLine="mBase.AddView(TouchPanel, 0, 0, mBase.Width, mBas";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runVoidMethod ("AddView",(Object)((__ref.getField(false,"_touchpanel" /*RemoteObject*/ ).getObject())),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getWidth")),(Object)(__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getHeight")));
|
||||
BA.debugLineNum = 44;BA.debugLine="Dim items As String = Props.Get(\"Items\")";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_items = BA.ObjectToString(_props.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("Items")))));Debug.locals.put("items", _items);Debug.locals.put("items", _items);
|
||||
BA.debugLineNum = 45;BA.debugLine="For Each s As String In Regex.Split(\"\\|\", items)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
{
|
||||
final RemoteObject group13 = b4xbreadcrumb.__c.getField(false,"Regex").runMethod(false,"Split",(Object)(BA.ObjectToString("\\|")),(Object)(_items));
|
||||
final int groupLen13 = group13.getField(true,"length").<Integer>get()
|
||||
;int index13 = 0;
|
||||
;
|
||||
for (; index13 < groupLen13;index13++){
|
||||
_s = group13.getArrayElement(true,RemoteObject.createImmutable(index13));Debug.locals.put("s", _s);
|
||||
Debug.locals.put("s", _s);
|
||||
BA.debugLineNum = 46;BA.debugLine="mItems.Add(s)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mitems" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((_s)));
|
||||
}
|
||||
}Debug.locals.put("s", _s);
|
||||
;
|
||||
BA.debugLineNum = 48;BA.debugLine="Draw";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbreadcrumb.class, "_draw" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 49;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _draw(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Draw (b4xbreadcrumb) ","b4xbreadcrumb",49,__ref.getField(false, "ba"),__ref,57);
|
||||
if (RapidSub.canDelegate("draw")) { return __ref.runUserSub(false, "b4xbreadcrumb","draw", __ref);}
|
||||
RemoteObject _bcolor = RemoteObject.declareNull("b4a.example.bitmapcreator._argbcolor");
|
||||
RemoteObject _strokecolor = RemoteObject.createImmutable(0);
|
||||
RemoteObject _clrs = null;
|
||||
RemoteObject _left = RemoteObject.createImmutable(0);
|
||||
int _i = 0;
|
||||
RemoteObject _sc = RemoteObject.createImmutable(0);
|
||||
RemoteObject _width = RemoteObject.createImmutable(0);
|
||||
BA.debugLineNum = 57;BA.debugLine="Private Sub Draw";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 58;BA.debugLine="cvs.ClearRect(cvs.TargetRect)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cvs" /*RemoteObject*/ ).runVoidMethod ("ClearRect",(Object)(__ref.getField(false,"_cvs" /*RemoteObject*/ ).runMethod(false,"getTargetRect")));
|
||||
BA.debugLineNum = 59;BA.debugLine="Dim bcolor As ARGBColor";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_bcolor = RemoteObject.createNew ("b4a.example.bitmapcreator._argbcolor");Debug.locals.put("bcolor", _bcolor);
|
||||
BA.debugLineNum = 60;BA.debugLine="bc.ColorToARGB(CrumbColor, bcolor)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_bc" /*RemoteObject*/ ).runVoidMethod ("_colortoargb",(Object)(__ref.getField(true,"_crumbcolor" /*RemoteObject*/ )),(Object)(_bcolor));
|
||||
BA.debugLineNum = 61;BA.debugLine="bcolor.r = Min(255, bcolor.r * 2)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_bcolor.setField ("r",BA.numberCast(int.class, b4xbreadcrumb.__c.runMethod(true,"Min",(Object)(BA.numberCast(double.class, 255)),(Object)(BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {_bcolor.getField(true,"r"),RemoteObject.createImmutable(2)}, "*",0, 1))))));
|
||||
BA.debugLineNum = 62;BA.debugLine="bcolor.g = Min(255, bcolor.g * 2)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_bcolor.setField ("g",BA.numberCast(int.class, b4xbreadcrumb.__c.runMethod(true,"Min",(Object)(BA.numberCast(double.class, 255)),(Object)(BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {_bcolor.getField(true,"g"),RemoteObject.createImmutable(2)}, "*",0, 1))))));
|
||||
BA.debugLineNum = 63;BA.debugLine="bcolor.b = Min(255, bcolor.b * 2)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_bcolor.setField ("b",BA.numberCast(int.class, b4xbreadcrumb.__c.runMethod(true,"Min",(Object)(BA.numberCast(double.class, 255)),(Object)(BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {_bcolor.getField(true,"b"),RemoteObject.createImmutable(2)}, "*",0, 1))))));
|
||||
BA.debugLineNum = 64;BA.debugLine="Dim strokeColor As Int = bc.ARGBToColor(bcolor)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_strokecolor = __ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(true,"_argbtocolor",(Object)(_bcolor));Debug.locals.put("strokeColor", _strokecolor);Debug.locals.put("strokeColor", _strokecolor);
|
||||
BA.debugLineNum = 66;BA.debugLine="bc.ColorToARGB(CrumbColor, bcolor)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_bc" /*RemoteObject*/ ).runVoidMethod ("_colortoargb",(Object)(__ref.getField(true,"_crumbcolor" /*RemoteObject*/ )),(Object)(_bcolor));
|
||||
BA.debugLineNum = 67;BA.debugLine="bcolor.r = bcolor.r * 0.8";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_bcolor.setField ("r",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_bcolor.getField(true,"r"),RemoteObject.createImmutable(0.8)}, "*",0, 0)));
|
||||
BA.debugLineNum = 68;BA.debugLine="bcolor.g = bcolor.g * 0.8";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_bcolor.setField ("g",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_bcolor.getField(true,"g"),RemoteObject.createImmutable(0.8)}, "*",0, 0)));
|
||||
BA.debugLineNum = 69;BA.debugLine="bcolor.b = bcolor.b * 0.8";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_bcolor.setField ("b",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_bcolor.getField(true,"b"),RemoteObject.createImmutable(0.8)}, "*",0, 0)));
|
||||
BA.debugLineNum = 70;BA.debugLine="Dim Clrs() As Int = Array As Int(CrumbColor, bc.A";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_clrs = RemoteObject.createNewArray("int",new int[] {2},new Object[] {__ref.getField(true,"_crumbcolor" /*RemoteObject*/ ),__ref.getField(false,"_bc" /*RemoteObject*/ ).runMethod(true,"_argbtocolor",(Object)(_bcolor))});Debug.locals.put("Clrs", _clrs);Debug.locals.put("Clrs", _clrs);
|
||||
BA.debugLineNum = 72;BA.debugLine="RightPositions.Clear";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_rightpositions" /*RemoteObject*/ ).runVoidMethod ("Clear");
|
||||
BA.debugLineNum = 73;BA.debugLine="If mItems.Size = 0 Then Return";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_mitems" /*RemoteObject*/ ).runMethod(true,"getSize"),BA.numberCast(double.class, 0))) {
|
||||
if (true) return RemoteObject.createImmutable("");};
|
||||
BA.debugLineNum = 74;BA.debugLine="Dim Left As Int = 0";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_left = BA.numberCast(int.class, 0);Debug.locals.put("Left", _left);Debug.locals.put("Left", _left);
|
||||
BA.debugLineNum = 75;BA.debugLine="For i = 0 To mItems.Size - 1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
{
|
||||
final int step16 = 1;
|
||||
final int limit16 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mitems" /*RemoteObject*/ ).runMethod(true,"getSize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
|
||||
_i = 0 ;
|
||||
for (;(step16 > 0 && _i <= limit16) || (step16 < 0 && _i >= limit16) ;_i = ((int)(0 + _i + step16)) ) {
|
||||
Debug.locals.put("i", _i);
|
||||
BA.debugLineNum = 76;BA.debugLine="Dim sc As Int";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_sc = RemoteObject.createImmutable(0);Debug.locals.put("sc", _sc);
|
||||
BA.debugLineNum = 77;BA.debugLine="If PressedItem = i Then sc = strokeColor Else sc";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_presseditem" /*RemoteObject*/ ),BA.numberCast(double.class, _i))) {
|
||||
_sc = _strokecolor;Debug.locals.put("sc", _sc);}
|
||||
else {
|
||||
_sc = BA.numberCast(int.class, 0);Debug.locals.put("sc", _sc);};
|
||||
BA.debugLineNum = 78;BA.debugLine="Dim width As Int = DrawItem(Left, mItems.Get(i),";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_width = __ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbreadcrumb.class, "_drawitem" /*RemoteObject*/ ,(Object)(_left),(Object)(BA.ObjectToString(__ref.getField(false,"_mitems" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _i))))),(Object)(BA.ObjectToBoolean(RemoteObject.solveBoolean("=",RemoteObject.createImmutable(_i),BA.numberCast(double.class, 0)))),(Object)(BA.ObjectToBoolean(RemoteObject.solveBoolean("=",RemoteObject.createImmutable(_i),BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mitems" /*RemoteObject*/ ).runMethod(true,"getSize"),RemoteObject.createImmutable(1)}, "-",1, 1))))),(Object)(_clrs.getArrayElement(true,RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(_i),_clrs.getField(true,"length")}, "%",0, 1))),(Object)(_sc));Debug.locals.put("width", _width);Debug.locals.put("width", _width);
|
||||
BA.debugLineNum = 79;BA.debugLine="Left = Left + width + offset + 2dip";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_left = RemoteObject.solve(new RemoteObject[] {_left,_width,__ref.getField(true,"_offset" /*RemoteObject*/ ),b4xbreadcrumb.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 2)))}, "+++",3, 1);Debug.locals.put("Left", _left);
|
||||
BA.debugLineNum = 80;BA.debugLine="RightPositions.Add(Left)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_rightpositions" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((_left)));
|
||||
}
|
||||
}Debug.locals.put("i", _i);
|
||||
;
|
||||
BA.debugLineNum = 82;BA.debugLine="cvs.Invalidate";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cvs" /*RemoteObject*/ ).runVoidMethod ("Invalidate");
|
||||
BA.debugLineNum = 83;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _drawitem(RemoteObject __ref,RemoteObject _left,RemoteObject _text,RemoteObject _first,RemoteObject _last,RemoteObject _clr,RemoteObject _strokecolor) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("DrawItem (b4xbreadcrumb) ","b4xbreadcrumb",49,__ref.getField(false, "ba"),__ref,85);
|
||||
if (RapidSub.canDelegate("drawitem")) { return __ref.runUserSub(false, "b4xbreadcrumb","drawitem", __ref, _left, _text, _first, _last, _clr, _strokecolor);}
|
||||
RemoteObject _r = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XCanvas.B4XRect");
|
||||
RemoteObject _itemwidth = RemoteObject.createImmutable(0);
|
||||
RemoteObject _itemheight = RemoteObject.createImmutable(0);
|
||||
RemoteObject _baseline = RemoteObject.createImmutable(0);
|
||||
RemoteObject _p = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XCanvas.B4XPath");
|
||||
Debug.locals.put("Left", _left);
|
||||
Debug.locals.put("Text", _text);
|
||||
Debug.locals.put("First", _first);
|
||||
Debug.locals.put("Last", _last);
|
||||
Debug.locals.put("clr", _clr);
|
||||
Debug.locals.put("strokeColor", _strokecolor);
|
||||
BA.debugLineNum = 85;BA.debugLine="Private Sub DrawItem(Left As Int, Text As String,";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 86;BA.debugLine="Dim r As B4XRect = cvs.MeasureText(Text, fnt)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_r = __ref.getField(false,"_cvs" /*RemoteObject*/ ).runMethod(false,"MeasureText",(Object)(_text),(Object)(__ref.getField(false,"_fnt" /*RemoteObject*/ )));Debug.locals.put("r", _r);Debug.locals.put("r", _r);
|
||||
BA.debugLineNum = 87;BA.debugLine="Dim ItemWidth As Int = r.Width + 30dip";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_itemwidth = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_r.runMethod(true,"getWidth"),b4xbreadcrumb.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 30)))}, "+",1, 0));Debug.locals.put("ItemWidth", _itemwidth);Debug.locals.put("ItemWidth", _itemwidth);
|
||||
BA.debugLineNum = 88;BA.debugLine="Dim ItemHeight As Int = cvs.TargetRect.Height";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_itemheight = BA.numberCast(int.class, __ref.getField(false,"_cvs" /*RemoteObject*/ ).runMethod(false,"getTargetRect").runMethod(true,"getHeight"));Debug.locals.put("ItemHeight", _itemheight);Debug.locals.put("ItemHeight", _itemheight);
|
||||
BA.debugLineNum = 89;BA.debugLine="Dim BaseLine As Int = cvs.TargetRect.CenterY - r.";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_baseline = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_cvs" /*RemoteObject*/ ).runMethod(false,"getTargetRect").runMethod(true,"getCenterY"),_r.runMethod(true,"getHeight"),RemoteObject.createImmutable(2),_r.runMethod(true,"getTop")}, "-/-",2, 0));Debug.locals.put("BaseLine", _baseline);Debug.locals.put("BaseLine", _baseline);
|
||||
BA.debugLineNum = 90;BA.debugLine="Dim p As B4XPath";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_p = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XCanvas.B4XPath");Debug.locals.put("p", _p);
|
||||
BA.debugLineNum = 91;BA.debugLine="p.Initialize(Left, 0)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_p.runVoidMethod ("Initialize",(Object)(BA.numberCast(float.class, _left)),(Object)(BA.numberCast(float.class, 0)));
|
||||
BA.debugLineNum = 92;BA.debugLine="p.LineTo(Left + ItemWidth, 0)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_p.runVoidMethod ("LineTo",(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_left,_itemwidth}, "+",1, 1))),(Object)(BA.numberCast(float.class, 0)));
|
||||
BA.debugLineNum = 93;BA.debugLine="If Last = False Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",_last,b4xbreadcrumb.__c.getField(true,"False"))) {
|
||||
BA.debugLineNum = 94;BA.debugLine="p.LineTo(Left + ItemWidth + offset, ItemHeight /";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_p.runVoidMethod ("LineTo",(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_left,_itemwidth,__ref.getField(true,"_offset" /*RemoteObject*/ )}, "++",2, 1))),(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_itemheight,RemoteObject.createImmutable(2)}, "/",0, 0))));
|
||||
};
|
||||
BA.debugLineNum = 96;BA.debugLine="p.LineTo(Left + ItemWidth, ItemHeight)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_p.runVoidMethod ("LineTo",(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_left,_itemwidth}, "+",1, 1))),(Object)(BA.numberCast(float.class, _itemheight)));
|
||||
BA.debugLineNum = 97;BA.debugLine="If First = False Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",_first,b4xbreadcrumb.__c.getField(true,"False"))) {
|
||||
BA.debugLineNum = 98;BA.debugLine="p.LineTo(Left - offset, ItemHeight)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_p.runVoidMethod ("LineTo",(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_left,__ref.getField(true,"_offset" /*RemoteObject*/ )}, "-",1, 1))),(Object)(BA.numberCast(float.class, _itemheight)));
|
||||
BA.debugLineNum = 99;BA.debugLine="p.LineTo(Left, ItemHeight / 2)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_p.runVoidMethod ("LineTo",(Object)(BA.numberCast(float.class, _left)),(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_itemheight,RemoteObject.createImmutable(2)}, "/",0, 0))));
|
||||
BA.debugLineNum = 100;BA.debugLine="p.LineTo(Left - offset, 0)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_p.runVoidMethod ("LineTo",(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_left,__ref.getField(true,"_offset" /*RemoteObject*/ )}, "-",1, 1))),(Object)(BA.numberCast(float.class, 0)));
|
||||
}else {
|
||||
BA.debugLineNum = 102;BA.debugLine="p.LineTo(Left, ItemHeight)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_p.runVoidMethod ("LineTo",(Object)(BA.numberCast(float.class, _left)),(Object)(BA.numberCast(float.class, _itemheight)));
|
||||
};
|
||||
BA.debugLineNum = 104;BA.debugLine="p.LineTo(Left, 0)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_p.runVoidMethod ("LineTo",(Object)(BA.numberCast(float.class, _left)),(Object)(BA.numberCast(float.class, 0)));
|
||||
BA.debugLineNum = 105;BA.debugLine="cvs.DrawPath(p, clr, True, 0)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cvs" /*RemoteObject*/ ).runVoidMethod ("DrawPath",(Object)(_p),(Object)(_clr),(Object)(b4xbreadcrumb.__c.getField(true,"True")),(Object)(BA.numberCast(float.class, 0)));
|
||||
BA.debugLineNum = 106;BA.debugLine="If strokeColor <> 0 Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("!",_strokecolor,BA.numberCast(double.class, 0))) {
|
||||
BA.debugLineNum = 107;BA.debugLine="cvs.DrawPath(p, strokeColor, False, 3dip)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cvs" /*RemoteObject*/ ).runVoidMethod ("DrawPath",(Object)(_p),(Object)(_strokecolor),(Object)(b4xbreadcrumb.__c.getField(true,"False")),(Object)(BA.numberCast(float.class, b4xbreadcrumb.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 3))))));
|
||||
};
|
||||
BA.debugLineNum = 110;BA.debugLine="cvs.DrawText(Text, Left + ItemWidth / 2, BaseLine";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cvs" /*RemoteObject*/ ).runVoidMethod ("DrawText",__ref.getField(false, "ba"),(Object)(_text),(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_left,_itemwidth,RemoteObject.createImmutable(2)}, "+/",1, 0))),(Object)(BA.numberCast(float.class, _baseline)),(Object)(__ref.getField(false,"_fnt" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_textcolor" /*RemoteObject*/ )),(Object)(BA.getEnumFromString(BA.getDeviceClass("android.graphics.Paint.Align"),RemoteObject.createImmutable("CENTER"))));
|
||||
BA.debugLineNum = 111;BA.debugLine="Return ItemWidth";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return _itemwidth;
|
||||
BA.debugLineNum = 112;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(0);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _finditem(RemoteObject __ref,RemoteObject _x,RemoteObject _y) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("FindItem (b4xbreadcrumb) ","b4xbreadcrumb",49,__ref.getField(false, "ba"),__ref,136);
|
||||
if (RapidSub.canDelegate("finditem")) { return __ref.runUserSub(false, "b4xbreadcrumb","finditem", __ref, _x, _y);}
|
||||
RemoteObject _r = RemoteObject.createImmutable(0);
|
||||
int _i = 0;
|
||||
Debug.locals.put("x", _x);
|
||||
Debug.locals.put("y", _y);
|
||||
BA.debugLineNum = 136;BA.debugLine="Private Sub FindItem (x As Int, y As Int) As Int";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 137;BA.debugLine="If RightPositions.Size = 0 Then Return -1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_rightpositions" /*RemoteObject*/ ).runMethod(true,"getSize"),BA.numberCast(double.class, 0))) {
|
||||
if (true) return BA.numberCast(int.class, -(double) (0 + 1));};
|
||||
BA.debugLineNum = 138;BA.debugLine="If y < 0 Or y > cvs.TargetRect.Height Then Return";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("<",_y,BA.numberCast(double.class, 0)) || RemoteObject.solveBoolean(">",_y,BA.numberCast(double.class, __ref.getField(false,"_cvs" /*RemoteObject*/ ).runMethod(false,"getTargetRect").runMethod(true,"getHeight")))) {
|
||||
if (true) return BA.numberCast(int.class, -(double) (0 + 1));};
|
||||
BA.debugLineNum = 139;BA.debugLine="Dim r As Int = RightPositions.Get(RightPositions.";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_r = BA.numberCast(int.class, __ref.getField(false,"_rightpositions" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_rightpositions" /*RemoteObject*/ ).runMethod(true,"getSize"),RemoteObject.createImmutable(1)}, "-",1, 1))));Debug.locals.put("r", _r);Debug.locals.put("r", _r);
|
||||
BA.debugLineNum = 140;BA.debugLine="If x > r Then Return -1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean(">",_x,BA.numberCast(double.class, _r))) {
|
||||
if (true) return BA.numberCast(int.class, -(double) (0 + 1));};
|
||||
BA.debugLineNum = 141;BA.debugLine="For i = RightPositions.Size - 2 To 0 Step -1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
{
|
||||
final int step5 = -1;
|
||||
final int limit5 = 0;
|
||||
_i = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_rightpositions" /*RemoteObject*/ ).runMethod(true,"getSize"),RemoteObject.createImmutable(2)}, "-",1, 1).<Integer>get().intValue() ;
|
||||
for (;(step5 > 0 && _i <= limit5) || (step5 < 0 && _i >= limit5) ;_i = ((int)(0 + _i + step5)) ) {
|
||||
Debug.locals.put("i", _i);
|
||||
BA.debugLineNum = 142;BA.debugLine="Dim r As Int = RightPositions.Get(i)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_r = BA.numberCast(int.class, __ref.getField(false,"_rightpositions" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _i))));Debug.locals.put("r", _r);Debug.locals.put("r", _r);
|
||||
BA.debugLineNum = 143;BA.debugLine="If x > r Then Return i + 1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean(">",_x,BA.numberCast(double.class, _r))) {
|
||||
if (true) return RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(_i),RemoteObject.createImmutable(1)}, "+",1, 1);};
|
||||
}
|
||||
}Debug.locals.put("i", _i);
|
||||
;
|
||||
BA.debugLineNum = 145;BA.debugLine="Return 0";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return BA.numberCast(int.class, 0);
|
||||
BA.debugLineNum = 146;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(0);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getitems(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("getItems (b4xbreadcrumb) ","b4xbreadcrumb",49,__ref.getField(false, "ba"),__ref,153);
|
||||
if (RapidSub.canDelegate("getitems")) { return __ref.runUserSub(false, "b4xbreadcrumb","getitems", __ref);}
|
||||
BA.debugLineNum = 153;BA.debugLine="Public Sub getItems As List";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 154;BA.debugLine="Return mItems";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(false,"_mitems" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 155;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _initialize(RemoteObject __ref,RemoteObject _ba,RemoteObject _callback,RemoteObject _eventname) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Initialize (b4xbreadcrumb) ","b4xbreadcrumb",49,__ref.getField(false, "ba"),__ref,24);
|
||||
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "b4xbreadcrumb","initialize", __ref, _ba, _callback, _eventname);}
|
||||
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
|
||||
Debug.locals.put("ba", _ba);
|
||||
Debug.locals.put("Callback", _callback);
|
||||
Debug.locals.put("EventName", _eventname);
|
||||
BA.debugLineNum = 24;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 25;BA.debugLine="mEventName = EventName";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_meventname" /*RemoteObject*/ ,_eventname);
|
||||
BA.debugLineNum = 26;BA.debugLine="mCallBack = Callback";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mcallback" /*RemoteObject*/ ,_callback);
|
||||
BA.debugLineNum = 27;BA.debugLine="mItems.Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mitems" /*RemoteObject*/ ).runVoidMethod ("Initialize");
|
||||
BA.debugLineNum = 28;BA.debugLine="RightPositions.Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_rightpositions" /*RemoteObject*/ ).runVoidMethod ("Initialize");
|
||||
BA.debugLineNum = 29;BA.debugLine="bc.Initialize(1, 1)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_bc" /*RemoteObject*/ ).runVoidMethod ("_initialize",__ref.getField(false, "ba"),(Object)(BA.numberCast(int.class, 1)),(Object)(BA.numberCast(int.class, 1)));
|
||||
BA.debugLineNum = 30;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _setitems(RemoteObject __ref,RemoteObject _i) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("setItems (b4xbreadcrumb) ","b4xbreadcrumb",49,__ref.getField(false, "ba"),__ref,148);
|
||||
if (RapidSub.canDelegate("setitems")) { return __ref.runUserSub(false, "b4xbreadcrumb","setitems", __ref, _i);}
|
||||
Debug.locals.put("i", _i);
|
||||
BA.debugLineNum = 148;BA.debugLine="Public Sub setItems (i As List)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 149;BA.debugLine="mItems = i";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mitems" /*RemoteObject*/ ,_i);
|
||||
BA.debugLineNum = 150;BA.debugLine="Draw";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbreadcrumb.class, "_draw" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 151;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _touch_touch(RemoteObject __ref,RemoteObject _action,RemoteObject _x,RemoteObject _y) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Touch_Touch (b4xbreadcrumb) ","b4xbreadcrumb",49,__ref.getField(false, "ba"),__ref,114);
|
||||
if (RapidSub.canDelegate("touch_touch")) { return __ref.runUserSub(false, "b4xbreadcrumb","touch_touch", __ref, _action, _x, _y);}
|
||||
RemoteObject _prev = RemoteObject.createImmutable(0);
|
||||
RemoteObject _index = RemoteObject.createImmutable(0);
|
||||
RemoteObject _items = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
|
||||
int _i = 0;
|
||||
Debug.locals.put("Action", _action);
|
||||
Debug.locals.put("X", _x);
|
||||
Debug.locals.put("Y", _y);
|
||||
BA.debugLineNum = 114;BA.debugLine="Private Sub Touch_Touch (Action As Int, X As Float";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 115;BA.debugLine="Select Action";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
switch (BA.switchObjectToInt(_action,__ref.getField(false,"_touchpanel" /*RemoteObject*/ ).getField(true,"TOUCH_ACTION_DOWN"),__ref.getField(false,"_touchpanel" /*RemoteObject*/ ).getField(true,"TOUCH_ACTION_MOVE"),__ref.getField(false,"_touchpanel" /*RemoteObject*/ ).getField(true,"TOUCH_ACTION_UP"))) {
|
||||
case 0:
|
||||
case 1: {
|
||||
BA.debugLineNum = 117;BA.debugLine="Dim prev As Int = PressedItem";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_prev = __ref.getField(true,"_presseditem" /*RemoteObject*/ );Debug.locals.put("prev", _prev);Debug.locals.put("prev", _prev);
|
||||
BA.debugLineNum = 118;BA.debugLine="PressedItem = FindItem(X, Y)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_presseditem" /*RemoteObject*/ ,__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbreadcrumb.class, "_finditem" /*RemoteObject*/ ,(Object)(BA.numberCast(int.class, _x)),(Object)(BA.numberCast(int.class, _y))));
|
||||
BA.debugLineNum = 119;BA.debugLine="If prev <> PressedItem Then Draw";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("!",_prev,BA.numberCast(double.class, __ref.getField(true,"_presseditem" /*RemoteObject*/ )))) {
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbreadcrumb.class, "_draw" /*RemoteObject*/ );};
|
||||
break; }
|
||||
case 2: {
|
||||
BA.debugLineNum = 121;BA.debugLine="Dim index As Int = FindItem(X, Y)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_index = __ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbreadcrumb.class, "_finditem" /*RemoteObject*/ ,(Object)(BA.numberCast(int.class, _x)),(Object)(BA.numberCast(int.class, _y)));Debug.locals.put("index", _index);Debug.locals.put("index", _index);
|
||||
BA.debugLineNum = 122;BA.debugLine="If index = PressedItem And index > -1 Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",_index,BA.numberCast(double.class, __ref.getField(true,"_presseditem" /*RemoteObject*/ ))) && RemoteObject.solveBoolean(">",_index,BA.numberCast(double.class, -(double) (0 + 1)))) {
|
||||
BA.debugLineNum = 123;BA.debugLine="Dim Items As List";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_items = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");Debug.locals.put("Items", _items);
|
||||
BA.debugLineNum = 124;BA.debugLine="Items.Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_items.runVoidMethod ("Initialize");
|
||||
BA.debugLineNum = 125;BA.debugLine="For i = 0 To index";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
{
|
||||
final int step11 = 1;
|
||||
final int limit11 = _index.<Integer>get().intValue();
|
||||
_i = 0 ;
|
||||
for (;(step11 > 0 && _i <= limit11) || (step11 < 0 && _i >= limit11) ;_i = ((int)(0 + _i + step11)) ) {
|
||||
Debug.locals.put("i", _i);
|
||||
BA.debugLineNum = 126;BA.debugLine="Items.Add(mItems.Get(i))";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_items.runVoidMethod ("Add",(Object)(__ref.getField(false,"_mitems" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _i)))));
|
||||
}
|
||||
}Debug.locals.put("i", _i);
|
||||
;
|
||||
BA.debugLineNum = 128;BA.debugLine="If mHaptic Then XUIViewsUtils.PerformHapticFee";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (__ref.getField(true,"_mhaptic" /*RemoteObject*/ ).<Boolean>get().booleanValue()) {
|
||||
b4xbreadcrumb._xuiviewsutils.runVoidMethod ("_performhapticfeedback" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_mbase" /*RemoteObject*/ )));};
|
||||
BA.debugLineNum = 129;BA.debugLine="CallSub2(mCallBack, mEventName & \"_CrumbClick\"";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
b4xbreadcrumb.__c.runMethodAndSync(false,"CallSubNew2",__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_mcallback" /*RemoteObject*/ )),(Object)(RemoteObject.concat(__ref.getField(true,"_meventname" /*RemoteObject*/ ),RemoteObject.createImmutable("_CrumbClick"))),(Object)((_items)));
|
||||
};
|
||||
BA.debugLineNum = 131;BA.debugLine="PressedItem = -1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_presseditem" /*RemoteObject*/ ,BA.numberCast(int.class, -(double) (0 + 1)));
|
||||
BA.debugLineNum = 132;BA.debugLine="Draw";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbreadcrumb.class, "_draw" /*RemoteObject*/ );
|
||||
break; }
|
||||
}
|
||||
;
|
||||
BA.debugLineNum = 134;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.pc.PCBA;
|
||||
import anywheresoftware.b4a.pc.RemoteObject;
|
||||
|
||||
public class b4xbytesbuilder {
|
||||
public static RemoteObject myClass;
|
||||
public b4xbytesbuilder() {
|
||||
}
|
||||
public static PCBA staticBA = new PCBA(null, b4xbytesbuilder.class);
|
||||
|
||||
public static RemoteObject __c = RemoteObject.declareNull("anywheresoftware.b4a.keywords.Common");
|
||||
public static RemoteObject _mbuffer = null;
|
||||
public static RemoteObject _mlength = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _dateutils = RemoteObject.declareNull("b4a.example.dateutils");
|
||||
public static reparto_mazapa.keymon.lat.main _main = null;
|
||||
public static reparto_mazapa.keymon.lat.appupdater _appupdater = null;
|
||||
public static reparto_mazapa.keymon.lat.tracker _tracker = null;
|
||||
public static reparto_mazapa.keymon.lat.starter _starter = null;
|
||||
public static reparto_mazapa.keymon.lat.subs _subs = null;
|
||||
public static reparto_mazapa.keymon.lat.firebasemessaging _firebasemessaging = null;
|
||||
public static reparto_mazapa.keymon.lat.foto _foto = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_cliente _mapa_cliente = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_rutas _mapa_rutas = null;
|
||||
public static reparto_mazapa.keymon.lat.newinst2 _newinst2 = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xpages _b4xpages = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xcollections _b4xcollections = null;
|
||||
public static reparto_mazapa.keymon.lat.httputils2service _httputils2service = null;
|
||||
public static reparto_mazapa.keymon.lat.xuiviewsutils _xuiviewsutils = null;
|
||||
public static Object[] GetGlobals(RemoteObject _ref) throws Exception {
|
||||
return new Object[] {"DateUtils",_ref.getField(false, "_dateutils"),"mBuffer",_ref.getField(false, "_mbuffer"),"mLength",_ref.getField(false, "_mlength")};
|
||||
}
|
||||
}
|
||||
@@ -1,473 +0,0 @@
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.BA;
|
||||
import anywheresoftware.b4a.pc.*;
|
||||
|
||||
public class b4xbytesbuilder_subs_0 {
|
||||
|
||||
|
||||
public static RemoteObject _append(RemoteObject __ref,RemoteObject _data) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Append (b4xbytesbuilder) ","b4xbytesbuilder",36,__ref.getField(false, "ba"),__ref,24);
|
||||
if (RapidSub.canDelegate("append")) { return __ref.runUserSub(false, "b4xbytesbuilder","append", __ref, _data);}
|
||||
Debug.locals.put("Data", _data);
|
||||
BA.debugLineNum = 24;BA.debugLine="Public Sub Append(Data() As Byte) As B4XBytesBuild";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 25;BA.debugLine="Return Append2(Data, 0, Data.Length)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbytesbuilder.class, "_append2" /*RemoteObject*/ ,(Object)(_data),(Object)(BA.numberCast(int.class, 0)),(Object)(_data.getField(true,"length")));
|
||||
BA.debugLineNum = 26;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _append2(RemoteObject __ref,RemoteObject _data,RemoteObject _startindex,RemoteObject _length) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Append2 (b4xbytesbuilder) ","b4xbytesbuilder",36,__ref.getField(false, "ba"),__ref,31);
|
||||
if (RapidSub.canDelegate("append2")) { return __ref.runUserSub(false, "b4xbytesbuilder","append2", __ref, _data, _startindex, _length);}
|
||||
RemoteObject _oldlength = RemoteObject.createImmutable(0);
|
||||
Debug.locals.put("Data", _data);
|
||||
Debug.locals.put("StartIndex", _startindex);
|
||||
Debug.locals.put("Length", _length);
|
||||
BA.debugLineNum = 31;BA.debugLine="Public Sub Append2(Data() As Byte, StartIndex As I";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 32;BA.debugLine="Dim OldLength As Int = ChangeLength(mLength + Len";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_oldlength = __ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbytesbuilder.class, "_changelength" /*RemoteObject*/ ,(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_mlength" /*RemoteObject*/ ),_length}, "+",1, 1)));Debug.locals.put("OldLength", _oldlength);Debug.locals.put("OldLength", _oldlength);
|
||||
BA.debugLineNum = 33;BA.debugLine="Bit.ArrayCopy(Data, StartIndex, mBuffer, OldLengt";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
b4xbytesbuilder.__c.getField(false,"Bit").runVoidMethod ("ArrayCopy",(Object)((_data)),(Object)(_startindex),(Object)((__ref.getField(false,"_mbuffer" /*RemoteObject*/ ))),(Object)(_oldlength),(Object)(_length));
|
||||
BA.debugLineNum = 34;BA.debugLine="Return Me";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return (__ref);
|
||||
BA.debugLineNum = 35;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _changelength(RemoteObject __ref,RemoteObject _newlength) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("ChangeLength (b4xbytesbuilder) ","b4xbytesbuilder",36,__ref.getField(false, "ba"),__ref,12);
|
||||
if (RapidSub.canDelegate("changelength")) { return __ref.runUserSub(false, "b4xbytesbuilder","changelength", __ref, _newlength);}
|
||||
RemoteObject _oldlength = RemoteObject.createImmutable(0);
|
||||
RemoteObject _b = null;
|
||||
Debug.locals.put("NewLength", _newlength);
|
||||
BA.debugLineNum = 12;BA.debugLine="Private Sub ChangeLength (NewLength As Int) As Int";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 13;BA.debugLine="Dim OldLength As Int = mLength";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_oldlength = __ref.getField(true,"_mlength" /*RemoteObject*/ );Debug.locals.put("OldLength", _oldlength);Debug.locals.put("OldLength", _oldlength);
|
||||
BA.debugLineNum = 14;BA.debugLine="mLength = NewLength";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mlength" /*RemoteObject*/ ,_newlength);
|
||||
BA.debugLineNum = 15;BA.debugLine="If mBuffer.Length < mLength Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("<",__ref.getField(false,"_mbuffer" /*RemoteObject*/ ).getField(true,"length"),BA.numberCast(double.class, __ref.getField(true,"_mlength" /*RemoteObject*/ )))) {
|
||||
BA.debugLineNum = 16;BA.debugLine="Dim b(Max(mBuffer.Length * 2, NewLength)) As Byt";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_b = RemoteObject.createNewArray ("byte", new int[] {(int) (0 + b4xbytesbuilder.__c.runMethod(true,"Max",(Object)(BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mbuffer" /*RemoteObject*/ ).getField(true,"length"),RemoteObject.createImmutable(2)}, "*",0, 1))),(Object)(BA.numberCast(double.class, _newlength))).<Double>get().doubleValue())}, new Object[]{});Debug.locals.put("b", _b);
|
||||
BA.debugLineNum = 17;BA.debugLine="Bit.ArrayCopy(mBuffer, 0, b, 0, mBuffer.Length)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
b4xbytesbuilder.__c.getField(false,"Bit").runVoidMethod ("ArrayCopy",(Object)((__ref.getField(false,"_mbuffer" /*RemoteObject*/ ))),(Object)(BA.numberCast(int.class, 0)),(Object)((_b)),(Object)(BA.numberCast(int.class, 0)),(Object)(__ref.getField(false,"_mbuffer" /*RemoteObject*/ ).getField(true,"length")));
|
||||
BA.debugLineNum = 18;BA.debugLine="mBuffer = b";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mbuffer" /*RemoteObject*/ ,_b);
|
||||
};
|
||||
BA.debugLineNum = 20;BA.debugLine="Return OldLength";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return _oldlength;
|
||||
BA.debugLineNum = 21;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(0);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _class_globals(RemoteObject __ref) throws Exception{
|
||||
//BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
|
||||
//BA.debugLineNum = 2;BA.debugLine="Private mBuffer() As Byte";
|
||||
b4xbytesbuilder._mbuffer = RemoteObject.createNewArray ("byte", new int[] {0}, new Object[]{});__ref.setField("_mbuffer",b4xbytesbuilder._mbuffer);
|
||||
//BA.debugLineNum = 3;BA.debugLine="Private mLength As Int";
|
||||
b4xbytesbuilder._mlength = RemoteObject.createImmutable(0);__ref.setField("_mlength",b4xbytesbuilder._mlength);
|
||||
//BA.debugLineNum = 4;BA.debugLine="End Sub";
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
public static RemoteObject _clear(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Clear (b4xbytesbuilder) ","b4xbytesbuilder",36,__ref.getField(false, "ba"),__ref,37);
|
||||
if (RapidSub.canDelegate("clear")) { return __ref.runUserSub(false, "b4xbytesbuilder","clear", __ref);}
|
||||
BA.debugLineNum = 37;BA.debugLine="Public Sub Clear";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 38;BA.debugLine="ChangeLength(0)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbytesbuilder.class, "_changelength" /*RemoteObject*/ ,(Object)(BA.numberCast(int.class, 0)));
|
||||
BA.debugLineNum = 39;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getbuffer(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("getBuffer (b4xbytesbuilder) ","b4xbytesbuilder",36,__ref.getField(false, "ba"),__ref,103);
|
||||
if (RapidSub.canDelegate("getbuffer")) { return __ref.runUserSub(false, "b4xbytesbuilder","getbuffer", __ref);}
|
||||
BA.debugLineNum = 103;BA.debugLine="Private Sub getBuffer As Byte() 'ignore";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 104;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getinternalbuffer(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("getInternalBuffer (b4xbytesbuilder) ","b4xbytesbuilder",36,__ref.getField(false, "ba"),__ref,127);
|
||||
if (RapidSub.canDelegate("getinternalbuffer")) { return __ref.runUserSub(false, "b4xbytesbuilder","getinternalbuffer", __ref);}
|
||||
BA.debugLineNum = 127;BA.debugLine="Public Sub getInternalBuffer As Byte()";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 128;BA.debugLine="Return mBuffer";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(false,"_mbuffer" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 129;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getlength(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("getLength (b4xbytesbuilder) ","b4xbytesbuilder",36,__ref.getField(false, "ba"),__ref,92);
|
||||
if (RapidSub.canDelegate("getlength")) { return __ref.runUserSub(false, "b4xbytesbuilder","getlength", __ref);}
|
||||
BA.debugLineNum = 92;BA.debugLine="Public Sub getLength As Int";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 93;BA.debugLine="Return mLength";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(true,"_mlength" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 94;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(0);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _indexof(RemoteObject __ref,RemoteObject _searchfor) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("IndexOf (b4xbytesbuilder) ","b4xbytesbuilder",36,__ref.getField(false, "ba"),__ref,107);
|
||||
if (RapidSub.canDelegate("indexof")) { return __ref.runUserSub(false, "b4xbytesbuilder","indexof", __ref, _searchfor);}
|
||||
Debug.locals.put("SearchFor", _searchfor);
|
||||
BA.debugLineNum = 107;BA.debugLine="Public Sub IndexOf(SearchFor() As Byte) As Int";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 108;BA.debugLine="Return IndexOf2(SearchFor, 0)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbytesbuilder.class, "_indexof2" /*RemoteObject*/ ,(Object)(_searchfor),(Object)(BA.numberCast(int.class, 0)));
|
||||
BA.debugLineNum = 109;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(0);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _indexof2(RemoteObject __ref,RemoteObject _searchfor,RemoteObject _index) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("IndexOf2 (b4xbytesbuilder) ","b4xbytesbuilder",36,__ref.getField(false, "ba"),__ref,112);
|
||||
if (RapidSub.canDelegate("indexof2")) { return __ref.runUserSub(false, "b4xbytesbuilder","indexof2", __ref, _searchfor, _index);}
|
||||
int _i1 = 0;
|
||||
int _i2 = 0;
|
||||
Debug.locals.put("SearchFor", _searchfor);
|
||||
Debug.locals.put("Index", _index);
|
||||
BA.debugLineNum = 112;BA.debugLine="Public Sub IndexOf2(SearchFor() As Byte, Index As";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 113;BA.debugLine="For i1 = Index To mLength - SearchFor.Length";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
{
|
||||
final int step1 = 1;
|
||||
final int limit1 = RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_mlength" /*RemoteObject*/ ),_searchfor.getField(true,"length")}, "-",1, 1).<Integer>get().intValue();
|
||||
_i1 = _index.<Integer>get().intValue() ;
|
||||
for (;(step1 > 0 && _i1 <= limit1) || (step1 < 0 && _i1 >= limit1) ;_i1 = ((int)(0 + _i1 + step1)) ) {
|
||||
Debug.locals.put("i1", _i1);
|
||||
BA.debugLineNum = 114;BA.debugLine="For i2 = 0 To SearchFor.Length - 1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
{
|
||||
final int step2 = 1;
|
||||
final int limit2 = RemoteObject.solve(new RemoteObject[] {_searchfor.getField(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
|
||||
_i2 = 0 ;
|
||||
for (;(step2 > 0 && _i2 <= limit2) || (step2 < 0 && _i2 >= limit2) ;_i2 = ((int)(0 + _i2 + step2)) ) {
|
||||
Debug.locals.put("i2", _i2);
|
||||
BA.debugLineNum = 115;BA.debugLine="If SearchFor(i2) <> mBuffer(i1 + i2) Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("!",_searchfor.getArrayElement(true,BA.numberCast(int.class, _i2)),BA.numberCast(double.class, __ref.getField(false,"_mbuffer" /*RemoteObject*/ ).getArrayElement(true,RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(_i1),RemoteObject.createImmutable(_i2)}, "+",1, 1))))) {
|
||||
BA.debugLineNum = 116;BA.debugLine="Exit";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) break;
|
||||
};
|
||||
}
|
||||
}Debug.locals.put("i2", _i2);
|
||||
;
|
||||
BA.debugLineNum = 119;BA.debugLine="If i2 = SearchFor.Length Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",RemoteObject.createImmutable(_i2),BA.numberCast(double.class, _searchfor.getField(true,"length")))) {
|
||||
BA.debugLineNum = 120;BA.debugLine="Return i1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return BA.numberCast(int.class, _i1);
|
||||
};
|
||||
}
|
||||
}Debug.locals.put("i1", _i1);
|
||||
;
|
||||
BA.debugLineNum = 123;BA.debugLine="Return -1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return BA.numberCast(int.class, -(double) (0 + 1));
|
||||
BA.debugLineNum = 124;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(0);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _initialize(RemoteObject __ref,RemoteObject _ba) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Initialize (b4xbytesbuilder) ","b4xbytesbuilder",36,__ref.getField(false, "ba"),__ref,6);
|
||||
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "b4xbytesbuilder","initialize", __ref, _ba);}
|
||||
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
|
||||
Debug.locals.put("ba", _ba);
|
||||
BA.debugLineNum = 6;BA.debugLine="Public Sub Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 7;BA.debugLine="Dim mBuffer(100) As Byte";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
b4xbytesbuilder._mbuffer = RemoteObject.createNewArray ("byte", new int[] {100}, new Object[]{});__ref.setField("_mbuffer",b4xbytesbuilder._mbuffer);
|
||||
BA.debugLineNum = 8;BA.debugLine="mLength = 0";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mlength" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
|
||||
BA.debugLineNum = 9;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _insert(RemoteObject __ref,RemoteObject _index,RemoteObject _data) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Insert (b4xbytesbuilder) ","b4xbytesbuilder",36,__ref.getField(false, "ba"),__ref,43);
|
||||
if (RapidSub.canDelegate("insert")) { return __ref.runUserSub(false, "b4xbytesbuilder","insert", __ref, _index, _data);}
|
||||
RemoteObject _afterindex = null;
|
||||
Debug.locals.put("Index", _index);
|
||||
Debug.locals.put("Data", _data);
|
||||
BA.debugLineNum = 43;BA.debugLine="Public Sub Insert(Index As Int, Data() As Byte)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 44;BA.debugLine="If Index >= mLength Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("g",_index,BA.numberCast(double.class, __ref.getField(true,"_mlength" /*RemoteObject*/ )))) {
|
||||
BA.debugLineNum = 45;BA.debugLine="If Index > mLength Then Log(\"Index too large\")";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean(">",_index,BA.numberCast(double.class, __ref.getField(true,"_mlength" /*RemoteObject*/ )))) {
|
||||
b4xbytesbuilder.__c.runVoidMethod ("LogImpl","925952258",RemoteObject.createImmutable("Index too large"),0);};
|
||||
BA.debugLineNum = 46;BA.debugLine="Append(Data)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbytesbuilder.class, "_append" /*RemoteObject*/ ,(Object)(_data));
|
||||
}else {
|
||||
BA.debugLineNum = 48;BA.debugLine="Dim AfterIndex() As Byte = SubArray(Index)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_afterindex = __ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbytesbuilder.class, "_subarray" /*RemoteObject*/ ,(Object)(_index));Debug.locals.put("AfterIndex", _afterindex);Debug.locals.put("AfterIndex", _afterindex);
|
||||
BA.debugLineNum = 49;BA.debugLine="ChangeLength(mLength + Data.Length)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbytesbuilder.class, "_changelength" /*RemoteObject*/ ,(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_mlength" /*RemoteObject*/ ),_data.getField(true,"length")}, "+",1, 1)));
|
||||
BA.debugLineNum = 50;BA.debugLine="Bit.ArrayCopy(Data, 0, mBuffer, Index, Data.Leng";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
b4xbytesbuilder.__c.getField(false,"Bit").runVoidMethod ("ArrayCopy",(Object)((_data)),(Object)(BA.numberCast(int.class, 0)),(Object)((__ref.getField(false,"_mbuffer" /*RemoteObject*/ ))),(Object)(_index),(Object)(_data.getField(true,"length")));
|
||||
BA.debugLineNum = 51;BA.debugLine="Bit.ArrayCopy(AfterIndex, 0, mBuffer, Index + Da";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
b4xbytesbuilder.__c.getField(false,"Bit").runVoidMethod ("ArrayCopy",(Object)((_afterindex)),(Object)(BA.numberCast(int.class, 0)),(Object)((__ref.getField(false,"_mbuffer" /*RemoteObject*/ ))),(Object)(RemoteObject.solve(new RemoteObject[] {_index,_data.getField(true,"length")}, "+",1, 1)),(Object)(_afterindex.getField(true,"length")));
|
||||
};
|
||||
BA.debugLineNum = 53;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _remove(RemoteObject __ref,RemoteObject _beginindex,RemoteObject _endindex) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Remove (b4xbytesbuilder) ","b4xbytesbuilder",36,__ref.getField(false, "ba"),__ref,69);
|
||||
if (RapidSub.canDelegate("remove")) { return __ref.runUserSub(false, "b4xbytesbuilder","remove", __ref, _beginindex, _endindex);}
|
||||
RemoteObject _res = null;
|
||||
RemoteObject _afterendindex = null;
|
||||
Debug.locals.put("BeginIndex", _beginindex);
|
||||
Debug.locals.put("EndIndex", _endindex);
|
||||
BA.debugLineNum = 69;BA.debugLine="Public Sub Remove(BeginIndex As Int, EndIndex As I";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 70;BA.debugLine="Dim res() As Byte = SubArray2(BeginIndex, EndInde";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_res = __ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbytesbuilder.class, "_subarray2" /*RemoteObject*/ ,(Object)(_beginindex),(Object)(_endindex));Debug.locals.put("res", _res);Debug.locals.put("res", _res);
|
||||
BA.debugLineNum = 71;BA.debugLine="If EndIndex <= mLength Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("k",_endindex,BA.numberCast(double.class, __ref.getField(true,"_mlength" /*RemoteObject*/ )))) {
|
||||
BA.debugLineNum = 72;BA.debugLine="Dim AfterEndIndex() As Byte = SubArray(EndIndex)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_afterendindex = __ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbytesbuilder.class, "_subarray" /*RemoteObject*/ ,(Object)(_endindex));Debug.locals.put("AfterEndIndex", _afterendindex);Debug.locals.put("AfterEndIndex", _afterendindex);
|
||||
BA.debugLineNum = 73;BA.debugLine="Bit.ArrayCopy(AfterEndIndex, 0, mBuffer, BeginIn";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
b4xbytesbuilder.__c.getField(false,"Bit").runVoidMethod ("ArrayCopy",(Object)((_afterendindex)),(Object)(BA.numberCast(int.class, 0)),(Object)((__ref.getField(false,"_mbuffer" /*RemoteObject*/ ))),(Object)(_beginindex),(Object)(_afterendindex.getField(true,"length")));
|
||||
};
|
||||
BA.debugLineNum = 75;BA.debugLine="ChangeLength(mLength - (EndIndex - BeginIndex))";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbytesbuilder.class, "_changelength" /*RemoteObject*/ ,(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_mlength" /*RemoteObject*/ ),(RemoteObject.solve(new RemoteObject[] {_endindex,_beginindex}, "-",1, 1))}, "-",1, 1)));
|
||||
BA.debugLineNum = 76;BA.debugLine="Return res";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return _res;
|
||||
BA.debugLineNum = 77;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _set(RemoteObject __ref,RemoteObject _index,RemoteObject _data) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Set (b4xbytesbuilder) ","b4xbytesbuilder",36,__ref.getField(false, "ba"),__ref,56);
|
||||
if (RapidSub.canDelegate("set")) { return __ref.runUserSub(false, "b4xbytesbuilder","set", __ref, _index, _data);}
|
||||
Debug.locals.put("Index", _index);
|
||||
Debug.locals.put("Data", _data);
|
||||
BA.debugLineNum = 56;BA.debugLine="Public Sub Set(Index As Int, Data() As Byte)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 57;BA.debugLine="If Index >= mLength Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("g",_index,BA.numberCast(double.class, __ref.getField(true,"_mlength" /*RemoteObject*/ )))) {
|
||||
BA.debugLineNum = 58;BA.debugLine="If Index > mLength Then Log(\"Index too large\")";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean(">",_index,BA.numberCast(double.class, __ref.getField(true,"_mlength" /*RemoteObject*/ )))) {
|
||||
b4xbytesbuilder.__c.runVoidMethod ("LogImpl","926017794",RemoteObject.createImmutable("Index too large"),0);};
|
||||
BA.debugLineNum = 59;BA.debugLine="Append(Data)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbytesbuilder.class, "_append" /*RemoteObject*/ ,(Object)(_data));
|
||||
}else {
|
||||
BA.debugLineNum = 61;BA.debugLine="If Data.Length + Index > mLength Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean(">",RemoteObject.solve(new RemoteObject[] {_data.getField(true,"length"),_index}, "+",1, 1),BA.numberCast(double.class, __ref.getField(true,"_mlength" /*RemoteObject*/ )))) {
|
||||
BA.debugLineNum = 62;BA.debugLine="ChangeLength(Data.Length + Index)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbytesbuilder.class, "_changelength" /*RemoteObject*/ ,(Object)(RemoteObject.solve(new RemoteObject[] {_data.getField(true,"length"),_index}, "+",1, 1)));
|
||||
};
|
||||
BA.debugLineNum = 64;BA.debugLine="Bit.ArrayCopy(Data, 0, mBuffer, Index, Data.Leng";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
b4xbytesbuilder.__c.getField(false,"Bit").runVoidMethod ("ArrayCopy",(Object)((_data)),(Object)(BA.numberCast(int.class, 0)),(Object)((__ref.getField(false,"_mbuffer" /*RemoteObject*/ ))),(Object)(_index),(Object)(_data.getField(true,"length")));
|
||||
};
|
||||
BA.debugLineNum = 66;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _subarray(RemoteObject __ref,RemoteObject _beginindex) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("SubArray (b4xbytesbuilder) ","b4xbytesbuilder",36,__ref.getField(false, "ba"),__ref,80);
|
||||
if (RapidSub.canDelegate("subarray")) { return __ref.runUserSub(false, "b4xbytesbuilder","subarray", __ref, _beginindex);}
|
||||
Debug.locals.put("BeginIndex", _beginindex);
|
||||
BA.debugLineNum = 80;BA.debugLine="Public Sub SubArray(BeginIndex As Int) As Byte()";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 81;BA.debugLine="Return SubArray2(BeginIndex, mLength)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbytesbuilder.class, "_subarray2" /*RemoteObject*/ ,(Object)(_beginindex),(Object)(__ref.getField(true,"_mlength" /*RemoteObject*/ )));
|
||||
BA.debugLineNum = 82;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _subarray2(RemoteObject __ref,RemoteObject _beginindex,RemoteObject _endindex) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("SubArray2 (b4xbytesbuilder) ","b4xbytesbuilder",36,__ref.getField(false, "ba"),__ref,86);
|
||||
if (RapidSub.canDelegate("subarray2")) { return __ref.runUserSub(false, "b4xbytesbuilder","subarray2", __ref, _beginindex, _endindex);}
|
||||
RemoteObject _b = null;
|
||||
Debug.locals.put("BeginIndex", _beginindex);
|
||||
Debug.locals.put("EndIndex", _endindex);
|
||||
BA.debugLineNum = 86;BA.debugLine="Public Sub SubArray2(BeginIndex As Int, EndIndex A";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 87;BA.debugLine="Dim b(EndIndex - BeginIndex) As Byte";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_b = RemoteObject.createNewArray ("byte", new int[] {RemoteObject.solve(new RemoteObject[] {_endindex,_beginindex}, "-",1, 1).<Integer>get().intValue()}, new Object[]{});Debug.locals.put("b", _b);
|
||||
BA.debugLineNum = 88;BA.debugLine="Bit.ArrayCopy(mBuffer, BeginIndex, b, 0, b.Length";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
b4xbytesbuilder.__c.getField(false,"Bit").runVoidMethod ("ArrayCopy",(Object)((__ref.getField(false,"_mbuffer" /*RemoteObject*/ ))),(Object)(_beginindex),(Object)((_b)),(Object)(BA.numberCast(int.class, 0)),(Object)(_b.getField(true,"length")));
|
||||
BA.debugLineNum = 89;BA.debugLine="Return b";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return _b;
|
||||
BA.debugLineNum = 90;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _toarray(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("ToArray (b4xbytesbuilder) ","b4xbytesbuilder",36,__ref.getField(false, "ba"),__ref,97);
|
||||
if (RapidSub.canDelegate("toarray")) { return __ref.runUserSub(false, "b4xbytesbuilder","toarray", __ref);}
|
||||
BA.debugLineNum = 97;BA.debugLine="Public Sub ToArray() As Byte()";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 98;BA.debugLine="Return SubArray(0)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.runClassMethod (reparto_mazapa.keymon.lat.b4xbytesbuilder.class, "_subarray" /*RemoteObject*/ ,(Object)(BA.numberCast(int.class, 0)));
|
||||
BA.debugLineNum = 99;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.pc.PCBA;
|
||||
import anywheresoftware.b4a.pc.RemoteObject;
|
||||
|
||||
public class b4xcache {
|
||||
public static RemoteObject myClass;
|
||||
public b4xcache() {
|
||||
}
|
||||
public static PCBA staticBA = new PCBA(null, b4xcache.class);
|
||||
|
||||
public static RemoteObject __c = RemoteObject.declareNull("anywheresoftware.b4a.keywords.Common");
|
||||
public static RemoteObject _data = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xorderedmap");
|
||||
public static RemoteObject _mmaxsize = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _removethreshold = RemoteObject.createImmutable(0f);
|
||||
public static RemoteObject _eternalcounts = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _dateutils = RemoteObject.declareNull("b4a.example.dateutils");
|
||||
public static reparto_mazapa.keymon.lat.main _main = null;
|
||||
public static reparto_mazapa.keymon.lat.appupdater _appupdater = null;
|
||||
public static reparto_mazapa.keymon.lat.tracker _tracker = null;
|
||||
public static reparto_mazapa.keymon.lat.starter _starter = null;
|
||||
public static reparto_mazapa.keymon.lat.subs _subs = null;
|
||||
public static reparto_mazapa.keymon.lat.firebasemessaging _firebasemessaging = null;
|
||||
public static reparto_mazapa.keymon.lat.foto _foto = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_cliente _mapa_cliente = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_rutas _mapa_rutas = null;
|
||||
public static reparto_mazapa.keymon.lat.newinst2 _newinst2 = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xpages _b4xpages = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xcollections _b4xcollections = null;
|
||||
public static reparto_mazapa.keymon.lat.httputils2service _httputils2service = null;
|
||||
public static reparto_mazapa.keymon.lat.xuiviewsutils _xuiviewsutils = null;
|
||||
public static Object[] GetGlobals(RemoteObject _ref) throws Exception {
|
||||
return new Object[] {"Data",_ref.getField(false, "_data"),"DateUtils",_ref.getField(false, "_dateutils"),"EternalCounts",_ref.getField(false, "_eternalcounts"),"mMaxSize",_ref.getField(false, "_mmaxsize"),"RemoveThreshold",_ref.getField(false, "_removethreshold")};
|
||||
}
|
||||
}
|
||||
@@ -1,431 +0,0 @@
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.BA;
|
||||
import anywheresoftware.b4a.pc.*;
|
||||
|
||||
public class b4xcache_subs_0 {
|
||||
|
||||
|
||||
public static RemoteObject _class_globals(RemoteObject __ref) throws Exception{
|
||||
//BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
|
||||
//BA.debugLineNum = 2;BA.debugLine="Type B4XCacheItem (Value As Object, LastAccessedT";
|
||||
;
|
||||
//BA.debugLineNum = 3;BA.debugLine="Private Data As B4XOrderedMap";
|
||||
b4xcache._data = RemoteObject.createNew ("reparto_mazapa.keymon.lat.b4xorderedmap");__ref.setField("_data",b4xcache._data);
|
||||
//BA.debugLineNum = 4;BA.debugLine="Private mMaxSize As Int = 100";
|
||||
b4xcache._mmaxsize = BA.numberCast(int.class, 100);__ref.setField("_mmaxsize",b4xcache._mmaxsize);
|
||||
//BA.debugLineNum = 5;BA.debugLine="Private RemoveThreshold As Float = 0.3";
|
||||
b4xcache._removethreshold = BA.numberCast(float.class, 0.3);__ref.setField("_removethreshold",b4xcache._removethreshold);
|
||||
//BA.debugLineNum = 6;BA.debugLine="Private EternalCounts As Int";
|
||||
b4xcache._eternalcounts = RemoteObject.createImmutable(0);__ref.setField("_eternalcounts",b4xcache._eternalcounts);
|
||||
//BA.debugLineNum = 7;BA.debugLine="End Sub";
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
public static RemoteObject _containskey(RemoteObject __ref,RemoteObject _key) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("ContainsKey (b4xcache) ","b4xcache",37,__ref.getField(false, "ba"),__ref,66);
|
||||
if (RapidSub.canDelegate("containskey")) { return __ref.runUserSub(false, "b4xcache","containskey", __ref, _key);}
|
||||
Debug.locals.put("Key", _key);
|
||||
BA.debugLineNum = 66;BA.debugLine="Public Sub ContainsKey(Key As String) As Boolean";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 67;BA.debugLine="Return Data.ContainsKey(Key)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(false,"_data" /*RemoteObject*/ ).runClassMethod (reparto_mazapa.keymon.lat.b4xorderedmap.class, "_containskey" /*RemoteObject*/ ,(Object)((_key)));
|
||||
BA.debugLineNum = 68;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(false);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _createb4xcacheitem(RemoteObject __ref,RemoteObject _value,RemoteObject _key) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("CreateB4XCacheItem (b4xcache) ","b4xcache",37,__ref.getField(false, "ba"),__ref,102);
|
||||
if (RapidSub.canDelegate("createb4xcacheitem")) { return __ref.runUserSub(false, "b4xcache","createb4xcacheitem", __ref, _value, _key);}
|
||||
RemoteObject _t1 = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xcache._b4xcacheitem");
|
||||
Debug.locals.put("Value", _value);
|
||||
Debug.locals.put("Key", _key);
|
||||
BA.debugLineNum = 102;BA.debugLine="Private Sub CreateB4XCacheItem (Value As Object, K";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 103;BA.debugLine="Dim t1 As B4XCacheItem";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_t1 = RemoteObject.createNew ("reparto_mazapa.keymon.lat.b4xcache._b4xcacheitem");Debug.locals.put("t1", _t1);
|
||||
BA.debugLineNum = 104;BA.debugLine="t1.Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_t1.runVoidMethod ("Initialize");
|
||||
BA.debugLineNum = 105;BA.debugLine="t1.Value = Value";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_t1.setField ("Value" /*RemoteObject*/ ,_value);
|
||||
BA.debugLineNum = 106;BA.debugLine="t1.LastAccessedTime = DateTime.Now";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_t1.setField ("LastAccessedTime" /*RemoteObject*/ ,b4xcache.__c.getField(false,"DateTime").runMethod(true,"getNow"));
|
||||
BA.debugLineNum = 107;BA.debugLine="t1.Key = Key";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_t1.setField ("Key" /*RemoteObject*/ ,_key);
|
||||
BA.debugLineNum = 108;BA.debugLine="Return t1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return _t1;
|
||||
BA.debugLineNum = 109;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _get(RemoteObject __ref,RemoteObject _key) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Get (b4xcache) ","b4xcache",37,__ref.getField(false, "ba"),__ref,24);
|
||||
if (RapidSub.canDelegate("get")) { return __ref.runUserSub(false, "b4xcache","get", __ref, _key);}
|
||||
RemoteObject _ci = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xcache._b4xcacheitem");
|
||||
Debug.locals.put("Key", _key);
|
||||
BA.debugLineNum = 24;BA.debugLine="Public Sub Get (Key As String) As Object";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 25;BA.debugLine="Dim ci As B4XCacheItem = Data.Get(Key)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_ci = (__ref.getField(false,"_data" /*RemoteObject*/ ).runClassMethod (reparto_mazapa.keymon.lat.b4xorderedmap.class, "_get" /*RemoteObject*/ ,(Object)((_key))));Debug.locals.put("ci", _ci);Debug.locals.put("ci", _ci);
|
||||
BA.debugLineNum = 26;BA.debugLine="If ci <> Null Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("N",_ci)) {
|
||||
BA.debugLineNum = 27;BA.debugLine="If ci.Eternal = False Then ci.LastAccessedTime =";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",_ci.getField(true,"Eternal" /*RemoteObject*/ ),b4xcache.__c.getField(true,"False"))) {
|
||||
_ci.setField ("LastAccessedTime" /*RemoteObject*/ ,b4xcache.__c.getField(false,"DateTime").runMethod(true,"getNow"));};
|
||||
BA.debugLineNum = 28;BA.debugLine="Return ci.Value";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return _ci.getField(false,"Value" /*RemoteObject*/ );
|
||||
};
|
||||
BA.debugLineNum = 30;BA.debugLine="Return Null";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return b4xcache.__c.getField(false,"Null");
|
||||
BA.debugLineNum = 31;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getmaxsize(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("getMaxSize (b4xcache) ","b4xcache",37,__ref.getField(false, "ba"),__ref,19);
|
||||
if (RapidSub.canDelegate("getmaxsize")) { return __ref.runUserSub(false, "b4xcache","getmaxsize", __ref);}
|
||||
BA.debugLineNum = 19;BA.debugLine="Public Sub getMaxSize As Int";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 20;BA.debugLine="Return mMaxSize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(true,"_mmaxsize" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 21;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(0);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _initialize(RemoteObject __ref,RemoteObject _ba) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Initialize (b4xcache) ","b4xcache",37,__ref.getField(false, "ba"),__ref,9);
|
||||
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "b4xcache","initialize", __ref, _ba);}
|
||||
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
|
||||
Debug.locals.put("ba", _ba);
|
||||
BA.debugLineNum = 9;BA.debugLine="Public Sub Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 10;BA.debugLine="Data.Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_data" /*RemoteObject*/ ).runClassMethod (reparto_mazapa.keymon.lat.b4xorderedmap.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"));
|
||||
BA.debugLineNum = 11;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _iseternal(RemoteObject __ref,RemoteObject _key) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("IsEternal (b4xcache) ","b4xcache",37,__ref.getField(false, "ba"),__ref,60);
|
||||
if (RapidSub.canDelegate("iseternal")) { return __ref.runUserSub(false, "b4xcache","iseternal", __ref, _key);}
|
||||
RemoteObject _ci = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xcache._b4xcacheitem");
|
||||
Debug.locals.put("Key", _key);
|
||||
BA.debugLineNum = 60;BA.debugLine="Private Sub IsEternal(Key As String) As Boolean";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 61;BA.debugLine="Dim ci As B4XCacheItem = Data.Get(Key)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_ci = (__ref.getField(false,"_data" /*RemoteObject*/ ).runClassMethod (reparto_mazapa.keymon.lat.b4xorderedmap.class, "_get" /*RemoteObject*/ ,(Object)((_key))));Debug.locals.put("ci", _ci);Debug.locals.put("ci", _ci);
|
||||
BA.debugLineNum = 62;BA.debugLine="Return IIf(ci = Null, False, ci.Eternal)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return BA.ObjectToBoolean(((RemoteObject.solveBoolean("n",_ci)) ? ((b4xcache.__c.getField(true,"False"))) : ((_ci.getField(true,"Eternal" /*RemoteObject*/ )))));
|
||||
BA.debugLineNum = 63;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(false);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _keys(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Keys (b4xcache) ","b4xcache",37,__ref.getField(false, "ba"),__ref,98);
|
||||
if (RapidSub.canDelegate("keys")) { return __ref.runUserSub(false, "b4xcache","keys", __ref);}
|
||||
BA.debugLineNum = 98;BA.debugLine="Public Sub Keys As List";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 99;BA.debugLine="Return Data.Keys";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(false,"_data" /*RemoteObject*/ ).runClassMethod (reparto_mazapa.keymon.lat.b4xorderedmap.class, "_getkeys" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 100;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _put(RemoteObject __ref,RemoteObject _key,RemoteObject _value) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Put (b4xcache) ","b4xcache",37,__ref.getField(false, "ba"),__ref,35);
|
||||
if (RapidSub.canDelegate("put")) { return __ref.runUserSub(false, "b4xcache","put", __ref, _key, _value);}
|
||||
Debug.locals.put("Key", _key);
|
||||
Debug.locals.put("Value", _value);
|
||||
BA.debugLineNum = 35;BA.debugLine="Public Sub Put (Key As String, Value As Object) As";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 36;BA.debugLine="If IsEternal(Key) Then EternalCounts = EternalCou";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xcache.class, "_iseternal" /*RemoteObject*/ ,(Object)(_key)).<Boolean>get().booleanValue()) {
|
||||
__ref.setField ("_eternalcounts" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_eternalcounts" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "-",1, 1));};
|
||||
BA.debugLineNum = 37;BA.debugLine="Data.Put(Key, CreateB4XCacheItem(Value, Key))";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_data" /*RemoteObject*/ ).runClassMethod (reparto_mazapa.keymon.lat.b4xorderedmap.class, "_put" /*RemoteObject*/ ,(Object)((_key)),(Object)((__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xcache.class, "_createb4xcacheitem" /*RemoteObject*/ ,(Object)(_value),(Object)(_key)))));
|
||||
BA.debugLineNum = 38;BA.debugLine="TrimIfOversize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xcache.class, "_trimifoversize" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 39;BA.debugLine="Return Value";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return _value;
|
||||
BA.debugLineNum = 40;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _puteternal(RemoteObject __ref,RemoteObject _key,RemoteObject _value) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("PutEternal (b4xcache) ","b4xcache",37,__ref.getField(false, "ba"),__ref,44);
|
||||
if (RapidSub.canDelegate("puteternal")) { return __ref.runUserSub(false, "b4xcache","puteternal", __ref, _key, _value);}
|
||||
RemoteObject _ci = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xcache._b4xcacheitem");
|
||||
Debug.locals.put("Key", _key);
|
||||
Debug.locals.put("Value", _value);
|
||||
BA.debugLineNum = 44;BA.debugLine="Public Sub PutEternal (Key As String, Value As Obj";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 45;BA.debugLine="If IsEternal(Key) Then EternalCounts = EternalCou";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xcache.class, "_iseternal" /*RemoteObject*/ ,(Object)(_key)).<Boolean>get().booleanValue()) {
|
||||
__ref.setField ("_eternalcounts" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_eternalcounts" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "-",1, 1));};
|
||||
BA.debugLineNum = 46;BA.debugLine="Dim ci As B4XCacheItem = CreateB4XCacheItem(Value";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_ci = __ref.runClassMethod (reparto_mazapa.keymon.lat.b4xcache.class, "_createb4xcacheitem" /*RemoteObject*/ ,(Object)(_value),(Object)(_key));Debug.locals.put("ci", _ci);Debug.locals.put("ci", _ci);
|
||||
BA.debugLineNum = 47;BA.debugLine="ci.Eternal = True";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_ci.setField ("Eternal" /*RemoteObject*/ ,b4xcache.__c.getField(true,"True"));
|
||||
BA.debugLineNum = 48;BA.debugLine="ci.LastAccessedTime = 9223372036854775807";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_ci.setField ("LastAccessedTime" /*RemoteObject*/ ,BA.numberCast(long.class, 9223372036854775807L));
|
||||
BA.debugLineNum = 49;BA.debugLine="EternalCounts = EternalCounts + 1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_eternalcounts" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_eternalcounts" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "+",1, 1));
|
||||
BA.debugLineNum = 50;BA.debugLine="Data.Put(Key, ci)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_data" /*RemoteObject*/ ).runClassMethod (reparto_mazapa.keymon.lat.b4xorderedmap.class, "_put" /*RemoteObject*/ ,(Object)((_key)),(Object)((_ci)));
|
||||
BA.debugLineNum = 51;BA.debugLine="Return Value";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return _value;
|
||||
BA.debugLineNum = 52;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _remove(RemoteObject __ref,RemoteObject _key) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Remove (b4xcache) ","b4xcache",37,__ref.getField(false, "ba"),__ref,55);
|
||||
if (RapidSub.canDelegate("remove")) { return __ref.runUserSub(false, "b4xcache","remove", __ref, _key);}
|
||||
Debug.locals.put("Key", _key);
|
||||
BA.debugLineNum = 55;BA.debugLine="Public Sub Remove (Key As String)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 56;BA.debugLine="If IsEternal(Key) Then EternalCounts = EternalCou";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xcache.class, "_iseternal" /*RemoteObject*/ ,(Object)(_key)).<Boolean>get().booleanValue()) {
|
||||
__ref.setField ("_eternalcounts" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_eternalcounts" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "-",1, 1));};
|
||||
BA.debugLineNum = 57;BA.debugLine="Data.Remove(Key)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_data" /*RemoteObject*/ ).runClassMethod (reparto_mazapa.keymon.lat.b4xorderedmap.class, "_remove" /*RemoteObject*/ ,(Object)((_key)));
|
||||
BA.debugLineNum = 58;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _removeolditems(RemoteObject __ref,RemoteObject _agems) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("RemoveOldItems (b4xcache) ","b4xcache",37,__ref.getField(false, "ba"),__ref,82);
|
||||
if (RapidSub.canDelegate("removeolditems")) { return __ref.runUserSub(false, "b4xcache","removeolditems", __ref, _agems);}
|
||||
RemoteObject _values = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
|
||||
RemoteObject _level = RemoteObject.createImmutable(0L);
|
||||
RemoteObject _ci = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xcache._b4xcacheitem");
|
||||
Debug.locals.put("AgeMs", _agems);
|
||||
BA.debugLineNum = 82;BA.debugLine="Public Sub RemoveOldItems (AgeMs As Long)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 83;BA.debugLine="Dim values As List = Data.Values";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_values = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
|
||||
_values = __ref.getField(false,"_data" /*RemoteObject*/ ).runClassMethod (reparto_mazapa.keymon.lat.b4xorderedmap.class, "_getvalues" /*RemoteObject*/ );Debug.locals.put("values", _values);Debug.locals.put("values", _values);
|
||||
BA.debugLineNum = 84;BA.debugLine="Dim level As Long = DateTime.Now - AgeMs";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_level = RemoteObject.solve(new RemoteObject[] {b4xcache.__c.getField(false,"DateTime").runMethod(true,"getNow"),_agems}, "-",1, 2);Debug.locals.put("level", _level);Debug.locals.put("level", _level);
|
||||
BA.debugLineNum = 85;BA.debugLine="For Each ci As B4XCacheItem In values";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
{
|
||||
final RemoteObject group3 = _values;
|
||||
final int groupLen3 = group3.runMethod(true,"getSize").<Integer>get()
|
||||
;int index3 = 0;
|
||||
;
|
||||
for (; index3 < groupLen3;index3++){
|
||||
_ci = (group3.runMethod(false,"Get",index3));Debug.locals.put("ci", _ci);
|
||||
Debug.locals.put("ci", _ci);
|
||||
BA.debugLineNum = 86;BA.debugLine="If ci.LastAccessedTime <= level Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("k",_ci.getField(true,"LastAccessedTime" /*RemoteObject*/ ),_level)) {
|
||||
BA.debugLineNum = 87;BA.debugLine="Data.Remove(ci.Key)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_data" /*RemoteObject*/ ).runClassMethod (reparto_mazapa.keymon.lat.b4xorderedmap.class, "_remove" /*RemoteObject*/ ,(Object)((_ci.getField(true,"Key" /*RemoteObject*/ ))));
|
||||
};
|
||||
}
|
||||
}Debug.locals.put("ci", _ci);
|
||||
;
|
||||
BA.debugLineNum = 90;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _setmaxsize(RemoteObject __ref,RemoteObject _s) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("setMaxSize (b4xcache) ","b4xcache",37,__ref.getField(false, "ba"),__ref,14);
|
||||
if (RapidSub.canDelegate("setmaxsize")) { return __ref.runUserSub(false, "b4xcache","setmaxsize", __ref, _s);}
|
||||
Debug.locals.put("s", _s);
|
||||
BA.debugLineNum = 14;BA.debugLine="Public Sub setMaxSize(s As Int)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 15;BA.debugLine="mMaxSize = s";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mmaxsize" /*RemoteObject*/ ,_s);
|
||||
BA.debugLineNum = 16;BA.debugLine="TrimIfOversize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xcache.class, "_trimifoversize" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 17;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _size(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Size (b4xcache) ","b4xcache",37,__ref.getField(false, "ba"),__ref,93);
|
||||
if (RapidSub.canDelegate("size")) { return __ref.runUserSub(false, "b4xcache","size", __ref);}
|
||||
BA.debugLineNum = 93;BA.debugLine="Public Sub Size As Int";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 94;BA.debugLine="Return Data.Size";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(false,"_data" /*RemoteObject*/ ).runClassMethod (reparto_mazapa.keymon.lat.b4xorderedmap.class, "_getsize" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 95;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(0);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _trimifoversize(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("TrimIfOversize (b4xcache) ","b4xcache",37,__ref.getField(false, "ba"),__ref,70);
|
||||
if (RapidSub.canDelegate("trimifoversize")) { return __ref.runUserSub(false, "b4xcache","trimifoversize", __ref);}
|
||||
RemoteObject _values = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
|
||||
RemoteObject _numberofitemstoremove = RemoteObject.createImmutable(0);
|
||||
int _i = 0;
|
||||
BA.debugLineNum = 70;BA.debugLine="Private Sub TrimIfOversize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 71;BA.debugLine="If Data.Size - EternalCounts > mMaxSize Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean(">",RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_data" /*RemoteObject*/ ).runClassMethod (reparto_mazapa.keymon.lat.b4xorderedmap.class, "_getsize" /*RemoteObject*/ ),__ref.getField(true,"_eternalcounts" /*RemoteObject*/ )}, "-",1, 1),BA.numberCast(double.class, __ref.getField(true,"_mmaxsize" /*RemoteObject*/ )))) {
|
||||
BA.debugLineNum = 72;BA.debugLine="Dim values As List = Data.Values";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_values = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
|
||||
_values = __ref.getField(false,"_data" /*RemoteObject*/ ).runClassMethod (reparto_mazapa.keymon.lat.b4xorderedmap.class, "_getvalues" /*RemoteObject*/ );Debug.locals.put("values", _values);Debug.locals.put("values", _values);
|
||||
BA.debugLineNum = 73;BA.debugLine="values.SortType(\"LastAccessedTime\", True)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_values.runVoidMethod ("SortType",(Object)(BA.ObjectToString("LastAccessedTime")),(Object)(b4xcache.__c.getField(true,"True")));
|
||||
BA.debugLineNum = 74;BA.debugLine="Dim NumberOfItemsToRemove As Int = Ceil(mMaxSize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_numberofitemstoremove = BA.numberCast(int.class, b4xcache.__c.runMethod(true,"Ceil",(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_mmaxsize" /*RemoteObject*/ ),__ref.getField(true,"_removethreshold" /*RemoteObject*/ )}, "*",0, 0))));Debug.locals.put("NumberOfItemsToRemove", _numberofitemstoremove);Debug.locals.put("NumberOfItemsToRemove", _numberofitemstoremove);
|
||||
BA.debugLineNum = 75;BA.debugLine="For i = 0 To NumberOfItemsToRemove";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
{
|
||||
final int step5 = 1;
|
||||
final int limit5 = _numberofitemstoremove.<Integer>get().intValue();
|
||||
_i = 0 ;
|
||||
for (;(step5 > 0 && _i <= limit5) || (step5 < 0 && _i >= limit5) ;_i = ((int)(0 + _i + step5)) ) {
|
||||
Debug.locals.put("i", _i);
|
||||
BA.debugLineNum = 76;BA.debugLine="Data.Remove(values.Get(i).As(B4XCacheItem).Key)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_data" /*RemoteObject*/ ).runClassMethod (reparto_mazapa.keymon.lat.b4xorderedmap.class, "_remove" /*RemoteObject*/ ,(Object)((((_values.runMethod(false,"Get",(Object)(BA.numberCast(int.class, _i))))).getField(true,"Key" /*RemoteObject*/ ))));
|
||||
}
|
||||
}Debug.locals.put("i", _i);
|
||||
;
|
||||
};
|
||||
BA.debugLineNum = 79;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
}
|
||||
@@ -1,65 +0,0 @@
|
||||
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import java.io.IOException;
|
||||
import anywheresoftware.b4a.BA;
|
||||
import anywheresoftware.b4a.pc.PCBA;
|
||||
import anywheresoftware.b4a.pc.RDebug;
|
||||
import anywheresoftware.b4a.pc.RemoteObject;
|
||||
import anywheresoftware.b4a.pc.RDebug.IRemote;
|
||||
import anywheresoftware.b4a.pc.Debug;
|
||||
import anywheresoftware.b4a.pc.B4XTypes.B4XClass;
|
||||
import anywheresoftware.b4a.pc.B4XTypes.DeviceClass;
|
||||
|
||||
public class b4xcollections implements IRemote{
|
||||
public static b4xcollections mostCurrent;
|
||||
public static RemoteObject processBA;
|
||||
public static boolean processGlobalsRun;
|
||||
public static RemoteObject myClass;
|
||||
public static RemoteObject remoteMe;
|
||||
public b4xcollections() {
|
||||
mostCurrent = this;
|
||||
}
|
||||
public RemoteObject getRemoteMe() {
|
||||
return remoteMe;
|
||||
}
|
||||
|
||||
public boolean isSingleton() {
|
||||
return true;
|
||||
}
|
||||
private static PCBA pcBA = new PCBA(null, b4xcollections.class);
|
||||
static {
|
||||
mostCurrent = new b4xcollections();
|
||||
remoteMe = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xcollections");
|
||||
anywheresoftware.b4a.pc.RapidSub.moduleToObject.put(new B4XClass("b4xcollections"), "reparto_mazapa.keymon.lat.b4xcollections");
|
||||
RDebug.INSTANCE.eventTargets.put(new DeviceClass("reparto_mazapa.keymon.lat.b4xcollections"), new java.lang.ref.WeakReference<PCBA> (pcBA));
|
||||
}
|
||||
|
||||
public static RemoteObject runMethod(boolean notUsed, String method, Object... args) throws Exception{
|
||||
return (RemoteObject) pcBA.raiseEvent(method.substring(1), args);
|
||||
}
|
||||
public static void runVoidMethod(String method, Object... args) throws Exception{
|
||||
runMethod(false, method, args);
|
||||
}
|
||||
public PCBA create(Object[] args) throws ClassNotFoundException{
|
||||
throw new RuntimeException("CREATE is not supported.");
|
||||
}
|
||||
public static RemoteObject __c = RemoteObject.declareNull("anywheresoftware.b4a.keywords.Common");
|
||||
public static RemoteObject _dateutils = RemoteObject.declareNull("b4a.example.dateutils");
|
||||
public static reparto_mazapa.keymon.lat.main _main = null;
|
||||
public static reparto_mazapa.keymon.lat.appupdater _appupdater = null;
|
||||
public static reparto_mazapa.keymon.lat.tracker _tracker = null;
|
||||
public static reparto_mazapa.keymon.lat.starter _starter = null;
|
||||
public static reparto_mazapa.keymon.lat.subs _subs = null;
|
||||
public static reparto_mazapa.keymon.lat.firebasemessaging _firebasemessaging = null;
|
||||
public static reparto_mazapa.keymon.lat.foto _foto = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_cliente _mapa_cliente = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_rutas _mapa_rutas = null;
|
||||
public static reparto_mazapa.keymon.lat.newinst2 _newinst2 = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xpages _b4xpages = null;
|
||||
public static reparto_mazapa.keymon.lat.httputils2service _httputils2service = null;
|
||||
public static reparto_mazapa.keymon.lat.xuiviewsutils _xuiviewsutils = null;
|
||||
public Object[] GetGlobals() {
|
||||
return new Object[] {"appUpdater",Debug.moduleToString(reparto_mazapa.keymon.lat.appupdater.class),"B4XPages",Debug.moduleToString(reparto_mazapa.keymon.lat.b4xpages.class),"DateUtils",b4xcollections.mostCurrent._dateutils,"FirebaseMessaging",Debug.moduleToString(reparto_mazapa.keymon.lat.firebasemessaging.class),"foto",Debug.moduleToString(reparto_mazapa.keymon.lat.foto.class),"HttpUtils2Service",Debug.moduleToString(reparto_mazapa.keymon.lat.httputils2service.class),"Main",Debug.moduleToString(reparto_mazapa.keymon.lat.main.class),"MAPA_CLIENTE",Debug.moduleToString(reparto_mazapa.keymon.lat.mapa_cliente.class),"MAPA_RUTAS",Debug.moduleToString(reparto_mazapa.keymon.lat.mapa_rutas.class),"newinst2",Debug.moduleToString(reparto_mazapa.keymon.lat.newinst2.class),"Starter",Debug.moduleToString(reparto_mazapa.keymon.lat.starter.class),"Subs",Debug.moduleToString(reparto_mazapa.keymon.lat.subs.class),"Tracker",Debug.moduleToString(reparto_mazapa.keymon.lat.tracker.class),"XUIViewsUtils",Debug.moduleToString(reparto_mazapa.keymon.lat.xuiviewsutils.class)};
|
||||
}
|
||||
}
|
||||
@@ -1,179 +0,0 @@
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.BA;
|
||||
import anywheresoftware.b4a.pc.*;
|
||||
|
||||
public class b4xcollections_subs_0 {
|
||||
|
||||
|
||||
public static RemoteObject _createbitset(RemoteObject _ba,RemoteObject _size) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("CreateBitSet (b4xcollections) ","b4xcollections",38,_ba,b4xcollections.mostCurrent,52);
|
||||
if (RapidSub.canDelegate("createbitset")) { return reparto_mazapa.keymon.lat.b4xcollections.remoteMe.runUserSub(false, "b4xcollections","createbitset", _ba, _size);}
|
||||
RemoteObject _s = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xbitset");
|
||||
;
|
||||
Debug.locals.put("Size", _size);
|
||||
BA.debugLineNum = 52;BA.debugLine="Public Sub CreateBitSet (Size As Int) As B4XBitSet";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 53;BA.debugLine="Dim s As B4XBitSet";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_s = RemoteObject.createNew ("reparto_mazapa.keymon.lat.b4xbitset");Debug.locals.put("s", _s);
|
||||
BA.debugLineNum = 54;BA.debugLine="s.Initialize(Size)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_s.runClassMethod (reparto_mazapa.keymon.lat.b4xbitset.class, "_initialize" /*RemoteObject*/ ,BA.rdebugUtils.runMethod(false, "processBAFromBA", _ba),(Object)(_size));
|
||||
BA.debugLineNum = 55;BA.debugLine="Return s";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return _s;
|
||||
BA.debugLineNum = 56;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _createorderedmap(RemoteObject _ba) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("CreateOrderedMap (b4xcollections) ","b4xcollections",38,_ba,b4xcollections.mostCurrent,30);
|
||||
if (RapidSub.canDelegate("createorderedmap")) { return reparto_mazapa.keymon.lat.b4xcollections.remoteMe.runUserSub(false, "b4xcollections","createorderedmap", _ba);}
|
||||
;
|
||||
BA.debugLineNum = 30;BA.debugLine="Public Sub CreateOrderedMap As B4XOrderedMap";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 31;BA.debugLine="Return CreateOrderedMap2(Null, Null)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return _createorderedmap2(_ba,RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.List"), b4xcollections.mostCurrent.__c.getField(false,"Null")),RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.List"), b4xcollections.mostCurrent.__c.getField(false,"Null")));
|
||||
BA.debugLineNum = 32;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _createorderedmap2(RemoteObject _ba,RemoteObject _keys,RemoteObject _values) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("CreateOrderedMap2 (b4xcollections) ","b4xcollections",38,_ba,b4xcollections.mostCurrent,38);
|
||||
if (RapidSub.canDelegate("createorderedmap2")) { return reparto_mazapa.keymon.lat.b4xcollections.remoteMe.runUserSub(false, "b4xcollections","createorderedmap2", _ba, _keys, _values);}
|
||||
RemoteObject _m = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xorderedmap");
|
||||
int _i = 0;
|
||||
;
|
||||
Debug.locals.put("Keys", _keys);
|
||||
Debug.locals.put("Values", _values);
|
||||
BA.debugLineNum = 38;BA.debugLine="Public Sub CreateOrderedMap2 (Keys As List, Values";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 39;BA.debugLine="Dim m As B4XOrderedMap";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_m = RemoteObject.createNew ("reparto_mazapa.keymon.lat.b4xorderedmap");Debug.locals.put("m", _m);
|
||||
BA.debugLineNum = 40;BA.debugLine="m.Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_m.runClassMethod (reparto_mazapa.keymon.lat.b4xorderedmap.class, "_initialize" /*RemoteObject*/ ,BA.rdebugUtils.runMethod(false, "processBAFromBA", _ba));
|
||||
BA.debugLineNum = 41;BA.debugLine="If Keys <> Null And Values <> Null And Keys.IsIni";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("N",_keys) && RemoteObject.solveBoolean("N",_values) && RemoteObject.solveBoolean(".",_keys.runMethod(true,"IsInitialized")) && RemoteObject.solveBoolean(".",_values.runMethod(true,"IsInitialized"))) {
|
||||
BA.debugLineNum = 42;BA.debugLine="For i = 0 To Keys.Size - 1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
{
|
||||
final int step4 = 1;
|
||||
final int limit4 = RemoteObject.solve(new RemoteObject[] {_keys.runMethod(true,"getSize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
|
||||
_i = 0 ;
|
||||
for (;(step4 > 0 && _i <= limit4) || (step4 < 0 && _i >= limit4) ;_i = ((int)(0 + _i + step4)) ) {
|
||||
Debug.locals.put("i", _i);
|
||||
BA.debugLineNum = 43;BA.debugLine="m.Put(Keys.Get(i), Values.Get(i))";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_m.runClassMethod (reparto_mazapa.keymon.lat.b4xorderedmap.class, "_put" /*RemoteObject*/ ,(Object)(_keys.runMethod(false,"Get",(Object)(BA.numberCast(int.class, _i)))),(Object)(_values.runMethod(false,"Get",(Object)(BA.numberCast(int.class, _i)))));
|
||||
}
|
||||
}Debug.locals.put("i", _i);
|
||||
;
|
||||
};
|
||||
BA.debugLineNum = 46;BA.debugLine="Return m";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return _m;
|
||||
BA.debugLineNum = 47;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _createset(RemoteObject _ba) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("CreateSet (b4xcollections) ","b4xcollections",38,_ba,b4xcollections.mostCurrent,9);
|
||||
if (RapidSub.canDelegate("createset")) { return reparto_mazapa.keymon.lat.b4xcollections.remoteMe.runUserSub(false, "b4xcollections","createset", _ba);}
|
||||
;
|
||||
BA.debugLineNum = 9;BA.debugLine="Public Sub CreateSet As B4XSet";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 10;BA.debugLine="Return CreateSet2(Null)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return _createset2(_ba,RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.collections.List"), b4xcollections.mostCurrent.__c.getField(false,"Null")));
|
||||
BA.debugLineNum = 11;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _createset2(RemoteObject _ba,RemoteObject _values) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("CreateSet2 (b4xcollections) ","b4xcollections",38,_ba,b4xcollections.mostCurrent,16);
|
||||
if (RapidSub.canDelegate("createset2")) { return reparto_mazapa.keymon.lat.b4xcollections.remoteMe.runUserSub(false, "b4xcollections","createset2", _ba, _values);}
|
||||
RemoteObject _s = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xset");
|
||||
RemoteObject _v = RemoteObject.declareNull("Object");
|
||||
;
|
||||
Debug.locals.put("Values", _values);
|
||||
BA.debugLineNum = 16;BA.debugLine="Public Sub CreateSet2 (Values As List) As B4XSet";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 17;BA.debugLine="Dim s As B4XSet";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_s = RemoteObject.createNew ("reparto_mazapa.keymon.lat.b4xset");Debug.locals.put("s", _s);
|
||||
BA.debugLineNum = 18;BA.debugLine="s.Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_s.runClassMethod (reparto_mazapa.keymon.lat.b4xset.class, "_initialize" /*RemoteObject*/ ,BA.rdebugUtils.runMethod(false, "processBAFromBA", _ba));
|
||||
BA.debugLineNum = 19;BA.debugLine="If Values <> Null And Values.IsInitialized Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("N",_values) && RemoteObject.solveBoolean(".",_values.runMethod(true,"IsInitialized"))) {
|
||||
BA.debugLineNum = 20;BA.debugLine="For Each v As Object In Values";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
{
|
||||
final RemoteObject group4 = _values;
|
||||
final int groupLen4 = group4.runMethod(true,"getSize").<Integer>get()
|
||||
;int index4 = 0;
|
||||
;
|
||||
for (; index4 < groupLen4;index4++){
|
||||
_v = group4.runMethod(false,"Get",index4);Debug.locals.put("v", _v);
|
||||
Debug.locals.put("v", _v);
|
||||
BA.debugLineNum = 21;BA.debugLine="s.Add(v)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_s.runClassMethod (reparto_mazapa.keymon.lat.b4xset.class, "_add" /*RemoteObject*/ ,(Object)(_v));
|
||||
}
|
||||
}Debug.locals.put("v", _v);
|
||||
;
|
||||
};
|
||||
BA.debugLineNum = 24;BA.debugLine="Return s";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return _s;
|
||||
BA.debugLineNum = 25;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _process_globals() throws Exception{
|
||||
//BA.debugLineNum = 2;BA.debugLine="Sub Process_Globals";
|
||||
//BA.debugLineNum = 4;BA.debugLine="End Sub";
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
}
|
||||
@@ -1,49 +0,0 @@
|
||||
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.pc.PCBA;
|
||||
import anywheresoftware.b4a.pc.RemoteObject;
|
||||
|
||||
public class b4xcolortemplate {
|
||||
public static RemoteObject myClass;
|
||||
public b4xcolortemplate() {
|
||||
}
|
||||
public static PCBA staticBA = new PCBA(null, b4xcolortemplate.class);
|
||||
|
||||
public static RemoteObject __c = RemoteObject.declareNull("anywheresoftware.b4a.keywords.Common");
|
||||
public static RemoteObject _mbase = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _xui = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");
|
||||
public static RemoteObject _selectedalpha = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _bccolors = RemoteObject.declareNull("b4a.example.bitmapcreator");
|
||||
public static RemoteObject _selectedh = RemoteObject.createImmutable(0f);
|
||||
public static RemoteObject _selecteds = RemoteObject.createImmutable(0f);
|
||||
public static RemoteObject _selectedv = RemoteObject.createImmutable(0f);
|
||||
public static RemoteObject _devicescale = RemoteObject.createImmutable(0f);
|
||||
public static RemoteObject _colorscale = RemoteObject.createImmutable(0f);
|
||||
public static RemoteObject _tempbc = RemoteObject.declareNull("b4a.example.bitmapcreator");
|
||||
public static RemoteObject _dont_change = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _huebar = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xcolortemplate._colorpickerpart");
|
||||
public static RemoteObject _colorpicker = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xcolortemplate._colorpickerpart");
|
||||
public static RemoteObject _alphabar = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xcolortemplate._colorpickerpart");
|
||||
public static RemoteObject _borderscolor = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _xdialog = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xdialog");
|
||||
public static RemoteObject _initialcolor = null;
|
||||
public static RemoteObject _dateutils = RemoteObject.declareNull("b4a.example.dateutils");
|
||||
public static reparto_mazapa.keymon.lat.main _main = null;
|
||||
public static reparto_mazapa.keymon.lat.appupdater _appupdater = null;
|
||||
public static reparto_mazapa.keymon.lat.tracker _tracker = null;
|
||||
public static reparto_mazapa.keymon.lat.starter _starter = null;
|
||||
public static reparto_mazapa.keymon.lat.subs _subs = null;
|
||||
public static reparto_mazapa.keymon.lat.firebasemessaging _firebasemessaging = null;
|
||||
public static reparto_mazapa.keymon.lat.foto _foto = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_cliente _mapa_cliente = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_rutas _mapa_rutas = null;
|
||||
public static reparto_mazapa.keymon.lat.newinst2 _newinst2 = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xpages _b4xpages = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xcollections _b4xcollections = null;
|
||||
public static reparto_mazapa.keymon.lat.httputils2service _httputils2service = null;
|
||||
public static reparto_mazapa.keymon.lat.xuiviewsutils _xuiviewsutils = null;
|
||||
public static Object[] GetGlobals(RemoteObject _ref) throws Exception {
|
||||
return new Object[] {"AlphaBar",_ref.getField(false, "_alphabar"),"bcColors",_ref.getField(false, "_bccolors"),"BordersColor",_ref.getField(false, "_borderscolor"),"ColorPicker",_ref.getField(false, "_colorpicker"),"ColorScale",_ref.getField(false, "_colorscale"),"DateUtils",_ref.getField(false, "_dateutils"),"DeviceScale",_ref.getField(false, "_devicescale"),"DONT_CHANGE",_ref.getField(false, "_dont_change"),"HueBar",_ref.getField(false, "_huebar"),"InitialColor",_ref.getField(false, "_initialcolor"),"mBase",_ref.getField(false, "_mbase"),"SelectedAlpha",_ref.getField(false, "_selectedalpha"),"selectedH",_ref.getField(false, "_selectedh"),"selectedS",_ref.getField(false, "_selecteds"),"selectedV",_ref.getField(false, "_selectedv"),"tempBC",_ref.getField(false, "_tempbc"),"xDialog",_ref.getField(false, "_xdialog"),"xui",_ref.getField(false, "_xui")};
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,42 +0,0 @@
|
||||
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.pc.PCBA;
|
||||
import anywheresoftware.b4a.pc.RemoteObject;
|
||||
|
||||
public class b4xcombobox {
|
||||
public static RemoteObject myClass;
|
||||
public b4xcombobox() {
|
||||
}
|
||||
public static PCBA staticBA = new PCBA(null, b4xcombobox.class);
|
||||
|
||||
public static RemoteObject __c = RemoteObject.declareNull("anywheresoftware.b4a.keywords.Common");
|
||||
public static RemoteObject _meventname = RemoteObject.createImmutable("");
|
||||
public static RemoteObject _mcallback = RemoteObject.declareNull("Object");
|
||||
public static RemoteObject _mbase = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _xui = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");
|
||||
public static RemoteObject _lastselectedindex = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _cmbbox = RemoteObject.declareNull("anywheresoftware.b4a.objects.SpinnerWrapper");
|
||||
public static RemoteObject _delaybeforechangeevent = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _delayindex = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _tag = RemoteObject.declareNull("Object");
|
||||
public static RemoteObject _b4icancelbutton = RemoteObject.createImmutable("");
|
||||
public static RemoteObject _dateutils = RemoteObject.declareNull("b4a.example.dateutils");
|
||||
public static reparto_mazapa.keymon.lat.main _main = null;
|
||||
public static reparto_mazapa.keymon.lat.appupdater _appupdater = null;
|
||||
public static reparto_mazapa.keymon.lat.tracker _tracker = null;
|
||||
public static reparto_mazapa.keymon.lat.starter _starter = null;
|
||||
public static reparto_mazapa.keymon.lat.subs _subs = null;
|
||||
public static reparto_mazapa.keymon.lat.firebasemessaging _firebasemessaging = null;
|
||||
public static reparto_mazapa.keymon.lat.foto _foto = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_cliente _mapa_cliente = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_rutas _mapa_rutas = null;
|
||||
public static reparto_mazapa.keymon.lat.newinst2 _newinst2 = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xpages _b4xpages = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xcollections _b4xcollections = null;
|
||||
public static reparto_mazapa.keymon.lat.httputils2service _httputils2service = null;
|
||||
public static reparto_mazapa.keymon.lat.xuiviewsutils _xuiviewsutils = null;
|
||||
public static Object[] GetGlobals(RemoteObject _ref) throws Exception {
|
||||
return new Object[] {"B4iCancelButton",_ref.getField(false, "_b4icancelbutton"),"cmbBox",_ref.getField(false, "_cmbbox"),"DateUtils",_ref.getField(false, "_dateutils"),"DelayBeforeChangeEvent",_ref.getField(false, "_delaybeforechangeevent"),"DelayIndex",_ref.getField(false, "_delayindex"),"LastSelectedIndex",_ref.getField(false, "_lastselectedindex"),"mBase",_ref.getField(false, "_mbase"),"mCallBack",_ref.getField(false, "_mcallback"),"mEventName",_ref.getField(false, "_meventname"),"Tag",_ref.getField(false, "_tag"),"xui",_ref.getField(false, "_xui")};
|
||||
}
|
||||
}
|
||||
@@ -1,465 +0,0 @@
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.BA;
|
||||
import anywheresoftware.b4a.pc.*;
|
||||
|
||||
public class b4xcombobox_subs_0 {
|
||||
|
||||
|
||||
public static RemoteObject _base_resize(RemoteObject __ref,RemoteObject _width,RemoteObject _height) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Base_Resize (b4xcombobox) ","b4xcombobox",51,__ref.getField(false, "ba"),__ref,55);
|
||||
if (RapidSub.canDelegate("base_resize")) { return __ref.runUserSub(false, "b4xcombobox","base_resize", __ref, _width, _height);}
|
||||
Debug.locals.put("Width", _width);
|
||||
Debug.locals.put("Height", _height);
|
||||
BA.debugLineNum = 55;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 56;BA.debugLine="mBase.GetView(0).SetLayoutAnimated(0, 0, 0, Width";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(false,"GetView",(Object)(BA.numberCast(int.class, 0))).runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, _width)),(Object)(BA.numberCast(int.class, _height)));
|
||||
BA.debugLineNum = 57;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _class_globals(RemoteObject __ref) throws Exception{
|
||||
//BA.debugLineNum = 2;BA.debugLine="Sub Class_Globals";
|
||||
//BA.debugLineNum = 3;BA.debugLine="Private mEventName As String 'ignore";
|
||||
b4xcombobox._meventname = RemoteObject.createImmutable("");__ref.setField("_meventname",b4xcombobox._meventname);
|
||||
//BA.debugLineNum = 4;BA.debugLine="Private mCallBack As Object 'ignore";
|
||||
b4xcombobox._mcallback = RemoteObject.createNew ("Object");__ref.setField("_mcallback",b4xcombobox._mcallback);
|
||||
//BA.debugLineNum = 5;BA.debugLine="Public mBase As B4XView";
|
||||
b4xcombobox._mbase = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_mbase",b4xcombobox._mbase);
|
||||
//BA.debugLineNum = 6;BA.debugLine="Private xui As XUI 'ignore";
|
||||
b4xcombobox._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");__ref.setField("_xui",b4xcombobox._xui);
|
||||
//BA.debugLineNum = 7;BA.debugLine="Private LastSelectedIndex As Int";
|
||||
b4xcombobox._lastselectedindex = RemoteObject.createImmutable(0);__ref.setField("_lastselectedindex",b4xcombobox._lastselectedindex);
|
||||
//BA.debugLineNum = 11;BA.debugLine="Public cmbBox As Spinner";
|
||||
b4xcombobox._cmbbox = RemoteObject.createNew ("anywheresoftware.b4a.objects.SpinnerWrapper");__ref.setField("_cmbbox",b4xcombobox._cmbbox);
|
||||
//BA.debugLineNum = 17;BA.debugLine="Public DelayBeforeChangeEvent As Int";
|
||||
b4xcombobox._delaybeforechangeevent = RemoteObject.createImmutable(0);__ref.setField("_delaybeforechangeevent",b4xcombobox._delaybeforechangeevent);
|
||||
//BA.debugLineNum = 19;BA.debugLine="Private DelayIndex As Int";
|
||||
b4xcombobox._delayindex = RemoteObject.createImmutable(0);__ref.setField("_delayindex",b4xcombobox._delayindex);
|
||||
//BA.debugLineNum = 20;BA.debugLine="Public Tag As Object";
|
||||
b4xcombobox._tag = RemoteObject.createNew ("Object");__ref.setField("_tag",b4xcombobox._tag);
|
||||
//BA.debugLineNum = 21;BA.debugLine="Public B4iCancelButton As String = \"Cancel\"";
|
||||
b4xcombobox._b4icancelbutton = BA.ObjectToString("Cancel");__ref.setField("_b4icancelbutton",b4xcombobox._b4icancelbutton);
|
||||
//BA.debugLineNum = 22;BA.debugLine="End Sub";
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
public static RemoteObject _cmbbox_itemclick(RemoteObject __ref,RemoteObject _position,RemoteObject _value) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("CmbBox_ItemClick (b4xcombobox) ","b4xcombobox",51,__ref.getField(false, "ba"),__ref,157);
|
||||
if (RapidSub.canDelegate("cmbbox_itemclick")) { return __ref.runUserSub(false, "b4xcombobox","cmbbox_itemclick", __ref, _position, _value);}
|
||||
Debug.locals.put("Position", _position);
|
||||
Debug.locals.put("Value", _value);
|
||||
BA.debugLineNum = 157;BA.debugLine="Private Sub CmbBox_ItemClick (Position As Int, Val";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 158;BA.debugLine="RaiseEvent";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xcombobox.class, "_raiseevent" /*void*/ );
|
||||
BA.debugLineNum = 159;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _designercreateview(RemoteObject __ref,RemoteObject _base,RemoteObject _lbl,RemoteObject _props) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("DesignerCreateView (b4xcombobox) ","b4xcombobox",51,__ref.getField(false, "ba"),__ref,32);
|
||||
if (RapidSub.canDelegate("designercreateview")) { return __ref.runUserSub(false, "b4xcombobox","designercreateview", __ref, _base, _lbl, _props);}
|
||||
RemoteObject _xlbl = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
Debug.locals.put("Base", _base);
|
||||
Debug.locals.put("Lbl", _lbl);
|
||||
Debug.locals.put("Props", _props);
|
||||
BA.debugLineNum = 32;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 33;BA.debugLine="mBase = Base";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).setObject (_base);
|
||||
BA.debugLineNum = 34;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_tag" /*RemoteObject*/ ,__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(false,"getTag"));
|
||||
BA.debugLineNum = 34;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(false,"setTag",__ref);
|
||||
BA.debugLineNum = 35;BA.debugLine="Dim xlbl As B4XView = Lbl";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_xlbl = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
_xlbl = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), _lbl.getObject());Debug.locals.put("xlbl", _xlbl);Debug.locals.put("xlbl", _xlbl);
|
||||
BA.debugLineNum = 42;BA.debugLine="cmbBox.Initialize(\"cmbBox\")";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cmbbox" /*RemoteObject*/ ).runVoidMethod ("Initialize",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("cmbBox")));
|
||||
BA.debugLineNum = 43;BA.debugLine="cmbBox.TextSize = xlbl.TextSize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cmbbox" /*RemoteObject*/ ).runMethod(true,"setTextSize",_xlbl.runMethod(true,"getTextSize"));
|
||||
BA.debugLineNum = 44;BA.debugLine="mBase.AddView(cmbBox, 0, 0, mBase.Width, mBase.He";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runVoidMethod ("AddView",(Object)((__ref.getField(false,"_cmbbox" /*RemoteObject*/ ).getObject())),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getWidth")),(Object)(__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getHeight")));
|
||||
BA.debugLineNum = 53;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getitem(RemoteObject __ref,RemoteObject _index) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("GetItem (b4xcombobox) ","b4xcombobox",51,__ref.getField(false, "ba"),__ref,127);
|
||||
if (RapidSub.canDelegate("getitem")) { return __ref.runUserSub(false, "b4xcombobox","getitem", __ref, _index);}
|
||||
Debug.locals.put("Index", _index);
|
||||
BA.debugLineNum = 127;BA.debugLine="Public Sub GetItem(Index As Int) As String";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 131;BA.debugLine="Return cmbBox.GetItem(Index)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(false,"_cmbbox" /*RemoteObject*/ ).runMethod(true,"GetItem",(Object)(_index));
|
||||
BA.debugLineNum = 135;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getselectedindex(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("getSelectedIndex (b4xcombobox) ","b4xcombobox",51,__ref.getField(false, "ba"),__ref,98);
|
||||
if (RapidSub.canDelegate("getselectedindex")) { return __ref.runUserSub(false, "b4xcombobox","getselectedindex", __ref);}
|
||||
BA.debugLineNum = 98;BA.debugLine="Public Sub getSelectedIndex As Int";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 100;BA.debugLine="Return cmbBox.SelectedIndex";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(false,"_cmbbox" /*RemoteObject*/ ).runMethod(true,"getSelectedIndex");
|
||||
BA.debugLineNum = 104;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(0);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getselecteditem(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("getSelectedItem (b4xcombobox) ","b4xcombobox",51,__ref.getField(false, "ba"),__ref,121);
|
||||
if (RapidSub.canDelegate("getselecteditem")) { return __ref.runUserSub(false, "b4xcombobox","getselecteditem", __ref);}
|
||||
RemoteObject _i = RemoteObject.createImmutable(0);
|
||||
BA.debugLineNum = 121;BA.debugLine="Public Sub getSelectedItem As String";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 122;BA.debugLine="Dim i As Int = getSelectedIndex";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_i = __ref.runClassMethod (reparto_mazapa.keymon.lat.b4xcombobox.class, "_getselectedindex" /*RemoteObject*/ );Debug.locals.put("i", _i);Debug.locals.put("i", _i);
|
||||
BA.debugLineNum = 123;BA.debugLine="If i = -1 Then Return \"\"";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",_i,BA.numberCast(double.class, -(double) (0 + 1)))) {
|
||||
if (true) return BA.ObjectToString("");};
|
||||
BA.debugLineNum = 124;BA.debugLine="Return GetItem(i)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.runClassMethod (reparto_mazapa.keymon.lat.b4xcombobox.class, "_getitem" /*RemoteObject*/ ,(Object)(_i));
|
||||
BA.debugLineNum = 125;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getsize(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("getSize (b4xcombobox) ","b4xcombobox",51,__ref.getField(false, "ba"),__ref,76);
|
||||
if (RapidSub.canDelegate("getsize")) { return __ref.runUserSub(false, "b4xcombobox","getsize", __ref);}
|
||||
BA.debugLineNum = 76;BA.debugLine="Public Sub getSize As Int";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 80;BA.debugLine="Return cmbBox.Size";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(false,"_cmbbox" /*RemoteObject*/ ).runMethod(true,"getSize");
|
||||
BA.debugLineNum = 84;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(0);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _indexof(RemoteObject __ref,RemoteObject _item) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("IndexOf (b4xcombobox) ","b4xcombobox",51,__ref.getField(false, "ba"),__ref,87);
|
||||
if (RapidSub.canDelegate("indexof")) { return __ref.runUserSub(false, "b4xcombobox","indexof", __ref, _item);}
|
||||
Debug.locals.put("Item", _item);
|
||||
BA.debugLineNum = 87;BA.debugLine="Public Sub IndexOf(Item As String) As Int";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 91;BA.debugLine="Return cmbBox.IndexOf(Item)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(false,"_cmbbox" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)(_item));
|
||||
BA.debugLineNum = 95;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(0);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _initialize(RemoteObject __ref,RemoteObject _ba,RemoteObject _callback,RemoteObject _eventname) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Initialize (b4xcombobox) ","b4xcombobox",51,__ref.getField(false, "ba"),__ref,24);
|
||||
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "b4xcombobox","initialize", __ref, _ba, _callback, _eventname);}
|
||||
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
|
||||
Debug.locals.put("ba", _ba);
|
||||
Debug.locals.put("Callback", _callback);
|
||||
Debug.locals.put("EventName", _eventname);
|
||||
BA.debugLineNum = 24;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 25;BA.debugLine="mEventName = EventName";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_meventname" /*RemoteObject*/ ,_eventname);
|
||||
BA.debugLineNum = 26;BA.debugLine="mCallBack = Callback";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mcallback" /*RemoteObject*/ ,_callback);
|
||||
BA.debugLineNum = 27;BA.debugLine="LastSelectedIndex = -1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_lastselectedindex" /*RemoteObject*/ ,BA.numberCast(int.class, -(double) (0 + 1)));
|
||||
BA.debugLineNum = 28;BA.debugLine="If xui.IsB4J Then DelayBeforeChangeEvent = 500";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (__ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(true,"getIsB4J").<Boolean>get().booleanValue()) {
|
||||
__ref.setField ("_delaybeforechangeevent" /*RemoteObject*/ ,BA.numberCast(int.class, 500));};
|
||||
BA.debugLineNum = 29;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static void _raiseevent(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("RaiseEvent (b4xcombobox) ","b4xcombobox",51,__ref.getField(false, "ba"),__ref,137);
|
||||
if (RapidSub.canDelegate("raiseevent")) { __ref.runUserSub(false, "b4xcombobox","raiseevent", __ref); return;}
|
||||
ResumableSub_RaiseEvent rsub = new ResumableSub_RaiseEvent(null,__ref);
|
||||
rsub.resume(null, null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static class ResumableSub_RaiseEvent extends BA.ResumableSub {
|
||||
public ResumableSub_RaiseEvent(reparto_mazapa.keymon.lat.b4xcombobox parent,RemoteObject __ref) {
|
||||
this.parent = parent;
|
||||
this.__ref = __ref;
|
||||
}
|
||||
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
|
||||
RemoteObject __ref;
|
||||
reparto_mazapa.keymon.lat.b4xcombobox parent;
|
||||
RemoteObject _index = RemoteObject.createImmutable(0);
|
||||
RemoteObject _myindex = RemoteObject.createImmutable(0);
|
||||
|
||||
@Override
|
||||
public void resume(BA ba, RemoteObject result) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("RaiseEvent (b4xcombobox) ","b4xcombobox",51,__ref.getField(false, "ba"),__ref,137);
|
||||
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;
|
||||
|
||||
while (true) {
|
||||
switch (state) {
|
||||
case -1:
|
||||
return;
|
||||
|
||||
case 0:
|
||||
//C
|
||||
this.state = 1;
|
||||
Debug.locals.put("_ref", __ref);
|
||||
BA.debugLineNum = 138;BA.debugLine="Dim index As Int = getSelectedIndex";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_index = __ref.runClassMethod (reparto_mazapa.keymon.lat.b4xcombobox.class, "_getselectedindex" /*RemoteObject*/ );Debug.locals.put("index", _index);Debug.locals.put("index", _index);
|
||||
BA.debugLineNum = 139;BA.debugLine="If LastSelectedIndex = index Then Return";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) break;
|
||||
|
||||
case 1:
|
||||
//if
|
||||
this.state = 6;
|
||||
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_lastselectedindex" /*RemoteObject*/ ),BA.numberCast(double.class, _index))) {
|
||||
this.state = 3;
|
||||
;}if (true) break;
|
||||
|
||||
case 3:
|
||||
//C
|
||||
this.state = 6;
|
||||
if (true) return ;
|
||||
if (true) break;
|
||||
|
||||
case 6:
|
||||
//C
|
||||
this.state = 7;
|
||||
;
|
||||
BA.debugLineNum = 140;BA.debugLine="If DelayBeforeChangeEvent > 0 Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) break;
|
||||
|
||||
case 7:
|
||||
//if
|
||||
this.state = 16;
|
||||
if (RemoteObject.solveBoolean(">",__ref.getField(true,"_delaybeforechangeevent" /*RemoteObject*/ ),BA.numberCast(double.class, 0))) {
|
||||
this.state = 9;
|
||||
}if (true) break;
|
||||
|
||||
case 9:
|
||||
//C
|
||||
this.state = 10;
|
||||
BA.debugLineNum = 141;BA.debugLine="DelayIndex = DelayIndex + 1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_delayindex" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_delayindex" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "+",1, 1));
|
||||
BA.debugLineNum = 142;BA.debugLine="Dim MyIndex As Int = DelayIndex";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_myindex = __ref.getField(true,"_delayindex" /*RemoteObject*/ );Debug.locals.put("MyIndex", _myindex);Debug.locals.put("MyIndex", _myindex);
|
||||
BA.debugLineNum = 143;BA.debugLine="Sleep(DelayBeforeChangeEvent)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "b4xcombobox", "raiseevent"),__ref.getField(true,"_delaybeforechangeevent" /*RemoteObject*/ ));
|
||||
this.state = 21;
|
||||
return;
|
||||
case 21:
|
||||
//C
|
||||
this.state = 10;
|
||||
;
|
||||
BA.debugLineNum = 144;BA.debugLine="If MyIndex <> DelayIndex Then Return";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) break;
|
||||
|
||||
case 10:
|
||||
//if
|
||||
this.state = 15;
|
||||
if (RemoteObject.solveBoolean("!",_myindex,BA.numberCast(double.class, __ref.getField(true,"_delayindex" /*RemoteObject*/ )))) {
|
||||
this.state = 12;
|
||||
;}if (true) break;
|
||||
|
||||
case 12:
|
||||
//C
|
||||
this.state = 15;
|
||||
if (true) return ;
|
||||
if (true) break;
|
||||
|
||||
case 15:
|
||||
//C
|
||||
this.state = 16;
|
||||
;
|
||||
if (true) break;
|
||||
|
||||
case 16:
|
||||
//C
|
||||
this.state = 17;
|
||||
;
|
||||
BA.debugLineNum = 146;BA.debugLine="LastSelectedIndex = index";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_lastselectedindex" /*RemoteObject*/ ,_index);
|
||||
BA.debugLineNum = 147;BA.debugLine="If xui.SubExists(mCallBack, mEventName & \"_Select";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) break;
|
||||
|
||||
case 17:
|
||||
//if
|
||||
this.state = 20;
|
||||
if (__ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(true,"SubExists",__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_mcallback" /*RemoteObject*/ )),(Object)(RemoteObject.concat(__ref.getField(true,"_meventname" /*RemoteObject*/ ),RemoteObject.createImmutable("_SelectedIndexChanged"))),(Object)(BA.numberCast(int.class, 1))).<Boolean>get().booleanValue()) {
|
||||
this.state = 19;
|
||||
}if (true) break;
|
||||
|
||||
case 19:
|
||||
//C
|
||||
this.state = 20;
|
||||
BA.debugLineNum = 148;BA.debugLine="CallSub2(mCallBack, mEventName & \"_SelectedIndex";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
parent.__c.runMethodAndSync(false,"CallSubNew2",__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_mcallback" /*RemoteObject*/ )),(Object)(RemoteObject.concat(__ref.getField(true,"_meventname" /*RemoteObject*/ ),RemoteObject.createImmutable("_SelectedIndexChanged"))),(Object)((_index)));
|
||||
if (true) break;
|
||||
|
||||
case 20:
|
||||
//C
|
||||
this.state = -1;
|
||||
;
|
||||
BA.debugLineNum = 150;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) break;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
}
|
||||
public static RemoteObject _setitems(RemoteObject __ref,RemoteObject _items) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("SetItems (b4xcombobox) ","b4xcombobox",51,__ref.getField(false, "ba"),__ref,59);
|
||||
if (RapidSub.canDelegate("setitems")) { return __ref.runUserSub(false, "b4xcombobox","setitems", __ref, _items);}
|
||||
Debug.locals.put("Items", _items);
|
||||
BA.debugLineNum = 59;BA.debugLine="Public Sub SetItems(Items As List)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 64;BA.debugLine="cmbBox.Clear";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cmbbox" /*RemoteObject*/ ).runVoidMethod ("Clear");
|
||||
BA.debugLineNum = 65;BA.debugLine="cmbBox.AddAll(Items)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cmbbox" /*RemoteObject*/ ).runVoidMethod ("AddAll",(Object)(_items));
|
||||
BA.debugLineNum = 72;BA.debugLine="If Items.Size > 0 Then setSelectedIndex(0)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean(">",_items.runMethod(true,"getSize"),BA.numberCast(double.class, 0))) {
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xcombobox.class, "_setselectedindex" /*RemoteObject*/ ,(Object)(BA.numberCast(int.class, 0)));};
|
||||
BA.debugLineNum = 73;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _setselectedindex(RemoteObject __ref,RemoteObject _i) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("setSelectedIndex (b4xcombobox) ","b4xcombobox",51,__ref.getField(false, "ba"),__ref,106);
|
||||
if (RapidSub.canDelegate("setselectedindex")) { return __ref.runUserSub(false, "b4xcombobox","setselectedindex", __ref, _i);}
|
||||
Debug.locals.put("i", _i);
|
||||
BA.debugLineNum = 106;BA.debugLine="Public Sub setSelectedIndex(i As Int)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 107;BA.debugLine="LastSelectedIndex = i";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_lastselectedindex" /*RemoteObject*/ ,_i);
|
||||
BA.debugLineNum = 109;BA.debugLine="cmbBox.SelectedIndex = i";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cmbbox" /*RemoteObject*/ ).runMethod(true,"setSelectedIndex",_i);
|
||||
BA.debugLineNum = 118;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.pc.PCBA;
|
||||
import anywheresoftware.b4a.pc.RemoteObject;
|
||||
|
||||
public class b4xcomparatorsort {
|
||||
public static RemoteObject myClass;
|
||||
public b4xcomparatorsort() {
|
||||
}
|
||||
public static PCBA staticBA = new PCBA(null, b4xcomparatorsort.class);
|
||||
|
||||
public static RemoteObject __c = RemoteObject.declareNull("anywheresoftware.b4a.keywords.Common");
|
||||
public static RemoteObject _dateutils = RemoteObject.declareNull("b4a.example.dateutils");
|
||||
public static reparto_mazapa.keymon.lat.main _main = null;
|
||||
public static reparto_mazapa.keymon.lat.appupdater _appupdater = null;
|
||||
public static reparto_mazapa.keymon.lat.tracker _tracker = null;
|
||||
public static reparto_mazapa.keymon.lat.starter _starter = null;
|
||||
public static reparto_mazapa.keymon.lat.subs _subs = null;
|
||||
public static reparto_mazapa.keymon.lat.firebasemessaging _firebasemessaging = null;
|
||||
public static reparto_mazapa.keymon.lat.foto _foto = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_cliente _mapa_cliente = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_rutas _mapa_rutas = null;
|
||||
public static reparto_mazapa.keymon.lat.newinst2 _newinst2 = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xpages _b4xpages = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xcollections _b4xcollections = null;
|
||||
public static reparto_mazapa.keymon.lat.httputils2service _httputils2service = null;
|
||||
public static reparto_mazapa.keymon.lat.xuiviewsutils _xuiviewsutils = null;
|
||||
public static Object[] GetGlobals(RemoteObject _ref) throws Exception {
|
||||
return new Object[] {"DateUtils",_ref.getField(false, "_dateutils")};
|
||||
}
|
||||
}
|
||||
@@ -1,181 +0,0 @@
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.BA;
|
||||
import anywheresoftware.b4a.pc.*;
|
||||
|
||||
public class b4xcomparatorsort_subs_0 {
|
||||
|
||||
|
||||
public static RemoteObject _class_globals(RemoteObject __ref) throws Exception{
|
||||
//BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
|
||||
//BA.debugLineNum = 2;BA.debugLine="End Sub";
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
public static RemoteObject _initialize(RemoteObject __ref,RemoteObject _ba) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Initialize (b4xcomparatorsort) ","b4xcomparatorsort",39,__ref.getField(false, "ba"),__ref,4);
|
||||
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "b4xcomparatorsort","initialize", __ref, _ba);}
|
||||
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
|
||||
Debug.locals.put("ba", _ba);
|
||||
BA.debugLineNum = 4;BA.debugLine="Public Sub Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 5;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _partition(RemoteObject __ref,RemoteObject _data,RemoteObject _startindex,RemoteObject _length,RemoteObject _pivotindex,RemoteObject _comparator) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Partition (b4xcomparatorsort) ","b4xcomparatorsort",39,__ref.getField(false, "ba"),__ref,30);
|
||||
if (RapidSub.canDelegate("partition")) { return __ref.runUserSub(false, "b4xcomparatorsort","partition", __ref, _data, _startindex, _length, _pivotindex, _comparator);}
|
||||
RemoteObject _pivotvalue = RemoteObject.declareNull("Object");
|
||||
RemoteObject _l = RemoteObject.createImmutable(0);
|
||||
int _i = 0;
|
||||
Debug.locals.put("Data", _data);
|
||||
Debug.locals.put("StartIndex", _startindex);
|
||||
Debug.locals.put("Length", _length);
|
||||
Debug.locals.put("PivotIndex", _pivotindex);
|
||||
Debug.locals.put("Comparator", _comparator);
|
||||
BA.debugLineNum = 30;BA.debugLine="Private Sub Partition(Data As List, StartIndex As";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 31;BA.debugLine="Dim PivotValue As Object = Data.Get(StartIndex +";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_pivotvalue = _data.runMethod(false,"Get",(Object)(RemoteObject.solve(new RemoteObject[] {_startindex,_pivotindex}, "+",1, 1)));Debug.locals.put("PivotValue", _pivotvalue);Debug.locals.put("PivotValue", _pivotvalue);
|
||||
BA.debugLineNum = 32;BA.debugLine="Swap(Data, StartIndex, PivotIndex, Length - 1)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xcomparatorsort.class, "_swap" /*RemoteObject*/ ,(Object)(_data),(Object)(_startindex),(Object)(_pivotindex),(Object)(RemoteObject.solve(new RemoteObject[] {_length,RemoteObject.createImmutable(1)}, "-",1, 1)));
|
||||
BA.debugLineNum = 33;BA.debugLine="Dim L As Int = 0";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_l = BA.numberCast(int.class, 0);Debug.locals.put("L", _l);Debug.locals.put("L", _l);
|
||||
BA.debugLineNum = 34;BA.debugLine="For i = 0 To Length - 2";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
{
|
||||
final int step4 = 1;
|
||||
final int limit4 = RemoteObject.solve(new RemoteObject[] {_length,RemoteObject.createImmutable(2)}, "-",1, 1).<Integer>get().intValue();
|
||||
_i = 0 ;
|
||||
for (;(step4 > 0 && _i <= limit4) || (step4 < 0 && _i >= limit4) ;_i = ((int)(0 + _i + step4)) ) {
|
||||
Debug.locals.put("i", _i);
|
||||
BA.debugLineNum = 35;BA.debugLine="If CallSub3(Comparator, \"Compare\", Data.Get(Star";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("<",(BA.numberCast(int.class, b4xcomparatorsort.__c.runMethodAndSync(false,"CallSubNew3",__ref.getField(false, "ba"),(Object)(_comparator),(Object)(BA.ObjectToString("Compare")),(Object)(_data.runMethod(false,"Get",(Object)(RemoteObject.solve(new RemoteObject[] {_startindex,RemoteObject.createImmutable(_i)}, "+",1, 1)))),(Object)(_pivotvalue)))),BA.numberCast(double.class, 0))) {
|
||||
BA.debugLineNum = 36;BA.debugLine="L = L + 1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_l = RemoteObject.solve(new RemoteObject[] {_l,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("L", _l);
|
||||
BA.debugLineNum = 37;BA.debugLine="Swap(Data, StartIndex, L - 1, i)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xcomparatorsort.class, "_swap" /*RemoteObject*/ ,(Object)(_data),(Object)(_startindex),(Object)(RemoteObject.solve(new RemoteObject[] {_l,RemoteObject.createImmutable(1)}, "-",1, 1)),(Object)(BA.numberCast(int.class, _i)));
|
||||
};
|
||||
}
|
||||
}Debug.locals.put("i", _i);
|
||||
;
|
||||
BA.debugLineNum = 40;BA.debugLine="Swap(Data, StartIndex, Length - 1, L)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xcomparatorsort.class, "_swap" /*RemoteObject*/ ,(Object)(_data),(Object)(_startindex),(Object)(RemoteObject.solve(new RemoteObject[] {_length,RemoteObject.createImmutable(1)}, "-",1, 1)),(Object)(_l));
|
||||
BA.debugLineNum = 41;BA.debugLine="Return L";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return _l;
|
||||
BA.debugLineNum = 42;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(0);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _quicksort(RemoteObject __ref,RemoteObject _data,RemoteObject _startindex,RemoteObject _length,RemoteObject _comparator) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("QuickSort (b4xcomparatorsort) ","b4xcomparatorsort",39,__ref.getField(false, "ba"),__ref,21);
|
||||
if (RapidSub.canDelegate("quicksort")) { return __ref.runUserSub(false, "b4xcomparatorsort","quicksort", __ref, _data, _startindex, _length, _comparator);}
|
||||
RemoteObject _pivotindex = RemoteObject.createImmutable(0);
|
||||
RemoteObject _r = RemoteObject.createImmutable(0);
|
||||
Debug.locals.put("Data", _data);
|
||||
Debug.locals.put("StartIndex", _startindex);
|
||||
Debug.locals.put("Length", _length);
|
||||
Debug.locals.put("Comparator", _comparator);
|
||||
BA.debugLineNum = 21;BA.debugLine="Private Sub QuickSort (Data As List, StartIndex As";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 22;BA.debugLine="If Length > 1 Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean(">",_length,BA.numberCast(double.class, 1))) {
|
||||
BA.debugLineNum = 23;BA.debugLine="Dim PivotIndex As Int = Rnd(0, Length)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_pivotindex = b4xcomparatorsort.__c.runMethod(true,"Rnd",(Object)(BA.numberCast(int.class, 0)),(Object)(_length));Debug.locals.put("PivotIndex", _pivotindex);Debug.locals.put("PivotIndex", _pivotindex);
|
||||
BA.debugLineNum = 24;BA.debugLine="Dim r As Int = Partition(Data, StartIndex, Lengt";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_r = __ref.runClassMethod (reparto_mazapa.keymon.lat.b4xcomparatorsort.class, "_partition" /*RemoteObject*/ ,(Object)(_data),(Object)(_startindex),(Object)(_length),(Object)(_pivotindex),(Object)(_comparator));Debug.locals.put("r", _r);Debug.locals.put("r", _r);
|
||||
BA.debugLineNum = 25;BA.debugLine="QuickSort(Data, StartIndex, r, Comparator)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xcomparatorsort.class, "_quicksort" /*RemoteObject*/ ,(Object)(_data),(Object)(_startindex),(Object)(_r),(Object)(_comparator));
|
||||
BA.debugLineNum = 26;BA.debugLine="QuickSort(Data, StartIndex + r + 1, Length - r -";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xcomparatorsort.class, "_quicksort" /*RemoteObject*/ ,(Object)(_data),(Object)(RemoteObject.solve(new RemoteObject[] {_startindex,_r,RemoteObject.createImmutable(1)}, "++",2, 1)),(Object)(RemoteObject.solve(new RemoteObject[] {_length,_r,RemoteObject.createImmutable(1)}, "--",2, 1)),(Object)(_comparator));
|
||||
};
|
||||
BA.debugLineNum = 28;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _sort(RemoteObject __ref,RemoteObject _data,RemoteObject _comparator) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Sort (b4xcomparatorsort) ","b4xcomparatorsort",39,__ref.getField(false, "ba"),__ref,12);
|
||||
if (RapidSub.canDelegate("sort")) { return __ref.runUserSub(false, "b4xcomparatorsort","sort", __ref, _data, _comparator);}
|
||||
Debug.locals.put("Data", _data);
|
||||
Debug.locals.put("Comparator", _comparator);
|
||||
BA.debugLineNum = 12;BA.debugLine="Public Sub Sort (Data As List, Comparator As Objec";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 14;BA.debugLine="QuickSort(Data, 0, Data.Size, Comparator)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xcomparatorsort.class, "_quicksort" /*RemoteObject*/ ,(Object)(_data),(Object)(BA.numberCast(int.class, 0)),(Object)(_data.runMethod(true,"getSize")),(Object)(_comparator));
|
||||
BA.debugLineNum = 18;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _swap(RemoteObject __ref,RemoteObject _data,RemoteObject _startindex,RemoteObject _i1,RemoteObject _i2) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Swap (b4xcomparatorsort) ","b4xcomparatorsort",39,__ref.getField(false, "ba"),__ref,44);
|
||||
if (RapidSub.canDelegate("swap")) { return __ref.runUserSub(false, "b4xcomparatorsort","swap", __ref, _data, _startindex, _i1, _i2);}
|
||||
RemoteObject _o = RemoteObject.declareNull("Object");
|
||||
Debug.locals.put("Data", _data);
|
||||
Debug.locals.put("StartIndex", _startindex);
|
||||
Debug.locals.put("i1", _i1);
|
||||
Debug.locals.put("i2", _i2);
|
||||
BA.debugLineNum = 44;BA.debugLine="Private Sub Swap (Data As List, StartIndex As Int,";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 45;BA.debugLine="Dim o As Object = Data.Get(StartIndex + i1)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_o = _data.runMethod(false,"Get",(Object)(RemoteObject.solve(new RemoteObject[] {_startindex,_i1}, "+",1, 1)));Debug.locals.put("o", _o);Debug.locals.put("o", _o);
|
||||
BA.debugLineNum = 46;BA.debugLine="Data.Set(StartIndex + i1, Data.Get(StartIndex + i";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_data.runVoidMethod ("Set",(Object)(RemoteObject.solve(new RemoteObject[] {_startindex,_i1}, "+",1, 1)),(Object)(_data.runMethod(false,"Get",(Object)(RemoteObject.solve(new RemoteObject[] {_startindex,_i2}, "+",1, 1)))));
|
||||
BA.debugLineNum = 47;BA.debugLine="Data.Set(StartIndex + i2, o)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_data.runVoidMethod ("Set",(Object)(RemoteObject.solve(new RemoteObject[] {_startindex,_i2}, "+",1, 1)),(Object)(_o));
|
||||
BA.debugLineNum = 48;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
}
|
||||
@@ -1,70 +0,0 @@
|
||||
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.pc.PCBA;
|
||||
import anywheresoftware.b4a.pc.RemoteObject;
|
||||
|
||||
public class b4xdatetemplate {
|
||||
public static RemoteObject myClass;
|
||||
public b4xdatetemplate() {
|
||||
}
|
||||
public static PCBA staticBA = new PCBA(null, b4xdatetemplate.class);
|
||||
|
||||
public static RemoteObject __c = RemoteObject.declareNull("anywheresoftware.b4a.keywords.Common");
|
||||
public static RemoteObject _xui = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");
|
||||
public static RemoteObject _month = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _year = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _boxw = RemoteObject.createImmutable(0f);
|
||||
public static RemoteObject _boxh = RemoteObject.createImmutable(0f);
|
||||
public static RemoteObject _vcorrection = RemoteObject.createImmutable(0f);
|
||||
public static RemoteObject _tempselectedday = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _dayofweekoffset = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _daysinmonth = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _dayspanebg = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _dayspanefg = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _cvs = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XCanvas");
|
||||
public static RemoteObject _cvsbackground = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XCanvas");
|
||||
public static RemoteObject _selecteddate = RemoteObject.createImmutable(0L);
|
||||
public static RemoteObject _previousselecteddate = RemoteObject.createImmutable(0L);
|
||||
public static RemoteObject _selectedyear = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _selectedmonth = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _selectedday = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _highlightedcolor = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _selectedcolor = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _daysinmonthcolor = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _daysinweekcolor = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _cvsdays = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XCanvas");
|
||||
public static RemoteObject _daystitlespane = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _firstday = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _minyear = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _maxyear = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _btnmonthleft = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _btnmonthright = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _btnyearleft = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _btnyearright = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _lblmonth = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _lblyear = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _pnldialog = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _months = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
|
||||
public static RemoteObject _mdialog = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xdialog");
|
||||
public static RemoteObject _closeonselection = RemoteObject.createImmutable(false);
|
||||
public static RemoteObject _daysofweeknames = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
|
||||
public static RemoteObject _dateutils = RemoteObject.declareNull("b4a.example.dateutils");
|
||||
public static reparto_mazapa.keymon.lat.main _main = null;
|
||||
public static reparto_mazapa.keymon.lat.appupdater _appupdater = null;
|
||||
public static reparto_mazapa.keymon.lat.tracker _tracker = null;
|
||||
public static reparto_mazapa.keymon.lat.starter _starter = null;
|
||||
public static reparto_mazapa.keymon.lat.subs _subs = null;
|
||||
public static reparto_mazapa.keymon.lat.firebasemessaging _firebasemessaging = null;
|
||||
public static reparto_mazapa.keymon.lat.foto _foto = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_cliente _mapa_cliente = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_rutas _mapa_rutas = null;
|
||||
public static reparto_mazapa.keymon.lat.newinst2 _newinst2 = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xpages _b4xpages = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xcollections _b4xcollections = null;
|
||||
public static reparto_mazapa.keymon.lat.httputils2service _httputils2service = null;
|
||||
public static reparto_mazapa.keymon.lat.xuiviewsutils _xuiviewsutils = null;
|
||||
public static Object[] GetGlobals(RemoteObject _ref) throws Exception {
|
||||
return new Object[] {"boxH",_ref.getField(false, "_boxh"),"boxW",_ref.getField(false, "_boxw"),"btnMonthLeft",_ref.getField(false, "_btnmonthleft"),"btnMonthRight",_ref.getField(false, "_btnmonthright"),"btnYearLeft",_ref.getField(false, "_btnyearleft"),"btnYearRight",_ref.getField(false, "_btnyearright"),"CloseOnSelection",_ref.getField(false, "_closeonselection"),"cvs",_ref.getField(false, "_cvs"),"cvsBackground",_ref.getField(false, "_cvsbackground"),"cvsDays",_ref.getField(false, "_cvsdays"),"DateUtils",_ref.getField(false, "_dateutils"),"dayOfWeekOffset",_ref.getField(false, "_dayofweekoffset"),"daysInMonth",_ref.getField(false, "_daysinmonth"),"DaysInMonthColor",_ref.getField(false, "_daysinmonthcolor"),"DaysInWeekColor",_ref.getField(false, "_daysinweekcolor"),"DaysOfWeekNames",_ref.getField(false, "_daysofweeknames"),"DaysPaneBg",_ref.getField(false, "_dayspanebg"),"DaysPaneFg",_ref.getField(false, "_dayspanefg"),"DaysTitlesPane",_ref.getField(false, "_daystitlespane"),"FirstDay",_ref.getField(false, "_firstday"),"HighlightedColor",_ref.getField(false, "_highlightedcolor"),"lblMonth",_ref.getField(false, "_lblmonth"),"lblYear",_ref.getField(false, "_lblyear"),"MaxYear",_ref.getField(false, "_maxyear"),"mDialog",_ref.getField(false, "_mdialog"),"MinYear",_ref.getField(false, "_minyear"),"month",_ref.getField(false, "_month"),"months",_ref.getField(false, "_months"),"pnlDialog",_ref.getField(false, "_pnldialog"),"PreviousSelectedDate",_ref.getField(false, "_previousselecteddate"),"SelectedColor",_ref.getField(false, "_selectedcolor"),"selectedDate",_ref.getField(false, "_selecteddate"),"selectedDay",_ref.getField(false, "_selectedday"),"selectedMonth",_ref.getField(false, "_selectedmonth"),"selectedYear",_ref.getField(false, "_selectedyear"),"tempSelectedDay",_ref.getField(false, "_tempselectedday"),"vCorrection",_ref.getField(false, "_vcorrection"),"xui",_ref.getField(false, "_xui"),"year",_ref.getField(false, "_year")};
|
||||
}
|
||||
}
|
||||
@@ -1,759 +0,0 @@
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.BA;
|
||||
import anywheresoftware.b4a.pc.*;
|
||||
|
||||
public class b4xdatetemplate_subs_0 {
|
||||
|
||||
|
||||
public static RemoteObject _btnmonth_click(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("btnMonth_Click (b4xdatetemplate) ","b4xdatetemplate",52,__ref.getField(false, "ba"),__ref,160);
|
||||
if (RapidSub.canDelegate("btnmonth_click")) { return __ref.runUserSub(false, "b4xdatetemplate","btnmonth_click", __ref);}
|
||||
RemoteObject _btn = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
RemoteObject _m = RemoteObject.createImmutable(0);
|
||||
BA.debugLineNum = 160;BA.debugLine="Private Sub btnMonth_Click";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 161;BA.debugLine="Dim btn As B4XView = Sender";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_btn = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
_btn = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), b4xdatetemplate.__c.runMethod(false,"Sender",__ref.getField(false, "ba")));Debug.locals.put("btn", _btn);Debug.locals.put("btn", _btn);
|
||||
BA.debugLineNum = 162;BA.debugLine="Dim m As Int = 12 + month - 1 + btn.Tag";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_m = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(12),__ref.getField(true,"_month" /*RemoteObject*/ ),RemoteObject.createImmutable(1),BA.numberCast(double.class, _btn.runMethod(false,"getTag"))}, "+-+",3, 0));Debug.locals.put("m", _m);Debug.locals.put("m", _m);
|
||||
BA.debugLineNum = 163;BA.debugLine="month = (m Mod 12) + 1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_month" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {_m,RemoteObject.createImmutable(12)}, "%",0, 1)),RemoteObject.createImmutable(1)}, "+",1, 1));
|
||||
BA.debugLineNum = 164;BA.debugLine="DrawDays";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xdatetemplate.class, "_drawdays" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 165;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _btnyear_click(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("btnYear_Click (b4xdatetemplate) ","b4xdatetemplate",52,__ref.getField(false, "ba"),__ref,154);
|
||||
if (RapidSub.canDelegate("btnyear_click")) { return __ref.runUserSub(false, "b4xdatetemplate","btnyear_click", __ref);}
|
||||
RemoteObject _btn = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
BA.debugLineNum = 154;BA.debugLine="Private Sub btnYear_Click";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 155;BA.debugLine="Dim btn As B4XView = Sender";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_btn = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
_btn = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper"), b4xdatetemplate.__c.runMethod(false,"Sender",__ref.getField(false, "ba")));Debug.locals.put("btn", _btn);Debug.locals.put("btn", _btn);
|
||||
BA.debugLineNum = 156;BA.debugLine="year = year + btn.Tag";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_year" /*RemoteObject*/ ,BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_year" /*RemoteObject*/ ),BA.numberCast(double.class, _btn.runMethod(false,"getTag"))}, "+",1, 0)));
|
||||
BA.debugLineNum = 157;BA.debugLine="DrawDays";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xdatetemplate.class, "_drawdays" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 158;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _class_globals(RemoteObject __ref) throws Exception{
|
||||
//BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
|
||||
//BA.debugLineNum = 2;BA.debugLine="Private xui As XUI";
|
||||
b4xdatetemplate._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");__ref.setField("_xui",b4xdatetemplate._xui);
|
||||
//BA.debugLineNum = 3;BA.debugLine="Private month, year As Int";
|
||||
b4xdatetemplate._month = RemoteObject.createImmutable(0);__ref.setField("_month",b4xdatetemplate._month);
|
||||
b4xdatetemplate._year = RemoteObject.createImmutable(0);__ref.setField("_year",b4xdatetemplate._year);
|
||||
//BA.debugLineNum = 4;BA.debugLine="Private boxW, boxH As Float";
|
||||
b4xdatetemplate._boxw = RemoteObject.createImmutable(0f);__ref.setField("_boxw",b4xdatetemplate._boxw);
|
||||
b4xdatetemplate._boxh = RemoteObject.createImmutable(0f);__ref.setField("_boxh",b4xdatetemplate._boxh);
|
||||
//BA.debugLineNum = 5;BA.debugLine="Private vCorrection As Float";
|
||||
b4xdatetemplate._vcorrection = RemoteObject.createImmutable(0f);__ref.setField("_vcorrection",b4xdatetemplate._vcorrection);
|
||||
//BA.debugLineNum = 6;BA.debugLine="Private tempSelectedDay As Int";
|
||||
b4xdatetemplate._tempselectedday = RemoteObject.createImmutable(0);__ref.setField("_tempselectedday",b4xdatetemplate._tempselectedday);
|
||||
//BA.debugLineNum = 7;BA.debugLine="Private dayOfWeekOffset As Int";
|
||||
b4xdatetemplate._dayofweekoffset = RemoteObject.createImmutable(0);__ref.setField("_dayofweekoffset",b4xdatetemplate._dayofweekoffset);
|
||||
//BA.debugLineNum = 8;BA.debugLine="Private daysInMonth As Int";
|
||||
b4xdatetemplate._daysinmonth = RemoteObject.createImmutable(0);__ref.setField("_daysinmonth",b4xdatetemplate._daysinmonth);
|
||||
//BA.debugLineNum = 9;BA.debugLine="Private DaysPaneBg As B4XView";
|
||||
b4xdatetemplate._dayspanebg = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_dayspanebg",b4xdatetemplate._dayspanebg);
|
||||
//BA.debugLineNum = 10;BA.debugLine="Private DaysPaneFg As B4XView";
|
||||
b4xdatetemplate._dayspanefg = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_dayspanefg",b4xdatetemplate._dayspanefg);
|
||||
//BA.debugLineNum = 11;BA.debugLine="Private cvs As B4XCanvas";
|
||||
b4xdatetemplate._cvs = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XCanvas");__ref.setField("_cvs",b4xdatetemplate._cvs);
|
||||
//BA.debugLineNum = 12;BA.debugLine="Private cvsBackground As B4XCanvas";
|
||||
b4xdatetemplate._cvsbackground = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XCanvas");__ref.setField("_cvsbackground",b4xdatetemplate._cvsbackground);
|
||||
//BA.debugLineNum = 13;BA.debugLine="Private selectedDate As Long";
|
||||
b4xdatetemplate._selecteddate = RemoteObject.createImmutable(0L);__ref.setField("_selecteddate",b4xdatetemplate._selecteddate);
|
||||
//BA.debugLineNum = 14;BA.debugLine="Private PreviousSelectedDate As Long";
|
||||
b4xdatetemplate._previousselecteddate = RemoteObject.createImmutable(0L);__ref.setField("_previousselecteddate",b4xdatetemplate._previousselecteddate);
|
||||
//BA.debugLineNum = 15;BA.debugLine="Private selectedYear, selectedMonth, selectedDay";
|
||||
b4xdatetemplate._selectedyear = RemoteObject.createImmutable(0);__ref.setField("_selectedyear",b4xdatetemplate._selectedyear);
|
||||
b4xdatetemplate._selectedmonth = RemoteObject.createImmutable(0);__ref.setField("_selectedmonth",b4xdatetemplate._selectedmonth);
|
||||
b4xdatetemplate._selectedday = RemoteObject.createImmutable(0);__ref.setField("_selectedday",b4xdatetemplate._selectedday);
|
||||
//BA.debugLineNum = 16;BA.debugLine="Public HighlightedColor As Int = 0xFF001BBD";
|
||||
b4xdatetemplate._highlightedcolor = BA.numberCast(int.class, ((int)0xff001bbd));__ref.setField("_highlightedcolor",b4xdatetemplate._highlightedcolor);
|
||||
//BA.debugLineNum = 17;BA.debugLine="Public SelectedColor As Int = 0xFF0BA29B";
|
||||
b4xdatetemplate._selectedcolor = BA.numberCast(int.class, ((int)0xff0ba29b));__ref.setField("_selectedcolor",b4xdatetemplate._selectedcolor);
|
||||
//BA.debugLineNum = 18;BA.debugLine="Public DaysInMonthColor As Int = xui.Color_White";
|
||||
b4xdatetemplate._daysinmonthcolor = __ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"Color_White");__ref.setField("_daysinmonthcolor",b4xdatetemplate._daysinmonthcolor);
|
||||
//BA.debugLineNum = 19;BA.debugLine="Public DaysInWeekColor As Int = xui.Color_Gray";
|
||||
b4xdatetemplate._daysinweekcolor = __ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"Color_Gray");__ref.setField("_daysinweekcolor",b4xdatetemplate._daysinweekcolor);
|
||||
//BA.debugLineNum = 20;BA.debugLine="Private cvsDays As B4XCanvas";
|
||||
b4xdatetemplate._cvsdays = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XCanvas");__ref.setField("_cvsdays",b4xdatetemplate._cvsdays);
|
||||
//BA.debugLineNum = 21;BA.debugLine="Private DaysTitlesPane As B4XView";
|
||||
b4xdatetemplate._daystitlespane = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_daystitlespane",b4xdatetemplate._daystitlespane);
|
||||
//BA.debugLineNum = 22;BA.debugLine="Public FirstDay As Int = 0";
|
||||
b4xdatetemplate._firstday = BA.numberCast(int.class, 0);__ref.setField("_firstday",b4xdatetemplate._firstday);
|
||||
//BA.debugLineNum = 23;BA.debugLine="Public MinYear = 1970, MaxYear = 2030 As Int";
|
||||
b4xdatetemplate._minyear = BA.numberCast(int.class, 1970);__ref.setField("_minyear",b4xdatetemplate._minyear);
|
||||
b4xdatetemplate._maxyear = BA.numberCast(int.class, 2030);__ref.setField("_maxyear",b4xdatetemplate._maxyear);
|
||||
//BA.debugLineNum = 24;BA.debugLine="Public btnMonthLeft As B4XView";
|
||||
b4xdatetemplate._btnmonthleft = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_btnmonthleft",b4xdatetemplate._btnmonthleft);
|
||||
//BA.debugLineNum = 25;BA.debugLine="Public btnMonthRight As B4XView";
|
||||
b4xdatetemplate._btnmonthright = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_btnmonthright",b4xdatetemplate._btnmonthright);
|
||||
//BA.debugLineNum = 26;BA.debugLine="Public btnYearLeft As B4XView";
|
||||
b4xdatetemplate._btnyearleft = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_btnyearleft",b4xdatetemplate._btnyearleft);
|
||||
//BA.debugLineNum = 27;BA.debugLine="Public btnYearRight As B4XView";
|
||||
b4xdatetemplate._btnyearright = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_btnyearright",b4xdatetemplate._btnyearright);
|
||||
//BA.debugLineNum = 28;BA.debugLine="Public lblMonth As B4XView";
|
||||
b4xdatetemplate._lblmonth = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_lblmonth",b4xdatetemplate._lblmonth);
|
||||
//BA.debugLineNum = 29;BA.debugLine="Public lblYear As B4XView";
|
||||
b4xdatetemplate._lblyear = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_lblyear",b4xdatetemplate._lblyear);
|
||||
//BA.debugLineNum = 30;BA.debugLine="Private pnlDialog As B4XView";
|
||||
b4xdatetemplate._pnldialog = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_pnldialog",b4xdatetemplate._pnldialog);
|
||||
//BA.debugLineNum = 31;BA.debugLine="Private months As List";
|
||||
b4xdatetemplate._months = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_months",b4xdatetemplate._months);
|
||||
//BA.debugLineNum = 32;BA.debugLine="Private mDialog As B4XDialog";
|
||||
b4xdatetemplate._mdialog = RemoteObject.createNew ("reparto_mazapa.keymon.lat.b4xdialog");__ref.setField("_mdialog",b4xdatetemplate._mdialog);
|
||||
//BA.debugLineNum = 33;BA.debugLine="Public CloseOnSelection As Boolean = True";
|
||||
b4xdatetemplate._closeonselection = b4xdatetemplate.__c.getField(true,"True");__ref.setField("_closeonselection",b4xdatetemplate._closeonselection);
|
||||
//BA.debugLineNum = 34;BA.debugLine="Public DaysOfWeekNames As List";
|
||||
b4xdatetemplate._daysofweeknames = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_daysofweeknames",b4xdatetemplate._daysofweeknames);
|
||||
//BA.debugLineNum = 35;BA.debugLine="End Sub";
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
public static RemoteObject _dayspanefg_touch(RemoteObject __ref,RemoteObject _action,RemoteObject _x,RemoteObject _y) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("DaysPaneFg_Touch (b4xdatetemplate) ","b4xdatetemplate",52,__ref.getField(false, "ba"),__ref,167);
|
||||
if (RapidSub.canDelegate("dayspanefg_touch")) { return __ref.runUserSub(false, "b4xdatetemplate","dayspanefg_touch", __ref, _action, _x, _y);}
|
||||
RemoteObject _p = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
Debug.locals.put("Action", _action);
|
||||
Debug.locals.put("X", _x);
|
||||
Debug.locals.put("Y", _y);
|
||||
BA.debugLineNum = 167;BA.debugLine="Private Sub DaysPaneFg_Touch (Action As Int, X As";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 168;BA.debugLine="Dim p As B4XView = DaysPaneFg";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_p = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
_p = __ref.getField(false,"_dayspanefg" /*RemoteObject*/ );Debug.locals.put("p", _p);Debug.locals.put("p", _p);
|
||||
BA.debugLineNum = 169;BA.debugLine="HandleMouse(X, Y, Action <> p.TOUCH_ACTION_UP)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xdatetemplate.class, "_handlemouse" /*RemoteObject*/ ,(Object)(BA.numberCast(double.class, _x)),(Object)(BA.numberCast(double.class, _y)),(Object)(BA.ObjectToBoolean(RemoteObject.solveBoolean("!",_action,BA.numberCast(double.class, _p.getField(true,"TOUCH_ACTION_UP"))))));
|
||||
BA.debugLineNum = 170;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _dialogclosed(RemoteObject __ref,RemoteObject _result) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("DialogClosed (b4xdatetemplate) ","b4xdatetemplate",52,__ref.getField(false, "ba"),__ref,193);
|
||||
if (RapidSub.canDelegate("dialogclosed")) { return __ref.runUserSub(false, "b4xdatetemplate","dialogclosed", __ref, _result);}
|
||||
Debug.locals.put("Result", _result);
|
||||
BA.debugLineNum = 193;BA.debugLine="Private Sub DialogClosed(Result As Int) 'ignore";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 194;BA.debugLine="If Result <> xui.DialogResponse_Positive Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("!",_result,BA.numberCast(double.class, __ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"DialogResponse_Positive")))) {
|
||||
BA.debugLineNum = 195;BA.debugLine="setDate(PreviousSelectedDate)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xdatetemplate.class, "_setdate" /*RemoteObject*/ ,(Object)(__ref.getField(true,"_previousselecteddate" /*RemoteObject*/ )));
|
||||
};
|
||||
BA.debugLineNum = 197;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _drawbox(RemoteObject __ref,RemoteObject _c,RemoteObject _clr,RemoteObject _x,RemoteObject _y) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("DrawBox (b4xdatetemplate) ","b4xdatetemplate",52,__ref.getField(false, "ba"),__ref,91);
|
||||
if (RapidSub.canDelegate("drawbox")) { return __ref.runUserSub(false, "b4xdatetemplate","drawbox", __ref, _c, _clr, _x, _y);}
|
||||
RemoteObject _r = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XCanvas.B4XRect");
|
||||
Debug.locals.put("c", _c);
|
||||
Debug.locals.put("clr", _clr);
|
||||
Debug.locals.put("x", _x);
|
||||
Debug.locals.put("y", _y);
|
||||
BA.debugLineNum = 91;BA.debugLine="Private Sub DrawBox(c As B4XCanvas, clr As Int, x";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 92;BA.debugLine="Dim r As B4XRect";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_r = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XCanvas.B4XRect");Debug.locals.put("r", _r);
|
||||
BA.debugLineNum = 93;BA.debugLine="r.Initialize(x * boxW, y * boxH, x * boxW + boxW,";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_r.runVoidMethod ("Initialize",(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_x,__ref.getField(true,"_boxw" /*RemoteObject*/ )}, "*",0, 0))),(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_y,__ref.getField(true,"_boxh" /*RemoteObject*/ )}, "*",0, 0))),(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_x,__ref.getField(true,"_boxw" /*RemoteObject*/ ),__ref.getField(true,"_boxw" /*RemoteObject*/ )}, "*+",1, 0))),(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_y,__ref.getField(true,"_boxh" /*RemoteObject*/ ),__ref.getField(true,"_boxh" /*RemoteObject*/ )}, "*+",1, 0))));
|
||||
BA.debugLineNum = 94;BA.debugLine="c.DrawRect(r, clr, True, 1dip)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_c.runVoidMethod ("DrawRect",(Object)(_r),(Object)(_clr),(Object)(b4xdatetemplate.__c.getField(true,"True")),(Object)(BA.numberCast(float.class, b4xdatetemplate.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 1))))));
|
||||
BA.debugLineNum = 95;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _drawdays(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("DrawDays (b4xdatetemplate) ","b4xdatetemplate",52,__ref.getField(false, "ba"),__ref,62);
|
||||
if (RapidSub.canDelegate("drawdays")) { return __ref.runUserSub(false, "b4xdatetemplate","drawdays", __ref);}
|
||||
RemoteObject _firstdayofmonth = RemoteObject.createImmutable(0L);
|
||||
RemoteObject _daysfont = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont");
|
||||
int _day = 0;
|
||||
RemoteObject _row = RemoteObject.createImmutable(0);
|
||||
BA.debugLineNum = 62;BA.debugLine="Private Sub DrawDays";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 63;BA.debugLine="lblMonth.Text = months.Get(month - 1)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_lblmonth" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_months" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_month" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "-",1, 1)))));
|
||||
BA.debugLineNum = 64;BA.debugLine="lblYear.Text = year";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_lblyear" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(true,"_year" /*RemoteObject*/ )));
|
||||
BA.debugLineNum = 65;BA.debugLine="SetYearsButtonState";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xdatetemplate.class, "_setyearsbuttonstate" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 66;BA.debugLine="cvs.ClearRect(cvs.TargetRect)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cvs" /*RemoteObject*/ ).runVoidMethod ("ClearRect",(Object)(__ref.getField(false,"_cvs" /*RemoteObject*/ ).runMethod(false,"getTargetRect")));
|
||||
BA.debugLineNum = 67;BA.debugLine="cvsBackground.ClearRect(cvsBackground.TargetRect)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cvsbackground" /*RemoteObject*/ ).runVoidMethod ("ClearRect",(Object)(__ref.getField(false,"_cvsbackground" /*RemoteObject*/ ).runMethod(false,"getTargetRect")));
|
||||
BA.debugLineNum = 68;BA.debugLine="Dim firstDayOfMonth As Long = DateUtils.setDate(y";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_firstdayofmonth = RemoteObject.solve(new RemoteObject[] {b4xdatetemplate._dateutils.runMethod(true,"_setdate",__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_year" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_month" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 1))),RemoteObject.createImmutable(1)}, "-",1, 2);Debug.locals.put("firstDayOfMonth", _firstdayofmonth);Debug.locals.put("firstDayOfMonth", _firstdayofmonth);
|
||||
BA.debugLineNum = 69;BA.debugLine="dayOfWeekOffset = (7 + DateTime.GetDayOfWeek(firs";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_dayofweekoffset" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(7),b4xdatetemplate.__c.getField(false,"DateTime").runMethod(true,"GetDayOfWeek",(Object)(_firstdayofmonth)),__ref.getField(true,"_firstday" /*RemoteObject*/ )}, "+-",2, 1)),RemoteObject.createImmutable(7)}, "%",0, 1));
|
||||
BA.debugLineNum = 70;BA.debugLine="daysInMonth = DateUtils.NumberOfDaysInMonth(month";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_daysinmonth" /*RemoteObject*/ ,b4xdatetemplate._dateutils.runMethod(true,"_numberofdaysinmonth",__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_month" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_year" /*RemoteObject*/ ))));
|
||||
BA.debugLineNum = 71;BA.debugLine="If year = selectedYear And month = selectedMonth";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_year" /*RemoteObject*/ ),BA.numberCast(double.class, __ref.getField(true,"_selectedyear" /*RemoteObject*/ ))) && RemoteObject.solveBoolean("=",__ref.getField(true,"_month" /*RemoteObject*/ ),BA.numberCast(double.class, __ref.getField(true,"_selectedmonth" /*RemoteObject*/ )))) {
|
||||
BA.debugLineNum = 73;BA.debugLine="DrawBox(cvs, SelectedColor, (selectedDay - 1 + d";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xdatetemplate.class, "_drawbox" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cvs" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_selectedcolor" /*RemoteObject*/ )),(Object)(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_selectedday" /*RemoteObject*/ ),RemoteObject.createImmutable(1),__ref.getField(true,"_dayofweekoffset" /*RemoteObject*/ )}, "-+",2, 1)),RemoteObject.createImmutable(7)}, "%",0, 1)),(Object)(BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_selectedday" /*RemoteObject*/ ),RemoteObject.createImmutable(1),__ref.getField(true,"_dayofweekoffset" /*RemoteObject*/ )}, "-+",2, 1)),RemoteObject.createImmutable(7)}, "/",0, 0))));
|
||||
};
|
||||
BA.debugLineNum = 76;BA.debugLine="Dim daysFont As B4XFont = xui.CreateDefaultBoldFo";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_daysfont = __ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(false,"CreateDefaultBoldFont",(Object)(BA.numberCast(float.class, 14)));Debug.locals.put("daysFont", _daysfont);Debug.locals.put("daysFont", _daysfont);
|
||||
BA.debugLineNum = 77;BA.debugLine="For day = 1 To daysInMonth";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
{
|
||||
final int step13 = 1;
|
||||
final int limit13 = __ref.getField(true,"_daysinmonth" /*RemoteObject*/ ).<Integer>get().intValue();
|
||||
_day = 1 ;
|
||||
for (;(step13 > 0 && _day <= limit13) || (step13 < 0 && _day >= limit13) ;_day = ((int)(0 + _day + step13)) ) {
|
||||
Debug.locals.put("day", _day);
|
||||
BA.debugLineNum = 78;BA.debugLine="Dim row As Int = (day - 1 + dayOfWeekOffset) / 7";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_row = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(_day),RemoteObject.createImmutable(1),__ref.getField(true,"_dayofweekoffset" /*RemoteObject*/ )}, "-+",2, 1)),RemoteObject.createImmutable(7)}, "/",0, 0));Debug.locals.put("row", _row);Debug.locals.put("row", _row);
|
||||
BA.debugLineNum = 79;BA.debugLine="cvs.DrawText(day, (((dayOfWeekOffset + day - 1)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cvs" /*RemoteObject*/ ).runVoidMethod ("DrawText",__ref.getField(false, "ba"),(Object)(BA.NumberToString(_day)),(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_dayofweekoffset" /*RemoteObject*/ ),RemoteObject.createImmutable(_day),RemoteObject.createImmutable(1)}, "+-",2, 1)),RemoteObject.createImmutable(7)}, "%",0, 1)),RemoteObject.createImmutable(0.5)}, "+",1, 0)),__ref.getField(true,"_boxw" /*RemoteObject*/ )}, "*",0, 0))),(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {_row,RemoteObject.createImmutable(0.5)}, "+",1, 0)),__ref.getField(true,"_boxh" /*RemoteObject*/ ),__ref.getField(true,"_vcorrection" /*RemoteObject*/ )}, "*+",1, 0))),(Object)(_daysfont),(Object)(__ref.getField(true,"_daysinmonthcolor" /*RemoteObject*/ )),(Object)(BA.getEnumFromString(BA.getDeviceClass("android.graphics.Paint.Align"),RemoteObject.createImmutable("CENTER"))));
|
||||
}
|
||||
}Debug.locals.put("day", _day);
|
||||
;
|
||||
BA.debugLineNum = 82;BA.debugLine="cvsBackground.Invalidate";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cvsbackground" /*RemoteObject*/ ).runVoidMethod ("Invalidate");
|
||||
BA.debugLineNum = 83;BA.debugLine="cvs.Invalidate";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cvs" /*RemoteObject*/ ).runVoidMethod ("Invalidate");
|
||||
BA.debugLineNum = 84;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getdate(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("getDate (b4xdatetemplate) ","b4xdatetemplate",52,__ref.getField(false, "ba"),__ref,98);
|
||||
if (RapidSub.canDelegate("getdate")) { return __ref.runUserSub(false, "b4xdatetemplate","getdate", __ref);}
|
||||
BA.debugLineNum = 98;BA.debugLine="Public Sub getDate As Long";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 99;BA.debugLine="Return selectedDate";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(true,"_selecteddate" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 100;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(0L);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getpanel(RemoteObject __ref,RemoteObject _dialog) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("GetPanel (b4xdatetemplate) ","b4xdatetemplate",52,__ref.getField(false, "ba"),__ref,172);
|
||||
if (RapidSub.canDelegate("getpanel")) { return __ref.runUserSub(false, "b4xdatetemplate","getpanel", __ref, _dialog);}
|
||||
Debug.locals.put("Dialog", _dialog);
|
||||
BA.debugLineNum = 172;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 173;BA.debugLine="Return pnlDialog";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(false,"_pnldialog" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 174;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _handlemouse(RemoteObject __ref,RemoteObject _x,RemoteObject _y,RemoteObject _move) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("HandleMouse (b4xdatetemplate) ","b4xdatetemplate",52,__ref.getField(false, "ba"),__ref,123);
|
||||
if (RapidSub.canDelegate("handlemouse")) { return __ref.runUserSub(false, "b4xdatetemplate","handlemouse", __ref, _x, _y, _move);}
|
||||
RemoteObject _boxx = RemoteObject.createImmutable(0);
|
||||
RemoteObject _boxy = RemoteObject.createImmutable(0);
|
||||
RemoteObject _newselectedday = RemoteObject.createImmutable(0);
|
||||
RemoteObject _validday = RemoteObject.createImmutable(false);
|
||||
Debug.locals.put("x", _x);
|
||||
Debug.locals.put("y", _y);
|
||||
Debug.locals.put("move", _move);
|
||||
BA.debugLineNum = 123;BA.debugLine="Private Sub HandleMouse(x As Double, y As Double,";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 124;BA.debugLine="Dim boxX = x / boxW, boxY = y / boxH As Int";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_boxx = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_x,__ref.getField(true,"_boxw" /*RemoteObject*/ )}, "/",0, 0));Debug.locals.put("boxX", _boxx);Debug.locals.put("boxX", _boxx);
|
||||
_boxy = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_y,__ref.getField(true,"_boxh" /*RemoteObject*/ )}, "/",0, 0));Debug.locals.put("boxY", _boxy);Debug.locals.put("boxY", _boxy);
|
||||
BA.debugLineNum = 125;BA.debugLine="Dim newSelectedDay As Int = boxY * 7 + boxX + 1 -";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_newselectedday = RemoteObject.solve(new RemoteObject[] {_boxy,RemoteObject.createImmutable(7),_boxx,RemoteObject.createImmutable(1),__ref.getField(true,"_dayofweekoffset" /*RemoteObject*/ )}, "*++-",3, 1);Debug.locals.put("newSelectedDay", _newselectedday);Debug.locals.put("newSelectedDay", _newselectedday);
|
||||
BA.debugLineNum = 126;BA.debugLine="Dim validDay As Boolean = newSelectedDay > 0 And";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_validday = BA.ObjectToBoolean(RemoteObject.solveBoolean(">",_newselectedday,BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean("k",_newselectedday,BA.numberCast(double.class, __ref.getField(true,"_daysinmonth" /*RemoteObject*/ ))));Debug.locals.put("validDay", _validday);Debug.locals.put("validDay", _validday);
|
||||
BA.debugLineNum = 127;BA.debugLine="If move Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (_move.<Boolean>get().booleanValue()) {
|
||||
BA.debugLineNum = 128;BA.debugLine="If newSelectedDay = tempSelectedDay Then Return";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",_newselectedday,BA.numberCast(double.class, __ref.getField(true,"_tempselectedday" /*RemoteObject*/ )))) {
|
||||
if (true) return RemoteObject.createImmutable("");};
|
||||
BA.debugLineNum = 129;BA.debugLine="cvsBackground.ClearRect(cvsBackground.TargetRect";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cvsbackground" /*RemoteObject*/ ).runVoidMethod ("ClearRect",(Object)(__ref.getField(false,"_cvsbackground" /*RemoteObject*/ ).runMethod(false,"getTargetRect")));
|
||||
BA.debugLineNum = 130;BA.debugLine="tempSelectedDay = newSelectedDay";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_tempselectedday" /*RemoteObject*/ ,_newselectedday);
|
||||
BA.debugLineNum = 131;BA.debugLine="If validDay Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (_validday.<Boolean>get().booleanValue()) {
|
||||
BA.debugLineNum = 132;BA.debugLine="DrawBox(cvsBackground, HighlightedColor, boxX,";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xdatetemplate.class, "_drawbox" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cvsbackground" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_highlightedcolor" /*RemoteObject*/ )),(Object)(_boxx),(Object)(_boxy));
|
||||
};
|
||||
}else {
|
||||
BA.debugLineNum = 135;BA.debugLine="cvsBackground.ClearRect(cvsBackground.TargetRect";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cvsbackground" /*RemoteObject*/ ).runVoidMethod ("ClearRect",(Object)(__ref.getField(false,"_cvsbackground" /*RemoteObject*/ ).runMethod(false,"getTargetRect")));
|
||||
BA.debugLineNum = 136;BA.debugLine="If validDay Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (_validday.<Boolean>get().booleanValue()) {
|
||||
BA.debugLineNum = 137;BA.debugLine="SelectDay(newSelectedDay)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xdatetemplate.class, "_selectday" /*RemoteObject*/ ,(Object)(_newselectedday));
|
||||
BA.debugLineNum = 138;BA.debugLine="If CloseOnSelection Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (__ref.getField(true,"_closeonselection" /*RemoteObject*/ ).<Boolean>get().booleanValue()) {
|
||||
BA.debugLineNum = 139;BA.debugLine="Hide";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xdatetemplate.class, "_hide" /*RemoteObject*/ );
|
||||
}else {
|
||||
BA.debugLineNum = 141;BA.debugLine="DrawDays";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xdatetemplate.class, "_drawdays" /*RemoteObject*/ );
|
||||
};
|
||||
};
|
||||
};
|
||||
BA.debugLineNum = 146;BA.debugLine="cvsBackground.Invalidate";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cvsbackground" /*RemoteObject*/ ).runVoidMethod ("Invalidate");
|
||||
BA.debugLineNum = 147;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _hide(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Hide (b4xdatetemplate) ","b4xdatetemplate",52,__ref.getField(false, "ba"),__ref,149);
|
||||
if (RapidSub.canDelegate("hide")) { return __ref.runUserSub(false, "b4xdatetemplate","hide", __ref);}
|
||||
BA.debugLineNum = 149;BA.debugLine="Private Sub Hide";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 150;BA.debugLine="mDialog.Close(xui.DialogResponse_Positive)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mdialog" /*RemoteObject*/ ).runClassMethod (reparto_mazapa.keymon.lat.b4xdialog.class, "_close" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"DialogResponse_Positive")));
|
||||
BA.debugLineNum = 151;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _initialize(RemoteObject __ref,RemoteObject _ba) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Initialize (b4xdatetemplate) ","b4xdatetemplate",52,__ref.getField(false, "ba"),__ref,37);
|
||||
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "b4xdatetemplate","initialize", __ref, _ba);}
|
||||
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
|
||||
Debug.locals.put("ba", _ba);
|
||||
BA.debugLineNum = 37;BA.debugLine="Public Sub Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 38;BA.debugLine="pnlDialog = xui.CreatePanel(\"\")";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_pnldialog" /*RemoteObject*/ ,__ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(false,"CreatePanel",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable(""))));
|
||||
BA.debugLineNum = 39;BA.debugLine="pnlDialog.SetLayoutAnimated(0, 0, 0, 320dip,300di";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_pnldialog" /*RemoteObject*/ ).runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(b4xdatetemplate.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 320)))),(Object)(b4xdatetemplate.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 300)))));
|
||||
BA.debugLineNum = 40;BA.debugLine="pnlDialog.LoadLayout(\"DateTemplate\")";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_pnldialog" /*RemoteObject*/ ).runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("DateTemplate")),__ref.getField(false, "ba"));
|
||||
BA.debugLineNum = 41;BA.debugLine="pnlDialog.Tag = Me";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_pnldialog" /*RemoteObject*/ ).runMethod(false,"setTag",__ref);
|
||||
BA.debugLineNum = 42;BA.debugLine="month = DateTime.GetMonth(DateTime.Now)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_month" /*RemoteObject*/ ,b4xdatetemplate.__c.getField(false,"DateTime").runMethod(true,"GetMonth",(Object)(b4xdatetemplate.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
|
||||
BA.debugLineNum = 43;BA.debugLine="year = DateTime.GetYear(DateTime.Now)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_year" /*RemoteObject*/ ,b4xdatetemplate.__c.getField(false,"DateTime").runMethod(true,"GetYear",(Object)(b4xdatetemplate.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
|
||||
BA.debugLineNum = 44;BA.debugLine="months = DateUtils.GetMonthsNames";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_months" /*RemoteObject*/ ,b4xdatetemplate._dateutils.runMethod(false,"_getmonthsnames",__ref.getField(false, "ba")));
|
||||
BA.debugLineNum = 45;BA.debugLine="selectedDate = DateTime.Now";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_selecteddate" /*RemoteObject*/ ,b4xdatetemplate.__c.getField(false,"DateTime").runMethod(true,"getNow"));
|
||||
BA.debugLineNum = 46;BA.debugLine="setDate(selectedDate)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xdatetemplate.class, "_setdate" /*RemoteObject*/ ,(Object)(__ref.getField(true,"_selecteddate" /*RemoteObject*/ )));
|
||||
BA.debugLineNum = 47;BA.debugLine="cvs.Initialize(DaysPaneFg)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cvs" /*RemoteObject*/ ).runVoidMethod ("Initialize",(Object)(__ref.getField(false,"_dayspanefg" /*RemoteObject*/ )));
|
||||
BA.debugLineNum = 48;BA.debugLine="cvsBackground.Initialize(DaysPaneBg)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cvsbackground" /*RemoteObject*/ ).runVoidMethod ("Initialize",(Object)(__ref.getField(false,"_dayspanebg" /*RemoteObject*/ )));
|
||||
BA.debugLineNum = 49;BA.debugLine="boxW = cvs.TargetRect.Width / 7";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_boxw" /*RemoteObject*/ ,BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_cvs" /*RemoteObject*/ ).runMethod(false,"getTargetRect").runMethod(true,"getWidth"),RemoteObject.createImmutable(7)}, "/",0, 0)));
|
||||
BA.debugLineNum = 50;BA.debugLine="boxH = cvs.TargetRect.Height / 6";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_boxh" /*RemoteObject*/ ,BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_cvs" /*RemoteObject*/ ).runMethod(false,"getTargetRect").runMethod(true,"getHeight"),RemoteObject.createImmutable(6)}, "/",0, 0)));
|
||||
BA.debugLineNum = 51;BA.debugLine="vCorrection = 5dip";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_vcorrection" /*RemoteObject*/ ,BA.numberCast(float.class, b4xdatetemplate.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 5)))));
|
||||
BA.debugLineNum = 52;BA.debugLine="cvsDays.Initialize(DaysTitlesPane)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cvsdays" /*RemoteObject*/ ).runVoidMethod ("Initialize",(Object)(__ref.getField(false,"_daystitlespane" /*RemoteObject*/ )));
|
||||
BA.debugLineNum = 58;BA.debugLine="DaysOfWeekNames.Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_daysofweeknames" /*RemoteObject*/ ).runVoidMethod ("Initialize");
|
||||
BA.debugLineNum = 59;BA.debugLine="DaysOfWeekNames.AddAll(DateUtils.GetDaysNames)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_daysofweeknames" /*RemoteObject*/ ).runVoidMethod ("AddAll",(Object)(b4xdatetemplate._dateutils.runMethod(false,"_getdaysnames",__ref.getField(false, "ba"))));
|
||||
BA.debugLineNum = 60;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _selectday(RemoteObject __ref,RemoteObject _day) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("SelectDay (b4xdatetemplate) ","b4xdatetemplate",52,__ref.getField(false, "ba"),__ref,115);
|
||||
if (RapidSub.canDelegate("selectday")) { return __ref.runUserSub(false, "b4xdatetemplate","selectday", __ref, _day);}
|
||||
Debug.locals.put("day", _day);
|
||||
BA.debugLineNum = 115;BA.debugLine="Private Sub SelectDay(day As Int)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 116;BA.debugLine="selectedDate = DateUtils.setDate(year, month, day";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_selecteddate" /*RemoteObject*/ ,b4xdatetemplate._dateutils.runMethod(true,"_setdate",__ref.getField(false, "ba"),(Object)(__ref.getField(true,"_year" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_month" /*RemoteObject*/ )),(Object)(_day)));
|
||||
BA.debugLineNum = 117;BA.debugLine="selectedDay = day";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_selectedday" /*RemoteObject*/ ,_day);
|
||||
BA.debugLineNum = 118;BA.debugLine="selectedMonth = month";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_selectedmonth" /*RemoteObject*/ ,__ref.getField(true,"_month" /*RemoteObject*/ ));
|
||||
BA.debugLineNum = 119;BA.debugLine="selectedYear = year";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_selectedyear" /*RemoteObject*/ ,__ref.getField(true,"_year" /*RemoteObject*/ ));
|
||||
BA.debugLineNum = 120;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _setdate(RemoteObject __ref,RemoteObject _date) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("setDate (b4xdatetemplate) ","b4xdatetemplate",52,__ref.getField(false, "ba"),__ref,102);
|
||||
if (RapidSub.canDelegate("setdate")) { return __ref.runUserSub(false, "b4xdatetemplate","setdate", __ref, _date);}
|
||||
Debug.locals.put("date", _date);
|
||||
BA.debugLineNum = 102;BA.debugLine="Public Sub setDate(date As Long)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 104;BA.debugLine="If lblYear.IsInitialized = False Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_lblyear" /*RemoteObject*/ ).runMethod(true,"IsInitialized"),b4xdatetemplate.__c.getField(true,"False"))) {
|
||||
BA.debugLineNum = 105;BA.debugLine="selectedDate = date";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_selecteddate" /*RemoteObject*/ ,_date);
|
||||
BA.debugLineNum = 106;BA.debugLine="Return 'the date will be set after the layout is";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return RemoteObject.createImmutable("");
|
||||
};
|
||||
BA.debugLineNum = 108;BA.debugLine="year = DateTime.GetYear(date)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_year" /*RemoteObject*/ ,b4xdatetemplate.__c.getField(false,"DateTime").runMethod(true,"GetYear",(Object)(_date)));
|
||||
BA.debugLineNum = 109;BA.debugLine="month = DateTime.GetMonth(date)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_month" /*RemoteObject*/ ,b4xdatetemplate.__c.getField(false,"DateTime").runMethod(true,"GetMonth",(Object)(_date)));
|
||||
BA.debugLineNum = 110;BA.debugLine="SelectDay(DateTime.GetDayOfMonth(date))";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xdatetemplate.class, "_selectday" /*RemoteObject*/ ,(Object)(b4xdatetemplate.__c.getField(false,"DateTime").runMethod(true,"GetDayOfMonth",(Object)(_date))));
|
||||
BA.debugLineNum = 111;BA.debugLine="lblYear.Text = year";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_lblyear" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(true,"_year" /*RemoteObject*/ )));
|
||||
BA.debugLineNum = 112;BA.debugLine="lblMonth.Text = months.Get(month - 1)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_lblmonth" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_months" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_month" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "-",1, 1)))));
|
||||
BA.debugLineNum = 113;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _setyearsbuttonstate(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("SetYearsButtonState (b4xdatetemplate) ","b4xdatetemplate",52,__ref.getField(false, "ba"),__ref,86);
|
||||
if (RapidSub.canDelegate("setyearsbuttonstate")) { return __ref.runUserSub(false, "b4xdatetemplate","setyearsbuttonstate", __ref);}
|
||||
BA.debugLineNum = 86;BA.debugLine="Private Sub SetYearsButtonState";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 87;BA.debugLine="btnYearLeft.Enabled = year > MinYear";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_btnyearleft" /*RemoteObject*/ ).runMethod(true,"setEnabled",BA.ObjectToBoolean(RemoteObject.solveBoolean(">",__ref.getField(true,"_year" /*RemoteObject*/ ),BA.numberCast(double.class, __ref.getField(true,"_minyear" /*RemoteObject*/ )))));
|
||||
BA.debugLineNum = 88;BA.debugLine="btnYearRight.Enabled = year < MaxYear";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_btnyearright" /*RemoteObject*/ ).runMethod(true,"setEnabled",BA.ObjectToBoolean(RemoteObject.solveBoolean("<",__ref.getField(true,"_year" /*RemoteObject*/ ),BA.numberCast(double.class, __ref.getField(true,"_maxyear" /*RemoteObject*/ )))));
|
||||
BA.debugLineNum = 89;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static void _show(RemoteObject __ref,RemoteObject _dialog) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Show (b4xdatetemplate) ","b4xdatetemplate",52,__ref.getField(false, "ba"),__ref,176);
|
||||
if (RapidSub.canDelegate("show")) { __ref.runUserSub(false, "b4xdatetemplate","show", __ref, _dialog); return;}
|
||||
ResumableSub_Show rsub = new ResumableSub_Show(null,__ref,_dialog);
|
||||
rsub.resume(null, null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static class ResumableSub_Show extends BA.ResumableSub {
|
||||
public ResumableSub_Show(reparto_mazapa.keymon.lat.b4xdatetemplate parent,RemoteObject __ref,RemoteObject _dialog) {
|
||||
this.parent = parent;
|
||||
this.__ref = __ref;
|
||||
this._dialog = _dialog;
|
||||
}
|
||||
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
|
||||
RemoteObject __ref;
|
||||
reparto_mazapa.keymon.lat.b4xdatetemplate parent;
|
||||
RemoteObject _dialog;
|
||||
RemoteObject _days = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
|
||||
RemoteObject _daysfont = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont");
|
||||
int _i = 0;
|
||||
RemoteObject _d = RemoteObject.createImmutable("");
|
||||
int step4;
|
||||
int limit4;
|
||||
|
||||
@Override
|
||||
public void resume(BA ba, RemoteObject result) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Show (b4xdatetemplate) ","b4xdatetemplate",52,__ref.getField(false, "ba"),__ref,176);
|
||||
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;
|
||||
|
||||
while (true) {
|
||||
switch (state) {
|
||||
case -1:
|
||||
return;
|
||||
|
||||
case 0:
|
||||
//C
|
||||
this.state = 1;
|
||||
Debug.locals.put("_ref", __ref);
|
||||
Debug.locals.put("Dialog", _dialog);
|
||||
BA.debugLineNum = 177;BA.debugLine="Dim days As List = DaysOfWeekNames";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_days = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");
|
||||
_days = __ref.getField(false,"_daysofweeknames" /*RemoteObject*/ );Debug.locals.put("days", _days);Debug.locals.put("days", _days);
|
||||
BA.debugLineNum = 178;BA.debugLine="Dim daysFont As B4XFont = xui.CreateDefaultBoldFo";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_daysfont = __ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(false,"CreateDefaultBoldFont",(Object)(BA.numberCast(float.class, 14)));Debug.locals.put("daysFont", _daysfont);Debug.locals.put("daysFont", _daysfont);
|
||||
BA.debugLineNum = 179;BA.debugLine="cvsDays.ClearRect(cvsDays.TargetRect)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cvsdays" /*RemoteObject*/ ).runVoidMethod ("ClearRect",(Object)(__ref.getField(false,"_cvsdays" /*RemoteObject*/ ).runMethod(false,"getTargetRect")));
|
||||
BA.debugLineNum = 180;BA.debugLine="For i = FirstDay To FirstDay + 7 - 1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) break;
|
||||
|
||||
case 1:
|
||||
//for
|
||||
this.state = 10;
|
||||
step4 = 1;
|
||||
limit4 = RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_firstday" /*RemoteObject*/ ),RemoteObject.createImmutable(7),RemoteObject.createImmutable(1)}, "+-",2, 1).<Integer>get().intValue();
|
||||
_i = __ref.getField(true,"_firstday" /*RemoteObject*/ ).<Integer>get().intValue() ;
|
||||
Debug.locals.put("i", _i);
|
||||
this.state = 11;
|
||||
if (true) break;
|
||||
|
||||
case 11:
|
||||
//C
|
||||
this.state = 10;
|
||||
if ((step4 > 0 && _i <= limit4) || (step4 < 0 && _i >= limit4)) this.state = 3;
|
||||
if (true) break;
|
||||
|
||||
case 12:
|
||||
//C
|
||||
this.state = 11;
|
||||
_i = ((int)(0 + _i + step4)) ;
|
||||
Debug.locals.put("i", _i);
|
||||
if (true) break;
|
||||
|
||||
case 3:
|
||||
//C
|
||||
this.state = 4;
|
||||
BA.debugLineNum = 181;BA.debugLine="Dim d As String = days.Get(i Mod 7)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d = BA.ObjectToString(_days.runMethod(false,"Get",(Object)(RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(_i),RemoteObject.createImmutable(7)}, "%",0, 1))));Debug.locals.put("d", _d);Debug.locals.put("d", _d);
|
||||
BA.debugLineNum = 182;BA.debugLine="If d.Length > 2 Then d = d.SubString2(0, 2)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) break;
|
||||
|
||||
case 4:
|
||||
//if
|
||||
this.state = 9;
|
||||
if (RemoteObject.solveBoolean(">",_d.runMethod(true,"length"),BA.numberCast(double.class, 2))) {
|
||||
this.state = 6;
|
||||
;}if (true) break;
|
||||
|
||||
case 6:
|
||||
//C
|
||||
this.state = 9;
|
||||
_d = _d.runMethod(true,"substring",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 2)));Debug.locals.put("d", _d);
|
||||
if (true) break;
|
||||
|
||||
case 9:
|
||||
//C
|
||||
this.state = 12;
|
||||
;
|
||||
BA.debugLineNum = 183;BA.debugLine="cvsDays.DrawText(d, (i - FirstDay + 0.5) * boxW,";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cvsdays" /*RemoteObject*/ ).runVoidMethod ("DrawText",__ref.getField(false, "ba"),(Object)(_d),(Object)(BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(_i),__ref.getField(true,"_firstday" /*RemoteObject*/ ),RemoteObject.createImmutable(0.5)}, "-+",2, 0)),__ref.getField(true,"_boxw" /*RemoteObject*/ )}, "*",0, 0))),(Object)(BA.numberCast(float.class, parent.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 20))))),(Object)(_daysfont),(Object)(__ref.getField(true,"_daysinweekcolor" /*RemoteObject*/ )),(Object)(BA.getEnumFromString(BA.getDeviceClass("android.graphics.Paint.Align"),RemoteObject.createImmutable("CENTER"))));
|
||||
if (true) break;
|
||||
if (true) break;
|
||||
|
||||
case 10:
|
||||
//C
|
||||
this.state = -1;
|
||||
Debug.locals.put("i", _i);
|
||||
;
|
||||
BA.debugLineNum = 185;BA.debugLine="cvsDays.Invalidate";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_cvsdays" /*RemoteObject*/ ).runVoidMethod ("Invalidate");
|
||||
BA.debugLineNum = 186;BA.debugLine="mDialog = Dialog";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mdialog" /*RemoteObject*/ ,_dialog);
|
||||
BA.debugLineNum = 187;BA.debugLine="DrawDays";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xdatetemplate.class, "_drawdays" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 188;BA.debugLine="PreviousSelectedDate = selectedDate";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_previousselecteddate" /*RemoteObject*/ ,__ref.getField(true,"_selecteddate" /*RemoteObject*/ ));
|
||||
BA.debugLineNum = 189;BA.debugLine="Sleep(0)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "b4xdatetemplate", "show"),BA.numberCast(int.class, 0));
|
||||
this.state = 13;
|
||||
return;
|
||||
case 13:
|
||||
//C
|
||||
this.state = -1;
|
||||
;
|
||||
BA.debugLineNum = 190;BA.debugLine="SetYearsButtonState";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xdatetemplate.class, "_setyearsbuttonstate" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 191;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) break;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
}
|
||||
}
|
||||
@@ -1,61 +0,0 @@
|
||||
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.pc.PCBA;
|
||||
import anywheresoftware.b4a.pc.RemoteObject;
|
||||
|
||||
public class b4xdialog {
|
||||
public static RemoteObject myClass;
|
||||
public b4xdialog() {
|
||||
}
|
||||
public static PCBA staticBA = new PCBA(null, b4xdialog.class);
|
||||
|
||||
public static RemoteObject __c = RemoteObject.declareNull("anywheresoftware.b4a.keywords.Common");
|
||||
public static RemoteObject _xui = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");
|
||||
public static RemoteObject _buttonsheight = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _titlebarheight = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _buttonwidth = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _base = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _backgroundcolor = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _overlaycolor = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _bordercolor = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _bordercornersradius = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _borderwidth = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _buttonscolor = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _buttonstextcolor = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _background = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _blurimageview = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _blurbackground = RemoteObject.createImmutable(false);
|
||||
public static RemoteObject _blurreducescale = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _mparent = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _title = RemoteObject.declareNull("Object");
|
||||
public static RemoteObject _titlebarcolor = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _titlebartextcolor = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _bodytextcolor = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _titlebar = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _putattop = RemoteObject.createImmutable(false);
|
||||
public static RemoteObject _titlebarfont = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont");
|
||||
public static RemoteObject _buttonsfont = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont");
|
||||
public static RemoteObject _buttonstextcolordisabled = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _visibleanimationduration = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _buttonsorder = null;
|
||||
public static RemoteObject _buttonsstate = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
|
||||
public static RemoteObject _dateutils = RemoteObject.declareNull("b4a.example.dateutils");
|
||||
public static reparto_mazapa.keymon.lat.main _main = null;
|
||||
public static reparto_mazapa.keymon.lat.appupdater _appupdater = null;
|
||||
public static reparto_mazapa.keymon.lat.tracker _tracker = null;
|
||||
public static reparto_mazapa.keymon.lat.starter _starter = null;
|
||||
public static reparto_mazapa.keymon.lat.subs _subs = null;
|
||||
public static reparto_mazapa.keymon.lat.firebasemessaging _firebasemessaging = null;
|
||||
public static reparto_mazapa.keymon.lat.foto _foto = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_cliente _mapa_cliente = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_rutas _mapa_rutas = null;
|
||||
public static reparto_mazapa.keymon.lat.newinst2 _newinst2 = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xpages _b4xpages = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xcollections _b4xcollections = null;
|
||||
public static reparto_mazapa.keymon.lat.httputils2service _httputils2service = null;
|
||||
public static reparto_mazapa.keymon.lat.xuiviewsutils _xuiviewsutils = null;
|
||||
public static Object[] GetGlobals(RemoteObject _ref) throws Exception {
|
||||
return new Object[] {"Background",_ref.getField(false, "_background"),"BackgroundColor",_ref.getField(false, "_backgroundcolor"),"Base",_ref.getField(false, "_base"),"BlurBackground",_ref.getField(false, "_blurbackground"),"BlurImageView",_ref.getField(false, "_blurimageview"),"BlurReduceScale",_ref.getField(false, "_blurreducescale"),"BodyTextColor",_ref.getField(false, "_bodytextcolor"),"BorderColor",_ref.getField(false, "_bordercolor"),"BorderCornersRadius",_ref.getField(false, "_bordercornersradius"),"BorderWidth",_ref.getField(false, "_borderwidth"),"ButtonsColor",_ref.getField(false, "_buttonscolor"),"ButtonsFont",_ref.getField(false, "_buttonsfont"),"ButtonsHeight",_ref.getField(false, "_buttonsheight"),"ButtonsOrder",_ref.getField(false, "_buttonsorder"),"ButtonsState",_ref.getField(false, "_buttonsstate"),"ButtonsTextColor",_ref.getField(false, "_buttonstextcolor"),"ButtonsTextColorDisabled",_ref.getField(false, "_buttonstextcolordisabled"),"ButtonWidth",_ref.getField(false, "_buttonwidth"),"DateUtils",_ref.getField(false, "_dateutils"),"mParent",_ref.getField(false, "_mparent"),"OverlayColor",_ref.getField(false, "_overlaycolor"),"PutAtTop",_ref.getField(false, "_putattop"),"Title",_ref.getField(false, "_title"),"TitleBar",_ref.getField(false, "_titlebar"),"TitleBarColor",_ref.getField(false, "_titlebarcolor"),"TitleBarFont",_ref.getField(false, "_titlebarfont"),"TitleBarHeight",_ref.getField(false, "_titlebarheight"),"TitleBarTextColor",_ref.getField(false, "_titlebartextcolor"),"VisibleAnimationDuration",_ref.getField(false, "_visibleanimationduration"),"xui",_ref.getField(false, "_xui")};
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,64 +0,0 @@
|
||||
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.pc.PCBA;
|
||||
import anywheresoftware.b4a.pc.RemoteObject;
|
||||
|
||||
public class b4xfloattextfield {
|
||||
public static RemoteObject myClass;
|
||||
public b4xfloattextfield() {
|
||||
}
|
||||
public static PCBA staticBA = new PCBA(null, b4xfloattextfield.class);
|
||||
|
||||
public static RemoteObject __c = RemoteObject.declareNull("anywheresoftware.b4a.keywords.Common");
|
||||
public static RemoteObject _meventname = RemoteObject.createImmutable("");
|
||||
public static RemoteObject _mcallback = RemoteObject.declareNull("Object");
|
||||
public static RemoteObject _mbase = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _xui = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");
|
||||
public static RemoteObject _mtextfield = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _animationduration = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _largelabeltextsize = RemoteObject.createImmutable(0f);
|
||||
public static RemoteObject _smalllabeltextsize = RemoteObject.createImmutable(0f);
|
||||
public static RemoteObject _largelabel = RemoteObject.createImmutable(false);
|
||||
public static RemoteObject _measuringcanvas = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XCanvas");
|
||||
public static RemoteObject _hintcolor = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _nonfocusedhintcolor = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _hintimageview = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _hinttext = RemoteObject.createImmutable("");
|
||||
public static RemoteObject _hintfont = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont");
|
||||
public static RemoteObject _largefocused = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper");
|
||||
public static RemoteObject _largenotfocused = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper");
|
||||
public static RemoteObject _smallfocused = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper");
|
||||
public static RemoteObject _smallnotfocused = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper");
|
||||
public static RemoteObject _focused = RemoteObject.createImmutable(false);
|
||||
public static RemoteObject _lblclear = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _lblv = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _mprops = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
|
||||
public static RemoteObject _tag = RemoteObject.declareNull("Object");
|
||||
public static RemoteObject _keyboardtype = RemoteObject.createImmutable("");
|
||||
public static RemoteObject _multiline = RemoteObject.createImmutable(false);
|
||||
public static RemoteObject _mnexttextfield = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xfloattextfield");
|
||||
public static RemoteObject _ime = RemoteObject.declareNull("anywheresoftware.b4a.objects.IME");
|
||||
public static RemoteObject _hintlabellargeoffsetx = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _hintlabelsmalloffsety = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _hintlabelsmalloffsetx = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _lastswitchtextfieldtime = RemoteObject.createImmutable(0L);
|
||||
public static RemoteObject _dateutils = RemoteObject.declareNull("b4a.example.dateutils");
|
||||
public static reparto_mazapa.keymon.lat.main _main = null;
|
||||
public static reparto_mazapa.keymon.lat.appupdater _appupdater = null;
|
||||
public static reparto_mazapa.keymon.lat.tracker _tracker = null;
|
||||
public static reparto_mazapa.keymon.lat.starter _starter = null;
|
||||
public static reparto_mazapa.keymon.lat.subs _subs = null;
|
||||
public static reparto_mazapa.keymon.lat.firebasemessaging _firebasemessaging = null;
|
||||
public static reparto_mazapa.keymon.lat.foto _foto = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_cliente _mapa_cliente = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_rutas _mapa_rutas = null;
|
||||
public static reparto_mazapa.keymon.lat.newinst2 _newinst2 = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xpages _b4xpages = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xcollections _b4xcollections = null;
|
||||
public static reparto_mazapa.keymon.lat.httputils2service _httputils2service = null;
|
||||
public static reparto_mazapa.keymon.lat.xuiviewsutils _xuiviewsutils = null;
|
||||
public static Object[] GetGlobals(RemoteObject _ref) throws Exception {
|
||||
return new Object[] {"AnimationDuration",_ref.getField(false, "_animationduration"),"DateUtils",_ref.getField(false, "_dateutils"),"Focused",_ref.getField(false, "_focused"),"HintColor",_ref.getField(false, "_hintcolor"),"HintFont",_ref.getField(false, "_hintfont"),"HintImageView",_ref.getField(false, "_hintimageview"),"HintLabelLargeOffsetX",_ref.getField(false, "_hintlabellargeoffsetx"),"HintLabelSmallOffsetX",_ref.getField(false, "_hintlabelsmalloffsetx"),"HintLabelSmallOffsetY",_ref.getField(false, "_hintlabelsmalloffsety"),"HintText",_ref.getField(false, "_hinttext"),"IME",_ref.getField(false, "_ime"),"KeyboardType",_ref.getField(false, "_keyboardtype"),"LargeFocused",_ref.getField(false, "_largefocused"),"LargeLabel",_ref.getField(false, "_largelabel"),"LargeLabelTextSize",_ref.getField(false, "_largelabeltextsize"),"LargeNotFocused",_ref.getField(false, "_largenotfocused"),"LastSwitchTextFieldTime",_ref.getField(false, "_lastswitchtextfieldtime"),"lblClear",_ref.getField(false, "_lblclear"),"lblV",_ref.getField(false, "_lblv"),"mBase",_ref.getField(false, "_mbase"),"mCallBack",_ref.getField(false, "_mcallback"),"MeasuringCanvas",_ref.getField(false, "_measuringcanvas"),"mEventName",_ref.getField(false, "_meventname"),"mNextTextField",_ref.getField(false, "_mnexttextfield"),"mProps",_ref.getField(false, "_mprops"),"mTextField",_ref.getField(false, "_mtextfield"),"Multiline",_ref.getField(false, "_multiline"),"NonFocusedHintColor",_ref.getField(false, "_nonfocusedhintcolor"),"SmallFocused",_ref.getField(false, "_smallfocused"),"SmallLabelTextSize",_ref.getField(false, "_smalllabeltextsize"),"SmallNotFocused",_ref.getField(false, "_smallnotfocused"),"Tag",_ref.getField(false, "_tag"),"xui",_ref.getField(false, "_xui")};
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,36 +0,0 @@
|
||||
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.pc.PCBA;
|
||||
import anywheresoftware.b4a.pc.RemoteObject;
|
||||
|
||||
public class b4xformatter {
|
||||
public static RemoteObject myClass;
|
||||
public b4xformatter() {
|
||||
}
|
||||
public static PCBA staticBA = new PCBA(null, b4xformatter.class);
|
||||
|
||||
public static RemoteObject __c = RemoteObject.declareNull("anywheresoftware.b4a.keywords.Common");
|
||||
public static RemoteObject _formats = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
|
||||
public static RemoteObject _max_value = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _min_value = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _xui = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");
|
||||
public static RemoteObject _dateutils = RemoteObject.declareNull("b4a.example.dateutils");
|
||||
public static reparto_mazapa.keymon.lat.main _main = null;
|
||||
public static reparto_mazapa.keymon.lat.appupdater _appupdater = null;
|
||||
public static reparto_mazapa.keymon.lat.tracker _tracker = null;
|
||||
public static reparto_mazapa.keymon.lat.starter _starter = null;
|
||||
public static reparto_mazapa.keymon.lat.subs _subs = null;
|
||||
public static reparto_mazapa.keymon.lat.firebasemessaging _firebasemessaging = null;
|
||||
public static reparto_mazapa.keymon.lat.foto _foto = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_cliente _mapa_cliente = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_rutas _mapa_rutas = null;
|
||||
public static reparto_mazapa.keymon.lat.newinst2 _newinst2 = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xpages _b4xpages = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xcollections _b4xcollections = null;
|
||||
public static reparto_mazapa.keymon.lat.httputils2service _httputils2service = null;
|
||||
public static reparto_mazapa.keymon.lat.xuiviewsutils _xuiviewsutils = null;
|
||||
public static Object[] GetGlobals(RemoteObject _ref) throws Exception {
|
||||
return new Object[] {"DateUtils",_ref.getField(false, "_dateutils"),"formats",_ref.getField(false, "_formats"),"MAX_VALUE",_ref.getField(false, "_max_value"),"MIN_VALUE",_ref.getField(false, "_min_value"),"xui",_ref.getField(false, "_xui")};
|
||||
}
|
||||
}
|
||||
@@ -1,506 +0,0 @@
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.BA;
|
||||
import anywheresoftware.b4a.pc.*;
|
||||
|
||||
public class b4xformatter_subs_0 {
|
||||
|
||||
|
||||
public static RemoteObject _addformatdata(RemoteObject __ref,RemoteObject _data,RemoteObject _rangestart,RemoteObject _rangeend,RemoteObject _includeedges) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("AddFormatData (b4xformatter) ","b4xformatter",68,__ref.getField(false, "ba"),__ref,65);
|
||||
if (RapidSub.canDelegate("addformatdata")) { return __ref.runUserSub(false, "b4xformatter","addformatdata", __ref, _data, _rangestart, _rangeend, _includeedges);}
|
||||
RemoteObject _factor = RemoteObject.createImmutable(0);
|
||||
Debug.locals.put("Data", _data);
|
||||
Debug.locals.put("RangeStart", _rangestart);
|
||||
Debug.locals.put("RangeEnd", _rangeend);
|
||||
Debug.locals.put("IncludeEdges", _includeedges);
|
||||
BA.debugLineNum = 65;BA.debugLine="Public Sub AddFormatData (Data As B4XFormatData, R";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 66;BA.debugLine="Dim factor As Double = Power(10, -Data.MaximumFra";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_factor = b4xformatter.__c.runMethod(true,"Power",(Object)(BA.numberCast(double.class, 10)),(Object)(BA.numberCast(double.class, -(double) (0 + _data.getField(true,"MaximumFractions" /*RemoteObject*/ ).<Integer>get().intValue()))));Debug.locals.put("factor", _factor);Debug.locals.put("factor", _factor);
|
||||
BA.debugLineNum = 67;BA.debugLine="If IncludeEdges = False Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",_includeedges,b4xformatter.__c.getField(true,"False"))) {
|
||||
BA.debugLineNum = 68;BA.debugLine="RangeStart = RangeStart + factor";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_rangestart = RemoteObject.solve(new RemoteObject[] {_rangestart,_factor}, "+",1, 0);Debug.locals.put("RangeStart", _rangestart);
|
||||
BA.debugLineNum = 69;BA.debugLine="RangeEnd = RangeEnd - factor";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_rangeend = RemoteObject.solve(new RemoteObject[] {_rangeend,_factor}, "-",1, 0);Debug.locals.put("RangeEnd", _rangeend);
|
||||
};
|
||||
BA.debugLineNum = 71;BA.debugLine="RangeStart = RangeStart - factor / 2";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_rangestart = RemoteObject.solve(new RemoteObject[] {_rangestart,_factor,RemoteObject.createImmutable(2)}, "-/",1, 0);Debug.locals.put("RangeStart", _rangestart);
|
||||
BA.debugLineNum = 72;BA.debugLine="RangeEnd = RangeEnd + factor / 2";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_rangeend = RemoteObject.solve(new RemoteObject[] {_rangeend,_factor,RemoteObject.createImmutable(2)}, "+/",1, 0);Debug.locals.put("RangeEnd", _rangeend);
|
||||
BA.debugLineNum = 73;BA.debugLine="Data.RangeStart = RangeStart";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_data.setField ("RangeStart" /*RemoteObject*/ ,_rangestart);
|
||||
BA.debugLineNum = 74;BA.debugLine="Data.RangeEnd = RangeEnd";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_data.setField ("RangeEnd" /*RemoteObject*/ ,_rangeend);
|
||||
BA.debugLineNum = 75;BA.debugLine="formats.Add(Data)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_formats" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)((_data)));
|
||||
BA.debugLineNum = 76;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _class_globals(RemoteObject __ref) throws Exception{
|
||||
//BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
|
||||
//BA.debugLineNum = 2;BA.debugLine="Type B4XFormatData (Prefix As String, Postfix As";
|
||||
;
|
||||
//BA.debugLineNum = 6;BA.debugLine="Private formats As List";
|
||||
b4xformatter._formats = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_formats",b4xformatter._formats);
|
||||
//BA.debugLineNum = 7;BA.debugLine="Public Const MAX_VALUE = 0x7fffffff, MIN_VALUE =";
|
||||
b4xformatter._max_value = BA.numberCast(int.class, ((int)0x7fffffff));__ref.setField("_max_value",b4xformatter._max_value);
|
||||
b4xformatter._min_value = BA.numberCast(int.class, ((int)0x80000000));__ref.setField("_min_value",b4xformatter._min_value);
|
||||
//BA.debugLineNum = 9;BA.debugLine="Private xui As XUI";
|
||||
b4xformatter._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");__ref.setField("_xui",b4xformatter._xui);
|
||||
//BA.debugLineNum = 11;BA.debugLine="End Sub";
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
public static RemoteObject _copyformatdata(RemoteObject __ref,RemoteObject _data) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("CopyFormatData (b4xformatter) ","b4xformatter",68,__ref.getField(false, "ba"),__ref,38);
|
||||
if (RapidSub.canDelegate("copyformatdata")) { return __ref.runUserSub(false, "b4xformatter","copyformatdata", __ref, _data);}
|
||||
RemoteObject _d = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xformatter._b4xformatdata");
|
||||
Debug.locals.put("Data", _data);
|
||||
BA.debugLineNum = 38;BA.debugLine="Public Sub CopyFormatData (Data As B4XFormatData)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 39;BA.debugLine="Dim d As B4XFormatData";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d = RemoteObject.createNew ("reparto_mazapa.keymon.lat.b4xformatter._b4xformatdata");Debug.locals.put("d", _d);
|
||||
BA.debugLineNum = 40;BA.debugLine="d.Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d.runVoidMethod ("Initialize");
|
||||
BA.debugLineNum = 41;BA.debugLine="d.DecimalPoint = Data.DecimalPoint";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d.setField ("DecimalPoint" /*RemoteObject*/ ,_data.getField(true,"DecimalPoint" /*RemoteObject*/ ));
|
||||
BA.debugLineNum = 42;BA.debugLine="If Data.FormatFont.IsInitialized Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (_data.getField(false,"FormatFont" /*RemoteObject*/ ).runMethod(true,"getIsInitialized").<Boolean>get().booleanValue()) {
|
||||
BA.debugLineNum = 44;BA.debugLine="d.FormatFont = xui.CreateFont(Data.FormatFont.To";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d.setField ("FormatFont" /*RemoteObject*/ ,__ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(false,"CreateFont",(Object)((_data.getField(false,"FormatFont" /*RemoteObject*/ ).runMethod(false,"ToNativeFont").getObject())),(Object)(_data.getField(false,"FormatFont" /*RemoteObject*/ ).runMethod(true,"getSize"))));
|
||||
};
|
||||
BA.debugLineNum = 47;BA.debugLine="d.GroupingCharacter = Data.GroupingCharacter";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d.setField ("GroupingCharacter" /*RemoteObject*/ ,_data.getField(true,"GroupingCharacter" /*RemoteObject*/ ));
|
||||
BA.debugLineNum = 48;BA.debugLine="d.MaximumFractions = Data.MaximumFractions";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d.setField ("MaximumFractions" /*RemoteObject*/ ,_data.getField(true,"MaximumFractions" /*RemoteObject*/ ));
|
||||
BA.debugLineNum = 49;BA.debugLine="d.MinimumFractions = Data.MinimumFractions";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d.setField ("MinimumFractions" /*RemoteObject*/ ,_data.getField(true,"MinimumFractions" /*RemoteObject*/ ));
|
||||
BA.debugLineNum = 50;BA.debugLine="d.MinimumIntegers = Data.MinimumIntegers";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d.setField ("MinimumIntegers" /*RemoteObject*/ ,_data.getField(true,"MinimumIntegers" /*RemoteObject*/ ));
|
||||
BA.debugLineNum = 51;BA.debugLine="d.Postfix = Data.Postfix";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d.setField ("Postfix" /*RemoteObject*/ ,_data.getField(true,"Postfix" /*RemoteObject*/ ));
|
||||
BA.debugLineNum = 52;BA.debugLine="d.Prefix = Data.Prefix";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d.setField ("Prefix" /*RemoteObject*/ ,_data.getField(true,"Prefix" /*RemoteObject*/ ));
|
||||
BA.debugLineNum = 53;BA.debugLine="d.RangeEnd = Data.RangeEnd";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d.setField ("RangeEnd" /*RemoteObject*/ ,_data.getField(true,"RangeEnd" /*RemoteObject*/ ));
|
||||
BA.debugLineNum = 54;BA.debugLine="d.RangeStart = Data.RangeStart";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d.setField ("RangeStart" /*RemoteObject*/ ,_data.getField(true,"RangeStart" /*RemoteObject*/ ));
|
||||
BA.debugLineNum = 55;BA.debugLine="d.RemoveMinusSign = Data.RemoveMinusSign";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d.setField ("RemoveMinusSign" /*RemoteObject*/ ,_data.getField(true,"RemoveMinusSign" /*RemoteObject*/ ));
|
||||
BA.debugLineNum = 56;BA.debugLine="d.TextColor = Data.TextColor";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d.setField ("TextColor" /*RemoteObject*/ ,_data.getField(true,"TextColor" /*RemoteObject*/ ));
|
||||
BA.debugLineNum = 57;BA.debugLine="d.FractionPaddingChar = Data.FractionPaddingChar";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d.setField ("FractionPaddingChar" /*RemoteObject*/ ,_data.getField(true,"FractionPaddingChar" /*RemoteObject*/ ));
|
||||
BA.debugLineNum = 58;BA.debugLine="d.IntegerPaddingChar = Data.IntegerPaddingChar";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d.setField ("IntegerPaddingChar" /*RemoteObject*/ ,_data.getField(true,"IntegerPaddingChar" /*RemoteObject*/ ));
|
||||
BA.debugLineNum = 59;BA.debugLine="Return d";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return _d;
|
||||
BA.debugLineNum = 60;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _createdefaultformat(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("CreateDefaultFormat (b4xformatter) ","b4xformatter",68,__ref.getField(false, "ba"),__ref,19);
|
||||
if (RapidSub.canDelegate("createdefaultformat")) { return __ref.runUserSub(false, "b4xformatter","createdefaultformat", __ref);}
|
||||
RemoteObject _d = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xformatter._b4xformatdata");
|
||||
BA.debugLineNum = 19;BA.debugLine="Private Sub CreateDefaultFormat As B4XFormatData";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 20;BA.debugLine="Dim d As B4XFormatData";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d = RemoteObject.createNew ("reparto_mazapa.keymon.lat.b4xformatter._b4xformatdata");Debug.locals.put("d", _d);
|
||||
BA.debugLineNum = 21;BA.debugLine="d.Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d.runVoidMethod ("Initialize");
|
||||
BA.debugLineNum = 22;BA.debugLine="d.GroupingCharacter = \",\"";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d.setField ("GroupingCharacter" /*RemoteObject*/ ,BA.ObjectToString(","));
|
||||
BA.debugLineNum = 23;BA.debugLine="d.DecimalPoint = \".\"";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d.setField ("DecimalPoint" /*RemoteObject*/ ,BA.ObjectToString("."));
|
||||
BA.debugLineNum = 24;BA.debugLine="d.MaximumFractions = 3";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d.setField ("MaximumFractions" /*RemoteObject*/ ,BA.numberCast(int.class, 3));
|
||||
BA.debugLineNum = 25;BA.debugLine="d.MinimumIntegers = 1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d.setField ("MinimumIntegers" /*RemoteObject*/ ,BA.numberCast(int.class, 1));
|
||||
BA.debugLineNum = 26;BA.debugLine="d.IntegerPaddingChar = \"0\"";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d.setField ("IntegerPaddingChar" /*RemoteObject*/ ,BA.ObjectToString("0"));
|
||||
BA.debugLineNum = 27;BA.debugLine="d.FractionPaddingChar = \"0\"";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d.setField ("FractionPaddingChar" /*RemoteObject*/ ,BA.ObjectToString("0"));
|
||||
BA.debugLineNum = 28;BA.debugLine="Return d";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return _d;
|
||||
BA.debugLineNum = 29;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _format(RemoteObject __ref,RemoteObject _number) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Format (b4xformatter) ","b4xformatter",68,__ref.getField(false, "ba"),__ref,92);
|
||||
if (RapidSub.canDelegate("format")) { return __ref.runUserSub(false, "b4xformatter","format", __ref, _number);}
|
||||
RemoteObject _data = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xformatter._b4xformatdata");
|
||||
RemoteObject _sb = RemoteObject.declareNull("anywheresoftware.b4a.keywords.StringBuilderWrapper");
|
||||
RemoteObject _numberstartindex = RemoteObject.createImmutable(0);
|
||||
RemoteObject _factor = RemoteObject.createImmutable(0);
|
||||
RemoteObject _whole = RemoteObject.createImmutable(0);
|
||||
RemoteObject _frac = RemoteObject.createImmutable(0);
|
||||
RemoteObject _g = RemoteObject.createImmutable(0);
|
||||
RemoteObject _fracstartindex = RemoteObject.createImmutable(0);
|
||||
RemoteObject _lastzerocount = RemoteObject.createImmutable(0);
|
||||
RemoteObject _multipler = RemoteObject.createImmutable(0);
|
||||
RemoteObject _w = RemoteObject.createImmutable(0);
|
||||
Debug.locals.put("Number", _number);
|
||||
BA.debugLineNum = 92;BA.debugLine="Public Sub Format (Number As Double) As String";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 93;BA.debugLine="If Number < MIN_VALUE Or Number > MAX_VALUE Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("<",_number,BA.numberCast(double.class, __ref.getField(true,"_min_value" /*RemoteObject*/ ))) || RemoteObject.solveBoolean(">",_number,BA.numberCast(double.class, __ref.getField(true,"_max_value" /*RemoteObject*/ )))) {
|
||||
if (true) return BA.ObjectToString("OVERFLOW");};
|
||||
BA.debugLineNum = 94;BA.debugLine="Dim data As B4XFormatData = GetFormatData (Number";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_data = __ref.runClassMethod (reparto_mazapa.keymon.lat.b4xformatter.class, "_getformatdata" /*RemoteObject*/ ,(Object)(_number));Debug.locals.put("data", _data);Debug.locals.put("data", _data);
|
||||
BA.debugLineNum = 95;BA.debugLine="Dim sb As StringBuilder";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_sb = RemoteObject.createNew ("anywheresoftware.b4a.keywords.StringBuilderWrapper");Debug.locals.put("sb", _sb);
|
||||
BA.debugLineNum = 96;BA.debugLine="sb.Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_sb.runVoidMethod ("Initialize");
|
||||
BA.debugLineNum = 97;BA.debugLine="sb.Append(data.Prefix)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_sb.runVoidMethod ("Append",(Object)(_data.getField(true,"Prefix" /*RemoteObject*/ )));
|
||||
BA.debugLineNum = 98;BA.debugLine="Dim NumberStartIndex As Int = sb.Length";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_numberstartindex = _sb.runMethod(true,"getLength");Debug.locals.put("NumberStartIndex", _numberstartindex);Debug.locals.put("NumberStartIndex", _numberstartindex);
|
||||
BA.debugLineNum = 99;BA.debugLine="Dim factor As Double = Power(10, -data.MaximumFra";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_factor = RemoteObject.solve(new RemoteObject[] {b4xformatter.__c.runMethod(true,"Power",(Object)(BA.numberCast(double.class, 10)),(Object)(BA.numberCast(double.class, -(double) (0 + _data.getField(true,"MaximumFractions" /*RemoteObject*/ ).<Integer>get().intValue())-(double) (0 + 1)))),RemoteObject.createImmutable(5)}, "*",0, 0);Debug.locals.put("factor", _factor);Debug.locals.put("factor", _factor);
|
||||
BA.debugLineNum = 100;BA.debugLine="If Number < -factor And data.RemoveMinusSign = Fa";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("<",_number,BA.numberCast(double.class, -_factor.<Double>get().doubleValue())) && RemoteObject.solveBoolean("=",_data.getField(true,"RemoveMinusSign" /*RemoteObject*/ ),b4xformatter.__c.getField(true,"False"))) {
|
||||
BA.debugLineNum = 101;BA.debugLine="sb.Append(\"-\")";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_sb.runVoidMethod ("Append",(Object)(RemoteObject.createImmutable("-")));
|
||||
BA.debugLineNum = 102;BA.debugLine="NumberStartIndex = NumberStartIndex + 1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_numberstartindex = RemoteObject.solve(new RemoteObject[] {_numberstartindex,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("NumberStartIndex", _numberstartindex);
|
||||
};
|
||||
BA.debugLineNum = 104;BA.debugLine="Number = Abs(Number) + factor";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_number = RemoteObject.solve(new RemoteObject[] {b4xformatter.__c.runMethod(true,"Abs",(Object)(_number)),_factor}, "+",1, 0);Debug.locals.put("Number", _number);
|
||||
BA.debugLineNum = 105;BA.debugLine="Dim whole As Int = Number";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_whole = BA.numberCast(int.class, _number);Debug.locals.put("whole", _whole);Debug.locals.put("whole", _whole);
|
||||
BA.debugLineNum = 106;BA.debugLine="Dim frac As Double = Number - whole";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_frac = RemoteObject.solve(new RemoteObject[] {_number,_whole}, "-",1, 0);Debug.locals.put("frac", _frac);Debug.locals.put("frac", _frac);
|
||||
BA.debugLineNum = 107;BA.debugLine="Dim g As Int";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_g = RemoteObject.createImmutable(0);Debug.locals.put("g", _g);
|
||||
BA.debugLineNum = 108;BA.debugLine="Do While whole > 0";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
while (RemoteObject.solveBoolean(">",_whole,BA.numberCast(double.class, 0))) {
|
||||
BA.debugLineNum = 109;BA.debugLine="If g > 0 And g Mod 3 = 0 And data.GroupingCharac";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean(">",_g,BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean("=",RemoteObject.solve(new RemoteObject[] {_g,RemoteObject.createImmutable(3)}, "%",0, 1),BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean(">",_data.getField(true,"GroupingCharacter" /*RemoteObject*/ ).runMethod(true,"length"),BA.numberCast(double.class, 0))) {
|
||||
BA.debugLineNum = 110;BA.debugLine="sb.Insert(NumberStartIndex, data.GroupingCharac";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_sb.runVoidMethod ("Insert",(Object)(_numberstartindex),(Object)(_data.getField(true,"GroupingCharacter" /*RemoteObject*/ )));
|
||||
};
|
||||
BA.debugLineNum = 112;BA.debugLine="g = g + 1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_g = RemoteObject.solve(new RemoteObject[] {_g,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("g", _g);
|
||||
BA.debugLineNum = 113;BA.debugLine="sb.Insert(NumberStartIndex, whole Mod 10)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_sb.runVoidMethod ("Insert",(Object)(_numberstartindex),(Object)(BA.NumberToString(RemoteObject.solve(new RemoteObject[] {_whole,RemoteObject.createImmutable(10)}, "%",0, 1))));
|
||||
BA.debugLineNum = 114;BA.debugLine="whole = whole / 10";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_whole = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_whole,RemoteObject.createImmutable(10)}, "/",0, 0));Debug.locals.put("whole", _whole);
|
||||
}
|
||||
;
|
||||
BA.debugLineNum = 116;BA.debugLine="Do While sb.Length - NumberStartIndex < data.Mini";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
while (RemoteObject.solveBoolean("<",RemoteObject.solve(new RemoteObject[] {_sb.runMethod(true,"getLength"),_numberstartindex}, "-",1, 1),BA.numberCast(double.class, _data.getField(true,"MinimumIntegers" /*RemoteObject*/ )))) {
|
||||
BA.debugLineNum = 117;BA.debugLine="sb.Insert(NumberStartIndex, data.IntegerPaddingC";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_sb.runVoidMethod ("Insert",(Object)(_numberstartindex),(Object)(_data.getField(true,"IntegerPaddingChar" /*RemoteObject*/ )));
|
||||
}
|
||||
;
|
||||
BA.debugLineNum = 119;BA.debugLine="If data.MaximumFractions > 0 And (data.MinimumFra";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean(">",_data.getField(true,"MaximumFractions" /*RemoteObject*/ ),BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean(".",BA.ObjectToBoolean((RemoteObject.solveBoolean(">",_data.getField(true,"MinimumFractions" /*RemoteObject*/ ),BA.numberCast(double.class, 0)) || RemoteObject.solveBoolean(">",_frac,BA.numberCast(double.class, 0)))))) {
|
||||
BA.debugLineNum = 120;BA.debugLine="Dim FracStartIndex As Int = sb.Length";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_fracstartindex = _sb.runMethod(true,"getLength");Debug.locals.put("FracStartIndex", _fracstartindex);Debug.locals.put("FracStartIndex", _fracstartindex);
|
||||
BA.debugLineNum = 121;BA.debugLine="Dim LastZeroCount As Int";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_lastzerocount = RemoteObject.createImmutable(0);Debug.locals.put("LastZeroCount", _lastzerocount);
|
||||
BA.debugLineNum = 122;BA.debugLine="Dim Multipler As Int = 10";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_multipler = BA.numberCast(int.class, 10);Debug.locals.put("Multipler", _multipler);Debug.locals.put("Multipler", _multipler);
|
||||
BA.debugLineNum = 123;BA.debugLine="Do While frac >= 2 * factor And sb.Length - Frac";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
while (RemoteObject.solveBoolean("g",_frac,RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(2),_factor}, "*",0, 0)) && RemoteObject.solveBoolean("<",RemoteObject.solve(new RemoteObject[] {_sb.runMethod(true,"getLength"),_fracstartindex}, "-",1, 1),BA.numberCast(double.class, _data.getField(true,"MaximumFractions" /*RemoteObject*/ )))) {
|
||||
BA.debugLineNum = 124;BA.debugLine="Dim w As Int = (frac * Multipler)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_w = BA.numberCast(int.class, (RemoteObject.solve(new RemoteObject[] {_frac,_multipler}, "*",0, 0)));Debug.locals.put("w", _w);Debug.locals.put("w", _w);
|
||||
BA.debugLineNum = 125;BA.debugLine="w = w Mod 10";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_w = RemoteObject.solve(new RemoteObject[] {_w,RemoteObject.createImmutable(10)}, "%",0, 1);Debug.locals.put("w", _w);
|
||||
BA.debugLineNum = 126;BA.debugLine="If w = 0 Then LastZeroCount = LastZeroCount + 1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",_w,BA.numberCast(double.class, 0))) {
|
||||
_lastzerocount = RemoteObject.solve(new RemoteObject[] {_lastzerocount,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("LastZeroCount", _lastzerocount);}
|
||||
else {
|
||||
_lastzerocount = BA.numberCast(int.class, 0);Debug.locals.put("LastZeroCount", _lastzerocount);};
|
||||
BA.debugLineNum = 127;BA.debugLine="sb.Append(w)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_sb.runVoidMethod ("Append",(Object)(BA.NumberToString(_w)));
|
||||
BA.debugLineNum = 128;BA.debugLine="Multipler = Multipler * 10";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_multipler = RemoteObject.solve(new RemoteObject[] {_multipler,RemoteObject.createImmutable(10)}, "*",0, 1);Debug.locals.put("Multipler", _multipler);
|
||||
}
|
||||
;
|
||||
BA.debugLineNum = 130;BA.debugLine="If data.FractionPaddingChar <> \"0\" And LastZeroC";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("!",_data.getField(true,"FractionPaddingChar" /*RemoteObject*/ ),BA.ObjectToString("0")) && RemoteObject.solveBoolean(">",_lastzerocount,BA.numberCast(double.class, 0))) {
|
||||
BA.debugLineNum = 131;BA.debugLine="sb.Remove(sb.Length - LastZeroCount, sb.Length)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_sb.runVoidMethod ("Remove",(Object)(RemoteObject.solve(new RemoteObject[] {_sb.runMethod(true,"getLength"),_lastzerocount}, "-",1, 1)),(Object)(_sb.runMethod(true,"getLength")));
|
||||
BA.debugLineNum = 132;BA.debugLine="LastZeroCount = 0";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_lastzerocount = BA.numberCast(int.class, 0);Debug.locals.put("LastZeroCount", _lastzerocount);
|
||||
};
|
||||
BA.debugLineNum = 134;BA.debugLine="Do While sb.Length - FracStartIndex < data.Minim";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
while (RemoteObject.solveBoolean("<",RemoteObject.solve(new RemoteObject[] {_sb.runMethod(true,"getLength"),_fracstartindex}, "-",1, 1),BA.numberCast(double.class, _data.getField(true,"MinimumFractions" /*RemoteObject*/ )))) {
|
||||
BA.debugLineNum = 135;BA.debugLine="sb.Append(data.FractionPaddingChar)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_sb.runVoidMethod ("Append",(Object)(_data.getField(true,"FractionPaddingChar" /*RemoteObject*/ )));
|
||||
BA.debugLineNum = 136;BA.debugLine="LastZeroCount = 0";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_lastzerocount = BA.numberCast(int.class, 0);Debug.locals.put("LastZeroCount", _lastzerocount);
|
||||
}
|
||||
;
|
||||
BA.debugLineNum = 138;BA.debugLine="LastZeroCount = Min(LastZeroCount, sb.Length - F";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_lastzerocount = BA.numberCast(int.class, b4xformatter.__c.runMethod(true,"Min",(Object)(BA.numberCast(double.class, _lastzerocount)),(Object)(BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {_sb.runMethod(true,"getLength"),_fracstartindex,_data.getField(true,"MinimumFractions" /*RemoteObject*/ )}, "--",2, 1)))));Debug.locals.put("LastZeroCount", _lastzerocount);
|
||||
BA.debugLineNum = 139;BA.debugLine="If LastZeroCount > 0 Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean(">",_lastzerocount,BA.numberCast(double.class, 0))) {
|
||||
BA.debugLineNum = 140;BA.debugLine="sb.Remove(sb.Length - LastZeroCount, sb.Length)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_sb.runVoidMethod ("Remove",(Object)(RemoteObject.solve(new RemoteObject[] {_sb.runMethod(true,"getLength"),_lastzerocount}, "-",1, 1)),(Object)(_sb.runMethod(true,"getLength")));
|
||||
};
|
||||
BA.debugLineNum = 142;BA.debugLine="If sb.Length > FracStartIndex Then sb.Insert(Fra";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean(">",_sb.runMethod(true,"getLength"),BA.numberCast(double.class, _fracstartindex))) {
|
||||
_sb.runVoidMethod ("Insert",(Object)(_fracstartindex),(Object)(_data.getField(true,"DecimalPoint" /*RemoteObject*/ )));};
|
||||
};
|
||||
BA.debugLineNum = 144;BA.debugLine="sb.Append(data.Postfix)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_sb.runVoidMethod ("Append",(Object)(_data.getField(true,"Postfix" /*RemoteObject*/ )));
|
||||
BA.debugLineNum = 145;BA.debugLine="Return sb.ToString";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return _sb.runMethod(true,"ToString");
|
||||
BA.debugLineNum = 146;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _formatlabel(RemoteObject __ref,RemoteObject _number,RemoteObject _label) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("FormatLabel (b4xformatter) ","b4xformatter",68,__ref.getField(false, "ba"),__ref,150);
|
||||
if (RapidSub.canDelegate("formatlabel")) { return __ref.runUserSub(false, "b4xformatter","formatlabel", __ref, _number, _label);}
|
||||
RemoteObject _data = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xformatter._b4xformatdata");
|
||||
Debug.locals.put("Number", _number);
|
||||
Debug.locals.put("Label", _label);
|
||||
BA.debugLineNum = 150;BA.debugLine="Public Sub FormatLabel (Number As Double, Label As";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 151;BA.debugLine="Label.Text = Format(Number)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_label.runMethod(true,"setText",BA.ObjectToCharSequence(__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xformatter.class, "_format" /*RemoteObject*/ ,(Object)(_number))));
|
||||
BA.debugLineNum = 152;BA.debugLine="Dim data As B4XFormatData = GetFormatData(Number)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_data = __ref.runClassMethod (reparto_mazapa.keymon.lat.b4xformatter.class, "_getformatdata" /*RemoteObject*/ ,(Object)(_number));Debug.locals.put("data", _data);Debug.locals.put("data", _data);
|
||||
BA.debugLineNum = 153;BA.debugLine="If data.TextColor <> 0 Then Label.TextColor = dat";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("!",_data.getField(true,"TextColor" /*RemoteObject*/ ),BA.numberCast(double.class, 0))) {
|
||||
_label.runMethod(true,"setTextColor",_data.getField(true,"TextColor" /*RemoteObject*/ ));};
|
||||
BA.debugLineNum = 154;BA.debugLine="If data.FormatFont.IsInitialized Then Label.Font";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (_data.getField(false,"FormatFont" /*RemoteObject*/ ).runMethod(true,"getIsInitialized").<Boolean>get().booleanValue()) {
|
||||
_label.runMethod(false,"setFont",_data.getField(false,"FormatFont" /*RemoteObject*/ ));};
|
||||
BA.debugLineNum = 155;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getdefaultformat(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("GetDefaultFormat (b4xformatter) ","b4xformatter",68,__ref.getField(false, "ba"),__ref,78);
|
||||
if (RapidSub.canDelegate("getdefaultformat")) { return __ref.runUserSub(false, "b4xformatter","getdefaultformat", __ref);}
|
||||
BA.debugLineNum = 78;BA.debugLine="Public Sub GetDefaultFormat As B4XFormatData";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 79;BA.debugLine="Return formats.Get(0)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return (__ref.getField(false,"_formats" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, 0))));
|
||||
BA.debugLineNum = 80;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getformatdata(RemoteObject __ref,RemoteObject _number) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("GetFormatData (b4xformatter) ","b4xformatter",68,__ref.getField(false, "ba"),__ref,83);
|
||||
if (RapidSub.canDelegate("getformatdata")) { return __ref.runUserSub(false, "b4xformatter","getformatdata", __ref, _number);}
|
||||
int _i = 0;
|
||||
RemoteObject _d = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xformatter._b4xformatdata");
|
||||
Debug.locals.put("Number", _number);
|
||||
BA.debugLineNum = 83;BA.debugLine="Public Sub GetFormatData (Number As Double) As B4X";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 84;BA.debugLine="For i = formats.Size - 1 To 1 Step - 1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
{
|
||||
final int step1 = -1;
|
||||
final int limit1 = 1;
|
||||
_i = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_formats" /*RemoteObject*/ ).runMethod(true,"getSize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue() ;
|
||||
for (;(step1 > 0 && _i <= limit1) || (step1 < 0 && _i >= limit1) ;_i = ((int)(0 + _i + step1)) ) {
|
||||
Debug.locals.put("i", _i);
|
||||
BA.debugLineNum = 85;BA.debugLine="Dim d As B4XFormatData = formats.Get(i)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d = (__ref.getField(false,"_formats" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, _i))));Debug.locals.put("d", _d);Debug.locals.put("d", _d);
|
||||
BA.debugLineNum = 86;BA.debugLine="If Number <= d.RangeEnd And Number >= d.RangeSta";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("k",_number,_d.getField(true,"RangeEnd" /*RemoteObject*/ )) && RemoteObject.solveBoolean("g",_number,_d.getField(true,"RangeStart" /*RemoteObject*/ ))) {
|
||||
if (true) return _d;};
|
||||
}
|
||||
}Debug.locals.put("i", _i);
|
||||
;
|
||||
BA.debugLineNum = 88;BA.debugLine="Return formats.Get(0)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return (__ref.getField(false,"_formats" /*RemoteObject*/ ).runMethod(false,"Get",(Object)(BA.numberCast(int.class, 0))));
|
||||
BA.debugLineNum = 89;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _initialize(RemoteObject __ref,RemoteObject _ba) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Initialize (b4xformatter) ","b4xformatter",68,__ref.getField(false, "ba"),__ref,13);
|
||||
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "b4xformatter","initialize", __ref, _ba);}
|
||||
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
|
||||
RemoteObject _d = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xformatter._b4xformatdata");
|
||||
Debug.locals.put("ba", _ba);
|
||||
BA.debugLineNum = 13;BA.debugLine="Public Sub Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 14;BA.debugLine="formats.Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_formats" /*RemoteObject*/ ).runVoidMethod ("Initialize");
|
||||
BA.debugLineNum = 15;BA.debugLine="Dim d As B4XFormatData = CreateDefaultFormat";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_d = __ref.runClassMethod (reparto_mazapa.keymon.lat.b4xformatter.class, "_createdefaultformat" /*RemoteObject*/ );Debug.locals.put("d", _d);Debug.locals.put("d", _d);
|
||||
BA.debugLineNum = 16;BA.debugLine="AddFormatData(d, MIN_VALUE, MAX_VALUE, True)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xformatter.class, "_addformatdata" /*RemoteObject*/ ,(Object)(_d),(Object)(BA.numberCast(double.class, __ref.getField(true,"_min_value" /*RemoteObject*/ ))),(Object)(BA.numberCast(double.class, __ref.getField(true,"_max_value" /*RemoteObject*/ ))),(Object)(b4xformatter.__c.getField(true,"True")));
|
||||
BA.debugLineNum = 17;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _newformatdata(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("NewFormatData (b4xformatter) ","b4xformatter",68,__ref.getField(false, "ba"),__ref,32);
|
||||
if (RapidSub.canDelegate("newformatdata")) { return __ref.runUserSub(false, "b4xformatter","newformatdata", __ref);}
|
||||
BA.debugLineNum = 32;BA.debugLine="Public Sub NewFormatData As B4XFormatData";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 33;BA.debugLine="Return CopyFormatData(GetDefaultFormat)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.runClassMethod (reparto_mazapa.keymon.lat.b4xformatter.class, "_copyformatdata" /*RemoteObject*/ ,(Object)(__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xformatter.class, "_getdefaultformat" /*RemoteObject*/ )));
|
||||
BA.debugLineNum = 34;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.pc.PCBA;
|
||||
import anywheresoftware.b4a.pc.RemoteObject;
|
||||
|
||||
public class b4ximageview {
|
||||
public static RemoteObject myClass;
|
||||
public b4ximageview() {
|
||||
}
|
||||
public static PCBA staticBA = new PCBA(null, b4ximageview.class);
|
||||
|
||||
public static RemoteObject __c = RemoteObject.declareNull("anywheresoftware.b4a.keywords.Common");
|
||||
public static RemoteObject _meventname = RemoteObject.createImmutable("");
|
||||
public static RemoteObject _mcallback = RemoteObject.declareNull("Object");
|
||||
public static RemoteObject _mbase = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _xui = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");
|
||||
public static RemoteObject _tag = RemoteObject.declareNull("Object");
|
||||
public static RemoteObject _iv = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _mresizemode = RemoteObject.createImmutable("");
|
||||
public static RemoteObject _mround = RemoteObject.createImmutable(false);
|
||||
public static RemoteObject _mbitmap = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper");
|
||||
public static RemoteObject _mbackgroundcolor = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _mcornersradius = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _dateutils = RemoteObject.declareNull("b4a.example.dateutils");
|
||||
public static reparto_mazapa.keymon.lat.main _main = null;
|
||||
public static reparto_mazapa.keymon.lat.appupdater _appupdater = null;
|
||||
public static reparto_mazapa.keymon.lat.tracker _tracker = null;
|
||||
public static reparto_mazapa.keymon.lat.starter _starter = null;
|
||||
public static reparto_mazapa.keymon.lat.subs _subs = null;
|
||||
public static reparto_mazapa.keymon.lat.firebasemessaging _firebasemessaging = null;
|
||||
public static reparto_mazapa.keymon.lat.foto _foto = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_cliente _mapa_cliente = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_rutas _mapa_rutas = null;
|
||||
public static reparto_mazapa.keymon.lat.newinst2 _newinst2 = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xpages _b4xpages = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xcollections _b4xcollections = null;
|
||||
public static reparto_mazapa.keymon.lat.httputils2service _httputils2service = null;
|
||||
public static reparto_mazapa.keymon.lat.xuiviewsutils _xuiviewsutils = null;
|
||||
public static Object[] GetGlobals(RemoteObject _ref) throws Exception {
|
||||
return new Object[] {"DateUtils",_ref.getField(false, "_dateutils"),"iv",_ref.getField(false, "_iv"),"mBackgroundColor",_ref.getField(false, "_mbackgroundcolor"),"mBase",_ref.getField(false, "_mbase"),"mBitmap",_ref.getField(false, "_mbitmap"),"mCallBack",_ref.getField(false, "_mcallback"),"mCornersRadius",_ref.getField(false, "_mcornersradius"),"mEventName",_ref.getField(false, "_meventname"),"mResizeMode",_ref.getField(false, "_mresizemode"),"mRound",_ref.getField(false, "_mround"),"Tag",_ref.getField(false, "_tag"),"xui",_ref.getField(false, "_xui")};
|
||||
}
|
||||
}
|
||||
@@ -1,497 +0,0 @@
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.BA;
|
||||
import anywheresoftware.b4a.pc.*;
|
||||
|
||||
public class b4ximageview_subs_0 {
|
||||
|
||||
|
||||
public static RemoteObject _base_resize(RemoteObject __ref,RemoteObject _width,RemoteObject _height) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Base_Resize (b4ximageview) ","b4ximageview",55,__ref.getField(false, "ba"),__ref,40);
|
||||
if (RapidSub.canDelegate("base_resize")) { return __ref.runUserSub(false, "b4ximageview","base_resize", __ref, _width, _height);}
|
||||
Debug.locals.put("Width", _width);
|
||||
Debug.locals.put("Height", _height);
|
||||
BA.debugLineNum = 40;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 41;BA.debugLine="Update";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4ximageview.class, "_update" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 42;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _class_globals(RemoteObject __ref) throws Exception{
|
||||
//BA.debugLineNum = 5;BA.debugLine="Sub Class_Globals";
|
||||
//BA.debugLineNum = 6;BA.debugLine="Private mEventName As String 'ignore";
|
||||
b4ximageview._meventname = RemoteObject.createImmutable("");__ref.setField("_meventname",b4ximageview._meventname);
|
||||
//BA.debugLineNum = 7;BA.debugLine="Private mCallBack As Object 'ignore";
|
||||
b4ximageview._mcallback = RemoteObject.createNew ("Object");__ref.setField("_mcallback",b4ximageview._mcallback);
|
||||
//BA.debugLineNum = 8;BA.debugLine="Public mBase As B4XView";
|
||||
b4ximageview._mbase = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_mbase",b4ximageview._mbase);
|
||||
//BA.debugLineNum = 9;BA.debugLine="Private xui As XUI 'ignore";
|
||||
b4ximageview._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");__ref.setField("_xui",b4ximageview._xui);
|
||||
//BA.debugLineNum = 10;BA.debugLine="Public Tag As Object";
|
||||
b4ximageview._tag = RemoteObject.createNew ("Object");__ref.setField("_tag",b4ximageview._tag);
|
||||
//BA.debugLineNum = 11;BA.debugLine="Private iv As B4XView";
|
||||
b4ximageview._iv = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_iv",b4ximageview._iv);
|
||||
//BA.debugLineNum = 12;BA.debugLine="Private mResizeMode As String";
|
||||
b4ximageview._mresizemode = RemoteObject.createImmutable("");__ref.setField("_mresizemode",b4ximageview._mresizemode);
|
||||
//BA.debugLineNum = 13;BA.debugLine="Private mRound As Boolean";
|
||||
b4ximageview._mround = RemoteObject.createImmutable(false);__ref.setField("_mround",b4ximageview._mround);
|
||||
//BA.debugLineNum = 14;BA.debugLine="Private mBitmap As B4XBitmap";
|
||||
b4ximageview._mbitmap = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper");__ref.setField("_mbitmap",b4ximageview._mbitmap);
|
||||
//BA.debugLineNum = 15;BA.debugLine="Public mBackgroundColor As Int";
|
||||
b4ximageview._mbackgroundcolor = RemoteObject.createImmutable(0);__ref.setField("_mbackgroundcolor",b4ximageview._mbackgroundcolor);
|
||||
//BA.debugLineNum = 16;BA.debugLine="Private mCornersRadius As Int";
|
||||
b4ximageview._mcornersradius = RemoteObject.createImmutable(0);__ref.setField("_mcornersradius",b4ximageview._mcornersradius);
|
||||
//BA.debugLineNum = 17;BA.debugLine="End Sub";
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
public static RemoteObject _clear(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Clear (b4ximageview) ","b4ximageview",55,__ref.getField(false, "ba"),__ref,119);
|
||||
if (RapidSub.canDelegate("clear")) { return __ref.runUserSub(false, "b4ximageview","clear", __ref);}
|
||||
BA.debugLineNum = 119;BA.debugLine="Public Sub Clear";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 120;BA.debugLine="mBitmap = Null";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbitmap" /*RemoteObject*/ ).setObject (b4ximageview.__c.getField(false,"Null"));
|
||||
BA.debugLineNum = 121;BA.debugLine="iv.SetBitmap(Null)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_iv" /*RemoteObject*/ ).runVoidMethod ("SetBitmap",(Object)((b4ximageview.__c.getField(false,"Null"))));
|
||||
BA.debugLineNum = 122;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _designercreateview(RemoteObject __ref,RemoteObject _base,RemoteObject _lbl,RemoteObject _props) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("DesignerCreateView (b4ximageview) ","b4ximageview",55,__ref.getField(false, "ba"),__ref,25);
|
||||
if (RapidSub.canDelegate("designercreateview")) { return __ref.runUserSub(false, "b4ximageview","designercreateview", __ref, _base, _lbl, _props);}
|
||||
RemoteObject _iiv = RemoteObject.declareNull("anywheresoftware.b4a.objects.ImageViewWrapper");
|
||||
Debug.locals.put("Base", _base);
|
||||
Debug.locals.put("Lbl", _lbl);
|
||||
Debug.locals.put("Props", _props);
|
||||
BA.debugLineNum = 25;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 26;BA.debugLine="mBase = Base";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).setObject (_base);
|
||||
BA.debugLineNum = 27;BA.debugLine="Tag = mBase.Tag";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_tag" /*RemoteObject*/ ,__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(false,"getTag"));
|
||||
BA.debugLineNum = 28;BA.debugLine="mBase.Tag = Me";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(false,"setTag",__ref);
|
||||
BA.debugLineNum = 29;BA.debugLine="Dim iiv As ImageView";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_iiv = RemoteObject.createNew ("anywheresoftware.b4a.objects.ImageViewWrapper");Debug.locals.put("iiv", _iiv);
|
||||
BA.debugLineNum = 30;BA.debugLine="iiv.Initialize(\"\")";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_iiv.runVoidMethod ("Initialize",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("")));
|
||||
BA.debugLineNum = 31;BA.debugLine="iv = iiv";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_iv" /*RemoteObject*/ ).setObject (_iiv.getObject());
|
||||
BA.debugLineNum = 32;BA.debugLine="mRound =Props.Get(\"Round\")";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mround" /*RemoteObject*/ ,BA.ObjectToBoolean(_props.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("Round"))))));
|
||||
BA.debugLineNum = 33;BA.debugLine="mResizeMode = Props.Get(\"ResizeMode\")";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mresizemode" /*RemoteObject*/ ,BA.ObjectToString(_props.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("ResizeMode"))))));
|
||||
BA.debugLineNum = 34;BA.debugLine="mBackgroundColor = xui.PaintOrColorToColor(Props.";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mbackgroundcolor" /*RemoteObject*/ ,__ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(true,"PaintOrColorToColor",(Object)(_props.runMethod(false,"Get",(Object)((RemoteObject.createImmutable("BackgroundColor")))))));
|
||||
BA.debugLineNum = 35;BA.debugLine="mCornersRadius = DipToCurrent(Props.GetDefault(\"C";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mcornersradius" /*RemoteObject*/ ,b4ximageview.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, _props.runMethod(false,"GetDefault",(Object)(RemoteObject.createImmutable(("CornersRadius"))),(Object)(RemoteObject.createImmutable((0))))))));
|
||||
BA.debugLineNum = 36;BA.debugLine="mBase.AddView(iv, 0, 0, mBase.Width, mBase.Height";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runVoidMethod ("AddView",(Object)((__ref.getField(false,"_iv" /*RemoteObject*/ ).getObject())),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getWidth")),(Object)(__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getHeight")));
|
||||
BA.debugLineNum = 37;BA.debugLine="Update";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4ximageview.class, "_update" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 38;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getbitmap(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("getBitmap (b4ximageview) ","b4ximageview",55,__ref.getField(false, "ba"),__ref,130);
|
||||
if (RapidSub.canDelegate("getbitmap")) { return __ref.runUserSub(false, "b4ximageview","getbitmap", __ref);}
|
||||
BA.debugLineNum = 130;BA.debugLine="Public Sub getBitmap As B4XBitmap";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 131;BA.debugLine="Return mBitmap";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(false,"_mbitmap" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 132;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getcornersradius(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("getCornersRadius (b4ximageview) ","b4ximageview",55,__ref.getField(false, "ba"),__ref,56);
|
||||
if (RapidSub.canDelegate("getcornersradius")) { return __ref.runUserSub(false, "b4ximageview","getcornersradius", __ref);}
|
||||
BA.debugLineNum = 56;BA.debugLine="Public Sub getCornersRadius As Int";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 57;BA.debugLine="Return mCornersRadius";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(true,"_mcornersradius" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 58;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(0);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getresizemode(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("getResizeMode (b4ximageview) ","b4ximageview",55,__ref.getField(false, "ba"),__ref,67);
|
||||
if (RapidSub.canDelegate("getresizemode")) { return __ref.runUserSub(false, "b4ximageview","getresizemode", __ref);}
|
||||
BA.debugLineNum = 67;BA.debugLine="Public Sub getResizeMode As String";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 68;BA.debugLine="Return mResizeMode";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(true,"_mresizemode" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 69;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getroundedimage(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("getRoundedImage (b4ximageview) ","b4ximageview",55,__ref.getField(false, "ba"),__ref,45);
|
||||
if (RapidSub.canDelegate("getroundedimage")) { return __ref.runUserSub(false, "b4ximageview","getroundedimage", __ref);}
|
||||
BA.debugLineNum = 45;BA.debugLine="Public Sub getRoundedImage As Boolean";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 46;BA.debugLine="Return mRound";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(true,"_mround" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 47;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(false);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _initialize(RemoteObject __ref,RemoteObject _ba,RemoteObject _callback,RemoteObject _eventname) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Initialize (b4ximageview) ","b4ximageview",55,__ref.getField(false, "ba"),__ref,19);
|
||||
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "b4ximageview","initialize", __ref, _ba, _callback, _eventname);}
|
||||
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
|
||||
Debug.locals.put("ba", _ba);
|
||||
Debug.locals.put("Callback", _callback);
|
||||
Debug.locals.put("EventName", _eventname);
|
||||
BA.debugLineNum = 19;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 20;BA.debugLine="mEventName = EventName";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_meventname" /*RemoteObject*/ ,_eventname);
|
||||
BA.debugLineNum = 21;BA.debugLine="mCallBack = Callback";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mcallback" /*RemoteObject*/ ,_callback);
|
||||
BA.debugLineNum = 22;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _load(RemoteObject __ref,RemoteObject _dir,RemoteObject _filename) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Load (b4ximageview) ","b4ximageview",55,__ref.getField(false, "ba"),__ref,110);
|
||||
if (RapidSub.canDelegate("load")) { return __ref.runUserSub(false, "b4ximageview","load", __ref, _dir, _filename);}
|
||||
Debug.locals.put("Dir", _dir);
|
||||
Debug.locals.put("FileName", _filename);
|
||||
BA.debugLineNum = 110;BA.debugLine="Public Sub Load (Dir As String, FileName As String";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 112;BA.debugLine="setBitmap(LoadBitmapSample(Dir, FileName, mBase.W";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4ximageview.class, "_setbitmap" /*RemoteObject*/ ,RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper"), b4ximageview.__c.runMethod(false,"LoadBitmapSample",(Object)(_dir),(Object)(_filename),(Object)(__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getWidth")),(Object)(__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getHeight"))).getObject()));
|
||||
BA.debugLineNum = 116;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _setbitmap(RemoteObject __ref,RemoteObject _bmp) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("setBitmap (b4ximageview) ","b4ximageview",55,__ref.getField(false, "ba"),__ref,124);
|
||||
if (RapidSub.canDelegate("setbitmap")) { return __ref.runUserSub(false, "b4ximageview","setbitmap", __ref, _bmp);}
|
||||
Debug.locals.put("Bmp", _bmp);
|
||||
BA.debugLineNum = 124;BA.debugLine="Public Sub setBitmap(Bmp As B4XBitmap)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 125;BA.debugLine="mBitmap = Bmp";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mbitmap" /*RemoteObject*/ ,_bmp);
|
||||
BA.debugLineNum = 126;BA.debugLine="XUIViewsUtils.SetBitmapAndFill(iv, Bmp)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
b4ximageview._xuiviewsutils.runVoidMethod ("_setbitmapandfill" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_iv" /*RemoteObject*/ )),(Object)(_bmp));
|
||||
BA.debugLineNum = 127;BA.debugLine="Update";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4ximageview.class, "_update" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 128;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _setcornersradius(RemoteObject __ref,RemoteObject _i) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("setCornersRadius (b4ximageview) ","b4ximageview",55,__ref.getField(false, "ba"),__ref,60);
|
||||
if (RapidSub.canDelegate("setcornersradius")) { return __ref.runUserSub(false, "b4ximageview","setcornersradius", __ref, _i);}
|
||||
Debug.locals.put("i", _i);
|
||||
BA.debugLineNum = 60;BA.debugLine="Public Sub setCornersRadius (i As Int)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 61;BA.debugLine="mCornersRadius = i";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mcornersradius" /*RemoteObject*/ ,_i);
|
||||
BA.debugLineNum = 62;BA.debugLine="UpdateClip";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4ximageview.class, "_updateclip" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 63;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _setresizemode(RemoteObject __ref,RemoteObject _s) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("setResizeMode (b4ximageview) ","b4ximageview",55,__ref.getField(false, "ba"),__ref,71);
|
||||
if (RapidSub.canDelegate("setresizemode")) { return __ref.runUserSub(false, "b4ximageview","setresizemode", __ref, _s);}
|
||||
Debug.locals.put("s", _s);
|
||||
BA.debugLineNum = 71;BA.debugLine="Public Sub setResizeMode(s As String)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 72;BA.debugLine="If s = mResizeMode Then Return";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",_s,__ref.getField(true,"_mresizemode" /*RemoteObject*/ ))) {
|
||||
if (true) return RemoteObject.createImmutable("");};
|
||||
BA.debugLineNum = 73;BA.debugLine="mResizeMode = s";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mresizemode" /*RemoteObject*/ ,_s);
|
||||
BA.debugLineNum = 74;BA.debugLine="Update";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4ximageview.class, "_update" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 75;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _setroundedimage(RemoteObject __ref,RemoteObject _b) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("setRoundedImage (b4ximageview) ","b4ximageview",55,__ref.getField(false, "ba"),__ref,49);
|
||||
if (RapidSub.canDelegate("setroundedimage")) { return __ref.runUserSub(false, "b4ximageview","setroundedimage", __ref, _b);}
|
||||
Debug.locals.put("b", _b);
|
||||
BA.debugLineNum = 49;BA.debugLine="Public Sub setRoundedImage (b As Boolean)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 50;BA.debugLine="If b = mRound Then Return";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",_b,__ref.getField(true,"_mround" /*RemoteObject*/ ))) {
|
||||
if (true) return RemoteObject.createImmutable("");};
|
||||
BA.debugLineNum = 51;BA.debugLine="mRound = b";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mround" /*RemoteObject*/ ,_b);
|
||||
BA.debugLineNum = 52;BA.debugLine="UpdateClip";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4ximageview.class, "_updateclip" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 53;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _update(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Update (b4ximageview) ","b4ximageview",55,__ref.getField(false, "ba"),__ref,77);
|
||||
if (RapidSub.canDelegate("update")) { return __ref.runUserSub(false, "b4ximageview","update", __ref);}
|
||||
RemoteObject _imageviewwidth = RemoteObject.createImmutable(0f);
|
||||
RemoteObject _imageviewheight = RemoteObject.createImmutable(0f);
|
||||
RemoteObject _bmpratio = RemoteObject.createImmutable(0f);
|
||||
RemoteObject _r = RemoteObject.createImmutable(0f);
|
||||
BA.debugLineNum = 77;BA.debugLine="Public Sub Update";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 78;BA.debugLine="If mBitmap.IsInitialized = False Then Return";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_mbitmap" /*RemoteObject*/ ).runMethod(true,"IsInitialized"),b4ximageview.__c.getField(true,"False"))) {
|
||||
if (true) return RemoteObject.createImmutable("");};
|
||||
BA.debugLineNum = 79;BA.debugLine="UpdateClip";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4ximageview.class, "_updateclip" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 80;BA.debugLine="Dim ImageViewWidth, ImageViewHeight As Float";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_imageviewwidth = RemoteObject.createImmutable(0f);Debug.locals.put("ImageViewWidth", _imageviewwidth);
|
||||
_imageviewheight = RemoteObject.createImmutable(0f);Debug.locals.put("ImageViewHeight", _imageviewheight);
|
||||
BA.debugLineNum = 81;BA.debugLine="Dim bmpRatio As Float = mBitmap.Width / mBitmap.H";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_bmpratio = BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mbitmap" /*RemoteObject*/ ).runMethod(true,"getWidth"),__ref.getField(false,"_mbitmap" /*RemoteObject*/ ).runMethod(true,"getHeight")}, "/",0, 0));Debug.locals.put("bmpRatio", _bmpratio);Debug.locals.put("bmpRatio", _bmpratio);
|
||||
BA.debugLineNum = 82;BA.debugLine="Select mResizeMode";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
switch (BA.switchObjectToInt(__ref.getField(true,"_mresizemode" /*RemoteObject*/ ),BA.ObjectToString("FILL"),BA.ObjectToString("FIT"),BA.ObjectToString("FILL_WIDTH"),BA.ObjectToString("FILL_HEIGHT"),BA.ObjectToString("FILL_NO_DISTORTIONS"),BA.ObjectToString("NONE"))) {
|
||||
case 0: {
|
||||
BA.debugLineNum = 84;BA.debugLine="ImageViewWidth = mBase.Width";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_imageviewwidth = BA.numberCast(float.class, __ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getWidth"));Debug.locals.put("ImageViewWidth", _imageviewwidth);
|
||||
BA.debugLineNum = 85;BA.debugLine="ImageViewHeight = mBase.Height";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_imageviewheight = BA.numberCast(float.class, __ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getHeight"));Debug.locals.put("ImageViewHeight", _imageviewheight);
|
||||
break; }
|
||||
case 1: {
|
||||
BA.debugLineNum = 87;BA.debugLine="Dim r As Float = Min(mBase.Width / mBitmap.Widt";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_r = BA.numberCast(float.class, b4ximageview.__c.runMethod(true,"Min",(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getWidth"),__ref.getField(false,"_mbitmap" /*RemoteObject*/ ).runMethod(true,"getWidth")}, "/",0, 0)),(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getHeight"),__ref.getField(false,"_mbitmap" /*RemoteObject*/ ).runMethod(true,"getHeight")}, "/",0, 0))));Debug.locals.put("r", _r);Debug.locals.put("r", _r);
|
||||
BA.debugLineNum = 88;BA.debugLine="ImageViewWidth = mBitmap.Width * r";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_imageviewwidth = BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mbitmap" /*RemoteObject*/ ).runMethod(true,"getWidth"),_r}, "*",0, 0));Debug.locals.put("ImageViewWidth", _imageviewwidth);
|
||||
BA.debugLineNum = 89;BA.debugLine="ImageViewHeight = mBitmap.Height * r";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_imageviewheight = BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mbitmap" /*RemoteObject*/ ).runMethod(true,"getHeight"),_r}, "*",0, 0));Debug.locals.put("ImageViewHeight", _imageviewheight);
|
||||
break; }
|
||||
case 2: {
|
||||
BA.debugLineNum = 91;BA.debugLine="ImageViewWidth = mBase.Width";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_imageviewwidth = BA.numberCast(float.class, __ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getWidth"));Debug.locals.put("ImageViewWidth", _imageviewwidth);
|
||||
BA.debugLineNum = 92;BA.debugLine="ImageViewHeight = ImageViewWidth / bmpRatio";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_imageviewheight = BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_imageviewwidth,_bmpratio}, "/",0, 0));Debug.locals.put("ImageViewHeight", _imageviewheight);
|
||||
break; }
|
||||
case 3: {
|
||||
BA.debugLineNum = 94;BA.debugLine="ImageViewHeight = mBase.Height";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_imageviewheight = BA.numberCast(float.class, __ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getHeight"));Debug.locals.put("ImageViewHeight", _imageviewheight);
|
||||
BA.debugLineNum = 95;BA.debugLine="ImageViewWidth = ImageViewHeight * bmpRatio";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_imageviewwidth = BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {_imageviewheight,_bmpratio}, "*",0, 0));Debug.locals.put("ImageViewWidth", _imageviewwidth);
|
||||
break; }
|
||||
case 4: {
|
||||
BA.debugLineNum = 97;BA.debugLine="Dim r As Float = Max(mBase.Width / mBitmap.Widt";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_r = BA.numberCast(float.class, b4ximageview.__c.runMethod(true,"Max",(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getWidth"),__ref.getField(false,"_mbitmap" /*RemoteObject*/ ).runMethod(true,"getWidth")}, "/",0, 0)),(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getHeight"),__ref.getField(false,"_mbitmap" /*RemoteObject*/ ).runMethod(true,"getHeight")}, "/",0, 0))));Debug.locals.put("r", _r);Debug.locals.put("r", _r);
|
||||
BA.debugLineNum = 98;BA.debugLine="ImageViewWidth = mBitmap.Width * r";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_imageviewwidth = BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mbitmap" /*RemoteObject*/ ).runMethod(true,"getWidth"),_r}, "*",0, 0));Debug.locals.put("ImageViewWidth", _imageviewwidth);
|
||||
BA.debugLineNum = 99;BA.debugLine="ImageViewHeight = mBitmap.Height * r";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_imageviewheight = BA.numberCast(float.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mbitmap" /*RemoteObject*/ ).runMethod(true,"getHeight"),_r}, "*",0, 0));Debug.locals.put("ImageViewHeight", _imageviewheight);
|
||||
break; }
|
||||
case 5: {
|
||||
BA.debugLineNum = 101;BA.debugLine="ImageViewWidth = mBitmap.Width";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_imageviewwidth = BA.numberCast(float.class, __ref.getField(false,"_mbitmap" /*RemoteObject*/ ).runMethod(true,"getWidth"));Debug.locals.put("ImageViewWidth", _imageviewwidth);
|
||||
BA.debugLineNum = 102;BA.debugLine="ImageViewHeight = mBitmap.Height";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_imageviewheight = BA.numberCast(float.class, __ref.getField(false,"_mbitmap" /*RemoteObject*/ ).runMethod(true,"getHeight"));Debug.locals.put("ImageViewHeight", _imageviewheight);
|
||||
break; }
|
||||
default: {
|
||||
BA.debugLineNum = 104;BA.debugLine="Log(\"Invalid resize mode: \" & mResizeMode)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
b4ximageview.__c.runVoidMethod ("LogImpl","944892187",RemoteObject.concat(RemoteObject.createImmutable("Invalid resize mode: "),__ref.getField(true,"_mresizemode" /*RemoteObject*/ )),0);
|
||||
break; }
|
||||
}
|
||||
;
|
||||
BA.debugLineNum = 106;BA.debugLine="iv.SetLayoutAnimated(0, Round(mBase.Width / 2 - I";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_iv" /*RemoteObject*/ ).runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, b4ximageview.__c.runMethod(true,"Round",(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(2),_imageviewwidth,RemoteObject.createImmutable(2)}, "/-/",1, 0))))),(Object)(BA.numberCast(int.class, b4ximageview.__c.runMethod(true,"Round",(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getHeight"),RemoteObject.createImmutable(2),_imageviewheight,RemoteObject.createImmutable(2)}, "/-/",1, 0))))),(Object)(BA.numberCast(int.class, b4ximageview.__c.runMethod(true,"Round",(Object)(BA.numberCast(double.class, _imageviewwidth))))),(Object)(BA.numberCast(int.class, b4ximageview.__c.runMethod(true,"Round",(Object)(BA.numberCast(double.class, _imageviewheight))))));
|
||||
BA.debugLineNum = 107;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _updateclip(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("UpdateClip (b4ximageview) ","b4ximageview",55,__ref.getField(false, "ba"),__ref,135);
|
||||
if (RapidSub.canDelegate("updateclip")) { return __ref.runUserSub(false, "b4ximageview","updateclip", __ref);}
|
||||
RemoteObject _jo = RemoteObject.declareNull("anywheresoftware.b4j.object.JavaObject");
|
||||
BA.debugLineNum = 135;BA.debugLine="Private Sub UpdateClip";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 136;BA.debugLine="If mRound Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (__ref.getField(true,"_mround" /*RemoteObject*/ ).<Boolean>get().booleanValue()) {
|
||||
BA.debugLineNum = 137;BA.debugLine="mBase.SetColorAndBorder(mBackgroundColor, 0, 0,";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runVoidMethod ("SetColorAndBorder",(Object)(__ref.getField(true,"_mbackgroundcolor" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, b4ximageview.__c.runMethod(true,"Min",(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0)),(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_mbase" /*RemoteObject*/ ).runMethod(true,"getHeight"),RemoteObject.createImmutable(2)}, "/",0, 0))))));
|
||||
}else {
|
||||
BA.debugLineNum = 139;BA.debugLine="mBase.SetColorAndBorder(mBackgroundColor, 0, 0,";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runVoidMethod ("SetColorAndBorder",(Object)(__ref.getField(true,"_mbackgroundcolor" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(__ref.getField(true,"_mcornersradius" /*RemoteObject*/ )));
|
||||
};
|
||||
BA.debugLineNum = 161;BA.debugLine="Dim jo As JavaObject = mBase";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_jo = RemoteObject.createNew ("anywheresoftware.b4j.object.JavaObject");
|
||||
_jo = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4j.object.JavaObject"), __ref.getField(false,"_mbase" /*RemoteObject*/ ).getObject());Debug.locals.put("jo", _jo);Debug.locals.put("jo", _jo);
|
||||
BA.debugLineNum = 162;BA.debugLine="jo.RunMethod(\"setClipToOutline\", Array(mRound Or";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_jo.runVoidMethod ("RunMethod",(Object)(BA.ObjectToString("setClipToOutline")),(Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {RemoteObject.createImmutable((RemoteObject.solveBoolean(".",__ref.getField(true,"_mround" /*RemoteObject*/ )) || RemoteObject.solveBoolean(">",__ref.getField(true,"_mcornersradius" /*RemoteObject*/ ),BA.numberCast(double.class, 0))))})));
|
||||
BA.debugLineNum = 164;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.pc.PCBA;
|
||||
import anywheresoftware.b4a.pc.RemoteObject;
|
||||
|
||||
public class b4xinputtemplate {
|
||||
public static RemoteObject myClass;
|
||||
public b4xinputtemplate() {
|
||||
}
|
||||
public static PCBA staticBA = new PCBA(null, b4xinputtemplate.class);
|
||||
|
||||
public static RemoteObject __c = RemoteObject.declareNull("anywheresoftware.b4a.keywords.Common");
|
||||
public static RemoteObject _xui = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");
|
||||
public static RemoteObject _mbase = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _text = RemoteObject.createImmutable("");
|
||||
public static RemoteObject _xdialog = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xdialog");
|
||||
public static RemoteObject _regexpattern = RemoteObject.createImmutable("");
|
||||
public static RemoteObject _textfield1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _lbltitle = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _ime = RemoteObject.declareNull("anywheresoftware.b4a.objects.IME");
|
||||
public static RemoteObject _mallowdecimals = RemoteObject.createImmutable(false);
|
||||
public static RemoteObject _bordercolor = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _bordercolorinvalid = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _dateutils = RemoteObject.declareNull("b4a.example.dateutils");
|
||||
public static reparto_mazapa.keymon.lat.main _main = null;
|
||||
public static reparto_mazapa.keymon.lat.appupdater _appupdater = null;
|
||||
public static reparto_mazapa.keymon.lat.tracker _tracker = null;
|
||||
public static reparto_mazapa.keymon.lat.starter _starter = null;
|
||||
public static reparto_mazapa.keymon.lat.subs _subs = null;
|
||||
public static reparto_mazapa.keymon.lat.firebasemessaging _firebasemessaging = null;
|
||||
public static reparto_mazapa.keymon.lat.foto _foto = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_cliente _mapa_cliente = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_rutas _mapa_rutas = null;
|
||||
public static reparto_mazapa.keymon.lat.newinst2 _newinst2 = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xpages _b4xpages = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xcollections _b4xcollections = null;
|
||||
public static reparto_mazapa.keymon.lat.httputils2service _httputils2service = null;
|
||||
public static reparto_mazapa.keymon.lat.xuiviewsutils _xuiviewsutils = null;
|
||||
public static Object[] GetGlobals(RemoteObject _ref) throws Exception {
|
||||
return new Object[] {"BorderColor",_ref.getField(false, "_bordercolor"),"BorderColorInvalid",_ref.getField(false, "_bordercolorinvalid"),"DateUtils",_ref.getField(false, "_dateutils"),"IME",_ref.getField(false, "_ime"),"lblTitle",_ref.getField(false, "_lbltitle"),"mAllowDecimals",_ref.getField(false, "_mallowdecimals"),"mBase",_ref.getField(false, "_mbase"),"RegexPattern",_ref.getField(false, "_regexpattern"),"Text",_ref.getField(false, "_text"),"TextField1",_ref.getField(false, "_textfield1"),"xDialog",_ref.getField(false, "_xdialog"),"xui",_ref.getField(false, "_xui")};
|
||||
}
|
||||
}
|
||||
@@ -1,457 +0,0 @@
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.BA;
|
||||
import anywheresoftware.b4a.pc.*;
|
||||
|
||||
public class b4xinputtemplate_subs_0 {
|
||||
|
||||
|
||||
public static RemoteObject _class_globals(RemoteObject __ref) throws Exception{
|
||||
//BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
|
||||
//BA.debugLineNum = 2;BA.debugLine="Private xui As XUI";
|
||||
b4xinputtemplate._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");__ref.setField("_xui",b4xinputtemplate._xui);
|
||||
//BA.debugLineNum = 3;BA.debugLine="Public mBase As B4XView";
|
||||
b4xinputtemplate._mbase = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_mbase",b4xinputtemplate._mbase);
|
||||
//BA.debugLineNum = 4;BA.debugLine="Public Text As String";
|
||||
b4xinputtemplate._text = RemoteObject.createImmutable("");__ref.setField("_text",b4xinputtemplate._text);
|
||||
//BA.debugLineNum = 5;BA.debugLine="Private xDialog As B4XDialog";
|
||||
b4xinputtemplate._xdialog = RemoteObject.createNew ("reparto_mazapa.keymon.lat.b4xdialog");__ref.setField("_xdialog",b4xinputtemplate._xdialog);
|
||||
//BA.debugLineNum = 6;BA.debugLine="Public RegexPattern As String";
|
||||
b4xinputtemplate._regexpattern = RemoteObject.createImmutable("");__ref.setField("_regexpattern",b4xinputtemplate._regexpattern);
|
||||
//BA.debugLineNum = 7;BA.debugLine="Public TextField1 As B4XView";
|
||||
b4xinputtemplate._textfield1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_textfield1",b4xinputtemplate._textfield1);
|
||||
//BA.debugLineNum = 8;BA.debugLine="Public lblTitle As B4XView";
|
||||
b4xinputtemplate._lbltitle = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_lbltitle",b4xinputtemplate._lbltitle);
|
||||
//BA.debugLineNum = 10;BA.debugLine="Private IME As IME";
|
||||
b4xinputtemplate._ime = RemoteObject.createNew ("anywheresoftware.b4a.objects.IME");__ref.setField("_ime",b4xinputtemplate._ime);
|
||||
//BA.debugLineNum = 12;BA.debugLine="Private mAllowDecimals As Boolean";
|
||||
b4xinputtemplate._mallowdecimals = RemoteObject.createImmutable(false);__ref.setField("_mallowdecimals",b4xinputtemplate._mallowdecimals);
|
||||
//BA.debugLineNum = 13;BA.debugLine="Private BorderColor = xui.Color_White, BorderColo";
|
||||
b4xinputtemplate._bordercolor = __ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"Color_White");__ref.setField("_bordercolor",b4xinputtemplate._bordercolor);
|
||||
b4xinputtemplate._bordercolorinvalid = __ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"Color_Red");__ref.setField("_bordercolorinvalid",b4xinputtemplate._bordercolorinvalid);
|
||||
//BA.debugLineNum = 14;BA.debugLine="End Sub";
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
public static RemoteObject _configurefornumbers(RemoteObject __ref,RemoteObject _allowdecimals,RemoteObject _allownegative) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("ConfigureForNumbers (b4xinputtemplate) ","b4xinputtemplate",56,__ref.getField(false, "ba"),__ref,40);
|
||||
if (RapidSub.canDelegate("configurefornumbers")) { return __ref.runUserSub(false, "b4xinputtemplate","configurefornumbers", __ref, _allowdecimals, _allownegative);}
|
||||
RemoteObject _et = RemoteObject.declareNull("anywheresoftware.b4a.objects.EditTextWrapper");
|
||||
Debug.locals.put("AllowDecimals", _allowdecimals);
|
||||
Debug.locals.put("AllowNegative", _allownegative);
|
||||
BA.debugLineNum = 40;BA.debugLine="Public Sub ConfigureForNumbers (AllowDecimals As B";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 42;BA.debugLine="Dim et As EditText = TextField1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_et = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");
|
||||
_et = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.EditTextWrapper"), __ref.getField(false,"_textfield1" /*RemoteObject*/ ).getObject());Debug.locals.put("et", _et);Debug.locals.put("et", _et);
|
||||
BA.debugLineNum = 43;BA.debugLine="If AllowDecimals Or AllowNegative Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean(".",_allowdecimals) || RemoteObject.solveBoolean(".",_allownegative)) {
|
||||
BA.debugLineNum = 44;BA.debugLine="et.InputType = et.INPUT_TYPE_DECIMAL_NUMBERS";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_et.runMethod(true,"setInputType",_et.getField(true,"INPUT_TYPE_DECIMAL_NUMBERS"));
|
||||
}else {
|
||||
BA.debugLineNum = 46;BA.debugLine="et.InputType = et.INPUT_TYPE_NUMBERS";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_et.runMethod(true,"setInputType",_et.getField(true,"INPUT_TYPE_NUMBERS"));
|
||||
};
|
||||
BA.debugLineNum = 59;BA.debugLine="If AllowDecimals And AllowNegative Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean(".",_allowdecimals) && RemoteObject.solveBoolean(".",_allownegative)) {
|
||||
BA.debugLineNum = 60;BA.debugLine="RegexPattern = \"^-?(0|[1-9]\\d*)?(\\.\\d+)?(?<=\\d)$";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_regexpattern" /*RemoteObject*/ ,BA.ObjectToString("^-?(0|[1-9]\\d*)?(\\.\\d+)?(?<=\\d)$"));
|
||||
}else
|
||||
{ BA.debugLineNum = 61;BA.debugLine="Else If AllowDecimals And AllowNegative = False T";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean(".",_allowdecimals) && RemoteObject.solveBoolean("=",_allownegative,b4xinputtemplate.__c.getField(true,"False"))) {
|
||||
BA.debugLineNum = 62;BA.debugLine="RegexPattern = \"^(0|[1-9]\\d*)?(\\.\\d+)?(?<=\\d)$\"";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_regexpattern" /*RemoteObject*/ ,BA.ObjectToString("^(0|[1-9]\\d*)?(\\.\\d+)?(?<=\\d)$"));
|
||||
}else
|
||||
{ BA.debugLineNum = 63;BA.debugLine="Else If AllowDecimals = False And AllowNegative =";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",_allowdecimals,b4xinputtemplate.__c.getField(true,"False")) && RemoteObject.solveBoolean("=",_allownegative,b4xinputtemplate.__c.getField(true,"True"))) {
|
||||
BA.debugLineNum = 64;BA.debugLine="RegexPattern = \"^-?(0|[1-9]\\d*)$\"";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_regexpattern" /*RemoteObject*/ ,BA.ObjectToString("^-?(0|[1-9]\\d*)$"));
|
||||
}else
|
||||
{ BA.debugLineNum = 65;BA.debugLine="Else If AllowDecimals = False And AllowNegative =";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",_allowdecimals,b4xinputtemplate.__c.getField(true,"False")) && RemoteObject.solveBoolean("=",_allownegative,b4xinputtemplate.__c.getField(true,"False"))) {
|
||||
BA.debugLineNum = 66;BA.debugLine="RegexPattern = \"^(0|[1-9]\\d*)$\"";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_regexpattern" /*RemoteObject*/ ,BA.ObjectToString("^(0|[1-9]\\d*)$"));
|
||||
}}}}
|
||||
;
|
||||
BA.debugLineNum = 68;BA.debugLine="mAllowDecimals = AllowDecimals";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mallowdecimals" /*RemoteObject*/ ,_allowdecimals);
|
||||
BA.debugLineNum = 69;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _dialogclosed(RemoteObject __ref,RemoteObject _result) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("DialogClosed (b4xinputtemplate) ","b4xinputtemplate",56,__ref.getField(false, "ba"),__ref,137);
|
||||
if (RapidSub.canDelegate("dialogclosed")) { return __ref.runUserSub(false, "b4xinputtemplate","dialogclosed", __ref, _result);}
|
||||
Debug.locals.put("Result", _result);
|
||||
BA.debugLineNum = 137;BA.debugLine="Private Sub DialogClosed(Result As Int)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 138;BA.debugLine="If Result = xui.DialogResponse_Positive Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",_result,BA.numberCast(double.class, __ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"DialogResponse_Positive")))) {
|
||||
BA.debugLineNum = 139;BA.debugLine="Text = TextField1.Text";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_text" /*RemoteObject*/ ,__ref.getField(false,"_textfield1" /*RemoteObject*/ ).runMethod(true,"getText"));
|
||||
};
|
||||
BA.debugLineNum = 141;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getpanel(RemoteObject __ref,RemoteObject _dialog) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("GetPanel (b4xinputtemplate) ","b4xinputtemplate",56,__ref.getField(false, "ba"),__ref,116);
|
||||
if (RapidSub.canDelegate("getpanel")) { return __ref.runUserSub(false, "b4xinputtemplate","getpanel", __ref, _dialog);}
|
||||
Debug.locals.put("Dialog", _dialog);
|
||||
BA.debugLineNum = 116;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 117;BA.debugLine="Return mBase";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(false,"_mbase" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 118;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _initialize(RemoteObject __ref,RemoteObject _ba) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Initialize (b4xinputtemplate) ","b4xinputtemplate",56,__ref.getField(false, "ba"),__ref,16);
|
||||
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "b4xinputtemplate","initialize", __ref, _ba);}
|
||||
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
|
||||
RemoteObject _jo = RemoteObject.declareNull("anywheresoftware.b4j.object.JavaObject");
|
||||
Debug.locals.put("ba", _ba);
|
||||
BA.debugLineNum = 16;BA.debugLine="Public Sub Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 17;BA.debugLine="mBase = xui.CreatePanel(\"mBase\")";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mbase" /*RemoteObject*/ ,__ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(false,"CreatePanel",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("mBase"))));
|
||||
BA.debugLineNum = 18;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, 300dip, 80dip)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(b4xinputtemplate.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 300)))),(Object)(b4xinputtemplate.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 80)))));
|
||||
BA.debugLineNum = 19;BA.debugLine="mBase.LoadLayout(\"B4XInputTemplate\")";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("B4XInputTemplate")),__ref.getField(false, "ba"));
|
||||
BA.debugLineNum = 20;BA.debugLine="TextField1.TextColor = xui.Color_White";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_textfield1" /*RemoteObject*/ ).runMethod(true,"setTextColor",__ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"Color_White"));
|
||||
BA.debugLineNum = 22;BA.debugLine="IME.Initialize(\"\")";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_ime" /*RemoteObject*/ ).runVoidMethod ("Initialize",(Object)(RemoteObject.createImmutable("")));
|
||||
BA.debugLineNum = 23;BA.debugLine="Dim jo As JavaObject = TextField1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_jo = RemoteObject.createNew ("anywheresoftware.b4j.object.JavaObject");
|
||||
_jo = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4j.object.JavaObject"), __ref.getField(false,"_textfield1" /*RemoteObject*/ ).getObject());Debug.locals.put("jo", _jo);Debug.locals.put("jo", _jo);
|
||||
BA.debugLineNum = 24;BA.debugLine="jo.RunMethod(\"setImeOptions\", Array(Bit.Or(335544";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_jo.runVoidMethod ("RunMethod",(Object)(BA.ObjectToString("setImeOptions")),(Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(b4xinputtemplate.__c.getField(false,"Bit").runMethod(true,"Or",(Object)(BA.numberCast(int.class, 33554432)),(Object)(BA.numberCast(int.class, 6))))})));
|
||||
BA.debugLineNum = 26;BA.debugLine="Dim jo As JavaObject = Me";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_jo = RemoteObject.createNew ("anywheresoftware.b4j.object.JavaObject");
|
||||
_jo = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4j.object.JavaObject"), __ref);Debug.locals.put("jo", _jo);Debug.locals.put("jo", _jo);
|
||||
BA.debugLineNum = 27;BA.debugLine="jo.RunMethod(\"RemoveWarning\", Null)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_jo.runVoidMethod ("RunMethod",(Object)(BA.ObjectToString("RemoveWarning")),(Object)((b4xinputtemplate.__c.getField(false,"Null"))));
|
||||
BA.debugLineNum = 30;BA.debugLine="SetBorder(BorderColor)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xinputtemplate.class, "_setborder" /*RemoteObject*/ ,(Object)(__ref.getField(true,"_bordercolor" /*RemoteObject*/ )));
|
||||
BA.debugLineNum = 31;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _isvalid(RemoteObject __ref,RemoteObject _new) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("IsValid (b4xinputtemplate) ","b4xinputtemplate",56,__ref.getField(false, "ba"),__ref,103);
|
||||
if (RapidSub.canDelegate("isvalid")) { return __ref.runUserSub(false, "b4xinputtemplate","isvalid", __ref, _new);}
|
||||
Debug.locals.put("New", _new);
|
||||
BA.debugLineNum = 103;BA.debugLine="Private Sub IsValid(New As String) As Boolean";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 104;BA.debugLine="Return RegexPattern = \"\" Or Regex.IsMatch(RegexPa";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return BA.ObjectToBoolean(RemoteObject.solveBoolean("=",__ref.getField(true,"_regexpattern" /*RemoteObject*/ ),BA.ObjectToString("")) || RemoteObject.solveBoolean(".",b4xinputtemplate.__c.getField(false,"Regex").runMethod(true,"IsMatch",(Object)(__ref.getField(true,"_regexpattern" /*RemoteObject*/ )),(Object)(_new))));
|
||||
BA.debugLineNum = 105;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(false);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _setborder(RemoteObject __ref,RemoteObject _bc) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("SetBorder (b4xinputtemplate) ","b4xinputtemplate",56,__ref.getField(false, "ba"),__ref,99);
|
||||
if (RapidSub.canDelegate("setborder")) { return __ref.runUserSub(false, "b4xinputtemplate","setborder", __ref, _bc);}
|
||||
Debug.locals.put("bc", _bc);
|
||||
BA.debugLineNum = 99;BA.debugLine="Private Sub SetBorder(bc As Int)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 100;BA.debugLine="TextField1.SetColorAndBorder(xui.Color_Transparen";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_textfield1" /*RemoteObject*/ ).runVoidMethod ("SetColorAndBorder",(Object)(__ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"Color_Transparent")),(Object)(b4xinputtemplate.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 1)))),(Object)(_bc),(Object)(b4xinputtemplate.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 2)))));
|
||||
BA.debugLineNum = 101;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _setbordercolor(RemoteObject __ref,RemoteObject _valid,RemoteObject _invalid) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("SetBorderColor (b4xinputtemplate) ","b4xinputtemplate",56,__ref.getField(false, "ba"),__ref,34);
|
||||
if (RapidSub.canDelegate("setbordercolor")) { return __ref.runUserSub(false, "b4xinputtemplate","setbordercolor", __ref, _valid, _invalid);}
|
||||
Debug.locals.put("Valid", _valid);
|
||||
Debug.locals.put("Invalid", _invalid);
|
||||
BA.debugLineNum = 34;BA.debugLine="Public Sub SetBorderColor(Valid As Int, Invalid As";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 35;BA.debugLine="BorderColor = Valid";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_bordercolor" /*RemoteObject*/ ,_valid);
|
||||
BA.debugLineNum = 36;BA.debugLine="BorderColorInvalid = Invalid";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_bordercolorinvalid" /*RemoteObject*/ ,_invalid);
|
||||
BA.debugLineNum = 37;BA.debugLine="SetBorder(BorderColor)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xinputtemplate.class, "_setborder" /*RemoteObject*/ ,(Object)(__ref.getField(true,"_bordercolor" /*RemoteObject*/ )));
|
||||
BA.debugLineNum = 38;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static void _show(RemoteObject __ref,RemoteObject _dialog) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Show (b4xinputtemplate) ","b4xinputtemplate",56,__ref.getField(false, "ba"),__ref,120);
|
||||
if (RapidSub.canDelegate("show")) { __ref.runUserSub(false, "b4xinputtemplate","show", __ref, _dialog); return;}
|
||||
ResumableSub_Show rsub = new ResumableSub_Show(null,__ref,_dialog);
|
||||
rsub.resume(null, null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static class ResumableSub_Show extends BA.ResumableSub {
|
||||
public ResumableSub_Show(reparto_mazapa.keymon.lat.b4xinputtemplate parent,RemoteObject __ref,RemoteObject _dialog) {
|
||||
this.parent = parent;
|
||||
this.__ref = __ref;
|
||||
this._dialog = _dialog;
|
||||
}
|
||||
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
|
||||
RemoteObject __ref;
|
||||
reparto_mazapa.keymon.lat.b4xinputtemplate parent;
|
||||
RemoteObject _dialog;
|
||||
RemoteObject _tf = RemoteObject.declareNull("anywheresoftware.b4a.objects.EditTextWrapper");
|
||||
|
||||
@Override
|
||||
public void resume(BA ba, RemoteObject result) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Show (b4xinputtemplate) ","b4xinputtemplate",56,__ref.getField(false, "ba"),__ref,120);
|
||||
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;
|
||||
|
||||
while (true) {
|
||||
switch (state) {
|
||||
case -1:
|
||||
return;
|
||||
|
||||
case 0:
|
||||
//C
|
||||
this.state = -1;
|
||||
Debug.locals.put("_ref", __ref);
|
||||
Debug.locals.put("Dialog", _dialog);
|
||||
BA.debugLineNum = 121;BA.debugLine="xDialog = Dialog";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_xdialog" /*RemoteObject*/ ,_dialog);
|
||||
BA.debugLineNum = 122;BA.debugLine="xDialog.PutAtTop = xui.IsB4A Or xui.IsB4i";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_xdialog" /*RemoteObject*/ ).setField ("_putattop" /*RemoteObject*/ ,BA.ObjectToBoolean(RemoteObject.solveBoolean(".",__ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(true,"getIsB4A")) || RemoteObject.solveBoolean(".",__ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(true,"getIsB4i"))));
|
||||
BA.debugLineNum = 123;BA.debugLine="Sleep(20)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "b4xinputtemplate", "show"),BA.numberCast(int.class, 20));
|
||||
this.state = 1;
|
||||
return;
|
||||
case 1:
|
||||
//C
|
||||
this.state = -1;
|
||||
;
|
||||
BA.debugLineNum = 124;BA.debugLine="TextField1.Text = Text";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_textfield1" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(true,"_text" /*RemoteObject*/ )));
|
||||
BA.debugLineNum = 125;BA.debugLine="Validate(Text)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xinputtemplate.class, "_validate" /*RemoteObject*/ ,(Object)(__ref.getField(true,"_text" /*RemoteObject*/ )));
|
||||
BA.debugLineNum = 126;BA.debugLine="TextField1.RequestFocus";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_textfield1" /*RemoteObject*/ ).runVoidMethod ("RequestFocus");
|
||||
BA.debugLineNum = 128;BA.debugLine="Dim tf As EditText = TextField1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_tf = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");
|
||||
_tf = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.objects.EditTextWrapper"), __ref.getField(false,"_textfield1" /*RemoteObject*/ ).getObject());Debug.locals.put("tf", _tf);Debug.locals.put("tf", _tf);
|
||||
BA.debugLineNum = 129;BA.debugLine="tf.SelectAll";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_tf.runVoidMethod ("SelectAll");
|
||||
BA.debugLineNum = 130;BA.debugLine="IME.ShowKeyboard(TextField1)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_ime" /*RemoteObject*/ ).runVoidMethod ("ShowKeyboard",(Object)((__ref.getField(false,"_textfield1" /*RemoteObject*/ ).getObject())));
|
||||
BA.debugLineNum = 135;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) break;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
}
|
||||
public static RemoteObject _textfield1_action(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("TextField1_Action (b4xinputtemplate) ","b4xinputtemplate",56,__ref.getField(false, "ba"),__ref,107);
|
||||
if (RapidSub.canDelegate("textfield1_action")) { return __ref.runUserSub(false, "b4xinputtemplate","textfield1_action", __ref);}
|
||||
BA.debugLineNum = 107;BA.debugLine="Private Sub TextField1_Action";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 108;BA.debugLine="TextField1_EnterPressed";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xinputtemplate.class, "_textfield1_enterpressed" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 109;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _textfield1_enterpressed(RemoteObject __ref) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("TextField1_EnterPressed (b4xinputtemplate) ","b4xinputtemplate",56,__ref.getField(false, "ba"),__ref,111);
|
||||
if (RapidSub.canDelegate("textfield1_enterpressed")) { return __ref.runUserSub(false, "b4xinputtemplate","textfield1_enterpressed", __ref);}
|
||||
BA.debugLineNum = 111;BA.debugLine="Private Sub TextField1_EnterPressed";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 112;BA.debugLine="If IsValid(TextField1.Text) Then xDialog.Close(xu";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xinputtemplate.class, "_isvalid" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_textfield1" /*RemoteObject*/ ).runMethod(true,"getText"))).<Boolean>get().booleanValue()) {
|
||||
__ref.getField(false,"_xdialog" /*RemoteObject*/ ).runClassMethod (reparto_mazapa.keymon.lat.b4xdialog.class, "_close" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"DialogResponse_Positive")));};
|
||||
BA.debugLineNum = 113;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _textfield1_textchanged(RemoteObject __ref,RemoteObject _old,RemoteObject _new) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("TextField1_TextChanged (b4xinputtemplate) ","b4xinputtemplate",56,__ref.getField(false, "ba"),__ref,71);
|
||||
if (RapidSub.canDelegate("textfield1_textchanged")) { return __ref.runUserSub(false, "b4xinputtemplate","textfield1_textchanged", __ref, _old, _new);}
|
||||
Debug.locals.put("Old", _old);
|
||||
Debug.locals.put("New", _new);
|
||||
BA.debugLineNum = 71;BA.debugLine="Private Sub TextField1_TextChanged (Old As String,";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 83;BA.debugLine="Validate (New)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xinputtemplate.class, "_validate" /*RemoteObject*/ ,(Object)(_new));
|
||||
BA.debugLineNum = 84;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _validate(RemoteObject __ref,RemoteObject _new) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Validate (b4xinputtemplate) ","b4xinputtemplate",56,__ref.getField(false, "ba"),__ref,86);
|
||||
if (RapidSub.canDelegate("validate")) { return __ref.runUserSub(false, "b4xinputtemplate","validate", __ref, _new);}
|
||||
RemoteObject _bc = RemoteObject.createImmutable(0);
|
||||
RemoteObject _enabled = RemoteObject.createImmutable(false);
|
||||
Debug.locals.put("New", _new);
|
||||
BA.debugLineNum = 86;BA.debugLine="Private Sub Validate (New As String)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 87;BA.debugLine="Dim bc As Int = BorderColor";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_bc = __ref.getField(true,"_bordercolor" /*RemoteObject*/ );Debug.locals.put("bc", _bc);Debug.locals.put("bc", _bc);
|
||||
BA.debugLineNum = 88;BA.debugLine="Dim enabled As Boolean = True";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_enabled = b4xinputtemplate.__c.getField(true,"True");Debug.locals.put("enabled", _enabled);Debug.locals.put("enabled", _enabled);
|
||||
BA.debugLineNum = 89;BA.debugLine="If IsValid(New) = False Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xinputtemplate.class, "_isvalid" /*RemoteObject*/ ,(Object)(_new)),b4xinputtemplate.__c.getField(true,"False"))) {
|
||||
BA.debugLineNum = 90;BA.debugLine="If New.Length > 0 Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean(">",_new.runMethod(true,"length"),BA.numberCast(double.class, 0))) {
|
||||
BA.debugLineNum = 91;BA.debugLine="bc = BorderColorInvalid";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_bc = __ref.getField(true,"_bordercolorinvalid" /*RemoteObject*/ );Debug.locals.put("bc", _bc);
|
||||
};
|
||||
BA.debugLineNum = 93;BA.debugLine="enabled = False";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_enabled = b4xinputtemplate.__c.getField(true,"False");Debug.locals.put("enabled", _enabled);
|
||||
};
|
||||
BA.debugLineNum = 95;BA.debugLine="xDialog.SetButtonState(xui.DialogResponse_Positiv";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_xdialog" /*RemoteObject*/ ).runClassMethod (reparto_mazapa.keymon.lat.b4xdialog.class, "_setbuttonstate" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"DialogResponse_Positive")),(Object)(_enabled));
|
||||
BA.debugLineNum = 96;BA.debugLine="SetBorder(bc)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xinputtemplate.class, "_setborder" /*RemoteObject*/ ,(Object)(_bc));
|
||||
BA.debugLineNum = 97;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.pc.PCBA;
|
||||
import anywheresoftware.b4a.pc.RemoteObject;
|
||||
|
||||
public class b4xlisttemplate {
|
||||
public static RemoteObject myClass;
|
||||
public b4xlisttemplate() {
|
||||
}
|
||||
public static PCBA staticBA = new PCBA(null, b4xlisttemplate.class);
|
||||
|
||||
public static RemoteObject __c = RemoteObject.declareNull("anywheresoftware.b4a.keywords.Common");
|
||||
public static RemoteObject _xui = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");
|
||||
public static RemoteObject _mbase = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _customlistview1 = RemoteObject.declareNull("b4a.example3.customlistview");
|
||||
public static RemoteObject _options = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
|
||||
public static RemoteObject _selecteditem = RemoteObject.createImmutable("");
|
||||
public static RemoteObject _xdialog = RemoteObject.declareNull("reparto_mazapa.keymon.lat.b4xdialog");
|
||||
public static RemoteObject _allowmultiselection = RemoteObject.createImmutable(false);
|
||||
public static RemoteObject _selectioncolor = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _selecteditems = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
|
||||
public static RemoteObject _multiselectionminimum = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _dateutils = RemoteObject.declareNull("b4a.example.dateutils");
|
||||
public static reparto_mazapa.keymon.lat.main _main = null;
|
||||
public static reparto_mazapa.keymon.lat.appupdater _appupdater = null;
|
||||
public static reparto_mazapa.keymon.lat.tracker _tracker = null;
|
||||
public static reparto_mazapa.keymon.lat.starter _starter = null;
|
||||
public static reparto_mazapa.keymon.lat.subs _subs = null;
|
||||
public static reparto_mazapa.keymon.lat.firebasemessaging _firebasemessaging = null;
|
||||
public static reparto_mazapa.keymon.lat.foto _foto = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_cliente _mapa_cliente = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_rutas _mapa_rutas = null;
|
||||
public static reparto_mazapa.keymon.lat.newinst2 _newinst2 = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xpages _b4xpages = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xcollections _b4xcollections = null;
|
||||
public static reparto_mazapa.keymon.lat.httputils2service _httputils2service = null;
|
||||
public static reparto_mazapa.keymon.lat.xuiviewsutils _xuiviewsutils = null;
|
||||
public static Object[] GetGlobals(RemoteObject _ref) throws Exception {
|
||||
return new Object[] {"AllowMultiSelection",_ref.getField(false, "_allowmultiselection"),"CustomListView1",_ref.getField(false, "_customlistview1"),"DateUtils",_ref.getField(false, "_dateutils"),"mBase",_ref.getField(false, "_mbase"),"MultiSelectionMinimum",_ref.getField(false, "_multiselectionminimum"),"Options",_ref.getField(false, "_options"),"SelectedItem",_ref.getField(false, "_selecteditem"),"SelectedItems",_ref.getField(false, "_selecteditems"),"SelectionColor",_ref.getField(false, "_selectioncolor"),"xDialog",_ref.getField(false, "_xdialog"),"xui",_ref.getField(false, "_xui")};
|
||||
}
|
||||
}
|
||||
@@ -1,431 +0,0 @@
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.BA;
|
||||
import anywheresoftware.b4a.pc.*;
|
||||
|
||||
public class b4xlisttemplate_subs_0 {
|
||||
|
||||
|
||||
public static RemoteObject _class_globals(RemoteObject __ref) throws Exception{
|
||||
//BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
|
||||
//BA.debugLineNum = 2;BA.debugLine="Private xui As XUI";
|
||||
b4xlisttemplate._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");__ref.setField("_xui",b4xlisttemplate._xui);
|
||||
//BA.debugLineNum = 3;BA.debugLine="Public mBase As B4XView";
|
||||
b4xlisttemplate._mbase = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_mbase",b4xlisttemplate._mbase);
|
||||
//BA.debugLineNum = 4;BA.debugLine="Public CustomListView1 As CustomListView";
|
||||
b4xlisttemplate._customlistview1 = RemoteObject.createNew ("b4a.example3.customlistview");__ref.setField("_customlistview1",b4xlisttemplate._customlistview1);
|
||||
//BA.debugLineNum = 5;BA.debugLine="Public Options As List";
|
||||
b4xlisttemplate._options = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_options",b4xlisttemplate._options);
|
||||
//BA.debugLineNum = 6;BA.debugLine="Public SelectedItem As String";
|
||||
b4xlisttemplate._selecteditem = RemoteObject.createImmutable("");__ref.setField("_selecteditem",b4xlisttemplate._selecteditem);
|
||||
//BA.debugLineNum = 7;BA.debugLine="Private xDialog As B4XDialog";
|
||||
b4xlisttemplate._xdialog = RemoteObject.createNew ("reparto_mazapa.keymon.lat.b4xdialog");__ref.setField("_xdialog",b4xlisttemplate._xdialog);
|
||||
//BA.debugLineNum = 8;BA.debugLine="Public AllowMultiSelection As Boolean";
|
||||
b4xlisttemplate._allowmultiselection = RemoteObject.createImmutable(false);__ref.setField("_allowmultiselection",b4xlisttemplate._allowmultiselection);
|
||||
//BA.debugLineNum = 9;BA.debugLine="Public SelectionColor As Int = 0xAA0086FF";
|
||||
b4xlisttemplate._selectioncolor = BA.numberCast(int.class, ((int)0xaa0086ff));__ref.setField("_selectioncolor",b4xlisttemplate._selectioncolor);
|
||||
//BA.debugLineNum = 10;BA.debugLine="Public SelectedItems As List";
|
||||
b4xlisttemplate._selecteditems = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");__ref.setField("_selecteditems",b4xlisttemplate._selecteditems);
|
||||
//BA.debugLineNum = 11;BA.debugLine="Public MultiSelectionMinimum As Int = 0";
|
||||
b4xlisttemplate._multiselectionminimum = BA.numberCast(int.class, 0);__ref.setField("_multiselectionminimum",b4xlisttemplate._multiselectionminimum);
|
||||
//BA.debugLineNum = 12;BA.debugLine="End Sub";
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
public static RemoteObject _customlistview1_itemclick(RemoteObject __ref,RemoteObject _index,RemoteObject _value) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("CustomListView1_ItemClick (b4xlisttemplate) ","b4xlisttemplate",57,__ref.getField(false, "ba"),__ref,76);
|
||||
if (RapidSub.canDelegate("customlistview1_itemclick")) { return __ref.runUserSub(false, "b4xlisttemplate","customlistview1_itemclick", __ref, _index, _value);}
|
||||
RemoteObject _item = RemoteObject.declareNull("b4a.example3.customlistview._clvitem");
|
||||
Debug.locals.put("Index", _index);
|
||||
Debug.locals.put("Value", _value);
|
||||
BA.debugLineNum = 76;BA.debugLine="Private Sub CustomListView1_ItemClick (Index As In";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 77;BA.debugLine="If Value = \"\" Then Return";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",_value,RemoteObject.createImmutable(("")))) {
|
||||
if (true) return RemoteObject.createImmutable("");};
|
||||
BA.debugLineNum = 78;BA.debugLine="If AllowMultiSelection Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (__ref.getField(true,"_allowmultiselection" /*RemoteObject*/ ).<Boolean>get().booleanValue()) {
|
||||
BA.debugLineNum = 79;BA.debugLine="Dim Item As CLVItem = CustomListView1.GetRawList";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_item = __ref.getField(false,"_customlistview1" /*RemoteObject*/ ).runMethod(false,"_getrawlistitem",(Object)(_index));Debug.locals.put("Item", _item);Debug.locals.put("Item", _item);
|
||||
BA.debugLineNum = 80;BA.debugLine="SelectItem (Item, True)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xlisttemplate.class, "_selectitem" /*RemoteObject*/ ,(Object)(_item),(Object)(b4xlisttemplate.__c.getField(true,"True")));
|
||||
}else {
|
||||
BA.debugLineNum = 82;BA.debugLine="SelectedItem = Value";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_selecteditem" /*RemoteObject*/ ,BA.ObjectToString(_value));
|
||||
BA.debugLineNum = 83;BA.debugLine="SelectedItems.Clear";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_selecteditems" /*RemoteObject*/ ).runVoidMethod ("Clear");
|
||||
BA.debugLineNum = 84;BA.debugLine="SelectedItems.Add(Value)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_selecteditems" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)(_value));
|
||||
BA.debugLineNum = 85;BA.debugLine="xDialog.Close(xui.DialogResponse_Positive)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_xdialog" /*RemoteObject*/ ).runClassMethod (reparto_mazapa.keymon.lat.b4xdialog.class, "_close" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"DialogResponse_Positive")));
|
||||
};
|
||||
BA.debugLineNum = 87;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _dialogclosed(RemoteObject __ref,RemoteObject _result) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("DialogClosed (b4xlisttemplate) ","b4xlisttemplate",57,__ref.getField(false, "ba"),__ref,89);
|
||||
if (RapidSub.canDelegate("dialogclosed")) { return __ref.runUserSub(false, "b4xlisttemplate","dialogclosed", __ref, _result);}
|
||||
Debug.locals.put("Result", _result);
|
||||
BA.debugLineNum = 89;BA.debugLine="Private Sub DialogClosed(Result As Int) 'ignore";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 91;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _getpanel(RemoteObject __ref,RemoteObject _dialog) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("GetPanel (b4xlisttemplate) ","b4xlisttemplate",57,__ref.getField(false, "ba"),__ref,37);
|
||||
if (RapidSub.canDelegate("getpanel")) { return __ref.runUserSub(false, "b4xlisttemplate","getpanel", __ref, _dialog);}
|
||||
Debug.locals.put("Dialog", _dialog);
|
||||
BA.debugLineNum = 37;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 38;BA.debugLine="Return mBase";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) return __ref.getField(false,"_mbase" /*RemoteObject*/ );
|
||||
BA.debugLineNum = 39;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _initialize(RemoteObject __ref,RemoteObject _ba) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Initialize (b4xlisttemplate) ","b4xlisttemplate",57,__ref.getField(false, "ba"),__ref,14);
|
||||
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "b4xlisttemplate","initialize", __ref, _ba);}
|
||||
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
|
||||
Debug.locals.put("ba", _ba);
|
||||
BA.debugLineNum = 14;BA.debugLine="Public Sub Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 15;BA.debugLine="mBase = xui.CreatePanel(\"mBase\")";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_mbase" /*RemoteObject*/ ,__ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(false,"CreatePanel",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("mBase"))));
|
||||
BA.debugLineNum = 16;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, 300dip, 300dip)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(b4xlisttemplate.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 300)))),(Object)(b4xlisttemplate.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 300)))));
|
||||
BA.debugLineNum = 17;BA.debugLine="mBase.LoadLayout(\"ListTemplate\")";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("ListTemplate")),__ref.getField(false, "ba"));
|
||||
BA.debugLineNum = 18;BA.debugLine="mBase.SetColorAndBorder(xui.Color_Transparent, 0,";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runVoidMethod ("SetColorAndBorder",(Object)(__ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"Color_Transparent")),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)));
|
||||
BA.debugLineNum = 19;BA.debugLine="CustomListView1.sv.SetColorAndBorder(xui.Color_Tr";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_customlistview1" /*RemoteObject*/ ).getField(false,"_sv").runVoidMethod ("SetColorAndBorder",(Object)(__ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"Color_Transparent")),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)));
|
||||
BA.debugLineNum = 20;BA.debugLine="CustomListView1.DefaultTextBackgroundColor = 0xFF";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_customlistview1" /*RemoteObject*/ ).setField ("_defaulttextbackgroundcolor",BA.numberCast(int.class, ((int)0xff555555)));
|
||||
BA.debugLineNum = 21;BA.debugLine="CustomListView1.DefaultTextColor = xui.Color_Whit";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_customlistview1" /*RemoteObject*/ ).setField ("_defaulttextcolor",__ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"Color_White"));
|
||||
BA.debugLineNum = 26;BA.debugLine="Options.Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_options" /*RemoteObject*/ ).runVoidMethod ("Initialize");
|
||||
BA.debugLineNum = 27;BA.debugLine="SelectedItems.Initialize";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_selecteditems" /*RemoteObject*/ ).runVoidMethod ("Initialize");
|
||||
BA.debugLineNum = 28;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _resize(RemoteObject __ref,RemoteObject _width,RemoteObject _height) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Resize (b4xlisttemplate) ","b4xlisttemplate",57,__ref.getField(false, "ba"),__ref,31);
|
||||
if (RapidSub.canDelegate("resize")) { return __ref.runUserSub(false, "b4xlisttemplate","resize", __ref, _width, _height);}
|
||||
Debug.locals.put("Width", _width);
|
||||
Debug.locals.put("Height", _height);
|
||||
BA.debugLineNum = 31;BA.debugLine="Public Sub Resize(Width As Int, Height As Int)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 32;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, Width, Height)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_mbase" /*RemoteObject*/ ).runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(_width),(Object)(_height));
|
||||
BA.debugLineNum = 33;BA.debugLine="CustomListView1.Base_Resize(Width, Height)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_customlistview1" /*RemoteObject*/ ).runVoidMethod ("_base_resize",(Object)(BA.numberCast(double.class, _width)),(Object)(BA.numberCast(double.class, _height)));
|
||||
BA.debugLineNum = 34;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static RemoteObject _selectitem(RemoteObject __ref,RemoteObject _item,RemoteObject _toggle) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("SelectItem (b4xlisttemplate) ","b4xlisttemplate",57,__ref.getField(false, "ba"),__ref,59);
|
||||
if (RapidSub.canDelegate("selectitem")) { return __ref.runUserSub(false, "b4xlisttemplate","selectitem", __ref, _item, _toggle);}
|
||||
RemoteObject _index = RemoteObject.createImmutable(0);
|
||||
RemoteObject _selected = RemoteObject.createImmutable(false);
|
||||
Debug.locals.put("Item", _item);
|
||||
Debug.locals.put("Toggle", _toggle);
|
||||
BA.debugLineNum = 59;BA.debugLine="Private Sub SelectItem (Item As CLVItem, Toggle As";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
BA.debugLineNum = 60;BA.debugLine="Dim index As Int = SelectedItems.IndexOf(Item.Val";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_index = __ref.getField(false,"_selecteditems" /*RemoteObject*/ ).runMethod(true,"IndexOf",(Object)(_item.getField(false,"Value")));Debug.locals.put("index", _index);Debug.locals.put("index", _index);
|
||||
BA.debugLineNum = 61;BA.debugLine="Dim Selected As Boolean = index > -1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_selected = BA.ObjectToBoolean(RemoteObject.solveBoolean(">",_index,BA.numberCast(double.class, -(double) (0 + 1))));Debug.locals.put("Selected", _selected);Debug.locals.put("Selected", _selected);
|
||||
BA.debugLineNum = 62;BA.debugLine="If Toggle Then Selected = Not(Selected)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (_toggle.<Boolean>get().booleanValue()) {
|
||||
_selected = b4xlisttemplate.__c.runMethod(true,"Not",(Object)(_selected));Debug.locals.put("Selected", _selected);};
|
||||
BA.debugLineNum = 63;BA.debugLine="If Selected Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (_selected.<Boolean>get().booleanValue()) {
|
||||
BA.debugLineNum = 64;BA.debugLine="If Not(Toggle) Then Item.Panel.Color = Selection";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (b4xlisttemplate.__c.runMethod(true,"Not",(Object)(_toggle)).<Boolean>get().booleanValue()) {
|
||||
_item.getField(false,"Panel").runMethod(true,"setColor",__ref.getField(true,"_selectioncolor" /*RemoteObject*/ ));};
|
||||
BA.debugLineNum = 65;BA.debugLine="Item.Color = CustomListView1.DefaultTextBackgrou";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_item.setField ("Color",__ref.getField(false,"_customlistview1" /*RemoteObject*/ ).getField(true,"_defaulttextbackgroundcolor"));
|
||||
BA.debugLineNum = 66;BA.debugLine="If index = -1 Then SelectedItems.Add(Item.Value)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean("=",_index,BA.numberCast(double.class, -(double) (0 + 1)))) {
|
||||
__ref.getField(false,"_selecteditems" /*RemoteObject*/ ).runVoidMethod ("Add",(Object)(_item.getField(false,"Value")));};
|
||||
}else {
|
||||
BA.debugLineNum = 68;BA.debugLine="Item.Color = SelectionColor";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_item.setField ("Color",__ref.getField(true,"_selectioncolor" /*RemoteObject*/ ));
|
||||
BA.debugLineNum = 69;BA.debugLine="If Not(Toggle) Then Item.Panel.Color = CustomLis";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (b4xlisttemplate.__c.runMethod(true,"Not",(Object)(_toggle)).<Boolean>get().booleanValue()) {
|
||||
_item.getField(false,"Panel").runMethod(true,"setColor",__ref.getField(false,"_customlistview1" /*RemoteObject*/ ).getField(true,"_defaulttextbackgroundcolor"));};
|
||||
BA.debugLineNum = 70;BA.debugLine="If index > -1 Then SelectedItems.RemoveAt(index)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (RemoteObject.solveBoolean(">",_index,BA.numberCast(double.class, -(double) (0 + 1)))) {
|
||||
__ref.getField(false,"_selecteditems" /*RemoteObject*/ ).runVoidMethod ("RemoveAt",(Object)(_index));};
|
||||
};
|
||||
BA.debugLineNum = 72;BA.debugLine="xDialog.SetButtonState(xui.DialogResponse_Positiv";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_xdialog" /*RemoteObject*/ ).runClassMethod (reparto_mazapa.keymon.lat.b4xdialog.class, "_setbuttonstate" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_xui" /*RemoteObject*/ ).getField(true,"DialogResponse_Positive")),(Object)(BA.ObjectToBoolean(RemoteObject.solveBoolean("g",__ref.getField(false,"_selecteditems" /*RemoteObject*/ ).runMethod(true,"getSize"),BA.numberCast(double.class, __ref.getField(true,"_multiselectionminimum" /*RemoteObject*/ ))))));
|
||||
BA.debugLineNum = 73;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
return RemoteObject.createImmutable("");
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static void _show(RemoteObject __ref,RemoteObject _dialog) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Show (b4xlisttemplate) ","b4xlisttemplate",57,__ref.getField(false, "ba"),__ref,41);
|
||||
if (RapidSub.canDelegate("show")) { __ref.runUserSub(false, "b4xlisttemplate","show", __ref, _dialog); return;}
|
||||
ResumableSub_Show rsub = new ResumableSub_Show(null,__ref,_dialog);
|
||||
rsub.resume(null, null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
public static class ResumableSub_Show extends BA.ResumableSub {
|
||||
public ResumableSub_Show(reparto_mazapa.keymon.lat.b4xlisttemplate parent,RemoteObject __ref,RemoteObject _dialog) {
|
||||
this.parent = parent;
|
||||
this.__ref = __ref;
|
||||
this._dialog = _dialog;
|
||||
}
|
||||
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
|
||||
RemoteObject __ref;
|
||||
reparto_mazapa.keymon.lat.b4xlisttemplate parent;
|
||||
RemoteObject _dialog;
|
||||
RemoteObject _opt = RemoteObject.declareNull("Object");
|
||||
int _i = 0;
|
||||
RemoteObject _item = RemoteObject.declareNull("b4a.example3.customlistview._clvitem");
|
||||
RemoteObject group3;
|
||||
int index3;
|
||||
int groupLen3;
|
||||
int step8;
|
||||
int limit8;
|
||||
|
||||
@Override
|
||||
public void resume(BA ba, RemoteObject result) throws Exception{
|
||||
try {
|
||||
Debug.PushSubsStack("Show (b4xlisttemplate) ","b4xlisttemplate",57,__ref.getField(false, "ba"),__ref,41);
|
||||
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;
|
||||
|
||||
while (true) {
|
||||
switch (state) {
|
||||
case -1:
|
||||
return;
|
||||
|
||||
case 0:
|
||||
//C
|
||||
this.state = 1;
|
||||
Debug.locals.put("_ref", __ref);
|
||||
Debug.locals.put("Dialog", _dialog);
|
||||
BA.debugLineNum = 42;BA.debugLine="xDialog = Dialog";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_xdialog" /*RemoteObject*/ ,_dialog);
|
||||
BA.debugLineNum = 43;BA.debugLine="CustomListView1.Clear";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_customlistview1" /*RemoteObject*/ ).runVoidMethod ("_clear");
|
||||
BA.debugLineNum = 44;BA.debugLine="For Each opt As Object In Options";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) break;
|
||||
|
||||
case 1:
|
||||
//for
|
||||
this.state = 4;
|
||||
group3 = __ref.getField(false,"_options" /*RemoteObject*/ );
|
||||
index3 = 0;
|
||||
groupLen3 = group3.runMethod(true,"getSize").<Integer>get();
|
||||
Debug.locals.put("opt", _opt);
|
||||
this.state = 12;
|
||||
if (true) break;
|
||||
|
||||
case 12:
|
||||
//C
|
||||
this.state = 4;
|
||||
if (index3 < groupLen3) {
|
||||
this.state = 3;
|
||||
_opt = group3.runMethod(false,"Get",index3);Debug.locals.put("opt", _opt);}
|
||||
if (true) break;
|
||||
|
||||
case 13:
|
||||
//C
|
||||
this.state = 12;
|
||||
index3++;
|
||||
Debug.locals.put("opt", _opt);
|
||||
if (true) break;
|
||||
|
||||
case 3:
|
||||
//C
|
||||
this.state = 13;
|
||||
BA.debugLineNum = 45;BA.debugLine="CustomListView1.AddTextItem(opt, opt)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.getField(false,"_customlistview1" /*RemoteObject*/ ).runVoidMethod ("_addtextitem",(Object)(_opt),(Object)(_opt));
|
||||
if (true) break;
|
||||
if (true) break;
|
||||
Debug.locals.put("opt", _opt);
|
||||
;
|
||||
BA.debugLineNum = 47;BA.debugLine="If AllowMultiSelection Then";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
|
||||
case 4:
|
||||
//if
|
||||
this.state = 11;
|
||||
if (__ref.getField(true,"_allowmultiselection" /*RemoteObject*/ ).<Boolean>get().booleanValue()) {
|
||||
this.state = 6;
|
||||
}if (true) break;
|
||||
|
||||
case 6:
|
||||
//C
|
||||
this.state = 7;
|
||||
BA.debugLineNum = 48;BA.debugLine="Sleep(20)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
parent.__c.runVoidMethod ("Sleep",__ref.getField(false, "ba"),anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "b4xlisttemplate", "show"),BA.numberCast(int.class, 20));
|
||||
this.state = 14;
|
||||
return;
|
||||
case 14:
|
||||
//C
|
||||
this.state = 7;
|
||||
;
|
||||
BA.debugLineNum = 49;BA.debugLine="For i = 0 To CustomListView1.Size - 1";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) break;
|
||||
|
||||
case 7:
|
||||
//for
|
||||
this.state = 10;
|
||||
step8 = 1;
|
||||
limit8 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_customlistview1" /*RemoteObject*/ ).runMethod(true,"_getsize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
|
||||
_i = 0 ;
|
||||
Debug.locals.put("i", _i);
|
||||
this.state = 15;
|
||||
if (true) break;
|
||||
|
||||
case 15:
|
||||
//C
|
||||
this.state = 10;
|
||||
if ((step8 > 0 && _i <= limit8) || (step8 < 0 && _i >= limit8)) this.state = 9;
|
||||
if (true) break;
|
||||
|
||||
case 16:
|
||||
//C
|
||||
this.state = 15;
|
||||
_i = ((int)(0 + _i + step8)) ;
|
||||
Debug.locals.put("i", _i);
|
||||
if (true) break;
|
||||
|
||||
case 9:
|
||||
//C
|
||||
this.state = 16;
|
||||
BA.debugLineNum = 50;BA.debugLine="Dim item As CLVItem = CustomListView1.GetRawLis";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
_item = __ref.getField(false,"_customlistview1" /*RemoteObject*/ ).runMethod(false,"_getrawlistitem",(Object)(BA.numberCast(int.class, _i)));Debug.locals.put("item", _item);Debug.locals.put("item", _item);
|
||||
BA.debugLineNum = 51;BA.debugLine="SelectItem (item, False)";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.runClassMethod (reparto_mazapa.keymon.lat.b4xlisttemplate.class, "_selectitem" /*RemoteObject*/ ,(Object)(_item),(Object)(parent.__c.getField(true,"False")));
|
||||
if (true) break;
|
||||
if (true) break;
|
||||
|
||||
case 10:
|
||||
//C
|
||||
this.state = 11;
|
||||
Debug.locals.put("i", _i);
|
||||
;
|
||||
if (true) break;
|
||||
|
||||
case 11:
|
||||
//C
|
||||
this.state = -1;
|
||||
;
|
||||
BA.debugLineNum = 54;BA.debugLine="XUIViewsUtils.AddStubToCLVIfNeeded(CustomListView";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
parent._xuiviewsutils.runVoidMethod ("_addstubtoclvifneeded" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_customlistview1" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_customlistview1" /*RemoteObject*/ ).getField(true,"_defaulttextbackgroundcolor")));
|
||||
BA.debugLineNum = 55;BA.debugLine="SelectedItem = \"\"";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
__ref.setField ("_selecteditem" /*RemoteObject*/ ,BA.ObjectToString(""));
|
||||
BA.debugLineNum = 57;BA.debugLine="End Sub";
|
||||
Debug.JustUpdateDeviceLine();
|
||||
if (true) break;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw Debug.ErrorCaught(e);
|
||||
}
|
||||
finally {
|
||||
Debug.PopSubsStack();
|
||||
}}
|
||||
}
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
|
||||
package reparto_mazapa.keymon.lat;
|
||||
|
||||
import anywheresoftware.b4a.pc.PCBA;
|
||||
import anywheresoftware.b4a.pc.RemoteObject;
|
||||
|
||||
public class b4xloadingindicator {
|
||||
public static RemoteObject myClass;
|
||||
public b4xloadingindicator() {
|
||||
}
|
||||
public static PCBA staticBA = new PCBA(null, b4xloadingindicator.class);
|
||||
|
||||
public static RemoteObject __c = RemoteObject.declareNull("anywheresoftware.b4a.keywords.Common");
|
||||
public static RemoteObject _meventname = RemoteObject.createImmutable("");
|
||||
public static RemoteObject _mcallback = RemoteObject.declareNull("Object");
|
||||
public static RemoteObject _mbase = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
|
||||
public static RemoteObject _xui = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");
|
||||
public static RemoteObject _clr = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _index = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _cvs = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XCanvas");
|
||||
public static RemoteObject _duration = RemoteObject.createImmutable(0);
|
||||
public static RemoteObject _drawingsubname = RemoteObject.createImmutable("");
|
||||
public static RemoteObject _tag = RemoteObject.declareNull("Object");
|
||||
public static RemoteObject _dateutils = RemoteObject.declareNull("b4a.example.dateutils");
|
||||
public static reparto_mazapa.keymon.lat.main _main = null;
|
||||
public static reparto_mazapa.keymon.lat.appupdater _appupdater = null;
|
||||
public static reparto_mazapa.keymon.lat.tracker _tracker = null;
|
||||
public static reparto_mazapa.keymon.lat.starter _starter = null;
|
||||
public static reparto_mazapa.keymon.lat.subs _subs = null;
|
||||
public static reparto_mazapa.keymon.lat.firebasemessaging _firebasemessaging = null;
|
||||
public static reparto_mazapa.keymon.lat.foto _foto = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_cliente _mapa_cliente = null;
|
||||
public static reparto_mazapa.keymon.lat.mapa_rutas _mapa_rutas = null;
|
||||
public static reparto_mazapa.keymon.lat.newinst2 _newinst2 = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xpages _b4xpages = null;
|
||||
public static reparto_mazapa.keymon.lat.b4xcollections _b4xcollections = null;
|
||||
public static reparto_mazapa.keymon.lat.httputils2service _httputils2service = null;
|
||||
public static reparto_mazapa.keymon.lat.xuiviewsutils _xuiviewsutils = null;
|
||||
public static Object[] GetGlobals(RemoteObject _ref) throws Exception {
|
||||
return new Object[] {"clr",_ref.getField(false, "_clr"),"cvs",_ref.getField(false, "_cvs"),"DateUtils",_ref.getField(false, "_dateutils"),"DrawingSubName",_ref.getField(false, "_drawingsubname"),"duration",_ref.getField(false, "_duration"),"index",_ref.getField(false, "_index"),"mBase",_ref.getField(false, "_mbase"),"mCallBack",_ref.getField(false, "_mcallback"),"mEventName",_ref.getField(false, "_meventname"),"Tag",_ref.getField(false, "_tag"),"xui",_ref.getField(false, "_xui")};
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user