1
0
Fork 0
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:
tpoole 2017-10-23 13:52:30 +01:00
parent 55a917ebe5
commit 413164f46a
60 changed files with 11508 additions and 0 deletions

View 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)
};