|
@@ -53,21 +53,16 @@ bool CombinedItemFilter::matchTargetSlot(ItemSlot* zSlot) const
|
|
|
return op(filterA->matchTargetSlot(zSlot), filterB->matchTargetSlot(zSlot));
|
|
|
}
|
|
|
|
|
|
-Framework::Text CombinedItemFilter::getImageUIML() const
|
|
|
-{
|
|
|
- return filterA->getImageUIML() + filterB->getImageUIML();
|
|
|
-}
|
|
|
-
|
|
|
Framework::Text CombinedItemFilter::getLogicUIML() const
|
|
|
{
|
|
|
Framework::Text result = "<operator result_0_0=\"";
|
|
|
- result += op(0, 0);
|
|
|
+ result += (int)op(0, 0);
|
|
|
result += "\" result_0_1=\"";
|
|
|
- result += op(0, 1);
|
|
|
+ result += (int)op(0, 1);
|
|
|
result += "\" result_1_0=\"";
|
|
|
- result += op(1, 0);
|
|
|
+ result += (int)op(1, 0);
|
|
|
result += "\" result_1_1=\"";
|
|
|
- result += op(1, 1);
|
|
|
+ result += (int)op(1, 1);
|
|
|
result += ">";
|
|
|
result += filterA->getLogicUIML();
|
|
|
result += filterB->getLogicUIML();
|
|
@@ -85,11 +80,6 @@ bool AnyItemFilter::matchItem(const Item* zItem) const
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
-Framework::Text AnyItemFilter::getImageUIML() const
|
|
|
-{
|
|
|
- return "<img str=\"bilder/gui_icons.ltdb/anyItem.png\"/>";
|
|
|
-}
|
|
|
-
|
|
|
Framework::Text AnyItemFilter::getLogicUIML() const
|
|
|
{
|
|
|
return "<anyItem/>";
|
|
@@ -105,18 +95,10 @@ bool TypeItemFilter::matchItem(const Item* zItem) const
|
|
|
return zItem->zItemType() == zType;
|
|
|
}
|
|
|
|
|
|
-Framework::Text TypeItemFilter::getImageUIML() const
|
|
|
-{
|
|
|
- Framework::Text result = "<img itemType=\"";
|
|
|
- result += zType->getId();
|
|
|
- result += "\"/>";
|
|
|
- return result;
|
|
|
-}
|
|
|
-
|
|
|
Framework::Text TypeItemFilter::getLogicUIML() const
|
|
|
{
|
|
|
Framework::Text result = "<attribute name=\"Type\" operator=\"=\" value=\"";
|
|
|
- result += zType->getName();
|
|
|
+ result += zType->getId();
|
|
|
result += "\"/>";
|
|
|
return result;
|
|
|
}
|
|
@@ -137,11 +119,6 @@ bool SpecificSlotFilter::matchTargetSlot(ItemSlot* zSlot) const
|
|
|
return targetSlotId == zSlot->getId();
|
|
|
}
|
|
|
|
|
|
-Framework::Text SpecificSlotFilter::getImageUIML() const
|
|
|
-{
|
|
|
- return "<img str=\"bilder/gui_icons.ltdb/anyItem.png\"/>";
|
|
|
-}
|
|
|
-
|
|
|
Framework::Text SpecificSlotFilter::getLogicUIML() const
|
|
|
{
|
|
|
return "<anyItem/>";
|
|
@@ -170,11 +147,6 @@ bool SourceSlotBlacklistFilter::matchTargetSlot(ItemSlot* zSlot) const
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
-Framework::Text SourceSlotBlacklistFilter::getImageUIML() const
|
|
|
-{
|
|
|
- return "<img str=\"bilder/gui_icons.ltdb/anyItem.png\"/>";
|
|
|
-}
|
|
|
-
|
|
|
Framework::Text SourceSlotBlacklistFilter::getLogicUIML() const
|
|
|
{
|
|
|
return "<anyItem/>";
|
|
@@ -203,11 +175,6 @@ bool TargetSlotBlacklistFilter::matchTargetSlot(ItemSlot* zSlot) const
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
-Framework::Text TargetSlotBlacklistFilter::getImageUIML() const
|
|
|
-{
|
|
|
- return "<img str=\"bilder/gui_icons.ltdb/anyItem.png\"/>";
|
|
|
-}
|
|
|
-
|
|
|
Framework::Text TargetSlotBlacklistFilter::getLogicUIML() const
|
|
|
{
|
|
|
return "<anyItem/>";
|