Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
==============================================================================
This file was auto-generated by the Jucer!
It contains the basic startup code for a Juce application.
==============================================================================
*/
#include "../JuceLibraryCode/JuceHeader.h"
#include "MainWindow.h"
#include "UI/CustomLookAndFeel.h"
//==============================================================================
class OpenEphysApplication : public JUCEApplication
{
public:
//==============================================================================
OpenEphysApplication() {}
~OpenEphysApplication() {}
//==============================================================================
void initialise (const String& commandLine)
{
mainWindow = new MainWindow();
mainWindow->setUsingNativeTitleBar (true);
customLookAndFeel = new CustomLookAndFeel();
LookAndFeel::setDefaultLookAndFeel(customLookAndFeel);
}
void shutdown()
{
mainWindow = 0;
customLookAndFeel = 0;
}
//==============================================================================
void systemRequestedQuit()
{quit();}
//==============================================================================
const String getApplicationName() { return "Open Ephys Data Acquisition Software";}
const String getApplicationVersion() {return ProjectInfo::versionString;}
bool moreThanOneInstanceAllowed() {return true;}
void anotherInstanceStarted (const String& commandLine)
{}
private:
ScopedPointer <MainWindow> mainWindow;
ScopedPointer <CustomLookAndFeel> customLookAndFeel;
};
//==============================================================================
// This macro generates the main() routine that starts the app.
START_JUCE_APPLICATION(OpenEphysApplication)