Subversion Repositories tpanel

Rev

Rev 369 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 369 Rev 387
Line 309... Line 309...
309
            rd = xml->convertElementToInt(content);
309
            rd = xml->convertElementToInt(content);
310
        else if (ename.compare("lu") == 0)          // Animate time up (bargraph)
310
        else if (ename.compare("lu") == 0)          // Animate time up (bargraph)
311
            lu = xml->convertElementToInt(content);
311
            lu = xml->convertElementToInt(content);
312
        else if (ename.compare("ld") == 0)          // Animate time down (bargraph)
312
        else if (ename.compare("ld") == 0)          // Animate time down (bargraph)
313
            ld = xml->convertElementToInt(content);
313
            ld = xml->convertElementToInt(content);
314
        else if (ename.compare("rv") == 0)          // ?
314
        else if (ename.compare("rv") == 0)          // Bargraph repeat interval?
315
            rv = xml->convertElementToInt(content);
315
            rv = xml->convertElementToInt(content);
316
        else if (ename.compare("rl") == 0)          // Bargraph range low
316
        else if (ename.compare("rl") == 0)          // Bargraph range low
317
            rl = xml->convertElementToInt(content);
317
            rl = xml->convertElementToInt(content);
318
        else if (ename.compare("rh") == 0)          // Bargraph range high
318
        else if (ename.compare("rh") == 0)          // Bargraph range high
319
            rh = xml->convertElementToInt(content);
319
            rh = xml->convertElementToInt(content);
Line 6239... Line 6239...
6239
    }
6239
    }
6240
 
6240
 
6241
    return true;
6241
    return true;
6242
}
6242
}
6243
 
6243
 
-
 
6244
void TButton::setBargraphInvert(bool invert)
-
 
6245
{
-
 
6246
    DECL_TRACER("TButton::setBargraphInvert(bool invert)");
-
 
6247
 
-
 
6248
    if (invert && !ri)
-
 
6249
    {
-
 
6250
        ri = 1;
-
 
6251
        mChanged = true;
-
 
6252
    }
-
 
6253
    else if (!invert && ri)
-
 
6254
    {
-
 
6255
        ri = 0;
-
 
6256
        mChanged = true;
-
 
6257
    }
-
 
6258
 
-
 
6259
    if (mChanged)
-
 
6260
        makeElement(mActInstance);
-
 
6261
}
-
 
6262
 
-
 
6263
void TButton::setBargraphRampDownTime(int t)
-
 
6264
{
-
 
6265
    DECL_TRACER("TButton::setBargraphRampDownTime(int t)");
-
 
6266
 
-
 
6267
    if (t < 0)
-
 
6268
        return;
-
 
6269
 
-
 
6270
    rd = t;
-
 
6271
}
-
 
6272
 
-
 
6273
void TButton::setBargraphRampUpTime(int t)
-
 
6274
{
-
 
6275
    DECL_TRACER("Button::TButton::setBargraphRampUpTime(int t)");
-
 
6276
 
-
 
6277
    if (t < 0)
-
 
6278
        return;
-
 
6279
 
-
 
6280
    ru = t;
-
 
6281
}
-
 
6282
 
-
 
6283
void TButton::setBargraphDragIncrement(int inc)
-
 
6284
{
-
 
6285
    DECL_TRACER("TButton::setBargraphDragIncrement(int inc)");
-
 
6286
 
-
 
6287
    if (inc < 0 || inc > (rh - rl))
-
 
6288
        return;
-
 
6289
 
-
 
6290
    rn = inc;
-
 
6291
}
-
 
6292
 
6244
bool TButton::drawList(bool show)
6293
bool TButton::drawList(bool show)
6245
{
6294
{
6246
    DECL_TRACER("TButton::drawList(bool show)");
6295
    DECL_TRACER("TButton::drawList(bool show)");
6247
 
6296
 
6248
    if (!mChanged)
6297
    if (!mChanged)