Subversion Repositories svn.mios32

Rev

Rev 877 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1724 tk 1
#ifndef _INCLUDES_H
2
#define _INCLUDES_H
877 tk 3
 
1724 tk 4
#include "JuceHeader.h"
5
#pragma warning( disable : 4018 )
6
#pragma warning( disable : 4244 )
7
#pragma warning( disable : 4100 )
8
#pragma warning( disable : 4189)
877 tk 9
 
1724 tk 10
class MiosStudioProperties
11
{
12
public:
13
    MiosStudioProperties()
14
    {
15
        miosStudioStorageOptions.applicationName = "MIOS Studio";
16
        miosStudioStorageOptions.filenameSuffix  = ".xml";
17
        miosStudioStorageOptions.folderName      = "MIOS Studio";
18
        miosStudioStorageOptions.osxLibrarySubFolder = "Application Support";
19
        miosStudioStorageOptions.storageFormat   = PropertiesFile::storeAsXML;
20
        miosStudioStorageOptions.millisecondsBeforeSaving = 1000;
21
        applicationProperties.setStorageParameters(miosStudioStorageOptions);
22
    }
23
 
24
    ~MiosStudioProperties()
25
    {
26
        clearSingletonInstance();
27
    }
28
 
29
    ApplicationProperties &getProperties()
30
    {
31
        return (applicationProperties);
32
    }
33
 
34
    PropertiesFile *getCommonSettings(const bool returnIfReadOnly)
35
    {
36
        return (applicationProperties.getCommonSettings(returnIfReadOnly));
37
    }
38
 
39
    juce_DeclareSingleton (MiosStudioProperties, false)
40
 
41
private:
42
    ApplicationProperties applicationProperties;
43
    PropertiesFile::Options miosStudioStorageOptions;
44
};
877 tk 45
 
1724 tk 46
#define T(x) String(x)
47
#define juce_malloc(x) malloc(x)
48
#define juce_free(x)   free(x)
49
#endif