- cleaned up

- removed Timer

git-svn-id: http://moon:8086/svn/software/trunk/projects/mpsk_rx_gui@109 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2014-12-22 17:39:42 +00:00
parent de3f6e1441
commit 40594c467c
5 changed files with 7 additions and 53 deletions
+4 -35
View File
@@ -94,43 +94,12 @@ void IQPoint::drawPlusSign(Graphics& g)
(void)g;
}
void IQPoint::start()
{
m_alpha = 1.0f;
startTimer (1000 / 20);
setVisible(true);
repaint();
}
void IQPoint::stop()
{
stopTimer ();
setVisible(false);
m_alpha = 1.0f;
repaint();
}
void IQPoint::setColor(Colour color)
{
m_color = color;
repaint();
}
void IQPoint::timerCallback()
{
// Reduce the alpha level of the flash slightly so it fades out
m_alpha -= 0.06f*m_alpha;
if (m_alpha < 0.05f)
{
stop();
sendChangeMessage();
// Once we've finsihed flashing send a change message to trigger the next component to flash
}
repaint();
}
//[/MiscUserCode]
@@ -144,10 +113,10 @@ void IQPoint::timerCallback()
BEGIN_JUCER_METADATA
<JUCER_COMPONENT documentType="Component" className="IQPoint" componentName=""
parentClasses="public Component, public ChangeBroadcaster, public Timer"
constructorParams="uint32 id" variableInitialisers="m_id(id)"
snapPixels="8" snapActive="1" snapShown="1" overlayOpacity="0.330"
fixedSize="0" initialWidth="10" initialHeight="10">
parentClasses="public Component" constructorParams="uint32 id"
variableInitialisers="m_id(id)" snapPixels="8" snapActive="1"
snapShown="1" overlayOpacity="0.330" fixedSize="0" initialWidth="10"
initialHeight="10">
<BACKGROUND backgroundColour="ffffff"/>
</JUCER_COMPONENT>