-
Notifications
You must be signed in to change notification settings - Fork 5
/
Webgnosus_Prefix.pch
executable file
·141 lines (119 loc) · 7.12 KB
/
Webgnosus_Prefix.pch
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
//
// Prefix header for all source files of the 'webgnosus' target in the 'webgnosus' project
//
//-----------------------------------------------------------------------------------------------------------------------------------
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#endif
//-----------------------------------------------------------------------------------------------------------------------------------
// GnosusXMPP Framework
//-----------------------------------------------------------------------------------------------------------------------------------
// Define the debugging state
#define DEBUG YES
//-----------------------------------------------------------------------------------------------------------------------------------
// Global configuration
#define kGRID_BORDER_WIDTH 2.0
#define kDISPLAY_WIDTH 270.0
#define kMESSAGE_CACHE_SIZE 10
#define kCELL_WIDTH 320.0
//-----------------------------------------------------------------------------------------------------------------------------------
// Define application configuration
#define kAPP_NAME "web.gnos.us"
#define kAPP_VERSION "0.0"
#define kOS_VERSION "iPhone"
#define kAPP_CATEGORY "client"
#define kAPP_TYPE "handheld"
//-----------------------------------------------------------------------------------------------------------------------------------
//LabelGridView configuration
#define kLABEL_GRID_FONT_SIZE 13.0
#define kLABEL_GRID_FONT "Helvetica"
#define kLABEL_GRID_HEIGHT 12.0
#define kLABEL_OFFSET 5.0
//-----------------------------------------------------------------------------------------------------------------------------------
//LocationManager configuration
#define kLOCATION_MANAGER_ACCURACY 10.0
#define kLOCATION_MANAGER_DISTANCE_FILTER 20.0
//-----------------------------------------------------------------------------------------------------------------------------------
// Database configuration
#define kRESOURCE_NAME "webgnosus"
#define kDATABASE_NAME "webgnosus.db"
//-----------------------------------------------------------------------------------------------------------------------------------
// Application
//-----------------------------------------------------------------------------------------------------------------------------------
// XDataMessageCell configurations
#define kXDATA_MESSAGE_CELL_HEIGHT_PAD 40.0
#define kXDATA_MESSAGE_CELL_X_OFFSET 20.0
#define kXDATA_MESSAGE_CELL_Y_OFFSET 30.0
//-----------------------------------------------------------------------------------------------------------------------------------
// MessageCell configuration
#define kMESSAGE_CELL_FONT_SIZE 17.0
#define kMESSAGE_CELL_HEIGHT_PAD 30.0
#define kLOAD_MESSAGE_CELL_HEIGHT 50.0
#define kMESSAGE_CELL_X_OFFSET 20.0
#define kMESSAGE_CELL_Y_OFFSET 20.0
//-----------------------------------------------------------------------------------------------------------------------------------
// ServiceMessageViewController configurations
#define kXDATA_SERVICE_MESSAGE_X_OFFSET 20.0
#define kXDATA_SERVICE_MESSAGE_Y_OFFSET 35.0
//-----------------------------------------------------------------------------------------------------------------------------------
// default configurations used by MessageCellFactory
#define kMESSAGE_CELL_HEIGHT_DEFAULT 30.0
//-----------------------------------------------------------------------------------------------------------------------------------
// display mode setting used in RosterItemViewController and RosterViewController
#define kCONTACTS_MODE 0
#define kRESOURCE_MODE 1
//-----------------------------------------------------------------------------------------------------------------------------------
// display mode setting used in PubSubViewController and cell height
#define kSUB_MODE 0
#define kPUB_MODE 1
#define kSUB_CELL_HEIGHT 55.0
#define kPUB_CELL_HEIGHT 45.0
#define kSERVICE_CELL_HEIGHT 45.0
//-----------------------------------------------------------------------------------------------------------------------------------
// GeoLocMessageCell configurations
#define kGEOLOC_MESSAGE_CELL_HEIGHT_PAD 40.0
#define kGEOLOC_MESSAGE_CELL_X_OFFSET 20.0
#define kGEOLOC_MESSAGE_CELL_Y_OFFSET 30.0
//-----------------------------------------------------------------------------------------------------------------------------------
// GeoLoc Data
#define kEARTHS_RADIUS_METERS 6357000.0
#define kRADIANS_PER_DEGREE 0.01745329
#define kMETERS_PER_DEGREE_LAT 110950.0
#define kGEOLOC_ACCURACY_SCALE 10.0
#define kMAP_SCALE_MIN 1000.0
//-----------------------------------------------------------------------------------------------------------------------------------
// display mode setting used in Events View for geoloc node
#define kEVENTS_MODE 0
#define kGEOLOC_MODE 1
//-----------------------------------------------------------------------------------------------------------------------------------
// adjust message size for edit mode when cell has status indicator
#define kLARGE_MESSAGE_WITH_STATUS_WIDTH 235.0
#define kSMALL_MESSAGE_WITH_STATUS_WIDTH 180.0
//-----------------------------------------------------------------------------------------------------------------------------------
// RosterCell height
#define kROSTER_CELL_HEIGHT 45.0
//-----------------------------------------------------------------------------------------------------------------------------------
// height of section title used in some table views
#define kCELL_SECTION_TITLE_HEIGHT 30.0
//-----------------------------------------------------------------------------------------------------------------------------------
// ServiceMessageViewController configurations
#define kKEYBOARD_HEIGHT 150.0
#define kCOMMAND_FORM_WIDTH 274.0
#define kCOMMAND_FORM_HEIGHT 369.0
#define kCOMMAND_FORM_OFFSET 3.0
#define kCOMMAND_FORM_TOOLBAR_HEIGHT 40.0
#define kCOMMAND_FORM_TOOLBAR_YPOS 265.0
#define kCOMMAND_FORM_XPOS 10.0
#define kCOMMAND_FORM_YOFFSET 10.0
#define kCOMMAND_FORM_CONTROL_YOFFSET 5.0
#define kCOMMAND_FORM_CONTROL_SEPERATOR_YOFFSET 10.0
#define kCOMMAND_FORM_TEXTFIELD_HEIGHT 30.0
#define kCOMMAND_FORM_TEXTVIEW_HEIGHT 100.0
#define kCOMMAND_FORM_TEXT_MULTI_BORDER 2.0
#define kCOMMAND_FORM_LIST_SIZE 35.0
#define kCOMMAND_FORM_BOOLEAN_HEIGHT 30.0
#define kCOMMAND_FORM_BOOLEAN_WIDTH 95.0
#define kCOMMAND_FORM_BOOLEAN_LABEL_WIDTH 159.0
#define kCOMMAND_FORM_BOOLEAN_SEPERATOR 10.0
#define kCOMMAND_FORM_FIXED_VIEW_YOFFSET 3.0