-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathViewController.h
More file actions
executable file
·76 lines (63 loc) · 2.29 KB
/
ViewController.h
File metadata and controls
executable file
·76 lines (63 loc) · 2.29 KB
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
//
// ViewController.h
// TypeOver
//
// Created by Owen McGirr on 19/02/2013.
// Copyright (c) 2013 Owen McGirr. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <Social/Social.h>
#import <sqlite3.h>
#import <MessageUI/MessageUI.h>
#import <AVFoundation/AVSpeechSynthesis.h>
#import "wordInfoStruct.h"
#import "CustomButton.h"
@interface ViewController : UIViewController <MFMessageComposeViewControllerDelegate, UIActionSheetDelegate> {
#pragma mark - outlets
__weak IBOutlet UITextView *textView;
__weak IBOutlet CustomButton *addWordToDictButton;
__weak IBOutlet CustomButton *useButton;
__weak IBOutlet CustomButton *settingsButton;
__weak IBOutlet CustomButton *punct1Button;
__weak IBOutlet CustomButton *abc2Button;
__weak IBOutlet CustomButton *def3Button;
__weak IBOutlet CustomButton *ghi4Button;
__weak IBOutlet CustomButton *jkl5Button;
__weak IBOutlet CustomButton *mno6Button;
__weak IBOutlet CustomButton *pqrs7Button;
__weak IBOutlet CustomButton *tuv8Button;
__weak IBOutlet CustomButton *wxyz9Button;
__weak IBOutlet CustomButton *shiftButton;
__weak IBOutlet CustomButton *wordsLettersButton;
__weak IBOutlet CustomButton *speakButton;
__weak IBOutlet CustomButton *space0Button;
__weak IBOutlet CustomButton *delButton;
__weak IBOutlet CustomButton *clearButton;
#pragma mark - variables and pointers
NSTimer *inputTimer, *delTimer;
bool words, letters, shift, clearShift;
NSString *clearString, *currentWord, *previousWord;
NSMutableArray *predResultsArray;
int timesCycled, wordId, userAddedWordStartFreq;
sqlite3 *dbStockWordPrediction, *dbUserWordPrediction;
int userFreqOffset;
}
#pragma mark - ui actions
- (IBAction)useAct:(id)sender;
- (IBAction)addWordToDictAct:(id)sender;
- (IBAction)punct1Act:(id)sender;
- (IBAction)abc2Act:(id)sender;
- (IBAction)def3Act:(id)sender;
- (IBAction)ghi4Act:(id)sender;
- (IBAction)jkl5Act:(id)sender;
- (IBAction)mno6Act:(id)sender;
- (IBAction)pqrs7Act:(id)sender;
- (IBAction)tuv8Act:(id)sender;
- (IBAction)wxyz9Act:(id)sender;
- (IBAction)speakAct:(id)sender;
- (IBAction)shiftAct:(id)sender;
- (IBAction)space0Act:(id)sender;
- (IBAction)wordsLettersAct:(id)sender;
- (IBAction)delAct:(id)sender;
- (IBAction)clearAct:(id)sender;
@end