1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-23 01:44:22 +00:00
JUCE/extras/BLOCKS/standalone_sdk/examples/BlockFinder/Linux/main.cpp
2016-11-01 17:17:33 +00:00

28 lines
1,012 B
C++

#include "../BlockFinder.h"
// A simple JUCE app containing our BlockFinder. This is a quick way of
// setting up an event loop so we can receive Block topology change events.
class MyJUCEApp : public juce::JUCEApplicationBase
{
public:
MyJUCEApp() {}
~MyJUCEApp() {}
void initialise (const juce::String&) override {}
void shutdown() override {}
const juce::String getApplicationName() override { return "BlockFinder"; }
const juce::String getApplicationVersion() override { return "1.0.0"; }
bool moreThanOneInstanceAllowed() override { return true; }
void anotherInstanceStarted (const juce::String&) override {}
void suspended() override {}
void resumed() override {}
void systemRequestedQuit() override {}
void unhandledException(const std::exception*, const juce::String&,
int lineNumber) override {}
private:
// Our BLOCKS class.
BlockFinder finder;
};
START_JUCE_APPLICATION (MyJUCEApp)