last ...
This commit is contained in:
@@ -5017,6 +5017,194 @@ class XCTicksZone : public XCTwoBarZone
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
bool GetMaxTickZone(XCTickZone *&zone)
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
zone = NULL;
|
||||
|
||||
//
|
||||
result = IsValid();
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
int count = Count();
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
//
|
||||
XCTickZone *iZone = GetZone(i);
|
||||
|
||||
//
|
||||
bool canSet =
|
||||
zone == NULL
|
||||
? true
|
||||
: zone.ticks < iZone.ticks
|
||||
? true
|
||||
: false;
|
||||
if (canSet)
|
||||
{
|
||||
zone = iZone;
|
||||
}
|
||||
|
||||
//
|
||||
ZeroMemory(iZone);
|
||||
}
|
||||
|
||||
//
|
||||
result = zone != NULL &&
|
||||
zone.IsValid();
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
bool GetMinTickZone(XCTickZone *&zone)
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
zone = NULL;
|
||||
|
||||
//
|
||||
result = IsValid();
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
int count = Count();
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
//
|
||||
XCTickZone *iZone = GetZone(i);
|
||||
|
||||
//
|
||||
bool canSet =
|
||||
zone == NULL
|
||||
? true
|
||||
: zone.ticks > iZone.ticks
|
||||
? true
|
||||
: false;
|
||||
if (canSet)
|
||||
{
|
||||
zone = iZone;
|
||||
}
|
||||
|
||||
//
|
||||
ZeroMemory(iZone);
|
||||
}
|
||||
|
||||
//
|
||||
result = zone != NULL &&
|
||||
zone.IsValid();
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
bool GetMaxVolumeZone(XCTickZone *&zone)
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
zone = NULL;
|
||||
|
||||
//
|
||||
result = IsValid();
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
int count = Count();
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
//
|
||||
XCTickZone *iZone = GetZone(i);
|
||||
|
||||
//
|
||||
bool canSet =
|
||||
zone == NULL
|
||||
? true
|
||||
: zone.volume < iZone.volume
|
||||
? true
|
||||
: false;
|
||||
if (canSet)
|
||||
{
|
||||
zone = iZone;
|
||||
}
|
||||
|
||||
//
|
||||
ZeroMemory(iZone);
|
||||
}
|
||||
|
||||
//
|
||||
result = zone != NULL &&
|
||||
zone.IsValid();
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
bool GetMinVolumeZone(XCTickZone *&zone)
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
zone = NULL;
|
||||
|
||||
//
|
||||
result = IsValid();
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
int count = Count();
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
//
|
||||
XCTickZone *iZone = GetZone(i);
|
||||
|
||||
//
|
||||
bool canSet =
|
||||
zone == NULL
|
||||
? true
|
||||
: zone.volume > iZone.volume
|
||||
? true
|
||||
: false;
|
||||
if (canSet)
|
||||
{
|
||||
zone = iZone;
|
||||
}
|
||||
|
||||
//
|
||||
ZeroMemory(iZone);
|
||||
}
|
||||
|
||||
//
|
||||
result = zone != NULL &&
|
||||
zone.IsValid();
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
protected:
|
||||
//
|
||||
@@ -5465,7 +5653,7 @@ struct XBoxZone
|
||||
|
||||
//
|
||||
string typeStr = IsValid(type)
|
||||
? type
|
||||
? type
|
||||
: "XBOX";
|
||||
string result =
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user