3 * Copyright 2012 Samsung Electronics Co., Ltd
5 * Licensed under the Flora License, Version 1.1 (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://floralicense.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);
55 * When window changed between phone and monitor
57 * @param[in] data The callback data
58 * @param[in] obj The object which register callback
59 * @param[in] event_info The event info which occured
63 void win_profile_changed_cb(void *data, Evas_Object * obj, void *event_info);
73 void calc_view_revise_history_scroller(struct appdata *ad);
83 void calc_view_revise_input_scroller(struct appdata *ad);
94 //void calc_view_show_result(const char *result, struct appdata *ad, int font_size);
95 void calc_view_show_result(const char *result, struct appdata *ad);
106 int calc_view_cursor_get_position(Evas_Object * entry);
117 void calc_view_cursor_set_position(Evas_Object * entry, int pos);
128 void calc_view_save_history(struct history_item *item);
130 void calc_view_show_histroy(Evas_Object *entry);
131 #endif /* __DEF_CALC_VIEW_H_ */