Subversion Repositories svn.mios32

Rev

Rev 877 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 877 Rev 1724
Line 1... Line 1...
1
/*
1
#ifndef _INCLUDES_H
2
  ==============================================================================
2
#define _INCLUDES_H
3

3
-
 
4
#include "JuceHeader.h"
-
 
5
#pragma warning( disable : 4018 )
4
   This file is part of the JUCE library - "Jules' Utility Class Extensions"
6
#pragma warning( disable : 4244 )
5
   Copyright 2004-7 by Raw Material Software ltd.
7
#pragma warning( disable : 4100 )
-
 
8
#pragma warning( disable : 4189)
6

9
-
 
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";
7
  ------------------------------------------------------------------------------
19
        miosStudioStorageOptions.storageFormat   = PropertiesFile::storeAsXML;
-
 
20
        miosStudioStorageOptions.millisecondsBeforeSaving = 1000;
-
 
21
        applicationProperties.setStorageParameters(miosStudioStorageOptions);
-
 
22
    }
8

23
   
9
   JUCE can be redistributed and/or modified under the terms of the
24
    ~MiosStudioProperties()
10
   GNU General Public License, as published by the Free Software Foundation;
-
 
-
 
25
    {
11
   either version 2 of the License, or (at your option) any later version.
26
        clearSingletonInstance();
-
 
27
    }
12

28
   
13
   JUCE is distributed in the hope that it will be useful,
29
    ApplicationProperties &getProperties()
14
   but WITHOUT ANY WARRANTY; without even the implied warranty of
-
 
15
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-
 
-
 
30
    {
16
   GNU General Public License for more details.
31
        return (applicationProperties);
-
 
32
    }
17

33
   
18
   You should have received a copy of the GNU General Public License
34
    PropertiesFile *getCommonSettings(const bool returnIfReadOnly)
-
 
35
    {
19
   along with JUCE; if not, visit www.gnu.org/licenses or write to the
36
        return (applicationProperties.getCommonSettings(returnIfReadOnly));
20
   Free Software Foundation, Inc., 59 Temple Place, Suite 330,
-
 
21
   Boston, MA 02111-1307 USA
37
    }
22

38
   
23
  ------------------------------------------------------------------------------
39
    juce_DeclareSingleton (MiosStudioProperties, false)
24

40
   
-
 
41
private:
25
   If you'd like to release a closed-source product which uses JUCE, commercial
42
    ApplicationProperties applicationProperties;
26
   licenses are also available: visit www.rawmaterialsoftware.com/juce for
43
    PropertiesFile::Options miosStudioStorageOptions;
27
   more information.
44
};
28

45
29
  ==============================================================================
-
 
30
*/
-
 
31
-
 
32
// This file lets us set up any special config that we need for this app..
-
 
33
#include "juce_AppConfig.h"
46
#define T(x) String(x)
34
-
 
35
// And this includes all the juce headers..
47
#define juce_malloc(x) malloc(x)
36
#include "../../../../../juce/juce_amalgamated.h"
48
#define juce_free(x)   free(x)
-
 
49
#endif