Subversion Repositories tpanel

Rev

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

Rev 162 Rev 165
Line 5025... Line 5025...
5025
                        }
5025
                        }
5026
                    break;
5026
                    break;
5027
 
5027
 
5028
                    case 'P':   // Set picture/bitmap file name
5028
                    case 'P':   // Set picture/bitmap file name
5029
                        content = iter->substr(1);
5029
                        content = iter->substr(1);
-
 
5030
 
-
 
5031
                        if (content.find(".") == string::npos)  // If the image has no extension ...
-
 
5032
                        {                                       // we must find the image in the map
-
 
5033
                            string iname = findImage(content);
-
 
5034
 
-
 
5035
                            if (!iname.empty())
-
 
5036
                                content = iname;
-
 
5037
                        }
-
 
5038
 
5030
                        bt->setBitmap(content, btState);
5039
                        bt->setBitmap(content, btState);
5031
                    break;
5040
                    break;
5032
 
5041
 
5033
                    case 'R':   // Set rectangle
5042
                    case 'R':   // Set rectangle
5034
                    {
5043
                    {
Line 7740... Line 7749...
7740
    {
7749
    {
7741
        MSG_ERROR("@SOU: Missing sound module!");
7750
        MSG_ERROR("@SOU: Missing sound module!");
7742
        return;
7751
        return;
7743
    }
7752
    }
7744
 
7753
 
-
 
7754
    if (pars[0].empty() || strCaseCompare(pars[0], "None") == 0)
-
 
7755
        return;
-
 
7756
 
7745
    _playSound(pars[0]);
7757
    _playSound(pars[0]);
7746
}
7758
}
7747
 
7759
 
7748
/**
7760
/**
7749
 * @brief Present a telephone keypad.
7761
 * @brief Present a telephone keypad.