mirror of
https://github.com/KeymonSoft/Medicomed_Preventa.git
synced 2026-04-20 06:19:13 +00:00
Se hicieron invisibles normales de la venta, se agregaron 2 botones mas, uno indica que tieene venta y el otro que no tiene, tambien al boton que indica que tiene venta se le agrega una pequeña ventana para agregar la venta que se le indique.
1529 lines
67 KiB
Java
1529 lines
67 KiB
Java
package keymon.lat.medicomed;
|
|
|
|
|
|
import anywheresoftware.b4a.BA;
|
|
import anywheresoftware.b4a.B4AClass;
|
|
import anywheresoftware.b4a.BALayout;
|
|
import anywheresoftware.b4a.debug.*;
|
|
|
|
public class b4xdialog extends B4AClass.ImplB4AClass implements BA.SubDelegator{
|
|
private static java.util.HashMap<String, java.lang.reflect.Method> htSubs;
|
|
private void innerInitialize(BA _ba) throws Exception {
|
|
if (ba == null) {
|
|
ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "keymon.lat.medicomed.b4xdialog");
|
|
if (htSubs == null) {
|
|
ba.loadHtSubs(this.getClass());
|
|
htSubs = ba.htSubs;
|
|
}
|
|
|
|
}
|
|
if (BA.isShellModeRuntimeCheck(ba))
|
|
this.getClass().getMethod("_class_globals", keymon.lat.medicomed.b4xdialog.class).invoke(this, new Object[] {null});
|
|
else
|
|
ba.raiseEvent2(null, true, "class_globals", false);
|
|
}
|
|
|
|
|
|
public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{
|
|
innerInitialize(_ba);
|
|
}
|
|
public Object callSub(String sub, Object sender, Object[] args) throws Exception {
|
|
return BA.SubDelegator.SubNotFound;
|
|
}
|
|
public anywheresoftware.b4a.keywords.Common __c = null;
|
|
public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
|
|
public int _buttonsheight = 0;
|
|
public int _titlebarheight = 0;
|
|
public int _buttonwidth = 0;
|
|
public anywheresoftware.b4a.objects.B4XViewWrapper _base = null;
|
|
public int _backgroundcolor = 0;
|
|
public int _overlaycolor = 0;
|
|
public int _bordercolor = 0;
|
|
public int _bordercornersradius = 0;
|
|
public int _borderwidth = 0;
|
|
public int _buttonscolor = 0;
|
|
public int _buttonstextcolor = 0;
|
|
public anywheresoftware.b4a.objects.B4XViewWrapper _background = null;
|
|
public anywheresoftware.b4a.objects.B4XViewWrapper _blurimageview = null;
|
|
public boolean _blurbackground = false;
|
|
public int _blurreducescale = 0;
|
|
public anywheresoftware.b4a.objects.B4XViewWrapper _mparent = null;
|
|
public Object _title = null;
|
|
public int _titlebarcolor = 0;
|
|
public int _titlebartextcolor = 0;
|
|
public int _bodytextcolor = 0;
|
|
public anywheresoftware.b4a.objects.B4XViewWrapper _titlebar = null;
|
|
public boolean _putattop = false;
|
|
public anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont _titlebarfont = null;
|
|
public anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont _buttonsfont = null;
|
|
public int _buttonstextcolordisabled = 0;
|
|
public int _visibleanimationduration = 0;
|
|
public int[] _buttonsorder = null;
|
|
public anywheresoftware.b4a.objects.collections.Map _buttonsstate = null;
|
|
public b4a.example.dateutils _dateutils = null;
|
|
public keymon.lat.medicomed.main _main = null;
|
|
public keymon.lat.medicomed.starter _starter = null;
|
|
public keymon.lat.medicomed.subs _subs = null;
|
|
public keymon.lat.medicomed.appupdater _appupdater = null;
|
|
public keymon.lat.medicomed.mapa_rutas _mapa_rutas = null;
|
|
public keymon.lat.medicomed.tracker _tracker = null;
|
|
public keymon.lat.medicomed.newinst2 _newinst2 = null;
|
|
public keymon.lat.medicomed.b4xpages _b4xpages = null;
|
|
public keymon.lat.medicomed.b4xcollections _b4xcollections = null;
|
|
public keymon.lat.medicomed.httputils2service _httputils2service = null;
|
|
public keymon.lat.medicomed.xuiviewsutils _xuiviewsutils = null;
|
|
public boolean _close(keymon.lat.medicomed.b4xdialog __ref,int _result) throws Exception{
|
|
__ref = this;
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
if (Debug.shouldDelegate(ba, "close", true))
|
|
{return ((Boolean) Debug.delegate(ba, "close", new Object[] {_result}));}
|
|
RDebugUtils.currentLine=50266112;
|
|
//BA.debugLineNum = 50266112;BA.debugLine="Public Sub Close (Result As Int) As Boolean";
|
|
RDebugUtils.currentLine=50266113;
|
|
//BA.debugLineNum = 50266113;BA.debugLine="If getVisible Then";
|
|
if (__ref._getvisible /*boolean*/ (null)) {
|
|
RDebugUtils.currentLine=50266114;
|
|
//BA.debugLineNum = 50266114;BA.debugLine="CallSubDelayed2(Me, \"CloseMessage\", Result)";
|
|
__c.CallSubDelayed2(ba,this,"CloseMessage",(Object)(_result));
|
|
RDebugUtils.currentLine=50266115;
|
|
//BA.debugLineNum = 50266115;BA.debugLine="Return True";
|
|
if (true) return __c.True;
|
|
};
|
|
RDebugUtils.currentLine=50266117;
|
|
//BA.debugLineNum = 50266117;BA.debugLine="Return False";
|
|
if (true) return __c.False;
|
|
RDebugUtils.currentLine=50266118;
|
|
//BA.debugLineNum = 50266118;BA.debugLine="End Sub";
|
|
return false;
|
|
}
|
|
public String _background_click(keymon.lat.medicomed.b4xdialog __ref) throws Exception{
|
|
__ref = this;
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
if (Debug.shouldDelegate(ba, "background_click", true))
|
|
{return ((String) Debug.delegate(ba, "background_click", null));}
|
|
RDebugUtils.currentLine=50397184;
|
|
//BA.debugLineNum = 50397184;BA.debugLine="Private Sub Background_Click";
|
|
RDebugUtils.currentLine=50397186;
|
|
//BA.debugLineNum = 50397186;BA.debugLine="End Sub";
|
|
return "";
|
|
}
|
|
public String _background_touch(keymon.lat.medicomed.b4xdialog __ref,int _action,float _x,float _y) throws Exception{
|
|
__ref = this;
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
if (Debug.shouldDelegate(ba, "background_touch", true))
|
|
{return ((String) Debug.delegate(ba, "background_touch", new Object[] {_action,_x,_y}));}
|
|
RDebugUtils.currentLine=50331648;
|
|
//BA.debugLineNum = 50331648;BA.debugLine="Private Sub Background_Touch (Action As Int, X As";
|
|
RDebugUtils.currentLine=50331650;
|
|
//BA.debugLineNum = 50331650;BA.debugLine="End Sub";
|
|
return "";
|
|
}
|
|
public b4a.example.bitmapcreator _blur(keymon.lat.medicomed.b4xdialog __ref,anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _bmp) throws Exception{
|
|
__ref = this;
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
if (Debug.shouldDelegate(ba, "blur", true))
|
|
{return ((b4a.example.bitmapcreator) Debug.delegate(ba, "blur", new Object[] {_bmp}));}
|
|
b4a.example.bitmapcreator _bc = null;
|
|
int _reducescale = 0;
|
|
int _count = 0;
|
|
b4a.example.bitmapcreator._argbcolor[] _clrs = null;
|
|
b4a.example.bitmapcreator._argbcolor _temp = null;
|
|
int _m = 0;
|
|
int _steps = 0;
|
|
int _y = 0;
|
|
int _x = 0;
|
|
RDebugUtils.currentLine=50593792;
|
|
//BA.debugLineNum = 50593792;BA.debugLine="Private Sub Blur (bmp As B4XBitmap) As BitmapCreat";
|
|
RDebugUtils.currentLine=50593793;
|
|
//BA.debugLineNum = 50593793;BA.debugLine="Dim bc As BitmapCreator";
|
|
_bc = new b4a.example.bitmapcreator();
|
|
RDebugUtils.currentLine=50593794;
|
|
//BA.debugLineNum = 50593794;BA.debugLine="Dim ReduceScale As Int = BlurReduceScale";
|
|
_reducescale = __ref._blurreducescale /*int*/ ;
|
|
RDebugUtils.currentLine=50593795;
|
|
//BA.debugLineNum = 50593795;BA.debugLine="bc.Initialize(bmp.Width / ReduceScale / bmp.Scale";
|
|
_bc._initialize(ba,(int) (_bmp.getWidth()/(double)_reducescale/(double)_bmp.getScale()),(int) (_bmp.getHeight()/(double)_reducescale/(double)_bmp.getScale()));
|
|
RDebugUtils.currentLine=50593796;
|
|
//BA.debugLineNum = 50593796;BA.debugLine="bc.CopyPixelsFromBitmap(bmp)";
|
|
_bc._copypixelsfrombitmap(_bmp);
|
|
RDebugUtils.currentLine=50593797;
|
|
//BA.debugLineNum = 50593797;BA.debugLine="Dim count As Int = 2";
|
|
_count = (int) (2);
|
|
RDebugUtils.currentLine=50593798;
|
|
//BA.debugLineNum = 50593798;BA.debugLine="Dim clrs(3) As ARGBColor";
|
|
_clrs = new b4a.example.bitmapcreator._argbcolor[(int) (3)];
|
|
{
|
|
int d0 = _clrs.length;
|
|
for (int i0 = 0;i0 < d0;i0++) {
|
|
_clrs[i0] = new b4a.example.bitmapcreator._argbcolor();
|
|
}
|
|
}
|
|
;
|
|
RDebugUtils.currentLine=50593799;
|
|
//BA.debugLineNum = 50593799;BA.debugLine="Dim temp As ARGBColor";
|
|
_temp = new b4a.example.bitmapcreator._argbcolor();
|
|
RDebugUtils.currentLine=50593800;
|
|
//BA.debugLineNum = 50593800;BA.debugLine="Dim m As Int";
|
|
_m = 0;
|
|
RDebugUtils.currentLine=50593801;
|
|
//BA.debugLineNum = 50593801;BA.debugLine="For steps = 1 To count";
|
|
{
|
|
final int step9 = 1;
|
|
final int limit9 = _count;
|
|
_steps = (int) (1) ;
|
|
for (;_steps <= limit9 ;_steps = _steps + step9 ) {
|
|
RDebugUtils.currentLine=50593802;
|
|
//BA.debugLineNum = 50593802;BA.debugLine="For y = 0 To bc.mHeight - 1";
|
|
{
|
|
final int step10 = 1;
|
|
final int limit10 = (int) (_bc._mheight-1);
|
|
_y = (int) (0) ;
|
|
for (;_y <= limit10 ;_y = _y + step10 ) {
|
|
RDebugUtils.currentLine=50593803;
|
|
//BA.debugLineNum = 50593803;BA.debugLine="For x = 0 To 2";
|
|
{
|
|
final int step11 = 1;
|
|
final int limit11 = (int) (2);
|
|
_x = (int) (0) ;
|
|
for (;_x <= limit11 ;_x = _x + step11 ) {
|
|
RDebugUtils.currentLine=50593804;
|
|
//BA.debugLineNum = 50593804;BA.debugLine="bc.GetARGB(x, y, clrs(x))";
|
|
_bc._getargb(_x,_y,_clrs[_x]);
|
|
}
|
|
};
|
|
RDebugUtils.currentLine=50593806;
|
|
//BA.debugLineNum = 50593806;BA.debugLine="SetAvg(bc, 1, y, clrs, temp)";
|
|
__ref._setavg /*String*/ (null,_bc,(int) (1),_y,_clrs,_temp);
|
|
RDebugUtils.currentLine=50593807;
|
|
//BA.debugLineNum = 50593807;BA.debugLine="m = 0";
|
|
_m = (int) (0);
|
|
RDebugUtils.currentLine=50593808;
|
|
//BA.debugLineNum = 50593808;BA.debugLine="For x = 2 To bc.mWidth - 2";
|
|
{
|
|
final int step16 = 1;
|
|
final int limit16 = (int) (_bc._mwidth-2);
|
|
_x = (int) (2) ;
|
|
for (;_x <= limit16 ;_x = _x + step16 ) {
|
|
RDebugUtils.currentLine=50593809;
|
|
//BA.debugLineNum = 50593809;BA.debugLine="bc.GetARGB(x + 1, y, clrs(m))";
|
|
_bc._getargb((int) (_x+1),_y,_clrs[_m]);
|
|
RDebugUtils.currentLine=50593810;
|
|
//BA.debugLineNum = 50593810;BA.debugLine="m = (m + 1) Mod 3";
|
|
_m = (int) ((_m+1)%3);
|
|
RDebugUtils.currentLine=50593811;
|
|
//BA.debugLineNum = 50593811;BA.debugLine="SetAvg(bc, x, y, clrs, temp)";
|
|
__ref._setavg /*String*/ (null,_bc,_x,_y,_clrs,_temp);
|
|
}
|
|
};
|
|
}
|
|
};
|
|
RDebugUtils.currentLine=50593814;
|
|
//BA.debugLineNum = 50593814;BA.debugLine="For x = 0 To bc.mWidth - 1";
|
|
{
|
|
final int step22 = 1;
|
|
final int limit22 = (int) (_bc._mwidth-1);
|
|
_x = (int) (0) ;
|
|
for (;_x <= limit22 ;_x = _x + step22 ) {
|
|
RDebugUtils.currentLine=50593815;
|
|
//BA.debugLineNum = 50593815;BA.debugLine="For y = 0 To 2";
|
|
{
|
|
final int step23 = 1;
|
|
final int limit23 = (int) (2);
|
|
_y = (int) (0) ;
|
|
for (;_y <= limit23 ;_y = _y + step23 ) {
|
|
RDebugUtils.currentLine=50593816;
|
|
//BA.debugLineNum = 50593816;BA.debugLine="bc.GetARGB(x, y, clrs(y))";
|
|
_bc._getargb(_x,_y,_clrs[_y]);
|
|
}
|
|
};
|
|
RDebugUtils.currentLine=50593818;
|
|
//BA.debugLineNum = 50593818;BA.debugLine="SetAvg(bc, x, 1, clrs, temp)";
|
|
__ref._setavg /*String*/ (null,_bc,_x,(int) (1),_clrs,_temp);
|
|
RDebugUtils.currentLine=50593819;
|
|
//BA.debugLineNum = 50593819;BA.debugLine="m = 0";
|
|
_m = (int) (0);
|
|
RDebugUtils.currentLine=50593820;
|
|
//BA.debugLineNum = 50593820;BA.debugLine="For y = 2 To bc.mHeight - 2";
|
|
{
|
|
final int step28 = 1;
|
|
final int limit28 = (int) (_bc._mheight-2);
|
|
_y = (int) (2) ;
|
|
for (;_y <= limit28 ;_y = _y + step28 ) {
|
|
RDebugUtils.currentLine=50593821;
|
|
//BA.debugLineNum = 50593821;BA.debugLine="bc.GetARGB(x, y + 1, clrs(m))";
|
|
_bc._getargb(_x,(int) (_y+1),_clrs[_m]);
|
|
RDebugUtils.currentLine=50593822;
|
|
//BA.debugLineNum = 50593822;BA.debugLine="m = (m + 1) Mod 3";
|
|
_m = (int) ((_m+1)%3);
|
|
RDebugUtils.currentLine=50593823;
|
|
//BA.debugLineNum = 50593823;BA.debugLine="SetAvg(bc, x, y, clrs, temp)";
|
|
__ref._setavg /*String*/ (null,_bc,_x,_y,_clrs,_temp);
|
|
}
|
|
};
|
|
}
|
|
};
|
|
}
|
|
};
|
|
RDebugUtils.currentLine=50593827;
|
|
//BA.debugLineNum = 50593827;BA.debugLine="Return bc";
|
|
if (true) return _bc;
|
|
RDebugUtils.currentLine=50593828;
|
|
//BA.debugLineNum = 50593828;BA.debugLine="End Sub";
|
|
return null;
|
|
}
|
|
public String _setavg(keymon.lat.medicomed.b4xdialog __ref,b4a.example.bitmapcreator _bc,int _x,int _y,b4a.example.bitmapcreator._argbcolor[] _clrs,b4a.example.bitmapcreator._argbcolor _temp) throws Exception{
|
|
__ref = this;
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
if (Debug.shouldDelegate(ba, "setavg", true))
|
|
{return ((String) Debug.delegate(ba, "setavg", new Object[] {_bc,_x,_y,_clrs,_temp}));}
|
|
b4a.example.bitmapcreator._argbcolor _c = null;
|
|
RDebugUtils.currentLine=50659328;
|
|
//BA.debugLineNum = 50659328;BA.debugLine="Private Sub SetAvg(bc As BitmapCreator, x As Int,";
|
|
RDebugUtils.currentLine=50659329;
|
|
//BA.debugLineNum = 50659329;BA.debugLine="temp.Initialize";
|
|
_temp.Initialize();
|
|
RDebugUtils.currentLine=50659330;
|
|
//BA.debugLineNum = 50659330;BA.debugLine="For Each c As ARGBColor In clrs";
|
|
{
|
|
final b4a.example.bitmapcreator._argbcolor[] group2 = _clrs;
|
|
final int groupLen2 = group2.length
|
|
;int index2 = 0;
|
|
;
|
|
for (; index2 < groupLen2;index2++){
|
|
_c = group2[index2];
|
|
RDebugUtils.currentLine=50659331;
|
|
//BA.debugLineNum = 50659331;BA.debugLine="temp.r = temp.r + c.r";
|
|
_temp.r = (int) (_temp.r+_c.r);
|
|
RDebugUtils.currentLine=50659332;
|
|
//BA.debugLineNum = 50659332;BA.debugLine="temp.g = temp.g + c.g";
|
|
_temp.g = (int) (_temp.g+_c.g);
|
|
RDebugUtils.currentLine=50659333;
|
|
//BA.debugLineNum = 50659333;BA.debugLine="temp.b = temp.b + c.b";
|
|
_temp.b = (int) (_temp.b+_c.b);
|
|
}
|
|
};
|
|
RDebugUtils.currentLine=50659335;
|
|
//BA.debugLineNum = 50659335;BA.debugLine="temp.a = 255";
|
|
_temp.a = (int) (255);
|
|
RDebugUtils.currentLine=50659336;
|
|
//BA.debugLineNum = 50659336;BA.debugLine="temp.r = temp.r / 3";
|
|
_temp.r = (int) (_temp.r/(double)3);
|
|
RDebugUtils.currentLine=50659337;
|
|
//BA.debugLineNum = 50659337;BA.debugLine="temp.g = temp.g / 3";
|
|
_temp.g = (int) (_temp.g/(double)3);
|
|
RDebugUtils.currentLine=50659338;
|
|
//BA.debugLineNum = 50659338;BA.debugLine="temp.b = temp.b / 3";
|
|
_temp.b = (int) (_temp.b/(double)3);
|
|
RDebugUtils.currentLine=50659339;
|
|
//BA.debugLineNum = 50659339;BA.debugLine="bc.SetARGB(x, y, temp)";
|
|
_bc._setargb(_x,_y,_temp);
|
|
RDebugUtils.currentLine=50659340;
|
|
//BA.debugLineNum = 50659340;BA.debugLine="End Sub";
|
|
return "";
|
|
}
|
|
public String _button_click(keymon.lat.medicomed.b4xdialog __ref) throws Exception{
|
|
__ref = this;
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
if (Debug.shouldDelegate(ba, "button_click", true))
|
|
{return ((String) Debug.delegate(ba, "button_click", null));}
|
|
anywheresoftware.b4a.objects.B4XViewWrapper _b = null;
|
|
RDebugUtils.currentLine=50200576;
|
|
//BA.debugLineNum = 50200576;BA.debugLine="Private Sub Button_Click";
|
|
RDebugUtils.currentLine=50200577;
|
|
//BA.debugLineNum = 50200577;BA.debugLine="Dim b As B4XView = Sender";
|
|
_b = new anywheresoftware.b4a.objects.B4XViewWrapper();
|
|
_b = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)));
|
|
RDebugUtils.currentLine=50200578;
|
|
//BA.debugLineNum = 50200578;BA.debugLine="If ButtonsState.GetDefault(b.Tag, True) = False T";
|
|
if ((__ref._buttonsstate /*anywheresoftware.b4a.objects.collections.Map*/ .GetDefault(_b.getTag(),(Object)(__c.True))).equals((Object)(__c.False))) {
|
|
if (true) return "";};
|
|
RDebugUtils.currentLine=50200579;
|
|
//BA.debugLineNum = 50200579;BA.debugLine="Close(b.Tag)";
|
|
__ref._close /*boolean*/ (null,(int)(BA.ObjectToNumber(_b.getTag())));
|
|
RDebugUtils.currentLine=50200580;
|
|
//BA.debugLineNum = 50200580;BA.debugLine="End Sub";
|
|
return "";
|
|
}
|
|
public String _class_globals(keymon.lat.medicomed.b4xdialog __ref) throws Exception{
|
|
__ref = this;
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
RDebugUtils.currentLine=49610752;
|
|
//BA.debugLineNum = 49610752;BA.debugLine="Sub Class_Globals";
|
|
RDebugUtils.currentLine=49610753;
|
|
//BA.debugLineNum = 49610753;BA.debugLine="Private xui As XUI";
|
|
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
|
|
RDebugUtils.currentLine=49610754;
|
|
//BA.debugLineNum = 49610754;BA.debugLine="Public ButtonsHeight As Int = 40dip";
|
|
_buttonsheight = __c.DipToCurrent((int) (40));
|
|
RDebugUtils.currentLine=49610755;
|
|
//BA.debugLineNum = 49610755;BA.debugLine="Public TitleBarHeight As Int = 30dip";
|
|
_titlebarheight = __c.DipToCurrent((int) (30));
|
|
RDebugUtils.currentLine=49610756;
|
|
//BA.debugLineNum = 49610756;BA.debugLine="Private ButtonWidth As Int = 80dip";
|
|
_buttonwidth = __c.DipToCurrent((int) (80));
|
|
RDebugUtils.currentLine=49610757;
|
|
//BA.debugLineNum = 49610757;BA.debugLine="Public Base As B4XView";
|
|
_base = new anywheresoftware.b4a.objects.B4XViewWrapper();
|
|
RDebugUtils.currentLine=49610758;
|
|
//BA.debugLineNum = 49610758;BA.debugLine="Public BackgroundColor As Int = 0xFF555555 'base";
|
|
_backgroundcolor = ((int)0xff555555);
|
|
RDebugUtils.currentLine=49610759;
|
|
//BA.debugLineNum = 49610759;BA.debugLine="Public OverlayColor As Int = 0xaa000000";
|
|
_overlaycolor = ((int)0xaa000000);
|
|
RDebugUtils.currentLine=49610760;
|
|
//BA.debugLineNum = 49610760;BA.debugLine="Public BorderColor As Int = 0xff000000";
|
|
_bordercolor = ((int)0xff000000);
|
|
RDebugUtils.currentLine=49610761;
|
|
//BA.debugLineNum = 49610761;BA.debugLine="Public BorderCornersRadius As Int = 2dip";
|
|
_bordercornersradius = __c.DipToCurrent((int) (2));
|
|
RDebugUtils.currentLine=49610762;
|
|
//BA.debugLineNum = 49610762;BA.debugLine="Public BorderWidth As Int = 2dip";
|
|
_borderwidth = __c.DipToCurrent((int) (2));
|
|
RDebugUtils.currentLine=49610763;
|
|
//BA.debugLineNum = 49610763;BA.debugLine="Public ButtonsColor As Int = 0xFF555555";
|
|
_buttonscolor = ((int)0xff555555);
|
|
RDebugUtils.currentLine=49610764;
|
|
//BA.debugLineNum = 49610764;BA.debugLine="Public ButtonsTextColor As Int = 0xFF89D5FF";
|
|
_buttonstextcolor = ((int)0xff89d5ff);
|
|
RDebugUtils.currentLine=49610765;
|
|
//BA.debugLineNum = 49610765;BA.debugLine="Private Background As B4XView";
|
|
_background = new anywheresoftware.b4a.objects.B4XViewWrapper();
|
|
RDebugUtils.currentLine=49610766;
|
|
//BA.debugLineNum = 49610766;BA.debugLine="Private BlurImageView As B4XView";
|
|
_blurimageview = new anywheresoftware.b4a.objects.B4XViewWrapper();
|
|
RDebugUtils.currentLine=49610767;
|
|
//BA.debugLineNum = 49610767;BA.debugLine="Public BlurBackground As Boolean";
|
|
_blurbackground = false;
|
|
RDebugUtils.currentLine=49610768;
|
|
//BA.debugLineNum = 49610768;BA.debugLine="Private BlurReduceScale As Int";
|
|
_blurreducescale = 0;
|
|
RDebugUtils.currentLine=49610769;
|
|
//BA.debugLineNum = 49610769;BA.debugLine="Public mParent As B4XView";
|
|
_mparent = new anywheresoftware.b4a.objects.B4XViewWrapper();
|
|
RDebugUtils.currentLine=49610770;
|
|
//BA.debugLineNum = 49610770;BA.debugLine="Public Title As Object = \"\"";
|
|
_title = (Object)("");
|
|
RDebugUtils.currentLine=49610771;
|
|
//BA.debugLineNum = 49610771;BA.debugLine="Public TitleBarColor As Int = 0xFF0083B8";
|
|
_titlebarcolor = ((int)0xff0083b8);
|
|
RDebugUtils.currentLine=49610772;
|
|
//BA.debugLineNum = 49610772;BA.debugLine="Public TitleBarTextColor As Int";
|
|
_titlebartextcolor = 0;
|
|
RDebugUtils.currentLine=49610773;
|
|
//BA.debugLineNum = 49610773;BA.debugLine="Public BodyTextColor As Int = xui.Color_White";
|
|
_bodytextcolor = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_White;
|
|
RDebugUtils.currentLine=49610774;
|
|
//BA.debugLineNum = 49610774;BA.debugLine="Public TitleBar As B4XView";
|
|
_titlebar = new anywheresoftware.b4a.objects.B4XViewWrapper();
|
|
RDebugUtils.currentLine=49610775;
|
|
//BA.debugLineNum = 49610775;BA.debugLine="Public PutAtTop As Boolean";
|
|
_putattop = false;
|
|
RDebugUtils.currentLine=49610776;
|
|
//BA.debugLineNum = 49610776;BA.debugLine="Public TitleBarFont As B4XFont";
|
|
_titlebarfont = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont();
|
|
RDebugUtils.currentLine=49610777;
|
|
//BA.debugLineNum = 49610777;BA.debugLine="Public ButtonsFont As B4XFont";
|
|
_buttonsfont = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont();
|
|
RDebugUtils.currentLine=49610778;
|
|
//BA.debugLineNum = 49610778;BA.debugLine="Public ButtonsTextColorDisabled As Int = 0xFF8080";
|
|
_buttonstextcolordisabled = ((int)0xff808080);
|
|
RDebugUtils.currentLine=49610779;
|
|
//BA.debugLineNum = 49610779;BA.debugLine="Public VisibleAnimationDuration As Int = 100";
|
|
_visibleanimationduration = (int) (100);
|
|
RDebugUtils.currentLine=49610780;
|
|
//BA.debugLineNum = 49610780;BA.debugLine="Public ButtonsOrder() As Int = Array As Int(xui.D";
|
|
_buttonsorder = new int[]{__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Positive,__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Negative,__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Cancel};
|
|
RDebugUtils.currentLine=49610781;
|
|
//BA.debugLineNum = 49610781;BA.debugLine="Public ButtonsState As Map";
|
|
_buttonsstate = new anywheresoftware.b4a.objects.collections.Map();
|
|
RDebugUtils.currentLine=49610782;
|
|
//BA.debugLineNum = 49610782;BA.debugLine="End Sub";
|
|
return "";
|
|
}
|
|
public boolean _getvisible(keymon.lat.medicomed.b4xdialog __ref) throws Exception{
|
|
__ref = this;
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
if (Debug.shouldDelegate(ba, "getvisible", true))
|
|
{return ((Boolean) Debug.delegate(ba, "getvisible", null));}
|
|
RDebugUtils.currentLine=49938432;
|
|
//BA.debugLineNum = 49938432;BA.debugLine="Public Sub getVisible As Boolean";
|
|
RDebugUtils.currentLine=49938433;
|
|
//BA.debugLineNum = 49938433;BA.debugLine="Return Background.IsInitialized And Background.Pa";
|
|
if (true) return __ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .IsInitialized() && __ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getParent().IsInitialized();
|
|
RDebugUtils.currentLine=49938434;
|
|
//BA.debugLineNum = 49938434;BA.debugLine="End Sub";
|
|
return false;
|
|
}
|
|
public String _createbutton(keymon.lat.medicomed.b4xdialog __ref,Object _text,int _code) throws Exception{
|
|
__ref = this;
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
if (Debug.shouldDelegate(ba, "createbutton", true))
|
|
{return ((String) Debug.delegate(ba, "createbutton", new Object[] {_text,_code}));}
|
|
anywheresoftware.b4a.objects.LabelWrapper _btn = null;
|
|
anywheresoftware.b4a.objects.B4XViewWrapper _xbtn = null;
|
|
int _numberofbuttons = 0;
|
|
RDebugUtils.currentLine=50003968;
|
|
//BA.debugLineNum = 50003968;BA.debugLine="Private Sub CreateButton (Text As Object, Code As";
|
|
RDebugUtils.currentLine=50003969;
|
|
//BA.debugLineNum = 50003969;BA.debugLine="If Text = \"\" Then Return";
|
|
if ((_text).equals((Object)(""))) {
|
|
if (true) return "";};
|
|
RDebugUtils.currentLine=50003973;
|
|
//BA.debugLineNum = 50003973;BA.debugLine="Dim btn As Label";
|
|
_btn = new anywheresoftware.b4a.objects.LabelWrapper();
|
|
RDebugUtils.currentLine=50003975;
|
|
//BA.debugLineNum = 50003975;BA.debugLine="btn.Initialize(\"Button\")";
|
|
_btn.Initialize(ba,"Button");
|
|
RDebugUtils.currentLine=50003976;
|
|
//BA.debugLineNum = 50003976;BA.debugLine="Dim xbtn As B4XView = btn";
|
|
_xbtn = new anywheresoftware.b4a.objects.B4XViewWrapper();
|
|
_xbtn = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_btn.getObject()));
|
|
RDebugUtils.currentLine=50003977;
|
|
//BA.debugLineNum = 50003977;BA.debugLine="XUIViewsUtils.SetTextOrCSBuilderToLabel(xbtn, Tex";
|
|
_xuiviewsutils._settextorcsbuildertolabel /*String*/ (ba,_xbtn,_text);
|
|
RDebugUtils.currentLine=50003978;
|
|
//BA.debugLineNum = 50003978;BA.debugLine="xbtn.Tag = Code";
|
|
_xbtn.setTag((Object)(_code));
|
|
RDebugUtils.currentLine=50003979;
|
|
//BA.debugLineNum = 50003979;BA.debugLine="xbtn.SetColorAndBorder(ButtonsColor, 0dip, Border";
|
|
_xbtn.SetColorAndBorder(__ref._buttonscolor /*int*/ ,__c.DipToCurrent((int) (0)),__ref._bordercolor /*int*/ ,__c.DipToCurrent((int) (5)));
|
|
RDebugUtils.currentLine=50003980;
|
|
//BA.debugLineNum = 50003980;BA.debugLine="xbtn.SetTextAlignment(\"CENTER\", \"CENTER\")";
|
|
_xbtn.SetTextAlignment("CENTER","CENTER");
|
|
RDebugUtils.currentLine=50003981;
|
|
//BA.debugLineNum = 50003981;BA.debugLine="xbtn.TextColor = ButtonsTextColor";
|
|
_xbtn.setTextColor(__ref._buttonstextcolor /*int*/ );
|
|
RDebugUtils.currentLine=50003982;
|
|
//BA.debugLineNum = 50003982;BA.debugLine="xbtn.Font = ButtonsFont";
|
|
_xbtn.setFont(__ref._buttonsfont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ );
|
|
RDebugUtils.currentLine=50003983;
|
|
//BA.debugLineNum = 50003983;BA.debugLine="Dim numberOfButtons As Int = Base.NumberOfViews '";
|
|
_numberofbuttons = __ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getNumberOfViews();
|
|
RDebugUtils.currentLine=50003984;
|
|
//BA.debugLineNum = 50003984;BA.debugLine="Base.AddView(xbtn, Base.Width - 4dip - numberOfBu";
|
|
__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(_xbtn.getObject()),(int) (__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()-__c.DipToCurrent((int) (4))-_numberofbuttons*(__ref._buttonwidth /*int*/ +__c.DipToCurrent((int) (5)))-__ref._buttonwidth /*int*/ ),(int) (__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()-__ref._buttonsheight /*int*/ -__c.DipToCurrent((int) (4))),__ref._buttonwidth /*int*/ ,__ref._buttonsheight /*int*/ );
|
|
RDebugUtils.currentLine=50003986;
|
|
//BA.debugLineNum = 50003986;BA.debugLine="If Code = xui.DialogResponse_Cancel Then xbtn.Req";
|
|
if (_code==__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Cancel) {
|
|
_xbtn.RequestFocus();};
|
|
RDebugUtils.currentLine=50003987;
|
|
//BA.debugLineNum = 50003987;BA.debugLine="End Sub";
|
|
return "";
|
|
}
|
|
public anywheresoftware.b4a.objects.B4XViewWrapper _getbutton(keymon.lat.medicomed.b4xdialog __ref,int _resultcode) throws Exception{
|
|
__ref = this;
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
if (Debug.shouldDelegate(ba, "getbutton", true))
|
|
{return ((anywheresoftware.b4a.objects.B4XViewWrapper) Debug.delegate(ba, "getbutton", new Object[] {_resultcode}));}
|
|
anywheresoftware.b4a.objects.B4XViewWrapper _b = null;
|
|
RDebugUtils.currentLine=50069504;
|
|
//BA.debugLineNum = 50069504;BA.debugLine="Public Sub GetButton (ResultCode As Int) As B4XVie";
|
|
RDebugUtils.currentLine=50069505;
|
|
//BA.debugLineNum = 50069505;BA.debugLine="For Each b As B4XView In Base.GetAllViewsRecursiv";
|
|
_b = new anywheresoftware.b4a.objects.B4XViewWrapper();
|
|
{
|
|
final anywheresoftware.b4a.BA.IterableList group1 = __ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .GetAllViewsRecursive();
|
|
final int groupLen1 = group1.getSize()
|
|
;int index1 = 0;
|
|
;
|
|
for (; index1 < groupLen1;index1++){
|
|
_b = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(group1.Get(index1)));
|
|
RDebugUtils.currentLine=50069506;
|
|
//BA.debugLineNum = 50069506;BA.debugLine="If b.Tag = ResultCode Then Return b 'ignore";
|
|
if ((_b.getTag()).equals((Object)(_resultcode))) {
|
|
if (true) return _b;};
|
|
}
|
|
};
|
|
RDebugUtils.currentLine=50069508;
|
|
//BA.debugLineNum = 50069508;BA.debugLine="Return Null";
|
|
if (true) return (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Null));
|
|
RDebugUtils.currentLine=50069509;
|
|
//BA.debugLineNum = 50069509;BA.debugLine="End Sub";
|
|
return null;
|
|
}
|
|
public String _initialize(keymon.lat.medicomed.b4xdialog __ref,anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.B4XViewWrapper _parent) throws Exception{
|
|
__ref = this;
|
|
innerInitialize(_ba);
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
if (Debug.shouldDelegate(ba, "initialize", true))
|
|
{return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_parent}));}
|
|
RDebugUtils.currentLine=49676288;
|
|
//BA.debugLineNum = 49676288;BA.debugLine="Public Sub Initialize (Parent As B4XView)";
|
|
RDebugUtils.currentLine=49676289;
|
|
//BA.debugLineNum = 49676289;BA.debugLine="BlurBackground = False";
|
|
__ref._blurbackground /*boolean*/ = __c.False;
|
|
RDebugUtils.currentLine=49676290;
|
|
//BA.debugLineNum = 49676290;BA.debugLine="If xui.IsB4i Then";
|
|
if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4i()) {
|
|
RDebugUtils.currentLine=49676291;
|
|
//BA.debugLineNum = 49676291;BA.debugLine="BlurReduceScale = 3";
|
|
__ref._blurreducescale /*int*/ = (int) (3);
|
|
}else
|
|
{RDebugUtils.currentLine=49676292;
|
|
//BA.debugLineNum = 49676292;BA.debugLine="Else If xui.IsB4J Then";
|
|
if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4J()) {
|
|
RDebugUtils.currentLine=49676293;
|
|
//BA.debugLineNum = 49676293;BA.debugLine="BlurReduceScale = 1";
|
|
__ref._blurreducescale /*int*/ = (int) (1);
|
|
}else
|
|
{RDebugUtils.currentLine=49676294;
|
|
//BA.debugLineNum = 49676294;BA.debugLine="Else if xui.IsB4A Then";
|
|
if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4A()) {
|
|
RDebugUtils.currentLine=49676295;
|
|
//BA.debugLineNum = 49676295;BA.debugLine="BlurReduceScale = 3";
|
|
__ref._blurreducescale /*int*/ = (int) (3);
|
|
}}}
|
|
;
|
|
RDebugUtils.currentLine=49676297;
|
|
//BA.debugLineNum = 49676297;BA.debugLine="mParent = Parent";
|
|
__ref._mparent /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _parent;
|
|
RDebugUtils.currentLine=49676303;
|
|
//BA.debugLineNum = 49676303;BA.debugLine="TitleBarFont = xui.CreateDefaultBoldFont(16)";
|
|
__ref._titlebarfont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreateDefaultBoldFont((float) (16));
|
|
RDebugUtils.currentLine=49676304;
|
|
//BA.debugLineNum = 49676304;BA.debugLine="ButtonsFont = xui.CreateDefaultBoldFont(15)";
|
|
__ref._buttonsfont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreateDefaultBoldFont((float) (15));
|
|
RDebugUtils.currentLine=49676305;
|
|
//BA.debugLineNum = 49676305;BA.debugLine="TitleBarTextColor = xui.Color_White";
|
|
__ref._titlebartextcolor /*int*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_White;
|
|
RDebugUtils.currentLine=49676306;
|
|
//BA.debugLineNum = 49676306;BA.debugLine="ButtonsState.Initialize";
|
|
__ref._buttonsstate /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize();
|
|
RDebugUtils.currentLine=49676307;
|
|
//BA.debugLineNum = 49676307;BA.debugLine="End Sub";
|
|
return "";
|
|
}
|
|
public String _internaladdstubtoclvifneeded(keymon.lat.medicomed.b4xdialog __ref,b4a.example3.customlistview _customlistview1,int _color) throws Exception{
|
|
__ref = this;
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
if (Debug.shouldDelegate(ba, "internaladdstubtoclvifneeded", true))
|
|
{return ((String) Debug.delegate(ba, "internaladdstubtoclvifneeded", new Object[] {_customlistview1,_color}));}
|
|
RDebugUtils.currentLine=50790400;
|
|
//BA.debugLineNum = 50790400;BA.debugLine="Public Sub InternalAddStubToCLVIfNeeded(CustomList";
|
|
RDebugUtils.currentLine=50790401;
|
|
//BA.debugLineNum = 50790401;BA.debugLine="XUIViewsUtils.AddStubToCLVIfNeeded(CustomListView";
|
|
_xuiviewsutils._addstubtoclvifneeded /*String*/ (ba,_customlistview1,_color);
|
|
RDebugUtils.currentLine=50790402;
|
|
//BA.debugLineNum = 50790402;BA.debugLine="End Sub";
|
|
return "";
|
|
}
|
|
public String _internalsettextorcsbuildertolabel(keymon.lat.medicomed.b4xdialog __ref,anywheresoftware.b4a.objects.B4XViewWrapper _xlbl,Object _text) throws Exception{
|
|
__ref = this;
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
if (Debug.shouldDelegate(ba, "internalsettextorcsbuildertolabel", true))
|
|
{return ((String) Debug.delegate(ba, "internalsettextorcsbuildertolabel", new Object[] {_xlbl,_text}));}
|
|
RDebugUtils.currentLine=50724864;
|
|
//BA.debugLineNum = 50724864;BA.debugLine="Public Sub InternalSetTextOrCSBuilderToLabel(xlbl";
|
|
RDebugUtils.currentLine=50724865;
|
|
//BA.debugLineNum = 50724865;BA.debugLine="XUIViewsUtils.SetTextOrCSBuilderToLabel(xlbl, Tex";
|
|
_xuiviewsutils._settextorcsbuildertolabel /*String*/ (ba,_xlbl,_text);
|
|
RDebugUtils.currentLine=50724866;
|
|
//BA.debugLineNum = 50724866;BA.debugLine="End Sub";
|
|
return "";
|
|
}
|
|
public String _resize(keymon.lat.medicomed.b4xdialog __ref,int _width,int _height) throws Exception{
|
|
__ref = this;
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
if (Debug.shouldDelegate(ba, "resize", true))
|
|
{return ((String) Debug.delegate(ba, "resize", new Object[] {_width,_height}));}
|
|
int _top = 0;
|
|
RDebugUtils.currentLine=50462720;
|
|
//BA.debugLineNum = 50462720;BA.debugLine="Public Sub Resize (Width As Int, Height As Int)";
|
|
RDebugUtils.currentLine=50462722;
|
|
//BA.debugLineNum = 50462722;BA.debugLine="Dim Top As Int = Round(Background.Height / 2 - Ba";
|
|
_top = (int) (__c.Round(__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)2-__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)2));
|
|
RDebugUtils.currentLine=50462723;
|
|
//BA.debugLineNum = 50462723;BA.debugLine="If PutAtTop Then Top = 20dip";
|
|
if (__ref._putattop /*boolean*/ ) {
|
|
_top = __c.DipToCurrent((int) (20));};
|
|
RDebugUtils.currentLine=50462724;
|
|
//BA.debugLineNum = 50462724;BA.debugLine="Background.SetLayoutAnimated(0, 0, 0, Width, Heig";
|
|
__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height);
|
|
RDebugUtils.currentLine=50462725;
|
|
//BA.debugLineNum = 50462725;BA.debugLine="Base.SetLayoutAnimated(200, Round(Background.Widt";
|
|
__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (200),(int) (__c.Round(__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)2-__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)2)),_top,__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
|
|
RDebugUtils.currentLine=50462726;
|
|
//BA.debugLineNum = 50462726;BA.debugLine="If xui.IsB4J Then";
|
|
if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4J()) {
|
|
RDebugUtils.currentLine=50462727;
|
|
//BA.debugLineNum = 50462727;BA.debugLine="UpdateBlur";
|
|
__ref._updateblur /*String*/ (null);
|
|
};
|
|
RDebugUtils.currentLine=50462729;
|
|
//BA.debugLineNum = 50462729;BA.debugLine="End Sub";
|
|
return "";
|
|
}
|
|
public String _updateblur(keymon.lat.medicomed.b4xdialog __ref) throws Exception{
|
|
__ref = this;
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
if (Debug.shouldDelegate(ba, "updateblur", true))
|
|
{return ((String) Debug.delegate(ba, "updateblur", null));}
|
|
anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _source = null;
|
|
b4a.example.bitmapcreator _blurred = null;
|
|
RDebugUtils.currentLine=50528256;
|
|
//BA.debugLineNum = 50528256;BA.debugLine="Private Sub UpdateBlur";
|
|
RDebugUtils.currentLine=50528257;
|
|
//BA.debugLineNum = 50528257;BA.debugLine="If BlurBackground = False Then Return";
|
|
if (__ref._blurbackground /*boolean*/ ==__c.False) {
|
|
if (true) return "";};
|
|
RDebugUtils.currentLine=50528258;
|
|
//BA.debugLineNum = 50528258;BA.debugLine="Background.Visible = False";
|
|
__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setVisible(__c.False);
|
|
RDebugUtils.currentLine=50528259;
|
|
//BA.debugLineNum = 50528259;BA.debugLine="Dim source As B4XBitmap = Background.Parent.Snaps";
|
|
_source = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper();
|
|
_source = __ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getParent().Snapshot();
|
|
RDebugUtils.currentLine=50528260;
|
|
//BA.debugLineNum = 50528260;BA.debugLine="If source.Width > Background.Width Or source.Heig";
|
|
if (_source.getWidth()>__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth() || _source.getHeight()>__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()) {
|
|
RDebugUtils.currentLine=50528261;
|
|
//BA.debugLineNum = 50528261;BA.debugLine="source = source.Crop(0, 0, Background.Width, Bac";
|
|
_source = _source.Crop((int) (0),(int) (0),__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
|
|
};
|
|
RDebugUtils.currentLine=50528263;
|
|
//BA.debugLineNum = 50528263;BA.debugLine="Background.Visible = True";
|
|
__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setVisible(__c.True);
|
|
RDebugUtils.currentLine=50528264;
|
|
//BA.debugLineNum = 50528264;BA.debugLine="BlurImageView.SetLayoutAnimated(0, 0, 0, Backgrou";
|
|
__ref._blurimageview /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
|
|
RDebugUtils.currentLine=50528265;
|
|
//BA.debugLineNum = 50528265;BA.debugLine="Dim blurred As BitmapCreator = Blur(source)";
|
|
_blurred = __ref._blur /*b4a.example.bitmapcreator*/ (null,_source);
|
|
RDebugUtils.currentLine=50528266;
|
|
//BA.debugLineNum = 50528266;BA.debugLine="blurred.SetBitmapToImageView(blurred.Bitmap, Blur";
|
|
_blurred._setbitmaptoimageview(_blurred._getbitmap(),__ref._blurimageview /*anywheresoftware.b4a.objects.B4XViewWrapper*/ );
|
|
RDebugUtils.currentLine=50528267;
|
|
//BA.debugLineNum = 50528267;BA.debugLine="End Sub";
|
|
return "";
|
|
}
|
|
public String _setbuttonstate(keymon.lat.medicomed.b4xdialog __ref,int _resultcode,boolean _enabled) throws Exception{
|
|
__ref = this;
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
if (Debug.shouldDelegate(ba, "setbuttonstate", true))
|
|
{return ((String) Debug.delegate(ba, "setbuttonstate", new Object[] {_resultcode,_enabled}));}
|
|
anywheresoftware.b4a.objects.B4XViewWrapper _b = null;
|
|
RDebugUtils.currentLine=50135040;
|
|
//BA.debugLineNum = 50135040;BA.debugLine="Public Sub SetButtonState (ResultCode As Int, Enab";
|
|
RDebugUtils.currentLine=50135041;
|
|
//BA.debugLineNum = 50135041;BA.debugLine="Dim b As B4XView = GetButton(ResultCode)";
|
|
_b = new anywheresoftware.b4a.objects.B4XViewWrapper();
|
|
_b = __ref._getbutton /*anywheresoftware.b4a.objects.B4XViewWrapper*/ (null,_resultcode);
|
|
RDebugUtils.currentLine=50135042;
|
|
//BA.debugLineNum = 50135042;BA.debugLine="If b.IsInitialized Then";
|
|
if (_b.IsInitialized()) {
|
|
RDebugUtils.currentLine=50135043;
|
|
//BA.debugLineNum = 50135043;BA.debugLine="b.Enabled = Enabled";
|
|
_b.setEnabled(_enabled);
|
|
RDebugUtils.currentLine=50135044;
|
|
//BA.debugLineNum = 50135044;BA.debugLine="If Enabled Then b.TextColor = ButtonsTextColor E";
|
|
if (_enabled) {
|
|
_b.setTextColor(__ref._buttonstextcolor /*int*/ );}
|
|
else {
|
|
_b.setTextColor(__ref._buttonstextcolordisabled /*int*/ );};
|
|
RDebugUtils.currentLine=50135045;
|
|
//BA.debugLineNum = 50135045;BA.debugLine="ButtonsState.Put(ResultCode, Enabled)";
|
|
__ref._buttonsstate /*anywheresoftware.b4a.objects.collections.Map*/ .Put((Object)(_resultcode),(Object)(_enabled));
|
|
};
|
|
RDebugUtils.currentLine=50135047;
|
|
//BA.debugLineNum = 50135047;BA.debugLine="End Sub";
|
|
return "";
|
|
}
|
|
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _show(keymon.lat.medicomed.b4xdialog __ref,Object _text,Object _yes,Object _no,Object _cancel) throws Exception{
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
if (Debug.shouldDelegate(ba, "show", true))
|
|
{return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "show", new Object[] {_text,_yes,_no,_cancel}));}
|
|
ResumableSub_Show rsub = new ResumableSub_Show(this,__ref,_text,_yes,_no,_cancel);
|
|
rsub.resume(ba, null);
|
|
return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
|
|
}
|
|
public static class ResumableSub_Show extends BA.ResumableSub {
|
|
public ResumableSub_Show(keymon.lat.medicomed.b4xdialog parent,keymon.lat.medicomed.b4xdialog __ref,Object _text,Object _yes,Object _no,Object _cancel) {
|
|
this.parent = parent;
|
|
this.__ref = __ref;
|
|
this._text = _text;
|
|
this._yes = _yes;
|
|
this._no = _no;
|
|
this._cancel = _cancel;
|
|
this.__ref = parent;
|
|
}
|
|
keymon.lat.medicomed.b4xdialog __ref;
|
|
keymon.lat.medicomed.b4xdialog parent;
|
|
Object _text;
|
|
Object _yes;
|
|
Object _no;
|
|
Object _cancel;
|
|
anywheresoftware.b4a.objects.B4XViewWrapper _p = null;
|
|
anywheresoftware.b4a.objects.LabelWrapper _lbl = null;
|
|
anywheresoftware.b4a.objects.B4XViewWrapper _xlbl = null;
|
|
int _result = 0;
|
|
|
|
@Override
|
|
public void resume(BA ba, Object[] result) throws Exception{
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
|
|
while (true) {
|
|
switch (state) {
|
|
case -1:
|
|
{
|
|
parent.__c.ReturnFromResumableSub(this,null);return;}
|
|
case 0:
|
|
//C
|
|
this.state = -1;
|
|
RDebugUtils.currentLine=49807361;
|
|
//BA.debugLineNum = 49807361;BA.debugLine="Dim p As B4XView";
|
|
_p = new anywheresoftware.b4a.objects.B4XViewWrapper();
|
|
RDebugUtils.currentLine=49807362;
|
|
//BA.debugLineNum = 49807362;BA.debugLine="p = xui.CreatePanel(\"\")";
|
|
_p = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"");
|
|
RDebugUtils.currentLine=49807363;
|
|
//BA.debugLineNum = 49807363;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, 300dip, 100dip)";
|
|
_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),parent.__c.DipToCurrent((int) (300)),parent.__c.DipToCurrent((int) (100)));
|
|
RDebugUtils.currentLine=49807364;
|
|
//BA.debugLineNum = 49807364;BA.debugLine="Dim lbl As Label";
|
|
_lbl = new anywheresoftware.b4a.objects.LabelWrapper();
|
|
RDebugUtils.currentLine=49807365;
|
|
//BA.debugLineNum = 49807365;BA.debugLine="lbl.Initialize(\"\")";
|
|
_lbl.Initialize(ba,"");
|
|
RDebugUtils.currentLine=49807369;
|
|
//BA.debugLineNum = 49807369;BA.debugLine="lbl.SingleLine = False";
|
|
_lbl.setSingleLine(parent.__c.False);
|
|
RDebugUtils.currentLine=49807373;
|
|
//BA.debugLineNum = 49807373;BA.debugLine="Dim xlbl As B4XView = lbl";
|
|
_xlbl = new anywheresoftware.b4a.objects.B4XViewWrapper();
|
|
_xlbl = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject()));
|
|
RDebugUtils.currentLine=49807374;
|
|
//BA.debugLineNum = 49807374;BA.debugLine="p.AddView(xlbl, 5dip, 0, p.Width - 10dip, p.Heigh";
|
|
_p.AddView((android.view.View)(_xlbl.getObject()),parent.__c.DipToCurrent((int) (5)),(int) (0),(int) (_p.getWidth()-parent.__c.DipToCurrent((int) (10))),_p.getHeight());
|
|
RDebugUtils.currentLine=49807375;
|
|
//BA.debugLineNum = 49807375;BA.debugLine="xlbl.TextColor = BodyTextColor";
|
|
_xlbl.setTextColor(__ref._bodytextcolor /*int*/ );
|
|
RDebugUtils.currentLine=49807376;
|
|
//BA.debugLineNum = 49807376;BA.debugLine="xlbl.Font = TitleBarFont";
|
|
_xlbl.setFont(__ref._titlebarfont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ );
|
|
RDebugUtils.currentLine=49807377;
|
|
//BA.debugLineNum = 49807377;BA.debugLine="XUIViewsUtils.SetTextOrCSBuilderToLabel(xlbl, Tex";
|
|
parent._xuiviewsutils._settextorcsbuildertolabel /*String*/ (ba,_xlbl,_text);
|
|
RDebugUtils.currentLine=49807378;
|
|
//BA.debugLineNum = 49807378;BA.debugLine="xlbl.SetTextAlignment(\"CENTER\", \"LEFT\")";
|
|
_xlbl.SetTextAlignment("CENTER","LEFT");
|
|
RDebugUtils.currentLine=49807379;
|
|
//BA.debugLineNum = 49807379;BA.debugLine="Wait For (ShowCustom(p, Yes, No, Cancel)) Complet";
|
|
parent.__c.WaitFor("complete", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xdialog", "show"), __ref._showcustom /*anywheresoftware.b4a.keywords.Common.ResumableSubWrapper*/ (null,_p,_yes,_no,_cancel));
|
|
this.state = 1;
|
|
return;
|
|
case 1:
|
|
//C
|
|
this.state = -1;
|
|
_result = (Integer) result[1];
|
|
;
|
|
RDebugUtils.currentLine=49807380;
|
|
//BA.debugLineNum = 49807380;BA.debugLine="Return Result";
|
|
if (true) {
|
|
parent.__c.ReturnFromResumableSub(this,(Object)(_result));return;};
|
|
RDebugUtils.currentLine=49807381;
|
|
//BA.debugLineNum = 49807381;BA.debugLine="End Sub";
|
|
if (true) break;
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _showcustom(keymon.lat.medicomed.b4xdialog __ref,anywheresoftware.b4a.objects.B4XViewWrapper _content,Object _yes,Object _no,Object _cancel) throws Exception{
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
if (Debug.shouldDelegate(ba, "showcustom", true))
|
|
{return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "showcustom", new Object[] {_content,_yes,_no,_cancel}));}
|
|
ResumableSub_ShowCustom rsub = new ResumableSub_ShowCustom(this,__ref,_content,_yes,_no,_cancel);
|
|
rsub.resume(ba, null);
|
|
return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
|
|
}
|
|
public static class ResumableSub_ShowCustom extends BA.ResumableSub {
|
|
public ResumableSub_ShowCustom(keymon.lat.medicomed.b4xdialog parent,keymon.lat.medicomed.b4xdialog __ref,anywheresoftware.b4a.objects.B4XViewWrapper _content,Object _yes,Object _no,Object _cancel) {
|
|
this.parent = parent;
|
|
this.__ref = __ref;
|
|
this._content = _content;
|
|
this._yes = _yes;
|
|
this._no = _no;
|
|
this._cancel = _cancel;
|
|
this.__ref = parent;
|
|
}
|
|
keymon.lat.medicomed.b4xdialog __ref;
|
|
keymon.lat.medicomed.b4xdialog parent;
|
|
anywheresoftware.b4a.objects.B4XViewWrapper _content;
|
|
Object _yes;
|
|
Object _no;
|
|
Object _cancel;
|
|
anywheresoftware.b4a.objects.B4XViewWrapper _v = null;
|
|
anywheresoftware.b4a.objects.ImageViewWrapper _iv = null;
|
|
anywheresoftware.b4a.objects.PanelWrapper _p = null;
|
|
boolean _includetitle = false;
|
|
int _temptitlebarheight = 0;
|
|
int _height = 0;
|
|
int _width = 0;
|
|
int _top = 0;
|
|
boolean _removetitle = false;
|
|
int _i = 0;
|
|
int _btype = 0;
|
|
anywheresoftware.b4a.objects.LabelWrapper _lbl = null;
|
|
anywheresoftware.b4a.objects.B4XViewWrapper _xlbl = null;
|
|
int _result = 0;
|
|
anywheresoftware.b4a.BA.IterableList group1;
|
|
int index1;
|
|
int groupLen1;
|
|
int step46;
|
|
int limit46;
|
|
anywheresoftware.b4a.BA.IterableList group74;
|
|
int index74;
|
|
int groupLen74;
|
|
anywheresoftware.b4a.BA.IterableList group78;
|
|
int index78;
|
|
int groupLen78;
|
|
|
|
@Override
|
|
public void resume(BA ba, Object[] result) throws Exception{
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
|
|
while (true) {
|
|
switch (state) {
|
|
case -1:
|
|
{
|
|
parent.__c.ReturnFromResumableSub(this,null);return;}
|
|
case 0:
|
|
//C
|
|
this.state = 1;
|
|
RDebugUtils.currentLine=49872897;
|
|
//BA.debugLineNum = 49872897;BA.debugLine="For Each v As B4XView In mParent.GetAllViewsRecur";
|
|
if (true) break;
|
|
|
|
case 1:
|
|
//for
|
|
this.state = 8;
|
|
_v = new anywheresoftware.b4a.objects.B4XViewWrapper();
|
|
group1 = __ref._mparent /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .GetAllViewsRecursive();
|
|
index1 = 0;
|
|
groupLen1 = group1.getSize();
|
|
this.state = 60;
|
|
if (true) break;
|
|
|
|
case 60:
|
|
//C
|
|
this.state = 8;
|
|
if (index1 < groupLen1) {
|
|
this.state = 3;
|
|
_v = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(group1.Get(index1)));}
|
|
if (true) break;
|
|
|
|
case 61:
|
|
//C
|
|
this.state = 60;
|
|
index1++;
|
|
if (true) break;
|
|
|
|
case 3:
|
|
//C
|
|
this.state = 4;
|
|
RDebugUtils.currentLine=49872898;
|
|
//BA.debugLineNum = 49872898;BA.debugLine="If v.Tag <> Null And v.Tag = \"b4xdialog_backgrou";
|
|
if (true) break;
|
|
|
|
case 4:
|
|
//if
|
|
this.state = 7;
|
|
if (_v.getTag()!= null && (_v.getTag()).equals((Object)("b4xdialog_background"))) {
|
|
this.state = 6;
|
|
}if (true) break;
|
|
|
|
case 6:
|
|
//C
|
|
this.state = 7;
|
|
RDebugUtils.currentLine=49872899;
|
|
//BA.debugLineNum = 49872899;BA.debugLine="v.RemoveViewFromParent";
|
|
_v.RemoveViewFromParent();
|
|
RDebugUtils.currentLine=49872900;
|
|
//BA.debugLineNum = 49872900;BA.debugLine="Exit";
|
|
this.state = 8;
|
|
if (true) break;
|
|
if (true) break;
|
|
|
|
case 7:
|
|
//C
|
|
this.state = 61;
|
|
;
|
|
if (true) break;
|
|
if (true) break;
|
|
|
|
case 8:
|
|
//C
|
|
this.state = 9;
|
|
;
|
|
RDebugUtils.currentLine=49872903;
|
|
//BA.debugLineNum = 49872903;BA.debugLine="ButtonsState.Clear";
|
|
__ref._buttonsstate /*anywheresoftware.b4a.objects.collections.Map*/ .Clear();
|
|
RDebugUtils.currentLine=49872904;
|
|
//BA.debugLineNum = 49872904;BA.debugLine="Dim Background As B4XView = xui.CreatePanel(\"back";
|
|
parent._background = new anywheresoftware.b4a.objects.B4XViewWrapper();
|
|
parent._background = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"background");
|
|
RDebugUtils.currentLine=49872905;
|
|
//BA.debugLineNum = 49872905;BA.debugLine="Background.Tag = \"b4xdialog_background\"";
|
|
__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag((Object)("b4xdialog_background"));
|
|
RDebugUtils.currentLine=49872906;
|
|
//BA.debugLineNum = 49872906;BA.debugLine="If BlurBackground Then";
|
|
if (true) break;
|
|
|
|
case 9:
|
|
//if
|
|
this.state = 14;
|
|
if (__ref._blurbackground /*boolean*/ ) {
|
|
this.state = 11;
|
|
}else {
|
|
this.state = 13;
|
|
}if (true) break;
|
|
|
|
case 11:
|
|
//C
|
|
this.state = 14;
|
|
RDebugUtils.currentLine=49872907;
|
|
//BA.debugLineNum = 49872907;BA.debugLine="Dim iv As ImageView";
|
|
_iv = new anywheresoftware.b4a.objects.ImageViewWrapper();
|
|
RDebugUtils.currentLine=49872908;
|
|
//BA.debugLineNum = 49872908;BA.debugLine="iv.Initialize(\"\")";
|
|
_iv.Initialize(ba,"");
|
|
RDebugUtils.currentLine=49872909;
|
|
//BA.debugLineNum = 49872909;BA.debugLine="BlurImageView = iv";
|
|
__ref._blurimageview /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_iv.getObject()));
|
|
RDebugUtils.currentLine=49872910;
|
|
//BA.debugLineNum = 49872910;BA.debugLine="Background.AddView(BlurImageView, 0, 0, Backgrou";
|
|
__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._blurimageview /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
|
|
RDebugUtils.currentLine=49872911;
|
|
//BA.debugLineNum = 49872911;BA.debugLine="Background.Color = xui.Color_Transparent";
|
|
__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setColor(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent);
|
|
if (true) break;
|
|
|
|
case 13:
|
|
//C
|
|
this.state = 14;
|
|
RDebugUtils.currentLine=49872913;
|
|
//BA.debugLineNum = 49872913;BA.debugLine="Background.Color = OverlayColor";
|
|
__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setColor(__ref._overlaycolor /*int*/ );
|
|
if (true) break;
|
|
|
|
case 14:
|
|
//C
|
|
this.state = 15;
|
|
;
|
|
RDebugUtils.currentLine=49872916;
|
|
//BA.debugLineNum = 49872916;BA.debugLine="Dim p As Panel = Background";
|
|
_p = new anywheresoftware.b4a.objects.PanelWrapper();
|
|
_p = (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()));
|
|
RDebugUtils.currentLine=49872917;
|
|
//BA.debugLineNum = 49872917;BA.debugLine="p.Elevation = 4dip";
|
|
_p.setElevation((float) (parent.__c.DipToCurrent((int) (4))));
|
|
RDebugUtils.currentLine=49872919;
|
|
//BA.debugLineNum = 49872919;BA.debugLine="mParent.AddView(Background, 0, 0, mParent.Width,";
|
|
__ref._mparent /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),__ref._mparent /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._mparent /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
|
|
RDebugUtils.currentLine=49872920;
|
|
//BA.debugLineNum = 49872920;BA.debugLine="UpdateBlur";
|
|
__ref._updateblur /*String*/ (null);
|
|
RDebugUtils.currentLine=49872921;
|
|
//BA.debugLineNum = 49872921;BA.debugLine="Base = xui.CreatePanel(\"\")";
|
|
__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"");
|
|
RDebugUtils.currentLine=49872922;
|
|
//BA.debugLineNum = 49872922;BA.debugLine="Base.SetColorAndBorder(BackgroundColor, BorderWid";
|
|
__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetColorAndBorder(__ref._backgroundcolor /*int*/ ,__ref._borderwidth /*int*/ ,__ref._bordercolor /*int*/ ,__ref._bordercornersradius /*int*/ );
|
|
RDebugUtils.currentLine=49872923;
|
|
//BA.debugLineNum = 49872923;BA.debugLine="Base.RequestFocus";
|
|
__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .RequestFocus();
|
|
RDebugUtils.currentLine=49872924;
|
|
//BA.debugLineNum = 49872924;BA.debugLine="Dim IncludeTitle As Boolean = Title <> \"\"";
|
|
_includetitle = (__ref._title /*Object*/ ).equals((Object)("")) == false;
|
|
RDebugUtils.currentLine=49872925;
|
|
//BA.debugLineNum = 49872925;BA.debugLine="Dim TempTitleBarHeight As Int = 0";
|
|
_temptitlebarheight = (int) (0);
|
|
RDebugUtils.currentLine=49872926;
|
|
//BA.debugLineNum = 49872926;BA.debugLine="If IncludeTitle Then";
|
|
if (true) break;
|
|
|
|
case 15:
|
|
//if
|
|
this.state = 18;
|
|
if (_includetitle) {
|
|
this.state = 17;
|
|
}if (true) break;
|
|
|
|
case 17:
|
|
//C
|
|
this.state = 18;
|
|
RDebugUtils.currentLine=49872927;
|
|
//BA.debugLineNum = 49872927;BA.debugLine="TempTitleBarHeight = TitleBarHeight";
|
|
_temptitlebarheight = __ref._titlebarheight /*int*/ ;
|
|
if (true) break;
|
|
|
|
case 18:
|
|
//C
|
|
this.state = 19;
|
|
;
|
|
RDebugUtils.currentLine=49872929;
|
|
//BA.debugLineNum = 49872929;BA.debugLine="Dim height As Int = Content.Height + ButtonsHeigh";
|
|
_height = (int) (_content.getHeight()+__ref._buttonsheight /*int*/ +parent.__c.DipToCurrent((int) (3))+parent.__c.DipToCurrent((int) (3))+_temptitlebarheight);
|
|
RDebugUtils.currentLine=49872930;
|
|
//BA.debugLineNum = 49872930;BA.debugLine="Dim width As Int = Content.Width + 4dip";
|
|
_width = (int) (_content.getWidth()+parent.__c.DipToCurrent((int) (4)));
|
|
RDebugUtils.currentLine=49872931;
|
|
//BA.debugLineNum = 49872931;BA.debugLine="Dim Top As Int = Round(Background.Height / 2 - he";
|
|
_top = (int) (parent.__c.Round(__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)2-_height/(double)2));
|
|
RDebugUtils.currentLine=49872932;
|
|
//BA.debugLineNum = 49872932;BA.debugLine="Dim RemoveTitle As Boolean";
|
|
_removetitle = false;
|
|
RDebugUtils.currentLine=49872933;
|
|
//BA.debugLineNum = 49872933;BA.debugLine="If PutAtTop Then";
|
|
if (true) break;
|
|
|
|
case 19:
|
|
//if
|
|
this.state = 28;
|
|
if (__ref._putattop /*boolean*/ ) {
|
|
this.state = 21;
|
|
}if (true) break;
|
|
|
|
case 21:
|
|
//C
|
|
this.state = 22;
|
|
RDebugUtils.currentLine=49872934;
|
|
//BA.debugLineNum = 49872934;BA.debugLine="Top = 20dip";
|
|
_top = parent.__c.DipToCurrent((int) (20));
|
|
RDebugUtils.currentLine=49872935;
|
|
//BA.debugLineNum = 49872935;BA.debugLine="If Background.Height - Top - height < 200dip The";
|
|
if (true) break;
|
|
|
|
case 22:
|
|
//if
|
|
this.state = 27;
|
|
if (__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()-_top-_height<parent.__c.DipToCurrent((int) (200))) {
|
|
this.state = 24;
|
|
;}if (true) break;
|
|
|
|
case 24:
|
|
//C
|
|
this.state = 27;
|
|
_removetitle = parent.__c.True;
|
|
if (true) break;
|
|
|
|
case 27:
|
|
//C
|
|
this.state = 28;
|
|
;
|
|
if (true) break;
|
|
;
|
|
RDebugUtils.currentLine=49872937;
|
|
//BA.debugLineNum = 49872937;BA.debugLine="If RemoveTitle Or Background.Height < height Then";
|
|
|
|
case 28:
|
|
//if
|
|
this.state = 31;
|
|
if (_removetitle || __ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()<_height) {
|
|
this.state = 30;
|
|
}if (true) break;
|
|
|
|
case 30:
|
|
//C
|
|
this.state = 31;
|
|
RDebugUtils.currentLine=49872938;
|
|
//BA.debugLineNum = 49872938;BA.debugLine="Top = 1dip";
|
|
_top = parent.__c.DipToCurrent((int) (1));
|
|
RDebugUtils.currentLine=49872939;
|
|
//BA.debugLineNum = 49872939;BA.debugLine="IncludeTitle = False";
|
|
_includetitle = parent.__c.False;
|
|
RDebugUtils.currentLine=49872940;
|
|
//BA.debugLineNum = 49872940;BA.debugLine="height = height - TempTitleBarHeight - 3dip";
|
|
_height = (int) (_height-_temptitlebarheight-parent.__c.DipToCurrent((int) (3)));
|
|
RDebugUtils.currentLine=49872941;
|
|
//BA.debugLineNum = 49872941;BA.debugLine="TempTitleBarHeight = 0";
|
|
_temptitlebarheight = (int) (0);
|
|
if (true) break;
|
|
|
|
case 31:
|
|
//C
|
|
this.state = 32;
|
|
;
|
|
RDebugUtils.currentLine=49872943;
|
|
//BA.debugLineNum = 49872943;BA.debugLine="Background.AddView(Base, Round(Background.Width /";
|
|
__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (parent.__c.Round(__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)2-_width/(double)2)),_top,(int) (parent.__c.Round(_width)),(int) (parent.__c.Round(_height)));
|
|
RDebugUtils.currentLine=49872945;
|
|
//BA.debugLineNum = 49872945;BA.debugLine="For i = ButtonsOrder.Length - 1 To 0 Step - 1";
|
|
if (true) break;
|
|
|
|
case 32:
|
|
//for
|
|
this.state = 43;
|
|
step46 = -1;
|
|
limit46 = (int) (0);
|
|
_i = (int) (__ref._buttonsorder /*int[]*/ .length-1) ;
|
|
this.state = 62;
|
|
if (true) break;
|
|
|
|
case 62:
|
|
//C
|
|
this.state = 43;
|
|
if ((step46 > 0 && _i <= limit46) || (step46 < 0 && _i >= limit46)) this.state = 34;
|
|
if (true) break;
|
|
|
|
case 63:
|
|
//C
|
|
this.state = 62;
|
|
_i = ((int)(0 + _i + step46)) ;
|
|
if (true) break;
|
|
|
|
case 34:
|
|
//C
|
|
this.state = 35;
|
|
RDebugUtils.currentLine=49872946;
|
|
//BA.debugLineNum = 49872946;BA.debugLine="Dim btype As Int = ButtonsOrder(i)";
|
|
_btype = __ref._buttonsorder /*int[]*/ [_i];
|
|
RDebugUtils.currentLine=49872947;
|
|
//BA.debugLineNum = 49872947;BA.debugLine="Select btype";
|
|
if (true) break;
|
|
|
|
case 35:
|
|
//select
|
|
this.state = 42;
|
|
switch (BA.switchObjectToInt(_btype,__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Cancel,__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Negative,__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Positive)) {
|
|
case 0: {
|
|
this.state = 37;
|
|
if (true) break;
|
|
}
|
|
case 1: {
|
|
this.state = 39;
|
|
if (true) break;
|
|
}
|
|
case 2: {
|
|
this.state = 41;
|
|
if (true) break;
|
|
}
|
|
}
|
|
if (true) break;
|
|
|
|
case 37:
|
|
//C
|
|
this.state = 42;
|
|
RDebugUtils.currentLine=49872949;
|
|
//BA.debugLineNum = 49872949;BA.debugLine="CreateButton(Cancel, btype)";
|
|
__ref._createbutton /*String*/ (null,_cancel,_btype);
|
|
if (true) break;
|
|
|
|
case 39:
|
|
//C
|
|
this.state = 42;
|
|
RDebugUtils.currentLine=49872951;
|
|
//BA.debugLineNum = 49872951;BA.debugLine="CreateButton(No, btype)";
|
|
__ref._createbutton /*String*/ (null,_no,_btype);
|
|
if (true) break;
|
|
|
|
case 41:
|
|
//C
|
|
this.state = 42;
|
|
RDebugUtils.currentLine=49872953;
|
|
//BA.debugLineNum = 49872953;BA.debugLine="CreateButton(Yes, btype)";
|
|
__ref._createbutton /*String*/ (null,_yes,_btype);
|
|
if (true) break;
|
|
|
|
case 42:
|
|
//C
|
|
this.state = 63;
|
|
;
|
|
if (true) break;
|
|
if (true) break;
|
|
|
|
case 43:
|
|
//C
|
|
this.state = 44;
|
|
;
|
|
RDebugUtils.currentLine=49872956;
|
|
//BA.debugLineNum = 49872956;BA.debugLine="Base.Visible = False";
|
|
__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setVisible(parent.__c.False);
|
|
RDebugUtils.currentLine=49872957;
|
|
//BA.debugLineNum = 49872957;BA.debugLine="If IncludeTitle Then";
|
|
if (true) break;
|
|
|
|
case 44:
|
|
//if
|
|
this.state = 47;
|
|
if (_includetitle) {
|
|
this.state = 46;
|
|
}if (true) break;
|
|
|
|
case 46:
|
|
//C
|
|
this.state = 47;
|
|
RDebugUtils.currentLine=49872958;
|
|
//BA.debugLineNum = 49872958;BA.debugLine="TitleBar = xui.CreatePanel(\"TitleBar\")";
|
|
__ref._titlebar /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"TitleBar");
|
|
RDebugUtils.currentLine=49872959;
|
|
//BA.debugLineNum = 49872959;BA.debugLine="TitleBar.Color = TitleBarColor";
|
|
__ref._titlebar /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setColor(__ref._titlebarcolor /*int*/ );
|
|
RDebugUtils.currentLine=49872960;
|
|
//BA.debugLineNum = 49872960;BA.debugLine="Base.AddView(TitleBar, 2dip, 2dip, Content.Width";
|
|
__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._titlebar /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),parent.__c.DipToCurrent((int) (2)),parent.__c.DipToCurrent((int) (2)),_content.getWidth(),_temptitlebarheight);
|
|
RDebugUtils.currentLine=49872961;
|
|
//BA.debugLineNum = 49872961;BA.debugLine="Dim lbl As Label";
|
|
_lbl = new anywheresoftware.b4a.objects.LabelWrapper();
|
|
RDebugUtils.currentLine=49872962;
|
|
//BA.debugLineNum = 49872962;BA.debugLine="lbl.Initialize(\"\")";
|
|
_lbl.Initialize(ba,"");
|
|
RDebugUtils.currentLine=49872963;
|
|
//BA.debugLineNum = 49872963;BA.debugLine="Dim xlbl As B4XView = lbl";
|
|
_xlbl = new anywheresoftware.b4a.objects.B4XViewWrapper();
|
|
_xlbl = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject()));
|
|
RDebugUtils.currentLine=49872964;
|
|
//BA.debugLineNum = 49872964;BA.debugLine="XUIViewsUtils.SetTextOrCSBuilderToLabel(xlbl, Ti";
|
|
parent._xuiviewsutils._settextorcsbuildertolabel /*String*/ (ba,_xlbl,__ref._title /*Object*/ );
|
|
RDebugUtils.currentLine=49872965;
|
|
//BA.debugLineNum = 49872965;BA.debugLine="xlbl.TextColor = TitleBarTextColor";
|
|
_xlbl.setTextColor(__ref._titlebartextcolor /*int*/ );
|
|
RDebugUtils.currentLine=49872966;
|
|
//BA.debugLineNum = 49872966;BA.debugLine="xlbl.Font = TitleBarFont";
|
|
_xlbl.setFont(__ref._titlebarfont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ );
|
|
RDebugUtils.currentLine=49872967;
|
|
//BA.debugLineNum = 49872967;BA.debugLine="xlbl.SetTextAlignment(\"CENTER\", \"CENTER\")";
|
|
_xlbl.SetTextAlignment("CENTER","CENTER");
|
|
RDebugUtils.currentLine=49872968;
|
|
//BA.debugLineNum = 49872968;BA.debugLine="TitleBar.AddView(xlbl, 0, 0, TitleBar.Width, Tit";
|
|
__ref._titlebar /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(_xlbl.getObject()),(int) (0),(int) (0),__ref._titlebar /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._titlebar /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());
|
|
if (true) break;
|
|
|
|
case 47:
|
|
//C
|
|
this.state = 48;
|
|
;
|
|
RDebugUtils.currentLine=49872970;
|
|
//BA.debugLineNum = 49872970;BA.debugLine="Content.RemoveViewFromParent";
|
|
_content.RemoveViewFromParent();
|
|
RDebugUtils.currentLine=49872971;
|
|
//BA.debugLineNum = 49872971;BA.debugLine="Base.AddView(Content, 2dip, 2dip + TempTitleBarHe";
|
|
__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(_content.getObject()),parent.__c.DipToCurrent((int) (2)),(int) (parent.__c.DipToCurrent((int) (2))+_temptitlebarheight),_content.getWidth(),_content.getHeight());
|
|
RDebugUtils.currentLine=49872972;
|
|
//BA.debugLineNum = 49872972;BA.debugLine="Base.SetVisibleAnimated(VisibleAnimationDuration,";
|
|
__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetVisibleAnimated(__ref._visibleanimationduration /*int*/ ,parent.__c.True);
|
|
RDebugUtils.currentLine=49872973;
|
|
//BA.debugLineNum = 49872973;BA.debugLine="For Each v As B4XView In Background.GetAllViewsRe";
|
|
if (true) break;
|
|
|
|
case 48:
|
|
//for
|
|
this.state = 51;
|
|
_v = new anywheresoftware.b4a.objects.B4XViewWrapper();
|
|
group74 = __ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .GetAllViewsRecursive();
|
|
index74 = 0;
|
|
groupLen74 = group74.getSize();
|
|
this.state = 64;
|
|
if (true) break;
|
|
|
|
case 64:
|
|
//C
|
|
this.state = 51;
|
|
if (index74 < groupLen74) {
|
|
this.state = 50;
|
|
_v = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(group74.Get(index74)));}
|
|
if (true) break;
|
|
|
|
case 65:
|
|
//C
|
|
this.state = 64;
|
|
index74++;
|
|
if (true) break;
|
|
|
|
case 50:
|
|
//C
|
|
this.state = 65;
|
|
RDebugUtils.currentLine=49872974;
|
|
//BA.debugLineNum = 49872974;BA.debugLine="v.Enabled = True";
|
|
_v.setEnabled(parent.__c.True);
|
|
if (true) break;
|
|
if (true) break;
|
|
|
|
case 51:
|
|
//C
|
|
this.state = 52;
|
|
;
|
|
RDebugUtils.currentLine=49872976;
|
|
//BA.debugLineNum = 49872976;BA.debugLine="Wait For CloseMessage (Result As Int)";
|
|
parent.__c.WaitFor("closemessage", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xdialog", "showcustom"), null);
|
|
this.state = 66;
|
|
return;
|
|
case 66:
|
|
//C
|
|
this.state = 52;
|
|
_result = (Integer) result[1];
|
|
;
|
|
RDebugUtils.currentLine=49872977;
|
|
//BA.debugLineNum = 49872977;BA.debugLine="For Each v As B4XView In Background.GetAllViewsRe";
|
|
if (true) break;
|
|
|
|
case 52:
|
|
//for
|
|
this.state = 55;
|
|
_v = new anywheresoftware.b4a.objects.B4XViewWrapper();
|
|
group78 = __ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .GetAllViewsRecursive();
|
|
index78 = 0;
|
|
groupLen78 = group78.getSize();
|
|
this.state = 67;
|
|
if (true) break;
|
|
|
|
case 67:
|
|
//C
|
|
this.state = 55;
|
|
if (index78 < groupLen78) {
|
|
this.state = 54;
|
|
_v = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(group78.Get(index78)));}
|
|
if (true) break;
|
|
|
|
case 68:
|
|
//C
|
|
this.state = 67;
|
|
index78++;
|
|
if (true) break;
|
|
|
|
case 54:
|
|
//C
|
|
this.state = 68;
|
|
RDebugUtils.currentLine=49872978;
|
|
//BA.debugLineNum = 49872978;BA.debugLine="v.Enabled = False";
|
|
_v.setEnabled(parent.__c.False);
|
|
if (true) break;
|
|
if (true) break;
|
|
|
|
case 55:
|
|
//C
|
|
this.state = 56;
|
|
;
|
|
RDebugUtils.currentLine=49872980;
|
|
//BA.debugLineNum = 49872980;BA.debugLine="Base.SetVisibleAnimated(VisibleAnimationDuration,";
|
|
__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetVisibleAnimated(__ref._visibleanimationduration /*int*/ ,parent.__c.False);
|
|
RDebugUtils.currentLine=49872981;
|
|
//BA.debugLineNum = 49872981;BA.debugLine="If VisibleAnimationDuration > 0 Then";
|
|
if (true) break;
|
|
|
|
case 56:
|
|
//if
|
|
this.state = 59;
|
|
if (__ref._visibleanimationduration /*int*/ >0) {
|
|
this.state = 58;
|
|
}if (true) break;
|
|
|
|
case 58:
|
|
//C
|
|
this.state = 59;
|
|
RDebugUtils.currentLine=49872982;
|
|
//BA.debugLineNum = 49872982;BA.debugLine="Sleep(VisibleAnimationDuration)";
|
|
parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xdialog", "showcustom"),__ref._visibleanimationduration /*int*/ );
|
|
this.state = 69;
|
|
return;
|
|
case 69:
|
|
//C
|
|
this.state = 59;
|
|
;
|
|
if (true) break;
|
|
|
|
case 59:
|
|
//C
|
|
this.state = -1;
|
|
;
|
|
RDebugUtils.currentLine=49872984;
|
|
//BA.debugLineNum = 49872984;BA.debugLine="Background.RemoveViewFromParent";
|
|
__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .RemoveViewFromParent();
|
|
RDebugUtils.currentLine=49872985;
|
|
//BA.debugLineNum = 49872985;BA.debugLine="Return Result";
|
|
if (true) {
|
|
parent.__c.ReturnFromResumableSub(this,(Object)(_result));return;};
|
|
RDebugUtils.currentLine=49872986;
|
|
//BA.debugLineNum = 49872986;BA.debugLine="End Sub";
|
|
if (true) break;
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _showtemplate(keymon.lat.medicomed.b4xdialog __ref,Object _dialogtemplate,Object _yes,Object _no,Object _cancel) throws Exception{
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
if (Debug.shouldDelegate(ba, "showtemplate", true))
|
|
{return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "showtemplate", new Object[] {_dialogtemplate,_yes,_no,_cancel}));}
|
|
ResumableSub_ShowTemplate rsub = new ResumableSub_ShowTemplate(this,__ref,_dialogtemplate,_yes,_no,_cancel);
|
|
rsub.resume(ba, null);
|
|
return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub);
|
|
}
|
|
public static class ResumableSub_ShowTemplate extends BA.ResumableSub {
|
|
public ResumableSub_ShowTemplate(keymon.lat.medicomed.b4xdialog parent,keymon.lat.medicomed.b4xdialog __ref,Object _dialogtemplate,Object _yes,Object _no,Object _cancel) {
|
|
this.parent = parent;
|
|
this.__ref = __ref;
|
|
this._dialogtemplate = _dialogtemplate;
|
|
this._yes = _yes;
|
|
this._no = _no;
|
|
this._cancel = _cancel;
|
|
this.__ref = parent;
|
|
}
|
|
keymon.lat.medicomed.b4xdialog __ref;
|
|
keymon.lat.medicomed.b4xdialog parent;
|
|
Object _dialogtemplate;
|
|
Object _yes;
|
|
Object _no;
|
|
Object _cancel;
|
|
anywheresoftware.b4a.objects.B4XViewWrapper _content = null;
|
|
int _result = 0;
|
|
|
|
@Override
|
|
public void resume(BA ba, Object[] result) throws Exception{
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
|
|
while (true) {
|
|
switch (state) {
|
|
case -1:
|
|
{
|
|
parent.__c.ReturnFromResumableSub(this,null);return;}
|
|
case 0:
|
|
//C
|
|
this.state = -1;
|
|
RDebugUtils.currentLine=49741825;
|
|
//BA.debugLineNum = 49741825;BA.debugLine="Dim content As B4XView = CallSub2(DialogTemplate,";
|
|
_content = new anywheresoftware.b4a.objects.B4XViewWrapper();
|
|
_content = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(parent.__c.CallSubDebug2(ba,_dialogtemplate,"GetPanel",parent)));
|
|
RDebugUtils.currentLine=49741826;
|
|
//BA.debugLineNum = 49741826;BA.debugLine="CallSub2(DialogTemplate, \"Show\", Me)";
|
|
parent.__c.CallSubDebug2(ba,_dialogtemplate,"Show",parent);
|
|
RDebugUtils.currentLine=49741827;
|
|
//BA.debugLineNum = 49741827;BA.debugLine="Wait For (ShowCustom(content , Yes, No, Cancel))";
|
|
parent.__c.WaitFor("complete", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xdialog", "showtemplate"), __ref._showcustom /*anywheresoftware.b4a.keywords.Common.ResumableSubWrapper*/ (null,_content,_yes,_no,_cancel));
|
|
this.state = 1;
|
|
return;
|
|
case 1:
|
|
//C
|
|
this.state = -1;
|
|
_result = (Integer) result[1];
|
|
;
|
|
RDebugUtils.currentLine=49741828;
|
|
//BA.debugLineNum = 49741828;BA.debugLine="CallSub2(DialogTemplate, \"DialogClosed\", Result)";
|
|
parent.__c.CallSubDebug2(ba,_dialogtemplate,"DialogClosed",(Object)(_result));
|
|
RDebugUtils.currentLine=49741829;
|
|
//BA.debugLineNum = 49741829;BA.debugLine="PutAtTop = False";
|
|
__ref._putattop /*boolean*/ = parent.__c.False;
|
|
RDebugUtils.currentLine=49741830;
|
|
//BA.debugLineNum = 49741830;BA.debugLine="Return Result";
|
|
if (true) {
|
|
parent.__c.ReturnFromResumableSub(this,(Object)(_result));return;};
|
|
RDebugUtils.currentLine=49741831;
|
|
//BA.debugLineNum = 49741831;BA.debugLine="End Sub";
|
|
if (true) break;
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public String _stub_click(keymon.lat.medicomed.b4xdialog __ref) throws Exception{
|
|
__ref = this;
|
|
RDebugUtils.currentModule="b4xdialog";
|
|
if (Debug.shouldDelegate(ba, "stub_click", true))
|
|
{return ((String) Debug.delegate(ba, "stub_click", null));}
|
|
RDebugUtils.currentLine=50855936;
|
|
//BA.debugLineNum = 50855936;BA.debugLine="Private Sub Stub_Click";
|
|
RDebugUtils.currentLine=50855938;
|
|
//BA.debugLineNum = 50855938;BA.debugLine="End Sub";
|
|
return "";
|
|
}
|
|
} |