comparison src/ui3/bmi/mmiCalculatorMain.h @ 421:6a4d9f47793e

src/ui3/bmi: file renames to make the case consistent
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 21 Jan 2018 03:28:53 +0000
parents src/ui3/bmi/MmiCalculatorMain.h@e8ddbb0837ed
children
comparison
equal deleted inserted replaced
420:e8ddbb0837ed 421:6a4d9f47793e
1 #ifndef _MMI_CALC_MAIN_WINDOW_H_
2 #define _MMI_CALC_MAIN_WINDOW_H_
3 /*******************************************************************************
4
5 CONDAT (UK)
6
7 ********************************************************************************
8
9 This software product is the property of Condat (UK) Ltd and may not be
10 disclosed to any third party without the express permission of the owner.
11
12 ********************************************************************************
13
14 $Project name: Basic MMI
15 $Project code: BMI (6349)
16 $Module: Calculator
17 $File: MmCalculatorMain.h
18 $Revision: 1.0
19
20 $Author: Condat(UK)
21 $Date: 25/10/00
22
23 ********************************************************************************
24
25 Description:
26
27 This provides the main calculator functionality
28
29 ********************************************************************************
30 $History: MmiCalculatorMain.h
31
32 25/10/00 Original Condat(UK) BMI version.
33
34 $End
35
36 *******************************************************************************/
37
38
39 /*******************************************************************************
40
41 Include files
42
43 *******************************************************************************/
44
45
46 #include "MmiBookShared.h"
47 /* SPR#1428 - SH - New Editor changes */
48 #ifdef NEW_EDITOR
49 #include "ATBCommon.h"
50 #include "ATBDisplay.h"
51 #include "ATBEditor.h"
52 #include "AUIEditor.h"
53 #else
54 #include "MmiEditor.h"
55 #endif
56
57
58 /*******************************************************************************
59
60 Data Types
61
62 *******************************************************************************/
63 typedef enum
64 {
65 CALC_INIT,
66 CALC_DISPLAY_RESULT,
67 CALC_ENTER_OPERAND
68 } calc_events;
69
70 typedef enum
71 {
72 PLUS,
73 MINUS,
74 MULTIPLY,
75 DIVIDE
76 } calc_ops;
77
78 typedef struct _tCalcData_
79 {
80 /* administrative data */
81
82 T_MMI_CONTROL mmi_control;
83 T_MFW_HND win;
84 T_MFW_HND parent_win;
85 T_MFW_HND input_number_win; /* SH - put this back in to handle '*' as 'equals' */
86 #ifdef NEW_EDITOR
87 T_AUI_EDITOR_DATA editor_data; /* SPR#1428 - SH - New Editord data */
88 #else
89 T_EDITOR_DATA editor_data;
90 #endif
91
92 /* associated handlers */
93
94 T_MFW_HND kbd;
95 T_MFW_HND kbd_long;
96 T_MFW_HND menu;
97 T_MFW_HND menu_tim;
98 UBYTE status_of_timer; /* use for the keypadlock */
99 /* internal data */
100 char buffer[22];
101 UBYTE operation;
102 T_MFW_HND menu_options_win;
103 T_MFW_HND editor_win;
104
105 } tCalcData;
106
107 /*******************************************************************************
108
109 Public Methods
110
111 *******************************************************************************/
112
113
114 int calculator(MfwMnu* m, MfwMnuItem* i);
115 int calcPlus(MfwMnu* m, MfwMnuItem* i);
116 int calcMinus(MfwMnu* m, MfwMnuItem* i);
117 int calcDivide(MfwMnu* m, MfwMnuItem* i);
118 int calcMultiply(MfwMnu* m, MfwMnuItem* i);
119 int calcEquals(MfwMnu* m, MfwMnuItem* i);
120 void calcSetEditor(T_MFW_HND win);
121 #endif