git-svn-id: http://moon:8086/svn/software/trunk/projects/JaySynth@269 b431acfa-c32f-4a4a-93f1-934dc6c82436
103 lines
3.6 KiB
C++
103 lines
3.6 KiB
C++
/*
|
|
==============================================================================
|
|
|
|
This is an automatically generated file created by the Jucer!
|
|
|
|
Creation date: 10 Aug 2012 1:11:16pm
|
|
|
|
Be careful when adding custom code to these files, as only the code within
|
|
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
|
|
and re-saved.
|
|
|
|
Jucer version: 1.12
|
|
|
|
------------------------------------------------------------------------------
|
|
|
|
The Jucer is part of the JUCE library - "Jules' Utility Class Extensions"
|
|
Copyright 2004-6 by Raw Material Software ltd.
|
|
|
|
==============================================================================
|
|
*/
|
|
|
|
#ifndef __JUCER_HEADER_BUTTONLED_BUTTONLED_B8510B75__
|
|
#define __JUCER_HEADER_BUTTONLED_BUTTONLED_B8510B75__
|
|
|
|
//[Headers] -- You can add your own extra header files here --
|
|
#include "../JuceLibraryCode/JuceHeader.h"
|
|
//[/Headers]
|
|
|
|
|
|
|
|
//==============================================================================
|
|
/**
|
|
//[Comments]
|
|
An auto-generated component, created by the Jucer.
|
|
|
|
Describe your class and how it works here!
|
|
//[/Comments]
|
|
*/
|
|
class ButtonLED : public Button, public Timer
|
|
{
|
|
public:
|
|
//==============================================================================
|
|
ButtonLED (const String& name);
|
|
~ButtonLED();
|
|
|
|
//==============================================================================
|
|
//[UserMethods] -- You can add your own custom methods in this section.
|
|
void paintButton (Graphics& g, bool isMouseOverButton, bool isButtonDown);
|
|
void clicked(const ModifierKeys &modifiers);
|
|
void mouseWheelMove(const MouseEvent &event, const MouseWheelDetails &wheel);
|
|
void timerCallback();
|
|
void flash(uint32_t duration_ms);
|
|
void setTriggeredOnMouseDown (bool triggeredOnMouseDown);
|
|
bool getClickingTogglesState (void);
|
|
void setClickingTogglesState (bool clickingTogglesState);
|
|
|
|
bool getClickingLeftMouseButtonTogglesState (void);
|
|
bool getClickingMiddleMouseButtonTogglesState (void);
|
|
bool getClickingRightMouseButtonTogglesState (void);
|
|
|
|
void setClickingLeftMouseButtonTogglesState (bool value);
|
|
void setClickingMiddleMouseButtonTogglesState (bool value);
|
|
void setClickingRightMouseButtonTogglesState (bool value);
|
|
//[/UserMethods]
|
|
|
|
void resized();
|
|
void clicked();
|
|
void buttonStateChanged();
|
|
|
|
// Binary resources:
|
|
static const char* led_23_red_png;
|
|
static const int led_23_red_pngSize;
|
|
static const char* led_23_red1_png;
|
|
static const int led_23_red1_pngSize;
|
|
|
|
|
|
//==============================================================================
|
|
juce_UseDebuggingNewOperator
|
|
|
|
private:
|
|
//[UserVariables] -- You can add your own custom variables in this section.
|
|
bool triggeredOnMouseDown;
|
|
bool clickingTogglesState;
|
|
bool clickingLeftMouseButtonTogglesState;
|
|
bool clickingMiddleMouseButtonTogglesState;
|
|
bool clickingRightMouseButtonTogglesState;
|
|
|
|
//[/UserVariables]
|
|
|
|
//==============================================================================
|
|
Image cachedImage_led_23_red_png;
|
|
Image cachedImage_led_23_red1_png;
|
|
|
|
|
|
//==============================================================================
|
|
// (prevent copy constructor and operator= being generated..)
|
|
ButtonLED (const ButtonLED&);
|
|
const ButtonLED& operator= (const ButtonLED&);
|
|
};
|
|
|
|
|
|
#endif // __JUCER_HEADER_BUTTONLED_BUTTONLED_B8510B75__
|