improved time ticks (need minimum of 2 ticks for highest level).
This commit is contained in:
@@ -489,14 +489,14 @@
|
||||
int nextLevel=0; \n
|
||||
\n
|
||||
$(struct_prefix)_GenMonthTicks(st, nextLevel); \n
|
||||
if ($(struct_prefix)_HasAtLeastNLevelTicks(st, nextLevel, nextLevel?1:4)) \n
|
||||
if ($(struct_prefix)_HasAtLeastNLevelTicks(st, nextLevel, nextLevel?2:4)) \n
|
||||
nextLevel++; \n
|
||||
else \n
|
||||
$(struct_prefix)_RemoveLevelTicks(st, nextLevel); \n
|
||||
\n
|
||||
if (nextLevel<3) { \n
|
||||
$(struct_prefix)_GenWeekTicks(st, nextLevel); \n
|
||||
if ($(struct_prefix)_HasAtLeastNLevelTicks(st, nextLevel, nextLevel?1:4)) \n
|
||||
if ($(struct_prefix)_HasAtLeastNLevelTicks(st, nextLevel, nextLevel?2:4)) \n
|
||||
nextLevel++; \n
|
||||
else \n
|
||||
$(struct_prefix)_RemoveLevelTicks(st, nextLevel); \n
|
||||
@@ -504,7 +504,7 @@
|
||||
\n
|
||||
if (nextLevel<3) { \n
|
||||
$(struct_prefix)_GenDayTicks(st, nextLevel); \n
|
||||
if ($(struct_prefix)_HasAtLeastNLevelTicks(st, nextLevel, nextLevel?1:4)) \n
|
||||
if ($(struct_prefix)_HasAtLeastNLevelTicks(st, nextLevel, nextLevel?2:4)) \n
|
||||
nextLevel++; \n
|
||||
else \n
|
||||
$(struct_prefix)_RemoveLevelTicks(st, nextLevel); \n
|
||||
@@ -512,7 +512,7 @@
|
||||
\n
|
||||
if (nextLevel<3) { \n
|
||||
$(struct_prefix)_GenHourTicks(st, nextLevel, 12); \n
|
||||
if ($(struct_prefix)_HasAtLeastNLevelTicks(st, nextLevel, nextLevel?1:4)) \n
|
||||
if ($(struct_prefix)_HasAtLeastNLevelTicks(st, nextLevel, nextLevel?2:4)) \n
|
||||
nextLevel++; \n
|
||||
else \n
|
||||
$(struct_prefix)_RemoveLevelTicks(st, nextLevel); \n
|
||||
@@ -520,7 +520,7 @@
|
||||
\n
|
||||
if (nextLevel<3) { \n
|
||||
$(struct_prefix)_GenHourTicks(st, nextLevel, 6); \n
|
||||
if ($(struct_prefix)_HasAtLeastNLevelTicks(st, nextLevel, nextLevel?1:4)) \n
|
||||
if ($(struct_prefix)_HasAtLeastNLevelTicks(st, nextLevel, nextLevel?2:4)) \n
|
||||
nextLevel++; \n
|
||||
else \n
|
||||
$(struct_prefix)_RemoveLevelTicks(st, nextLevel); \n
|
||||
@@ -528,7 +528,7 @@
|
||||
\n
|
||||
if (nextLevel<3) { \n
|
||||
$(struct_prefix)_GenHourTicks(st, nextLevel, 6); \n
|
||||
if ($(struct_prefix)_HasAtLeastNLevelTicks(st, nextLevel, nextLevel?1:4)) \n
|
||||
if ($(struct_prefix)_HasAtLeastNLevelTicks(st, nextLevel, nextLevel?2:4)) \n
|
||||
nextLevel++; \n
|
||||
else \n
|
||||
$(struct_prefix)_RemoveLevelTicks(st, nextLevel); \n
|
||||
@@ -536,7 +536,7 @@
|
||||
\n
|
||||
if (nextLevel<3) { \n
|
||||
$(struct_prefix)_GenHourTicks(st, nextLevel, 1); \n
|
||||
if ($(struct_prefix)_HasAtLeastNLevelTicks(st, nextLevel, nextLevel?1:4)) \n
|
||||
if ($(struct_prefix)_HasAtLeastNLevelTicks(st, nextLevel, nextLevel?2:4)) \n
|
||||
nextLevel++; \n
|
||||
else \n
|
||||
$(struct_prefix)_RemoveLevelTicks(st, nextLevel); \n
|
||||
@@ -544,7 +544,7 @@
|
||||
|
||||
if (nextLevel<3) { \n
|
||||
$(struct_prefix)_GenMinuteTicks(st, nextLevel, 30); \n
|
||||
if ($(struct_prefix)_HasAtLeastNLevelTicks(st, nextLevel, nextLevel?1:4)) \n
|
||||
if ($(struct_prefix)_HasAtLeastNLevelTicks(st, nextLevel, nextLevel?2:4)) \n
|
||||
nextLevel++; \n
|
||||
else \n
|
||||
$(struct_prefix)_RemoveLevelTicks(st, nextLevel); \n
|
||||
@@ -552,7 +552,7 @@
|
||||
|
||||
if (nextLevel<3) { \n
|
||||
$(struct_prefix)_GenMinuteTicks(st, nextLevel, 5); \n
|
||||
if ($(struct_prefix)_HasAtLeastNLevelTicks(st, nextLevel, nextLevel?1:4)) \n
|
||||
if ($(struct_prefix)_HasAtLeastNLevelTicks(st, nextLevel, nextLevel?2:4)) \n
|
||||
nextLevel++; \n
|
||||
else \n
|
||||
$(struct_prefix)_RemoveLevelTicks(st, nextLevel); \n
|
||||
@@ -560,7 +560,7 @@
|
||||
|
||||
if (nextLevel<3) { \n
|
||||
$(struct_prefix)_GenMinuteTicks(st, nextLevel, 1); \n
|
||||
if ($(struct_prefix)_HasAtLeastNLevelTicks(st, nextLevel, nextLevel?1:4)) \n
|
||||
if ($(struct_prefix)_HasAtLeastNLevelTicks(st, nextLevel, nextLevel?2:4)) \n
|
||||
nextLevel++; \n
|
||||
else \n
|
||||
$(struct_prefix)_RemoveLevelTicks(st, nextLevel); \n
|
||||
|
||||
Reference in New Issue
Block a user