Fixes to speed alarm and poi alerts. Added flicker effect. Some new fields to text...
[jspeed] / src / rectangle.cpp
index 3a8dcc5..00e2115 100644 (file)
@@ -30,6 +30,7 @@ namespace
      {"xpos", true},
      {"ypos", true},
      {"zpos", true},
      {"xpos", true},
      {"ypos", true},
      {"zpos", true},
+     {"visiblewhen", false},
      {"width", true},
      {"height", true},
      {"color", false}
      {"width", true},
      {"height", true},
      {"color", false}
@@ -62,6 +63,9 @@ bool Rectangle::setAttribute(QString const& name, QString const& value)
         case ZPOS:
             element_->setZValue(intVal);
             break;
         case ZPOS:
             element_->setZValue(intVal);
             break;
+        case VISIBLEWHEN:
+            setVisibleWhen(strToVisibleWhen(value));
+            break;
         case WIDTH:
             width_ = intVal;
             break;
         case WIDTH:
             width_ = intVal;
             break;