Subversion Repositories svn.mios32

Rev

Rev 877 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef _INCLUDES_H
#define _INCLUDES_H

#include "JuceHeader.h"
#pragma warning( disable : 4018 )
#pragma warning( disable : 4244 )
#pragma warning( disable : 4100 )
#pragma warning( disable : 4189)

class MiosStudioProperties
{
public:
    MiosStudioProperties()
    {
        miosStudioStorageOptions.applicationName = "MIOS Studio";
        miosStudioStorageOptions.filenameSuffix  = ".xml";
        miosStudioStorageOptions.folderName      = "MIOS Studio";
        miosStudioStorageOptions.osxLibrarySubFolder = "Application Support";
        miosStudioStorageOptions.storageFormat   = PropertiesFile::storeAsXML;
        miosStudioStorageOptions.millisecondsBeforeSaving = 1000;
        applicationProperties.setStorageParameters(miosStudioStorageOptions);
    }
   
    ~MiosStudioProperties()
    {
        clearSingletonInstance();
    }
   
    ApplicationProperties &getProperties()
    {
        return (applicationProperties);
    }
   
    PropertiesFile *getCommonSettings(const bool returnIfReadOnly)
    {
        return (applicationProperties.getCommonSettings(returnIfReadOnly));
    }
   
    juce_DeclareSingleton (MiosStudioProperties, false)
   
private:
    ApplicationProperties applicationProperties;
    PropertiesFile::Options miosStudioStorageOptions;
};

#define T(x) String(x)
#define juce_malloc(x) malloc(x)
#define juce_free(x)   free(x)
#endif