3 * Copyright 2012 Samsung Electronics Co., Ltd
5 * Licensed under the Flora License, Version 1.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.tizenopensource.org/license
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
19 #ifndef __DEF_CALC_VIEW_H_
20 #define __DEF_CALC_VIEW_H_
22 #include "calc-main.h"
25 * @struct history_item
26 * @brief store the calculation history
29 char expression[MAX_EXPRESSION_LENGTH]; /**<Store the express in string format */
30 double result; /**<Store the calculate result in double format */
41 void calc_view_load(struct appdata *ad);
51 void calc_view_load_in_idle(struct appdata *ad);
61 void calc_view_revise_input_scroller(struct appdata *ad);
72 //void calc_view_show_result(const char *result, struct appdata *ad, int font_size);
73 void calc_view_show_result(const char *result, struct appdata *ad);
84 int calc_view_cursor_get_position(Evas_Object * entry);
95 void calc_view_cursor_set_position(Evas_Object * entry, int pos);
106 void calc_view_save_history(struct history_item item);
108 #endif /* __DEF_CALC_VIEW_H_ */