mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-04 03:40:07 +00:00
Analytics: Added an new analytics module
This commit is contained in:
parent
55a917ebe5
commit
413164f46a
60 changed files with 11508 additions and 0 deletions
38
examples/AnalyticsCollection/Source/MainComponent.h
Normal file
38
examples/AnalyticsCollection/Source/MainComponent.h
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
#pragma once
|
||||
|
||||
#include "../JuceLibraryCode/JuceHeader.h"
|
||||
|
||||
class MainContentComponent : public Component
|
||||
{
|
||||
public:
|
||||
//==============================================================================
|
||||
MainContentComponent()
|
||||
{
|
||||
addAndMakeVisible (eventButton);
|
||||
|
||||
setSize (300, 200);
|
||||
|
||||
StringPairArray logButtonPressParameters;
|
||||
logButtonPressParameters.set ("id", "a");
|
||||
logEventButtonPress = new ButtonTracker (eventButton, "button_press", logButtonPressParameters);
|
||||
}
|
||||
|
||||
~MainContentComponent() {}
|
||||
|
||||
void paint (Graphics& g) override
|
||||
{
|
||||
g.fillAll (getLookAndFeel().findColour (ResizableWindow::backgroundColourId));
|
||||
}
|
||||
|
||||
void resized() override
|
||||
{
|
||||
eventButton.centreWithSize (100, 50);
|
||||
}
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
TextButton eventButton { "Press me!" };
|
||||
ScopedPointer<ButtonTracker> logEventButtonPress;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MainContentComponent)
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue