Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
805 - 1
//
2
//  InAppSettingsConstants.h
3
//  InAppSettingsTestApp
4
//
5
//  Created by David Keegan on 11/21/09.
6
//  Copyright 2009 InScopeApps{+}. All rights reserved.
7
//
8
 
9
#import <Availability.h>
10
 
11
#define InAppSettingsRootFile                     @"Root"
12
#define InAppSettingsProjectName                  @"InAppSettings"
13
 
14
#define InAppSettingsOffsetY                      2.0f
15
#define InAppSettingsFontSize                     17.0f
16
#define InAppSettingsCellPadding                  9.0f
17
#define InAppSettingsTablePadding                 10.0f
18
#define InAppSettingsPowerFooterHeight            32.0f
19
#define InAppSettingsLightingBoltSize             16.0f
20
#define InAppSettingsKeyboardAnimation            0.3f
21
#define InAppSettingsCellTextFieldMinX            115.0f
22
#define InAppSettingsCellToggleSwitchWidth        94.0f
23
#define InAppSettingsCellDisclosureIndicatorWidth 10.0f
24
#define InAppSettingsTotalCellPadding             InAppSettingsCellPadding * 2
25
#define InAppSettingsTotalTablePadding            InAppSettingsTablePadding * 2
26
#define InAppSettingsScreenWidth                  320
27
#define InAppSettingsScreenHeight                 480
28
#define InAppSettingsCellTitleMaxWidth            InAppSettingsScreenWidth - (InAppSettingsTotalTablePadding + InAppSettingsTotalCellPadding)
29
#define InAppSettingsFooterFont                   [UIFont systemFontOfSize:14.0f]
30
#define InAppSettingsBoldFont                     [UIFont boldSystemFontOfSize:InAppSettingsFontSize]
31
#define InAppSettingsNormalFont                   [UIFont systemFontOfSize:InAppSettingsFontSize]
32
#define InAppSettingsBlue                         [UIColor colorWithRed:0.22f green:0.33f blue:0.53f alpha:1.0f];
33
#define InAppSettingsFooterBlue                   [UIColor colorWithRed:0.36f green:0.39f blue:0.45f alpha:1.0f]
34
 
35
#define InAppSettingsOpenUrl(url) [[UIApplication sharedApplication] openURL : url];
36
#define InAppSettingsBundlePath                   [[NSBundle mainBundle] pathForResource:@"Settings" ofType:@"bundle"]
37
#define InAppSettingsFullPlistPath(file) \
38
  [InAppSettingsBundlePath stringByAppendingPathComponent :[file stringByAppendingPathExtension:@"plist"]]
39
#define InAppSettingsLocalize(stringKey, tableKey) \
40
  [[NSBundle bundleWithPath:InAppSettingsBundlePath] localizedStringForKey : stringKey value : stringKey table : tableKey]
41
 
42
// settings strings
43
#define InAppSettingsStringsTable                 @"StringsTable"
44
#define InAppSettingsPreferenceSpecifiers         @"PreferenceSpecifiers"
45
 
46
#define InAppSettingsPSGroupSpecifier             @"PSGroupSpecifier"
47
#define InAppSettingsPSSliderSpecifier            @"PSSliderSpecifier"
48
#define InAppSettingsPSChildPaneSpecifier         @"PSChildPaneSpecifier"
49
#define InAppSettingsPSTextFieldSpecifier         @"PSTextFieldSpecifier"
50
#define InAppSettingsPSTitleValueSpecifier        @"PSTitleValueSpecifier"
51
#define InAppSettingsPSMultiValueSpecifier        @"PSMultiValueSpecifier"
52
#define InAppSettingsPSToggleSwitchSpecifier      @"PSToggleSwitchSpecifier"
53
 
54
#define InAppSettingsSpecifierKey                 @"Key"
55
#define InAppSettingsSpecifierType                @"Type"
56
#define InAppSettingsSpecifierFile                @"File"
57
#define InAppSettingsSpecifierTitle               @"Title"
58
#define InAppSettingsSpecifierTitles              @"Titles"
59
#define InAppSettingsSpecifierValues              @"Values"
60
#define InAppSettingsSpecifierDefaultValue        @"DefaultValue"
61
#define InAppSettingsSpecifierMinimumValue        @"MinimumValue"
62
#define InAppSettingsSpecifierMaximumValue        @"MaximumValue"
63
#define InAppSettingsSpecifierInAppURL            @"InAppURL"
64
#define InAppSettingsSpecifierInAppTitle          @"InAppTitle"
65
 
66
#define InAppSettingsSpecifierInAppNumtype        @"InAppNumtype"
67
 
68
#define InAppSettingsSpecifierInAppChildPaneClass @"InAppChildPaneClass"
69
#define InAppSettingsSpecifierInAppCellClass      @"InAppCellClass"
70
 
71
 
72
// test what cell init code should be used
73
#define InAppSettingsUseNewCells                  __IPHONE_3_0 && __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_3_0
74
 
75
// if you dont want to display the footer set this to NO
76
#define InAppSettingsDisplayPowered               YES