/
common_prefix.h
73 lines (56 loc) · 1.91 KB
/
common_prefix.h
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
/*
Copyright 2003-2010 Greg Schueler
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#import "CornerClickSupport.h"
#define CC_PREF_BUNDLE_ID_STR [NSString stringWithString:@"us.vario.greg.CornerClick"]
#define WEB_SITE_URL @"http://greg.vario.us/cornerclick"
#define EMAIL_URL @"mailto:greg-cornerclick@vario.us"
#define MARKETING_VERSION_STRING @"0.9"
#define SHIFT_MASK (1<<0)
#define OPTION_MASK (1<<1)
#define COMMAND_MASK (1<<2)
#define CONTROL_MASK (1<<3)
#define FN_MASK (1<<4)
#define MAX_CORNERS 4
#define TRIGGER_CLICK 0
#define TRIGGER_RCLCK 1
#define TRIGGER_HOVER 2
#define TL_CORNER 0
#define TR_CORNER 1
#define BL_CORNER 2
#define BR_CORNER 3
#define ACT_FILE 0
#define ACT_HIDE 1
#define ACT_HIDO 2
#define ACT_URL 3
#define ACT_SCPT 4
#define ACT_EALL 5
#define ACT_EAPP 6
#define ACT_EDES 7
#define ACT_DASH 8
#define ACT_SCRE 9
#define DEBUG_LEVEL 0
#define DEBUG2(...) if(DEBUG_LEVEL>3)NSLog(__VA_ARGS__)
#define DEBUG(...) if(DEBUG_LEVEL>2)NSLog(__VA_ARGS__)
#define INFO(...) if(DEBUG_LEVEL>1)NSLog(__VA_ARGS__)
#define WARN(...) if(DEBUG_LEVEL>0)NSLog(__VA_ARGS__)
#define ERROR(...) if(DEBUG_LEVEL>-1)NSLog(__VA_ARGS__)
#define DEBUG_ON ( DEBUG_LEVEL > 0 ? YES : NO )
#if DEBUG_LEVEL > 3
#define WRITE_BUBBLES
#endif
#define CC_APP_VERSION 0
#define CC_APP_MIN_VERSION 9
#define CC_PATCH_VERSION 0
#define CC_MIN_VERSION 2
#define CC_MAX_VERSION 9
#define LOCALIZE(x,y) [x localizedStringForKey:y value:nil table:nil]