- evaluate MidiClock
git-svn-id: http://moon:8086/svn/software/trunk/projects/JaySynth@269 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
+13
-2
@@ -30,7 +30,7 @@
|
||||
|
||||
//==============================================================================
|
||||
ButtonLED::ButtonLED (const String& name)
|
||||
: Button (L"Button LED"),
|
||||
: Button (name),
|
||||
cachedImage_led_23_red_png (0),
|
||||
cachedImage_led_23_red1_png (0),
|
||||
triggeredOnMouseDown(0),
|
||||
@@ -50,7 +50,6 @@ ButtonLED::ButtonLED (const String& name)
|
||||
|
||||
|
||||
//[Constructor] You can add your own custom stuff here..
|
||||
setName(name);
|
||||
//[/Constructor]
|
||||
}
|
||||
|
||||
@@ -197,6 +196,18 @@ void ButtonLED::paintButton (Graphics& g, bool /*isMouseOverButton*/, bool /*isB
|
||||
false);
|
||||
}
|
||||
}
|
||||
|
||||
void ButtonLED::flash(uint32_t duration_ms)
|
||||
{
|
||||
setToggleState(true, juce::NotificationType::dontSendNotification);
|
||||
startTimer((uint32_t)duration_ms);
|
||||
}
|
||||
|
||||
void ButtonLED::timerCallback()
|
||||
{
|
||||
setToggleState(false, juce::NotificationType::dontSendNotification);
|
||||
}
|
||||
|
||||
//[/MiscUserCode]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user