Implement Overtime Guard workflow and localization

This commit is contained in:
2026-06-16 18:51:42 +02:00
parent 9142b3695e
commit 912a2deeaf
34 changed files with 4821 additions and 2444 deletions

View File

@@ -10,7 +10,7 @@ public class analogclock extends B4AClass.ImplB4AClass implements BA.SubDelegato
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, "b4a.example.analogclock");
ba = new BA(_ba, this, htSubs, "b4a.example.analogclock");
if (htSubs == null) {
ba.loadHtSubs(this.getClass());
htSubs = ba.htSubs;
@@ -23,123 +23,129 @@ public class analogclock extends B4AClass.ImplB4AClass implements BA.SubDelegato
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.keywords.Common __c = null;
public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null;
public anywheresoftware.b4a.objects.PanelWrapper _pnlclock = null;
public anywheresoftware.b4a.objects.B4XCanvas _cvsclock = null;
public float _clockdiameter = 0f;
public float _centerx = 0f;
public float _centery = 0f;
public anywheresoftware.b4a.objects.collections.List _intervals = null;
public anywheresoftware.b4a.objects.collections.List _segments = null;
public float _quadrantstrokewidth = 0f;
public float _hourtickstrokewidth = 0f;
public float _minutetickstrokewidth = 0f;
public float _intervalarcstrokewidth = 0f;
public float _hourhandstrokewidth = 0f;
public float _minutehandstrokewidth = 0f;
public long _basedurationms = 0L;
public long _activedurationms = 0L;
public int _activecolor = 0;
public boolean _activeispause = false;
public boolean _hasactivesegment = false;
public b4a.example.main _main = null;
public b4a.example.starter _starter = null;
public String _initialize(b4a.example.analogclock __ref,anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.PanelWrapper _parentpanel,float _percentageofwidth) throws Exception{
__ref = this;
innerInitialize(_ba);
RDebugUtils.currentModule="analogclock";
if (Debug.shouldDelegate(ba, "initialize", false))
{return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_parentpanel,_percentageofwidth}));}
anywheresoftware.b4a.objects.collections.Map _interval = null;
RDebugUtils.currentLine=1376256;
//BA.debugLineNum = 1376256;BA.debugLine="Public Sub Initialize(ParentPanel As Panel, Percen";
RDebugUtils.currentLine=1376257;
//BA.debugLineNum = 1376257;BA.debugLine="pnlClock = ParentPanel";
__ref._pnlclock /*anywheresoftware.b4a.objects.PanelWrapper*/ = _parentpanel;
RDebugUtils.currentLine=1376258;
//BA.debugLineNum = 1376258;BA.debugLine="cvsClock.Initialize(pnlClock)";
__ref._cvsclock /*anywheresoftware.b4a.objects.B4XCanvas*/ .Initialize((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._pnlclock /*anywheresoftware.b4a.objects.PanelWrapper*/ .getObject())));
RDebugUtils.currentLine=1376259;
//BA.debugLineNum = 1376259;BA.debugLine="intervals.Initialize";
__ref._intervals /*anywheresoftware.b4a.objects.collections.List*/ .Initialize();
RDebugUtils.currentLine=1376260;
//BA.debugLineNum = 1376260;BA.debugLine="Dim interval As Map";
_interval = new anywheresoftware.b4a.objects.collections.Map();
RDebugUtils.currentLine=1376261;
//BA.debugLineNum = 1376261;BA.debugLine="interval.Initialize";
_interval.Initialize();
RDebugUtils.currentLine=1376262;
//BA.debugLineNum = 1376262;BA.debugLine="interval.Put(\"startHour\", 8)";
_interval.Put((Object)("startHour"),(Object)(8));
RDebugUtils.currentLine=1376263;
//BA.debugLineNum = 1376263;BA.debugLine="interval.Put(\"startMinute\", 0)";
_interval.Put((Object)("startMinute"),(Object)(0));
RDebugUtils.currentLine=1376264;
//BA.debugLineNum = 1376264;BA.debugLine="interval.Put(\"endHour\", 12)";
_interval.Put((Object)("endHour"),(Object)(12));
RDebugUtils.currentLine=1376265;
//BA.debugLineNum = 1376265;BA.debugLine="interval.Put(\"endMinute\", 0)";
_interval.Put((Object)("endMinute"),(Object)(0));
RDebugUtils.currentLine=1376266;
//BA.debugLineNum = 1376266;BA.debugLine="interval.Put(\"color\", Colors.Magenta)";
_interval.Put((Object)("color"),(Object)(__c.Colors.Magenta));
RDebugUtils.currentLine=1376267;
//BA.debugLineNum = 1376267;BA.debugLine="interval.Put(\"radius\",(clockDiameter/2 +25dip))";
_interval.Put((Object)("radius"),(Object)((__ref._clockdiameter /*float*/ /(double)2+__c.DipToCurrent((int) (25)))));
RDebugUtils.currentLine=1376268;
//BA.debugLineNum = 1376268;BA.debugLine="interval.Put(\"strokeWidth\", 5dip)";
_interval.Put((Object)("strokeWidth"),(Object)(__c.DipToCurrent((int) (5))));
RDebugUtils.currentLine=1376269;
//BA.debugLineNum = 1376269;BA.debugLine="interval.Put(\"period\", \"mattino\")";
_interval.Put((Object)("period"),(Object)("mattino"));
RDebugUtils.currentLine=1376270;
//BA.debugLineNum = 1376270;BA.debugLine="intervals.Add(interval)";
__ref._intervals /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_interval.getObject()));
RDebugUtils.currentLine=1376272;
//BA.debugLineNum = 1376272;BA.debugLine="interval.Initialize";
_interval.Initialize();
RDebugUtils.currentLine=1376273;
//BA.debugLineNum = 1376273;BA.debugLine="interval.Put(\"startHour\", 13)";
_interval.Put((Object)("startHour"),(Object)(13));
RDebugUtils.currentLine=1376274;
//BA.debugLineNum = 1376274;BA.debugLine="interval.Put(\"startMinute\", 0)";
_interval.Put((Object)("startMinute"),(Object)(0));
RDebugUtils.currentLine=1376275;
//BA.debugLineNum = 1376275;BA.debugLine="interval.Put(\"endHour\", 17)";
_interval.Put((Object)("endHour"),(Object)(17));
RDebugUtils.currentLine=1376276;
//BA.debugLineNum = 1376276;BA.debugLine="interval.Put(\"endMinute\", 0)";
_interval.Put((Object)("endMinute"),(Object)(0));
RDebugUtils.currentLine=1376277;
//BA.debugLineNum = 1376277;BA.debugLine="interval.Put(\"color\", Colors.Green)";
_interval.Put((Object)("color"),(Object)(__c.Colors.Green));
RDebugUtils.currentLine=1376278;
//BA.debugLineNum = 1376278;BA.debugLine="interval.Put(\"radius\", (clockDiameter/2 )+25dip)";
_interval.Put((Object)("radius"),(Object)((__ref._clockdiameter /*float*/ /(double)2)+__c.DipToCurrent((int) (25))));
RDebugUtils.currentLine=1376279;
//BA.debugLineNum = 1376279;BA.debugLine="interval.Put(\"strokeWidth\", 5dip)";
_interval.Put((Object)("strokeWidth"),(Object)(__c.DipToCurrent((int) (5))));
RDebugUtils.currentLine=1376280;
//BA.debugLineNum = 1376280;BA.debugLine="interval.Put(\"period\", \"pomeriggio\")";
_interval.Put((Object)("period"),(Object)("pomeriggio"));
RDebugUtils.currentLine=1376281;
//BA.debugLineNum = 1376281;BA.debugLine="intervals.Add(interval)";
__ref._intervals /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_interval.getObject()));
RDebugUtils.currentLine=1376283;
//BA.debugLineNum = 1376283;BA.debugLine="SetClockSize(PercentageOfWidth)";
__ref._setclocksize /*String*/ (null,_percentageofwidth);
RDebugUtils.currentLine=1376284;
//BA.debugLineNum = 1376284;BA.debugLine="End Sub";
public b4a.example.localization _localization = null;
public String _addsegment(long _durationms,int _segmentcolor,boolean _ispause) throws Exception{
anywheresoftware.b4a.objects.collections.Map _segment = null;
//BA.debugLineNum = 50;BA.debugLine="Public Sub AddSegment(DurationMs As Long, SegmentC";
//BA.debugLineNum = 51;BA.debugLine="If DurationMs <= 0 Then Return";
if (_durationms<=0) {
if (true) return "";};
//BA.debugLineNum = 52;BA.debugLine="Dim segment As Map";
_segment = new anywheresoftware.b4a.objects.collections.Map();
//BA.debugLineNum = 53;BA.debugLine="segment.Initialize";
_segment.Initialize();
//BA.debugLineNum = 54;BA.debugLine="segment.Put(\"duration\", DurationMs)";
_segment.Put((Object)("duration"),(Object)(_durationms));
//BA.debugLineNum = 55;BA.debugLine="segment.Put(\"color\", SegmentColor)";
_segment.Put((Object)("color"),(Object)(_segmentcolor));
//BA.debugLineNum = 56;BA.debugLine="segment.Put(\"pause\", IsPause)";
_segment.Put((Object)("pause"),(Object)(_ispause));
//BA.debugLineNum = 57;BA.debugLine="segments.Add(segment)";
_segments.Add((Object)(_segment.getObject()));
//BA.debugLineNum = 58;BA.debugLine="DrawClock";
_drawclock();
//BA.debugLineNum = 59;BA.debugLine="End Sub";
return "";
}
public String _drawclock(b4a.example.analogclock __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="analogclock";
if (Debug.shouldDelegate(ba, "drawclock", false))
{return ((String) Debug.delegate(ba, "drawclock", null));}
anywheresoftware.b4a.objects.collections.Map _interval = null;
public String _class_globals() throws Exception{
//BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
//BA.debugLineNum = 2;BA.debugLine="Private xui As XUI";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
//BA.debugLineNum = 4;BA.debugLine="Private pnlClock As Panel ' Pannello in c";
_pnlclock = new anywheresoftware.b4a.objects.PanelWrapper();
//BA.debugLineNum = 5;BA.debugLine="Private cvsClock As B4XCanvas ' Canvas per";
_cvsclock = new anywheresoftware.b4a.objects.B4XCanvas();
//BA.debugLineNum = 6;BA.debugLine="Private clockDiameter As Float ' Diametro dell";
_clockdiameter = 0f;
//BA.debugLineNum = 7;BA.debugLine="Private centerX As Float ' Coordinata X";
_centerx = 0f;
//BA.debugLineNum = 8;BA.debugLine="Private centerY As Float ' Coordinata Y";
_centery = 0f;
//BA.debugLineNum = 9;BA.debugLine="Private segments As List ' Segmenti cron";
_segments = new anywheresoftware.b4a.objects.collections.List();
//BA.debugLineNum = 12;BA.debugLine="Private quadrantStrokeWidth As Float = 5dip";
_quadrantstrokewidth = (float) (__c.DipToCurrent((int) (5)));
//BA.debugLineNum = 13;BA.debugLine="Private hourTickStrokeWidth As Float = 5dip";
_hourtickstrokewidth = (float) (__c.DipToCurrent((int) (5)));
//BA.debugLineNum = 14;BA.debugLine="Private minuteTickStrokeWidth As Float = 2dip";
_minutetickstrokewidth = (float) (__c.DipToCurrent((int) (2)));
//BA.debugLineNum = 15;BA.debugLine="Private intervalArcStrokeWidth As Float = 5dip";
_intervalarcstrokewidth = (float) (__c.DipToCurrent((int) (5)));
//BA.debugLineNum = 16;BA.debugLine="Private hourHandStrokeWidth As Float = 8dip";
_hourhandstrokewidth = (float) (__c.DipToCurrent((int) (8)));
//BA.debugLineNum = 17;BA.debugLine="Private minuteHandStrokeWidth As Float = 5dip";
_minutehandstrokewidth = (float) (__c.DipToCurrent((int) (5)));
//BA.debugLineNum = 18;BA.debugLine="Private baseDurationMs As Long";
_basedurationms = 0L;
//BA.debugLineNum = 19;BA.debugLine="Private activeDurationMs As Long";
_activedurationms = 0L;
//BA.debugLineNum = 20;BA.debugLine="Private activeColor As Int";
_activecolor = 0;
//BA.debugLineNum = 21;BA.debugLine="Private activeIsPause As Boolean";
_activeispause = false;
//BA.debugLineNum = 22;BA.debugLine="Private hasActiveSegment As Boolean";
_hasactivesegment = false;
//BA.debugLineNum = 23;BA.debugLine="End Sub";
return "";
}
public String _clearactivesegment() throws Exception{
//BA.debugLineNum = 70;BA.debugLine="Public Sub ClearActiveSegment";
//BA.debugLineNum = 71;BA.debugLine="hasActiveSegment = False";
_hasactivesegment = __c.False;
//BA.debugLineNum = 72;BA.debugLine="activeDurationMs = 0";
_activedurationms = (long) (0);
//BA.debugLineNum = 73;BA.debugLine="DrawClock";
_drawclock();
//BA.debugLineNum = 74;BA.debugLine="End Sub";
return "";
}
public String _clearcanvas(int _color) throws Exception{
//BA.debugLineNum = 96;BA.debugLine="Private Sub ClearCanvas(color As Int)";
//BA.debugLineNum = 97;BA.debugLine="cvsClock.DrawRect(cvsClock.TargetRect, color, Tru";
_cvsclock.DrawRect(_cvsclock.getTargetRect(),_color,__c.True,(float) (0));
//BA.debugLineNum = 98;BA.debugLine="cvsClock.Invalidate";
_cvsclock.Invalidate();
//BA.debugLineNum = 99;BA.debugLine="End Sub";
return "";
}
public String _clearsegments() throws Exception{
//BA.debugLineNum = 41;BA.debugLine="Public Sub ClearSegments";
//BA.debugLineNum = 42;BA.debugLine="If segments.IsInitialized = False Then segments.I";
if (_segments.IsInitialized()==__c.False) {
_segments.Initialize();};
//BA.debugLineNum = 43;BA.debugLine="segments.Clear";
_segments.Clear();
//BA.debugLineNum = 44;BA.debugLine="hasActiveSegment = False";
_hasactivesegment = __c.False;
//BA.debugLineNum = 45;BA.debugLine="activeDurationMs = 0";
_activedurationms = (long) (0);
//BA.debugLineNum = 46;BA.debugLine="DrawClock";
_drawclock();
//BA.debugLineNum = 47;BA.debugLine="End Sub";
return "";
}
public String _drawclock() throws Exception{
long _now = 0L;
int _hours = 0;
int _minutes = 0;
@@ -147,434 +153,321 @@ int _seconds = 0;
float _hourangle = 0f;
float _minuteangle = 0f;
float _secondangle = 0f;
RDebugUtils.currentLine=1638400;
//BA.debugLineNum = 1638400;BA.debugLine="Public Sub DrawClock";
RDebugUtils.currentLine=1638401;
//BA.debugLineNum = 1638401;BA.debugLine="cvsClock.Initialize(pnlClock)";
__ref._cvsclock /*anywheresoftware.b4a.objects.B4XCanvas*/ .Initialize((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._pnlclock /*anywheresoftware.b4a.objects.PanelWrapper*/ .getObject())));
RDebugUtils.currentLine=1638404;
//BA.debugLineNum = 1638404;BA.debugLine="ClearCanvas(Colors.White)";
__ref._clearcanvas /*String*/ (null,__c.Colors.White);
RDebugUtils.currentLine=1638407;
//BA.debugLineNum = 1638407;BA.debugLine="cvsClock.DrawCircle(centerX, centerY, clockDia";
__ref._cvsclock /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawCircle(__ref._centerx /*float*/ ,__ref._centery /*float*/ ,(float) (__ref._clockdiameter /*float*/ /(double)2),__c.Colors.Black,__c.False,__ref._quadrantstrokewidth /*float*/ );
RDebugUtils.currentLine=1638410;
//BA.debugLineNum = 1638410;BA.debugLine="DrawTicks";
__ref._drawticks /*String*/ (null);
RDebugUtils.currentLine=1638413;
//BA.debugLineNum = 1638413;BA.debugLine="For Each interval As Map In intervals";
_interval = new anywheresoftware.b4a.objects.collections.Map();
//BA.debugLineNum = 102;BA.debugLine="Public Sub DrawClock";
//BA.debugLineNum = 103;BA.debugLine="cvsClock.Initialize(pnlClock)";
_cvsclock.Initialize((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_pnlclock.getObject())));
//BA.debugLineNum = 106;BA.debugLine="ClearCanvas(Colors.White)";
_clearcanvas(__c.Colors.White);
//BA.debugLineNum = 109;BA.debugLine="cvsClock.DrawCircle(centerX, centerY, clockDia";
_cvsclock.DrawCircle(_centerx,_centery,(float) (_clockdiameter/(double)2),__c.Colors.Black,__c.False,_quadrantstrokewidth);
//BA.debugLineNum = 112;BA.debugLine="DrawSegments";
_drawsegments();
//BA.debugLineNum = 115;BA.debugLine="DrawTicks";
_drawticks();
//BA.debugLineNum = 118;BA.debugLine="Dim now As Long = DateTime.Now";
_now = __c.DateTime.getNow();
//BA.debugLineNum = 119;BA.debugLine="Dim Hours As Int = DateTime.GetHour(now) Mod 1";
_hours = (int) (__c.DateTime.GetHour(_now)%12);
//BA.debugLineNum = 120;BA.debugLine="Dim Minutes As Int = DateTime.GetMinute(now)";
_minutes = __c.DateTime.GetMinute(_now);
//BA.debugLineNum = 121;BA.debugLine="Dim Seconds As Int = DateTime.GetSecond(now)";
_seconds = __c.DateTime.GetSecond(_now);
//BA.debugLineNum = 124;BA.debugLine="Dim HourAngle As Float = -90 + Hours * 30 + Mi";
_hourangle = (float) (-90+_hours*30+_minutes/(double)2);
//BA.debugLineNum = 125;BA.debugLine="DrawHand(centerX, centerY, clockDiameter * 0.2";
_drawhand(_centerx,_centery,(float) (_clockdiameter*0.25),_hourangle,_hourhandstrokewidth,__c.Colors.Black);
//BA.debugLineNum = 128;BA.debugLine="Dim MinuteAngle As Float = -90 + Minutes * 6";
_minuteangle = (float) (-90+_minutes*6);
//BA.debugLineNum = 129;BA.debugLine="DrawHand(centerX, centerY, clockDiameter * 0.4";
_drawhand(_centerx,_centery,(float) (_clockdiameter*0.4),_minuteangle,_minutehandstrokewidth,__c.Colors.Blue);
//BA.debugLineNum = 132;BA.debugLine="Dim SecondAngle As Float = -90 + Seconds * 6";
_secondangle = (float) (-90+_seconds*6);
//BA.debugLineNum = 133;BA.debugLine="DrawHand(centerX, centerY, clockDiameter * 0.4";
_drawhand(_centerx,_centery,(float) (_clockdiameter*0.45),_secondangle,(float) (__c.DipToCurrent((int) (2))),__c.Colors.Red);
//BA.debugLineNum = 136;BA.debugLine="pnlClock.Invalidate";
_pnlclock.Invalidate();
//BA.debugLineNum = 137;BA.debugLine="End Sub";
return "";
}
public String _drawhand(float _x,float _y,float _length,float _angle,float _width,int _color) throws Exception{
float _endx = 0f;
float _endy = 0f;
//BA.debugLineNum = 185;BA.debugLine="Private Sub DrawHand(x As Float, y As Float, lengt";
//BA.debugLineNum = 186;BA.debugLine="Dim endX As Float = x + length * CosD(angle)";
_endx = (float) (_x+_length*__c.CosD(_angle));
//BA.debugLineNum = 187;BA.debugLine="Dim endY As Float = y + length * SinD(angle)";
_endy = (float) (_y+_length*__c.SinD(_angle));
//BA.debugLineNum = 188;BA.debugLine="cvsClock.DrawLine(x, y, endX, endY, color, wid";
_cvsclock.DrawLine(_x,_y,_endx,_endy,_color,_width);
//BA.debugLineNum = 189;BA.debugLine="End Sub";
return "";
}
public String _drawpiesegment(float _startangle,float _sweepangle,int _color,float _radius) throws Exception{
int _steps = 0;
anywheresoftware.b4a.objects.B4XCanvas.B4XPath _path = null;
int _i = 0;
float _angle = 0f;
float _x = 0f;
float _y = 0f;
//BA.debugLineNum = 169;BA.debugLine="Private Sub DrawPieSegment(startAngle As Float, sw";
//BA.debugLineNum = 170;BA.debugLine="If sweepAngle <= 0 Then Return";
if (_sweepangle<=0) {
if (true) return "";};
//BA.debugLineNum = 171;BA.debugLine="Dim steps As Int = Max(2, Ceil(sweepAngle / 4))";
_steps = (int) (__c.Max(2,__c.Ceil(_sweepangle/(double)4)));
//BA.debugLineNum = 172;BA.debugLine="Dim path As B4XPath";
_path = new anywheresoftware.b4a.objects.B4XCanvas.B4XPath();
//BA.debugLineNum = 173;BA.debugLine="path.Initialize(centerX, centerY)";
_path.Initialize(_centerx,_centery);
//BA.debugLineNum = 174;BA.debugLine="For i = 0 To steps";
{
final anywheresoftware.b4a.BA.IterableList group5 = __ref._intervals /*anywheresoftware.b4a.objects.collections.List*/ ;
final int groupLen5 = group5.getSize()
;int index5 = 0;
;
for (; index5 < groupLen5;index5++){
_interval = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(group5.Get(index5)));
RDebugUtils.currentLine=1638414;
//BA.debugLineNum = 1638414;BA.debugLine="DrawInterval(interval.Get(\"startHour\"), in";
__ref._drawinterval /*String*/ (null,(int)(BA.ObjectToNumber(_interval.Get((Object)("startHour")))),(int)(BA.ObjectToNumber(_interval.Get((Object)("startMinute")))),(int)(BA.ObjectToNumber(_interval.Get((Object)("endHour")))),(int)(BA.ObjectToNumber(_interval.Get((Object)("endMinute")))),(int)(BA.ObjectToNumber(_interval.Get((Object)("color")))),(float)(BA.ObjectToNumber(_interval.Get((Object)("radius")))),(float)(BA.ObjectToNumber(_interval.Get((Object)("strokeWidth")))));
final int step5 = 1;
final int limit5 = _steps;
_i = (int) (0) ;
for (;_i <= limit5 ;_i = _i + step5 ) {
//BA.debugLineNum = 175;BA.debugLine="Dim angle As Float = startAngle + sweepAngle * i";
_angle = (float) (_startangle+_sweepangle*_i/(double)_steps);
//BA.debugLineNum = 176;BA.debugLine="Dim x As Float = centerX + radius * CosD(angle)";
_x = (float) (_centerx+_radius*__c.CosD(_angle));
//BA.debugLineNum = 177;BA.debugLine="Dim y As Float = centerY + radius * SinD(angle)";
_y = (float) (_centery+_radius*__c.SinD(_angle));
//BA.debugLineNum = 178;BA.debugLine="path.LineTo(x, y)";
_path.LineTo(_x,_y);
}
};
RDebugUtils.currentLine=1638418;
//BA.debugLineNum = 1638418;BA.debugLine="Dim now As Long = DateTime.Now";
_now = __c.DateTime.getNow();
RDebugUtils.currentLine=1638419;
//BA.debugLineNum = 1638419;BA.debugLine="Dim Hours As Int = DateTime.GetHour(now) Mod 1";
_hours = (int) (__c.DateTime.GetHour(_now)%12);
RDebugUtils.currentLine=1638420;
//BA.debugLineNum = 1638420;BA.debugLine="Dim Minutes As Int = DateTime.GetMinute(now)";
_minutes = __c.DateTime.GetMinute(_now);
RDebugUtils.currentLine=1638421;
//BA.debugLineNum = 1638421;BA.debugLine="Dim Seconds As Int = DateTime.GetSecond(now)";
_seconds = __c.DateTime.GetSecond(_now);
RDebugUtils.currentLine=1638424;
//BA.debugLineNum = 1638424;BA.debugLine="Dim HourAngle As Float = -90 + Hours * 30 + Mi";
_hourangle = (float) (-90+_hours*30+_minutes/(double)2);
RDebugUtils.currentLine=1638425;
//BA.debugLineNum = 1638425;BA.debugLine="DrawHand(centerX, centerY, clockDiameter * 0.2";
__ref._drawhand /*String*/ (null,__ref._centerx /*float*/ ,__ref._centery /*float*/ ,(float) (__ref._clockdiameter /*float*/ *0.25),_hourangle,__ref._hourhandstrokewidth /*float*/ ,__c.Colors.Black);
RDebugUtils.currentLine=1638428;
//BA.debugLineNum = 1638428;BA.debugLine="Dim MinuteAngle As Float = -90 + Minutes * 6";
_minuteangle = (float) (-90+_minutes*6);
RDebugUtils.currentLine=1638429;
//BA.debugLineNum = 1638429;BA.debugLine="DrawHand(centerX, centerY, clockDiameter * 0.4";
__ref._drawhand /*String*/ (null,__ref._centerx /*float*/ ,__ref._centery /*float*/ ,(float) (__ref._clockdiameter /*float*/ *0.4),_minuteangle,__ref._minutehandstrokewidth /*float*/ ,__c.Colors.Blue);
RDebugUtils.currentLine=1638432;
//BA.debugLineNum = 1638432;BA.debugLine="Dim SecondAngle As Float = -90 + Seconds * 6";
_secondangle = (float) (-90+_seconds*6);
RDebugUtils.currentLine=1638433;
//BA.debugLineNum = 1638433;BA.debugLine="DrawHand(centerX, centerY, clockDiameter * 0.4";
__ref._drawhand /*String*/ (null,__ref._centerx /*float*/ ,__ref._centery /*float*/ ,(float) (__ref._clockdiameter /*float*/ *0.45),_secondangle,(float) (__c.DipToCurrent((int) (2))),__c.Colors.Red);
RDebugUtils.currentLine=1638436;
//BA.debugLineNum = 1638436;BA.debugLine="pnlClock.Invalidate";
__ref._pnlclock /*anywheresoftware.b4a.objects.PanelWrapper*/ .Invalidate();
RDebugUtils.currentLine=1638437;
//BA.debugLineNum = 1638437;BA.debugLine="End Sub";
//BA.debugLineNum = 180;BA.debugLine="path.LineTo(centerX, centerY)";
_path.LineTo(_centerx,_centery);
//BA.debugLineNum = 181;BA.debugLine="cvsClock.DrawPath(path, color, True, 0)";
_cvsclock.DrawPath(_path,_color,__c.True,(float) (0));
//BA.debugLineNum = 182;BA.debugLine="End Sub";
return "";
}
public String _addinterval(b4a.example.analogclock __ref,int _starthour,int _startminute,int _endhour,int _endminute,String _tipo) throws Exception{
__ref = this;
RDebugUtils.currentModule="analogclock";
if (Debug.shouldDelegate(ba, "addinterval", false))
{return ((String) Debug.delegate(ba, "addinterval", new Object[] {_starthour,_startminute,_endhour,_endminute,_tipo}));}
anywheresoftware.b4a.objects.collections.Map _interval = null;
RDebugUtils.currentLine=1835008;
//BA.debugLineNum = 1835008;BA.debugLine="Public Sub AddInterval(startHour As Int, startMinu";
RDebugUtils.currentLine=1835009;
//BA.debugLineNum = 1835009;BA.debugLine="Dim interval As Map";
_interval = new anywheresoftware.b4a.objects.collections.Map();
RDebugUtils.currentLine=1835010;
//BA.debugLineNum = 1835010;BA.debugLine="interval.Initialize";
_interval.Initialize();
RDebugUtils.currentLine=1835011;
//BA.debugLineNum = 1835011;BA.debugLine="interval.Put(\"startHour\", startHour)";
_interval.Put((Object)("startHour"),(Object)(_starthour));
RDebugUtils.currentLine=1835012;
//BA.debugLineNum = 1835012;BA.debugLine="interval.Put(\"startMinute\", startMinute)";
_interval.Put((Object)("startMinute"),(Object)(_startminute));
RDebugUtils.currentLine=1835013;
//BA.debugLineNum = 1835013;BA.debugLine="interval.Put(\"endHour\", endHour)";
_interval.Put((Object)("endHour"),(Object)(_endhour));
RDebugUtils.currentLine=1835014;
//BA.debugLineNum = 1835014;BA.debugLine="interval.Put(\"endMinute\", endMinute)";
_interval.Put((Object)("endMinute"),(Object)(_endminute));
RDebugUtils.currentLine=1835015;
//BA.debugLineNum = 1835015;BA.debugLine="Select tipo.ToLowerCase";
switch (BA.switchObjectToInt(_tipo.toLowerCase(),"mattino","pomeriggio")) {
case 0: {
RDebugUtils.currentLine=1835017;
//BA.debugLineNum = 1835017;BA.debugLine="interval.Put(\"color\", Colors.Blue)";
_interval.Put((Object)("color"),(Object)(__c.Colors.Blue));
RDebugUtils.currentLine=1835018;
//BA.debugLineNum = 1835018;BA.debugLine="interval.Put(\"radius\", clockDiameter /";
_interval.Put((Object)("radius"),(Object)(__ref._clockdiameter /*float*/ /(double)2-__c.DipToCurrent((int) (15))));
RDebugUtils.currentLine=1835019;
//BA.debugLineNum = 1835019;BA.debugLine="interval.Put(\"strokeWidth\", intervalAr";
_interval.Put((Object)("strokeWidth"),(Object)(__ref._intervalarcstrokewidth /*float*/ ));
break; }
case 1: {
RDebugUtils.currentLine=1835021;
//BA.debugLineNum = 1835021;BA.debugLine="interval.Put(\"color\", Colors.Green)";
_interval.Put((Object)("color"),(Object)(__c.Colors.Green));
RDebugUtils.currentLine=1835022;
//BA.debugLineNum = 1835022;BA.debugLine="interval.Put(\"radius\", clockDiameter /";
_interval.Put((Object)("radius"),(Object)(__ref._clockdiameter /*float*/ /(double)2-__c.DipToCurrent((int) (25))));
RDebugUtils.currentLine=1835023;
//BA.debugLineNum = 1835023;BA.debugLine="interval.Put(\"strokeWidth\", intervalAr";
_interval.Put((Object)("strokeWidth"),(Object)(__ref._intervalarcstrokewidth /*float*/ ));
break; }
default: {
RDebugUtils.currentLine=1835025;
//BA.debugLineNum = 1835025;BA.debugLine="Log(\"Tipo di intervallo non riconosciu";
__c.LogImpl("31835025","Tipo di intervallo non riconosciuto: "+_tipo,0);
RDebugUtils.currentLine=1835026;
//BA.debugLineNum = 1835026;BA.debugLine="Return";
if (true) return "";
break; }
}
public String _drawsegments() throws Exception{
long _totalpausems = 0L;
long _totalrecordedms = 0L;
anywheresoftware.b4a.objects.collections.Map _segment = null;
long _duration = 0L;
long _totaldisplayms = 0L;
float _startangle = 0f;
float _radius = 0f;
float _sweepangle = 0f;
float _activesweepangle = 0f;
//BA.debugLineNum = 139;BA.debugLine="Private Sub DrawSegments";
//BA.debugLineNum = 140;BA.debugLine="If segments.IsInitialized = False Then Return";
if (_segments.IsInitialized()==__c.False) {
if (true) return "";};
//BA.debugLineNum = 141;BA.debugLine="Dim totalPauseMs As Long = 0";
_totalpausems = (long) (0);
//BA.debugLineNum = 142;BA.debugLine="Dim totalRecordedMs As Long = 0";
_totalrecordedms = (long) (0);
//BA.debugLineNum = 143;BA.debugLine="For Each segment As Map In segments";
_segment = new anywheresoftware.b4a.objects.collections.Map();
{
final anywheresoftware.b4a.BA.IterableList group4 = _segments;
final int groupLen4 = group4.getSize()
;int index4 = 0;
;
RDebugUtils.currentLine=1835028;
//BA.debugLineNum = 1835028;BA.debugLine="intervals.Add(interval)";
__ref._intervals /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_interval.getObject()));
RDebugUtils.currentLine=1835029;
//BA.debugLineNum = 1835029;BA.debugLine="DrawClock";
__ref._drawclock /*String*/ (null);
RDebugUtils.currentLine=1835030;
//BA.debugLineNum = 1835030;BA.debugLine="End Sub";
for (; index4 < groupLen4;index4++){
_segment = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(group4.Get(index4)));
//BA.debugLineNum = 144;BA.debugLine="Dim duration As Long = segment.Get(\"duration\")";
_duration = BA.ObjectToLongNumber(_segment.Get((Object)("duration")));
//BA.debugLineNum = 145;BA.debugLine="totalRecordedMs = totalRecordedMs + duration";
_totalrecordedms = (long) (_totalrecordedms+_duration);
//BA.debugLineNum = 146;BA.debugLine="If segment.Get(\"pause\") = True Then totalPauseMs";
if ((_segment.Get((Object)("pause"))).equals((Object)(__c.True))) {
_totalpausems = (long) (_totalpausems+_duration);};
}
};
//BA.debugLineNum = 148;BA.debugLine="If hasActiveSegment Then";
if (_hasactivesegment) {
//BA.debugLineNum = 149;BA.debugLine="totalRecordedMs = totalRecordedMs + activeDurati";
_totalrecordedms = (long) (_totalrecordedms+_activedurationms);
//BA.debugLineNum = 150;BA.debugLine="If activeIsPause Then totalPauseMs = totalPauseM";
if (_activeispause) {
_totalpausems = (long) (_totalpausems+_activedurationms);};
};
//BA.debugLineNum = 153;BA.debugLine="Dim totalDisplayMs As Long = Max(baseDurationMs,";
_totaldisplayms = (long) (__c.Max(_basedurationms,_totalrecordedms));
//BA.debugLineNum = 154;BA.debugLine="If totalDisplayMs <= 0 Then Return";
if (_totaldisplayms<=0) {
if (true) return "";};
//BA.debugLineNum = 156;BA.debugLine="Dim startAngle As Float = -90";
_startangle = (float) (-90);
//BA.debugLineNum = 157;BA.debugLine="Dim radius As Float = clockDiameter / 2 - 22dip";
_radius = (float) (_clockdiameter/(double)2-__c.DipToCurrent((int) (22)));
//BA.debugLineNum = 158;BA.debugLine="For Each segment As Map In segments";
_segment = new anywheresoftware.b4a.objects.collections.Map();
{
final anywheresoftware.b4a.BA.IterableList group17 = _segments;
final int groupLen17 = group17.getSize()
;int index17 = 0;
;
for (; index17 < groupLen17;index17++){
_segment = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(group17.Get(index17)));
//BA.debugLineNum = 159;BA.debugLine="Dim sweepAngle As Float = 360 * segment.Get(\"dur";
_sweepangle = (float) (360*(double)(BA.ObjectToNumber(_segment.Get((Object)("duration"))))/(double)_totaldisplayms);
//BA.debugLineNum = 160;BA.debugLine="DrawPieSegment(startAngle, sweepAngle, segment.G";
_drawpiesegment(_startangle,_sweepangle,(int)(BA.ObjectToNumber(_segment.Get((Object)("color")))),_radius);
//BA.debugLineNum = 161;BA.debugLine="startAngle = startAngle + sweepAngle";
_startangle = (float) (_startangle+_sweepangle);
}
};
//BA.debugLineNum = 163;BA.debugLine="If hasActiveSegment Then";
if (_hasactivesegment) {
//BA.debugLineNum = 164;BA.debugLine="Dim activeSweepAngle As Float = 360 * activeDura";
_activesweepangle = (float) (360*_activedurationms/(double)_totaldisplayms);
//BA.debugLineNum = 165;BA.debugLine="DrawPieSegment(startAngle, activeSweepAngle, act";
_drawpiesegment(_startangle,_activesweepangle,_activecolor,_radius);
};
//BA.debugLineNum = 167;BA.debugLine="End Sub";
return "";
}
public String _class_globals(b4a.example.analogclock __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="analogclock";
RDebugUtils.currentLine=1310720;
//BA.debugLineNum = 1310720;BA.debugLine="Sub Class_Globals";
RDebugUtils.currentLine=1310721;
//BA.debugLineNum = 1310721;BA.debugLine="Private xui As XUI";
_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI();
RDebugUtils.currentLine=1310723;
//BA.debugLineNum = 1310723;BA.debugLine="Private pnlClock As Panel ' Pannello in c";
_pnlclock = new anywheresoftware.b4a.objects.PanelWrapper();
RDebugUtils.currentLine=1310724;
//BA.debugLineNum = 1310724;BA.debugLine="Private cvsClock As B4XCanvas ' Canvas per";
_cvsclock = new anywheresoftware.b4a.objects.B4XCanvas();
RDebugUtils.currentLine=1310725;
//BA.debugLineNum = 1310725;BA.debugLine="Private clockDiameter As Float ' Diametro dell";
_clockdiameter = 0f;
RDebugUtils.currentLine=1310726;
//BA.debugLineNum = 1310726;BA.debugLine="Private centerX As Float ' Coordinata X";
_centerx = 0f;
RDebugUtils.currentLine=1310727;
//BA.debugLineNum = 1310727;BA.debugLine="Private centerY As Float ' Coordinata Y";
_centery = 0f;
RDebugUtils.currentLine=1310728;
//BA.debugLineNum = 1310728;BA.debugLine="Private intervals As List ' Lista degli i";
_intervals = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=1310731;
//BA.debugLineNum = 1310731;BA.debugLine="Private quadrantStrokeWidth As Float = 5dip";
_quadrantstrokewidth = (float) (__c.DipToCurrent((int) (5)));
RDebugUtils.currentLine=1310732;
//BA.debugLineNum = 1310732;BA.debugLine="Private hourTickStrokeWidth As Float = 5dip";
_hourtickstrokewidth = (float) (__c.DipToCurrent((int) (5)));
RDebugUtils.currentLine=1310733;
//BA.debugLineNum = 1310733;BA.debugLine="Private minuteTickStrokeWidth As Float = 2dip";
_minutetickstrokewidth = (float) (__c.DipToCurrent((int) (2)));
RDebugUtils.currentLine=1310734;
//BA.debugLineNum = 1310734;BA.debugLine="Private intervalArcStrokeWidth As Float = 5dip";
_intervalarcstrokewidth = (float) (__c.DipToCurrent((int) (5)));
RDebugUtils.currentLine=1310735;
//BA.debugLineNum = 1310735;BA.debugLine="Private hourHandStrokeWidth As Float = 8dip";
_hourhandstrokewidth = (float) (__c.DipToCurrent((int) (8)));
RDebugUtils.currentLine=1310736;
//BA.debugLineNum = 1310736;BA.debugLine="Private minuteHandStrokeWidth As Float = 5dip";
_minutehandstrokewidth = (float) (__c.DipToCurrent((int) (5)));
RDebugUtils.currentLine=1310737;
//BA.debugLineNum = 1310737;BA.debugLine="Private intervals As List";
_intervals = new anywheresoftware.b4a.objects.collections.List();
RDebugUtils.currentLine=1310738;
//BA.debugLineNum = 1310738;BA.debugLine="End Sub";
return "";
}
public String _clearcanvas(b4a.example.analogclock __ref,int _color) throws Exception{
__ref = this;
RDebugUtils.currentModule="analogclock";
if (Debug.shouldDelegate(ba, "clearcanvas", false))
{return ((String) Debug.delegate(ba, "clearcanvas", new Object[] {_color}));}
RDebugUtils.currentLine=1572864;
//BA.debugLineNum = 1572864;BA.debugLine="Private Sub ClearCanvas(color As Int)";
RDebugUtils.currentLine=1572865;
//BA.debugLineNum = 1572865;BA.debugLine="cvsClock.DrawRect(cvsClock.TargetRect, color, Tru";
__ref._cvsclock /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawRect(__ref._cvsclock /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect(),_color,__c.True,(float) (0));
RDebugUtils.currentLine=1572866;
//BA.debugLineNum = 1572866;BA.debugLine="cvsClock.Invalidate";
__ref._cvsclock /*anywheresoftware.b4a.objects.B4XCanvas*/ .Invalidate();
RDebugUtils.currentLine=1572867;
//BA.debugLineNum = 1572867;BA.debugLine="End Sub";
return "";
}
public String _drawticks(b4a.example.analogclock __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="analogclock";
if (Debug.shouldDelegate(ba, "drawticks", false))
{return ((String) Debug.delegate(ba, "drawticks", null));}
public String _drawticks() throws Exception{
int _i = 0;
float _angle = 0f;
float _startx = 0f;
float _starty = 0f;
float _endx = 0f;
float _endy = 0f;
RDebugUtils.currentLine=1769472;
//BA.debugLineNum = 1769472;BA.debugLine="Private Sub DrawTicks";
RDebugUtils.currentLine=1769473;
//BA.debugLineNum = 1769473;BA.debugLine="For i = 0 To 59";
//BA.debugLineNum = 191;BA.debugLine="Private Sub DrawTicks";
//BA.debugLineNum = 192;BA.debugLine="For i = 0 To 59";
{
final int step1 = 1;
final int limit1 = (int) (59);
_i = (int) (0) ;
for (;_i <= limit1 ;_i = _i + step1 ) {
RDebugUtils.currentLine=1769474;
//BA.debugLineNum = 1769474;BA.debugLine="Dim angle As Float = -90 + i * 6";
//BA.debugLineNum = 193;BA.debugLine="Dim angle As Float = -90 + i * 6";
_angle = (float) (-90+_i*6);
RDebugUtils.currentLine=1769475;
//BA.debugLineNum = 1769475;BA.debugLine="Dim startX As Float";
//BA.debugLineNum = 194;BA.debugLine="Dim startX As Float";
_startx = 0f;
RDebugUtils.currentLine=1769476;
//BA.debugLineNum = 1769476;BA.debugLine="Dim startY As Float";
//BA.debugLineNum = 195;BA.debugLine="Dim startY As Float";
_starty = 0f;
RDebugUtils.currentLine=1769477;
//BA.debugLineNum = 1769477;BA.debugLine="Dim endX As Float";
//BA.debugLineNum = 196;BA.debugLine="Dim endX As Float";
_endx = 0f;
RDebugUtils.currentLine=1769478;
//BA.debugLineNum = 1769478;BA.debugLine="Dim endY As Float";
//BA.debugLineNum = 197;BA.debugLine="Dim endY As Float";
_endy = 0f;
RDebugUtils.currentLine=1769479;
//BA.debugLineNum = 1769479;BA.debugLine="If i Mod 5 = 0 Then";
//BA.debugLineNum = 198;BA.debugLine="If i Mod 5 = 0 Then";
if (_i%5==0) {
RDebugUtils.currentLine=1769481;
//BA.debugLineNum = 1769481;BA.debugLine="startX = centerX + (clockDiameter / 2";
_startx = (float) (__ref._centerx /*float*/ +(__ref._clockdiameter /*float*/ /(double)2-__c.DipToCurrent((int) (20)))*__c.CosD(_angle));
RDebugUtils.currentLine=1769482;
//BA.debugLineNum = 1769482;BA.debugLine="startY = centerY + (clockDiameter / 2";
_starty = (float) (__ref._centery /*float*/ +(__ref._clockdiameter /*float*/ /(double)2-__c.DipToCurrent((int) (20)))*__c.SinD(_angle));
RDebugUtils.currentLine=1769483;
//BA.debugLineNum = 1769483;BA.debugLine="endX = centerX + (clockDiameter / 2 -";
_endx = (float) (__ref._centerx /*float*/ +(__ref._clockdiameter /*float*/ /(double)2-__c.DipToCurrent((int) (5)))*__c.CosD(_angle));
RDebugUtils.currentLine=1769484;
//BA.debugLineNum = 1769484;BA.debugLine="endY = centerY + (clockDiameter / 2 -";
_endy = (float) (__ref._centery /*float*/ +(__ref._clockdiameter /*float*/ /(double)2-__c.DipToCurrent((int) (5)))*__c.SinD(_angle));
RDebugUtils.currentLine=1769485;
//BA.debugLineNum = 1769485;BA.debugLine="cvsClock.DrawLine(startX, startY, endX";
__ref._cvsclock /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawLine(_startx,_starty,_endx,_endy,__c.Colors.Black,__ref._hourtickstrokewidth /*float*/ );
//BA.debugLineNum = 200;BA.debugLine="startX = centerX + (clockDiameter / 2";
_startx = (float) (_centerx+(_clockdiameter/(double)2-__c.DipToCurrent((int) (20)))*__c.CosD(_angle));
//BA.debugLineNum = 201;BA.debugLine="startY = centerY + (clockDiameter / 2";
_starty = (float) (_centery+(_clockdiameter/(double)2-__c.DipToCurrent((int) (20)))*__c.SinD(_angle));
//BA.debugLineNum = 202;BA.debugLine="endX = centerX + (clockDiameter / 2 -";
_endx = (float) (_centerx+(_clockdiameter/(double)2-__c.DipToCurrent((int) (5)))*__c.CosD(_angle));
//BA.debugLineNum = 203;BA.debugLine="endY = centerY + (clockDiameter / 2 -";
_endy = (float) (_centery+(_clockdiameter/(double)2-__c.DipToCurrent((int) (5)))*__c.SinD(_angle));
//BA.debugLineNum = 204;BA.debugLine="cvsClock.DrawLine(startX, startY, endX";
_cvsclock.DrawLine(_startx,_starty,_endx,_endy,__c.Colors.Black,_hourtickstrokewidth);
}else {
RDebugUtils.currentLine=1769488;
//BA.debugLineNum = 1769488;BA.debugLine="startX = centerX + (clockDiameter / 2";
_startx = (float) (__ref._centerx /*float*/ +(__ref._clockdiameter /*float*/ /(double)2-__c.DipToCurrent((int) (10)))*__c.CosD(_angle));
RDebugUtils.currentLine=1769489;
//BA.debugLineNum = 1769489;BA.debugLine="startY = centerY + (clockDiameter / 2";
_starty = (float) (__ref._centery /*float*/ +(__ref._clockdiameter /*float*/ /(double)2-__c.DipToCurrent((int) (10)))*__c.SinD(_angle));
RDebugUtils.currentLine=1769490;
//BA.debugLineNum = 1769490;BA.debugLine="endX = centerX + (clockDiameter / 2 -";
_endx = (float) (__ref._centerx /*float*/ +(__ref._clockdiameter /*float*/ /(double)2-__c.DipToCurrent((int) (5)))*__c.CosD(_angle));
RDebugUtils.currentLine=1769491;
//BA.debugLineNum = 1769491;BA.debugLine="endY = centerY + (clockDiameter / 2 -";
_endy = (float) (__ref._centery /*float*/ +(__ref._clockdiameter /*float*/ /(double)2-__c.DipToCurrent((int) (5)))*__c.SinD(_angle));
RDebugUtils.currentLine=1769492;
//BA.debugLineNum = 1769492;BA.debugLine="cvsClock.DrawLine(startX, startY, endX";
__ref._cvsclock /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawLine(_startx,_starty,_endx,_endy,__c.Colors.Black,__ref._minutetickstrokewidth /*float*/ );
//BA.debugLineNum = 207;BA.debugLine="startX = centerX + (clockDiameter / 2";
_startx = (float) (_centerx+(_clockdiameter/(double)2-__c.DipToCurrent((int) (10)))*__c.CosD(_angle));
//BA.debugLineNum = 208;BA.debugLine="startY = centerY + (clockDiameter / 2";
_starty = (float) (_centery+(_clockdiameter/(double)2-__c.DipToCurrent((int) (10)))*__c.SinD(_angle));
//BA.debugLineNum = 209;BA.debugLine="endX = centerX + (clockDiameter / 2 -";
_endx = (float) (_centerx+(_clockdiameter/(double)2-__c.DipToCurrent((int) (5)))*__c.CosD(_angle));
//BA.debugLineNum = 210;BA.debugLine="endY = centerY + (clockDiameter / 2 -";
_endy = (float) (_centery+(_clockdiameter/(double)2-__c.DipToCurrent((int) (5)))*__c.SinD(_angle));
//BA.debugLineNum = 211;BA.debugLine="cvsClock.DrawLine(startX, startY, endX";
_cvsclock.DrawLine(_startx,_starty,_endx,_endy,__c.Colors.Black,_minutetickstrokewidth);
};
}
};
RDebugUtils.currentLine=1769495;
//BA.debugLineNum = 1769495;BA.debugLine="End Sub";
//BA.debugLineNum = 214;BA.debugLine="End Sub";
return "";
}
public String _drawinterval(b4a.example.analogclock __ref,int _starthour,int _startminute,int _endhour,int _endminute,int _color,float _radius,float _strokewidth) throws Exception{
__ref = this;
RDebugUtils.currentModule="analogclock";
if (Debug.shouldDelegate(ba, "drawinterval", false))
{return ((String) Debug.delegate(ba, "drawinterval", new Object[] {_starthour,_startminute,_endhour,_endminute,_color,_radius,_strokewidth}));}
float _startangle = 0f;
float _endangle = 0f;
float _sweepangle = 0f;
anywheresoftware.b4a.objects.B4XCanvas.B4XPath _path = null;
RDebugUtils.currentLine=1900544;
//BA.debugLineNum = 1900544;BA.debugLine="Private Sub DrawInterval(startHour As Int, startMi";
RDebugUtils.currentLine=1900545;
//BA.debugLineNum = 1900545;BA.debugLine="Dim startAngle As Float = (startHour Mod 12 + sta";
_startangle = (float) ((_starthour%12+_startminute/(double)60)*30-90);
RDebugUtils.currentLine=1900546;
//BA.debugLineNum = 1900546;BA.debugLine="Dim endAngle As Float = (endHour Mod 12 + endMinu";
_endangle = (float) ((_endhour%12+_endminute/(double)60)*30-90);
RDebugUtils.currentLine=1900547;
//BA.debugLineNum = 1900547;BA.debugLine="Dim sweepAngle As Float = endAngle - startAngle";
_sweepangle = (float) (_endangle-_startangle);
RDebugUtils.currentLine=1900548;
//BA.debugLineNum = 1900548;BA.debugLine="If sweepAngle < 0 Then sweepAngle = sweepAngle +";
if (_sweepangle<0) {
_sweepangle = (float) (_sweepangle+360);};
RDebugUtils.currentLine=1900550;
//BA.debugLineNum = 1900550;BA.debugLine="Dim path As B4XPath";
_path = new anywheresoftware.b4a.objects.B4XCanvas.B4XPath();
RDebugUtils.currentLine=1900551;
//BA.debugLineNum = 1900551;BA.debugLine="path.InitializeArc(centerX, centerY, radius, star";
_path.InitializeArc(__ref._centerx /*float*/ ,__ref._centery /*float*/ ,_radius,_startangle,_sweepangle);
RDebugUtils.currentLine=1900552;
//BA.debugLineNum = 1900552;BA.debugLine="cvsClock.DrawPath(path, color, False, strokeWidth";
__ref._cvsclock /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawPath(_path,_color,__c.False,_strokewidth);
RDebugUtils.currentLine=1900553;
//BA.debugLineNum = 1900553;BA.debugLine="End Sub";
public String _initialize(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.PanelWrapper _parentpanel,float _percentageofwidth) throws Exception{
innerInitialize(_ba);
//BA.debugLineNum = 26;BA.debugLine="Public Sub Initialize(ParentPanel As Panel, Percen";
//BA.debugLineNum = 27;BA.debugLine="pnlClock = ParentPanel";
_pnlclock = _parentpanel;
//BA.debugLineNum = 28;BA.debugLine="cvsClock.Initialize(pnlClock)";
_cvsclock.Initialize((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_pnlclock.getObject())));
//BA.debugLineNum = 29;BA.debugLine="segments.Initialize";
_segments.Initialize();
//BA.debugLineNum = 30;BA.debugLine="baseDurationMs = 12 * DateTime.TicksPerHour";
_basedurationms = (long) (12*__c.DateTime.TicksPerHour);
//BA.debugLineNum = 31;BA.debugLine="SetClockSize(PercentageOfWidth)";
_setclocksize(_percentageofwidth);
//BA.debugLineNum = 32;BA.debugLine="End Sub";
return "";
}
public String _drawhand(b4a.example.analogclock __ref,float _x,float _y,float _length,float _angle,float _width,int _color) throws Exception{
__ref = this;
RDebugUtils.currentModule="analogclock";
if (Debug.shouldDelegate(ba, "drawhand", false))
{return ((String) Debug.delegate(ba, "drawhand", new Object[] {_x,_y,_length,_angle,_width,_color}));}
float _endx = 0f;
float _endy = 0f;
RDebugUtils.currentLine=1703936;
//BA.debugLineNum = 1703936;BA.debugLine="Private Sub DrawHand(x As Float, y As Float, lengt";
RDebugUtils.currentLine=1703937;
//BA.debugLineNum = 1703937;BA.debugLine="Dim endX As Float = x + length * CosD(angle)";
_endx = (float) (_x+_length*__c.CosD(_angle));
RDebugUtils.currentLine=1703938;
//BA.debugLineNum = 1703938;BA.debugLine="Dim endY As Float = y + length * SinD(angle)";
_endy = (float) (_y+_length*__c.SinD(_angle));
RDebugUtils.currentLine=1703939;
//BA.debugLineNum = 1703939;BA.debugLine="cvsClock.DrawLine(x, y, endX, endY, color, wid";
__ref._cvsclock /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawLine(_x,_y,_endx,_endy,_color,_width);
RDebugUtils.currentLine=1703940;
//BA.debugLineNum = 1703940;BA.debugLine="End Sub";
public String _setactivesegment(long _durationms,int _segmentcolor,boolean _ispause) throws Exception{
//BA.debugLineNum = 62;BA.debugLine="Public Sub SetActiveSegment(DurationMs As Long, Se";
//BA.debugLineNum = 63;BA.debugLine="activeDurationMs = Max(0, DurationMs)";
_activedurationms = (long) (__c.Max(0,_durationms));
//BA.debugLineNum = 64;BA.debugLine="activeColor = SegmentColor";
_activecolor = _segmentcolor;
//BA.debugLineNum = 65;BA.debugLine="activeIsPause = IsPause";
_activeispause = _ispause;
//BA.debugLineNum = 66;BA.debugLine="hasActiveSegment = activeDurationMs > 0";
_hasactivesegment = _activedurationms>0;
//BA.debugLineNum = 67;BA.debugLine="DrawClock";
_drawclock();
//BA.debugLineNum = 68;BA.debugLine="End Sub";
return "";
}
public String _setclocksize(b4a.example.analogclock __ref,float _percentageofwidth) throws Exception{
__ref = this;
RDebugUtils.currentModule="analogclock";
if (Debug.shouldDelegate(ba, "setclocksize", false))
{return ((String) Debug.delegate(ba, "setclocksize", new Object[] {_percentageofwidth}));}
RDebugUtils.currentLine=1441792;
//BA.debugLineNum = 1441792;BA.debugLine="Public Sub SetClockSize(PercentageOfWidth As Float";
RDebugUtils.currentLine=1441793;
//BA.debugLineNum = 1441793;BA.debugLine="clockDiameter = pnlClock.Width * PercentageOfW";
__ref._clockdiameter /*float*/ = (float) (__ref._pnlclock /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth()*_percentageofwidth/(double)100);
RDebugUtils.currentLine=1441794;
//BA.debugLineNum = 1441794;BA.debugLine="centerX = pnlClock.Width / 2";
__ref._centerx /*float*/ = (float) (__ref._pnlclock /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth()/(double)2);
RDebugUtils.currentLine=1441795;
//BA.debugLineNum = 1441795;BA.debugLine="centerY = pnlClock.Height / 2";
__ref._centery /*float*/ = (float) (__ref._pnlclock /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight()/(double)2);
RDebugUtils.currentLine=1441796;
//BA.debugLineNum = 1441796;BA.debugLine="DrawClock";
__ref._drawclock /*String*/ (null);
RDebugUtils.currentLine=1441797;
//BA.debugLineNum = 1441797;BA.debugLine="End Sub";
public String _setbaseduration(long _durationms) throws Exception{
//BA.debugLineNum = 35;BA.debugLine="Public Sub SetBaseDuration(DurationMs As Long)";
//BA.debugLineNum = 36;BA.debugLine="baseDurationMs = DurationMs";
_basedurationms = _durationms;
//BA.debugLineNum = 37;BA.debugLine="DrawClock";
_drawclock();
//BA.debugLineNum = 38;BA.debugLine="End Sub";
return "";
}
public String _setstrokewidths(b4a.example.analogclock __ref,float _quadrantwidth,float _hourtickwidth,float _minutetickwidth,float _intervalarcwidth,float _hourhandwidth,float _minutehandwidth) throws Exception{
__ref = this;
RDebugUtils.currentModule="analogclock";
if (Debug.shouldDelegate(ba, "setstrokewidths", false))
{return ((String) Debug.delegate(ba, "setstrokewidths", new Object[] {_quadrantwidth,_hourtickwidth,_minutetickwidth,_intervalarcwidth,_hourhandwidth,_minutehandwidth}));}
RDebugUtils.currentLine=1507328;
//BA.debugLineNum = 1507328;BA.debugLine="Public Sub SetStrokeWidths(quadrantWidth As Float,";
RDebugUtils.currentLine=1507329;
//BA.debugLineNum = 1507329;BA.debugLine="quadrantStrokeWidth = quadrantWidth";
__ref._quadrantstrokewidth /*float*/ = _quadrantwidth;
RDebugUtils.currentLine=1507330;
//BA.debugLineNum = 1507330;BA.debugLine="hourTickStrokeWidth = hourTickWidth";
__ref._hourtickstrokewidth /*float*/ = _hourtickwidth;
RDebugUtils.currentLine=1507331;
//BA.debugLineNum = 1507331;BA.debugLine="minuteTickStrokeWidth = minuteTickWidth";
__ref._minutetickstrokewidth /*float*/ = _minutetickwidth;
RDebugUtils.currentLine=1507332;
//BA.debugLineNum = 1507332;BA.debugLine="intervalArcStrokeWidth = intervalArcWidth";
__ref._intervalarcstrokewidth /*float*/ = _intervalarcwidth;
RDebugUtils.currentLine=1507333;
//BA.debugLineNum = 1507333;BA.debugLine="hourHandStrokeWidth = hourHandWidth";
__ref._hourhandstrokewidth /*float*/ = _hourhandwidth;
RDebugUtils.currentLine=1507334;
//BA.debugLineNum = 1507334;BA.debugLine="minuteHandStrokeWidth = minuteHandWidth";
__ref._minutehandstrokewidth /*float*/ = _minutehandwidth;
RDebugUtils.currentLine=1507335;
//BA.debugLineNum = 1507335;BA.debugLine="DrawClock";
__ref._drawclock /*String*/ (null);
RDebugUtils.currentLine=1507336;
//BA.debugLineNum = 1507336;BA.debugLine="End Sub";
public String _setclocksize(float _percentageofwidth) throws Exception{
//BA.debugLineNum = 77;BA.debugLine="Public Sub SetClockSize(PercentageOfWidth As Float";
//BA.debugLineNum = 78;BA.debugLine="clockDiameter = pnlClock.Width * PercentageOfW";
_clockdiameter = (float) (_pnlclock.getWidth()*_percentageofwidth/(double)100);
//BA.debugLineNum = 79;BA.debugLine="centerX = pnlClock.Width / 2";
_centerx = (float) (_pnlclock.getWidth()/(double)2);
//BA.debugLineNum = 80;BA.debugLine="centerY = pnlClock.Height / 2";
_centery = (float) (_pnlclock.getHeight()/(double)2);
//BA.debugLineNum = 81;BA.debugLine="DrawClock";
_drawclock();
//BA.debugLineNum = 82;BA.debugLine="End Sub";
return "";
}
public String _startclock(b4a.example.analogclock __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="analogclock";
if (Debug.shouldDelegate(ba, "startclock", false))
{return ((String) Debug.delegate(ba, "startclock", null));}
public String _setstrokewidths(float _quadrantwidth,float _hourtickwidth,float _minutetickwidth,float _intervalarcwidth,float _hourhandwidth,float _minutehandwidth) throws Exception{
//BA.debugLineNum = 85;BA.debugLine="Public Sub SetStrokeWidths(quadrantWidth As Float,";
//BA.debugLineNum = 86;BA.debugLine="quadrantStrokeWidth = quadrantWidth";
_quadrantstrokewidth = _quadrantwidth;
//BA.debugLineNum = 87;BA.debugLine="hourTickStrokeWidth = hourTickWidth";
_hourtickstrokewidth = _hourtickwidth;
//BA.debugLineNum = 88;BA.debugLine="minuteTickStrokeWidth = minuteTickWidth";
_minutetickstrokewidth = _minutetickwidth;
//BA.debugLineNum = 89;BA.debugLine="intervalArcStrokeWidth = intervalArcWidth";
_intervalarcstrokewidth = _intervalarcwidth;
//BA.debugLineNum = 90;BA.debugLine="hourHandStrokeWidth = hourHandWidth";
_hourhandstrokewidth = _hourhandwidth;
//BA.debugLineNum = 91;BA.debugLine="minuteHandStrokeWidth = minuteHandWidth";
_minutehandstrokewidth = _minutehandwidth;
//BA.debugLineNum = 92;BA.debugLine="DrawClock";
_drawclock();
//BA.debugLineNum = 93;BA.debugLine="End Sub";
return "";
}
public String _startclock() throws Exception{
anywheresoftware.b4a.objects.Timer _timer = null;
RDebugUtils.currentLine=1966080;
//BA.debugLineNum = 1966080;BA.debugLine="Public Sub StartClock";
RDebugUtils.currentLine=1966081;
//BA.debugLineNum = 1966081;BA.debugLine="Dim timer As Timer";
//BA.debugLineNum = 217;BA.debugLine="Public Sub StartClock";
//BA.debugLineNum = 218;BA.debugLine="Dim timer As Timer";
_timer = new anywheresoftware.b4a.objects.Timer();
RDebugUtils.currentLine=1966082;
//BA.debugLineNum = 1966082;BA.debugLine="timer.Initialize(\"timer\", 1000)";
//BA.debugLineNum = 219;BA.debugLine="timer.Initialize(\"timer\", 1000)";
_timer.Initialize(ba,"timer",(long) (1000));
RDebugUtils.currentLine=1966083;
//BA.debugLineNum = 1966083;BA.debugLine="timer.Enabled = True";
//BA.debugLineNum = 220;BA.debugLine="timer.Enabled = True";
_timer.setEnabled(__c.True);
RDebugUtils.currentLine=1966084;
//BA.debugLineNum = 1966084;BA.debugLine="End Sub";
//BA.debugLineNum = 221;BA.debugLine="End Sub";
return "";
}
public String _timer_tick(b4a.example.analogclock __ref) throws Exception{
__ref = this;
RDebugUtils.currentModule="analogclock";
if (Debug.shouldDelegate(ba, "timer_tick", false))
{return ((String) Debug.delegate(ba, "timer_tick", null));}
RDebugUtils.currentLine=2031616;
//BA.debugLineNum = 2031616;BA.debugLine="Private Sub timer_Tick";
RDebugUtils.currentLine=2031617;
//BA.debugLineNum = 2031617;BA.debugLine="DrawClock";
__ref._drawclock /*String*/ (null);
RDebugUtils.currentLine=2031618;
//BA.debugLineNum = 2031618;BA.debugLine="End Sub";
public String _timer_tick() throws Exception{
//BA.debugLineNum = 224;BA.debugLine="Private Sub timer_Tick";
//BA.debugLineNum = 225;BA.debugLine="DrawClock";
_drawclock();
//BA.debugLineNum = 226;BA.debugLine="End Sub";
return "";
}
}
public Object callSub(String sub, Object sender, Object[] args) throws Exception {
BA.senderHolder.set(sender);
return BA.SubDelegator.SubNotFound;
}
}

View File

@@ -0,0 +1,603 @@
package b4a.example;
import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.BALayout;
import anywheresoftware.b4a.debug.*;
public class localization {
private static localization mostCurrent = new localization();
public static Object getObject() {
throw new RuntimeException("Code module does not support this method.");
}
public anywheresoftware.b4a.keywords.Common __c = null;
public static anywheresoftware.b4a.objects.collections.Map _translations = null;
public static String _currentlanguage = "";
public static boolean _initialized = false;
public b4a.example.main _main = null;
public b4a.example.starter _starter = null;
public static anywheresoftware.b4a.objects.collections.Map _createenglishmap(anywheresoftware.b4a.BA _ba) throws Exception{
anywheresoftware.b4a.objects.collections.Map _m = null;
//BA.debugLineNum = 68;BA.debugLine="Private Sub CreateEnglishMap As Map";
//BA.debugLineNum = 69;BA.debugLine="Dim m As Map";
_m = new anywheresoftware.b4a.objects.collections.Map();
//BA.debugLineNum = 70;BA.debugLine="m.Initialize";
_m.Initialize();
//BA.debugLineNum = 71;BA.debugLine="m.Put(\"app_title\", \"Overtime Guard\")";
_m.Put((Object)("app_title"),(Object)("Overtime Guard"));
//BA.debugLineNum = 72;BA.debugLine="m.Put(\"start\", \"Start\")";
_m.Put((Object)("start"),(Object)("Start"));
//BA.debugLineNum = 73;BA.debugLine="m.Put(\"end\", \"End\")";
_m.Put((Object)("end"),(Object)("End"));
//BA.debugLineNum = 74;BA.debugLine="m.Put(\"pause\", \"Pause\")";
_m.Put((Object)("pause"),(Object)("Pause"));
//BA.debugLineNum = 75;BA.debugLine="m.Put(\"end_pause\", \"End pause\")";
_m.Put((Object)("end_pause"),(Object)("End pause"));
//BA.debugLineNum = 76;BA.debugLine="m.Put(\"stats\", \"Stats\")";
_m.Put((Object)("stats"),(Object)("Stats"));
//BA.debugLineNum = 77;BA.debugLine="m.Put(\"config\", \"Config\")";
_m.Put((Object)("config"),(Object)("Config"));
//BA.debugLineNum = 78;BA.debugLine="m.Put(\"bg\", \"Bg\")";
_m.Put((Object)("bg"),(Object)("Bg"));
//BA.debugLineNum = 79;BA.debugLine="m.Put(\"statistics\", \"Statistics\")";
_m.Put((Object)("statistics"),(Object)("Statistics"));
//BA.debugLineNum = 80;BA.debugLine="m.Put(\"close\", \"Close\")";
_m.Put((Object)("close"),(Object)("Close"));
//BA.debugLineNum = 81;BA.debugLine="m.Put(\"work_start\", \"Work start\")";
_m.Put((Object)("work_start"),(Object)("Work start"));
//BA.debugLineNum = 82;BA.debugLine="m.Put(\"pause_start\", \"Pause start\")";
_m.Put((Object)("pause_start"),(Object)("Pause start"));
//BA.debugLineNum = 83;BA.debugLine="m.Put(\"pause_end\", \"Pause end\")";
_m.Put((Object)("pause_end"),(Object)("Pause end"));
//BA.debugLineNum = 84;BA.debugLine="m.Put(\"work_end\", \"Work end\")";
_m.Put((Object)("work_end"),(Object)("Work end"));
//BA.debugLineNum = 85;BA.debugLine="m.Put(\"set_config\", \"Set config\")";
_m.Put((Object)("set_config"),(Object)("Set config"));
//BA.debugLineNum = 86;BA.debugLine="m.Put(\"reset_config\", \"Reset config\")";
_m.Put((Object)("reset_config"),(Object)("Reset config"));
//BA.debugLineNum = 87;BA.debugLine="m.Put(\"clear_today\", \"Clear today\")";
_m.Put((Object)("clear_today"),(Object)("Clear today"));
//BA.debugLineNum = 88;BA.debugLine="m.Put(\"date\", \"Date\")";
_m.Put((Object)("date"),(Object)("Date"));
//BA.debugLineNum = 89;BA.debugLine="m.Put(\"work\", \"Work\")";
_m.Put((Object)("work"),(Object)("Work"));
//BA.debugLineNum = 90;BA.debugLine="m.Put(\"pause_col\", \"Pause\")";
_m.Put((Object)("pause_col"),(Object)("Pause"));
//BA.debugLineNum = 91;BA.debugLine="m.Put(\"overtime\", \"Overtime\")";
_m.Put((Object)("overtime"),(Object)("Overtime"));
//BA.debugLineNum = 92;BA.debugLine="m.Put(\"totals\", \"Totals\")";
_m.Put((Object)("totals"),(Object)("Totals"));
//BA.debugLineNum = 93;BA.debugLine="m.Put(\"manual_mode\", \"Manual mode\")";
_m.Put((Object)("manual_mode"),(Object)("Manual mode"));
//BA.debugLineNum = 94;BA.debugLine="m.Put(\"auto_recording\", \"Auto: recording...\")";
_m.Put((Object)("auto_recording"),(Object)("Auto: recording..."));
//BA.debugLineNum = 95;BA.debugLine="m.Put(\"auto_paused\", \"Auto: paused...\")";
_m.Put((Object)("auto_paused"),(Object)("Auto: paused..."));
//BA.debugLineNum = 96;BA.debugLine="m.Put(\"auto_stopped\", \"Auto: stopped...\")";
_m.Put((Object)("auto_stopped"),(Object)("Auto: stopped..."));
//BA.debugLineNum = 97;BA.debugLine="m.Put(\"use_hhmm\", \"Use HH:MM times.\")";
_m.Put((Object)("use_hhmm"),(Object)("Use HH:MM times."));
//BA.debugLineNum = 98;BA.debugLine="m.Put(\"times_order\", \"Times must be in order.\")";
_m.Put((Object)("times_order"),(Object)("Times must be in order."));
//BA.debugLineNum = 99;BA.debugLine="m.Put(\"work_exceed\", \"Configured work cannot exce";
_m.Put((Object)("work_exceed"),(Object)("Configured work cannot exceed 8 hours."));
//BA.debugLineNum = 100;BA.debugLine="m.Put(\"auto_enabled\", \"Automatic config enabled.\"";
_m.Put((Object)("auto_enabled"),(Object)("Automatic config enabled."));
//BA.debugLineNum = 101;BA.debugLine="m.Put(\"auto_disabled\", \"Automatic config disabled";
_m.Put((Object)("auto_disabled"),(Object)("Automatic config disabled."));
//BA.debugLineNum = 102;BA.debugLine="m.Put(\"no_day_to_clear\", \"No day to clear.\")";
_m.Put((Object)("no_day_to_clear"),(Object)("No day to clear."));
//BA.debugLineNum = 103;BA.debugLine="m.Put(\"clear_today_title\", \"Clear today\")";
_m.Put((Object)("clear_today_title"),(Object)("Clear today"));
//BA.debugLineNum = 104;BA.debugLine="m.Put(\"clear_today_confirm\", \"Clear all recorded";
_m.Put((Object)("clear_today_confirm"),(Object)("Clear all recorded data for"));
//BA.debugLineNum = 105;BA.debugLine="m.Put(\"clear_button\", \"Clear\")";
_m.Put((Object)("clear_button"),(Object)("Clear"));
//BA.debugLineNum = 106;BA.debugLine="m.Put(\"cancel\", \"Cancel\")";
_m.Put((Object)("cancel"),(Object)("Cancel"));
//BA.debugLineNum = 107;BA.debugLine="m.Put(\"today_cleared\", \"Today cleared.\")";
_m.Put((Object)("today_cleared"),(Object)("Today cleared."));
//BA.debugLineNum = 108;BA.debugLine="m.Put(\"limit_reached\", \"9-hour limit already reac";
_m.Put((Object)("limit_reached"),(Object)("9-hour limit already reached for this workday."));
//BA.debugLineNum = 109;BA.debugLine="Return m";
if (true) return _m;
//BA.debugLineNum = 110;BA.debugLine="End Sub";
return null;
}
public static anywheresoftware.b4a.objects.collections.Map _createfrenchmap(anywheresoftware.b4a.BA _ba) throws Exception{
anywheresoftware.b4a.objects.collections.Map _m = null;
//BA.debugLineNum = 156;BA.debugLine="Private Sub CreateFrenchMap As Map";
//BA.debugLineNum = 157;BA.debugLine="Dim m As Map";
_m = new anywheresoftware.b4a.objects.collections.Map();
//BA.debugLineNum = 158;BA.debugLine="m.Initialize";
_m.Initialize();
//BA.debugLineNum = 159;BA.debugLine="m.Put(\"app_title\", \"Overtime Guard\")";
_m.Put((Object)("app_title"),(Object)("Overtime Guard"));
//BA.debugLineNum = 160;BA.debugLine="m.Put(\"start\", \"Demarrer\")";
_m.Put((Object)("start"),(Object)("Demarrer"));
//BA.debugLineNum = 161;BA.debugLine="m.Put(\"end\", \"Arreter\")";
_m.Put((Object)("end"),(Object)("Arreter"));
//BA.debugLineNum = 162;BA.debugLine="m.Put(\"pause\", \"Pause\")";
_m.Put((Object)("pause"),(Object)("Pause"));
//BA.debugLineNum = 163;BA.debugLine="m.Put(\"end_pause\", \"Fin pause\")";
_m.Put((Object)("end_pause"),(Object)("Fin pause"));
//BA.debugLineNum = 164;BA.debugLine="m.Put(\"stats\", \"Stats\")";
_m.Put((Object)("stats"),(Object)("Stats"));
//BA.debugLineNum = 165;BA.debugLine="m.Put(\"config\", \"Config\")";
_m.Put((Object)("config"),(Object)("Config"));
//BA.debugLineNum = 166;BA.debugLine="m.Put(\"bg\", \"Fond\")";
_m.Put((Object)("bg"),(Object)("Fond"));
//BA.debugLineNum = 167;BA.debugLine="m.Put(\"statistics\", \"Statistiques\")";
_m.Put((Object)("statistics"),(Object)("Statistiques"));
//BA.debugLineNum = 168;BA.debugLine="m.Put(\"close\", \"Fermer\")";
_m.Put((Object)("close"),(Object)("Fermer"));
//BA.debugLineNum = 169;BA.debugLine="m.Put(\"work_start\", \"Debut travail\")";
_m.Put((Object)("work_start"),(Object)("Debut travail"));
//BA.debugLineNum = 170;BA.debugLine="m.Put(\"pause_start\", \"Debut pause\")";
_m.Put((Object)("pause_start"),(Object)("Debut pause"));
//BA.debugLineNum = 171;BA.debugLine="m.Put(\"pause_end\", \"Fin pause\")";
_m.Put((Object)("pause_end"),(Object)("Fin pause"));
//BA.debugLineNum = 172;BA.debugLine="m.Put(\"work_end\", \"Fin travail\")";
_m.Put((Object)("work_end"),(Object)("Fin travail"));
//BA.debugLineNum = 173;BA.debugLine="m.Put(\"set_config\", \"Activer config\")";
_m.Put((Object)("set_config"),(Object)("Activer config"));
//BA.debugLineNum = 174;BA.debugLine="m.Put(\"reset_config\", \"Reinit config\")";
_m.Put((Object)("reset_config"),(Object)("Reinit config"));
//BA.debugLineNum = 175;BA.debugLine="m.Put(\"clear_today\", \"Effacer aujourd'hui\")";
_m.Put((Object)("clear_today"),(Object)("Effacer aujourd'hui"));
//BA.debugLineNum = 176;BA.debugLine="m.Put(\"date\", \"Date\")";
_m.Put((Object)("date"),(Object)("Date"));
//BA.debugLineNum = 177;BA.debugLine="m.Put(\"work\", \"Travail\")";
_m.Put((Object)("work"),(Object)("Travail"));
//BA.debugLineNum = 178;BA.debugLine="m.Put(\"pause_col\", \"Pause\")";
_m.Put((Object)("pause_col"),(Object)("Pause"));
//BA.debugLineNum = 179;BA.debugLine="m.Put(\"overtime\", \"Heures sup.\")";
_m.Put((Object)("overtime"),(Object)("Heures sup."));
//BA.debugLineNum = 180;BA.debugLine="m.Put(\"totals\", \"Totaux\")";
_m.Put((Object)("totals"),(Object)("Totaux"));
//BA.debugLineNum = 181;BA.debugLine="m.Put(\"manual_mode\", \"Mode manuel\")";
_m.Put((Object)("manual_mode"),(Object)("Mode manuel"));
//BA.debugLineNum = 182;BA.debugLine="m.Put(\"auto_recording\", \"Auto: enregistrement...\"";
_m.Put((Object)("auto_recording"),(Object)("Auto: enregistrement..."));
//BA.debugLineNum = 183;BA.debugLine="m.Put(\"auto_paused\", \"Auto: pause...\")";
_m.Put((Object)("auto_paused"),(Object)("Auto: pause..."));
//BA.debugLineNum = 184;BA.debugLine="m.Put(\"auto_stopped\", \"Auto: arrete...\")";
_m.Put((Object)("auto_stopped"),(Object)("Auto: arrete..."));
//BA.debugLineNum = 185;BA.debugLine="m.Put(\"use_hhmm\", \"Utilisez des heures HH:MM.\")";
_m.Put((Object)("use_hhmm"),(Object)("Utilisez des heures HH:MM."));
//BA.debugLineNum = 186;BA.debugLine="m.Put(\"times_order\", \"Les heures doivent etre dan";
_m.Put((Object)("times_order"),(Object)("Les heures doivent etre dans l'ordre."));
//BA.debugLineNum = 187;BA.debugLine="m.Put(\"work_exceed\", \"Le travail configure ne peu";
_m.Put((Object)("work_exceed"),(Object)("Le travail configure ne peut pas depasser 8 heures."));
//BA.debugLineNum = 188;BA.debugLine="m.Put(\"auto_enabled\", \"Configuration automatique";
_m.Put((Object)("auto_enabled"),(Object)("Configuration automatique activee."));
//BA.debugLineNum = 189;BA.debugLine="m.Put(\"auto_disabled\", \"Configuration automatique";
_m.Put((Object)("auto_disabled"),(Object)("Configuration automatique desactivee."));
//BA.debugLineNum = 190;BA.debugLine="m.Put(\"no_day_to_clear\", \"Aucun jour a effacer.\")";
_m.Put((Object)("no_day_to_clear"),(Object)("Aucun jour a effacer."));
//BA.debugLineNum = 191;BA.debugLine="m.Put(\"clear_today_title\", \"Effacer aujourd'hui\")";
_m.Put((Object)("clear_today_title"),(Object)("Effacer aujourd'hui"));
//BA.debugLineNum = 192;BA.debugLine="m.Put(\"clear_today_confirm\", \"Effacer toutes les";
_m.Put((Object)("clear_today_confirm"),(Object)("Effacer toutes les donnees enregistrees pour"));
//BA.debugLineNum = 193;BA.debugLine="m.Put(\"clear_button\", \"Effacer\")";
_m.Put((Object)("clear_button"),(Object)("Effacer"));
//BA.debugLineNum = 194;BA.debugLine="m.Put(\"cancel\", \"Annuler\")";
_m.Put((Object)("cancel"),(Object)("Annuler"));
//BA.debugLineNum = 195;BA.debugLine="m.Put(\"today_cleared\", \"Journee effacee.\")";
_m.Put((Object)("today_cleared"),(Object)("Journee effacee."));
//BA.debugLineNum = 196;BA.debugLine="m.Put(\"limit_reached\", \"Limite de 9 heures deja a";
_m.Put((Object)("limit_reached"),(Object)("Limite de 9 heures deja atteinte pour cette journee."));
//BA.debugLineNum = 197;BA.debugLine="Return m";
if (true) return _m;
//BA.debugLineNum = 198;BA.debugLine="End Sub";
return null;
}
public static anywheresoftware.b4a.objects.collections.Map _creategermanmap(anywheresoftware.b4a.BA _ba) throws Exception{
anywheresoftware.b4a.objects.collections.Map _m = null;
//BA.debugLineNum = 200;BA.debugLine="Private Sub CreateGermanMap As Map";
//BA.debugLineNum = 201;BA.debugLine="Dim m As Map";
_m = new anywheresoftware.b4a.objects.collections.Map();
//BA.debugLineNum = 202;BA.debugLine="m.Initialize";
_m.Initialize();
//BA.debugLineNum = 203;BA.debugLine="m.Put(\"app_title\", \"Overtime Guard\")";
_m.Put((Object)("app_title"),(Object)("Overtime Guard"));
//BA.debugLineNum = 204;BA.debugLine="m.Put(\"start\", \"Start\")";
_m.Put((Object)("start"),(Object)("Start"));
//BA.debugLineNum = 205;BA.debugLine="m.Put(\"end\", \"Stopp\")";
_m.Put((Object)("end"),(Object)("Stopp"));
//BA.debugLineNum = 206;BA.debugLine="m.Put(\"pause\", \"Pause\")";
_m.Put((Object)("pause"),(Object)("Pause"));
//BA.debugLineNum = 207;BA.debugLine="m.Put(\"end_pause\", \"Pause beenden\")";
_m.Put((Object)("end_pause"),(Object)("Pause beenden"));
//BA.debugLineNum = 208;BA.debugLine="m.Put(\"stats\", \"Statistik\")";
_m.Put((Object)("stats"),(Object)("Statistik"));
//BA.debugLineNum = 209;BA.debugLine="m.Put(\"config\", \"Konfig\")";
_m.Put((Object)("config"),(Object)("Konfig"));
//BA.debugLineNum = 210;BA.debugLine="m.Put(\"bg\", \"Hint.\")";
_m.Put((Object)("bg"),(Object)("Hint."));
//BA.debugLineNum = 211;BA.debugLine="m.Put(\"statistics\", \"Statistik\")";
_m.Put((Object)("statistics"),(Object)("Statistik"));
//BA.debugLineNum = 212;BA.debugLine="m.Put(\"close\", \"Schliessen\")";
_m.Put((Object)("close"),(Object)("Schliessen"));
//BA.debugLineNum = 213;BA.debugLine="m.Put(\"work_start\", \"Arbeitsbeginn\")";
_m.Put((Object)("work_start"),(Object)("Arbeitsbeginn"));
//BA.debugLineNum = 214;BA.debugLine="m.Put(\"pause_start\", \"Pausenbeginn\")";
_m.Put((Object)("pause_start"),(Object)("Pausenbeginn"));
//BA.debugLineNum = 215;BA.debugLine="m.Put(\"pause_end\", \"Pausenende\")";
_m.Put((Object)("pause_end"),(Object)("Pausenende"));
//BA.debugLineNum = 216;BA.debugLine="m.Put(\"work_end\", \"Arbeitsende\")";
_m.Put((Object)("work_end"),(Object)("Arbeitsende"));
//BA.debugLineNum = 217;BA.debugLine="m.Put(\"set_config\", \"Konfig setzen\")";
_m.Put((Object)("set_config"),(Object)("Konfig setzen"));
//BA.debugLineNum = 218;BA.debugLine="m.Put(\"reset_config\", \"Konfig reset\")";
_m.Put((Object)("reset_config"),(Object)("Konfig reset"));
//BA.debugLineNum = 219;BA.debugLine="m.Put(\"clear_today\", \"Heute loschen\")";
_m.Put((Object)("clear_today"),(Object)("Heute loschen"));
//BA.debugLineNum = 220;BA.debugLine="m.Put(\"date\", \"Datum\")";
_m.Put((Object)("date"),(Object)("Datum"));
//BA.debugLineNum = 221;BA.debugLine="m.Put(\"work\", \"Arbeit\")";
_m.Put((Object)("work"),(Object)("Arbeit"));
//BA.debugLineNum = 222;BA.debugLine="m.Put(\"pause_col\", \"Pause\")";
_m.Put((Object)("pause_col"),(Object)("Pause"));
//BA.debugLineNum = 223;BA.debugLine="m.Put(\"overtime\", \"Uberzeit\")";
_m.Put((Object)("overtime"),(Object)("Uberzeit"));
//BA.debugLineNum = 224;BA.debugLine="m.Put(\"totals\", \"Summen\")";
_m.Put((Object)("totals"),(Object)("Summen"));
//BA.debugLineNum = 225;BA.debugLine="m.Put(\"manual_mode\", \"Manueller Modus\")";
_m.Put((Object)("manual_mode"),(Object)("Manueller Modus"));
//BA.debugLineNum = 226;BA.debugLine="m.Put(\"auto_recording\", \"Auto: Aufnahme...\")";
_m.Put((Object)("auto_recording"),(Object)("Auto: Aufnahme..."));
//BA.debugLineNum = 227;BA.debugLine="m.Put(\"auto_paused\", \"Auto: Pause...\")";
_m.Put((Object)("auto_paused"),(Object)("Auto: Pause..."));
//BA.debugLineNum = 228;BA.debugLine="m.Put(\"auto_stopped\", \"Auto: gestoppt...\")";
_m.Put((Object)("auto_stopped"),(Object)("Auto: gestoppt..."));
//BA.debugLineNum = 229;BA.debugLine="m.Put(\"use_hhmm\", \"Bitte HH:MM verwenden.\")";
_m.Put((Object)("use_hhmm"),(Object)("Bitte HH:MM verwenden."));
//BA.debugLineNum = 230;BA.debugLine="m.Put(\"times_order\", \"Die Zeiten muessen in Reihe";
_m.Put((Object)("times_order"),(Object)("Die Zeiten muessen in Reihenfolge sein."));
//BA.debugLineNum = 231;BA.debugLine="m.Put(\"work_exceed\", \"Die konfigurierte Arbeit da";
_m.Put((Object)("work_exceed"),(Object)("Die konfigurierte Arbeit darf 8 Stunden nicht uberschreiten."));
//BA.debugLineNum = 232;BA.debugLine="m.Put(\"auto_enabled\", \"Automatische Konfiguration";
_m.Put((Object)("auto_enabled"),(Object)("Automatische Konfiguration aktiviert."));
//BA.debugLineNum = 233;BA.debugLine="m.Put(\"auto_disabled\", \"Automatische Konfiguratio";
_m.Put((Object)("auto_disabled"),(Object)("Automatische Konfiguration deaktiviert."));
//BA.debugLineNum = 234;BA.debugLine="m.Put(\"no_day_to_clear\", \"Kein Tag zum Loschen.\")";
_m.Put((Object)("no_day_to_clear"),(Object)("Kein Tag zum Loschen."));
//BA.debugLineNum = 235;BA.debugLine="m.Put(\"clear_today_title\", \"Heute loschen\")";
_m.Put((Object)("clear_today_title"),(Object)("Heute loschen"));
//BA.debugLineNum = 236;BA.debugLine="m.Put(\"clear_today_confirm\", \"Alle erfassten Date";
_m.Put((Object)("clear_today_confirm"),(Object)("Alle erfassten Daten loschen fur"));
//BA.debugLineNum = 237;BA.debugLine="m.Put(\"clear_button\", \"Loschen\")";
_m.Put((Object)("clear_button"),(Object)("Loschen"));
//BA.debugLineNum = 238;BA.debugLine="m.Put(\"cancel\", \"Abbrechen\")";
_m.Put((Object)("cancel"),(Object)("Abbrechen"));
//BA.debugLineNum = 239;BA.debugLine="m.Put(\"today_cleared\", \"Heutige Daten geloscht.\")";
_m.Put((Object)("today_cleared"),(Object)("Heutige Daten geloscht."));
//BA.debugLineNum = 240;BA.debugLine="m.Put(\"limit_reached\", \"9-Stunden-Limit fur diese";
_m.Put((Object)("limit_reached"),(Object)("9-Stunden-Limit fur diesen Arbeitstag bereits erreicht."));
//BA.debugLineNum = 241;BA.debugLine="Return m";
if (true) return _m;
//BA.debugLineNum = 242;BA.debugLine="End Sub";
return null;
}
public static anywheresoftware.b4a.objects.collections.Map _createitalianmap(anywheresoftware.b4a.BA _ba) throws Exception{
anywheresoftware.b4a.objects.collections.Map _m = null;
//BA.debugLineNum = 112;BA.debugLine="Private Sub CreateItalianMap As Map";
//BA.debugLineNum = 113;BA.debugLine="Dim m As Map";
_m = new anywheresoftware.b4a.objects.collections.Map();
//BA.debugLineNum = 114;BA.debugLine="m.Initialize";
_m.Initialize();
//BA.debugLineNum = 115;BA.debugLine="m.Put(\"app_title\", \"Overtime Guard\")";
_m.Put((Object)("app_title"),(Object)("Overtime Guard"));
//BA.debugLineNum = 116;BA.debugLine="m.Put(\"start\", \"Start\")";
_m.Put((Object)("start"),(Object)("Start"));
//BA.debugLineNum = 117;BA.debugLine="m.Put(\"end\", \"End\")";
_m.Put((Object)("end"),(Object)("End"));
//BA.debugLineNum = 118;BA.debugLine="m.Put(\"pause\", \"Pausa\")";
_m.Put((Object)("pause"),(Object)("Pausa"));
//BA.debugLineNum = 119;BA.debugLine="m.Put(\"end_pause\", \"Fine pausa\")";
_m.Put((Object)("end_pause"),(Object)("Fine pausa"));
//BA.debugLineNum = 120;BA.debugLine="m.Put(\"stats\", \"Statistiche\")";
_m.Put((Object)("stats"),(Object)("Statistiche"));
//BA.debugLineNum = 121;BA.debugLine="m.Put(\"config\", \"Config\")";
_m.Put((Object)("config"),(Object)("Config"));
//BA.debugLineNum = 122;BA.debugLine="m.Put(\"bg\", \"Sfondo\")";
_m.Put((Object)("bg"),(Object)("Sfondo"));
//BA.debugLineNum = 123;BA.debugLine="m.Put(\"statistics\", \"Statistiche\")";
_m.Put((Object)("statistics"),(Object)("Statistiche"));
//BA.debugLineNum = 124;BA.debugLine="m.Put(\"close\", \"Chiudi\")";
_m.Put((Object)("close"),(Object)("Chiudi"));
//BA.debugLineNum = 125;BA.debugLine="m.Put(\"work_start\", \"Inizio lavoro\")";
_m.Put((Object)("work_start"),(Object)("Inizio lavoro"));
//BA.debugLineNum = 126;BA.debugLine="m.Put(\"pause_start\", \"Inizio pausa\")";
_m.Put((Object)("pause_start"),(Object)("Inizio pausa"));
//BA.debugLineNum = 127;BA.debugLine="m.Put(\"pause_end\", \"Fine pausa\")";
_m.Put((Object)("pause_end"),(Object)("Fine pausa"));
//BA.debugLineNum = 128;BA.debugLine="m.Put(\"work_end\", \"Fine lavoro\")";
_m.Put((Object)("work_end"),(Object)("Fine lavoro"));
//BA.debugLineNum = 129;BA.debugLine="m.Put(\"set_config\", \"Imposta config\")";
_m.Put((Object)("set_config"),(Object)("Imposta config"));
//BA.debugLineNum = 130;BA.debugLine="m.Put(\"reset_config\", \"Reset config\")";
_m.Put((Object)("reset_config"),(Object)("Reset config"));
//BA.debugLineNum = 131;BA.debugLine="m.Put(\"clear_today\", \"Azzera oggi\")";
_m.Put((Object)("clear_today"),(Object)("Azzera oggi"));
//BA.debugLineNum = 132;BA.debugLine="m.Put(\"date\", \"Data\")";
_m.Put((Object)("date"),(Object)("Data"));
//BA.debugLineNum = 133;BA.debugLine="m.Put(\"work\", \"Lavoro\")";
_m.Put((Object)("work"),(Object)("Lavoro"));
//BA.debugLineNum = 134;BA.debugLine="m.Put(\"pause_col\", \"Pausa\")";
_m.Put((Object)("pause_col"),(Object)("Pausa"));
//BA.debugLineNum = 135;BA.debugLine="m.Put(\"overtime\", \"Straord.\")";
_m.Put((Object)("overtime"),(Object)("Straord."));
//BA.debugLineNum = 136;BA.debugLine="m.Put(\"totals\", \"Totali\")";
_m.Put((Object)("totals"),(Object)("Totali"));
//BA.debugLineNum = 137;BA.debugLine="m.Put(\"manual_mode\", \"Modalita manuale\")";
_m.Put((Object)("manual_mode"),(Object)("Modalita manuale"));
//BA.debugLineNum = 138;BA.debugLine="m.Put(\"auto_recording\", \"Auto: registrazione...\")";
_m.Put((Object)("auto_recording"),(Object)("Auto: registrazione..."));
//BA.debugLineNum = 139;BA.debugLine="m.Put(\"auto_paused\", \"Auto: pausa...\")";
_m.Put((Object)("auto_paused"),(Object)("Auto: pausa..."));
//BA.debugLineNum = 140;BA.debugLine="m.Put(\"auto_stopped\", \"Auto: fermo...\")";
_m.Put((Object)("auto_stopped"),(Object)("Auto: fermo..."));
//BA.debugLineNum = 141;BA.debugLine="m.Put(\"use_hhmm\", \"Usa orari HH:MM.\")";
_m.Put((Object)("use_hhmm"),(Object)("Usa orari HH:MM."));
//BA.debugLineNum = 142;BA.debugLine="m.Put(\"times_order\", \"Gli orari devono essere in";
_m.Put((Object)("times_order"),(Object)("Gli orari devono essere in ordine."));
//BA.debugLineNum = 143;BA.debugLine="m.Put(\"work_exceed\", \"Il lavoro configurato non p";
_m.Put((Object)("work_exceed"),(Object)("Il lavoro configurato non puo superare 8 ore."));
//BA.debugLineNum = 144;BA.debugLine="m.Put(\"auto_enabled\", \"Configurazione automatica";
_m.Put((Object)("auto_enabled"),(Object)("Configurazione automatica attiva."));
//BA.debugLineNum = 145;BA.debugLine="m.Put(\"auto_disabled\", \"Configurazione automatica";
_m.Put((Object)("auto_disabled"),(Object)("Configurazione automatica disattivata."));
//BA.debugLineNum = 146;BA.debugLine="m.Put(\"no_day_to_clear\", \"Nessun giorno da azzera";
_m.Put((Object)("no_day_to_clear"),(Object)("Nessun giorno da azzerare."));
//BA.debugLineNum = 147;BA.debugLine="m.Put(\"clear_today_title\", \"Azzera oggi\")";
_m.Put((Object)("clear_today_title"),(Object)("Azzera oggi"));
//BA.debugLineNum = 148;BA.debugLine="m.Put(\"clear_today_confirm\", \"Cancellare tutti i";
_m.Put((Object)("clear_today_confirm"),(Object)("Cancellare tutti i dati registrati per"));
//BA.debugLineNum = 149;BA.debugLine="m.Put(\"clear_button\", \"Azzera\")";
_m.Put((Object)("clear_button"),(Object)("Azzera"));
//BA.debugLineNum = 150;BA.debugLine="m.Put(\"cancel\", \"Annulla\")";
_m.Put((Object)("cancel"),(Object)("Annulla"));
//BA.debugLineNum = 151;BA.debugLine="m.Put(\"today_cleared\", \"Giornata azzerata.\")";
_m.Put((Object)("today_cleared"),(Object)("Giornata azzerata."));
//BA.debugLineNum = 152;BA.debugLine="m.Put(\"limit_reached\", \"Limite di 9 ore gia raggi";
_m.Put((Object)("limit_reached"),(Object)("Limite di 9 ore gia raggiunto per questa giornata."));
//BA.debugLineNum = 153;BA.debugLine="Return m";
if (true) return _m;
//BA.debugLineNum = 154;BA.debugLine="End Sub";
return null;
}
public static anywheresoftware.b4a.objects.collections.Map _createspanishmap(anywheresoftware.b4a.BA _ba) throws Exception{
anywheresoftware.b4a.objects.collections.Map _m = null;
//BA.debugLineNum = 244;BA.debugLine="Private Sub CreateSpanishMap As Map";
//BA.debugLineNum = 245;BA.debugLine="Dim m As Map";
_m = new anywheresoftware.b4a.objects.collections.Map();
//BA.debugLineNum = 246;BA.debugLine="m.Initialize";
_m.Initialize();
//BA.debugLineNum = 247;BA.debugLine="m.Put(\"app_title\", \"Overtime Guard\")";
_m.Put((Object)("app_title"),(Object)("Overtime Guard"));
//BA.debugLineNum = 248;BA.debugLine="m.Put(\"start\", \"Iniciar\")";
_m.Put((Object)("start"),(Object)("Iniciar"));
//BA.debugLineNum = 249;BA.debugLine="m.Put(\"end\", \"Detener\")";
_m.Put((Object)("end"),(Object)("Detener"));
//BA.debugLineNum = 250;BA.debugLine="m.Put(\"pause\", \"Pausa\")";
_m.Put((Object)("pause"),(Object)("Pausa"));
//BA.debugLineNum = 251;BA.debugLine="m.Put(\"end_pause\", \"Fin pausa\")";
_m.Put((Object)("end_pause"),(Object)("Fin pausa"));
//BA.debugLineNum = 252;BA.debugLine="m.Put(\"stats\", \"Stats\")";
_m.Put((Object)("stats"),(Object)("Stats"));
//BA.debugLineNum = 253;BA.debugLine="m.Put(\"config\", \"Config\")";
_m.Put((Object)("config"),(Object)("Config"));
//BA.debugLineNum = 254;BA.debugLine="m.Put(\"bg\", \"Fondo\")";
_m.Put((Object)("bg"),(Object)("Fondo"));
//BA.debugLineNum = 255;BA.debugLine="m.Put(\"statistics\", \"Estadisticas\")";
_m.Put((Object)("statistics"),(Object)("Estadisticas"));
//BA.debugLineNum = 256;BA.debugLine="m.Put(\"close\", \"Cerrar\")";
_m.Put((Object)("close"),(Object)("Cerrar"));
//BA.debugLineNum = 257;BA.debugLine="m.Put(\"work_start\", \"Inicio trabajo\")";
_m.Put((Object)("work_start"),(Object)("Inicio trabajo"));
//BA.debugLineNum = 258;BA.debugLine="m.Put(\"pause_start\", \"Inicio pausa\")";
_m.Put((Object)("pause_start"),(Object)("Inicio pausa"));
//BA.debugLineNum = 259;BA.debugLine="m.Put(\"pause_end\", \"Fin pausa\")";
_m.Put((Object)("pause_end"),(Object)("Fin pausa"));
//BA.debugLineNum = 260;BA.debugLine="m.Put(\"work_end\", \"Fin trabajo\")";
_m.Put((Object)("work_end"),(Object)("Fin trabajo"));
//BA.debugLineNum = 261;BA.debugLine="m.Put(\"set_config\", \"Activar config\")";
_m.Put((Object)("set_config"),(Object)("Activar config"));
//BA.debugLineNum = 262;BA.debugLine="m.Put(\"reset_config\", \"Reset config\")";
_m.Put((Object)("reset_config"),(Object)("Reset config"));
//BA.debugLineNum = 263;BA.debugLine="m.Put(\"clear_today\", \"Borrar hoy\")";
_m.Put((Object)("clear_today"),(Object)("Borrar hoy"));
//BA.debugLineNum = 264;BA.debugLine="m.Put(\"date\", \"Fecha\")";
_m.Put((Object)("date"),(Object)("Fecha"));
//BA.debugLineNum = 265;BA.debugLine="m.Put(\"work\", \"Trabajo\")";
_m.Put((Object)("work"),(Object)("Trabajo"));
//BA.debugLineNum = 266;BA.debugLine="m.Put(\"pause_col\", \"Pausa\")";
_m.Put((Object)("pause_col"),(Object)("Pausa"));
//BA.debugLineNum = 267;BA.debugLine="m.Put(\"overtime\", \"Extra\")";
_m.Put((Object)("overtime"),(Object)("Extra"));
//BA.debugLineNum = 268;BA.debugLine="m.Put(\"totals\", \"Totales\")";
_m.Put((Object)("totals"),(Object)("Totales"));
//BA.debugLineNum = 269;BA.debugLine="m.Put(\"manual_mode\", \"Modo manual\")";
_m.Put((Object)("manual_mode"),(Object)("Modo manual"));
//BA.debugLineNum = 270;BA.debugLine="m.Put(\"auto_recording\", \"Auto: grabando...\")";
_m.Put((Object)("auto_recording"),(Object)("Auto: grabando..."));
//BA.debugLineNum = 271;BA.debugLine="m.Put(\"auto_paused\", \"Auto: pausa...\")";
_m.Put((Object)("auto_paused"),(Object)("Auto: pausa..."));
//BA.debugLineNum = 272;BA.debugLine="m.Put(\"auto_stopped\", \"Auto: detenido...\")";
_m.Put((Object)("auto_stopped"),(Object)("Auto: detenido..."));
//BA.debugLineNum = 273;BA.debugLine="m.Put(\"use_hhmm\", \"Usa horas HH:MM.\")";
_m.Put((Object)("use_hhmm"),(Object)("Usa horas HH:MM."));
//BA.debugLineNum = 274;BA.debugLine="m.Put(\"times_order\", \"Las horas deben estar en or";
_m.Put((Object)("times_order"),(Object)("Las horas deben estar en orden."));
//BA.debugLineNum = 275;BA.debugLine="m.Put(\"work_exceed\", \"El trabajo configurado no p";
_m.Put((Object)("work_exceed"),(Object)("El trabajo configurado no puede superar 8 horas."));
//BA.debugLineNum = 276;BA.debugLine="m.Put(\"auto_enabled\", \"Configuracion automatica a";
_m.Put((Object)("auto_enabled"),(Object)("Configuracion automatica activada."));
//BA.debugLineNum = 277;BA.debugLine="m.Put(\"auto_disabled\", \"Configuracion automatica";
_m.Put((Object)("auto_disabled"),(Object)("Configuracion automatica desactivada."));
//BA.debugLineNum = 278;BA.debugLine="m.Put(\"no_day_to_clear\", \"No hay dia para borrar.";
_m.Put((Object)("no_day_to_clear"),(Object)("No hay dia para borrar."));
//BA.debugLineNum = 279;BA.debugLine="m.Put(\"clear_today_title\", \"Borrar hoy\")";
_m.Put((Object)("clear_today_title"),(Object)("Borrar hoy"));
//BA.debugLineNum = 280;BA.debugLine="m.Put(\"clear_today_confirm\", \"Borrar todos los da";
_m.Put((Object)("clear_today_confirm"),(Object)("Borrar todos los datos registrados de"));
//BA.debugLineNum = 281;BA.debugLine="m.Put(\"clear_button\", \"Borrar\")";
_m.Put((Object)("clear_button"),(Object)("Borrar"));
//BA.debugLineNum = 282;BA.debugLine="m.Put(\"cancel\", \"Cancelar\")";
_m.Put((Object)("cancel"),(Object)("Cancelar"));
//BA.debugLineNum = 283;BA.debugLine="m.Put(\"today_cleared\", \"Dia borrado.\")";
_m.Put((Object)("today_cleared"),(Object)("Dia borrado."));
//BA.debugLineNum = 284;BA.debugLine="m.Put(\"limit_reached\", \"Limite de 9 horas ya alca";
_m.Put((Object)("limit_reached"),(Object)("Limite de 9 horas ya alcanzado para esta jornada."));
//BA.debugLineNum = 285;BA.debugLine="Return m";
if (true) return _m;
//BA.debugLineNum = 286;BA.debugLine="End Sub";
return null;
}
public static String _currentlanguagecode(anywheresoftware.b4a.BA _ba) throws Exception{
//BA.debugLineNum = 29;BA.debugLine="Public Sub CurrentLanguageCode As String";
//BA.debugLineNum = 30;BA.debugLine="If initialized = False Then Initialize";
if (_initialized==anywheresoftware.b4a.keywords.Common.False) {
_initialize(_ba);};
//BA.debugLineNum = 31;BA.debugLine="Return currentLanguage";
if (true) return _currentlanguage;
//BA.debugLineNum = 32;BA.debugLine="End Sub";
return "";
}
public static String _detectdevicelanguage(anywheresoftware.b4a.BA _ba) throws Exception{
anywheresoftware.b4j.object.JavaObject _context = null;
anywheresoftware.b4j.object.JavaObject _resources = null;
anywheresoftware.b4j.object.JavaObject _configuration = null;
anywheresoftware.b4j.object.JavaObject _locale = null;
String _code = "";
anywheresoftware.b4j.object.JavaObject _jo = null;
//BA.debugLineNum = 54;BA.debugLine="Private Sub DetectDeviceLanguage As String";
//BA.debugLineNum = 55;BA.debugLine="Dim context As JavaObject";
_context = new anywheresoftware.b4j.object.JavaObject();
//BA.debugLineNum = 56;BA.debugLine="context.InitializeContext";
_context.InitializeContext((_ba.processBA == null ? _ba : _ba.processBA));
//BA.debugLineNum = 57;BA.debugLine="Dim resources As JavaObject = context.RunMethod(\"";
_resources = new anywheresoftware.b4j.object.JavaObject();
_resources = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_context.RunMethod("getResources",(Object[])(anywheresoftware.b4a.keywords.Common.Null))));
//BA.debugLineNum = 58;BA.debugLine="Dim configuration As JavaObject = resources.RunMe";
_configuration = new anywheresoftware.b4j.object.JavaObject();
_configuration = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_resources.RunMethod("getConfiguration",(Object[])(anywheresoftware.b4a.keywords.Common.Null))));
//BA.debugLineNum = 59;BA.debugLine="Dim locale As JavaObject = configuration.GetField";
_locale = new anywheresoftware.b4j.object.JavaObject();
_locale = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_configuration.GetField("locale")));
//BA.debugLineNum = 60;BA.debugLine="Dim code As String = locale.RunMethod(\"getLanguag";
_code = BA.ObjectToString(_locale.RunMethod("getLanguage",(Object[])(anywheresoftware.b4a.keywords.Common.Null)));
//BA.debugLineNum = 61;BA.debugLine="If code <> \"\" Then Return code";
if ((_code).equals("") == false) {
if (true) return _code;};
//BA.debugLineNum = 62;BA.debugLine="Dim jo As JavaObject";
_jo = new anywheresoftware.b4j.object.JavaObject();
//BA.debugLineNum = 63;BA.debugLine="jo.InitializeStatic(\"java.util.Locale\")";
_jo.InitializeStatic("java.util.Locale");
//BA.debugLineNum = 64;BA.debugLine="locale = jo.RunMethod(\"getDefault\", Null)";
_locale = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_jo.RunMethod("getDefault",(Object[])(anywheresoftware.b4a.keywords.Common.Null))));
//BA.debugLineNum = 65;BA.debugLine="Return locale.RunMethod(\"getLanguage\", Null)";
if (true) return BA.ObjectToString(_locale.RunMethod("getLanguage",(Object[])(anywheresoftware.b4a.keywords.Common.Null)));
//BA.debugLineNum = 66;BA.debugLine="End Sub";
return "";
}
public static String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{
//BA.debugLineNum = 8;BA.debugLine="Public Sub Initialize";
//BA.debugLineNum = 9;BA.debugLine="If initialized Then Return";
if (_initialized) {
if (true) return "";};
//BA.debugLineNum = 10;BA.debugLine="translations.Initialize";
_translations.Initialize();
//BA.debugLineNum = 11;BA.debugLine="LoadLanguage(\"en\", CreateEnglishMap)";
_loadlanguage(_ba,"en",_createenglishmap(_ba));
//BA.debugLineNum = 12;BA.debugLine="LoadLanguage(\"it\", CreateItalianMap)";
_loadlanguage(_ba,"it",_createitalianmap(_ba));
//BA.debugLineNum = 13;BA.debugLine="LoadLanguage(\"fr\", CreateFrenchMap)";
_loadlanguage(_ba,"fr",_createfrenchmap(_ba));
//BA.debugLineNum = 14;BA.debugLine="LoadLanguage(\"de\", CreateGermanMap)";
_loadlanguage(_ba,"de",_creategermanmap(_ba));
//BA.debugLineNum = 15;BA.debugLine="LoadLanguage(\"es\", CreateSpanishMap)";
_loadlanguage(_ba,"es",_createspanishmap(_ba));
//BA.debugLineNum = 16;BA.debugLine="currentLanguage = NormalizeLanguage(DetectDeviceL";
_currentlanguage = _normalizelanguage(_ba,_detectdevicelanguage(_ba));
//BA.debugLineNum = 17;BA.debugLine="initialized = True";
_initialized = anywheresoftware.b4a.keywords.Common.True;
//BA.debugLineNum = 18;BA.debugLine="End Sub";
return "";
}
public static String _loadlanguage(anywheresoftware.b4a.BA _ba,String _code,anywheresoftware.b4a.objects.collections.Map _values) throws Exception{
//BA.debugLineNum = 34;BA.debugLine="Private Sub LoadLanguage(Code As String, Values As";
//BA.debugLineNum = 35;BA.debugLine="translations.Put(Code, Values)";
_translations.Put((Object)(_code),(Object)(_values.getObject()));
//BA.debugLineNum = 36;BA.debugLine="End Sub";
return "";
}
public static String _normalizelanguage(anywheresoftware.b4a.BA _ba,String _code) throws Exception{
//BA.debugLineNum = 38;BA.debugLine="Private Sub NormalizeLanguage(Code As String) As S";
//BA.debugLineNum = 39;BA.debugLine="Code = Code.ToLowerCase";
_code = _code.toLowerCase();
//BA.debugLineNum = 40;BA.debugLine="Select True";
switch (BA.switchObjectToInt(anywheresoftware.b4a.keywords.Common.True,_code.startsWith("it"),_code.startsWith("fr"),_code.startsWith("de"),_code.startsWith("es"))) {
case 0: {
//BA.debugLineNum = 42;BA.debugLine="Return \"it\"";
if (true) return "it";
break; }
case 1: {
//BA.debugLineNum = 44;BA.debugLine="Return \"fr\"";
if (true) return "fr";
break; }
case 2: {
//BA.debugLineNum = 46;BA.debugLine="Return \"de\"";
if (true) return "de";
break; }
case 3: {
//BA.debugLineNum = 48;BA.debugLine="Return \"es\"";
if (true) return "es";
break; }
default: {
//BA.debugLineNum = 50;BA.debugLine="Return \"en\"";
if (true) return "en";
break; }
}
;
//BA.debugLineNum = 52;BA.debugLine="End Sub";
return "";
}
public static String _process_globals() throws Exception{
//BA.debugLineNum = 2;BA.debugLine="Sub Process_Globals";
//BA.debugLineNum = 3;BA.debugLine="Private translations As Map";
_translations = new anywheresoftware.b4a.objects.collections.Map();
//BA.debugLineNum = 4;BA.debugLine="Private currentLanguage As String";
_currentlanguage = "";
//BA.debugLineNum = 5;BA.debugLine="Private initialized As Boolean";
_initialized = false;
//BA.debugLineNum = 6;BA.debugLine="End Sub";
return "";
}
public static String _t(anywheresoftware.b4a.BA _ba,String _key) throws Exception{
anywheresoftware.b4a.objects.collections.Map _languagemap = null;
anywheresoftware.b4a.objects.collections.Map _fallback = null;
//BA.debugLineNum = 20;BA.debugLine="Public Sub T(Key As String) As String";
//BA.debugLineNum = 21;BA.debugLine="If initialized = False Then Initialize";
if (_initialized==anywheresoftware.b4a.keywords.Common.False) {
_initialize(_ba);};
//BA.debugLineNum = 22;BA.debugLine="Dim languageMap As Map = translations.Get(current";
_languagemap = new anywheresoftware.b4a.objects.collections.Map();
_languagemap = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_translations.Get((Object)(_currentlanguage))));
//BA.debugLineNum = 23;BA.debugLine="If languageMap.IsInitialized And languageMap.Cont";
if (_languagemap.IsInitialized() && _languagemap.ContainsKey((Object)(_key))) {
if (true) return BA.ObjectToString(_languagemap.Get((Object)(_key)));};
//BA.debugLineNum = 24;BA.debugLine="Dim fallback As Map = translations.Get(\"en\")";
_fallback = new anywheresoftware.b4a.objects.collections.Map();
_fallback = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_translations.Get((Object)("en"))));
//BA.debugLineNum = 25;BA.debugLine="If fallback.IsInitialized And fallback.ContainsKe";
if (_fallback.IsInitialized() && _fallback.ContainsKey((Object)(_key))) {
if (true) return BA.ObjectToString(_fallback.Get((Object)(_key)));};
//BA.debugLineNum = 26;BA.debugLine="Return Key";
if (true) return _key;
//BA.debugLineNum = 27;BA.debugLine="End Sub";
return "";
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -14,7 +14,7 @@ public class starter extends android.app.Service{
android.content.Intent in = new android.content.Intent(context, starter.class);
if (intent != null)
in.putExtra("b4a_internal_intent", intent);
ServiceHelper.StarterHelper.startServiceFromReceiver (context, in, true, anywheresoftware.b4a.ShellBA.class);
ServiceHelper.StarterHelper.startServiceFromReceiver (context, in, true, BA.class);
}
}
@@ -29,7 +29,7 @@ public class starter extends android.app.Service{
super.onCreate();
mostCurrent = this;
if (processBA == null) {
processBA = new anywheresoftware.b4a.ShellBA(this, null, null, "b4a.example", "b4a.example.starter");
processBA = new BA(this, null, null, "b4a.example", "b4a.example.starter");
if (BA.isShellModeRuntimeCheck(processBA)) {
processBA.raiseEvent2(null, true, "SHELL", false);
}
@@ -135,63 +135,41 @@ public class starter extends android.app.Service{
@Override
public android.os.IBinder onBind(android.content.Intent intent) {
return null;
}
public anywheresoftware.b4a.keywords.Common __c = null;
}public anywheresoftware.b4a.keywords.Common __c = null;
public b4a.example.main _main = null;
public b4a.example.localization _localization = null;
public static boolean _application_error(anywheresoftware.b4a.objects.B4AException _error,String _stacktrace) throws Exception{
RDebugUtils.currentModule="starter";
if (Debug.shouldDelegate(processBA, "application_error", false))
{return ((Boolean) Debug.delegate(processBA, "application_error", new Object[] {_error,_stacktrace}));}
RDebugUtils.currentLine=1179648;
//BA.debugLineNum = 1179648;BA.debugLine="Sub Application_Error (Error As Exception, StackTr";
RDebugUtils.currentLine=1179649;
//BA.debugLineNum = 1179649;BA.debugLine="Return True";
//BA.debugLineNum = 27;BA.debugLine="Sub Application_Error (Error As Exception, StackTr";
//BA.debugLineNum = 28;BA.debugLine="Return True";
if (true) return anywheresoftware.b4a.keywords.Common.True;
RDebugUtils.currentLine=1179650;
//BA.debugLineNum = 1179650;BA.debugLine="End Sub";
//BA.debugLineNum = 29;BA.debugLine="End Sub";
return false;
}
public static String _process_globals() throws Exception{
//BA.debugLineNum = 6;BA.debugLine="Sub Process_Globals";
//BA.debugLineNum = 10;BA.debugLine="End Sub";
return "";
}
public static String _service_create() throws Exception{
RDebugUtils.currentModule="starter";
if (Debug.shouldDelegate(processBA, "service_create", false))
{return ((String) Debug.delegate(processBA, "service_create", null));}
RDebugUtils.currentLine=983040;
//BA.debugLineNum = 983040;BA.debugLine="Sub Service_Create";
RDebugUtils.currentLine=983044;
//BA.debugLineNum = 983044;BA.debugLine="End Sub";
//BA.debugLineNum = 12;BA.debugLine="Sub Service_Create";
//BA.debugLineNum = 16;BA.debugLine="End Sub";
return "";
}
public static String _service_destroy() throws Exception{
RDebugUtils.currentModule="starter";
if (Debug.shouldDelegate(processBA, "service_destroy", false))
{return ((String) Debug.delegate(processBA, "service_destroy", null));}
RDebugUtils.currentLine=1245184;
//BA.debugLineNum = 1245184;BA.debugLine="Sub Service_Destroy";
RDebugUtils.currentLine=1245186;
//BA.debugLineNum = 1245186;BA.debugLine="End Sub";
//BA.debugLineNum = 31;BA.debugLine="Sub Service_Destroy";
//BA.debugLineNum = 33;BA.debugLine="End Sub";
return "";
}
public static String _service_start(anywheresoftware.b4a.objects.IntentWrapper _startingintent) throws Exception{
RDebugUtils.currentModule="starter";
if (Debug.shouldDelegate(processBA, "service_start", false))
{return ((String) Debug.delegate(processBA, "service_start", new Object[] {_startingintent}));}
RDebugUtils.currentLine=1048576;
//BA.debugLineNum = 1048576;BA.debugLine="Sub Service_Start (StartingIntent As Intent)";
RDebugUtils.currentLine=1048577;
//BA.debugLineNum = 1048577;BA.debugLine="Service.StopAutomaticForeground 'Starter service";
//BA.debugLineNum = 18;BA.debugLine="Sub Service_Start (StartingIntent As Intent)";
//BA.debugLineNum = 19;BA.debugLine="Service.StopAutomaticForeground 'Starter service";
mostCurrent._service.StopAutomaticForeground();
RDebugUtils.currentLine=1048578;
//BA.debugLineNum = 1048578;BA.debugLine="End Sub";
//BA.debugLineNum = 20;BA.debugLine="End Sub";
return "";
}
public static String _service_taskremoved() throws Exception{
RDebugUtils.currentModule="starter";
if (Debug.shouldDelegate(processBA, "service_taskremoved", false))
{return ((String) Debug.delegate(processBA, "service_taskremoved", null));}
RDebugUtils.currentLine=1114112;
//BA.debugLineNum = 1114112;BA.debugLine="Sub Service_TaskRemoved";
RDebugUtils.currentLine=1114114;
//BA.debugLineNum = 1114114;BA.debugLine="End Sub";
//BA.debugLineNum = 22;BA.debugLine="Sub Service_TaskRemoved";
//BA.debugLineNum = 24;BA.debugLine="End Sub";
return "";
}
}
}