Subversion Repositories tpanel

Rev

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

Rev 351 Rev 361
Line 1797... Line 1797...
1797
        refresh();
1797
        refresh();
1798
 
1798
 
1799
    return true;
1799
    return true;
1800
}
1800
}
1801
 
1801
 
-
 
1802
bool TButton::setBargraphSliderName(const string& name)
-
 
1803
{
-
 
1804
    DECL_TRACER("TButton::setBargraphSliderName(const string& name)");
-
 
1805
 
-
 
1806
    if (name.empty())
-
 
1807
        return false;
-
 
1808
 
-
 
1809
    if (!gPageManager || !gPageManager->getSystemDraw()->existSlider(name))
-
 
1810
    {
-
 
1811
        MSG_ERROR("The slider " << name << " doesn't exist!");
-
 
1812
        return false;
-
 
1813
    }
-
 
1814
 
-
 
1815
    if (name == sd)
-
 
1816
        return true;
-
 
1817
 
-
 
1818
    sd = name;
-
 
1819
    mChanged = true;
-
 
1820
 
-
 
1821
    if (visible)
-
 
1822
        refresh();
-
 
1823
 
-
 
1824
    return true;
-
 
1825
}
-
 
1826
 
1802
bool TButton::setFontFileName(const string& name, int /*size*/, int instance)
1827
bool TButton::setFontFileName(const string& name, int /*size*/, int instance)
1803
{
1828
{
1804
    DECL_TRACER("TButton::setFontFileName(const string& name, int size)");
1829
    DECL_TRACER("TButton::setFontFileName(const string& name, int size)");
1805
 
1830
 
1806
    if (name.empty() || !mFonts)
1831
    if (name.empty() || !mFonts)