diff --git a/Objects/bin/classes/b4a/example/main.class b/Objects/bin/classes/b4a/example/main.class index 26a4bea..71aad84 100644 Binary files a/Objects/bin/classes/b4a/example/main.class and b/Objects/bin/classes/b4a/example/main.class differ diff --git a/Objects/dexed/b4a/example/main.dex b/Objects/dexed/b4a/example/main.dex index e7148e8..a03a6a6 100644 Binary files a/Objects/dexed/b4a/example/main.dex and b/Objects/dexed/b4a/example/main.dex differ diff --git a/Objects/src/b4a/example/main.java b/Objects/src/b4a/example/main.java index 43788d1..746c7ea 100644 --- a/Objects/src/b4a/example/main.java +++ b/Objects/src/b4a/example/main.java @@ -356,13 +356,17 @@ public anywheresoftware.b4a.objects.ButtonWrapper _btnconfigclose = null; public anywheresoftware.b4a.objects.ButtonWrapper _btnconfigsave = null; public anywheresoftware.b4a.objects.ButtonWrapper _btnconfigreset = null; public anywheresoftware.b4a.objects.ButtonWrapper _btncleartoday = null; +public anywheresoftware.b4a.objects.ButtonWrapper _btnhelpopen = null; +public anywheresoftware.b4a.objects.ButtonWrapper _btnhelpclose = null; public anywheresoftware.b4a.objects.LabelWrapper _btnbackground = null; public anywheresoftware.b4a.objects.LabelWrapper _lblelapsedtime = null; public anywheresoftware.b4a.objects.LabelWrapper _lblautostatus = null; public anywheresoftware.b4a.objects.PanelWrapper _pnlclock = null; public anywheresoftware.b4a.objects.PanelWrapper _pnlstats = null; public anywheresoftware.b4a.objects.PanelWrapper _pnlconfig = null; +public anywheresoftware.b4a.objects.PanelWrapper _pnlhelp = null; public anywheresoftware.b4a.objects.ScrollViewWrapper _svstats = null; +public anywheresoftware.b4a.objects.ScrollViewWrapper _svhelp = null; public anywheresoftware.b4a.objects.EditTextWrapper _txtcfgstart = null; public anywheresoftware.b4a.objects.EditTextWrapper _txtcfgpausestart = null; public anywheresoftware.b4a.objects.EditTextWrapper _txtcfgpauseend = null; @@ -392,200 +396,202 @@ public static boolean isAnyActivityVisible() { vis = vis | (main.mostCurrent != null); return vis;} public static String _activity_create(boolean _firsttime) throws Exception{ - //BA.debugLineNum = 68;BA.debugLine="Sub Activity_Create(FirstTime As Boolean)"; - //BA.debugLineNum = 69;BA.debugLine="Localization.Initialize"; + //BA.debugLineNum = 72;BA.debugLine="Sub Activity_Create(FirstTime As Boolean)"; + //BA.debugLineNum = 73;BA.debugLine="Localization.Initialize"; mostCurrent._localization._initialize /*String*/ (mostCurrent.activityBA); - //BA.debugLineNum = 70;BA.debugLine="Activity.LoadLayout(\"Main_Layout\")"; + //BA.debugLineNum = 74;BA.debugLine="Activity.LoadLayout(\"Main_Layout\")"; mostCurrent._activity.LoadLayout("Main_Layout",mostCurrent.activityBA); - //BA.debugLineNum = 71;BA.debugLine="Activity.Title = Localization.T(\"app_title\")"; + //BA.debugLineNum = 75;BA.debugLine="Activity.Title = Localization.T(\"app_title\")"; mostCurrent._activity.setTitle(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"app_title"))); - //BA.debugLineNum = 72;BA.debugLine="Log(\"Layout loaded successfully.\")"; + //BA.debugLineNum = 76;BA.debugLine="Log(\"Layout loaded successfully.\")"; anywheresoftware.b4a.keywords.Common.LogImpl("131076","Layout loaded successfully.",0); - //BA.debugLineNum = 73;BA.debugLine="ResizeClockPanel"; + //BA.debugLineNum = 77;BA.debugLine="ResizeClockPanel"; _resizeclockpanel(); - //BA.debugLineNum = 75;BA.debugLine="FirstWorkLimitMs = 4 * DateTime.TicksPerHour"; + //BA.debugLineNum = 79;BA.debugLine="FirstWorkLimitMs = 4 * DateTime.TicksPerHour"; _firstworklimitms = (long) (4*anywheresoftware.b4a.keywords.Common.DateTime.TicksPerHour); - //BA.debugLineNum = 76;BA.debugLine="WorkLimitMs = 8 * DateTime.TicksPerHour"; + //BA.debugLineNum = 80;BA.debugLine="WorkLimitMs = 8 * DateTime.TicksPerHour"; _worklimitms = (long) (8*anywheresoftware.b4a.keywords.Common.DateTime.TicksPerHour); - //BA.debugLineNum = 77;BA.debugLine="OvertimeLimitMs = DateTime.TicksPerHour"; + //BA.debugLineNum = 81;BA.debugLine="OvertimeLimitMs = DateTime.TicksPerHour"; _overtimelimitms = anywheresoftware.b4a.keywords.Common.DateTime.TicksPerHour; - //BA.debugLineNum = 78;BA.debugLine="MaxProductiveMs = WorkLimitMs + OvertimeLimitMs"; + //BA.debugLineNum = 82;BA.debugLine="MaxProductiveMs = WorkLimitMs + OvertimeLimitMs"; _maxproductivems = (long) (_worklimitms+_overtimelimitms); - //BA.debugLineNum = 79;BA.debugLine="WorkMorningColor = Colors.RGB(0, 190, 255)"; + //BA.debugLineNum = 83;BA.debugLine="WorkMorningColor = Colors.RGB(0, 190, 255)"; _workmorningcolor = anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (0),(int) (190),(int) (255)); - //BA.debugLineNum = 80;BA.debugLine="StatsFileName = \"work_segments.txt\""; + //BA.debugLineNum = 84;BA.debugLine="StatsFileName = \"work_segments.txt\""; _statsfilename = "work_segments.txt"; - //BA.debugLineNum = 81;BA.debugLine="StateFileName = \"active_state.txt\""; + //BA.debugLineNum = 85;BA.debugLine="StateFileName = \"active_state.txt\""; _statefilename = "active_state.txt"; - //BA.debugLineNum = 82;BA.debugLine="AutoConfigFileName = \"auto_config.txt\""; + //BA.debugLineNum = 86;BA.debugLine="AutoConfigFileName = \"auto_config.txt\""; _autoconfigfilename = "auto_config.txt"; - //BA.debugLineNum = 83;BA.debugLine="MaxStoredDays = 62"; + //BA.debugLineNum = 87;BA.debugLine="MaxStoredDays = 62"; _maxstoreddays = (int) (62); - //BA.debugLineNum = 85;BA.debugLine="myClock.Initialize(pnlClock, 96)"; + //BA.debugLineNum = 89;BA.debugLine="myClock.Initialize(pnlClock, 96)"; mostCurrent._myclock._initialize /*String*/ (mostCurrent.activityBA,mostCurrent._pnlclock,(float) (96)); - //BA.debugLineNum = 86;BA.debugLine="myClock.SetBaseDuration(12 * DateTime.TicksPerHou"; + //BA.debugLineNum = 90;BA.debugLine="myClock.SetBaseDuration(12 * DateTime.TicksPerHou"; mostCurrent._myclock._setbaseduration /*String*/ ((long) (12*anywheresoftware.b4a.keywords.Common.DateTime.TicksPerHour)); - //BA.debugLineNum = 88;BA.debugLine="Timer1.Initialize(\"Timer1\", 1000)"; + //BA.debugLineNum = 92;BA.debugLine="Timer1.Initialize(\"Timer1\", 1000)"; _timer1.Initialize(processBA,"Timer1",(long) (1000)); - //BA.debugLineNum = 89;BA.debugLine="Timer1.Enabled = True"; + //BA.debugLineNum = 93;BA.debugLine="Timer1.Enabled = True"; _timer1.setEnabled(anywheresoftware.b4a.keywords.Common.True); - //BA.debugLineNum = 91;BA.debugLine="StatsRows.Initialize"; + //BA.debugLineNum = 95;BA.debugLine="StatsRows.Initialize"; mostCurrent._statsrows.Initialize(); - //BA.debugLineNum = 92;BA.debugLine="LoadStatsRows"; + //BA.debugLineNum = 96;BA.debugLine="LoadStatsRows"; _loadstatsrows(); - //BA.debugLineNum = 93;BA.debugLine="HideLegacyButtons"; + //BA.debugLineNum = 97;BA.debugLine="HideLegacyButtons"; _hidelegacybuttons(); - //BA.debugLineNum = 94;BA.debugLine="CreateStatsButton"; + //BA.debugLineNum = 98;BA.debugLine="CreateStatsButton"; _createstatsbutton(); - //BA.debugLineNum = 95;BA.debugLine="CreateStatsPage"; + //BA.debugLineNum = 99;BA.debugLine="CreateStatsPage"; _createstatspage(); - //BA.debugLineNum = 96;BA.debugLine="CreateConfigButton"; + //BA.debugLineNum = 100;BA.debugLine="CreateConfigButton"; _createconfigbutton(); - //BA.debugLineNum = 97;BA.debugLine="CreateConfigPage"; + //BA.debugLineNum = 101;BA.debugLine="CreateConfigPage"; _createconfigpage(); - //BA.debugLineNum = 98;BA.debugLine="CreateBackgroundButton"; + //BA.debugLineNum = 102;BA.debugLine="CreateHelpPage"; +_createhelppage(); + //BA.debugLineNum = 103;BA.debugLine="CreateBackgroundButton"; _createbackgroundbutton(); - //BA.debugLineNum = 99;BA.debugLine="CreateAutoStatusLabel"; + //BA.debugLineNum = 104;BA.debugLine="CreateAutoStatusLabel"; _createautostatuslabel(); - //BA.debugLineNum = 100;BA.debugLine="LayoutMainButtons"; + //BA.debugLineNum = 105;BA.debugLine="LayoutMainButtons"; _layoutmainbuttons(); - //BA.debugLineNum = 101;BA.debugLine="LoadAutoConfig"; + //BA.debugLineNum = 106;BA.debugLine="LoadAutoConfig"; _loadautoconfig(); - //BA.debugLineNum = 102;BA.debugLine="ResetSessionState(False)"; + //BA.debugLineNum = 107;BA.debugLine="ResetSessionState(False)"; _resetsessionstate(anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 103;BA.debugLine="If AutoModeEnabled Then"; + //BA.debugLineNum = 108;BA.debugLine="If AutoModeEnabled Then"; if (_automodeenabled) { - //BA.debugLineNum = 104;BA.debugLine="UpdateAutomaticState(DateTime.Now)"; + //BA.debugLineNum = 109;BA.debugLine="UpdateAutomaticState(DateTime.Now)"; _updateautomaticstate(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); }else { - //BA.debugLineNum = 106;BA.debugLine="RestoreActiveState"; + //BA.debugLineNum = 111;BA.debugLine="RestoreActiveState"; _restoreactivestate(); - //BA.debugLineNum = 107;BA.debugLine="If SessionActive = False Then RestoreLastClosedD"; + //BA.debugLineNum = 112;BA.debugLine="If SessionActive = False Then RestoreLastClosedD"; if (_sessionactive==anywheresoftware.b4a.keywords.Common.False) { _restorelastcloseddaystate();}; }; - //BA.debugLineNum = 109;BA.debugLine="End Sub"; + //BA.debugLineNum = 114;BA.debugLine="End Sub"; return ""; } public static String _activity_pause(boolean _userclosed) throws Exception{ - //BA.debugLineNum = 294;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)"; - //BA.debugLineNum = 295;BA.debugLine="If AutoModeEnabled = False Then SaveActiveState"; + //BA.debugLineNum = 334;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)"; + //BA.debugLineNum = 335;BA.debugLine="If AutoModeEnabled = False Then SaveActiveState"; if (_automodeenabled==anywheresoftware.b4a.keywords.Common.False) { _saveactivestate();}; - //BA.debugLineNum = 296;BA.debugLine="End Sub"; + //BA.debugLineNum = 336;BA.debugLine="End Sub"; return ""; } public static String _activity_resume() throws Exception{ - //BA.debugLineNum = 135;BA.debugLine="Sub Activity_Resume"; - //BA.debugLineNum = 136;BA.debugLine="If AutoModeEnabled Then"; + //BA.debugLineNum = 140;BA.debugLine="Sub Activity_Resume"; + //BA.debugLineNum = 141;BA.debugLine="If AutoModeEnabled Then"; if (_automodeenabled) { - //BA.debugLineNum = 137;BA.debugLine="UpdateAutomaticState(DateTime.Now)"; + //BA.debugLineNum = 142;BA.debugLine="UpdateAutomaticState(DateTime.Now)"; _updateautomaticstate(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); }else { - //BA.debugLineNum = 139;BA.debugLine="RestoreActiveState"; + //BA.debugLineNum = 144;BA.debugLine="RestoreActiveState"; _restoreactivestate(); - //BA.debugLineNum = 140;BA.debugLine="If SessionActive = False Then RestoreLastClosedD"; + //BA.debugLineNum = 145;BA.debugLine="If SessionActive = False Then RestoreLastClosedD"; if (_sessionactive==anywheresoftware.b4a.keywords.Common.False) { _restorelastcloseddaystate();}; }; - //BA.debugLineNum = 142;BA.debugLine="End Sub"; + //BA.debugLineNum = 147;BA.debugLine="End Sub"; return ""; } public static String _addautosegmentnosave(long _daystart,int _fromminutes,int _tominutes,String _category) throws Exception{ long _duration = 0L; anywheresoftware.b4a.objects.collections.Map _row = null; - //BA.debugLineNum = 1045;BA.debugLine="Private Sub AddAutoSegmentNoSave(DayStart As Long,"; - //BA.debugLineNum = 1046;BA.debugLine="Dim duration As Long = (ToMinutes - FromMinutes)"; + //BA.debugLineNum = 1105;BA.debugLine="Private Sub AddAutoSegmentNoSave(DayStart As Long,"; + //BA.debugLineNum = 1106;BA.debugLine="Dim duration As Long = (ToMinutes - FromMinutes)"; _duration = (long) ((_tominutes-_fromminutes)*anywheresoftware.b4a.keywords.Common.DateTime.TicksPerMinute); - //BA.debugLineNum = 1047;BA.debugLine="If duration <= 0 Then Return"; + //BA.debugLineNum = 1107;BA.debugLine="If duration <= 0 Then Return"; if (_duration<=0) { if (true) return "";}; - //BA.debugLineNum = 1048;BA.debugLine="Dim row As Map"; + //BA.debugLineNum = 1108;BA.debugLine="Dim row As Map"; _row = new anywheresoftware.b4a.objects.collections.Map(); - //BA.debugLineNum = 1049;BA.debugLine="row.Initialize"; + //BA.debugLineNum = 1109;BA.debugLine="row.Initialize"; _row.Initialize(); - //BA.debugLineNum = 1050;BA.debugLine="row.Put(\"dayStart\", DayStart)"; + //BA.debugLineNum = 1110;BA.debugLine="row.Put(\"dayStart\", DayStart)"; _row.Put((Object)("dayStart"),(Object)(_daystart)); - //BA.debugLineNum = 1051;BA.debugLine="row.Put(\"dayKey\", DayStart)"; + //BA.debugLineNum = 1111;BA.debugLine="row.Put(\"dayKey\", DayStart)"; _row.Put((Object)("dayKey"),(Object)(_daystart)); - //BA.debugLineNum = 1052;BA.debugLine="row.Put(\"segmentStart\", DayStart + FromMinutes *"; + //BA.debugLineNum = 1112;BA.debugLine="row.Put(\"segmentStart\", DayStart + FromMinutes *"; _row.Put((Object)("segmentStart"),(Object)(_daystart+_fromminutes*anywheresoftware.b4a.keywords.Common.DateTime.TicksPerMinute)); - //BA.debugLineNum = 1053;BA.debugLine="row.Put(\"date\", DateTime.Date(DayStart))"; + //BA.debugLineNum = 1113;BA.debugLine="row.Put(\"date\", DateTime.Date(DayStart))"; _row.Put((Object)("date"),(Object)(anywheresoftware.b4a.keywords.Common.DateTime.Date(_daystart))); - //BA.debugLineNum = 1054;BA.debugLine="row.Put(\"duration\", duration)"; + //BA.debugLineNum = 1114;BA.debugLine="row.Put(\"duration\", duration)"; _row.Put((Object)("duration"),(Object)(_duration)); - //BA.debugLineNum = 1055;BA.debugLine="row.Put(\"category\", Category)"; + //BA.debugLineNum = 1115;BA.debugLine="row.Put(\"category\", Category)"; _row.Put((Object)("category"),(Object)(_category)); - //BA.debugLineNum = 1056;BA.debugLine="row.Put(\"source\", \"auto\")"; + //BA.debugLineNum = 1116;BA.debugLine="row.Put(\"source\", \"auto\")"; _row.Put((Object)("source"),(Object)("auto")); - //BA.debugLineNum = 1057;BA.debugLine="StatsRows.Add(row)"; + //BA.debugLineNum = 1117;BA.debugLine="StatsRows.Add(row)"; mostCurrent._statsrows.Add((Object)(_row.getObject())); - //BA.debugLineNum = 1058;BA.debugLine="End Sub"; + //BA.debugLineNum = 1118;BA.debugLine="End Sub"; return ""; } public static String _addcell(String _text,int _x,int _y,int _w,int _h,boolean _header) throws Exception{ anywheresoftware.b4a.objects.LabelWrapper _lbl = null; - //BA.debugLineNum = 1112;BA.debugLine="Private Sub AddCell(Text As String, x As Int, y As"; - //BA.debugLineNum = 1113;BA.debugLine="Dim lbl As Label"; + //BA.debugLineNum = 1172;BA.debugLine="Private Sub AddCell(Text As String, x As Int, y As"; + //BA.debugLineNum = 1173;BA.debugLine="Dim lbl As Label"; _lbl = new anywheresoftware.b4a.objects.LabelWrapper(); - //BA.debugLineNum = 1114;BA.debugLine="lbl.Initialize(\"\")"; + //BA.debugLineNum = 1174;BA.debugLine="lbl.Initialize(\"\")"; _lbl.Initialize(mostCurrent.activityBA,""); - //BA.debugLineNum = 1115;BA.debugLine="lbl.Text = Text"; + //BA.debugLineNum = 1175;BA.debugLine="lbl.Text = Text"; _lbl.setText(BA.ObjectToCharSequence(_text)); - //BA.debugLineNum = 1116;BA.debugLine="lbl.TextSize = 12"; + //BA.debugLineNum = 1176;BA.debugLine="lbl.TextSize = 12"; _lbl.setTextSize((float) (12)); - //BA.debugLineNum = 1117;BA.debugLine="lbl.TextColor = Colors.Black"; + //BA.debugLineNum = 1177;BA.debugLine="lbl.TextColor = Colors.Black"; _lbl.setTextColor(anywheresoftware.b4a.keywords.Common.Colors.Black); - //BA.debugLineNum = 1118;BA.debugLine="lbl.Gravity = Gravity.CENTER"; + //BA.debugLineNum = 1178;BA.debugLine="lbl.Gravity = Gravity.CENTER"; _lbl.setGravity(anywheresoftware.b4a.keywords.Common.Gravity.CENTER); - //BA.debugLineNum = 1119;BA.debugLine="If Header Then"; + //BA.debugLineNum = 1179;BA.debugLine="If Header Then"; if (_header) { - //BA.debugLineNum = 1120;BA.debugLine="lbl.Color = Colors.RGB(230, 230, 230)"; + //BA.debugLineNum = 1180;BA.debugLine="lbl.Color = Colors.RGB(230, 230, 230)"; _lbl.setColor(anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (230),(int) (230),(int) (230))); }else { - //BA.debugLineNum = 1122;BA.debugLine="lbl.Color = Colors.White"; + //BA.debugLineNum = 1182;BA.debugLine="lbl.Color = Colors.White"; _lbl.setColor(anywheresoftware.b4a.keywords.Common.Colors.White); }; - //BA.debugLineNum = 1124;BA.debugLine="svStats.Panel.AddView(lbl, x, y, w, h)"; + //BA.debugLineNum = 1184;BA.debugLine="svStats.Panel.AddView(lbl, x, y, w, h)"; mostCurrent._svstats.getPanel().AddView((android.view.View)(_lbl.getObject()),_x,_y,_w,_h); - //BA.debugLineNum = 1125;BA.debugLine="End Sub"; + //BA.debugLineNum = 1185;BA.debugLine="End Sub"; return ""; } public static anywheresoftware.b4a.objects.EditTextWrapper _addconfigfield(String _labeltext,String _valuetext,int _y) throws Exception{ anywheresoftware.b4a.objects.LabelWrapper _lbl = null; anywheresoftware.b4a.objects.EditTextWrapper _txt = null; - //BA.debugLineNum = 275;BA.debugLine="Private Sub AddConfigField(LabelText As String, Va"; - //BA.debugLineNum = 276;BA.debugLine="Dim lbl As Label"; + //BA.debugLineNum = 315;BA.debugLine="Private Sub AddConfigField(LabelText As String, Va"; + //BA.debugLineNum = 316;BA.debugLine="Dim lbl As Label"; _lbl = new anywheresoftware.b4a.objects.LabelWrapper(); - //BA.debugLineNum = 277;BA.debugLine="lbl.Initialize(\"\")"; + //BA.debugLineNum = 317;BA.debugLine="lbl.Initialize(\"\")"; _lbl.Initialize(mostCurrent.activityBA,""); - //BA.debugLineNum = 278;BA.debugLine="lbl.Text = LabelText"; + //BA.debugLineNum = 318;BA.debugLine="lbl.Text = LabelText"; _lbl.setText(BA.ObjectToCharSequence(_labeltext)); - //BA.debugLineNum = 279;BA.debugLine="lbl.TextSize = 16"; + //BA.debugLineNum = 319;BA.debugLine="lbl.TextSize = 16"; _lbl.setTextSize((float) (16)); - //BA.debugLineNum = 280;BA.debugLine="lbl.TextColor = Colors.Black"; + //BA.debugLineNum = 320;BA.debugLine="lbl.TextColor = Colors.Black"; _lbl.setTextColor(anywheresoftware.b4a.keywords.Common.Colors.Black); - //BA.debugLineNum = 281;BA.debugLine="lbl.Gravity = Gravity.CENTER_VERTICAL"; + //BA.debugLineNum = 321;BA.debugLine="lbl.Gravity = Gravity.CENTER_VERTICAL"; _lbl.setGravity(anywheresoftware.b4a.keywords.Common.Gravity.CENTER_VERTICAL); - //BA.debugLineNum = 282;BA.debugLine="pnlConfig.AddView(lbl, 12dip, y, 140dip, 46dip)"; + //BA.debugLineNum = 322;BA.debugLine="pnlConfig.AddView(lbl, 12dip, y, 140dip, 46dip)"; mostCurrent._pnlconfig.AddView((android.view.View)(_lbl.getObject()),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (12)),_y,anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (140)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (46))); - //BA.debugLineNum = 284;BA.debugLine="Dim txt As EditText"; + //BA.debugLineNum = 324;BA.debugLine="Dim txt As EditText"; _txt = new anywheresoftware.b4a.objects.EditTextWrapper(); - //BA.debugLineNum = 285;BA.debugLine="txt.Initialize(\"\")"; + //BA.debugLineNum = 325;BA.debugLine="txt.Initialize(\"\")"; _txt.Initialize(mostCurrent.activityBA,""); - //BA.debugLineNum = 286;BA.debugLine="txt.Text = ValueText"; + //BA.debugLineNum = 326;BA.debugLine="txt.Text = ValueText"; _txt.setText(BA.ObjectToCharSequence(_valuetext)); - //BA.debugLineNum = 287;BA.debugLine="txt.TextSize = 18"; + //BA.debugLineNum = 327;BA.debugLine="txt.TextSize = 18"; _txt.setTextSize((float) (18)); - //BA.debugLineNum = 288;BA.debugLine="txt.SingleLine = True"; + //BA.debugLineNum = 328;BA.debugLine="txt.SingleLine = True"; _txt.setSingleLine(anywheresoftware.b4a.keywords.Common.True); - //BA.debugLineNum = 289;BA.debugLine="txt.InputType = txt.INPUT_TYPE_NUMBERS"; + //BA.debugLineNum = 329;BA.debugLine="txt.InputType = txt.INPUT_TYPE_NUMBERS"; _txt.setInputType(_txt.INPUT_TYPE_NUMBERS); - //BA.debugLineNum = 290;BA.debugLine="pnlConfig.AddView(txt, 160dip, y, Activity.Width"; + //BA.debugLineNum = 330;BA.debugLine="pnlConfig.AddView(txt, 160dip, y, Activity.Width"; mostCurrent._pnlconfig.AddView((android.view.View)(_txt.getObject()),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (160)),_y,(int) (mostCurrent._activity.getWidth()-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (172))),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (46))); - //BA.debugLineNum = 291;BA.debugLine="Return txt"; + //BA.debugLineNum = 331;BA.debugLine="Return txt"; if (true) return _txt; - //BA.debugLineNum = 292;BA.debugLine="End Sub"; + //BA.debugLineNum = 332;BA.debugLine="End Sub"; return null; } public static String _adddisplayproductivesegment(long _duration,long _startproductivems) throws Exception{ @@ -594,278 +600,299 @@ long _cursor = 0L; int _segmentcolor = 0; long _boundary = 0L; long _chunk = 0L; - //BA.debugLineNum = 628;BA.debugLine="Private Sub AddDisplayProductiveSegment(Duration A"; - //BA.debugLineNum = 629;BA.debugLine="Dim remaining As Long = Duration"; + //BA.debugLineNum = 676;BA.debugLine="Private Sub AddDisplayProductiveSegment(Duration A"; + //BA.debugLineNum = 677;BA.debugLine="Dim remaining As Long = Duration"; _remaining = _duration; - //BA.debugLineNum = 630;BA.debugLine="Dim cursor As Long = StartProductiveMs"; + //BA.debugLineNum = 678;BA.debugLine="Dim cursor As Long = StartProductiveMs"; _cursor = _startproductivems; - //BA.debugLineNum = 631;BA.debugLine="Do While remaining > 0"; + //BA.debugLineNum = 679;BA.debugLine="Do While remaining > 0"; while (_remaining>0) { - //BA.debugLineNum = 632;BA.debugLine="Dim segmentColor As Int"; + //BA.debugLineNum = 680;BA.debugLine="Dim segmentColor As Int"; _segmentcolor = 0; - //BA.debugLineNum = 633;BA.debugLine="Dim boundary As Long"; + //BA.debugLineNum = 681;BA.debugLine="Dim boundary As Long"; _boundary = 0L; - //BA.debugLineNum = 634;BA.debugLine="If cursor < FirstWorkLimitMs Then"; + //BA.debugLineNum = 682;BA.debugLine="If cursor < FirstWorkLimitMs Then"; if (_cursor<_firstworklimitms) { - //BA.debugLineNum = 635;BA.debugLine="segmentColor = WorkMorningColor"; + //BA.debugLineNum = 683;BA.debugLine="segmentColor = WorkMorningColor"; _segmentcolor = _workmorningcolor; - //BA.debugLineNum = 636;BA.debugLine="boundary = FirstWorkLimitMs"; + //BA.debugLineNum = 684;BA.debugLine="boundary = FirstWorkLimitMs"; _boundary = _firstworklimitms; }else if(_cursor<_worklimitms) { - //BA.debugLineNum = 638;BA.debugLine="segmentColor = Colors.Green"; + //BA.debugLineNum = 686;BA.debugLine="segmentColor = Colors.Green"; _segmentcolor = anywheresoftware.b4a.keywords.Common.Colors.Green; - //BA.debugLineNum = 639;BA.debugLine="boundary = WorkLimitMs"; + //BA.debugLineNum = 687;BA.debugLine="boundary = WorkLimitMs"; _boundary = _worklimitms; }else { - //BA.debugLineNum = 641;BA.debugLine="segmentColor = Colors.Red"; + //BA.debugLineNum = 689;BA.debugLine="segmentColor = Colors.Red"; _segmentcolor = anywheresoftware.b4a.keywords.Common.Colors.Red; - //BA.debugLineNum = 642;BA.debugLine="boundary = MaxProductiveMs"; + //BA.debugLineNum = 690;BA.debugLine="boundary = MaxProductiveMs"; _boundary = _maxproductivems; }; - //BA.debugLineNum = 644;BA.debugLine="Dim chunk As Long = remaining"; + //BA.debugLineNum = 692;BA.debugLine="Dim chunk As Long = remaining"; _chunk = _remaining; - //BA.debugLineNum = 645;BA.debugLine="If cursor < boundary Then chunk = Min(chunk, bou"; + //BA.debugLineNum = 693;BA.debugLine="If cursor < boundary Then chunk = Min(chunk, bou"; if (_cursor<_boundary) { _chunk = (long) (anywheresoftware.b4a.keywords.Common.Min(_chunk,_boundary-_cursor));}; - //BA.debugLineNum = 646;BA.debugLine="myClock.AddSegment(chunk, segmentColor, False)"; + //BA.debugLineNum = 694;BA.debugLine="myClock.AddSegment(chunk, segmentColor, False)"; mostCurrent._myclock._addsegment /*String*/ (_chunk,_segmentcolor,anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 647;BA.debugLine="remaining = remaining - chunk"; + //BA.debugLineNum = 695;BA.debugLine="remaining = remaining - chunk"; _remaining = (long) (_remaining-_chunk); - //BA.debugLineNum = 648;BA.debugLine="cursor = cursor + chunk"; + //BA.debugLineNum = 696;BA.debugLine="cursor = cursor + chunk"; _cursor = (long) (_cursor+_chunk); } ; - //BA.debugLineNum = 650;BA.debugLine="End Sub"; + //BA.debugLineNum = 698;BA.debugLine="End Sub"; return ""; } public static String _addstatsduration(anywheresoftware.b4a.objects.collections.Map _dailyrows,String _datetext,String _category,long _duration) throws Exception{ anywheresoftware.b4a.objects.collections.Map _dailytotals = null; - //BA.debugLineNum = 905;BA.debugLine="Private Sub AddStatsDuration(dailyRows As Map, Dat"; - //BA.debugLineNum = 906;BA.debugLine="Dim dailyTotals As Map"; + //BA.debugLineNum = 965;BA.debugLine="Private Sub AddStatsDuration(dailyRows As Map, Dat"; + //BA.debugLineNum = 966;BA.debugLine="Dim dailyTotals As Map"; _dailytotals = new anywheresoftware.b4a.objects.collections.Map(); - //BA.debugLineNum = 907;BA.debugLine="If dailyRows.ContainsKey(DateText) Then"; + //BA.debugLineNum = 967;BA.debugLine="If dailyRows.ContainsKey(DateText) Then"; if (_dailyrows.ContainsKey((Object)(_datetext))) { - //BA.debugLineNum = 908;BA.debugLine="dailyTotals = dailyRows.Get(DateText)"; + //BA.debugLineNum = 968;BA.debugLine="dailyTotals = dailyRows.Get(DateText)"; _dailytotals = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_dailyrows.Get((Object)(_datetext)))); }else { - //BA.debugLineNum = 910;BA.debugLine="dailyTotals.Initialize"; + //BA.debugLineNum = 970;BA.debugLine="dailyTotals.Initialize"; _dailytotals.Initialize(); - //BA.debugLineNum = 911;BA.debugLine="dailyTotals.Put(\"lavoro\", 0)"; + //BA.debugLineNum = 971;BA.debugLine="dailyTotals.Put(\"lavoro\", 0)"; _dailytotals.Put((Object)("lavoro"),(Object)(0)); - //BA.debugLineNum = 912;BA.debugLine="dailyTotals.Put(\"pausa\", 0)"; + //BA.debugLineNum = 972;BA.debugLine="dailyTotals.Put(\"pausa\", 0)"; _dailytotals.Put((Object)("pausa"),(Object)(0)); - //BA.debugLineNum = 913;BA.debugLine="dailyTotals.Put(\"straordinario\", 0)"; + //BA.debugLineNum = 973;BA.debugLine="dailyTotals.Put(\"straordinario\", 0)"; _dailytotals.Put((Object)("straordinario"),(Object)(0)); - //BA.debugLineNum = 914;BA.debugLine="dailyRows.Put(DateText, dailyTotals)"; + //BA.debugLineNum = 974;BA.debugLine="dailyRows.Put(DateText, dailyTotals)"; _dailyrows.Put((Object)(_datetext),(Object)(_dailytotals.getObject())); }; - //BA.debugLineNum = 916;BA.debugLine="dailyTotals.Put(Category, dailyTotals.Get(Categor"; + //BA.debugLineNum = 976;BA.debugLine="dailyTotals.Put(Category, dailyTotals.Get(Categor"; _dailytotals.Put((Object)(_category),(Object)((double)(BA.ObjectToNumber(_dailytotals.Get((Object)(_category))))+_duration)); - //BA.debugLineNum = 917;BA.debugLine="End Sub"; + //BA.debugLineNum = 977;BA.debugLine="End Sub"; return ""; } public static String _addstatsrow(int _y,String _datetext,String _worktext,String _pausetext,String _overtimetext,boolean _header) throws Exception{ int _rowheight = 0; int _col1 = 0; int _col = 0; - //BA.debugLineNum = 1102;BA.debugLine="Private Sub AddStatsRow(y As Int, DateText As Stri"; - //BA.debugLineNum = 1103;BA.debugLine="Dim rowHeight As Int = 30dip"; + //BA.debugLineNum = 1162;BA.debugLine="Private Sub AddStatsRow(y As Int, DateText As Stri"; + //BA.debugLineNum = 1163;BA.debugLine="Dim rowHeight As Int = 30dip"; _rowheight = anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (30)); - //BA.debugLineNum = 1104;BA.debugLine="Dim col1 As Int = 104dip"; + //BA.debugLineNum = 1164;BA.debugLine="Dim col1 As Int = 104dip"; _col1 = anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (104)); - //BA.debugLineNum = 1105;BA.debugLine="Dim col As Int = (Activity.Width - col1) / 3"; + //BA.debugLineNum = 1165;BA.debugLine="Dim col As Int = (Activity.Width - col1) / 3"; _col = (int) ((mostCurrent._activity.getWidth()-_col1)/(double)3); - //BA.debugLineNum = 1106;BA.debugLine="AddCell(DateText, 0, y, col1, rowHeight, Header)"; + //BA.debugLineNum = 1166;BA.debugLine="AddCell(DateText, 0, y, col1, rowHeight, Header)"; _addcell(_datetext,(int) (0),_y,_col1,_rowheight,_header); - //BA.debugLineNum = 1107;BA.debugLine="AddCell(WorkText, col1, y, col, rowHeight, Header"; + //BA.debugLineNum = 1167;BA.debugLine="AddCell(WorkText, col1, y, col, rowHeight, Header"; _addcell(_worktext,_col1,_y,_col,_rowheight,_header); - //BA.debugLineNum = 1108;BA.debugLine="AddCell(PauseText, col1 + col, y, col, rowHeight,"; + //BA.debugLineNum = 1168;BA.debugLine="AddCell(PauseText, col1 + col, y, col, rowHeight,"; _addcell(_pausetext,(int) (_col1+_col),_y,_col,_rowheight,_header); - //BA.debugLineNum = 1109;BA.debugLine="AddCell(OvertimeText, col1 + 2 * col, y, col, row"; + //BA.debugLineNum = 1169;BA.debugLine="AddCell(OvertimeText, col1 + 2 * col, y, col, row"; _addcell(_overtimetext,(int) (_col1+2*_col),_y,_col,_rowheight,_header); - //BA.debugLineNum = 1110;BA.debugLine="End Sub"; + //BA.debugLineNum = 1170;BA.debugLine="End Sub"; return ""; } public static String _addstatssegment(long _daystart,long _daykey,long _segmentstart,long _duration,String _category,String _source) throws Exception{ anywheresoftware.b4a.objects.collections.Map _row = null; - //BA.debugLineNum = 505;BA.debugLine="Private Sub AddStatsSegment(DayStart As Long, DayK"; - //BA.debugLineNum = 506;BA.debugLine="Dim row As Map"; + //BA.debugLineNum = 553;BA.debugLine="Private Sub AddStatsSegment(DayStart As Long, DayK"; + //BA.debugLineNum = 554;BA.debugLine="Dim row As Map"; _row = new anywheresoftware.b4a.objects.collections.Map(); - //BA.debugLineNum = 507;BA.debugLine="row.Initialize"; + //BA.debugLineNum = 555;BA.debugLine="row.Initialize"; _row.Initialize(); - //BA.debugLineNum = 508;BA.debugLine="row.Put(\"dayStart\", DayStart)"; + //BA.debugLineNum = 556;BA.debugLine="row.Put(\"dayStart\", DayStart)"; _row.Put((Object)("dayStart"),(Object)(_daystart)); - //BA.debugLineNum = 509;BA.debugLine="row.Put(\"dayKey\", DayKey)"; + //BA.debugLineNum = 557;BA.debugLine="row.Put(\"dayKey\", DayKey)"; _row.Put((Object)("dayKey"),(Object)(_daykey)); - //BA.debugLineNum = 510;BA.debugLine="row.Put(\"segmentStart\", SegmentStart)"; + //BA.debugLineNum = 558;BA.debugLine="row.Put(\"segmentStart\", SegmentStart)"; _row.Put((Object)("segmentStart"),(Object)(_segmentstart)); - //BA.debugLineNum = 511;BA.debugLine="row.Put(\"date\", DateTime.Date(DayStart))"; + //BA.debugLineNum = 559;BA.debugLine="row.Put(\"date\", DateTime.Date(DayStart))"; _row.Put((Object)("date"),(Object)(anywheresoftware.b4a.keywords.Common.DateTime.Date(_daystart))); - //BA.debugLineNum = 512;BA.debugLine="row.Put(\"duration\", Duration)"; + //BA.debugLineNum = 560;BA.debugLine="row.Put(\"duration\", Duration)"; _row.Put((Object)("duration"),(Object)(_duration)); - //BA.debugLineNum = 513;BA.debugLine="row.Put(\"category\", Category)"; + //BA.debugLineNum = 561;BA.debugLine="row.Put(\"category\", Category)"; _row.Put((Object)("category"),(Object)(_category)); - //BA.debugLineNum = 514;BA.debugLine="row.Put(\"source\", Source)"; + //BA.debugLineNum = 562;BA.debugLine="row.Put(\"source\", Source)"; _row.Put((Object)("source"),(Object)(_source)); - //BA.debugLineNum = 515;BA.debugLine="StatsRows.Add(row)"; + //BA.debugLineNum = 563;BA.debugLine="StatsRows.Add(row)"; mostCurrent._statsrows.Add((Object)(_row.getObject())); - //BA.debugLineNum = 516;BA.debugLine="TrimStatsRows"; + //BA.debugLineNum = 564;BA.debugLine="TrimStatsRows"; _trimstatsrows(); - //BA.debugLineNum = 517;BA.debugLine="SaveStatsRows"; + //BA.debugLineNum = 565;BA.debugLine="SaveStatsRows"; _savestatsrows(); - //BA.debugLineNum = 518;BA.debugLine="End Sub"; + //BA.debugLineNum = 566;BA.debugLine="End Sub"; return ""; } public static String _btnbackground_click() throws Exception{ anywheresoftware.b4a.objects.IntentWrapper _home = null; - //BA.debugLineNum = 384;BA.debugLine="Sub BtnBackground_Click"; - //BA.debugLineNum = 385;BA.debugLine="SaveActiveState"; + //BA.debugLineNum = 432;BA.debugLine="Sub BtnBackground_Click"; + //BA.debugLineNum = 433;BA.debugLine="SaveActiveState"; _saveactivestate(); - //BA.debugLineNum = 386;BA.debugLine="Dim home As Intent"; + //BA.debugLineNum = 434;BA.debugLine="Dim home As Intent"; _home = new anywheresoftware.b4a.objects.IntentWrapper(); - //BA.debugLineNum = 387;BA.debugLine="home.Initialize(\"android.intent.action.MAIN\", \"\")"; + //BA.debugLineNum = 435;BA.debugLine="home.Initialize(\"android.intent.action.MAIN\", \"\")"; _home.Initialize("android.intent.action.MAIN",""); - //BA.debugLineNum = 388;BA.debugLine="home.AddCategory(\"android.intent.category.HOME\")"; + //BA.debugLineNum = 436;BA.debugLine="home.AddCategory(\"android.intent.category.HOME\")"; _home.AddCategory("android.intent.category.HOME"); - //BA.debugLineNum = 389;BA.debugLine="home.Flags = 268435456"; + //BA.debugLineNum = 437;BA.debugLine="home.Flags = 268435456"; _home.setFlags((int) (268435456)); - //BA.debugLineNum = 390;BA.debugLine="StartActivity(home)"; + //BA.debugLineNum = 438;BA.debugLine="StartActivity(home)"; anywheresoftware.b4a.keywords.Common.StartActivity(processBA,(Object)(_home.getObject())); - //BA.debugLineNum = 391;BA.debugLine="End Sub"; + //BA.debugLineNum = 439;BA.debugLine="End Sub"; return ""; } public static String _btncleartoday_click() throws Exception{ - //BA.debugLineNum = 380;BA.debugLine="Sub BtnClearToday_Click"; - //BA.debugLineNum = 381;BA.debugLine="ClearDisplayedDay"; + //BA.debugLineNum = 420;BA.debugLine="Sub BtnClearToday_Click"; + //BA.debugLineNum = 421;BA.debugLine="ClearDisplayedDay"; _cleardisplayedday(); - //BA.debugLineNum = 382;BA.debugLine="End Sub"; + //BA.debugLineNum = 422;BA.debugLine="End Sub"; return ""; } public static String _btnconfig_click() throws Exception{ - //BA.debugLineNum = 364;BA.debugLine="Sub BtnConfig_Click"; - //BA.debugLineNum = 365;BA.debugLine="ShowConfigPage"; + //BA.debugLineNum = 404;BA.debugLine="Sub BtnConfig_Click"; + //BA.debugLineNum = 405;BA.debugLine="ShowConfigPage"; _showconfigpage(); - //BA.debugLineNum = 366;BA.debugLine="End Sub"; + //BA.debugLineNum = 406;BA.debugLine="End Sub"; return ""; } public static String _btnconfigclose_click() throws Exception{ - //BA.debugLineNum = 368;BA.debugLine="Sub BtnConfigClose_Click"; - //BA.debugLineNum = 369;BA.debugLine="ShowMainPage"; + //BA.debugLineNum = 408;BA.debugLine="Sub BtnConfigClose_Click"; + //BA.debugLineNum = 409;BA.debugLine="ShowMainPage"; _showmainpage(); - //BA.debugLineNum = 370;BA.debugLine="End Sub"; + //BA.debugLineNum = 410;BA.debugLine="End Sub"; return ""; } public static String _btnconfigreset_click() throws Exception{ - //BA.debugLineNum = 376;BA.debugLine="Sub BtnConfigReset_Click"; - //BA.debugLineNum = 377;BA.debugLine="ResetAutomaticConfig"; + //BA.debugLineNum = 416;BA.debugLine="Sub BtnConfigReset_Click"; + //BA.debugLineNum = 417;BA.debugLine="ResetAutomaticConfig"; _resetautomaticconfig(); - //BA.debugLineNum = 378;BA.debugLine="End Sub"; + //BA.debugLineNum = 418;BA.debugLine="End Sub"; return ""; } public static String _btnconfigsave_click() throws Exception{ - //BA.debugLineNum = 372;BA.debugLine="Sub BtnConfigSave_Click"; - //BA.debugLineNum = 373;BA.debugLine="SetAutomaticConfig"; + //BA.debugLineNum = 412;BA.debugLine="Sub BtnConfigSave_Click"; + //BA.debugLineNum = 413;BA.debugLine="SetAutomaticConfig"; _setautomaticconfig(); - //BA.debugLineNum = 374;BA.debugLine="End Sub"; + //BA.debugLineNum = 414;BA.debugLine="End Sub"; +return ""; +} +public static String _btnhelpclose_click() throws Exception{ + //BA.debugLineNum = 428;BA.debugLine="Sub BtnHelpClose_Click"; + //BA.debugLineNum = 429;BA.debugLine="ShowConfigPage"; +_showconfigpage(); + //BA.debugLineNum = 430;BA.debugLine="End Sub"; +return ""; +} +public static String _btnhelpopen_click() throws Exception{ + //BA.debugLineNum = 424;BA.debugLine="Sub BtnHelpOpen_Click"; + //BA.debugLineNum = 425;BA.debugLine="ShowHelpPage"; +_showhelppage(); + //BA.debugLineNum = 426;BA.debugLine="End Sub"; return ""; } public static String _btnpause_click() throws Exception{ long _now = 0L; - //BA.debugLineNum = 319;BA.debugLine="Sub BtnPause_Click"; - //BA.debugLineNum = 320;BA.debugLine="If AutoModeEnabled Then Return"; + //BA.debugLineNum = 359;BA.debugLine="Sub BtnPause_Click"; + //BA.debugLineNum = 360;BA.debugLine="If AutoModeEnabled Then Return"; if (_automodeenabled) { if (true) return "";}; - //BA.debugLineNum = 321;BA.debugLine="If SessionActive = False Then Return"; + //BA.debugLineNum = 361;BA.debugLine="If SessionActive = False Then Return"; if (_sessionactive==anywheresoftware.b4a.keywords.Common.False) { if (true) return "";}; - //BA.debugLineNum = 322;BA.debugLine="Dim now As Long = DateTime.Now"; + //BA.debugLineNum = 362;BA.debugLine="Dim now As Long = DateTime.Now"; _now = anywheresoftware.b4a.keywords.Common.DateTime.getNow(); - //BA.debugLineNum = 323;BA.debugLine="If PauseActive Then"; + //BA.debugLineNum = 363;BA.debugLine="If PauseActive Then"; if (_pauseactive) { - //BA.debugLineNum = 324;BA.debugLine="CloseCurrentSegment(now)"; + //BA.debugLineNum = 364;BA.debugLine="CloseCurrentSegment(now)"; _closecurrentsegment(_now); - //BA.debugLineNum = 325;BA.debugLine="PauseActive = False"; + //BA.debugLineNum = 365;BA.debugLine="PauseActive = False"; _pauseactive = anywheresoftware.b4a.keywords.Common.False; - //BA.debugLineNum = 326;BA.debugLine="BtnPause.Text = Localization.T(\"pause\")"; + //BA.debugLineNum = 366;BA.debugLine="BtnPause.Text = Localization.T(\"pause\")"; mostCurrent._btnpause.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"pause"))); - //BA.debugLineNum = 327;BA.debugLine="CurrentSegmentStart = now"; + //BA.debugLineNum = 367;BA.debugLine="CurrentSegmentStart = now"; _currentsegmentstart = _now; - //BA.debugLineNum = 328;BA.debugLine="CurrentSegmentColor = GetCurrentWorkColor"; + //BA.debugLineNum = 368;BA.debugLine="CurrentSegmentColor = GetCurrentWorkColor"; _currentsegmentcolor = _getcurrentworkcolor(); - //BA.debugLineNum = 329;BA.debugLine="myClock.SetActiveSegment(0, CurrentSegmentColor,"; + //BA.debugLineNum = 369;BA.debugLine="myClock.SetActiveSegment(0, CurrentSegmentColor,"; mostCurrent._myclock._setactivesegment /*String*/ ((long) (0),_currentsegmentcolor,anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 330;BA.debugLine="SaveActiveState"; + //BA.debugLineNum = 370;BA.debugLine="SaveActiveState"; _saveactivestate(); - //BA.debugLineNum = 331;BA.debugLine="Log(\"Pause ended.\")"; -anywheresoftware.b4a.keywords.Common.LogImpl("1179660","Pause ended.",0); + //BA.debugLineNum = 371;BA.debugLine="Log(\"Pause ended.\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("1245196","Pause ended.",0); }else { - //BA.debugLineNum = 333;BA.debugLine="ProcessActiveWorkSegment(now)"; + //BA.debugLineNum = 373;BA.debugLine="ProcessActiveWorkSegment(now)"; _processactiveworksegment(_now); - //BA.debugLineNum = 334;BA.debugLine="If SessionActive = False Then Return"; + //BA.debugLineNum = 374;BA.debugLine="If SessionActive = False Then Return"; if (_sessionactive==anywheresoftware.b4a.keywords.Common.False) { if (true) return "";}; - //BA.debugLineNum = 335;BA.debugLine="CloseCurrentSegment(now)"; + //BA.debugLineNum = 375;BA.debugLine="CloseCurrentSegment(now)"; _closecurrentsegment(_now); - //BA.debugLineNum = 336;BA.debugLine="PauseActive = True"; + //BA.debugLineNum = 376;BA.debugLine="PauseActive = True"; _pauseactive = anywheresoftware.b4a.keywords.Common.True; - //BA.debugLineNum = 337;BA.debugLine="BtnPause.Text = Localization.T(\"end_pause\")"; + //BA.debugLineNum = 377;BA.debugLine="BtnPause.Text = Localization.T(\"end_pause\")"; mostCurrent._btnpause.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"end_pause"))); - //BA.debugLineNum = 338;BA.debugLine="CurrentSegmentStart = now"; + //BA.debugLineNum = 378;BA.debugLine="CurrentSegmentStart = now"; _currentsegmentstart = _now; - //BA.debugLineNum = 339;BA.debugLine="CurrentSegmentColor = Colors.Yellow"; + //BA.debugLineNum = 379;BA.debugLine="CurrentSegmentColor = Colors.Yellow"; _currentsegmentcolor = anywheresoftware.b4a.keywords.Common.Colors.Yellow; - //BA.debugLineNum = 340;BA.debugLine="myClock.SetActiveSegment(0, CurrentSegmentColor,"; + //BA.debugLineNum = 380;BA.debugLine="myClock.SetActiveSegment(0, CurrentSegmentColor,"; mostCurrent._myclock._setactivesegment /*String*/ ((long) (0),_currentsegmentcolor,anywheresoftware.b4a.keywords.Common.True); - //BA.debugLineNum = 341;BA.debugLine="SaveActiveState"; + //BA.debugLineNum = 381;BA.debugLine="SaveActiveState"; _saveactivestate(); - //BA.debugLineNum = 342;BA.debugLine="Log(\"Pause started.\")"; -anywheresoftware.b4a.keywords.Common.LogImpl("1179671","Pause started.",0); + //BA.debugLineNum = 382;BA.debugLine="Log(\"Pause started.\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("1245207","Pause started.",0); }; - //BA.debugLineNum = 344;BA.debugLine="End Sub"; + //BA.debugLineNum = 384;BA.debugLine="End Sub"; return ""; } public static String _btnreset_click() throws Exception{ - //BA.debugLineNum = 347;BA.debugLine="Sub BtnReset_Click"; - //BA.debugLineNum = 348;BA.debugLine="ShowStatsPage"; + //BA.debugLineNum = 387;BA.debugLine="Sub BtnReset_Click"; + //BA.debugLineNum = 388;BA.debugLine="ShowStatsPage"; _showstatspage(); - //BA.debugLineNum = 349;BA.debugLine="End Sub"; + //BA.debugLineNum = 389;BA.debugLine="End Sub"; return ""; } public static String _btnstart_click() throws Exception{ - //BA.debugLineNum = 309;BA.debugLine="Sub BtnStart_Click"; - //BA.debugLineNum = 310;BA.debugLine="If AutoModeEnabled Then Return"; + //BA.debugLineNum = 349;BA.debugLine="Sub BtnStart_Click"; + //BA.debugLineNum = 350;BA.debugLine="If AutoModeEnabled Then Return"; if (_automodeenabled) { if (true) return "";}; - //BA.debugLineNum = 311;BA.debugLine="If SessionActive = False Then"; + //BA.debugLineNum = 351;BA.debugLine="If SessionActive = False Then"; if (_sessionactive==anywheresoftware.b4a.keywords.Common.False) { - //BA.debugLineNum = 312;BA.debugLine="StartSession"; + //BA.debugLineNum = 352;BA.debugLine="StartSession"; _startsession(); }else { - //BA.debugLineNum = 314;BA.debugLine="EndSession(DateTime.Now, False)"; + //BA.debugLineNum = 354;BA.debugLine="EndSession(DateTime.Now, False)"; _endsession(anywheresoftware.b4a.keywords.Common.DateTime.getNow(),anywheresoftware.b4a.keywords.Common.False); }; - //BA.debugLineNum = 316;BA.debugLine="End Sub"; + //BA.debugLineNum = 356;BA.debugLine="End Sub"; return ""; } public static String _btnstats_click() throws Exception{ - //BA.debugLineNum = 356;BA.debugLine="Sub BtnStats_Click"; - //BA.debugLineNum = 357;BA.debugLine="ShowStatsPage"; + //BA.debugLineNum = 396;BA.debugLine="Sub BtnStats_Click"; + //BA.debugLineNum = 397;BA.debugLine="ShowStatsPage"; _showstatspage(); - //BA.debugLineNum = 358;BA.debugLine="End Sub"; + //BA.debugLineNum = 398;BA.debugLine="End Sub"; return ""; } public static String _btnstatsclose_click() throws Exception{ - //BA.debugLineNum = 360;BA.debugLine="Sub BtnStatsClose_Click"; - //BA.debugLineNum = 361;BA.debugLine="ShowMainPage"; + //BA.debugLineNum = 400;BA.debugLine="Sub BtnStatsClose_Click"; + //BA.debugLineNum = 401;BA.debugLine="ShowMainPage"; _showmainpage(); - //BA.debugLineNum = 362;BA.debugLine="End Sub"; + //BA.debugLineNum = 402;BA.debugLine="End Sub"; return ""; } public static String _btnsync_click() throws Exception{ - //BA.debugLineNum = 352;BA.debugLine="Sub BtnSync_Click"; - //BA.debugLineNum = 353;BA.debugLine="ShowConfigPage"; + //BA.debugLineNum = 392;BA.debugLine="Sub BtnSync_Click"; + //BA.debugLineNum = 393;BA.debugLine="ShowConfigPage"; _showconfigpage(); - //BA.debugLineNum = 354;BA.debugLine="End Sub"; + //BA.debugLineNum = 394;BA.debugLine="End Sub"; +return ""; +} +public static String _buildhelptext() throws Exception{ + //BA.debugLineNum = 1187;BA.debugLine="Private Sub BuildHelpText As String"; + //BA.debugLineNum = 1188;BA.debugLine="Return $\"Overtime Guard Purpose Overtime Guard i"; +if (true) return ("Overtime Guard\n"+"\n"+"Purpose\n"+"Overtime Guard is a minimal workday timer. It helps you track work time, breaks, and overtime without projects, tasks, or extra screens.\n"+"\n"+"Main screen\n"+"- Start begins manual recording for the current workday.\n"+"- End stops manual recording.\n"+"- Pause starts a break.\n"+"- End pause closes the break and resumes work.\n"+"- Bg sends the app to the Android home screen.\n"+"- Stats opens the daily totals table.\n"+"- Config opens automatic schedule settings.\n"+"\n"+"Clock colors\n"+"- Light blue: first 4 hours of productive work.\n"+"- Green: productive work from hour 5 to hour 8.\n"+"- Yellow: break time.\n"+"- Red: overtime after 8 productive hours.\n"+"\n"+"How timing works\n"+"- Breaks do not count toward the 8 working hours.\n"+"- Overtime starts only after 8 productive work hours.\n"+"- Red overtime can continue for up to 1 extra hour.\n"+"- At 9 total productive hours, recording stops automatically.\n"+"- If midnight is reached, the current day is closed and the next day starts from zero when you start again.\n"+"\n"+"Daily memory\n"+"- The app saves the current day locally.\n"+"- If you close or background the app, the state is restored when you open it again.\n"+"- During the day, multiple work and break segments are added to the same daily record.\n"+"\n"+"Statistics\n"+"- The stats page groups totals by date.\n"+"- Each row shows Work, Pause, and Overtime for one day.\n"+"- The totals row sums all visible stored days.\n"+"- Local history is currently kept for about two months.\n"+"\n"+"Automatic mode\n"+"- In Config you can set work start, pause start, pause end, and work end.\n"+"- Set config enables automatic mode.\n"+"- In automatic mode, Start and End on the main screen are disabled.\n"+"- Reset config disables automatic mode and returns control to manual mode.\n"+"\n"+"Clear today\n"+"- Clear today removes only the currently displayed workday from local history.\n"+"- Use it only if you want to restart the day from zero.\n"+"\n"+"Notes\n"+"- The app uses the phone local time and time zone.\n"+"- The help page is informational only. It does not change your data.\n"+""); + //BA.debugLineNum = 1240;BA.debugLine="End Sub"; return ""; } public static String _buildstatstable() throws Exception{ @@ -878,26 +905,26 @@ anywheresoftware.b4a.objects.collections.Map _row = null; long _activeduration = 0L; String _datetext = ""; anywheresoftware.b4a.objects.collections.Map _dailytotals = null; - //BA.debugLineNum = 865;BA.debugLine="Private Sub BuildStatsTable"; - //BA.debugLineNum = 866;BA.debugLine="svStats.Panel.RemoveAllViews"; + //BA.debugLineNum = 925;BA.debugLine="Private Sub BuildStatsTable"; + //BA.debugLineNum = 926;BA.debugLine="svStats.Panel.RemoveAllViews"; mostCurrent._svstats.getPanel().RemoveAllViews(); - //BA.debugLineNum = 867;BA.debugLine="Dim y As Int = 0"; + //BA.debugLineNum = 927;BA.debugLine="Dim y As Int = 0"; _y = (int) (0); - //BA.debugLineNum = 868;BA.debugLine="AddStatsRow(y, Localization.T(\"date\"), Localizati"; + //BA.debugLineNum = 928;BA.debugLine="AddStatsRow(y, Localization.T(\"date\"), Localizati"; _addstatsrow(_y,mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"date"),mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"work"),mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"pause_col"),mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"overtime"),anywheresoftware.b4a.keywords.Common.True); - //BA.debugLineNum = 869;BA.debugLine="y = y + 34dip"; + //BA.debugLineNum = 929;BA.debugLine="y = y + 34dip"; _y = (int) (_y+anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (34))); - //BA.debugLineNum = 871;BA.debugLine="Dim totalWork As Long = 0"; + //BA.debugLineNum = 931;BA.debugLine="Dim totalWork As Long = 0"; _totalwork = (long) (0); - //BA.debugLineNum = 872;BA.debugLine="Dim totalPause As Long = 0"; + //BA.debugLineNum = 932;BA.debugLine="Dim totalPause As Long = 0"; _totalpause = (long) (0); - //BA.debugLineNum = 873;BA.debugLine="Dim totalOvertime As Long = 0"; + //BA.debugLineNum = 933;BA.debugLine="Dim totalOvertime As Long = 0"; _totalovertime = (long) (0); - //BA.debugLineNum = 874;BA.debugLine="Dim dailyRows As Map"; + //BA.debugLineNum = 934;BA.debugLine="Dim dailyRows As Map"; _dailyrows = new anywheresoftware.b4a.objects.collections.Map(); - //BA.debugLineNum = 875;BA.debugLine="dailyRows.Initialize"; + //BA.debugLineNum = 935;BA.debugLine="dailyRows.Initialize"; _dailyrows.Initialize(); - //BA.debugLineNum = 876;BA.debugLine="For Each row As Map In StatsRows"; + //BA.debugLineNum = 936;BA.debugLine="For Each row As Map In StatsRows"; _row = new anywheresoftware.b4a.objects.collections.Map(); { final anywheresoftware.b4a.BA.IterableList group10 = mostCurrent._statsrows; @@ -906,21 +933,21 @@ final int groupLen10 = group10.getSize() ; for (; index10 < groupLen10;index10++){ _row = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(group10.Get(index10))); - //BA.debugLineNum = 877;BA.debugLine="AddStatsDuration(dailyRows, row.Get(\"date\"), row"; + //BA.debugLineNum = 937;BA.debugLine="AddStatsDuration(dailyRows, row.Get(\"date\"), row"; _addstatsduration(_dailyrows,BA.ObjectToString(_row.Get((Object)("date"))),BA.ObjectToString(_row.Get((Object)("category"))),BA.ObjectToLongNumber(_row.Get((Object)("duration")))); } }; - //BA.debugLineNum = 879;BA.debugLine="If SessionActive Then"; + //BA.debugLineNum = 939;BA.debugLine="If SessionActive Then"; if (_sessionactive) { - //BA.debugLineNum = 880;BA.debugLine="Dim activeDuration As Long = Max(0, DateTime.Now"; + //BA.debugLineNum = 940;BA.debugLine="Dim activeDuration As Long = Max(0, DateTime.Now"; _activeduration = (long) (anywheresoftware.b4a.keywords.Common.Max(0,anywheresoftware.b4a.keywords.Common.DateTime.getNow()-_currentsegmentstart)); - //BA.debugLineNum = 881;BA.debugLine="If activeDuration > 0 Then"; + //BA.debugLineNum = 941;BA.debugLine="If activeDuration > 0 Then"; if (_activeduration>0) { - //BA.debugLineNum = 882;BA.debugLine="AddStatsDuration(dailyRows, DateTime.Date(Curre"; + //BA.debugLineNum = 942;BA.debugLine="AddStatsDuration(dailyRows, DateTime.Date(Curre"; _addstatsduration(_dailyrows,anywheresoftware.b4a.keywords.Common.DateTime.Date(_currentworkdaystart),_getsegmentcategory(_currentsegmentcolor,_pauseactive),_activeduration); }; }; - //BA.debugLineNum = 886;BA.debugLine="For Each dateText As String In dailyRows.Keys"; + //BA.debugLineNum = 946;BA.debugLine="For Each dateText As String In dailyRows.Keys"; { final anywheresoftware.b4a.BA.IterableList group19 = _dailyrows.Keys(); final int groupLen19 = group19.getSize() @@ -928,18 +955,18 @@ final int groupLen19 = group19.getSize() ; for (; index19 < groupLen19;index19++){ _datetext = BA.ObjectToString(group19.Get(index19)); - //BA.debugLineNum = 887;BA.debugLine="Dim dailyTotals As Map = dailyRows.Get(dateText)"; + //BA.debugLineNum = 947;BA.debugLine="Dim dailyTotals As Map = dailyRows.Get(dateText)"; _dailytotals = new anywheresoftware.b4a.objects.collections.Map(); _dailytotals = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_dailyrows.Get((Object)(_datetext)))); - //BA.debugLineNum = 888;BA.debugLine="totalWork = totalWork + dailyTotals.Get(\"lavoro\""; + //BA.debugLineNum = 948;BA.debugLine="totalWork = totalWork + dailyTotals.Get(\"lavoro\""; _totalwork = (long) (_totalwork+(double)(BA.ObjectToNumber(_dailytotals.Get((Object)("lavoro"))))); - //BA.debugLineNum = 889;BA.debugLine="totalPause = totalPause + dailyTotals.Get(\"pausa"; + //BA.debugLineNum = 949;BA.debugLine="totalPause = totalPause + dailyTotals.Get(\"pausa"; _totalpause = (long) (_totalpause+(double)(BA.ObjectToNumber(_dailytotals.Get((Object)("pausa"))))); - //BA.debugLineNum = 890;BA.debugLine="totalOvertime = totalOvertime + dailyTotals.Get("; + //BA.debugLineNum = 950;BA.debugLine="totalOvertime = totalOvertime + dailyTotals.Get("; _totalovertime = (long) (_totalovertime+(double)(BA.ObjectToNumber(_dailytotals.Get((Object)("straordinario"))))); } }; - //BA.debugLineNum = 893;BA.debugLine="For Each dateText As String In dailyRows.Keys"; + //BA.debugLineNum = 953;BA.debugLine="For Each dateText As String In dailyRows.Keys"; { final anywheresoftware.b4a.BA.IterableList group25 = _dailyrows.Keys(); final int groupLen25 = group25.getSize() @@ -947,24 +974,24 @@ final int groupLen25 = group25.getSize() ; for (; index25 < groupLen25;index25++){ _datetext = BA.ObjectToString(group25.Get(index25)); - //BA.debugLineNum = 894;BA.debugLine="Dim dailyTotals As Map = dailyRows.Get(dateText)"; + //BA.debugLineNum = 954;BA.debugLine="Dim dailyTotals As Map = dailyRows.Get(dateText)"; _dailytotals = new anywheresoftware.b4a.objects.collections.Map(); _dailytotals = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_dailyrows.Get((Object)(_datetext)))); - //BA.debugLineNum = 895;BA.debugLine="AddStatsRow(y, dateText, FormatElapsedTime(daily"; + //BA.debugLineNum = 955;BA.debugLine="AddStatsRow(y, dateText, FormatElapsedTime(daily"; _addstatsrow(_y,_datetext,_formatelapsedtime(BA.ObjectToLongNumber(_dailytotals.Get((Object)("lavoro")))),_formatelapsedtime(BA.ObjectToLongNumber(_dailytotals.Get((Object)("pausa")))),_formatelapsedtime(BA.ObjectToLongNumber(_dailytotals.Get((Object)("straordinario")))),anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 896;BA.debugLine="y = y + 30dip"; + //BA.debugLineNum = 956;BA.debugLine="y = y + 30dip"; _y = (int) (_y+anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (30))); } }; - //BA.debugLineNum = 899;BA.debugLine="y = y + 8dip"; + //BA.debugLineNum = 959;BA.debugLine="y = y + 8dip"; _y = (int) (_y+anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (8))); - //BA.debugLineNum = 900;BA.debugLine="AddStatsRow(y, Localization.T(\"totals\"), FormatEl"; + //BA.debugLineNum = 960;BA.debugLine="AddStatsRow(y, Localization.T(\"totals\"), FormatEl"; _addstatsrow(_y,mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"totals"),_formatelapsedtime(_totalwork),_formatelapsedtime(_totalpause),_formatelapsedtime(_totalovertime),anywheresoftware.b4a.keywords.Common.True); - //BA.debugLineNum = 901;BA.debugLine="y = y + 40dip"; + //BA.debugLineNum = 961;BA.debugLine="y = y + 40dip"; _y = (int) (_y+anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (40))); - //BA.debugLineNum = 902;BA.debugLine="svStats.Panel.Height = Max(y, svStats.Height + 1d"; + //BA.debugLineNum = 962;BA.debugLine="svStats.Panel.Height = Max(y, svStats.Height + 1d"; mostCurrent._svstats.getPanel().setHeight((int) (anywheresoftware.b4a.keywords.Common.Max(_y,mostCurrent._svstats.getHeight()+anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (1))))); - //BA.debugLineNum = 903;BA.debugLine="End Sub"; + //BA.debugLineNum = 963;BA.debugLine="End Sub"; return ""; } public static String _cleardisplayedday() throws Exception{ @@ -972,26 +999,26 @@ long _daystart = 0L; int _result = 0; anywheresoftware.b4a.objects.collections.List _kept = null; anywheresoftware.b4a.objects.collections.Map _row = null; - //BA.debugLineNum = 1076;BA.debugLine="Private Sub ClearDisplayedDay"; - //BA.debugLineNum = 1077;BA.debugLine="Dim dayStart As Long = GetDisplayedWorkDayStart"; + //BA.debugLineNum = 1136;BA.debugLine="Private Sub ClearDisplayedDay"; + //BA.debugLineNum = 1137;BA.debugLine="Dim dayStart As Long = GetDisplayedWorkDayStart"; _daystart = _getdisplayedworkdaystart(); - //BA.debugLineNum = 1078;BA.debugLine="If dayStart = 0 Then"; + //BA.debugLineNum = 1138;BA.debugLine="If dayStart = 0 Then"; if (_daystart==0) { - //BA.debugLineNum = 1079;BA.debugLine="ToastMessageShow(Localization.T(\"no_day_to_clear"; + //BA.debugLineNum = 1139;BA.debugLine="ToastMessageShow(Localization.T(\"no_day_to_clear"; anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"no_day_to_clear")),anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 1080;BA.debugLine="Return"; + //BA.debugLineNum = 1140;BA.debugLine="Return"; if (true) return ""; }; - //BA.debugLineNum = 1082;BA.debugLine="Dim result As Int = Msgbox2(Localization.T(\"clear"; + //BA.debugLineNum = 1142;BA.debugLine="Dim result As Int = Msgbox2(Localization.T(\"clear"; _result = anywheresoftware.b4a.keywords.Common.Msgbox2(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"clear_today_confirm")+" "+_formatdayshort(_daystart)+"?"),BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"clear_today_title")),mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"clear_button"),mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"cancel"),"",(android.graphics.Bitmap)(anywheresoftware.b4a.keywords.Common.Null),mostCurrent.activityBA); - //BA.debugLineNum = 1083;BA.debugLine="If result <> DialogResponse.POSITIVE Then Return"; + //BA.debugLineNum = 1143;BA.debugLine="If result <> DialogResponse.POSITIVE Then Return"; if (_result!=anywheresoftware.b4a.keywords.Common.DialogResponse.POSITIVE) { if (true) return "";}; - //BA.debugLineNum = 1084;BA.debugLine="Dim kept As List"; + //BA.debugLineNum = 1144;BA.debugLine="Dim kept As List"; _kept = new anywheresoftware.b4a.objects.collections.List(); - //BA.debugLineNum = 1085;BA.debugLine="kept.Initialize"; + //BA.debugLineNum = 1145;BA.debugLine="kept.Initialize"; _kept.Initialize(); - //BA.debugLineNum = 1086;BA.debugLine="For Each row As Map In StatsRows"; + //BA.debugLineNum = 1146;BA.debugLine="For Each row As Map In StatsRows"; _row = new anywheresoftware.b4a.objects.collections.Map(); { final anywheresoftware.b4a.BA.IterableList group10 = mostCurrent._statsrows; @@ -1000,319 +1027,380 @@ final int groupLen10 = group10.getSize() ; for (; index10 < groupLen10;index10++){ _row = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(group10.Get(index10))); - //BA.debugLineNum = 1087;BA.debugLine="If row.Get(\"dayStart\") <> dayStart Then kept.Add"; + //BA.debugLineNum = 1147;BA.debugLine="If row.Get(\"dayStart\") <> dayStart Then kept.Add"; if ((_row.Get((Object)("dayStart"))).equals((Object)(_daystart)) == false) { _kept.Add((Object)(_row.getObject()));}; } }; - //BA.debugLineNum = 1089;BA.debugLine="StatsRows.Clear"; + //BA.debugLineNum = 1149;BA.debugLine="StatsRows.Clear"; mostCurrent._statsrows.Clear(); - //BA.debugLineNum = 1090;BA.debugLine="StatsRows.AddAll(kept)"; + //BA.debugLineNum = 1150;BA.debugLine="StatsRows.AddAll(kept)"; mostCurrent._statsrows.AddAll(_kept); - //BA.debugLineNum = 1091;BA.debugLine="SaveStatsRows"; + //BA.debugLineNum = 1151;BA.debugLine="SaveStatsRows"; _savestatsrows(); - //BA.debugLineNum = 1092;BA.debugLine="If File.Exists(File.DirInternal, StateFileName) T"; + //BA.debugLineNum = 1152;BA.debugLine="If File.Exists(File.DirInternal, StateFileName) T"; if (anywheresoftware.b4a.keywords.Common.File.Exists(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_statefilename)) { anywheresoftware.b4a.keywords.Common.File.Delete(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_statefilename);}; - //BA.debugLineNum = 1093;BA.debugLine="ResetSessionState(True)"; + //BA.debugLineNum = 1153;BA.debugLine="ResetSessionState(True)"; _resetsessionstate(anywheresoftware.b4a.keywords.Common.True); - //BA.debugLineNum = 1094;BA.debugLine="If AutoModeEnabled Then"; + //BA.debugLineNum = 1154;BA.debugLine="If AutoModeEnabled Then"; if (_automodeenabled) { - //BA.debugLineNum = 1095;BA.debugLine="UpdateAutomaticState(DateTime.Now)"; + //BA.debugLineNum = 1155;BA.debugLine="UpdateAutomaticState(DateTime.Now)"; _updateautomaticstate(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); }else { - //BA.debugLineNum = 1097;BA.debugLine="RestoreLastClosedDayState"; + //BA.debugLineNum = 1157;BA.debugLine="RestoreLastClosedDayState"; _restorelastcloseddaystate(); }; - //BA.debugLineNum = 1099;BA.debugLine="ToastMessageShow(Localization.T(\"today_cleared\"),"; + //BA.debugLineNum = 1159;BA.debugLine="ToastMessageShow(Localization.T(\"today_cleared\"),"; anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"today_cleared")),anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 1100;BA.debugLine="End Sub"; + //BA.debugLineNum = 1160;BA.debugLine="End Sub"; return ""; } public static String _closecurrentsegment(long _finaltime) throws Exception{ long _duration = 0L; - //BA.debugLineNum = 489;BA.debugLine="Private Sub CloseCurrentSegment(FinalTime As Long)"; - //BA.debugLineNum = 490;BA.debugLine="Dim duration As Long = FinalTime - CurrentSegment"; + //BA.debugLineNum = 537;BA.debugLine="Private Sub CloseCurrentSegment(FinalTime As Long)"; + //BA.debugLineNum = 538;BA.debugLine="Dim duration As Long = FinalTime - CurrentSegment"; _duration = (long) (_finaltime-_currentsegmentstart); - //BA.debugLineNum = 491;BA.debugLine="If duration <= 0 Then Return"; + //BA.debugLineNum = 539;BA.debugLine="If duration <= 0 Then Return"; if (_duration<=0) { if (true) return "";}; - //BA.debugLineNum = 492;BA.debugLine="If PauseActive Then"; + //BA.debugLineNum = 540;BA.debugLine="If PauseActive Then"; if (_pauseactive) { - //BA.debugLineNum = 493;BA.debugLine="RecordSegment(CurrentSegmentStart, duration, Col"; + //BA.debugLineNum = 541;BA.debugLine="RecordSegment(CurrentSegmentStart, duration, Col"; _recordsegment(_currentsegmentstart,_duration,anywheresoftware.b4a.keywords.Common.Colors.Yellow,anywheresoftware.b4a.keywords.Common.True); }else { - //BA.debugLineNum = 495;BA.debugLine="RecordSegment(CurrentSegmentStart, duration, Get"; + //BA.debugLineNum = 543;BA.debugLine="RecordSegment(CurrentSegmentStart, duration, Get"; _recordsegment(_currentsegmentstart,_duration,_getcurrentworkcolor(),anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 496;BA.debugLine="ProductiveElapsedMs = ProductiveElapsedMs + dura"; + //BA.debugLineNum = 544;BA.debugLine="ProductiveElapsedMs = ProductiveElapsedMs + dura"; _productiveelapsedms = (long) (_productiveelapsedms+_duration); }; - //BA.debugLineNum = 498;BA.debugLine="End Sub"; + //BA.debugLineNum = 546;BA.debugLine="End Sub"; return ""; } public static String _createautostatuslabel() throws Exception{ - //BA.debugLineNum = 226;BA.debugLine="Private Sub CreateAutoStatusLabel"; - //BA.debugLineNum = 227;BA.debugLine="lblAutoStatus.Initialize(\"\")"; + //BA.debugLineNum = 231;BA.debugLine="Private Sub CreateAutoStatusLabel"; + //BA.debugLineNum = 232;BA.debugLine="lblAutoStatus.Initialize(\"\")"; mostCurrent._lblautostatus.Initialize(mostCurrent.activityBA,""); - //BA.debugLineNum = 228;BA.debugLine="lblAutoStatus.TextColor = Colors.DarkGray"; + //BA.debugLineNum = 233;BA.debugLine="lblAutoStatus.TextColor = Colors.DarkGray"; mostCurrent._lblautostatus.setTextColor(anywheresoftware.b4a.keywords.Common.Colors.DarkGray); - //BA.debugLineNum = 229;BA.debugLine="lblAutoStatus.TextSize = 13"; + //BA.debugLineNum = 234;BA.debugLine="lblAutoStatus.TextSize = 13"; mostCurrent._lblautostatus.setTextSize((float) (13)); - //BA.debugLineNum = 230;BA.debugLine="lblAutoStatus.Gravity = Bit.Or(Gravity.RIGHT, Gra"; + //BA.debugLineNum = 235;BA.debugLine="lblAutoStatus.Gravity = Bit.Or(Gravity.RIGHT, Gra"; mostCurrent._lblautostatus.setGravity(anywheresoftware.b4a.keywords.Common.Bit.Or(anywheresoftware.b4a.keywords.Common.Gravity.RIGHT,anywheresoftware.b4a.keywords.Common.Gravity.CENTER_VERTICAL)); - //BA.debugLineNum = 231;BA.debugLine="lblAutoStatus.Text = Localization.T(\"manual_mode\""; + //BA.debugLineNum = 236;BA.debugLine="lblAutoStatus.Text = Localization.T(\"manual_mode\""; mostCurrent._lblautostatus.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"manual_mode"))); - //BA.debugLineNum = 232;BA.debugLine="Activity.AddView(lblAutoStatus, 0, 0, 10dip, 10di"; + //BA.debugLineNum = 237;BA.debugLine="Activity.AddView(lblAutoStatus, 0, 0, 10dip, 10di"; mostCurrent._activity.AddView((android.view.View)(mostCurrent._lblautostatus.getObject()),(int) (0),(int) (0),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (10)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (10))); - //BA.debugLineNum = 233;BA.debugLine="End Sub"; + //BA.debugLineNum = 238;BA.debugLine="End Sub"; return ""; } public static String _createbackgroundbutton() throws Exception{ - //BA.debugLineNum = 183;BA.debugLine="Private Sub CreateBackgroundButton"; - //BA.debugLineNum = 184;BA.debugLine="BtnBackground.Initialize(\"BtnBackground\")"; + //BA.debugLineNum = 188;BA.debugLine="Private Sub CreateBackgroundButton"; + //BA.debugLineNum = 189;BA.debugLine="BtnBackground.Initialize(\"BtnBackground\")"; mostCurrent._btnbackground.Initialize(mostCurrent.activityBA,"BtnBackground"); - //BA.debugLineNum = 185;BA.debugLine="BtnBackground.Text = Localization.T(\"bg\")"; + //BA.debugLineNum = 190;BA.debugLine="BtnBackground.Text = Localization.T(\"bg\")"; mostCurrent._btnbackground.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"bg"))); - //BA.debugLineNum = 186;BA.debugLine="Activity.AddView(BtnBackground, BtnPause.Left, Bt"; + //BA.debugLineNum = 191;BA.debugLine="Activity.AddView(BtnBackground, BtnPause.Left, Bt"; mostCurrent._activity.AddView((android.view.View)(mostCurrent._btnbackground.getObject()),mostCurrent._btnpause.getLeft(),mostCurrent._btnpause.getTop(),mostCurrent._btnpause.getWidth(),mostCurrent._btnpause.getHeight()); - //BA.debugLineNum = 187;BA.debugLine="End Sub"; + //BA.debugLineNum = 192;BA.debugLine="End Sub"; return ""; } public static String _createconfigbutton() throws Exception{ - //BA.debugLineNum = 177;BA.debugLine="Private Sub CreateConfigButton"; - //BA.debugLineNum = 178;BA.debugLine="BtnConfig.Initialize(\"BtnConfig\")"; + //BA.debugLineNum = 182;BA.debugLine="Private Sub CreateConfigButton"; + //BA.debugLineNum = 183;BA.debugLine="BtnConfig.Initialize(\"BtnConfig\")"; mostCurrent._btnconfig.Initialize(mostCurrent.activityBA,"BtnConfig"); - //BA.debugLineNum = 179;BA.debugLine="BtnConfig.Text = Localization.T(\"config\")"; + //BA.debugLineNum = 184;BA.debugLine="BtnConfig.Text = Localization.T(\"config\")"; mostCurrent._btnconfig.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"config"))); - //BA.debugLineNum = 180;BA.debugLine="Activity.AddView(BtnConfig, BtnReset.Left, BtnRes"; + //BA.debugLineNum = 185;BA.debugLine="Activity.AddView(BtnConfig, BtnReset.Left, BtnRes"; mostCurrent._activity.AddView((android.view.View)(mostCurrent._btnconfig.getObject()),mostCurrent._btnreset.getLeft(),mostCurrent._btnreset.getTop(),mostCurrent._btnreset.getWidth(),mostCurrent._btnreset.getHeight()); - //BA.debugLineNum = 181;BA.debugLine="End Sub"; + //BA.debugLineNum = 186;BA.debugLine="End Sub"; return ""; } public static String _createconfigpage() throws Exception{ anywheresoftware.b4a.objects.LabelWrapper _title = null; int _y = 0; - //BA.debugLineNum = 235;BA.debugLine="Private Sub CreateConfigPage"; - //BA.debugLineNum = 236;BA.debugLine="pnlConfig.Initialize(\"\")"; + //BA.debugLineNum = 240;BA.debugLine="Private Sub CreateConfigPage"; + //BA.debugLineNum = 241;BA.debugLine="pnlConfig.Initialize(\"\")"; mostCurrent._pnlconfig.Initialize(mostCurrent.activityBA,""); - //BA.debugLineNum = 237;BA.debugLine="pnlConfig.Color = Colors.White"; + //BA.debugLineNum = 242;BA.debugLine="pnlConfig.Color = Colors.White"; mostCurrent._pnlconfig.setColor(anywheresoftware.b4a.keywords.Common.Colors.White); - //BA.debugLineNum = 238;BA.debugLine="pnlConfig.Visible = False"; + //BA.debugLineNum = 243;BA.debugLine="pnlConfig.Visible = False"; mostCurrent._pnlconfig.setVisible(anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 239;BA.debugLine="Activity.AddView(pnlConfig, 0, 0, Activity.Width,"; + //BA.debugLineNum = 244;BA.debugLine="Activity.AddView(pnlConfig, 0, 0, Activity.Width,"; mostCurrent._activity.AddView((android.view.View)(mostCurrent._pnlconfig.getObject()),(int) (0),(int) (0),mostCurrent._activity.getWidth(),mostCurrent._activity.getHeight()); - //BA.debugLineNum = 241;BA.debugLine="Dim title As Label"; + //BA.debugLineNum = 246;BA.debugLine="Dim title As Label"; _title = new anywheresoftware.b4a.objects.LabelWrapper(); - //BA.debugLineNum = 242;BA.debugLine="title.Initialize(\"\")"; + //BA.debugLineNum = 247;BA.debugLine="title.Initialize(\"\")"; _title.Initialize(mostCurrent.activityBA,""); - //BA.debugLineNum = 243;BA.debugLine="title.Text = Localization.T(\"config\")"; + //BA.debugLineNum = 248;BA.debugLine="title.Text = Localization.T(\"config\")"; _title.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"config"))); - //BA.debugLineNum = 244;BA.debugLine="title.TextSize = 22"; + //BA.debugLineNum = 249;BA.debugLine="title.TextSize = 22"; _title.setTextSize((float) (22)); - //BA.debugLineNum = 245;BA.debugLine="title.TextColor = Colors.Black"; + //BA.debugLineNum = 250;BA.debugLine="title.TextColor = Colors.Black"; _title.setTextColor(anywheresoftware.b4a.keywords.Common.Colors.Black); - //BA.debugLineNum = 246;BA.debugLine="title.Gravity = Gravity.CENTER_VERTICAL"; + //BA.debugLineNum = 251;BA.debugLine="title.Gravity = Gravity.CENTER_VERTICAL"; _title.setGravity(anywheresoftware.b4a.keywords.Common.Gravity.CENTER_VERTICAL); - //BA.debugLineNum = 247;BA.debugLine="pnlConfig.AddView(title, 12dip, 8dip, Activity.Wi"; + //BA.debugLineNum = 252;BA.debugLine="pnlConfig.AddView(title, 12dip, 8dip, Activity.Wi"; mostCurrent._pnlconfig.AddView((android.view.View)(_title.getObject()),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (12)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (8)),(int) (mostCurrent._activity.getWidth()-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (110))),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (46))); - //BA.debugLineNum = 249;BA.debugLine="BtnConfigClose.Initialize(\"BtnConfigClose\")"; + //BA.debugLineNum = 254;BA.debugLine="BtnConfigClose.Initialize(\"BtnConfigClose\")"; mostCurrent._btnconfigclose.Initialize(mostCurrent.activityBA,"BtnConfigClose"); - //BA.debugLineNum = 250;BA.debugLine="BtnConfigClose.Text = Localization.T(\"close\")"; + //BA.debugLineNum = 255;BA.debugLine="BtnConfigClose.Text = Localization.T(\"close\")"; mostCurrent._btnconfigclose.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"close"))); - //BA.debugLineNum = 251;BA.debugLine="pnlConfig.AddView(BtnConfigClose, Activity.Width"; + //BA.debugLineNum = 256;BA.debugLine="pnlConfig.AddView(BtnConfigClose, Activity.Width"; mostCurrent._pnlconfig.AddView((android.view.View)(mostCurrent._btnconfigclose.getObject()),(int) (mostCurrent._activity.getWidth()-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (94))),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (8)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (84)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (46))); - //BA.debugLineNum = 253;BA.debugLine="Dim y As Int = 78dip"; + //BA.debugLineNum = 258;BA.debugLine="Dim y As Int = 78dip"; _y = anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (78)); - //BA.debugLineNum = 254;BA.debugLine="txtCfgStart = AddConfigField(Localization.T(\"work"; + //BA.debugLineNum = 259;BA.debugLine="txtCfgStart = AddConfigField(Localization.T(\"work"; mostCurrent._txtcfgstart = _addconfigfield(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"work_start"),"08:30",_y); - //BA.debugLineNum = 255;BA.debugLine="y = y + 58dip"; + //BA.debugLineNum = 260;BA.debugLine="y = y + 58dip"; _y = (int) (_y+anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (58))); - //BA.debugLineNum = 256;BA.debugLine="txtCfgPauseStart = AddConfigField(Localization.T("; + //BA.debugLineNum = 261;BA.debugLine="txtCfgPauseStart = AddConfigField(Localization.T("; mostCurrent._txtcfgpausestart = _addconfigfield(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"pause_start"),"12:30",_y); - //BA.debugLineNum = 257;BA.debugLine="y = y + 58dip"; + //BA.debugLineNum = 262;BA.debugLine="y = y + 58dip"; _y = (int) (_y+anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (58))); - //BA.debugLineNum = 258;BA.debugLine="txtCfgPauseEnd = AddConfigField(Localization.T(\"p"; + //BA.debugLineNum = 263;BA.debugLine="txtCfgPauseEnd = AddConfigField(Localization.T(\"p"; mostCurrent._txtcfgpauseend = _addconfigfield(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"pause_end"),"13:00",_y); - //BA.debugLineNum = 259;BA.debugLine="y = y + 58dip"; + //BA.debugLineNum = 264;BA.debugLine="y = y + 58dip"; _y = (int) (_y+anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (58))); - //BA.debugLineNum = 260;BA.debugLine="txtCfgEnd = AddConfigField(Localization.T(\"work_e"; + //BA.debugLineNum = 265;BA.debugLine="txtCfgEnd = AddConfigField(Localization.T(\"work_e"; mostCurrent._txtcfgend = _addconfigfield(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"work_end"),"17:00",_y); - //BA.debugLineNum = 262;BA.debugLine="BtnConfigSave.Initialize(\"BtnConfigSave\")"; + //BA.debugLineNum = 267;BA.debugLine="BtnConfigSave.Initialize(\"BtnConfigSave\")"; mostCurrent._btnconfigsave.Initialize(mostCurrent.activityBA,"BtnConfigSave"); - //BA.debugLineNum = 263;BA.debugLine="BtnConfigSave.Text = Localization.T(\"set_config\")"; + //BA.debugLineNum = 268;BA.debugLine="BtnConfigSave.Text = Localization.T(\"set_config\")"; mostCurrent._btnconfigsave.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"set_config"))); - //BA.debugLineNum = 264;BA.debugLine="pnlConfig.AddView(BtnConfigSave, 12dip, y + 70dip"; + //BA.debugLineNum = 269;BA.debugLine="pnlConfig.AddView(BtnConfigSave, 12dip, y + 70dip"; mostCurrent._pnlconfig.AddView((android.view.View)(mostCurrent._btnconfigsave.getObject()),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (12)),(int) (_y+anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (70))),(int) ((mostCurrent._activity.getWidth()-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (32)))/(double)2),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (48))); - //BA.debugLineNum = 266;BA.debugLine="BtnConfigReset.Initialize(\"BtnConfigReset\")"; + //BA.debugLineNum = 271;BA.debugLine="BtnConfigReset.Initialize(\"BtnConfigReset\")"; mostCurrent._btnconfigreset.Initialize(mostCurrent.activityBA,"BtnConfigReset"); - //BA.debugLineNum = 267;BA.debugLine="BtnConfigReset.Text = Localization.T(\"reset_confi"; + //BA.debugLineNum = 272;BA.debugLine="BtnConfigReset.Text = Localization.T(\"reset_confi"; mostCurrent._btnconfigreset.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"reset_config"))); - //BA.debugLineNum = 268;BA.debugLine="pnlConfig.AddView(BtnConfigReset, 20dip + ((Activ"; + //BA.debugLineNum = 273;BA.debugLine="pnlConfig.AddView(BtnConfigReset, 20dip + ((Activ"; mostCurrent._pnlconfig.AddView((android.view.View)(mostCurrent._btnconfigreset.getObject()),(int) (anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (20))+((mostCurrent._activity.getWidth()-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (32)))/(double)2)),(int) (_y+anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (70))),(int) ((mostCurrent._activity.getWidth()-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (32)))/(double)2),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (48))); - //BA.debugLineNum = 270;BA.debugLine="BtnClearToday.Initialize(\"BtnClearToday\")"; + //BA.debugLineNum = 275;BA.debugLine="BtnClearToday.Initialize(\"BtnClearToday\")"; mostCurrent._btncleartoday.Initialize(mostCurrent.activityBA,"BtnClearToday"); - //BA.debugLineNum = 271;BA.debugLine="BtnClearToday.Text = Localization.T(\"clear_today\""; + //BA.debugLineNum = 276;BA.debugLine="BtnClearToday.Text = Localization.T(\"clear_today\""; mostCurrent._btncleartoday.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"clear_today"))); - //BA.debugLineNum = 272;BA.debugLine="pnlConfig.AddView(BtnClearToday, 12dip, y + 126di"; + //BA.debugLineNum = 277;BA.debugLine="pnlConfig.AddView(BtnClearToday, 12dip, y + 126di"; mostCurrent._pnlconfig.AddView((android.view.View)(mostCurrent._btncleartoday.getObject()),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (12)),(int) (_y+anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (126))),(int) (mostCurrent._activity.getWidth()-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (24))),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (48))); - //BA.debugLineNum = 273;BA.debugLine="End Sub"; + //BA.debugLineNum = 279;BA.debugLine="BtnHelpOpen.Initialize(\"BtnHelpOpen\")"; +mostCurrent._btnhelpopen.Initialize(mostCurrent.activityBA,"BtnHelpOpen"); + //BA.debugLineNum = 280;BA.debugLine="BtnHelpOpen.Text = \"Help\""; +mostCurrent._btnhelpopen.setText(BA.ObjectToCharSequence("Help")); + //BA.debugLineNum = 281;BA.debugLine="pnlConfig.AddView(BtnHelpOpen, 12dip, y + 182dip,"; +mostCurrent._pnlconfig.AddView((android.view.View)(mostCurrent._btnhelpopen.getObject()),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (12)),(int) (_y+anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (182))),(int) (mostCurrent._activity.getWidth()-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (24))),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (48))); + //BA.debugLineNum = 282;BA.debugLine="End Sub"; +return ""; +} +public static String _createhelppage() throws Exception{ +anywheresoftware.b4a.objects.LabelWrapper _title = null; +anywheresoftware.b4a.objects.LabelWrapper _lblhelp = null; + //BA.debugLineNum = 284;BA.debugLine="Private Sub CreateHelpPage"; + //BA.debugLineNum = 285;BA.debugLine="pnlHelp.Initialize(\"\")"; +mostCurrent._pnlhelp.Initialize(mostCurrent.activityBA,""); + //BA.debugLineNum = 286;BA.debugLine="pnlHelp.Color = Colors.White"; +mostCurrent._pnlhelp.setColor(anywheresoftware.b4a.keywords.Common.Colors.White); + //BA.debugLineNum = 287;BA.debugLine="pnlHelp.Visible = False"; +mostCurrent._pnlhelp.setVisible(anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 288;BA.debugLine="Activity.AddView(pnlHelp, 0, 0, Activity.Width, A"; +mostCurrent._activity.AddView((android.view.View)(mostCurrent._pnlhelp.getObject()),(int) (0),(int) (0),mostCurrent._activity.getWidth(),mostCurrent._activity.getHeight()); + //BA.debugLineNum = 290;BA.debugLine="Dim title As Label"; +_title = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 291;BA.debugLine="title.Initialize(\"\")"; +_title.Initialize(mostCurrent.activityBA,""); + //BA.debugLineNum = 292;BA.debugLine="title.Text = \"Help\""; +_title.setText(BA.ObjectToCharSequence("Help")); + //BA.debugLineNum = 293;BA.debugLine="title.TextSize = 22"; +_title.setTextSize((float) (22)); + //BA.debugLineNum = 294;BA.debugLine="title.TextColor = Colors.Black"; +_title.setTextColor(anywheresoftware.b4a.keywords.Common.Colors.Black); + //BA.debugLineNum = 295;BA.debugLine="title.Gravity = Gravity.CENTER_VERTICAL"; +_title.setGravity(anywheresoftware.b4a.keywords.Common.Gravity.CENTER_VERTICAL); + //BA.debugLineNum = 296;BA.debugLine="pnlHelp.AddView(title, 12dip, 8dip, Activity.Widt"; +mostCurrent._pnlhelp.AddView((android.view.View)(_title.getObject()),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (12)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (8)),(int) (mostCurrent._activity.getWidth()-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (110))),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (46))); + //BA.debugLineNum = 298;BA.debugLine="BtnHelpClose.Initialize(\"BtnHelpClose\")"; +mostCurrent._btnhelpclose.Initialize(mostCurrent.activityBA,"BtnHelpClose"); + //BA.debugLineNum = 299;BA.debugLine="BtnHelpClose.Text = \"Close\""; +mostCurrent._btnhelpclose.setText(BA.ObjectToCharSequence("Close")); + //BA.debugLineNum = 300;BA.debugLine="pnlHelp.AddView(BtnHelpClose, Activity.Width - 94"; +mostCurrent._pnlhelp.AddView((android.view.View)(mostCurrent._btnhelpclose.getObject()),(int) (mostCurrent._activity.getWidth()-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (94))),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (8)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (84)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (46))); + //BA.debugLineNum = 302;BA.debugLine="svHelp.Initialize(0)"; +mostCurrent._svhelp.Initialize(mostCurrent.activityBA,(int) (0)); + //BA.debugLineNum = 303;BA.debugLine="pnlHelp.AddView(svHelp, 0, 62dip, Activity.Width,"; +mostCurrent._pnlhelp.AddView((android.view.View)(mostCurrent._svhelp.getObject()),(int) (0),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (62)),mostCurrent._activity.getWidth(),(int) (mostCurrent._activity.getHeight()-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (62)))); + //BA.debugLineNum = 305;BA.debugLine="Dim lblHelp As Label"; +_lblhelp = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 306;BA.debugLine="lblHelp.Initialize(\"\")"; +_lblhelp.Initialize(mostCurrent.activityBA,""); + //BA.debugLineNum = 307;BA.debugLine="lblHelp.Text = BuildHelpText"; +_lblhelp.setText(BA.ObjectToCharSequence(_buildhelptext())); + //BA.debugLineNum = 308;BA.debugLine="lblHelp.TextSize = 16"; +_lblhelp.setTextSize((float) (16)); + //BA.debugLineNum = 309;BA.debugLine="lblHelp.TextColor = Colors.Black"; +_lblhelp.setTextColor(anywheresoftware.b4a.keywords.Common.Colors.Black); + //BA.debugLineNum = 310;BA.debugLine="lblHelp.Gravity = Gravity.TOP"; +_lblhelp.setGravity(anywheresoftware.b4a.keywords.Common.Gravity.TOP); + //BA.debugLineNum = 311;BA.debugLine="svHelp.Panel.AddView(lblHelp, 12dip, 12dip, Activ"; +mostCurrent._svhelp.getPanel().AddView((android.view.View)(_lblhelp.getObject()),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (12)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (12)),(int) (mostCurrent._activity.getWidth()-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (24))),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (1180))); + //BA.debugLineNum = 312;BA.debugLine="svHelp.Panel.Height = 1204dip"; +mostCurrent._svhelp.getPanel().setHeight(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (1204))); + //BA.debugLineNum = 313;BA.debugLine="End Sub"; return ""; } public static String _createstatsbutton() throws Exception{ - //BA.debugLineNum = 149;BA.debugLine="Private Sub CreateStatsButton"; - //BA.debugLineNum = 150;BA.debugLine="BtnStats.Initialize(\"BtnStats\")"; + //BA.debugLineNum = 154;BA.debugLine="Private Sub CreateStatsButton"; + //BA.debugLineNum = 155;BA.debugLine="BtnStats.Initialize(\"BtnStats\")"; mostCurrent._btnstats.Initialize(mostCurrent.activityBA,"BtnStats"); - //BA.debugLineNum = 151;BA.debugLine="BtnStats.Text = Localization.T(\"stats\")"; + //BA.debugLineNum = 156;BA.debugLine="BtnStats.Text = Localization.T(\"stats\")"; mostCurrent._btnstats.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"stats"))); - //BA.debugLineNum = 152;BA.debugLine="Activity.AddView(BtnStats, BtnReset.Left, BtnRese"; + //BA.debugLineNum = 157;BA.debugLine="Activity.AddView(BtnStats, BtnReset.Left, BtnRese"; mostCurrent._activity.AddView((android.view.View)(mostCurrent._btnstats.getObject()),mostCurrent._btnreset.getLeft(),mostCurrent._btnreset.getTop(),mostCurrent._btnreset.getWidth(),mostCurrent._btnreset.getHeight()); - //BA.debugLineNum = 153;BA.debugLine="End Sub"; + //BA.debugLineNum = 158;BA.debugLine="End Sub"; return ""; } public static String _createstatspage() throws Exception{ anywheresoftware.b4a.objects.LabelWrapper _title = null; - //BA.debugLineNum = 155;BA.debugLine="Private Sub CreateStatsPage"; - //BA.debugLineNum = 156;BA.debugLine="pnlStats.Initialize(\"\")"; + //BA.debugLineNum = 160;BA.debugLine="Private Sub CreateStatsPage"; + //BA.debugLineNum = 161;BA.debugLine="pnlStats.Initialize(\"\")"; mostCurrent._pnlstats.Initialize(mostCurrent.activityBA,""); - //BA.debugLineNum = 157;BA.debugLine="pnlStats.Color = Colors.White"; + //BA.debugLineNum = 162;BA.debugLine="pnlStats.Color = Colors.White"; mostCurrent._pnlstats.setColor(anywheresoftware.b4a.keywords.Common.Colors.White); - //BA.debugLineNum = 158;BA.debugLine="pnlStats.Visible = False"; + //BA.debugLineNum = 163;BA.debugLine="pnlStats.Visible = False"; mostCurrent._pnlstats.setVisible(anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 159;BA.debugLine="Activity.AddView(pnlStats, 0, 0, Activity.Width,"; + //BA.debugLineNum = 164;BA.debugLine="Activity.AddView(pnlStats, 0, 0, Activity.Width,"; mostCurrent._activity.AddView((android.view.View)(mostCurrent._pnlstats.getObject()),(int) (0),(int) (0),mostCurrent._activity.getWidth(),mostCurrent._activity.getHeight()); - //BA.debugLineNum = 161;BA.debugLine="Dim title As Label"; + //BA.debugLineNum = 166;BA.debugLine="Dim title As Label"; _title = new anywheresoftware.b4a.objects.LabelWrapper(); - //BA.debugLineNum = 162;BA.debugLine="title.Initialize(\"\")"; + //BA.debugLineNum = 167;BA.debugLine="title.Initialize(\"\")"; _title.Initialize(mostCurrent.activityBA,""); - //BA.debugLineNum = 163;BA.debugLine="title.Text = Localization.T(\"statistics\")"; + //BA.debugLineNum = 168;BA.debugLine="title.Text = Localization.T(\"statistics\")"; _title.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"statistics"))); - //BA.debugLineNum = 164;BA.debugLine="title.TextSize = 22"; + //BA.debugLineNum = 169;BA.debugLine="title.TextSize = 22"; _title.setTextSize((float) (22)); - //BA.debugLineNum = 165;BA.debugLine="title.TextColor = Colors.Black"; + //BA.debugLineNum = 170;BA.debugLine="title.TextColor = Colors.Black"; _title.setTextColor(anywheresoftware.b4a.keywords.Common.Colors.Black); - //BA.debugLineNum = 166;BA.debugLine="title.Gravity = Gravity.CENTER_VERTICAL"; + //BA.debugLineNum = 171;BA.debugLine="title.Gravity = Gravity.CENTER_VERTICAL"; _title.setGravity(anywheresoftware.b4a.keywords.Common.Gravity.CENTER_VERTICAL); - //BA.debugLineNum = 167;BA.debugLine="pnlStats.AddView(title, 12dip, 8dip, Activity.Wid"; + //BA.debugLineNum = 172;BA.debugLine="pnlStats.AddView(title, 12dip, 8dip, Activity.Wid"; mostCurrent._pnlstats.AddView((android.view.View)(_title.getObject()),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (12)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (8)),(int) (mostCurrent._activity.getWidth()-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (110))),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (46))); - //BA.debugLineNum = 169;BA.debugLine="BtnStatsClose.Initialize(\"BtnStatsClose\")"; + //BA.debugLineNum = 174;BA.debugLine="BtnStatsClose.Initialize(\"BtnStatsClose\")"; mostCurrent._btnstatsclose.Initialize(mostCurrent.activityBA,"BtnStatsClose"); - //BA.debugLineNum = 170;BA.debugLine="BtnStatsClose.Text = Localization.T(\"close\")"; + //BA.debugLineNum = 175;BA.debugLine="BtnStatsClose.Text = Localization.T(\"close\")"; mostCurrent._btnstatsclose.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"close"))); - //BA.debugLineNum = 171;BA.debugLine="pnlStats.AddView(BtnStatsClose, Activity.Width -"; + //BA.debugLineNum = 176;BA.debugLine="pnlStats.AddView(BtnStatsClose, Activity.Width -"; mostCurrent._pnlstats.AddView((android.view.View)(mostCurrent._btnstatsclose.getObject()),(int) (mostCurrent._activity.getWidth()-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (94))),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (8)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (84)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (46))); - //BA.debugLineNum = 173;BA.debugLine="svStats.Initialize(0)"; + //BA.debugLineNum = 178;BA.debugLine="svStats.Initialize(0)"; mostCurrent._svstats.Initialize(mostCurrent.activityBA,(int) (0)); - //BA.debugLineNum = 174;BA.debugLine="pnlStats.AddView(svStats, 0, 62dip, Activity.Widt"; + //BA.debugLineNum = 179;BA.debugLine="pnlStats.AddView(svStats, 0, 62dip, Activity.Widt"; mostCurrent._pnlstats.AddView((android.view.View)(mostCurrent._svstats.getObject()),(int) (0),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (62)),mostCurrent._activity.getWidth(),(int) (mostCurrent._activity.getHeight()-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (62)))); - //BA.debugLineNum = 175;BA.debugLine="End Sub"; + //BA.debugLineNum = 180;BA.debugLine="End Sub"; return ""; } public static String _endsession(long _finaltime,boolean _automatic) throws Exception{ - //BA.debugLineNum = 424;BA.debugLine="Private Sub EndSession(FinalTime As Long, Automati"; - //BA.debugLineNum = 425;BA.debugLine="If SessionActive Then CloseCurrentSegment(FinalTi"; + //BA.debugLineNum = 472;BA.debugLine="Private Sub EndSession(FinalTime As Long, Automati"; + //BA.debugLineNum = 473;BA.debugLine="If SessionActive Then CloseCurrentSegment(FinalTi"; if (_sessionactive) { _closecurrentsegment(_finaltime);}; - //BA.debugLineNum = 426;BA.debugLine="SessionActive = False"; + //BA.debugLineNum = 474;BA.debugLine="SessionActive = False"; _sessionactive = anywheresoftware.b4a.keywords.Common.False; - //BA.debugLineNum = 427;BA.debugLine="PauseActive = False"; + //BA.debugLineNum = 475;BA.debugLine="PauseActive = False"; _pauseactive = anywheresoftware.b4a.keywords.Common.False; - //BA.debugLineNum = 428;BA.debugLine="BtnStart.Text = Localization.T(\"start\")"; + //BA.debugLineNum = 476;BA.debugLine="BtnStart.Text = Localization.T(\"start\")"; mostCurrent._btnstart.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"start"))); - //BA.debugLineNum = 429;BA.debugLine="BtnPause.Text = Localization.T(\"pause\")"; + //BA.debugLineNum = 477;BA.debugLine="BtnPause.Text = Localization.T(\"pause\")"; mostCurrent._btnpause.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"pause"))); - //BA.debugLineNum = 430;BA.debugLine="BtnPause.Enabled = False"; + //BA.debugLineNum = 478;BA.debugLine="BtnPause.Enabled = False"; mostCurrent._btnpause.setEnabled(anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 431;BA.debugLine="UpdateMainControlState"; + //BA.debugLineNum = 479;BA.debugLine="UpdateMainControlState"; _updatemaincontrolstate(); - //BA.debugLineNum = 432;BA.debugLine="myClock.ClearActiveSegment"; + //BA.debugLineNum = 480;BA.debugLine="myClock.ClearActiveSegment"; mostCurrent._myclock._clearactivesegment /*String*/ (); - //BA.debugLineNum = 433;BA.debugLine="UpdateElapsedLabel"; + //BA.debugLineNum = 481;BA.debugLine="UpdateElapsedLabel"; _updateelapsedlabel(); - //BA.debugLineNum = 434;BA.debugLine="If File.Exists(File.DirInternal, StateFileName) T"; + //BA.debugLineNum = 482;BA.debugLine="If File.Exists(File.DirInternal, StateFileName) T"; if (anywheresoftware.b4a.keywords.Common.File.Exists(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_statefilename)) { anywheresoftware.b4a.keywords.Common.File.Delete(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_statefilename);}; - //BA.debugLineNum = 435;BA.debugLine="If Automatic Then"; + //BA.debugLineNum = 483;BA.debugLine="If Automatic Then"; if (_automatic) { - //BA.debugLineNum = 436;BA.debugLine="Log(\"Workday stopped automatically.\")"; -anywheresoftware.b4a.keywords.Common.LogImpl("2031628","Workday stopped automatically.",0); + //BA.debugLineNum = 484;BA.debugLine="Log(\"Workday stopped automatically.\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("2228236","Workday stopped automatically.",0); }else { - //BA.debugLineNum = 438;BA.debugLine="Log(\"Workday closed manually.\")"; -anywheresoftware.b4a.keywords.Common.LogImpl("2031630","Workday closed manually.",0); + //BA.debugLineNum = 486;BA.debugLine="Log(\"Workday closed manually.\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("2228238","Workday closed manually.",0); }; - //BA.debugLineNum = 440;BA.debugLine="End Sub"; + //BA.debugLineNum = 488;BA.debugLine="End Sub"; return ""; } public static String _formatdayshort(long _ticks) throws Exception{ - //BA.debugLineNum = 591;BA.debugLine="Private Sub FormatDayShort(ticks As Long) As Strin"; - //BA.debugLineNum = 592;BA.debugLine="Return NumberFormat(DateTime.GetDayOfMonth(ticks)"; + //BA.debugLineNum = 639;BA.debugLine="Private Sub FormatDayShort(ticks As Long) As Strin"; + //BA.debugLineNum = 640;BA.debugLine="Return NumberFormat(DateTime.GetDayOfMonth(ticks)"; if (true) return anywheresoftware.b4a.keywords.Common.NumberFormat(anywheresoftware.b4a.keywords.Common.DateTime.GetDayOfMonth(_ticks),(int) (2),(int) (0))+"/"+anywheresoftware.b4a.keywords.Common.NumberFormat(anywheresoftware.b4a.keywords.Common.DateTime.GetMonth(_ticks),(int) (2),(int) (0)); - //BA.debugLineNum = 593;BA.debugLine="End Sub"; + //BA.debugLineNum = 641;BA.debugLine="End Sub"; return ""; } public static String _formatelapsedtime(long _ms) throws Exception{ int _seconds = 0; int _minutes = 0; int _hours = 0; - //BA.debugLineNum = 299;BA.debugLine="Sub FormatElapsedTime(ms As Long) As String"; - //BA.debugLineNum = 300;BA.debugLine="Dim seconds As Int = ms / 1000"; + //BA.debugLineNum = 339;BA.debugLine="Sub FormatElapsedTime(ms As Long) As String"; + //BA.debugLineNum = 340;BA.debugLine="Dim seconds As Int = ms / 1000"; _seconds = (int) (_ms/(double)1000); - //BA.debugLineNum = 301;BA.debugLine="Dim minutes As Int = seconds / 60"; + //BA.debugLineNum = 341;BA.debugLine="Dim minutes As Int = seconds / 60"; _minutes = (int) (_seconds/(double)60); - //BA.debugLineNum = 302;BA.debugLine="Dim hours As Int = minutes / 60"; + //BA.debugLineNum = 342;BA.debugLine="Dim hours As Int = minutes / 60"; _hours = (int) (_minutes/(double)60); - //BA.debugLineNum = 303;BA.debugLine="seconds = seconds Mod 60"; + //BA.debugLineNum = 343;BA.debugLine="seconds = seconds Mod 60"; _seconds = (int) (_seconds%60); - //BA.debugLineNum = 304;BA.debugLine="minutes = minutes Mod 60"; + //BA.debugLineNum = 344;BA.debugLine="minutes = minutes Mod 60"; _minutes = (int) (_minutes%60); - //BA.debugLineNum = 305;BA.debugLine="Return NumberFormat(hours, 2, 0) & \":\" & Numbe"; + //BA.debugLineNum = 345;BA.debugLine="Return NumberFormat(hours, 2, 0) & \":\" & Numbe"; if (true) return anywheresoftware.b4a.keywords.Common.NumberFormat(_hours,(int) (2),(int) (0))+":"+anywheresoftware.b4a.keywords.Common.NumberFormat(_minutes,(int) (2),(int) (0))+":"+anywheresoftware.b4a.keywords.Common.NumberFormat(_seconds,(int) (2),(int) (0)); - //BA.debugLineNum = 306;BA.debugLine="End Sub"; + //BA.debugLineNum = 346;BA.debugLine="End Sub"; return ""; } public static int _getcurrentworkcolor() throws Exception{ - //BA.debugLineNum = 534;BA.debugLine="Private Sub GetCurrentWorkColor As Int"; - //BA.debugLineNum = 535;BA.debugLine="If ProductiveElapsedMs < FirstWorkLimitMs Then Re"; + //BA.debugLineNum = 582;BA.debugLine="Private Sub GetCurrentWorkColor As Int"; + //BA.debugLineNum = 583;BA.debugLine="If ProductiveElapsedMs < FirstWorkLimitMs Then Re"; if (_productiveelapsedms<_firstworklimitms) { if (true) return _workmorningcolor;}; - //BA.debugLineNum = 536;BA.debugLine="If ProductiveElapsedMs < WorkLimitMs Then Return"; + //BA.debugLineNum = 584;BA.debugLine="If ProductiveElapsedMs < WorkLimitMs Then Return"; if (_productiveelapsedms<_worklimitms) { if (true) return anywheresoftware.b4a.keywords.Common.Colors.Green;}; - //BA.debugLineNum = 537;BA.debugLine="Return Colors.Red"; + //BA.debugLineNum = 585;BA.debugLine="Return Colors.Red"; if (true) return anywheresoftware.b4a.keywords.Common.Colors.Red; - //BA.debugLineNum = 538;BA.debugLine="End Sub"; + //BA.debugLineNum = 586;BA.debugLine="End Sub"; return 0; } public static long _getdisplayedproductiveelapsed(long _now) throws Exception{ long _total = 0L; - //BA.debugLineNum = 595;BA.debugLine="Private Sub GetDisplayedProductiveElapsed(now As L"; - //BA.debugLineNum = 596;BA.debugLine="Dim total As Long = ProductiveElapsedMs"; + //BA.debugLineNum = 643;BA.debugLine="Private Sub GetDisplayedProductiveElapsed(now As L"; + //BA.debugLineNum = 644;BA.debugLine="Dim total As Long = ProductiveElapsedMs"; _total = _productiveelapsedms; - //BA.debugLineNum = 597;BA.debugLine="If SessionActive And PauseActive = False Then tot"; + //BA.debugLineNum = 645;BA.debugLine="If SessionActive And PauseActive = False Then tot"; if (_sessionactive && _pauseactive==anywheresoftware.b4a.keywords.Common.False) { _total = (long) (_total+anywheresoftware.b4a.keywords.Common.Max(0,_now-_currentsegmentstart));}; - //BA.debugLineNum = 598;BA.debugLine="Return total"; + //BA.debugLineNum = 646;BA.debugLine="Return total"; if (true) return _total; - //BA.debugLineNum = 599;BA.debugLine="End Sub"; + //BA.debugLineNum = 647;BA.debugLine="End Sub"; return 0L; } public static long _getdisplayedworkdaystart() throws Exception{ - //BA.debugLineNum = 586;BA.debugLine="Private Sub GetDisplayedWorkDayStart As Long"; - //BA.debugLineNum = 587;BA.debugLine="If CurrentWorkDayStart > 0 Then Return CurrentWor"; + //BA.debugLineNum = 634;BA.debugLine="Private Sub GetDisplayedWorkDayStart As Long"; + //BA.debugLineNum = 635;BA.debugLine="If CurrentWorkDayStart > 0 Then Return CurrentWor"; if (_currentworkdaystart>0) { if (true) return _currentworkdaystart;}; - //BA.debugLineNum = 588;BA.debugLine="Return GetLatestWorkDayStart"; + //BA.debugLineNum = 636;BA.debugLine="Return GetLatestWorkDayStart"; if (true) return _getlatestworkdaystart(); - //BA.debugLineNum = 589;BA.debugLine="End Sub"; + //BA.debugLineNum = 637;BA.debugLine="End Sub"; return 0L; } public static long _getlatestworkdaystart() throws Exception{ long _latestdaystart = 0L; anywheresoftware.b4a.objects.collections.Map _row = null; long _daystart = 0L; - //BA.debugLineNum = 665;BA.debugLine="Private Sub GetLatestWorkDayStart As Long"; - //BA.debugLineNum = 666;BA.debugLine="Dim latestDayStart As Long = 0"; + //BA.debugLineNum = 713;BA.debugLine="Private Sub GetLatestWorkDayStart As Long"; + //BA.debugLineNum = 714;BA.debugLine="Dim latestDayStart As Long = 0"; _latestdaystart = (long) (0); - //BA.debugLineNum = 667;BA.debugLine="For Each row As Map In StatsRows"; + //BA.debugLineNum = 715;BA.debugLine="For Each row As Map In StatsRows"; _row = new anywheresoftware.b4a.objects.collections.Map(); { final anywheresoftware.b4a.BA.IterableList group2 = mostCurrent._statsrows; @@ -1321,46 +1409,46 @@ final int groupLen2 = group2.getSize() ; for (; index2 < groupLen2;index2++){ _row = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(group2.Get(index2))); - //BA.debugLineNum = 668;BA.debugLine="Dim dayStart As Long = row.Get(\"dayStart\")"; + //BA.debugLineNum = 716;BA.debugLine="Dim dayStart As Long = row.Get(\"dayStart\")"; _daystart = BA.ObjectToLongNumber(_row.Get((Object)("dayStart"))); - //BA.debugLineNum = 669;BA.debugLine="If dayStart > latestDayStart Then latestDayStart"; + //BA.debugLineNum = 717;BA.debugLine="If dayStart > latestDayStart Then latestDayStart"; if (_daystart>_latestdaystart) { _latestdaystart = _daystart;}; } }; - //BA.debugLineNum = 671;BA.debugLine="Return latestDayStart"; + //BA.debugLineNum = 719;BA.debugLine="Return latestDayStart"; if (true) return _latestdaystart; - //BA.debugLineNum = 672;BA.debugLine="End Sub"; + //BA.debugLineNum = 720;BA.debugLine="End Sub"; return 0L; } public static long _getnextmidnight(long _ticks) throws Exception{ - //BA.debugLineNum = 674;BA.debugLine="Private Sub GetNextMidnight(ticks As Long) As Long"; - //BA.debugLineNum = 675;BA.debugLine="Return DateTime.DateParse(DateTime.Date(ticks)) +"; + //BA.debugLineNum = 722;BA.debugLine="Private Sub GetNextMidnight(ticks As Long) As Long"; + //BA.debugLineNum = 723;BA.debugLine="Return DateTime.DateParse(DateTime.Date(ticks)) +"; if (true) return (long) (anywheresoftware.b4a.keywords.Common.DateTime.DateParse(anywheresoftware.b4a.keywords.Common.DateTime.Date(_ticks))+anywheresoftware.b4a.keywords.Common.DateTime.TicksPerDay); - //BA.debugLineNum = 676;BA.debugLine="End Sub"; + //BA.debugLineNum = 724;BA.debugLine="End Sub"; return 0L; } public static long _getnextworkboundary() throws Exception{ - //BA.debugLineNum = 540;BA.debugLine="Private Sub GetNextWorkBoundary As Long"; - //BA.debugLineNum = 541;BA.debugLine="If ProductiveElapsedMs < FirstWorkLimitMs Then Re"; + //BA.debugLineNum = 588;BA.debugLine="Private Sub GetNextWorkBoundary As Long"; + //BA.debugLineNum = 589;BA.debugLine="If ProductiveElapsedMs < FirstWorkLimitMs Then Re"; if (_productiveelapsedms<_firstworklimitms) { if (true) return _firstworklimitms;}; - //BA.debugLineNum = 542;BA.debugLine="If ProductiveElapsedMs < WorkLimitMs Then Return"; + //BA.debugLineNum = 590;BA.debugLine="If ProductiveElapsedMs < WorkLimitMs Then Return"; if (_productiveelapsedms<_worklimitms) { if (true) return _worklimitms;}; - //BA.debugLineNum = 543;BA.debugLine="Return MaxProductiveMs"; + //BA.debugLineNum = 591;BA.debugLine="Return MaxProductiveMs"; if (true) return _maxproductivems; - //BA.debugLineNum = 544;BA.debugLine="End Sub"; + //BA.debugLineNum = 592;BA.debugLine="End Sub"; return 0L; } public static long _getproductivetotalforworkday(long _daykey) throws Exception{ long _total = 0L; anywheresoftware.b4a.objects.collections.Map _row = null; String _category = ""; - //BA.debugLineNum = 601;BA.debugLine="Private Sub GetProductiveTotalForWorkDay(DayKey As"; - //BA.debugLineNum = 602;BA.debugLine="Dim total As Long = 0"; + //BA.debugLineNum = 649;BA.debugLine="Private Sub GetProductiveTotalForWorkDay(DayKey As"; + //BA.debugLineNum = 650;BA.debugLine="Dim total As Long = 0"; _total = (long) (0); - //BA.debugLineNum = 603;BA.debugLine="For Each row As Map In StatsRows"; + //BA.debugLineNum = 651;BA.debugLine="For Each row As Map In StatsRows"; _row = new anywheresoftware.b4a.objects.collections.Map(); { final anywheresoftware.b4a.BA.IterableList group2 = mostCurrent._statsrows; @@ -1369,32 +1457,32 @@ final int groupLen2 = group2.getSize() ; for (; index2 < groupLen2;index2++){ _row = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(group2.Get(index2))); - //BA.debugLineNum = 604;BA.debugLine="If row.Get(\"dayKey\") = DayKey Then"; + //BA.debugLineNum = 652;BA.debugLine="If row.Get(\"dayKey\") = DayKey Then"; if ((_row.Get((Object)("dayKey"))).equals((Object)(_daykey))) { - //BA.debugLineNum = 605;BA.debugLine="Dim category As String = row.Get(\"category\")"; + //BA.debugLineNum = 653;BA.debugLine="Dim category As String = row.Get(\"category\")"; _category = BA.ObjectToString(_row.Get((Object)("category"))); - //BA.debugLineNum = 606;BA.debugLine="If category = \"lavoro\" Or category = \"straordin"; + //BA.debugLineNum = 654;BA.debugLine="If category = \"lavoro\" Or category = \"straordin"; if ((_category).equals("lavoro") || (_category).equals("straordinario")) { _total = (long) (_total+(double)(BA.ObjectToNumber(_row.Get((Object)("duration")))));}; }; } }; - //BA.debugLineNum = 609;BA.debugLine="Return total"; + //BA.debugLineNum = 657;BA.debugLine="Return total"; if (true) return _total; - //BA.debugLineNum = 610;BA.debugLine="End Sub"; + //BA.debugLineNum = 658;BA.debugLine="End Sub"; return 0L; } public static String _getsegmentcategory(int _segmentcolor,boolean _ispausesegment) throws Exception{ - //BA.debugLineNum = 528;BA.debugLine="Private Sub GetSegmentCategory(SegmentColor As Int"; - //BA.debugLineNum = 529;BA.debugLine="If IsPauseSegment Then Return \"pausa\""; + //BA.debugLineNum = 576;BA.debugLine="Private Sub GetSegmentCategory(SegmentColor As Int"; + //BA.debugLineNum = 577;BA.debugLine="If IsPauseSegment Then Return \"pausa\""; if (_ispausesegment) { if (true) return "pausa";}; - //BA.debugLineNum = 530;BA.debugLine="If SegmentColor = Colors.Red Then Return \"straord"; + //BA.debugLineNum = 578;BA.debugLine="If SegmentColor = Colors.Red Then Return \"straord"; if (_segmentcolor==anywheresoftware.b4a.keywords.Common.Colors.Red) { if (true) return "straordinario";}; - //BA.debugLineNum = 531;BA.debugLine="Return \"lavoro\""; + //BA.debugLineNum = 579;BA.debugLine="Return \"lavoro\""; if (true) return "lavoro"; - //BA.debugLineNum = 532;BA.debugLine="End Sub"; + //BA.debugLineNum = 580;BA.debugLine="End Sub"; return ""; } public static long _getworkdaystart(long _now) throws Exception{ @@ -1402,12 +1490,12 @@ long _latestdaystart = 0L; String _today = ""; anywheresoftware.b4a.objects.collections.Map _row = null; long _daystart = 0L; - //BA.debugLineNum = 652;BA.debugLine="Private Sub GetWorkDayStart(now As Long) As Long"; - //BA.debugLineNum = 653;BA.debugLine="Dim latestDayStart As Long = 0"; + //BA.debugLineNum = 700;BA.debugLine="Private Sub GetWorkDayStart(now As Long) As Long"; + //BA.debugLineNum = 701;BA.debugLine="Dim latestDayStart As Long = 0"; _latestdaystart = (long) (0); - //BA.debugLineNum = 654;BA.debugLine="Dim today As String = DateTime.Date(now)"; + //BA.debugLineNum = 702;BA.debugLine="Dim today As String = DateTime.Date(now)"; _today = anywheresoftware.b4a.keywords.Common.DateTime.Date(_now); - //BA.debugLineNum = 655;BA.debugLine="For Each row As Map In StatsRows"; + //BA.debugLineNum = 703;BA.debugLine="For Each row As Map In StatsRows"; _row = new anywheresoftware.b4a.objects.collections.Map(); { final anywheresoftware.b4a.BA.IterableList group3 = mostCurrent._statsrows; @@ -1416,21 +1504,21 @@ final int groupLen3 = group3.getSize() ; for (; index3 < groupLen3;index3++){ _row = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(group3.Get(index3))); - //BA.debugLineNum = 656;BA.debugLine="Dim dayStart As Long = row.Get(\"dayStart\")"; + //BA.debugLineNum = 704;BA.debugLine="Dim dayStart As Long = row.Get(\"dayStart\")"; _daystart = BA.ObjectToLongNumber(_row.Get((Object)("dayStart"))); - //BA.debugLineNum = 657;BA.debugLine="If dayStart > latestDayStart And DateTime.Date(d"; + //BA.debugLineNum = 705;BA.debugLine="If dayStart > latestDayStart And DateTime.Date(d"; if (_daystart>_latestdaystart && (anywheresoftware.b4a.keywords.Common.DateTime.Date(_daystart)).equals(_today)) { - //BA.debugLineNum = 658;BA.debugLine="latestDayStart = dayStart"; + //BA.debugLineNum = 706;BA.debugLine="latestDayStart = dayStart"; _latestdaystart = _daystart; }; } }; - //BA.debugLineNum = 661;BA.debugLine="If latestDayStart > 0 Then Return latestDayStart"; + //BA.debugLineNum = 709;BA.debugLine="If latestDayStart > 0 Then Return latestDayStart"; if (_latestdaystart>0) { if (true) return _latestdaystart;}; - //BA.debugLineNum = 662;BA.debugLine="Return now"; + //BA.debugLineNum = 710;BA.debugLine="Return now"; if (true) return _now; - //BA.debugLineNum = 663;BA.debugLine="End Sub"; + //BA.debugLineNum = 711;BA.debugLine="End Sub"; return 0L; } public static String _globals() throws Exception{ @@ -1457,111 +1545,119 @@ mostCurrent._btnconfigsave = new anywheresoftware.b4a.objects.ButtonWrapper(); mostCurrent._btnconfigreset = new anywheresoftware.b4a.objects.ButtonWrapper(); //BA.debugLineNum = 36;BA.debugLine="Private BtnClearToday As Button"; mostCurrent._btncleartoday = new anywheresoftware.b4a.objects.ButtonWrapper(); - //BA.debugLineNum = 37;BA.debugLine="Private BtnBackground As Label"; + //BA.debugLineNum = 37;BA.debugLine="Private BtnHelpOpen As Button"; +mostCurrent._btnhelpopen = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 38;BA.debugLine="Private BtnHelpClose As Button"; +mostCurrent._btnhelpclose = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 39;BA.debugLine="Private BtnBackground As Label"; mostCurrent._btnbackground = new anywheresoftware.b4a.objects.LabelWrapper(); - //BA.debugLineNum = 38;BA.debugLine="Private lblElapsedTime As Label"; + //BA.debugLineNum = 40;BA.debugLine="Private lblElapsedTime As Label"; mostCurrent._lblelapsedtime = new anywheresoftware.b4a.objects.LabelWrapper(); - //BA.debugLineNum = 39;BA.debugLine="Private lblAutoStatus As Label"; + //BA.debugLineNum = 41;BA.debugLine="Private lblAutoStatus As Label"; mostCurrent._lblautostatus = new anywheresoftware.b4a.objects.LabelWrapper(); - //BA.debugLineNum = 40;BA.debugLine="Private pnlClock As Panel"; + //BA.debugLineNum = 42;BA.debugLine="Private pnlClock As Panel"; mostCurrent._pnlclock = new anywheresoftware.b4a.objects.PanelWrapper(); - //BA.debugLineNum = 41;BA.debugLine="Private pnlStats As Panel"; + //BA.debugLineNum = 43;BA.debugLine="Private pnlStats As Panel"; mostCurrent._pnlstats = new anywheresoftware.b4a.objects.PanelWrapper(); - //BA.debugLineNum = 42;BA.debugLine="Private pnlConfig As Panel"; + //BA.debugLineNum = 44;BA.debugLine="Private pnlConfig As Panel"; mostCurrent._pnlconfig = new anywheresoftware.b4a.objects.PanelWrapper(); - //BA.debugLineNum = 43;BA.debugLine="Private svStats As ScrollView"; + //BA.debugLineNum = 45;BA.debugLine="Private pnlHelp As Panel"; +mostCurrent._pnlhelp = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 46;BA.debugLine="Private svStats As ScrollView"; mostCurrent._svstats = new anywheresoftware.b4a.objects.ScrollViewWrapper(); - //BA.debugLineNum = 44;BA.debugLine="Private txtCfgStart As EditText"; + //BA.debugLineNum = 47;BA.debugLine="Private svHelp As ScrollView"; +mostCurrent._svhelp = new anywheresoftware.b4a.objects.ScrollViewWrapper(); + //BA.debugLineNum = 48;BA.debugLine="Private txtCfgStart As EditText"; mostCurrent._txtcfgstart = new anywheresoftware.b4a.objects.EditTextWrapper(); - //BA.debugLineNum = 45;BA.debugLine="Private txtCfgPauseStart As EditText"; + //BA.debugLineNum = 49;BA.debugLine="Private txtCfgPauseStart As EditText"; mostCurrent._txtcfgpausestart = new anywheresoftware.b4a.objects.EditTextWrapper(); - //BA.debugLineNum = 46;BA.debugLine="Private txtCfgPauseEnd As EditText"; + //BA.debugLineNum = 50;BA.debugLine="Private txtCfgPauseEnd As EditText"; mostCurrent._txtcfgpauseend = new anywheresoftware.b4a.objects.EditTextWrapper(); - //BA.debugLineNum = 47;BA.debugLine="Private txtCfgEnd As EditText"; + //BA.debugLineNum = 51;BA.debugLine="Private txtCfgEnd As EditText"; mostCurrent._txtcfgend = new anywheresoftware.b4a.objects.EditTextWrapper(); - //BA.debugLineNum = 48;BA.debugLine="Private myClock As AnalogClock"; + //BA.debugLineNum = 52;BA.debugLine="Private myClock As AnalogClock"; mostCurrent._myclock = new b4a.example.analogclock(); - //BA.debugLineNum = 50;BA.debugLine="Private SessionActive As Boolean"; + //BA.debugLineNum = 54;BA.debugLine="Private SessionActive As Boolean"; _sessionactive = false; - //BA.debugLineNum = 51;BA.debugLine="Private PauseActive As Boolean"; + //BA.debugLineNum = 55;BA.debugLine="Private PauseActive As Boolean"; _pauseactive = false; - //BA.debugLineNum = 52;BA.debugLine="Private ProductiveElapsedMs As Long"; + //BA.debugLineNum = 56;BA.debugLine="Private ProductiveElapsedMs As Long"; _productiveelapsedms = 0L; - //BA.debugLineNum = 53;BA.debugLine="Private CurrentSegmentStart As Long"; + //BA.debugLineNum = 57;BA.debugLine="Private CurrentSegmentStart As Long"; _currentsegmentstart = 0L; - //BA.debugLineNum = 54;BA.debugLine="Private CurrentSegmentColor As Int"; + //BA.debugLineNum = 58;BA.debugLine="Private CurrentSegmentColor As Int"; _currentsegmentcolor = 0; - //BA.debugLineNum = 55;BA.debugLine="Private StatsRows As List"; + //BA.debugLineNum = 59;BA.debugLine="Private StatsRows As List"; mostCurrent._statsrows = new anywheresoftware.b4a.objects.collections.List(); - //BA.debugLineNum = 56;BA.debugLine="Private WorkMorningColor As Int"; + //BA.debugLineNum = 60;BA.debugLine="Private WorkMorningColor As Int"; _workmorningcolor = 0; - //BA.debugLineNum = 57;BA.debugLine="Private CurrentWorkDayStart As Long"; + //BA.debugLineNum = 61;BA.debugLine="Private CurrentWorkDayStart As Long"; _currentworkdaystart = 0L; - //BA.debugLineNum = 58;BA.debugLine="Private CurrentWorkDayKey As Long"; + //BA.debugLineNum = 62;BA.debugLine="Private CurrentWorkDayKey As Long"; _currentworkdaykey = 0L; - //BA.debugLineNum = 59;BA.debugLine="Private AutoModeEnabled As Boolean"; + //BA.debugLineNum = 63;BA.debugLine="Private AutoModeEnabled As Boolean"; _automodeenabled = false; - //BA.debugLineNum = 60;BA.debugLine="Private AutoStartMinutes As Int"; + //BA.debugLineNum = 64;BA.debugLine="Private AutoStartMinutes As Int"; _autostartminutes = 0; - //BA.debugLineNum = 61;BA.debugLine="Private AutoPauseStartMinutes As Int"; + //BA.debugLineNum = 65;BA.debugLine="Private AutoPauseStartMinutes As Int"; _autopausestartminutes = 0; - //BA.debugLineNum = 62;BA.debugLine="Private AutoPauseEndMinutes As Int"; + //BA.debugLineNum = 66;BA.debugLine="Private AutoPauseEndMinutes As Int"; _autopauseendminutes = 0; - //BA.debugLineNum = 63;BA.debugLine="Private AutoEndMinutes As Int"; + //BA.debugLineNum = 67;BA.debugLine="Private AutoEndMinutes As Int"; _autoendminutes = 0; - //BA.debugLineNum = 64;BA.debugLine="Private AutoState As String"; + //BA.debugLineNum = 68;BA.debugLine="Private AutoState As String"; mostCurrent._autostate = ""; - //BA.debugLineNum = 65;BA.debugLine="Private LastActiveStateSaveAt As Long"; + //BA.debugLineNum = 69;BA.debugLine="Private LastActiveStateSaveAt As Long"; _lastactivestatesaveat = 0L; - //BA.debugLineNum = 66;BA.debugLine="End Sub"; + //BA.debugLineNum = 70;BA.debugLine="End Sub"; return ""; } public static String _hidelegacybuttons() throws Exception{ int _i = 0; anywheresoftware.b4a.objects.ConcreteViewWrapper _v = null; anywheresoftware.b4a.objects.ButtonWrapper _legacy = null; - //BA.debugLineNum = 830;BA.debugLine="Private Sub HideLegacyButtons"; - //BA.debugLineNum = 831;BA.debugLine="If BtnReset.IsInitialized Then"; + //BA.debugLineNum = 880;BA.debugLine="Private Sub HideLegacyButtons"; + //BA.debugLineNum = 881;BA.debugLine="If BtnReset.IsInitialized Then"; if (mostCurrent._btnreset.IsInitialized()) { - //BA.debugLineNum = 832;BA.debugLine="BtnReset.Enabled = False"; + //BA.debugLineNum = 882;BA.debugLine="BtnReset.Enabled = False"; mostCurrent._btnreset.setEnabled(anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 833;BA.debugLine="BtnReset.Visible = False"; + //BA.debugLineNum = 883;BA.debugLine="BtnReset.Visible = False"; mostCurrent._btnreset.setVisible(anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 834;BA.debugLine="BtnReset.SetLayout(-200dip, -200dip, 1dip, 1dip)"; + //BA.debugLineNum = 884;BA.debugLine="BtnReset.SetLayout(-200dip, -200dip, 1dip, 1dip)"; mostCurrent._btnreset.SetLayout((int) (-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (200))),(int) (-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (200))),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (1)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (1))); }; - //BA.debugLineNum = 836;BA.debugLine="If BtnSync.IsInitialized Then"; + //BA.debugLineNum = 886;BA.debugLine="If BtnSync.IsInitialized Then"; if (mostCurrent._btnsync.IsInitialized()) { - //BA.debugLineNum = 837;BA.debugLine="BtnSync.Enabled = False"; + //BA.debugLineNum = 887;BA.debugLine="BtnSync.Enabled = False"; mostCurrent._btnsync.setEnabled(anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 838;BA.debugLine="BtnSync.Visible = False"; + //BA.debugLineNum = 888;BA.debugLine="BtnSync.Visible = False"; mostCurrent._btnsync.setVisible(anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 839;BA.debugLine="BtnSync.SetLayout(-200dip, -200dip, 1dip, 1dip)"; + //BA.debugLineNum = 889;BA.debugLine="BtnSync.SetLayout(-200dip, -200dip, 1dip, 1dip)"; mostCurrent._btnsync.SetLayout((int) (-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (200))),(int) (-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (200))),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (1)),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (1))); }; - //BA.debugLineNum = 841;BA.debugLine="For i = Activity.NumberOfViews - 1 To 0 Step -1"; + //BA.debugLineNum = 891;BA.debugLine="For i = Activity.NumberOfViews - 1 To 0 Step -1"; { final int step11 = -1; final int limit11 = (int) (0); _i = (int) (mostCurrent._activity.getNumberOfViews()-1) ; for (;_i >= limit11 ;_i = _i + step11 ) { - //BA.debugLineNum = 842;BA.debugLine="Dim v As View = Activity.GetView(i)"; + //BA.debugLineNum = 892;BA.debugLine="Dim v As View = Activity.GetView(i)"; _v = new anywheresoftware.b4a.objects.ConcreteViewWrapper(); _v = mostCurrent._activity.GetView(_i); - //BA.debugLineNum = 843;BA.debugLine="If v Is Button Then"; + //BA.debugLineNum = 893;BA.debugLine="If v Is Button Then"; if (_v.getObjectOrNull() instanceof android.widget.Button) { - //BA.debugLineNum = 844;BA.debugLine="Dim legacy As Button = v"; + //BA.debugLineNum = 894;BA.debugLine="Dim legacy As Button = v"; _legacy = new anywheresoftware.b4a.objects.ButtonWrapper(); _legacy = (anywheresoftware.b4a.objects.ButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ButtonWrapper(), (android.widget.Button)(_v.getObject())); - //BA.debugLineNum = 845;BA.debugLine="If legacy.Text = \"Sync\" Or legacy.Text = \"Reset"; + //BA.debugLineNum = 895;BA.debugLine="If legacy.Text = \"Sync\" Or legacy.Text = \"Reset"; if ((_legacy.getText()).equals("Sync") || (_legacy.getText()).equals("Reset")) { - //BA.debugLineNum = 846;BA.debugLine="legacy.RemoveView"; + //BA.debugLineNum = 896;BA.debugLine="legacy.RemoveView"; _legacy.RemoveView(); }; }; } }; - //BA.debugLineNum = 850;BA.debugLine="End Sub"; + //BA.debugLineNum = 900;BA.debugLine="End Sub"; return ""; } public static String _layoutmainbuttons() throws Exception{ @@ -1574,97 +1670,97 @@ int _row2top = 0; int _row1top = 0; int _widebuttonwidth = 0; int _smallbuttonwidth = 0; - //BA.debugLineNum = 189;BA.debugLine="Private Sub LayoutMainButtons"; - //BA.debugLineNum = 190;BA.debugLine="Dim margin As Int = 8dip"; + //BA.debugLineNum = 194;BA.debugLine="Private Sub LayoutMainButtons"; + //BA.debugLineNum = 195;BA.debugLine="Dim margin As Int = 8dip"; _margin = anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (8)); - //BA.debugLineNum = 191;BA.debugLine="Dim gap As Int = 8dip"; + //BA.debugLineNum = 196;BA.debugLine="Dim gap As Int = 8dip"; _gap = anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (8)); - //BA.debugLineNum = 192;BA.debugLine="Dim rowGap As Int = 8dip"; + //BA.debugLineNum = 197;BA.debugLine="Dim rowGap As Int = 8dip"; _rowgap = anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (8)); - //BA.debugLineNum = 193;BA.debugLine="Dim buttonHeight As Int = 48dip"; + //BA.debugLineNum = 198;BA.debugLine="Dim buttonHeight As Int = 48dip"; _buttonheight = anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (48)); - //BA.debugLineNum = 194;BA.debugLine="Dim labelTop As Int = Activity.Height - 28dip"; + //BA.debugLineNum = 199;BA.debugLine="Dim labelTop As Int = Activity.Height - 28dip"; _labeltop = (int) (mostCurrent._activity.getHeight()-anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (28))); - //BA.debugLineNum = 195;BA.debugLine="Dim row2Top As Int = labelTop - gap - buttonHeigh"; + //BA.debugLineNum = 200;BA.debugLine="Dim row2Top As Int = labelTop - gap - buttonHeigh"; _row2top = (int) (_labeltop-_gap-_buttonheight); - //BA.debugLineNum = 196;BA.debugLine="Dim row1Top As Int = row2Top - rowGap - buttonHei"; + //BA.debugLineNum = 201;BA.debugLine="Dim row1Top As Int = row2Top - rowGap - buttonHei"; _row1top = (int) (_row2top-_rowgap-_buttonheight); - //BA.debugLineNum = 197;BA.debugLine="Dim wideButtonWidth As Int = (Activity.Width - (2"; + //BA.debugLineNum = 202;BA.debugLine="Dim wideButtonWidth As Int = (Activity.Width - (2"; _widebuttonwidth = (int) ((mostCurrent._activity.getWidth()-(2*_margin)-_gap)/(double)2); - //BA.debugLineNum = 198;BA.debugLine="Dim smallButtonWidth As Int = (Activity.Width - ("; + //BA.debugLineNum = 203;BA.debugLine="Dim smallButtonWidth As Int = (Activity.Width - ("; _smallbuttonwidth = (int) ((mostCurrent._activity.getWidth()-(2*_margin)-(2*_gap))/(double)3); - //BA.debugLineNum = 200;BA.debugLine="BtnStart.TextSize = 16"; + //BA.debugLineNum = 205;BA.debugLine="BtnStart.TextSize = 16"; mostCurrent._btnstart.setTextSize((float) (16)); - //BA.debugLineNum = 201;BA.debugLine="BtnPause.TextSize = 16"; + //BA.debugLineNum = 206;BA.debugLine="BtnPause.TextSize = 16"; mostCurrent._btnpause.setTextSize((float) (16)); - //BA.debugLineNum = 202;BA.debugLine="BtnBackground.TextSize = 15"; + //BA.debugLineNum = 207;BA.debugLine="BtnBackground.TextSize = 15"; mostCurrent._btnbackground.setTextSize((float) (15)); - //BA.debugLineNum = 203;BA.debugLine="BtnStats.TextSize = 15"; + //BA.debugLineNum = 208;BA.debugLine="BtnStats.TextSize = 15"; mostCurrent._btnstats.setTextSize((float) (15)); - //BA.debugLineNum = 204;BA.debugLine="BtnConfig.TextSize = 15"; + //BA.debugLineNum = 209;BA.debugLine="BtnConfig.TextSize = 15"; mostCurrent._btnconfig.setTextSize((float) (15)); - //BA.debugLineNum = 205;BA.debugLine="StyleNeutralButton(BtnPause)"; + //BA.debugLineNum = 210;BA.debugLine="StyleNeutralButton(BtnPause)"; _styleneutralbutton((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(mostCurrent._btnpause.getObject()))); - //BA.debugLineNum = 206;BA.debugLine="StyleNeutralButton(BtnBackground)"; + //BA.debugLineNum = 211;BA.debugLine="StyleNeutralButton(BtnBackground)"; _styleneutralbutton(mostCurrent._btnbackground); - //BA.debugLineNum = 207;BA.debugLine="StyleNeutralButton(BtnStats)"; + //BA.debugLineNum = 212;BA.debugLine="StyleNeutralButton(BtnStats)"; _styleneutralbutton(mostCurrent._btnstats); - //BA.debugLineNum = 208;BA.debugLine="StyleNeutralButton(BtnConfig)"; + //BA.debugLineNum = 213;BA.debugLine="StyleNeutralButton(BtnConfig)"; _styleneutralbutton(mostCurrent._btnconfig); - //BA.debugLineNum = 210;BA.debugLine="BtnStart.SetLayout(margin, row1Top, wideButtonWid"; + //BA.debugLineNum = 215;BA.debugLine="BtnStart.SetLayout(margin, row1Top, wideButtonWid"; mostCurrent._btnstart.SetLayout(_margin,_row1top,_widebuttonwidth,_buttonheight); - //BA.debugLineNum = 211;BA.debugLine="BtnPause.SetLayout(margin + wideButtonWidth + gap"; + //BA.debugLineNum = 216;BA.debugLine="BtnPause.SetLayout(margin + wideButtonWidth + gap"; mostCurrent._btnpause.SetLayout((int) (_margin+_widebuttonwidth+_gap),_row1top,_widebuttonwidth,_buttonheight); - //BA.debugLineNum = 212;BA.debugLine="BtnBackground.SetLayout(margin, row2Top, smallBut"; + //BA.debugLineNum = 217;BA.debugLine="BtnBackground.SetLayout(margin, row2Top, smallBut"; mostCurrent._btnbackground.SetLayout(_margin,_row2top,_smallbuttonwidth,_buttonheight); - //BA.debugLineNum = 213;BA.debugLine="BtnStats.SetLayout(margin + smallButtonWidth + ga"; + //BA.debugLineNum = 218;BA.debugLine="BtnStats.SetLayout(margin + smallButtonWidth + ga"; mostCurrent._btnstats.SetLayout((int) (_margin+_smallbuttonwidth+_gap),_row2top,_smallbuttonwidth,_buttonheight); - //BA.debugLineNum = 214;BA.debugLine="BtnConfig.SetLayout(margin + (2 * (smallButtonWid"; + //BA.debugLineNum = 219;BA.debugLine="BtnConfig.SetLayout(margin + (2 * (smallButtonWid"; mostCurrent._btnconfig.SetLayout((int) (_margin+(2*(_smallbuttonwidth+_gap))),_row2top,_smallbuttonwidth,_buttonheight); - //BA.debugLineNum = 215;BA.debugLine="If lblElapsedTime.IsInitialized Then lblElapsedTi"; + //BA.debugLineNum = 220;BA.debugLine="If lblElapsedTime.IsInitialized Then lblElapsedTi"; if (mostCurrent._lblelapsedtime.IsInitialized()) { mostCurrent._lblelapsedtime.SetLayout((int) (0),_labeltop,(int) (mostCurrent._activity.getWidth()*0.58),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (28)));}; - //BA.debugLineNum = 216;BA.debugLine="If lblAutoStatus.IsInitialized Then lblAutoStatus"; + //BA.debugLineNum = 221;BA.debugLine="If lblAutoStatus.IsInitialized Then lblAutoStatus"; if (mostCurrent._lblautostatus.IsInitialized()) { mostCurrent._lblautostatus.SetLayout((int) (mostCurrent._activity.getWidth()*0.58),_labeltop,(int) (mostCurrent._activity.getWidth()*0.42),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (28)));}; - //BA.debugLineNum = 217;BA.debugLine="End Sub"; + //BA.debugLineNum = 222;BA.debugLine="End Sub"; return ""; } public static String _loadautoconfig() throws Exception{ anywheresoftware.b4a.objects.collections.List _lines = null; - //BA.debugLineNum = 969;BA.debugLine="Private Sub LoadAutoConfig"; - //BA.debugLineNum = 970;BA.debugLine="AutoModeEnabled = False"; + //BA.debugLineNum = 1029;BA.debugLine="Private Sub LoadAutoConfig"; + //BA.debugLineNum = 1030;BA.debugLine="AutoModeEnabled = False"; _automodeenabled = anywheresoftware.b4a.keywords.Common.False; - //BA.debugLineNum = 971;BA.debugLine="AutoState = \"stopped\""; + //BA.debugLineNum = 1031;BA.debugLine="AutoState = \"stopped\""; mostCurrent._autostate = "stopped"; - //BA.debugLineNum = 972;BA.debugLine="If File.Exists(File.DirInternal, AutoConfigFileNa"; + //BA.debugLineNum = 1032;BA.debugLine="If File.Exists(File.DirInternal, AutoConfigFileNa"; if (anywheresoftware.b4a.keywords.Common.File.Exists(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_autoconfigfilename)==anywheresoftware.b4a.keywords.Common.False) { if (true) return "";}; - //BA.debugLineNum = 973;BA.debugLine="Dim lines As List = File.ReadList(File.DirInterna"; + //BA.debugLineNum = 1033;BA.debugLine="Dim lines As List = File.ReadList(File.DirInterna"; _lines = new anywheresoftware.b4a.objects.collections.List(); _lines = anywheresoftware.b4a.keywords.Common.File.ReadList(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_autoconfigfilename); - //BA.debugLineNum = 974;BA.debugLine="If lines.Size < 4 Then Return"; + //BA.debugLineNum = 1034;BA.debugLine="If lines.Size < 4 Then Return"; if (_lines.getSize()<4) { if (true) return "";}; - //BA.debugLineNum = 975;BA.debugLine="AutoStartMinutes = lines.Get(0)"; + //BA.debugLineNum = 1035;BA.debugLine="AutoStartMinutes = lines.Get(0)"; _autostartminutes = (int)(BA.ObjectToNumber(_lines.Get((int) (0)))); - //BA.debugLineNum = 976;BA.debugLine="AutoPauseStartMinutes = lines.Get(1)"; + //BA.debugLineNum = 1036;BA.debugLine="AutoPauseStartMinutes = lines.Get(1)"; _autopausestartminutes = (int)(BA.ObjectToNumber(_lines.Get((int) (1)))); - //BA.debugLineNum = 977;BA.debugLine="AutoPauseEndMinutes = lines.Get(2)"; + //BA.debugLineNum = 1037;BA.debugLine="AutoPauseEndMinutes = lines.Get(2)"; _autopauseendminutes = (int)(BA.ObjectToNumber(_lines.Get((int) (2)))); - //BA.debugLineNum = 978;BA.debugLine="AutoEndMinutes = lines.Get(3)"; + //BA.debugLineNum = 1038;BA.debugLine="AutoEndMinutes = lines.Get(3)"; _autoendminutes = (int)(BA.ObjectToNumber(_lines.Get((int) (3)))); - //BA.debugLineNum = 979;BA.debugLine="AutoModeEnabled = True"; + //BA.debugLineNum = 1039;BA.debugLine="AutoModeEnabled = True"; _automodeenabled = anywheresoftware.b4a.keywords.Common.True; - //BA.debugLineNum = 980;BA.debugLine="txtCfgStart.Text = MinutesToTime(AutoStartMinutes"; + //BA.debugLineNum = 1040;BA.debugLine="txtCfgStart.Text = MinutesToTime(AutoStartMinutes"; mostCurrent._txtcfgstart.setText(BA.ObjectToCharSequence(_minutestotime(_autostartminutes))); - //BA.debugLineNum = 981;BA.debugLine="txtCfgPauseStart.Text = MinutesToTime(AutoPauseSt"; + //BA.debugLineNum = 1041;BA.debugLine="txtCfgPauseStart.Text = MinutesToTime(AutoPauseSt"; mostCurrent._txtcfgpausestart.setText(BA.ObjectToCharSequence(_minutestotime(_autopausestartminutes))); - //BA.debugLineNum = 982;BA.debugLine="txtCfgPauseEnd.Text = MinutesToTime(AutoPauseEndM"; + //BA.debugLineNum = 1042;BA.debugLine="txtCfgPauseEnd.Text = MinutesToTime(AutoPauseEndM"; mostCurrent._txtcfgpauseend.setText(BA.ObjectToCharSequence(_minutestotime(_autopauseendminutes))); - //BA.debugLineNum = 983;BA.debugLine="txtCfgEnd.Text = MinutesToTime(AutoEndMinutes)"; + //BA.debugLineNum = 1043;BA.debugLine="txtCfgEnd.Text = MinutesToTime(AutoEndMinutes)"; mostCurrent._txtcfgend.setText(BA.ObjectToCharSequence(_minutestotime(_autoendminutes))); - //BA.debugLineNum = 984;BA.debugLine="End Sub"; + //BA.debugLineNum = 1044;BA.debugLine="End Sub"; return ""; } public static String _loadstatsrows() throws Exception{ @@ -1675,16 +1771,16 @@ anywheresoftware.b4a.objects.collections.Map _row = null; long _daystart = 0L; long _segmentstart = 0L; long _duration = 0L; - //BA.debugLineNum = 678;BA.debugLine="Private Sub LoadStatsRows"; - //BA.debugLineNum = 679;BA.debugLine="StatsRows.Clear"; + //BA.debugLineNum = 726;BA.debugLine="Private Sub LoadStatsRows"; + //BA.debugLineNum = 727;BA.debugLine="StatsRows.Clear"; mostCurrent._statsrows.Clear(); - //BA.debugLineNum = 680;BA.debugLine="If File.Exists(File.DirInternal, StatsFileName) ="; + //BA.debugLineNum = 728;BA.debugLine="If File.Exists(File.DirInternal, StatsFileName) ="; if (anywheresoftware.b4a.keywords.Common.File.Exists(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_statsfilename)==anywheresoftware.b4a.keywords.Common.False) { if (true) return "";}; - //BA.debugLineNum = 681;BA.debugLine="Dim lines As List = File.ReadList(File.DirInterna"; + //BA.debugLineNum = 729;BA.debugLine="Dim lines As List = File.ReadList(File.DirInterna"; _lines = new anywheresoftware.b4a.objects.collections.List(); _lines = anywheresoftware.b4a.keywords.Common.File.ReadList(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_statsfilename); - //BA.debugLineNum = 682;BA.debugLine="For Each line As String In lines"; + //BA.debugLineNum = 730;BA.debugLine="For Each line As String In lines"; { final anywheresoftware.b4a.BA.IterableList group4 = _lines; final int groupLen4 = group4.getSize() @@ -1692,53 +1788,53 @@ final int groupLen4 = group4.getSize() ; for (; index4 < groupLen4;index4++){ _line = BA.ObjectToString(group4.Get(index4)); - //BA.debugLineNum = 683;BA.debugLine="If line.Trim.Length > 0 Then"; + //BA.debugLineNum = 731;BA.debugLine="If line.Trim.Length > 0 Then"; if (_line.trim().length()>0) { - //BA.debugLineNum = 684;BA.debugLine="Dim parts() As String = Regex.Split(\"\\|\", line)"; + //BA.debugLineNum = 732;BA.debugLine="Dim parts() As String = Regex.Split(\"\\|\", line)"; _parts = anywheresoftware.b4a.keywords.Common.Regex.Split("\\|",_line); - //BA.debugLineNum = 685;BA.debugLine="If parts.Length >= 4 Then"; + //BA.debugLineNum = 733;BA.debugLine="If parts.Length >= 4 Then"; if (_parts.length>=4) { - //BA.debugLineNum = 686;BA.debugLine="Dim row As Map"; + //BA.debugLineNum = 734;BA.debugLine="Dim row As Map"; _row = new anywheresoftware.b4a.objects.collections.Map(); - //BA.debugLineNum = 687;BA.debugLine="row.Initialize"; + //BA.debugLineNum = 735;BA.debugLine="row.Initialize"; _row.Initialize(); - //BA.debugLineNum = 688;BA.debugLine="Dim dayStart As Long = parts(0)"; + //BA.debugLineNum = 736;BA.debugLine="Dim dayStart As Long = parts(0)"; _daystart = (long)(Double.parseDouble(_parts[(int) (0)])); - //BA.debugLineNum = 689;BA.debugLine="Dim segmentStart As Long = parts(1)"; + //BA.debugLineNum = 737;BA.debugLine="Dim segmentStart As Long = parts(1)"; _segmentstart = (long)(Double.parseDouble(_parts[(int) (1)])); - //BA.debugLineNum = 690;BA.debugLine="Dim duration As Long = parts(2)"; + //BA.debugLineNum = 738;BA.debugLine="Dim duration As Long = parts(2)"; _duration = (long)(Double.parseDouble(_parts[(int) (2)])); - //BA.debugLineNum = 691;BA.debugLine="row.Put(\"dayStart\", dayStart)"; + //BA.debugLineNum = 739;BA.debugLine="row.Put(\"dayStart\", dayStart)"; _row.Put((Object)("dayStart"),(Object)(_daystart)); - //BA.debugLineNum = 692;BA.debugLine="row.Put(\"dayKey\", dayStart)"; + //BA.debugLineNum = 740;BA.debugLine="row.Put(\"dayKey\", dayStart)"; _row.Put((Object)("dayKey"),(Object)(_daystart)); - //BA.debugLineNum = 693;BA.debugLine="row.Put(\"segmentStart\", segmentStart)"; + //BA.debugLineNum = 741;BA.debugLine="row.Put(\"segmentStart\", segmentStart)"; _row.Put((Object)("segmentStart"),(Object)(_segmentstart)); - //BA.debugLineNum = 694;BA.debugLine="row.Put(\"date\", DateTime.Date(dayStart))"; + //BA.debugLineNum = 742;BA.debugLine="row.Put(\"date\", DateTime.Date(dayStart))"; _row.Put((Object)("date"),(Object)(anywheresoftware.b4a.keywords.Common.DateTime.Date(_daystart))); - //BA.debugLineNum = 695;BA.debugLine="row.Put(\"duration\", duration)"; + //BA.debugLineNum = 743;BA.debugLine="row.Put(\"duration\", duration)"; _row.Put((Object)("duration"),(Object)(_duration)); - //BA.debugLineNum = 696;BA.debugLine="row.Put(\"category\", parts(3))"; + //BA.debugLineNum = 744;BA.debugLine="row.Put(\"category\", parts(3))"; _row.Put((Object)("category"),(Object)(_parts[(int) (3)])); - //BA.debugLineNum = 697;BA.debugLine="If parts.Length >= 5 Then"; + //BA.debugLineNum = 745;BA.debugLine="If parts.Length >= 5 Then"; if (_parts.length>=5) { - //BA.debugLineNum = 698;BA.debugLine="row.Put(\"source\", parts(4))"; + //BA.debugLineNum = 746;BA.debugLine="row.Put(\"source\", parts(4))"; _row.Put((Object)("source"),(Object)(_parts[(int) (4)])); }else { - //BA.debugLineNum = 700;BA.debugLine="row.Put(\"source\", \"manual\")"; + //BA.debugLineNum = 748;BA.debugLine="row.Put(\"source\", \"manual\")"; _row.Put((Object)("source"),(Object)("manual")); }; - //BA.debugLineNum = 702;BA.debugLine="StatsRows.Add(row)"; + //BA.debugLineNum = 750;BA.debugLine="StatsRows.Add(row)"; mostCurrent._statsrows.Add((Object)(_row.getObject())); }; }; } }; - //BA.debugLineNum = 706;BA.debugLine="TrimStatsRows"; + //BA.debugLineNum = 754;BA.debugLine="TrimStatsRows"; _trimstatsrows(); - //BA.debugLineNum = 707;BA.debugLine="SaveStatsRows"; + //BA.debugLineNum = 755;BA.debugLine="SaveStatsRows"; _savestatsrows(); - //BA.debugLineNum = 708;BA.debugLine="End Sub"; + //BA.debugLineNum = 756;BA.debugLine="End Sub"; return ""; } public static String _loadworkdaysegmentsintoclock(long _daykey) throws Exception{ @@ -1746,10 +1842,10 @@ long _productivecursor = 0L; anywheresoftware.b4a.objects.collections.Map _row = null; String _category = ""; long _duration = 0L; - //BA.debugLineNum = 612;BA.debugLine="Private Sub LoadWorkDaySegmentsIntoClock(DayKey As"; - //BA.debugLineNum = 613;BA.debugLine="Dim productiveCursor As Long = 0"; + //BA.debugLineNum = 660;BA.debugLine="Private Sub LoadWorkDaySegmentsIntoClock(DayKey As"; + //BA.debugLineNum = 661;BA.debugLine="Dim productiveCursor As Long = 0"; _productivecursor = (long) (0); - //BA.debugLineNum = 614;BA.debugLine="For Each row As Map In StatsRows"; + //BA.debugLineNum = 662;BA.debugLine="For Each row As Map In StatsRows"; _row = new anywheresoftware.b4a.objects.collections.Map(); { final anywheresoftware.b4a.BA.IterableList group2 = mostCurrent._statsrows; @@ -1758,58 +1854,58 @@ final int groupLen2 = group2.getSize() ; for (; index2 < groupLen2;index2++){ _row = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(group2.Get(index2))); - //BA.debugLineNum = 615;BA.debugLine="If row.Get(\"dayKey\") = DayKey Then"; + //BA.debugLineNum = 663;BA.debugLine="If row.Get(\"dayKey\") = DayKey Then"; if ((_row.Get((Object)("dayKey"))).equals((Object)(_daykey))) { - //BA.debugLineNum = 616;BA.debugLine="Dim category As String = row.Get(\"category\")"; + //BA.debugLineNum = 664;BA.debugLine="Dim category As String = row.Get(\"category\")"; _category = BA.ObjectToString(_row.Get((Object)("category"))); - //BA.debugLineNum = 617;BA.debugLine="Dim duration As Long = row.Get(\"duration\")"; + //BA.debugLineNum = 665;BA.debugLine="Dim duration As Long = row.Get(\"duration\")"; _duration = BA.ObjectToLongNumber(_row.Get((Object)("duration"))); - //BA.debugLineNum = 618;BA.debugLine="If category = \"pausa\" Then"; + //BA.debugLineNum = 666;BA.debugLine="If category = \"pausa\" Then"; if ((_category).equals("pausa")) { - //BA.debugLineNum = 619;BA.debugLine="myClock.AddSegment(duration, Colors.Yellow, Tr"; + //BA.debugLineNum = 667;BA.debugLine="myClock.AddSegment(duration, Colors.Yellow, Tr"; mostCurrent._myclock._addsegment /*String*/ (_duration,anywheresoftware.b4a.keywords.Common.Colors.Yellow,anywheresoftware.b4a.keywords.Common.True); }else { - //BA.debugLineNum = 621;BA.debugLine="AddDisplayProductiveSegment(duration, producti"; + //BA.debugLineNum = 669;BA.debugLine="AddDisplayProductiveSegment(duration, producti"; _adddisplayproductivesegment(_duration,_productivecursor); - //BA.debugLineNum = 622;BA.debugLine="productiveCursor = productiveCursor + duration"; + //BA.debugLineNum = 670;BA.debugLine="productiveCursor = productiveCursor + duration"; _productivecursor = (long) (_productivecursor+_duration); }; }; } }; - //BA.debugLineNum = 626;BA.debugLine="End Sub"; + //BA.debugLineNum = 674;BA.debugLine="End Sub"; return ""; } public static String _minutestotime(int _minutes) throws Exception{ - //BA.debugLineNum = 996;BA.debugLine="Private Sub MinutesToTime(Minutes As Int) As Strin"; - //BA.debugLineNum = 997;BA.debugLine="Return NumberFormat(Minutes / 60, 2, 0) & \":\" & N"; + //BA.debugLineNum = 1056;BA.debugLine="Private Sub MinutesToTime(Minutes As Int) As Strin"; + //BA.debugLineNum = 1057;BA.debugLine="Return NumberFormat(Minutes / 60, 2, 0) & \":\" & N"; if (true) return anywheresoftware.b4a.keywords.Common.NumberFormat(_minutes/(double)60,(int) (2),(int) (0))+":"+anywheresoftware.b4a.keywords.Common.NumberFormat(_minutes%60,(int) (2),(int) (0)); - //BA.debugLineNum = 998;BA.debugLine="End Sub"; + //BA.debugLineNum = 1058;BA.debugLine="End Sub"; return ""; } public static int _parsetimetominutes(String _value) throws Exception{ String[] _parts = null; int _h = 0; int _m = 0; - //BA.debugLineNum = 986;BA.debugLine="Private Sub ParseTimeToMinutes(Value As String) As"; - //BA.debugLineNum = 987;BA.debugLine="Dim parts() As String = Regex.Split(\":\", Value.Tr"; + //BA.debugLineNum = 1046;BA.debugLine="Private Sub ParseTimeToMinutes(Value As String) As"; + //BA.debugLineNum = 1047;BA.debugLine="Dim parts() As String = Regex.Split(\":\", Value.Tr"; _parts = anywheresoftware.b4a.keywords.Common.Regex.Split(":",_value.trim()); - //BA.debugLineNum = 988;BA.debugLine="If parts.Length <> 2 Then Return -1"; + //BA.debugLineNum = 1048;BA.debugLine="If parts.Length <> 2 Then Return -1"; if (_parts.length!=2) { if (true) return (int) (-1);}; - //BA.debugLineNum = 989;BA.debugLine="If IsNumber(parts(0)) = False Or IsNumber(parts(1"; + //BA.debugLineNum = 1049;BA.debugLine="If IsNumber(parts(0)) = False Or IsNumber(parts(1"; if (anywheresoftware.b4a.keywords.Common.IsNumber(_parts[(int) (0)])==anywheresoftware.b4a.keywords.Common.False || anywheresoftware.b4a.keywords.Common.IsNumber(_parts[(int) (1)])==anywheresoftware.b4a.keywords.Common.False) { if (true) return (int) (-1);}; - //BA.debugLineNum = 990;BA.debugLine="Dim h As Int = parts(0)"; + //BA.debugLineNum = 1050;BA.debugLine="Dim h As Int = parts(0)"; _h = (int)(Double.parseDouble(_parts[(int) (0)])); - //BA.debugLineNum = 991;BA.debugLine="Dim m As Int = parts(1)"; + //BA.debugLineNum = 1051;BA.debugLine="Dim m As Int = parts(1)"; _m = (int)(Double.parseDouble(_parts[(int) (1)])); - //BA.debugLineNum = 992;BA.debugLine="If h < 0 Or h > 23 Or m < 0 Or m > 59 Then Return"; + //BA.debugLineNum = 1052;BA.debugLine="If h < 0 Or h > 23 Or m < 0 Or m > 59 Then Return"; if (_h<0 || _h>23 || _m<0 || _m>59) { if (true) return (int) (-1);}; - //BA.debugLineNum = 993;BA.debugLine="Return h * 60 + m"; + //BA.debugLineNum = 1053;BA.debugLine="Return h * 60 + m"; if (true) return (int) (_h*60+_m); - //BA.debugLineNum = 994;BA.debugLine="End Sub"; + //BA.debugLineNum = 1054;BA.debugLine="End Sub"; return 0; } @@ -1851,17 +1947,17 @@ return ""; } public static String _processactivepausesegment(long _now) throws Exception{ long _midnight = 0L; - //BA.debugLineNum = 520;BA.debugLine="Private Sub ProcessActivePauseSegment(now As Long)"; - //BA.debugLineNum = 521;BA.debugLine="Dim midnight As Long = GetNextMidnight(CurrentSeg"; + //BA.debugLineNum = 568;BA.debugLine="Private Sub ProcessActivePauseSegment(now As Long)"; + //BA.debugLineNum = 569;BA.debugLine="Dim midnight As Long = GetNextMidnight(CurrentSeg"; _midnight = _getnextmidnight(_currentsegmentstart); - //BA.debugLineNum = 522;BA.debugLine="If now >= midnight Then"; + //BA.debugLineNum = 570;BA.debugLine="If now >= midnight Then"; if (_now>=_midnight) { - //BA.debugLineNum = 523;BA.debugLine="EndSession(midnight, True)"; + //BA.debugLineNum = 571;BA.debugLine="EndSession(midnight, True)"; _endsession(_midnight,anywheresoftware.b4a.keywords.Common.True); - //BA.debugLineNum = 524;BA.debugLine="Log(\"Workday stopped automatically during pause:"; -anywheresoftware.b4a.keywords.Common.LogImpl("2424836","Workday stopped automatically during pause: midnight reached.",0); + //BA.debugLineNum = 572;BA.debugLine="Log(\"Workday stopped automatically during pause:"; +anywheresoftware.b4a.keywords.Common.LogImpl("2621444","Workday stopped automatically during pause: midnight reached.",0); }; - //BA.debugLineNum = 526;BA.debugLine="End Sub"; + //BA.debugLineNum = 574;BA.debugLine="End Sub"; return ""; } public static String _processactiveworksegment(long _now) throws Exception{ @@ -1869,110 +1965,110 @@ long _midnight = 0L; long _segmentduration = 0L; long _nextboundary = 0L; long _durationtoboundary = 0L; - //BA.debugLineNum = 460;BA.debugLine="Private Sub ProcessActiveWorkSegment(now As Long)"; - //BA.debugLineNum = 461;BA.debugLine="Do While SessionActive And PauseActive = False"; + //BA.debugLineNum = 508;BA.debugLine="Private Sub ProcessActiveWorkSegment(now As Long)"; + //BA.debugLineNum = 509;BA.debugLine="Do While SessionActive And PauseActive = False"; while (_sessionactive && _pauseactive==anywheresoftware.b4a.keywords.Common.False) { - //BA.debugLineNum = 462;BA.debugLine="Dim midnight As Long = GetNextMidnight(CurrentSe"; + //BA.debugLineNum = 510;BA.debugLine="Dim midnight As Long = GetNextMidnight(CurrentSe"; _midnight = _getnextmidnight(_currentsegmentstart); - //BA.debugLineNum = 463;BA.debugLine="If now >= midnight Then"; + //BA.debugLineNum = 511;BA.debugLine="If now >= midnight Then"; if (_now>=_midnight) { - //BA.debugLineNum = 464;BA.debugLine="EndSession(midnight, True)"; + //BA.debugLineNum = 512;BA.debugLine="EndSession(midnight, True)"; _endsession(_midnight,anywheresoftware.b4a.keywords.Common.True); - //BA.debugLineNum = 465;BA.debugLine="Log(\"Workday stopped automatically: midnight re"; -anywheresoftware.b4a.keywords.Common.LogImpl("2162693","Workday stopped automatically: midnight reached.",0); - //BA.debugLineNum = 466;BA.debugLine="Return"; + //BA.debugLineNum = 513;BA.debugLine="Log(\"Workday stopped automatically: midnight re"; +anywheresoftware.b4a.keywords.Common.LogImpl("2359301","Workday stopped automatically: midnight reached.",0); + //BA.debugLineNum = 514;BA.debugLine="Return"; if (true) return ""; }; - //BA.debugLineNum = 468;BA.debugLine="Dim segmentDuration As Long = now - CurrentSegme"; + //BA.debugLineNum = 516;BA.debugLine="Dim segmentDuration As Long = now - CurrentSegme"; _segmentduration = (long) (_now-_currentsegmentstart); - //BA.debugLineNum = 469;BA.debugLine="If segmentDuration <= 0 Then Return"; + //BA.debugLineNum = 517;BA.debugLine="If segmentDuration <= 0 Then Return"; if (_segmentduration<=0) { if (true) return "";}; - //BA.debugLineNum = 470;BA.debugLine="Dim nextBoundary As Long = GetNextWorkBoundary"; + //BA.debugLineNum = 518;BA.debugLine="Dim nextBoundary As Long = GetNextWorkBoundary"; _nextboundary = _getnextworkboundary(); - //BA.debugLineNum = 471;BA.debugLine="Dim durationToBoundary As Long = nextBoundary -"; + //BA.debugLineNum = 519;BA.debugLine="Dim durationToBoundary As Long = nextBoundary -"; _durationtoboundary = (long) (_nextboundary-_productiveelapsedms); - //BA.debugLineNum = 472;BA.debugLine="If segmentDuration < durationToBoundary Then"; + //BA.debugLineNum = 520;BA.debugLine="If segmentDuration < durationToBoundary Then"; if (_segmentduration<_durationtoboundary) { - //BA.debugLineNum = 473;BA.debugLine="CurrentSegmentColor = GetCurrentWorkColor"; + //BA.debugLineNum = 521;BA.debugLine="CurrentSegmentColor = GetCurrentWorkColor"; _currentsegmentcolor = _getcurrentworkcolor(); - //BA.debugLineNum = 474;BA.debugLine="Return"; + //BA.debugLineNum = 522;BA.debugLine="Return"; if (true) return ""; }; - //BA.debugLineNum = 477;BA.debugLine="RecordSegment(CurrentSegmentStart, durationToBou"; + //BA.debugLineNum = 525;BA.debugLine="RecordSegment(CurrentSegmentStart, durationToBou"; _recordsegment(_currentsegmentstart,_durationtoboundary,_getcurrentworkcolor(),anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 478;BA.debugLine="ProductiveElapsedMs = ProductiveElapsedMs + dura"; + //BA.debugLineNum = 526;BA.debugLine="ProductiveElapsedMs = ProductiveElapsedMs + dura"; _productiveelapsedms = (long) (_productiveelapsedms+_durationtoboundary); - //BA.debugLineNum = 479;BA.debugLine="CurrentSegmentStart = CurrentSegmentStart + dura"; + //BA.debugLineNum = 527;BA.debugLine="CurrentSegmentStart = CurrentSegmentStart + dura"; _currentsegmentstart = (long) (_currentsegmentstart+_durationtoboundary); - //BA.debugLineNum = 480;BA.debugLine="CurrentSegmentColor = GetCurrentWorkColor"; + //BA.debugLineNum = 528;BA.debugLine="CurrentSegmentColor = GetCurrentWorkColor"; _currentsegmentcolor = _getcurrentworkcolor(); - //BA.debugLineNum = 482;BA.debugLine="If ProductiveElapsedMs >= MaxProductiveMs Then"; + //BA.debugLineNum = 530;BA.debugLine="If ProductiveElapsedMs >= MaxProductiveMs Then"; if (_productiveelapsedms>=_maxproductivems) { - //BA.debugLineNum = 483;BA.debugLine="EndSession(CurrentSegmentStart, True)"; + //BA.debugLineNum = 531;BA.debugLine="EndSession(CurrentSegmentStart, True)"; _endsession(_currentsegmentstart,anywheresoftware.b4a.keywords.Common.True); - //BA.debugLineNum = 484;BA.debugLine="Return"; + //BA.debugLineNum = 532;BA.debugLine="Return"; if (true) return ""; }; } ; - //BA.debugLineNum = 487;BA.debugLine="End Sub"; + //BA.debugLineNum = 535;BA.debugLine="End Sub"; return ""; } public static String _recordsegment(long _segmentstart,long _duration,int _segmentcolor,boolean _ispausesegment) throws Exception{ - //BA.debugLineNum = 500;BA.debugLine="Private Sub RecordSegment(SegmentStart As Long, Du"; - //BA.debugLineNum = 501;BA.debugLine="myClock.AddSegment(Duration, SegmentColor, IsPaus"; + //BA.debugLineNum = 548;BA.debugLine="Private Sub RecordSegment(SegmentStart As Long, Du"; + //BA.debugLineNum = 549;BA.debugLine="myClock.AddSegment(Duration, SegmentColor, IsPaus"; mostCurrent._myclock._addsegment /*String*/ (_duration,_segmentcolor,_ispausesegment); - //BA.debugLineNum = 502;BA.debugLine="AddStatsSegment(CurrentWorkDayStart, CurrentWorkD"; + //BA.debugLineNum = 550;BA.debugLine="AddStatsSegment(CurrentWorkDayStart, CurrentWorkD"; _addstatssegment(_currentworkdaystart,_currentworkdaykey,_segmentstart,_duration,_getsegmentcategory(_segmentcolor,_ispausesegment),"manual"); - //BA.debugLineNum = 503;BA.debugLine="End Sub"; + //BA.debugLineNum = 551;BA.debugLine="End Sub"; return ""; } public static String _regenerateautosegmentsforday(long _daystart,int _minuteofday) throws Exception{ int _firstworkend = 0; int _pauseend = 0; int _secondworkend = 0; - //BA.debugLineNum = 1027;BA.debugLine="Private Sub RegenerateAutoSegmentsForDay(DayStart"; - //BA.debugLineNum = 1028;BA.debugLine="RemoveAutoRowsForDay(DayStart)"; + //BA.debugLineNum = 1087;BA.debugLine="Private Sub RegenerateAutoSegmentsForDay(DayStart"; + //BA.debugLineNum = 1088;BA.debugLine="RemoveAutoRowsForDay(DayStart)"; _removeautorowsforday(_daystart); - //BA.debugLineNum = 1029;BA.debugLine="Dim firstWorkEnd As Int = Min(MinuteOfDay, AutoPa"; + //BA.debugLineNum = 1089;BA.debugLine="Dim firstWorkEnd As Int = Min(MinuteOfDay, AutoPa"; _firstworkend = (int) (anywheresoftware.b4a.keywords.Common.Min(_minuteofday,_autopausestartminutes)); - //BA.debugLineNum = 1030;BA.debugLine="If firstWorkEnd > AutoStartMinutes Then"; + //BA.debugLineNum = 1090;BA.debugLine="If firstWorkEnd > AutoStartMinutes Then"; if (_firstworkend>_autostartminutes) { - //BA.debugLineNum = 1031;BA.debugLine="AddAutoSegmentNoSave(DayStart, AutoStartMinutes,"; + //BA.debugLineNum = 1091;BA.debugLine="AddAutoSegmentNoSave(DayStart, AutoStartMinutes,"; _addautosegmentnosave(_daystart,_autostartminutes,_firstworkend,"lavoro"); }; - //BA.debugLineNum = 1033;BA.debugLine="Dim pauseEnd As Int = Min(MinuteOfDay, AutoPauseE"; + //BA.debugLineNum = 1093;BA.debugLine="Dim pauseEnd As Int = Min(MinuteOfDay, AutoPauseE"; _pauseend = (int) (anywheresoftware.b4a.keywords.Common.Min(_minuteofday,_autopauseendminutes)); - //BA.debugLineNum = 1034;BA.debugLine="If pauseEnd > AutoPauseStartMinutes Then"; + //BA.debugLineNum = 1094;BA.debugLine="If pauseEnd > AutoPauseStartMinutes Then"; if (_pauseend>_autopausestartminutes) { - //BA.debugLineNum = 1035;BA.debugLine="AddAutoSegmentNoSave(DayStart, AutoPauseStartMin"; + //BA.debugLineNum = 1095;BA.debugLine="AddAutoSegmentNoSave(DayStart, AutoPauseStartMin"; _addautosegmentnosave(_daystart,_autopausestartminutes,_pauseend,"pausa"); }; - //BA.debugLineNum = 1037;BA.debugLine="Dim secondWorkEnd As Int = Min(MinuteOfDay, AutoE"; + //BA.debugLineNum = 1097;BA.debugLine="Dim secondWorkEnd As Int = Min(MinuteOfDay, AutoE"; _secondworkend = (int) (anywheresoftware.b4a.keywords.Common.Min(_minuteofday,_autoendminutes)); - //BA.debugLineNum = 1038;BA.debugLine="If secondWorkEnd > AutoPauseEndMinutes Then"; + //BA.debugLineNum = 1098;BA.debugLine="If secondWorkEnd > AutoPauseEndMinutes Then"; if (_secondworkend>_autopauseendminutes) { - //BA.debugLineNum = 1039;BA.debugLine="AddAutoSegmentNoSave(DayStart, AutoPauseEndMinut"; + //BA.debugLineNum = 1099;BA.debugLine="AddAutoSegmentNoSave(DayStart, AutoPauseEndMinut"; _addautosegmentnosave(_daystart,_autopauseendminutes,_secondworkend,"lavoro"); }; - //BA.debugLineNum = 1041;BA.debugLine="TrimStatsRows"; + //BA.debugLineNum = 1101;BA.debugLine="TrimStatsRows"; _trimstatsrows(); - //BA.debugLineNum = 1042;BA.debugLine="SaveStatsRows"; + //BA.debugLineNum = 1102;BA.debugLine="SaveStatsRows"; _savestatsrows(); - //BA.debugLineNum = 1043;BA.debugLine="End Sub"; + //BA.debugLineNum = 1103;BA.debugLine="End Sub"; return ""; } public static String _removeautorowsforday(long _daystart) throws Exception{ anywheresoftware.b4a.objects.collections.List _kept = null; anywheresoftware.b4a.objects.collections.Map _row = null; String _source = ""; - //BA.debugLineNum = 1060;BA.debugLine="Private Sub RemoveAutoRowsForDay(DayStart As Long)"; - //BA.debugLineNum = 1061;BA.debugLine="Dim kept As List"; + //BA.debugLineNum = 1120;BA.debugLine="Private Sub RemoveAutoRowsForDay(DayStart As Long)"; + //BA.debugLineNum = 1121;BA.debugLine="Dim kept As List"; _kept = new anywheresoftware.b4a.objects.collections.List(); - //BA.debugLineNum = 1062;BA.debugLine="kept.Initialize"; + //BA.debugLineNum = 1122;BA.debugLine="kept.Initialize"; _kept.Initialize(); - //BA.debugLineNum = 1063;BA.debugLine="For Each row As Map In StatsRows"; + //BA.debugLineNum = 1123;BA.debugLine="For Each row As Map In StatsRows"; _row = new anywheresoftware.b4a.objects.collections.Map(); { final anywheresoftware.b4a.BA.IterableList group3 = mostCurrent._statsrows; @@ -1981,276 +2077,276 @@ final int groupLen3 = group3.getSize() ; for (; index3 < groupLen3;index3++){ _row = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(group3.Get(index3))); - //BA.debugLineNum = 1064;BA.debugLine="Dim source As String = \"manual\""; + //BA.debugLineNum = 1124;BA.debugLine="Dim source As String = \"manual\""; _source = "manual"; - //BA.debugLineNum = 1065;BA.debugLine="If row.ContainsKey(\"source\") Then source = row.G"; + //BA.debugLineNum = 1125;BA.debugLine="If row.ContainsKey(\"source\") Then source = row.G"; if (_row.ContainsKey((Object)("source"))) { _source = BA.ObjectToString(_row.Get((Object)("source")));}; - //BA.debugLineNum = 1066;BA.debugLine="If row.Get(\"dayStart\") = DayStart And source = \""; + //BA.debugLineNum = 1126;BA.debugLine="If row.Get(\"dayStart\") = DayStart And source = \""; if ((_row.Get((Object)("dayStart"))).equals((Object)(_daystart)) && (_source).equals("auto")) { }else { - //BA.debugLineNum = 1069;BA.debugLine="kept.Add(row)"; + //BA.debugLineNum = 1129;BA.debugLine="kept.Add(row)"; _kept.Add((Object)(_row.getObject())); }; } }; - //BA.debugLineNum = 1072;BA.debugLine="StatsRows.Clear"; + //BA.debugLineNum = 1132;BA.debugLine="StatsRows.Clear"; mostCurrent._statsrows.Clear(); - //BA.debugLineNum = 1073;BA.debugLine="StatsRows.AddAll(kept)"; + //BA.debugLineNum = 1133;BA.debugLine="StatsRows.AddAll(kept)"; mostCurrent._statsrows.AddAll(_kept); - //BA.debugLineNum = 1074;BA.debugLine="End Sub"; + //BA.debugLineNum = 1134;BA.debugLine="End Sub"; return ""; } public static String _resetautomaticconfig() throws Exception{ - //BA.debugLineNum = 949;BA.debugLine="Private Sub ResetAutomaticConfig"; - //BA.debugLineNum = 950;BA.debugLine="AutoModeEnabled = False"; + //BA.debugLineNum = 1009;BA.debugLine="Private Sub ResetAutomaticConfig"; + //BA.debugLineNum = 1010;BA.debugLine="AutoModeEnabled = False"; _automodeenabled = anywheresoftware.b4a.keywords.Common.False; - //BA.debugLineNum = 951;BA.debugLine="AutoState = \"stopped\""; + //BA.debugLineNum = 1011;BA.debugLine="AutoState = \"stopped\""; mostCurrent._autostate = "stopped"; - //BA.debugLineNum = 952;BA.debugLine="If File.Exists(File.DirInternal, AutoConfigFileNa"; + //BA.debugLineNum = 1012;BA.debugLine="If File.Exists(File.DirInternal, AutoConfigFileNa"; if (anywheresoftware.b4a.keywords.Common.File.Exists(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_autoconfigfilename)) { anywheresoftware.b4a.keywords.Common.File.Delete(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_autoconfigfilename);}; - //BA.debugLineNum = 953;BA.debugLine="ResetSessionState(False)"; + //BA.debugLineNum = 1013;BA.debugLine="ResetSessionState(False)"; _resetsessionstate(anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 954;BA.debugLine="RestoreLastClosedDayState"; + //BA.debugLineNum = 1014;BA.debugLine="RestoreLastClosedDayState"; _restorelastcloseddaystate(); - //BA.debugLineNum = 955;BA.debugLine="UpdateMainControlState"; + //BA.debugLineNum = 1015;BA.debugLine="UpdateMainControlState"; _updatemaincontrolstate(); - //BA.debugLineNum = 956;BA.debugLine="ToastMessageShow(Localization.T(\"auto_disabled\"),"; + //BA.debugLineNum = 1016;BA.debugLine="ToastMessageShow(Localization.T(\"auto_disabled\"),"; anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"auto_disabled")),anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 957;BA.debugLine="End Sub"; + //BA.debugLineNum = 1017;BA.debugLine="End Sub"; return ""; } public static String _resetsessionstate(boolean _clearclock) throws Exception{ - //BA.debugLineNum = 442;BA.debugLine="Private Sub ResetSessionState(ClearClock As Boolea"; - //BA.debugLineNum = 443;BA.debugLine="SessionActive = False"; + //BA.debugLineNum = 490;BA.debugLine="Private Sub ResetSessionState(ClearClock As Boolea"; + //BA.debugLineNum = 491;BA.debugLine="SessionActive = False"; _sessionactive = anywheresoftware.b4a.keywords.Common.False; - //BA.debugLineNum = 444;BA.debugLine="PauseActive = False"; + //BA.debugLineNum = 492;BA.debugLine="PauseActive = False"; _pauseactive = anywheresoftware.b4a.keywords.Common.False; - //BA.debugLineNum = 445;BA.debugLine="ProductiveElapsedMs = 0"; + //BA.debugLineNum = 493;BA.debugLine="ProductiveElapsedMs = 0"; _productiveelapsedms = (long) (0); - //BA.debugLineNum = 446;BA.debugLine="CurrentSegmentStart = 0"; + //BA.debugLineNum = 494;BA.debugLine="CurrentSegmentStart = 0"; _currentsegmentstart = (long) (0); - //BA.debugLineNum = 447;BA.debugLine="CurrentWorkDayStart = 0"; + //BA.debugLineNum = 495;BA.debugLine="CurrentWorkDayStart = 0"; _currentworkdaystart = (long) (0); - //BA.debugLineNum = 448;BA.debugLine="CurrentWorkDayKey = 0"; + //BA.debugLineNum = 496;BA.debugLine="CurrentWorkDayKey = 0"; _currentworkdaykey = (long) (0); - //BA.debugLineNum = 449;BA.debugLine="CurrentSegmentColor = WorkMorningColor"; + //BA.debugLineNum = 497;BA.debugLine="CurrentSegmentColor = WorkMorningColor"; _currentsegmentcolor = _workmorningcolor; - //BA.debugLineNum = 450;BA.debugLine="LastActiveStateSaveAt = 0"; + //BA.debugLineNum = 498;BA.debugLine="LastActiveStateSaveAt = 0"; _lastactivestatesaveat = (long) (0); - //BA.debugLineNum = 451;BA.debugLine="BtnStart.Text = Localization.T(\"start\")"; + //BA.debugLineNum = 499;BA.debugLine="BtnStart.Text = Localization.T(\"start\")"; mostCurrent._btnstart.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"start"))); - //BA.debugLineNum = 452;BA.debugLine="BtnPause.Text = Localization.T(\"pause\")"; + //BA.debugLineNum = 500;BA.debugLine="BtnPause.Text = Localization.T(\"pause\")"; mostCurrent._btnpause.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"pause"))); - //BA.debugLineNum = 453;BA.debugLine="BtnPause.Enabled = False"; + //BA.debugLineNum = 501;BA.debugLine="BtnPause.Enabled = False"; mostCurrent._btnpause.setEnabled(anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 454;BA.debugLine="UpdateMainControlState"; + //BA.debugLineNum = 502;BA.debugLine="UpdateMainControlState"; _updatemaincontrolstate(); - //BA.debugLineNum = 455;BA.debugLine="If ClearClock Then myClock.ClearSegments"; + //BA.debugLineNum = 503;BA.debugLine="If ClearClock Then myClock.ClearSegments"; if (_clearclock) { mostCurrent._myclock._clearsegments /*String*/ ();}; - //BA.debugLineNum = 456;BA.debugLine="myClock.ClearActiveSegment"; + //BA.debugLineNum = 504;BA.debugLine="myClock.ClearActiveSegment"; mostCurrent._myclock._clearactivesegment /*String*/ (); - //BA.debugLineNum = 457;BA.debugLine="UpdateElapsedLabel"; + //BA.debugLineNum = 505;BA.debugLine="UpdateElapsedLabel"; _updateelapsedlabel(); - //BA.debugLineNum = 458;BA.debugLine="End Sub"; + //BA.debugLineNum = 506;BA.debugLine="End Sub"; return ""; } public static String _resizeclockpanel() throws Exception{ int _clocksize = 0; - //BA.debugLineNum = 144;BA.debugLine="Private Sub ResizeClockPanel"; - //BA.debugLineNum = 145;BA.debugLine="Dim clockSize As Int = Activity.Width"; + //BA.debugLineNum = 149;BA.debugLine="Private Sub ResizeClockPanel"; + //BA.debugLineNum = 150;BA.debugLine="Dim clockSize As Int = Activity.Width"; _clocksize = mostCurrent._activity.getWidth(); - //BA.debugLineNum = 146;BA.debugLine="pnlClock.SetLayout(0, 0, clockSize, clockSize)"; + //BA.debugLineNum = 151;BA.debugLine="pnlClock.SetLayout(0, 0, clockSize, clockSize)"; mostCurrent._pnlclock.SetLayout((int) (0),(int) (0),_clocksize,_clocksize); - //BA.debugLineNum = 147;BA.debugLine="End Sub"; + //BA.debugLineNum = 152;BA.debugLine="End Sub"; return ""; } public static String _restoreactivestate() throws Exception{ anywheresoftware.b4a.objects.collections.List _lines = null; long _now = 0L; - //BA.debugLineNum = 752;BA.debugLine="Private Sub RestoreActiveState"; - //BA.debugLineNum = 753;BA.debugLine="If SessionActive Then Return"; + //BA.debugLineNum = 800;BA.debugLine="Private Sub RestoreActiveState"; + //BA.debugLineNum = 801;BA.debugLine="If SessionActive Then Return"; if (_sessionactive) { if (true) return "";}; - //BA.debugLineNum = 754;BA.debugLine="If File.Exists(File.DirInternal, StateFileName) ="; + //BA.debugLineNum = 802;BA.debugLine="If File.Exists(File.DirInternal, StateFileName) ="; if (anywheresoftware.b4a.keywords.Common.File.Exists(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_statefilename)==anywheresoftware.b4a.keywords.Common.False) { if (true) return "";}; - //BA.debugLineNum = 755;BA.debugLine="Dim lines As List = File.ReadList(File.DirInterna"; + //BA.debugLineNum = 803;BA.debugLine="Dim lines As List = File.ReadList(File.DirInterna"; _lines = new anywheresoftware.b4a.objects.collections.List(); _lines = anywheresoftware.b4a.keywords.Common.File.ReadList(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_statefilename); - //BA.debugLineNum = 756;BA.debugLine="If lines.Size < 5 Then Return"; + //BA.debugLineNum = 804;BA.debugLine="If lines.Size < 5 Then Return"; if (_lines.getSize()<5) { if (true) return "";}; - //BA.debugLineNum = 758;BA.debugLine="CurrentWorkDayStart = lines.Get(0)"; + //BA.debugLineNum = 806;BA.debugLine="CurrentWorkDayStart = lines.Get(0)"; _currentworkdaystart = BA.ObjectToLongNumber(_lines.Get((int) (0))); - //BA.debugLineNum = 759;BA.debugLine="CurrentWorkDayKey = CurrentWorkDayStart"; + //BA.debugLineNum = 807;BA.debugLine="CurrentWorkDayKey = CurrentWorkDayStart"; _currentworkdaykey = _currentworkdaystart; - //BA.debugLineNum = 760;BA.debugLine="CurrentSegmentStart = lines.Get(1)"; + //BA.debugLineNum = 808;BA.debugLine="CurrentSegmentStart = lines.Get(1)"; _currentsegmentstart = BA.ObjectToLongNumber(_lines.Get((int) (1))); - //BA.debugLineNum = 761;BA.debugLine="ProductiveElapsedMs = lines.Get(2)"; + //BA.debugLineNum = 809;BA.debugLine="ProductiveElapsedMs = lines.Get(2)"; _productiveelapsedms = BA.ObjectToLongNumber(_lines.Get((int) (2))); - //BA.debugLineNum = 762;BA.debugLine="ProductiveElapsedMs = Max(ProductiveElapsedMs, Ge"; + //BA.debugLineNum = 810;BA.debugLine="ProductiveElapsedMs = Max(ProductiveElapsedMs, Ge"; _productiveelapsedms = (long) (anywheresoftware.b4a.keywords.Common.Max(_productiveelapsedms,_getproductivetotalforworkday(_currentworkdaykey))); - //BA.debugLineNum = 763;BA.debugLine="PauseActive = lines.Get(3)"; + //BA.debugLineNum = 811;BA.debugLine="PauseActive = lines.Get(3)"; _pauseactive = BA.ObjectToBoolean(_lines.Get((int) (3))); - //BA.debugLineNum = 764;BA.debugLine="CurrentSegmentColor = lines.Get(4)"; + //BA.debugLineNum = 812;BA.debugLine="CurrentSegmentColor = lines.Get(4)"; _currentsegmentcolor = (int)(BA.ObjectToNumber(_lines.Get((int) (4)))); - //BA.debugLineNum = 766;BA.debugLine="Dim now As Long = DateTime.Now"; + //BA.debugLineNum = 814;BA.debugLine="Dim now As Long = DateTime.Now"; _now = anywheresoftware.b4a.keywords.Common.DateTime.getNow(); - //BA.debugLineNum = 767;BA.debugLine="If now >= GetNextMidnight(CurrentSegmentStart) Th"; + //BA.debugLineNum = 815;BA.debugLine="If now >= GetNextMidnight(CurrentSegmentStart) Th"; if (_now>=_getnextmidnight(_currentsegmentstart)) { - //BA.debugLineNum = 768;BA.debugLine="SessionActive = True"; + //BA.debugLineNum = 816;BA.debugLine="SessionActive = True"; _sessionactive = anywheresoftware.b4a.keywords.Common.True; - //BA.debugLineNum = 769;BA.debugLine="EndSession(GetNextMidnight(CurrentSegmentStart),"; + //BA.debugLineNum = 817;BA.debugLine="EndSession(GetNextMidnight(CurrentSegmentStart),"; _endsession(_getnextmidnight(_currentsegmentstart),anywheresoftware.b4a.keywords.Common.True); - //BA.debugLineNum = 770;BA.debugLine="If File.Exists(File.DirInternal, StateFileName)"; + //BA.debugLineNum = 818;BA.debugLine="If File.Exists(File.DirInternal, StateFileName)"; if (anywheresoftware.b4a.keywords.Common.File.Exists(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_statefilename)) { anywheresoftware.b4a.keywords.Common.File.Delete(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_statefilename);}; - //BA.debugLineNum = 771;BA.debugLine="Return"; + //BA.debugLineNum = 819;BA.debugLine="Return"; if (true) return ""; }; - //BA.debugLineNum = 773;BA.debugLine="If ProductiveElapsedMs >= MaxProductiveMs Then"; + //BA.debugLineNum = 821;BA.debugLine="If ProductiveElapsedMs >= MaxProductiveMs Then"; if (_productiveelapsedms>=_maxproductivems) { - //BA.debugLineNum = 774;BA.debugLine="If File.Exists(File.DirInternal, StateFileName)"; + //BA.debugLineNum = 822;BA.debugLine="If File.Exists(File.DirInternal, StateFileName)"; if (anywheresoftware.b4a.keywords.Common.File.Exists(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_statefilename)) { anywheresoftware.b4a.keywords.Common.File.Delete(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_statefilename);}; - //BA.debugLineNum = 775;BA.debugLine="Return"; + //BA.debugLineNum = 823;BA.debugLine="Return"; if (true) return ""; }; - //BA.debugLineNum = 778;BA.debugLine="SessionActive = True"; + //BA.debugLineNum = 826;BA.debugLine="SessionActive = True"; _sessionactive = anywheresoftware.b4a.keywords.Common.True; - //BA.debugLineNum = 779;BA.debugLine="BtnStart.Text = Localization.T(\"end\")"; + //BA.debugLineNum = 827;BA.debugLine="BtnStart.Text = Localization.T(\"end\")"; mostCurrent._btnstart.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"end"))); - //BA.debugLineNum = 780;BA.debugLine="If PauseActive Then"; + //BA.debugLineNum = 828;BA.debugLine="If PauseActive Then"; if (_pauseactive) { - //BA.debugLineNum = 781;BA.debugLine="BtnPause.Text = Localization.T(\"end_pause\")"; + //BA.debugLineNum = 829;BA.debugLine="BtnPause.Text = Localization.T(\"end_pause\")"; mostCurrent._btnpause.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"end_pause"))); - //BA.debugLineNum = 782;BA.debugLine="BtnPause.Enabled = True"; + //BA.debugLineNum = 830;BA.debugLine="BtnPause.Enabled = True"; mostCurrent._btnpause.setEnabled(anywheresoftware.b4a.keywords.Common.True); }else { - //BA.debugLineNum = 784;BA.debugLine="BtnPause.Text = Localization.T(\"pause\")"; + //BA.debugLineNum = 832;BA.debugLine="BtnPause.Text = Localization.T(\"pause\")"; mostCurrent._btnpause.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"pause"))); - //BA.debugLineNum = 785;BA.debugLine="BtnPause.Enabled = True"; + //BA.debugLineNum = 833;BA.debugLine="BtnPause.Enabled = True"; mostCurrent._btnpause.setEnabled(anywheresoftware.b4a.keywords.Common.True); - //BA.debugLineNum = 786;BA.debugLine="CurrentSegmentColor = GetCurrentWorkColor"; + //BA.debugLineNum = 834;BA.debugLine="CurrentSegmentColor = GetCurrentWorkColor"; _currentsegmentcolor = _getcurrentworkcolor(); }; - //BA.debugLineNum = 788;BA.debugLine="UpdateMainControlState"; + //BA.debugLineNum = 836;BA.debugLine="UpdateMainControlState"; _updatemaincontrolstate(); - //BA.debugLineNum = 789;BA.debugLine="myClock.ClearSegments"; + //BA.debugLineNum = 837;BA.debugLine="myClock.ClearSegments"; mostCurrent._myclock._clearsegments /*String*/ (); - //BA.debugLineNum = 790;BA.debugLine="LoadWorkDaySegmentsIntoClock(CurrentWorkDayKey)"; + //BA.debugLineNum = 838;BA.debugLine="LoadWorkDaySegmentsIntoClock(CurrentWorkDayKey)"; _loadworkdaysegmentsintoclock(_currentworkdaykey); - //BA.debugLineNum = 791;BA.debugLine="myClock.SetActiveSegment(Max(0, now - CurrentSegm"; + //BA.debugLineNum = 839;BA.debugLine="myClock.SetActiveSegment(Max(0, now - CurrentSegm"; mostCurrent._myclock._setactivesegment /*String*/ ((long) (anywheresoftware.b4a.keywords.Common.Max(0,_now-_currentsegmentstart)),_currentsegmentcolor,_pauseactive); - //BA.debugLineNum = 792;BA.debugLine="UpdateElapsedLabel"; + //BA.debugLineNum = 840;BA.debugLine="UpdateElapsedLabel"; _updateelapsedlabel(); - //BA.debugLineNum = 793;BA.debugLine="End Sub"; + //BA.debugLineNum = 841;BA.debugLine="End Sub"; return ""; } public static String _restorelastcloseddaystate() throws Exception{ long _latestdaystart = 0L; - //BA.debugLineNum = 795;BA.debugLine="Private Sub RestoreLastClosedDayState"; - //BA.debugLineNum = 796;BA.debugLine="If SessionActive Then Return"; + //BA.debugLineNum = 843;BA.debugLine="Private Sub RestoreLastClosedDayState"; + //BA.debugLineNum = 844;BA.debugLine="If SessionActive Then Return"; if (_sessionactive) { if (true) return "";}; - //BA.debugLineNum = 797;BA.debugLine="Dim latestDayStart As Long = GetLatestWorkDayStar"; + //BA.debugLineNum = 845;BA.debugLine="Dim latestDayStart As Long = GetLatestWorkDayStar"; _latestdaystart = _getlatestworkdaystart(); - //BA.debugLineNum = 798;BA.debugLine="If latestDayStart = 0 Then Return"; + //BA.debugLineNum = 846;BA.debugLine="If latestDayStart = 0 Then Return"; if (_latestdaystart==0) { if (true) return "";}; - //BA.debugLineNum = 799;BA.debugLine="If CurrentWorkDayStart = latestDayStart And Produ"; + //BA.debugLineNum = 847;BA.debugLine="If CurrentWorkDayStart = latestDayStart And Produ"; if (_currentworkdaystart==_latestdaystart && _productiveelapsedms>0) { if (true) return "";}; - //BA.debugLineNum = 800;BA.debugLine="CurrentWorkDayStart = latestDayStart"; + //BA.debugLineNum = 848;BA.debugLine="CurrentWorkDayStart = latestDayStart"; _currentworkdaystart = _latestdaystart; - //BA.debugLineNum = 801;BA.debugLine="CurrentWorkDayKey = latestDayStart"; + //BA.debugLineNum = 849;BA.debugLine="CurrentWorkDayKey = latestDayStart"; _currentworkdaykey = _latestdaystart; - //BA.debugLineNum = 802;BA.debugLine="ProductiveElapsedMs = GetProductiveTotalForWorkDa"; + //BA.debugLineNum = 850;BA.debugLine="ProductiveElapsedMs = GetProductiveTotalForWorkDa"; _productiveelapsedms = _getproductivetotalforworkday(_currentworkdaykey); - //BA.debugLineNum = 803;BA.debugLine="CurrentSegmentStart = 0"; + //BA.debugLineNum = 851;BA.debugLine="CurrentSegmentStart = 0"; _currentsegmentstart = (long) (0); - //BA.debugLineNum = 804;BA.debugLine="PauseActive = False"; + //BA.debugLineNum = 852;BA.debugLine="PauseActive = False"; _pauseactive = anywheresoftware.b4a.keywords.Common.False; - //BA.debugLineNum = 805;BA.debugLine="CurrentSegmentColor = GetCurrentWorkColor"; + //BA.debugLineNum = 853;BA.debugLine="CurrentSegmentColor = GetCurrentWorkColor"; _currentsegmentcolor = _getcurrentworkcolor(); - //BA.debugLineNum = 806;BA.debugLine="myClock.ClearSegments"; + //BA.debugLineNum = 854;BA.debugLine="myClock.ClearSegments"; mostCurrent._myclock._clearsegments /*String*/ (); - //BA.debugLineNum = 807;BA.debugLine="LoadWorkDaySegmentsIntoClock(CurrentWorkDayKey)"; + //BA.debugLineNum = 855;BA.debugLine="LoadWorkDaySegmentsIntoClock(CurrentWorkDayKey)"; _loadworkdaysegmentsintoclock(_currentworkdaykey); - //BA.debugLineNum = 808;BA.debugLine="myClock.ClearActiveSegment"; + //BA.debugLineNum = 856;BA.debugLine="myClock.ClearActiveSegment"; mostCurrent._myclock._clearactivesegment /*String*/ (); - //BA.debugLineNum = 809;BA.debugLine="UpdateElapsedLabel"; + //BA.debugLineNum = 857;BA.debugLine="UpdateElapsedLabel"; _updateelapsedlabel(); - //BA.debugLineNum = 810;BA.debugLine="End Sub"; + //BA.debugLineNum = 858;BA.debugLine="End Sub"; return ""; } public static String _saveactivestate() throws Exception{ anywheresoftware.b4a.objects.collections.List _lines = null; - //BA.debugLineNum = 735;BA.debugLine="Private Sub SaveActiveState"; - //BA.debugLineNum = 736;BA.debugLine="If SessionActive = False Then"; + //BA.debugLineNum = 783;BA.debugLine="Private Sub SaveActiveState"; + //BA.debugLineNum = 784;BA.debugLine="If SessionActive = False Then"; if (_sessionactive==anywheresoftware.b4a.keywords.Common.False) { - //BA.debugLineNum = 737;BA.debugLine="If File.Exists(File.DirInternal, StateFileName)"; + //BA.debugLineNum = 785;BA.debugLine="If File.Exists(File.DirInternal, StateFileName)"; if (anywheresoftware.b4a.keywords.Common.File.Exists(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_statefilename)) { anywheresoftware.b4a.keywords.Common.File.Delete(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_statefilename);}; - //BA.debugLineNum = 738;BA.debugLine="LastActiveStateSaveAt = 0"; + //BA.debugLineNum = 786;BA.debugLine="LastActiveStateSaveAt = 0"; _lastactivestatesaveat = (long) (0); - //BA.debugLineNum = 739;BA.debugLine="Return"; + //BA.debugLineNum = 787;BA.debugLine="Return"; if (true) return ""; }; - //BA.debugLineNum = 741;BA.debugLine="Dim lines As List"; + //BA.debugLineNum = 789;BA.debugLine="Dim lines As List"; _lines = new anywheresoftware.b4a.objects.collections.List(); - //BA.debugLineNum = 742;BA.debugLine="lines.Initialize"; + //BA.debugLineNum = 790;BA.debugLine="lines.Initialize"; _lines.Initialize(); - //BA.debugLineNum = 743;BA.debugLine="lines.Add(CurrentWorkDayStart)"; + //BA.debugLineNum = 791;BA.debugLine="lines.Add(CurrentWorkDayStart)"; _lines.Add((Object)(_currentworkdaystart)); - //BA.debugLineNum = 744;BA.debugLine="lines.Add(CurrentSegmentStart)"; + //BA.debugLineNum = 792;BA.debugLine="lines.Add(CurrentSegmentStart)"; _lines.Add((Object)(_currentsegmentstart)); - //BA.debugLineNum = 745;BA.debugLine="lines.Add(ProductiveElapsedMs)"; + //BA.debugLineNum = 793;BA.debugLine="lines.Add(ProductiveElapsedMs)"; _lines.Add((Object)(_productiveelapsedms)); - //BA.debugLineNum = 746;BA.debugLine="lines.Add(PauseActive)"; + //BA.debugLineNum = 794;BA.debugLine="lines.Add(PauseActive)"; _lines.Add((Object)(_pauseactive)); - //BA.debugLineNum = 747;BA.debugLine="lines.Add(CurrentSegmentColor)"; + //BA.debugLineNum = 795;BA.debugLine="lines.Add(CurrentSegmentColor)"; _lines.Add((Object)(_currentsegmentcolor)); - //BA.debugLineNum = 748;BA.debugLine="File.WriteList(File.DirInternal, StateFileName, l"; + //BA.debugLineNum = 796;BA.debugLine="File.WriteList(File.DirInternal, StateFileName, l"; anywheresoftware.b4a.keywords.Common.File.WriteList(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_statefilename,_lines); - //BA.debugLineNum = 749;BA.debugLine="LastActiveStateSaveAt = DateTime.Now"; + //BA.debugLineNum = 797;BA.debugLine="LastActiveStateSaveAt = DateTime.Now"; _lastactivestatesaveat = anywheresoftware.b4a.keywords.Common.DateTime.getNow(); - //BA.debugLineNum = 750;BA.debugLine="End Sub"; + //BA.debugLineNum = 798;BA.debugLine="End Sub"; return ""; } public static String _saveautoconfig() throws Exception{ anywheresoftware.b4a.objects.collections.List _lines = null; - //BA.debugLineNum = 959;BA.debugLine="Private Sub SaveAutoConfig"; - //BA.debugLineNum = 960;BA.debugLine="Dim lines As List"; + //BA.debugLineNum = 1019;BA.debugLine="Private Sub SaveAutoConfig"; + //BA.debugLineNum = 1020;BA.debugLine="Dim lines As List"; _lines = new anywheresoftware.b4a.objects.collections.List(); - //BA.debugLineNum = 961;BA.debugLine="lines.Initialize"; + //BA.debugLineNum = 1021;BA.debugLine="lines.Initialize"; _lines.Initialize(); - //BA.debugLineNum = 962;BA.debugLine="lines.Add(AutoStartMinutes)"; + //BA.debugLineNum = 1022;BA.debugLine="lines.Add(AutoStartMinutes)"; _lines.Add((Object)(_autostartminutes)); - //BA.debugLineNum = 963;BA.debugLine="lines.Add(AutoPauseStartMinutes)"; + //BA.debugLineNum = 1023;BA.debugLine="lines.Add(AutoPauseStartMinutes)"; _lines.Add((Object)(_autopausestartminutes)); - //BA.debugLineNum = 964;BA.debugLine="lines.Add(AutoPauseEndMinutes)"; + //BA.debugLineNum = 1024;BA.debugLine="lines.Add(AutoPauseEndMinutes)"; _lines.Add((Object)(_autopauseendminutes)); - //BA.debugLineNum = 965;BA.debugLine="lines.Add(AutoEndMinutes)"; + //BA.debugLineNum = 1025;BA.debugLine="lines.Add(AutoEndMinutes)"; _lines.Add((Object)(_autoendminutes)); - //BA.debugLineNum = 966;BA.debugLine="File.WriteList(File.DirInternal, AutoConfigFileNa"; + //BA.debugLineNum = 1026;BA.debugLine="File.WriteList(File.DirInternal, AutoConfigFileNa"; anywheresoftware.b4a.keywords.Common.File.WriteList(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_autoconfigfilename,_lines); - //BA.debugLineNum = 967;BA.debugLine="End Sub"; + //BA.debugLineNum = 1027;BA.debugLine="End Sub"; return ""; } public static String _savestatsrows() throws Exception{ anywheresoftware.b4a.objects.collections.List _lines = null; anywheresoftware.b4a.objects.collections.Map _row = null; String _source = ""; - //BA.debugLineNum = 710;BA.debugLine="Private Sub SaveStatsRows"; - //BA.debugLineNum = 711;BA.debugLine="Dim lines As List"; + //BA.debugLineNum = 758;BA.debugLine="Private Sub SaveStatsRows"; + //BA.debugLineNum = 759;BA.debugLine="Dim lines As List"; _lines = new anywheresoftware.b4a.objects.collections.List(); - //BA.debugLineNum = 712;BA.debugLine="lines.Initialize"; + //BA.debugLineNum = 760;BA.debugLine="lines.Initialize"; _lines.Initialize(); - //BA.debugLineNum = 713;BA.debugLine="For Each row As Map In StatsRows"; + //BA.debugLineNum = 761;BA.debugLine="For Each row As Map In StatsRows"; _row = new anywheresoftware.b4a.objects.collections.Map(); { final anywheresoftware.b4a.BA.IterableList group3 = mostCurrent._statsrows; @@ -2259,18 +2355,18 @@ final int groupLen3 = group3.getSize() ; for (; index3 < groupLen3;index3++){ _row = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(group3.Get(index3))); - //BA.debugLineNum = 714;BA.debugLine="Dim source As String = \"manual\""; + //BA.debugLineNum = 762;BA.debugLine="Dim source As String = \"manual\""; _source = "manual"; - //BA.debugLineNum = 715;BA.debugLine="If row.ContainsKey(\"source\") Then source = row.G"; + //BA.debugLineNum = 763;BA.debugLine="If row.ContainsKey(\"source\") Then source = row.G"; if (_row.ContainsKey((Object)("source"))) { _source = BA.ObjectToString(_row.Get((Object)("source")));}; - //BA.debugLineNum = 716;BA.debugLine="lines.Add(row.Get(\"dayStart\") & \"|\" & row.Get(\"s"; + //BA.debugLineNum = 764;BA.debugLine="lines.Add(row.Get(\"dayStart\") & \"|\" & row.Get(\"s"; _lines.Add((Object)(BA.ObjectToString(_row.Get((Object)("dayStart")))+"|"+BA.ObjectToString(_row.Get((Object)("segmentStart")))+"|"+BA.ObjectToString(_row.Get((Object)("duration")))+"|"+BA.ObjectToString(_row.Get((Object)("category")))+"|"+_source)); } }; - //BA.debugLineNum = 718;BA.debugLine="File.WriteList(File.DirInternal, StatsFileName, l"; + //BA.debugLineNum = 766;BA.debugLine="File.WriteList(File.DirInternal, StatsFileName, l"; anywheresoftware.b4a.keywords.Common.File.WriteList(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_statsfilename,_lines); - //BA.debugLineNum = 719;BA.debugLine="End Sub"; + //BA.debugLineNum = 767;BA.debugLine="End Sub"; return ""; } public static String _setautomaticconfig() throws Exception{ @@ -2279,241 +2375,264 @@ int _pausestartminutes = 0; int _pauseendminutes = 0; int _endminutes = 0; int _workminutes = 0; - //BA.debugLineNum = 919;BA.debugLine="Private Sub SetAutomaticConfig"; - //BA.debugLineNum = 920;BA.debugLine="Dim startMinutes As Int = ParseTimeToMinutes(txtC"; + //BA.debugLineNum = 979;BA.debugLine="Private Sub SetAutomaticConfig"; + //BA.debugLineNum = 980;BA.debugLine="Dim startMinutes As Int = ParseTimeToMinutes(txtC"; _startminutes = _parsetimetominutes(mostCurrent._txtcfgstart.getText()); - //BA.debugLineNum = 921;BA.debugLine="Dim pauseStartMinutes As Int = ParseTimeToMinutes"; + //BA.debugLineNum = 981;BA.debugLine="Dim pauseStartMinutes As Int = ParseTimeToMinutes"; _pausestartminutes = _parsetimetominutes(mostCurrent._txtcfgpausestart.getText()); - //BA.debugLineNum = 922;BA.debugLine="Dim pauseEndMinutes As Int = ParseTimeToMinutes(t"; + //BA.debugLineNum = 982;BA.debugLine="Dim pauseEndMinutes As Int = ParseTimeToMinutes(t"; _pauseendminutes = _parsetimetominutes(mostCurrent._txtcfgpauseend.getText()); - //BA.debugLineNum = 923;BA.debugLine="Dim endMinutes As Int = ParseTimeToMinutes(txtCfg"; + //BA.debugLineNum = 983;BA.debugLine="Dim endMinutes As Int = ParseTimeToMinutes(txtCfg"; _endminutes = _parsetimetominutes(mostCurrent._txtcfgend.getText()); - //BA.debugLineNum = 924;BA.debugLine="If startMinutes < 0 Or pauseStartMinutes < 0 Or p"; + //BA.debugLineNum = 984;BA.debugLine="If startMinutes < 0 Or pauseStartMinutes < 0 Or p"; if (_startminutes<0 || _pausestartminutes<0 || _pauseendminutes<0 || _endminutes<0) { - //BA.debugLineNum = 925;BA.debugLine="ToastMessageShow(Localization.T(\"use_hhmm\"), Fal"; + //BA.debugLineNum = 985;BA.debugLine="ToastMessageShow(Localization.T(\"use_hhmm\"), Fal"; anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"use_hhmm")),anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 926;BA.debugLine="Return"; + //BA.debugLineNum = 986;BA.debugLine="Return"; if (true) return ""; }; - //BA.debugLineNum = 928;BA.debugLine="If startMinutes >= pauseStartMinutes Or pauseStar"; + //BA.debugLineNum = 988;BA.debugLine="If startMinutes >= pauseStartMinutes Or pauseStar"; if (_startminutes>=_pausestartminutes || _pausestartminutes>=_pauseendminutes || _pauseendminutes>=_endminutes) { - //BA.debugLineNum = 929;BA.debugLine="ToastMessageShow(Localization.T(\"times_order\"),"; + //BA.debugLineNum = 989;BA.debugLine="ToastMessageShow(Localization.T(\"times_order\"),"; anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"times_order")),anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 930;BA.debugLine="Return"; + //BA.debugLineNum = 990;BA.debugLine="Return"; if (true) return ""; }; - //BA.debugLineNum = 932;BA.debugLine="Dim workMinutes As Int = (pauseStartMinutes - sta"; + //BA.debugLineNum = 992;BA.debugLine="Dim workMinutes As Int = (pauseStartMinutes - sta"; _workminutes = (int) ((_pausestartminutes-_startminutes)+(_endminutes-_pauseendminutes)); - //BA.debugLineNum = 933;BA.debugLine="If workMinutes > 480 Then"; + //BA.debugLineNum = 993;BA.debugLine="If workMinutes > 480 Then"; if (_workminutes>480) { - //BA.debugLineNum = 934;BA.debugLine="ToastMessageShow(Localization.T(\"work_exceed\"),"; + //BA.debugLineNum = 994;BA.debugLine="ToastMessageShow(Localization.T(\"work_exceed\"),"; anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"work_exceed")),anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 935;BA.debugLine="Return"; + //BA.debugLineNum = 995;BA.debugLine="Return"; if (true) return ""; }; - //BA.debugLineNum = 937;BA.debugLine="AutoStartMinutes = startMinutes"; + //BA.debugLineNum = 997;BA.debugLine="AutoStartMinutes = startMinutes"; _autostartminutes = _startminutes; - //BA.debugLineNum = 938;BA.debugLine="AutoPauseStartMinutes = pauseStartMinutes"; + //BA.debugLineNum = 998;BA.debugLine="AutoPauseStartMinutes = pauseStartMinutes"; _autopausestartminutes = _pausestartminutes; - //BA.debugLineNum = 939;BA.debugLine="AutoPauseEndMinutes = pauseEndMinutes"; + //BA.debugLineNum = 999;BA.debugLine="AutoPauseEndMinutes = pauseEndMinutes"; _autopauseendminutes = _pauseendminutes; - //BA.debugLineNum = 940;BA.debugLine="AutoEndMinutes = endMinutes"; + //BA.debugLineNum = 1000;BA.debugLine="AutoEndMinutes = endMinutes"; _autoendminutes = _endminutes; - //BA.debugLineNum = 941;BA.debugLine="AutoModeEnabled = True"; + //BA.debugLineNum = 1001;BA.debugLine="AutoModeEnabled = True"; _automodeenabled = anywheresoftware.b4a.keywords.Common.True; - //BA.debugLineNum = 942;BA.debugLine="SaveAutoConfig"; + //BA.debugLineNum = 1002;BA.debugLine="SaveAutoConfig"; _saveautoconfig(); - //BA.debugLineNum = 943;BA.debugLine="If SessionActive Then EndSession(DateTime.Now, Fa"; + //BA.debugLineNum = 1003;BA.debugLine="If SessionActive Then EndSession(DateTime.Now, Fa"; if (_sessionactive) { _endsession(anywheresoftware.b4a.keywords.Common.DateTime.getNow(),anywheresoftware.b4a.keywords.Common.False);}; - //BA.debugLineNum = 944;BA.debugLine="If File.Exists(File.DirInternal, StateFileName) T"; + //BA.debugLineNum = 1004;BA.debugLine="If File.Exists(File.DirInternal, StateFileName) T"; if (anywheresoftware.b4a.keywords.Common.File.Exists(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_statefilename)) { anywheresoftware.b4a.keywords.Common.File.Delete(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),_statefilename);}; - //BA.debugLineNum = 945;BA.debugLine="UpdateAutomaticState(DateTime.Now)"; + //BA.debugLineNum = 1005;BA.debugLine="UpdateAutomaticState(DateTime.Now)"; _updateautomaticstate(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); - //BA.debugLineNum = 946;BA.debugLine="ToastMessageShow(Localization.T(\"auto_enabled\"),"; + //BA.debugLineNum = 1006;BA.debugLine="ToastMessageShow(Localization.T(\"auto_enabled\"),"; anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"auto_enabled")),anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 947;BA.debugLine="End Sub"; + //BA.debugLineNum = 1007;BA.debugLine="End Sub"; return ""; } public static String _setmaincontrolsvisible(boolean _visible) throws Exception{ int _i = 0; anywheresoftware.b4a.objects.ConcreteViewWrapper _v = null; - //BA.debugLineNum = 820;BA.debugLine="Private Sub SetMainControlsVisible(Visible As Bool"; - //BA.debugLineNum = 821;BA.debugLine="For i = 0 To Activity.NumberOfViews - 1"; + //BA.debugLineNum = 869;BA.debugLine="Private Sub SetMainControlsVisible(Visible As Bool"; + //BA.debugLineNum = 870;BA.debugLine="For i = 0 To Activity.NumberOfViews - 1"; { final int step1 = 1; final int limit1 = (int) (mostCurrent._activity.getNumberOfViews()-1); _i = (int) (0) ; for (;_i <= limit1 ;_i = _i + step1 ) { - //BA.debugLineNum = 822;BA.debugLine="Dim v As View = Activity.GetView(i)"; + //BA.debugLineNum = 871;BA.debugLine="Dim v As View = Activity.GetView(i)"; _v = new anywheresoftware.b4a.objects.ConcreteViewWrapper(); _v = mostCurrent._activity.GetView(_i); - //BA.debugLineNum = 823;BA.debugLine="v.Visible = Visible"; + //BA.debugLineNum = 872;BA.debugLine="v.Visible = Visible"; _v.setVisible(_visible); } }; - //BA.debugLineNum = 825;BA.debugLine="HideLegacyButtons"; + //BA.debugLineNum = 874;BA.debugLine="HideLegacyButtons"; _hidelegacybuttons(); - //BA.debugLineNum = 826;BA.debugLine="pnlStats.Visible = False"; + //BA.debugLineNum = 875;BA.debugLine="pnlStats.Visible = False"; mostCurrent._pnlstats.setVisible(anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 827;BA.debugLine="pnlConfig.Visible = False"; + //BA.debugLineNum = 876;BA.debugLine="pnlConfig.Visible = False"; mostCurrent._pnlconfig.setVisible(anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 828;BA.debugLine="End Sub"; + //BA.debugLineNum = 877;BA.debugLine="pnlHelp.Visible = False"; +mostCurrent._pnlhelp.setVisible(anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 878;BA.debugLine="End Sub"; return ""; } public static String _showconfigpage() throws Exception{ - //BA.debugLineNum = 852;BA.debugLine="Private Sub ShowConfigPage"; - //BA.debugLineNum = 853;BA.debugLine="SetMainControlsVisible(False)"; + //BA.debugLineNum = 902;BA.debugLine="Private Sub ShowConfigPage"; + //BA.debugLineNum = 903;BA.debugLine="SetMainControlsVisible(False)"; _setmaincontrolsvisible(anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 854;BA.debugLine="pnlStats.Visible = False"; + //BA.debugLineNum = 904;BA.debugLine="pnlStats.Visible = False"; mostCurrent._pnlstats.setVisible(anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 855;BA.debugLine="pnlConfig.Visible = True"; + //BA.debugLineNum = 905;BA.debugLine="pnlConfig.Visible = True"; mostCurrent._pnlconfig.setVisible(anywheresoftware.b4a.keywords.Common.True); - //BA.debugLineNum = 856;BA.debugLine="pnlConfig.BringToFront"; + //BA.debugLineNum = 906;BA.debugLine="pnlHelp.Visible = False"; +mostCurrent._pnlhelp.setVisible(anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 907;BA.debugLine="pnlConfig.BringToFront"; mostCurrent._pnlconfig.BringToFront(); - //BA.debugLineNum = 857;BA.debugLine="End Sub"; + //BA.debugLineNum = 908;BA.debugLine="End Sub"; +return ""; +} +public static String _showhelppage() throws Exception{ + //BA.debugLineNum = 910;BA.debugLine="Private Sub ShowHelpPage"; + //BA.debugLineNum = 911;BA.debugLine="SetMainControlsVisible(False)"; +_setmaincontrolsvisible(anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 912;BA.debugLine="pnlStats.Visible = False"; +mostCurrent._pnlstats.setVisible(anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 913;BA.debugLine="pnlConfig.Visible = False"; +mostCurrent._pnlconfig.setVisible(anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 914;BA.debugLine="pnlHelp.Visible = True"; +mostCurrent._pnlhelp.setVisible(anywheresoftware.b4a.keywords.Common.True); + //BA.debugLineNum = 915;BA.debugLine="pnlHelp.BringToFront"; +mostCurrent._pnlhelp.BringToFront(); + //BA.debugLineNum = 916;BA.debugLine="End Sub"; return ""; } public static String _showmainpage() throws Exception{ - //BA.debugLineNum = 859;BA.debugLine="Private Sub ShowMainPage"; - //BA.debugLineNum = 860;BA.debugLine="SetMainControlsVisible(True)"; + //BA.debugLineNum = 918;BA.debugLine="Private Sub ShowMainPage"; + //BA.debugLineNum = 919;BA.debugLine="SetMainControlsVisible(True)"; _setmaincontrolsvisible(anywheresoftware.b4a.keywords.Common.True); - //BA.debugLineNum = 861;BA.debugLine="pnlStats.Visible = False"; + //BA.debugLineNum = 920;BA.debugLine="pnlStats.Visible = False"; mostCurrent._pnlstats.setVisible(anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 862;BA.debugLine="pnlConfig.Visible = False"; + //BA.debugLineNum = 921;BA.debugLine="pnlConfig.Visible = False"; mostCurrent._pnlconfig.setVisible(anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 863;BA.debugLine="End Sub"; + //BA.debugLineNum = 922;BA.debugLine="pnlHelp.Visible = False"; +mostCurrent._pnlhelp.setVisible(anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 923;BA.debugLine="End Sub"; return ""; } public static String _showstatspage() throws Exception{ - //BA.debugLineNum = 812;BA.debugLine="Private Sub ShowStatsPage"; - //BA.debugLineNum = 813;BA.debugLine="BuildStatsTable"; + //BA.debugLineNum = 860;BA.debugLine="Private Sub ShowStatsPage"; + //BA.debugLineNum = 861;BA.debugLine="BuildStatsTable"; _buildstatstable(); - //BA.debugLineNum = 814;BA.debugLine="SetMainControlsVisible(False)"; + //BA.debugLineNum = 862;BA.debugLine="SetMainControlsVisible(False)"; _setmaincontrolsvisible(anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 815;BA.debugLine="pnlStats.Visible = True"; + //BA.debugLineNum = 863;BA.debugLine="pnlStats.Visible = True"; mostCurrent._pnlstats.setVisible(anywheresoftware.b4a.keywords.Common.True); - //BA.debugLineNum = 816;BA.debugLine="pnlConfig.Visible = False"; + //BA.debugLineNum = 864;BA.debugLine="pnlConfig.Visible = False"; mostCurrent._pnlconfig.setVisible(anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 817;BA.debugLine="pnlStats.BringToFront"; + //BA.debugLineNum = 865;BA.debugLine="pnlHelp.Visible = False"; +mostCurrent._pnlhelp.setVisible(anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 866;BA.debugLine="pnlStats.BringToFront"; mostCurrent._pnlstats.BringToFront(); - //BA.debugLineNum = 818;BA.debugLine="End Sub"; + //BA.debugLineNum = 867;BA.debugLine="End Sub"; return ""; } public static String _startsession() throws Exception{ - //BA.debugLineNum = 398;BA.debugLine="Private Sub StartSession"; - //BA.debugLineNum = 399;BA.debugLine="CurrentWorkDayStart = GetWorkDayStart(DateTime.No"; + //BA.debugLineNum = 446;BA.debugLine="Private Sub StartSession"; + //BA.debugLineNum = 447;BA.debugLine="CurrentWorkDayStart = GetWorkDayStart(DateTime.No"; _currentworkdaystart = _getworkdaystart(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); - //BA.debugLineNum = 400;BA.debugLine="CurrentWorkDayKey = CurrentWorkDayStart"; + //BA.debugLineNum = 448;BA.debugLine="CurrentWorkDayKey = CurrentWorkDayStart"; _currentworkdaykey = _currentworkdaystart; - //BA.debugLineNum = 401;BA.debugLine="ProductiveElapsedMs = GetProductiveTotalForWorkDa"; + //BA.debugLineNum = 449;BA.debugLine="ProductiveElapsedMs = GetProductiveTotalForWorkDa"; _productiveelapsedms = _getproductivetotalforworkday(_currentworkdaykey); - //BA.debugLineNum = 402;BA.debugLine="If ProductiveElapsedMs >= MaxProductiveMs Then"; + //BA.debugLineNum = 450;BA.debugLine="If ProductiveElapsedMs >= MaxProductiveMs Then"; if (_productiveelapsedms>=_maxproductivems) { - //BA.debugLineNum = 403;BA.debugLine="ToastMessageShow(Localization.T(\"limit_reached\")"; + //BA.debugLineNum = 451;BA.debugLine="ToastMessageShow(Localization.T(\"limit_reached\")"; anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"limit_reached")),anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 404;BA.debugLine="UpdateElapsedLabel"; + //BA.debugLineNum = 452;BA.debugLine="UpdateElapsedLabel"; _updateelapsedlabel(); - //BA.debugLineNum = 405;BA.debugLine="Log(\"Start ignored: 9-hour limit already reached"; -anywheresoftware.b4a.keywords.Common.LogImpl("1966087","Start ignored: 9-hour limit already reached.",0); - //BA.debugLineNum = 406;BA.debugLine="Return"; + //BA.debugLineNum = 453;BA.debugLine="Log(\"Start ignored: 9-hour limit already reached"; +anywheresoftware.b4a.keywords.Common.LogImpl("2162695","Start ignored: 9-hour limit already reached.",0); + //BA.debugLineNum = 454;BA.debugLine="Return"; if (true) return ""; }; - //BA.debugLineNum = 408;BA.debugLine="SessionActive = True"; + //BA.debugLineNum = 456;BA.debugLine="SessionActive = True"; _sessionactive = anywheresoftware.b4a.keywords.Common.True; - //BA.debugLineNum = 409;BA.debugLine="PauseActive = False"; + //BA.debugLineNum = 457;BA.debugLine="PauseActive = False"; _pauseactive = anywheresoftware.b4a.keywords.Common.False; - //BA.debugLineNum = 410;BA.debugLine="CurrentSegmentStart = DateTime.Now"; + //BA.debugLineNum = 458;BA.debugLine="CurrentSegmentStart = DateTime.Now"; _currentsegmentstart = anywheresoftware.b4a.keywords.Common.DateTime.getNow(); - //BA.debugLineNum = 411;BA.debugLine="CurrentSegmentColor = GetCurrentWorkColor"; + //BA.debugLineNum = 459;BA.debugLine="CurrentSegmentColor = GetCurrentWorkColor"; _currentsegmentcolor = _getcurrentworkcolor(); - //BA.debugLineNum = 412;BA.debugLine="BtnStart.Text = Localization.T(\"end\")"; + //BA.debugLineNum = 460;BA.debugLine="BtnStart.Text = Localization.T(\"end\")"; mostCurrent._btnstart.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"end"))); - //BA.debugLineNum = 413;BA.debugLine="BtnPause.Text = Localization.T(\"pause\")"; + //BA.debugLineNum = 461;BA.debugLine="BtnPause.Text = Localization.T(\"pause\")"; mostCurrent._btnpause.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"pause"))); - //BA.debugLineNum = 414;BA.debugLine="BtnPause.Enabled = True"; + //BA.debugLineNum = 462;BA.debugLine="BtnPause.Enabled = True"; mostCurrent._btnpause.setEnabled(anywheresoftware.b4a.keywords.Common.True); - //BA.debugLineNum = 415;BA.debugLine="UpdateMainControlState"; + //BA.debugLineNum = 463;BA.debugLine="UpdateMainControlState"; _updatemaincontrolstate(); - //BA.debugLineNum = 416;BA.debugLine="myClock.ClearSegments"; + //BA.debugLineNum = 464;BA.debugLine="myClock.ClearSegments"; mostCurrent._myclock._clearsegments /*String*/ (); - //BA.debugLineNum = 417;BA.debugLine="LoadWorkDaySegmentsIntoClock(CurrentWorkDayKey)"; + //BA.debugLineNum = 465;BA.debugLine="LoadWorkDaySegmentsIntoClock(CurrentWorkDayKey)"; _loadworkdaysegmentsintoclock(_currentworkdaykey); - //BA.debugLineNum = 418;BA.debugLine="myClock.SetActiveSegment(0, CurrentSegmentColor,"; + //BA.debugLineNum = 466;BA.debugLine="myClock.SetActiveSegment(0, CurrentSegmentColor,"; mostCurrent._myclock._setactivesegment /*String*/ ((long) (0),_currentsegmentcolor,anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 419;BA.debugLine="UpdateElapsedLabel"; + //BA.debugLineNum = 467;BA.debugLine="UpdateElapsedLabel"; _updateelapsedlabel(); - //BA.debugLineNum = 420;BA.debugLine="SaveActiveState"; + //BA.debugLineNum = 468;BA.debugLine="SaveActiveState"; _saveactivestate(); - //BA.debugLineNum = 421;BA.debugLine="Log(\"Workday started.\")"; -anywheresoftware.b4a.keywords.Common.LogImpl("1966103","Workday started.",0); - //BA.debugLineNum = 422;BA.debugLine="End Sub"; + //BA.debugLineNum = 469;BA.debugLine="Log(\"Workday started.\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("2162711","Workday started.",0); + //BA.debugLineNum = 470;BA.debugLine="End Sub"; return ""; } public static String _styleneutralbutton(anywheresoftware.b4a.objects.LabelWrapper _btn) throws Exception{ - //BA.debugLineNum = 219;BA.debugLine="Private Sub StyleNeutralButton(btn As Label)"; - //BA.debugLineNum = 220;BA.debugLine="If btn.IsInitialized = False Then Return"; + //BA.debugLineNum = 224;BA.debugLine="Private Sub StyleNeutralButton(btn As Label)"; + //BA.debugLineNum = 225;BA.debugLine="If btn.IsInitialized = False Then Return"; if (_btn.IsInitialized()==anywheresoftware.b4a.keywords.Common.False) { if (true) return "";}; - //BA.debugLineNum = 221;BA.debugLine="btn.Color = Colors.RGB(230, 230, 230)"; + //BA.debugLineNum = 226;BA.debugLine="btn.Color = Colors.RGB(230, 230, 230)"; _btn.setColor(anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (230),(int) (230),(int) (230))); - //BA.debugLineNum = 222;BA.debugLine="btn.TextColor = Colors.Black"; + //BA.debugLineNum = 227;BA.debugLine="btn.TextColor = Colors.Black"; _btn.setTextColor(anywheresoftware.b4a.keywords.Common.Colors.Black); - //BA.debugLineNum = 223;BA.debugLine="btn.Gravity = Gravity.CENTER"; + //BA.debugLineNum = 228;BA.debugLine="btn.Gravity = Gravity.CENTER"; _btn.setGravity(anywheresoftware.b4a.keywords.Common.Gravity.CENTER); - //BA.debugLineNum = 224;BA.debugLine="End Sub"; + //BA.debugLineNum = 229;BA.debugLine="End Sub"; return ""; } public static String _synchronizeclock() throws Exception{ - //BA.debugLineNum = 394;BA.debugLine="Sub SynchronizeClock"; - //BA.debugLineNum = 395;BA.debugLine="myClock.DrawClock"; + //BA.debugLineNum = 442;BA.debugLine="Sub SynchronizeClock"; + //BA.debugLineNum = 443;BA.debugLine="myClock.DrawClock"; mostCurrent._myclock._drawclock /*String*/ (); - //BA.debugLineNum = 396;BA.debugLine="End Sub"; + //BA.debugLineNum = 444;BA.debugLine="End Sub"; return ""; } public static String _timer1_tick() throws Exception{ long _now = 0L; - //BA.debugLineNum = 111;BA.debugLine="Sub Timer1_Tick"; - //BA.debugLineNum = 112;BA.debugLine="If AutoModeEnabled Then"; + //BA.debugLineNum = 116;BA.debugLine="Sub Timer1_Tick"; + //BA.debugLineNum = 117;BA.debugLine="If AutoModeEnabled Then"; if (_automodeenabled) { - //BA.debugLineNum = 113;BA.debugLine="UpdateAutomaticState(DateTime.Now)"; + //BA.debugLineNum = 118;BA.debugLine="UpdateAutomaticState(DateTime.Now)"; _updateautomaticstate(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); - //BA.debugLineNum = 114;BA.debugLine="Return"; + //BA.debugLineNum = 119;BA.debugLine="Return"; if (true) return ""; }; - //BA.debugLineNum = 116;BA.debugLine="If SessionActive Then"; + //BA.debugLineNum = 121;BA.debugLine="If SessionActive Then"; if (_sessionactive) { - //BA.debugLineNum = 117;BA.debugLine="Dim now As Long = DateTime.Now"; + //BA.debugLineNum = 122;BA.debugLine="Dim now As Long = DateTime.Now"; _now = anywheresoftware.b4a.keywords.Common.DateTime.getNow(); - //BA.debugLineNum = 118;BA.debugLine="If PauseActive Then"; + //BA.debugLineNum = 123;BA.debugLine="If PauseActive Then"; if (_pauseactive) { - //BA.debugLineNum = 119;BA.debugLine="ProcessActivePauseSegment(now)"; + //BA.debugLineNum = 124;BA.debugLine="ProcessActivePauseSegment(now)"; _processactivepausesegment(_now); - //BA.debugLineNum = 120;BA.debugLine="If SessionActive = False Then Return"; + //BA.debugLineNum = 125;BA.debugLine="If SessionActive = False Then Return"; if (_sessionactive==anywheresoftware.b4a.keywords.Common.False) { if (true) return "";}; - //BA.debugLineNum = 121;BA.debugLine="myClock.SetActiveSegment(now - CurrentSegmentSt"; + //BA.debugLineNum = 126;BA.debugLine="myClock.SetActiveSegment(now - CurrentSegmentSt"; mostCurrent._myclock._setactivesegment /*String*/ ((long) (_now-_currentsegmentstart),anywheresoftware.b4a.keywords.Common.Colors.Yellow,anywheresoftware.b4a.keywords.Common.True); }else { - //BA.debugLineNum = 123;BA.debugLine="ProcessActiveWorkSegment(now)"; + //BA.debugLineNum = 128;BA.debugLine="ProcessActiveWorkSegment(now)"; _processactiveworksegment(_now); - //BA.debugLineNum = 124;BA.debugLine="If SessionActive Then"; + //BA.debugLineNum = 129;BA.debugLine="If SessionActive Then"; if (_sessionactive) { - //BA.debugLineNum = 125;BA.debugLine="myClock.SetActiveSegment(now - CurrentSegmentS"; + //BA.debugLineNum = 130;BA.debugLine="myClock.SetActiveSegment(now - CurrentSegmentS"; mostCurrent._myclock._setactivesegment /*String*/ ((long) (_now-_currentsegmentstart),_currentsegmentcolor,anywheresoftware.b4a.keywords.Common.False); }; }; - //BA.debugLineNum = 128;BA.debugLine="If SessionActive And now - LastActiveStateSaveAt"; + //BA.debugLineNum = 133;BA.debugLine="If SessionActive And now - LastActiveStateSaveAt"; if (_sessionactive && _now-_lastactivestatesaveat>=30*anywheresoftware.b4a.keywords.Common.DateTime.TicksPerSecond) { _saveactivestate();}; - //BA.debugLineNum = 129;BA.debugLine="UpdateElapsedLabel"; + //BA.debugLineNum = 134;BA.debugLine="UpdateElapsedLabel"; _updateelapsedlabel(); }else { - //BA.debugLineNum = 131;BA.debugLine="myClock.DrawClock"; + //BA.debugLineNum = 136;BA.debugLine="myClock.DrawClock"; mostCurrent._myclock._drawclock /*String*/ (); }; - //BA.debugLineNum = 133;BA.debugLine="End Sub"; + //BA.debugLineNum = 138;BA.debugLine="End Sub"; return ""; } public static String _trimstatsrows() throws Exception{ @@ -2522,18 +2641,18 @@ long _cutoff = 0L; anywheresoftware.b4a.objects.collections.List _kept = null; anywheresoftware.b4a.objects.collections.Map _row = null; long _daystart = 0L; - //BA.debugLineNum = 721;BA.debugLine="Private Sub TrimStatsRows"; - //BA.debugLineNum = 722;BA.debugLine="Dim retention As Long = MaxStoredDays"; + //BA.debugLineNum = 769;BA.debugLine="Private Sub TrimStatsRows"; + //BA.debugLineNum = 770;BA.debugLine="Dim retention As Long = MaxStoredDays"; _retention = (long) (_maxstoreddays); - //BA.debugLineNum = 723;BA.debugLine="retention = retention * DateTime.TicksPerDay"; + //BA.debugLineNum = 771;BA.debugLine="retention = retention * DateTime.TicksPerDay"; _retention = (long) (_retention*anywheresoftware.b4a.keywords.Common.DateTime.TicksPerDay); - //BA.debugLineNum = 724;BA.debugLine="Dim cutoff As Long = DateTime.Now - retention"; + //BA.debugLineNum = 772;BA.debugLine="Dim cutoff As Long = DateTime.Now - retention"; _cutoff = (long) (anywheresoftware.b4a.keywords.Common.DateTime.getNow()-_retention); - //BA.debugLineNum = 725;BA.debugLine="Dim kept As List"; + //BA.debugLineNum = 773;BA.debugLine="Dim kept As List"; _kept = new anywheresoftware.b4a.objects.collections.List(); - //BA.debugLineNum = 726;BA.debugLine="kept.Initialize"; + //BA.debugLineNum = 774;BA.debugLine="kept.Initialize"; _kept.Initialize(); - //BA.debugLineNum = 727;BA.debugLine="For Each row As Map In StatsRows"; + //BA.debugLineNum = 775;BA.debugLine="For Each row As Map In StatsRows"; _row = new anywheresoftware.b4a.objects.collections.Map(); { final anywheresoftware.b4a.BA.IterableList group6 = mostCurrent._statsrows; @@ -2542,144 +2661,144 @@ final int groupLen6 = group6.getSize() ; for (; index6 < groupLen6;index6++){ _row = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(group6.Get(index6))); - //BA.debugLineNum = 728;BA.debugLine="Dim dayStart As Long = row.Get(\"dayStart\")"; + //BA.debugLineNum = 776;BA.debugLine="Dim dayStart As Long = row.Get(\"dayStart\")"; _daystart = BA.ObjectToLongNumber(_row.Get((Object)("dayStart"))); - //BA.debugLineNum = 729;BA.debugLine="If dayStart >= cutoff Then kept.Add(row)"; + //BA.debugLineNum = 777;BA.debugLine="If dayStart >= cutoff Then kept.Add(row)"; if (_daystart>=_cutoff) { _kept.Add((Object)(_row.getObject()));}; } }; - //BA.debugLineNum = 731;BA.debugLine="StatsRows.Clear"; + //BA.debugLineNum = 779;BA.debugLine="StatsRows.Clear"; mostCurrent._statsrows.Clear(); - //BA.debugLineNum = 732;BA.debugLine="StatsRows.AddAll(kept)"; + //BA.debugLineNum = 780;BA.debugLine="StatsRows.AddAll(kept)"; mostCurrent._statsrows.AddAll(_kept); - //BA.debugLineNum = 733;BA.debugLine="End Sub"; + //BA.debugLineNum = 781;BA.debugLine="End Sub"; return ""; } public static String _updateautomaticstate(long _now) throws Exception{ long _daystart = 0L; int _minuteofday = 0; - //BA.debugLineNum = 1000;BA.debugLine="Private Sub UpdateAutomaticState(now As Long)"; - //BA.debugLineNum = 1001;BA.debugLine="Dim dayStart As Long = DateTime.DateParse(DateTim"; + //BA.debugLineNum = 1060;BA.debugLine="Private Sub UpdateAutomaticState(now As Long)"; + //BA.debugLineNum = 1061;BA.debugLine="Dim dayStart As Long = DateTime.DateParse(DateTim"; _daystart = anywheresoftware.b4a.keywords.Common.DateTime.DateParse(anywheresoftware.b4a.keywords.Common.DateTime.Date(_now)); - //BA.debugLineNum = 1002;BA.debugLine="Dim minuteOfDay As Int = DateTime.GetHour(now) *"; + //BA.debugLineNum = 1062;BA.debugLine="Dim minuteOfDay As Int = DateTime.GetHour(now) *"; _minuteofday = (int) (anywheresoftware.b4a.keywords.Common.DateTime.GetHour(_now)*60+anywheresoftware.b4a.keywords.Common.DateTime.GetMinute(_now)); - //BA.debugLineNum = 1003;BA.debugLine="CurrentWorkDayStart = dayStart"; + //BA.debugLineNum = 1063;BA.debugLine="CurrentWorkDayStart = dayStart"; _currentworkdaystart = _daystart; - //BA.debugLineNum = 1004;BA.debugLine="CurrentWorkDayKey = dayStart"; + //BA.debugLineNum = 1064;BA.debugLine="CurrentWorkDayKey = dayStart"; _currentworkdaykey = _daystart; - //BA.debugLineNum = 1005;BA.debugLine="RegenerateAutoSegmentsForDay(dayStart, minuteOfDa"; + //BA.debugLineNum = 1065;BA.debugLine="RegenerateAutoSegmentsForDay(dayStart, minuteOfDa"; _regenerateautosegmentsforday(_daystart,_minuteofday); - //BA.debugLineNum = 1006;BA.debugLine="ProductiveElapsedMs = GetProductiveTotalForWorkDa"; + //BA.debugLineNum = 1066;BA.debugLine="ProductiveElapsedMs = GetProductiveTotalForWorkDa"; _productiveelapsedms = _getproductivetotalforworkday(_currentworkdaykey); - //BA.debugLineNum = 1007;BA.debugLine="SessionActive = minuteOfDay >= AutoStartMinutes A"; + //BA.debugLineNum = 1067;BA.debugLine="SessionActive = minuteOfDay >= AutoStartMinutes A"; _sessionactive = _minuteofday>=_autostartminutes && _minuteofday<_autoendminutes && _productiveelapsedms<_worklimitms; - //BA.debugLineNum = 1008;BA.debugLine="PauseActive = minuteOfDay >= AutoPauseStartMinute"; + //BA.debugLineNum = 1068;BA.debugLine="PauseActive = minuteOfDay >= AutoPauseStartMinute"; _pauseactive = _minuteofday>=_autopausestartminutes && _minuteofday<_autopauseendminutes; - //BA.debugLineNum = 1009;BA.debugLine="If SessionActive And PauseActive = False Then"; + //BA.debugLineNum = 1069;BA.debugLine="If SessionActive And PauseActive = False Then"; if (_sessionactive && _pauseactive==anywheresoftware.b4a.keywords.Common.False) { - //BA.debugLineNum = 1010;BA.debugLine="AutoState = \"recording\""; + //BA.debugLineNum = 1070;BA.debugLine="AutoState = \"recording\""; mostCurrent._autostate = "recording"; }else if(_sessionactive && _pauseactive) { - //BA.debugLineNum = 1012;BA.debugLine="AutoState = \"paused\""; + //BA.debugLineNum = 1072;BA.debugLine="AutoState = \"paused\""; mostCurrent._autostate = "paused"; }else { - //BA.debugLineNum = 1014;BA.debugLine="AutoState = \"stopped\""; + //BA.debugLineNum = 1074;BA.debugLine="AutoState = \"stopped\""; mostCurrent._autostate = "stopped"; }; - //BA.debugLineNum = 1016;BA.debugLine="BtnStart.Text = IIf(SessionActive, Localization.T"; + //BA.debugLineNum = 1076;BA.debugLine="BtnStart.Text = IIf(SessionActive, Localization.T"; mostCurrent._btnstart.setText(BA.ObjectToCharSequence(((_sessionactive) ? ((Object)(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"end"))) : ((Object)(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"start")))))); - //BA.debugLineNum = 1017;BA.debugLine="BtnPause.Text = IIf(PauseActive, Localization.T(\""; + //BA.debugLineNum = 1077;BA.debugLine="BtnPause.Text = IIf(PauseActive, Localization.T(\""; mostCurrent._btnpause.setText(BA.ObjectToCharSequence(((_pauseactive) ? ((Object)(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"end_pause"))) : ((Object)(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"pause")))))); - //BA.debugLineNum = 1018;BA.debugLine="CurrentSegmentStart = now"; + //BA.debugLineNum = 1078;BA.debugLine="CurrentSegmentStart = now"; _currentsegmentstart = _now; - //BA.debugLineNum = 1019;BA.debugLine="CurrentSegmentColor = GetCurrentWorkColor"; + //BA.debugLineNum = 1079;BA.debugLine="CurrentSegmentColor = GetCurrentWorkColor"; _currentsegmentcolor = _getcurrentworkcolor(); - //BA.debugLineNum = 1020;BA.debugLine="myClock.ClearSegments"; + //BA.debugLineNum = 1080;BA.debugLine="myClock.ClearSegments"; mostCurrent._myclock._clearsegments /*String*/ (); - //BA.debugLineNum = 1021;BA.debugLine="LoadWorkDaySegmentsIntoClock(CurrentWorkDayKey)"; + //BA.debugLineNum = 1081;BA.debugLine="LoadWorkDaySegmentsIntoClock(CurrentWorkDayKey)"; _loadworkdaysegmentsintoclock(_currentworkdaykey); - //BA.debugLineNum = 1022;BA.debugLine="myClock.ClearActiveSegment"; + //BA.debugLineNum = 1082;BA.debugLine="myClock.ClearActiveSegment"; mostCurrent._myclock._clearactivesegment /*String*/ (); - //BA.debugLineNum = 1023;BA.debugLine="UpdateElapsedLabel"; + //BA.debugLineNum = 1083;BA.debugLine="UpdateElapsedLabel"; _updateelapsedlabel(); - //BA.debugLineNum = 1024;BA.debugLine="UpdateMainControlState"; + //BA.debugLineNum = 1084;BA.debugLine="UpdateMainControlState"; _updatemaincontrolstate(); - //BA.debugLineNum = 1025;BA.debugLine="End Sub"; + //BA.debugLineNum = 1085;BA.debugLine="End Sub"; return ""; } public static String _updateelapsedlabel() throws Exception{ String _labelprefix = ""; long _daystart = 0L; - //BA.debugLineNum = 546;BA.debugLine="Private Sub UpdateElapsedLabel"; - //BA.debugLineNum = 547;BA.debugLine="If lblElapsedTime.IsInitialized Then"; + //BA.debugLineNum = 594;BA.debugLine="Private Sub UpdateElapsedLabel"; + //BA.debugLineNum = 595;BA.debugLine="If lblElapsedTime.IsInitialized Then"; if (mostCurrent._lblelapsedtime.IsInitialized()) { - //BA.debugLineNum = 548;BA.debugLine="Dim labelPrefix As String = Localization.T(\"work"; + //BA.debugLineNum = 596;BA.debugLine="Dim labelPrefix As String = Localization.T(\"work"; _labelprefix = mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"work"); - //BA.debugLineNum = 549;BA.debugLine="Dim dayStart As Long = GetDisplayedWorkDayStart"; + //BA.debugLineNum = 597;BA.debugLine="Dim dayStart As Long = GetDisplayedWorkDayStart"; _daystart = _getdisplayedworkdaystart(); - //BA.debugLineNum = 550;BA.debugLine="If dayStart > 0 Then labelPrefix = FormatDayShor"; + //BA.debugLineNum = 598;BA.debugLine="If dayStart > 0 Then labelPrefix = FormatDayShor"; if (_daystart>0) { _labelprefix = _formatdayshort(_daystart)+" "+mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"work");}; - //BA.debugLineNum = 551;BA.debugLine="lblElapsedTime.Text = labelPrefix & \": \" & Forma"; + //BA.debugLineNum = 599;BA.debugLine="lblElapsedTime.Text = labelPrefix & \": \" & Forma"; mostCurrent._lblelapsedtime.setText(BA.ObjectToCharSequence(_labelprefix+": "+_formatelapsedtime(_getdisplayedproductiveelapsed(anywheresoftware.b4a.keywords.Common.DateTime.getNow())))); }; - //BA.debugLineNum = 553;BA.debugLine="End Sub"; + //BA.debugLineNum = 601;BA.debugLine="End Sub"; return ""; } public static String _updatemaincontrolstate() throws Exception{ - //BA.debugLineNum = 555;BA.debugLine="Private Sub UpdateMainControlState"; - //BA.debugLineNum = 556;BA.debugLine="If BtnStart.IsInitialized = False Then Return"; + //BA.debugLineNum = 603;BA.debugLine="Private Sub UpdateMainControlState"; + //BA.debugLineNum = 604;BA.debugLine="If BtnStart.IsInitialized = False Then Return"; if (mostCurrent._btnstart.IsInitialized()==anywheresoftware.b4a.keywords.Common.False) { if (true) return "";}; - //BA.debugLineNum = 557;BA.debugLine="BtnStart.Enabled = AutoModeEnabled = False"; + //BA.debugLineNum = 605;BA.debugLine="BtnStart.Enabled = AutoModeEnabled = False"; mostCurrent._btnstart.setEnabled(_automodeenabled==anywheresoftware.b4a.keywords.Common.False); - //BA.debugLineNum = 558;BA.debugLine="If SessionActive Or (AutoModeEnabled And AutoStat"; + //BA.debugLineNum = 606;BA.debugLine="If SessionActive Or (AutoModeEnabled And AutoStat"; if (_sessionactive || (_automodeenabled && (mostCurrent._autostate).equals("recording"))) { - //BA.debugLineNum = 559;BA.debugLine="BtnStart.Color = Colors.RGB(0, 150, 70)"; + //BA.debugLineNum = 607;BA.debugLine="BtnStart.Color = Colors.RGB(0, 150, 70)"; mostCurrent._btnstart.setColor(anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (0),(int) (150),(int) (70))); - //BA.debugLineNum = 560;BA.debugLine="BtnStart.TextColor = Colors.White"; + //BA.debugLineNum = 608;BA.debugLine="BtnStart.TextColor = Colors.White"; mostCurrent._btnstart.setTextColor(anywheresoftware.b4a.keywords.Common.Colors.White); }else { - //BA.debugLineNum = 562;BA.debugLine="BtnStart.Color = Colors.RGB(190, 40, 40)"; + //BA.debugLineNum = 610;BA.debugLine="BtnStart.Color = Colors.RGB(190, 40, 40)"; mostCurrent._btnstart.setColor(anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (190),(int) (40),(int) (40))); - //BA.debugLineNum = 563;BA.debugLine="BtnStart.TextColor = Colors.White"; + //BA.debugLineNum = 611;BA.debugLine="BtnStart.TextColor = Colors.White"; mostCurrent._btnstart.setTextColor(anywheresoftware.b4a.keywords.Common.Colors.White); }; - //BA.debugLineNum = 565;BA.debugLine="If AutoModeEnabled Then"; + //BA.debugLineNum = 613;BA.debugLine="If AutoModeEnabled Then"; if (_automodeenabled) { - //BA.debugLineNum = 566;BA.debugLine="BtnPause.Enabled = False"; + //BA.debugLineNum = 614;BA.debugLine="BtnPause.Enabled = False"; mostCurrent._btnpause.setEnabled(anywheresoftware.b4a.keywords.Common.False); }else if(_sessionactive) { - //BA.debugLineNum = 568;BA.debugLine="BtnPause.Enabled = True"; + //BA.debugLineNum = 616;BA.debugLine="BtnPause.Enabled = True"; mostCurrent._btnpause.setEnabled(anywheresoftware.b4a.keywords.Common.True); }; - //BA.debugLineNum = 570;BA.debugLine="If lblAutoStatus.IsInitialized Then"; + //BA.debugLineNum = 618;BA.debugLine="If lblAutoStatus.IsInitialized Then"; if (mostCurrent._lblautostatus.IsInitialized()) { - //BA.debugLineNum = 571;BA.debugLine="If AutoModeEnabled Then"; + //BA.debugLineNum = 619;BA.debugLine="If AutoModeEnabled Then"; if (_automodeenabled) { - //BA.debugLineNum = 572;BA.debugLine="Select AutoState"; + //BA.debugLineNum = 620;BA.debugLine="Select AutoState"; switch (BA.switchObjectToInt(mostCurrent._autostate,"recording","paused")) { case 0: { - //BA.debugLineNum = 574;BA.debugLine="lblAutoStatus.Text = Localization.T(\"auto_rec"; + //BA.debugLineNum = 622;BA.debugLine="lblAutoStatus.Text = Localization.T(\"auto_rec"; mostCurrent._lblautostatus.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"auto_recording"))); break; } case 1: { - //BA.debugLineNum = 576;BA.debugLine="lblAutoStatus.Text = Localization.T(\"auto_pau"; + //BA.debugLineNum = 624;BA.debugLine="lblAutoStatus.Text = Localization.T(\"auto_pau"; mostCurrent._lblautostatus.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"auto_paused"))); break; } default: { - //BA.debugLineNum = 578;BA.debugLine="lblAutoStatus.Text = Localization.T(\"auto_sto"; + //BA.debugLineNum = 626;BA.debugLine="lblAutoStatus.Text = Localization.T(\"auto_sto"; mostCurrent._lblautostatus.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"auto_stopped"))); break; } } ; }else { - //BA.debugLineNum = 581;BA.debugLine="lblAutoStatus.Text = Localization.T(\"manual_mod"; + //BA.debugLineNum = 629;BA.debugLine="lblAutoStatus.Text = Localization.T(\"manual_mod"; mostCurrent._lblautostatus.setText(BA.ObjectToCharSequence(mostCurrent._localization._t /*String*/ (mostCurrent.activityBA,"manual_mode"))); }; }; - //BA.debugLineNum = 584;BA.debugLine="End Sub"; + //BA.debugLineNum = 632;BA.debugLine="End Sub"; return ""; } } diff --git a/b4a_orologio_marcatempo.b4a b/b4a_orologio_marcatempo.b4a index 96c386e..0317600 100644 --- a/b4a_orologio_marcatempo.b4a +++ b/b4a_orologio_marcatempo.b4a @@ -50,13 +50,17 @@ Sub Globals Private BtnConfigSave As Button Private BtnConfigReset As Button Private BtnClearToday As Button + Private BtnHelpOpen As Button + Private BtnHelpClose As Button Private BtnBackground As Label Private lblElapsedTime As Label Private lblAutoStatus As Label Private pnlClock As Panel Private pnlStats As Panel Private pnlConfig As Panel + Private pnlHelp As Panel Private svStats As ScrollView + Private svHelp As ScrollView Private txtCfgStart As EditText Private txtCfgPauseStart As EditText Private txtCfgPauseEnd As EditText @@ -111,6 +115,7 @@ Sub Activity_Create(FirstTime As Boolean) CreateStatsPage CreateConfigButton CreateConfigPage + CreateHelpPage CreateBackgroundButton CreateAutoStatusLabel LayoutMainButtons @@ -286,6 +291,41 @@ Private Sub CreateConfigPage BtnClearToday.Initialize("BtnClearToday") BtnClearToday.Text = Localization.T("clear_today") pnlConfig.AddView(BtnClearToday, 12dip, y + 126dip, Activity.Width - 24dip, 48dip) + + BtnHelpOpen.Initialize("BtnHelpOpen") + BtnHelpOpen.Text = "Help" + pnlConfig.AddView(BtnHelpOpen, 12dip, y + 182dip, Activity.Width - 24dip, 48dip) +End Sub + +Private Sub CreateHelpPage + pnlHelp.Initialize("") + pnlHelp.Color = Colors.White + pnlHelp.Visible = False + Activity.AddView(pnlHelp, 0, 0, Activity.Width, Activity.Height) + + Dim title As Label + title.Initialize("") + title.Text = "Help" + title.TextSize = 22 + title.TextColor = Colors.Black + title.Gravity = Gravity.CENTER_VERTICAL + pnlHelp.AddView(title, 12dip, 8dip, Activity.Width - 110dip, 46dip) + + BtnHelpClose.Initialize("BtnHelpClose") + BtnHelpClose.Text = "Close" + pnlHelp.AddView(BtnHelpClose, Activity.Width - 94dip, 8dip, 84dip, 46dip) + + svHelp.Initialize(0) + pnlHelp.AddView(svHelp, 0, 62dip, Activity.Width, Activity.Height - 62dip) + + Dim lblHelp As Label + lblHelp.Initialize("") + lblHelp.Text = BuildHelpText + lblHelp.TextSize = 16 + lblHelp.TextColor = Colors.Black + lblHelp.Gravity = Gravity.TOP + svHelp.Panel.AddView(lblHelp, 12dip, 12dip, Activity.Width - 24dip, 1180dip) + svHelp.Panel.Height = 1204dip End Sub Private Sub AddConfigField(LabelText As String, ValueText As String, y As Int) As EditText @@ -397,6 +437,14 @@ Sub BtnClearToday_Click ClearDisplayedDay End Sub +Sub BtnHelpOpen_Click + ShowHelpPage +End Sub + +Sub BtnHelpClose_Click + ShowConfigPage +End Sub + Sub BtnBackground_Click SaveActiveState Dim home As Intent @@ -830,6 +878,7 @@ Private Sub ShowStatsPage SetMainControlsVisible(False) pnlStats.Visible = True pnlConfig.Visible = False + pnlHelp.Visible = False pnlStats.BringToFront End Sub @@ -841,6 +890,7 @@ Private Sub SetMainControlsVisible(Visible As Boolean) HideLegacyButtons pnlStats.Visible = False pnlConfig.Visible = False + pnlHelp.Visible = False End Sub Private Sub HideLegacyButtons @@ -869,13 +919,23 @@ Private Sub ShowConfigPage SetMainControlsVisible(False) pnlStats.Visible = False pnlConfig.Visible = True + pnlHelp.Visible = False pnlConfig.BringToFront End Sub +Private Sub ShowHelpPage + SetMainControlsVisible(False) + pnlStats.Visible = False + pnlConfig.Visible = False + pnlHelp.Visible = True + pnlHelp.BringToFront +End Sub + Private Sub ShowMainPage SetMainControlsVisible(True) pnlStats.Visible = False pnlConfig.Visible = False + pnlHelp.Visible = False End Sub Private Sub BuildStatsTable @@ -1139,3 +1199,58 @@ Private Sub AddCell(Text As String, x As Int, y As Int, w As Int, h As Int, Head End If svStats.Panel.AddView(lbl, x, y, w, h) End Sub + +Private Sub BuildHelpText As String + Return $"Overtime Guard + +Purpose +Overtime Guard is a minimal workday timer. It helps you track work time, breaks, and overtime without projects, tasks, or extra screens. + +Main screen +- Start begins manual recording for the current workday. +- End stops manual recording. +- Pause starts a break. +- End pause closes the break and resumes work. +- Bg sends the app to the Android home screen. +- Stats opens the daily totals table. +- Config opens automatic schedule settings. + +Clock colors +- Light blue: first 4 hours of productive work. +- Green: productive work from hour 5 to hour 8. +- Yellow: break time. +- Red: overtime after 8 productive hours. + +How timing works +- Breaks do not count toward the 8 working hours. +- Overtime starts only after 8 productive work hours. +- Red overtime can continue for up to 1 extra hour. +- At 9 total productive hours, recording stops automatically. +- If midnight is reached, the current day is closed and the next day starts from zero when you start again. + +Daily memory +- The app saves the current day locally. +- If you close or background the app, the state is restored when you open it again. +- During the day, multiple work and break segments are added to the same daily record. + +Statistics +- The stats page groups totals by date. +- Each row shows Work, Pause, and Overtime for one day. +- The totals row sums all visible stored days. +- Local history is currently kept for about two months. + +Automatic mode +- In Config you can set work start, pause start, pause end, and work end. +- Set config enables automatic mode. +- In automatic mode, Start and End on the main screen are disabled. +- Reset config disables automatic mode and returns control to manual mode. + +Clear today +- Clear today removes only the currently displayed workday from local history. +- Use it only if you want to restart the day from zero. + +Notes +- The app uses the phone local time and time zone. +- The help page is informational only. It does not change your data. +"$ +End Sub