Subversion Repositories tpanel

Rev

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

Rev 317 Rev 332
Line 372... Line 372...
372
    }
372
    }
373
 
373
 
374
    return false;
374
    return false;
375
}
375
}
376
 
376
 
-
 
377
bool TIntBorder::borderExist(int index)
-
 
378
{
-
 
379
    DECL_TRACER("TIntBorder::borderExist(int index)");
-
 
380
 
-
 
381
    for (int i = 0; sysBorders[i].id > 0; ++i)
-
 
382
    {
-
 
383
        if (index == sysBorders[i].id)
-
 
384
            return true;
-
 
385
    }
-
 
386
 
-
 
387
    return false;
-
 
388
}
-
 
389
 
-
 
390
string TIntBorder::getBorderName(int index)
-
 
391
{
-
 
392
    DECL_TRACER("TIntBorder::getBorderName(int index)");
-
 
393
 
-
 
394
    for (int i = 0; sysBorders[i].id > 0; ++i)
-
 
395
    {
-
 
396
        if (sysBorders[i].id == index)
-
 
397
            return sysBorders[i].name;
-
 
398
    }
-
 
399
 
-
 
400
    return string();
-
 
401
}
-
 
402
 
377
string TIntBorder::getCorrectName(const string& name)
403
string TIntBorder::getCorrectName(const string& name)
378
{
404
{
379
    DECL_TRACER("TIntBorder::getCorrectName(const string& name)");
405
    DECL_TRACER("TIntBorder::getCorrectName(const string& name)");
380
 
406
 
381
    for (int i = 0; sysBorders[i].id > 0; ++i)
407
    for (int i = 0; sysBorders[i].id > 0; ++i)