예제 #1
0
GalaxyButton::GalaxyButton(const std::string& text,
                           CEvent *ev) :
GsButton(text, ev)
{
    mFontID = 1;

    setupButtonSurface("  " + mText);
}
예제 #2
0
void NumberControl::processLogic()
{
    CGUINumberControl::processLogic();

    if(mMustRedraw)
    {
        mMustRedraw = false;
        setupButtonSurface();
    }
}
예제 #3
0
NumberControl::NumberControl(const std::string &text,
                             const int startValue,
                             const int endValue,
                             const int deltaValue,
                             const int value) :
CGUINumberControl(text, startValue, endValue,
                    deltaValue, value, false)
{
    setupButtonSurface();
}
예제 #4
0
CGUIButton::CGUIButton(	const std::string& text,
						const SmartPointer<CEvent> ev,
						const Style style ) :
mText(text),
mEvent(ev),
drawButton(&CGUIButton::drawNoStyle),
mAutoActivation(false)
{
	mMapping[UNSET] 	= g_pBehaviorEngine->getEngine();
	mMapping[NONE] 		= ENGINE_LAUNCHER;
	mMapping[VORTICON]	= ENGINE_VORTICON;
	mMapping[GALAXY] 	= ENGINE_GALAXY;
	mMapping[GALAXY_BORDERED] = ENGINE_GALAXY;

	switch( mMapping[style] )
	{

	case ENGINE_VORTICON:
	{
		mFontID = 1;
		drawButton = &CGUIButton::drawVorticonStyle;
		break;
	}

	case ENGINE_GALAXY:
	{
		mFontID = 1;
		if(style == GALAXY_BORDERED)
			drawButton = &CGUIButton::drawGalaxyBorderedStyle;
		else
			drawButton = &CGUIButton::drawGalaxyStyle;
		setupButtonSurface();
		break;
	}

	default:
	{
		mFontID = 0;
		drawButton = &CGUIButton::drawNoStyle;
		break;
	}

	}

}
void ComboSelection::setSelection( const std::string& selectionText )
{
    std::list<std::string>::const_iterator ptr = mOLCurrent;

    do
    {
        if( *mOLCurrent == selectionText )
        {
            setupButtonSurface(selectionText);
            return;
        }

        cycleOption();

    } while( ptr != mOLCurrent );

    CGUIComboSelection::setSelection(selectionText);
}
void ComboSelection::cycleOption()
{
    CGUIComboSelection::cycleOption();

    setupButtonSurface(*mOLCurrent);
}