slider.cpp

来自「a position control(using in musicplayer)」· C++ 代码 · 共 49 行

CPP
49
字号

#include "Slider.h"



COggSliderBase::~COggSliderBase()
	{
    delete iKnobIcon;
	}

void COggSliderBase::SetKnobIcon(CGulIcon* aIcon)
	{
	delete iKnobIcon;
	iKnobIcon = aIcon;

	iRedraw = ETrue;
	}

void COggSliderBase::SetStyle(TInt aStyle)
	{
	iStyle = aStyle;
	iRedraw = ETrue; 
	}
/*
TBool COggSliderBase::ReadArguments(TOggParser& p)
	{
	TBool success = ETrue;
	if (p.iToken == _L("KnobIcon"))
		{
		p.Debug(_L("Setting knob icon."));
		CGulIcon* i = p.ReadIcon(iBitmapFile);
		success = (i != NULL);
		if (success)
			SetKnobIcon(i);
		}
	else if (p.iToken == _L("Style"))
		{
		p.Debug(_L("Setting style."));
		TInt aStyle(0);
		success = p.ReadToken(aStyle);
		if (success)
			SetStyle(aStyle);
		}

	if (success)
		success = COggControl::ReadArguments(p);

	return success;
	}*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?