-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPersianCalculatorLandscape.h
83 lines (66 loc) · 2.76 KB
/
PersianCalculatorLandscape.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
74
75
76
77
78
79
80
81
82
83
//
// PersianCalculatorLandscape.h
// PersianCalculator
//
// Created by volek on 4/10/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <MessageUI/MessageUI.h>
#import <AVFoundation/AVFoundation.h>
#import <Foundation/FoundationErrors.h>
#import "DDMathParser.h"
#import "CalcLocalize.h"
#import "LocalizationHelper.h"
#import "InfoViewController.h"
//#import "CalculatorViewController.h"
@interface PersianCalculatorLandscape : UIViewController<MFMailComposeViewControllerDelegate,UITextViewDelegate, UINavigationControllerDelegate,AVAudioPlayerDelegate,UIAlertViewDelegate> {
IBOutlet UITextView *display; //Label to display results
IBOutlet UILabel *degreeLabel;
IBOutlet UIButton *sinButton;
IBOutlet UIButton *cosButton;
IBOutlet UIButton *tanButton;
IBOutlet UIButton *lnButton;
IBOutlet UIButton *sinhButton;
IBOutlet UIButton *coshButton;
IBOutlet UIButton *tanhButton;
IBOutlet UIButton *exButton;
IBOutlet UIButton *infoButton;
NSMutableArray *calcRecord;
NSString *degreeButton; // Degree or ran button value
int secondButtonFlag;//flag for pressing 2nd button
AVAudioPlayer *theAudio;
UIImageView *magnifiedLetter;
UIImageView *magnifiedLetterRubOut;
NSString *memory;
int selectedTabindex;
}
@property (nonatomic,retain) UITextView *display;
@property (nonatomic,retain) UILabel *degreeLabel;
@property (nonatomic,retain) UIButton *sinButton;
@property (nonatomic,retain) UIButton *cosButton;
@property (nonatomic,retain) UIButton *tanButton;
@property (nonatomic,retain) UIButton *lnButton;
@property (nonatomic,retain) UIButton *sinhButton;
@property (nonatomic,retain) UIButton *coshButton;
@property (nonatomic,retain) UIButton *tanhButton;
@property (nonatomic,retain) UIButton *exButton;
@property (nonatomic,retain) UIImageView *magnifiedLetter;
@property (nonatomic,retain) UIImageView *magnifiedLetterRubOut;
@property (nonatomic,retain) NSMutableArray *calcRecord;
@property (nonatomic,retain) NSString *inputedFormula ;
@property (nonatomic,retain) NSString *memory ;
-(NSString*) convertLocalizedToUSNumbers:(id) sender;
-(NSString*) convertUSToLocalizedNumbers:(id) sender;
-(IBAction) clear;
-(IBAction) removeLastCharacter;
-(IBAction) equalButtonLandscape:(id) sender;
-(IBAction) emailResults;
-(IBAction) userTouchDown:(id) sender;
-(IBAction) signPressed:(id) sender ;
-(IBAction) numericKeyPressed:(id) sender ;
-(IBAction) secondButton:(id)sender ;
-(IBAction) showInfo:(id) sender;
-(IBAction) showDoneMessage:(id)sender;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil whichTab:(int)tabselected;
@end