📄 slider.cpp
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -