CComponentsInfoBox, CComponentsPicture: add overloaded members setPicture()

This commit is contained in:
2014-02-26 15:44:03 +01:00
parent f2bfa22159
commit c34f25bb7d
4 changed files with 34 additions and 2 deletions

View File

@@ -81,6 +81,19 @@ void CComponentsInfoBox::initVarInfobox()
x_offset = 10;
}
void CComponentsInfoBox::setPicture(const std::string& picture_name)
{
pic_name = picture_name;
}
void CComponentsInfoBox::setPicture(const char* picture_name)
{
string s_tmp = "";
if (picture_name)
s_tmp = string(picture_name);
setPicture(s_tmp);
}
void CComponentsInfoBox::paintPicture()
{
//ensure empty pic object