/*
- * Copyright (c) 2009 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * PROPRIETARY/CONFIDENTIAL
+ * Copyright 2012 Samsung Electronics Co., Ltd
+
+ * Licensed under the Flora License, Version 1.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+
+ * http://www.tizenopensource.org/license
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
*
- * This software is the confidential and proprietary information of
- * SAMSUNG ELECTRONICS ("Confidential Information"). You agree and
- * acknowledge that this software is owned by Samsung and you shall
- * not disclose such Confidential Information and shall use it only
- * in accordance with the terms of the license agreement you entered
- * into with SAMSUNG ELECTRONICS. SAMSUNG make no representations
- * or warranties about the suitability of the software, either express
- * or implied, including but not limited to the implied warranties of
- * merchantability, fitness for a particular purpose, or non-infringement.
- * SAMSUNG shall not be liable for any damages suffered by
- * licensee arising out of or releated to this software.
*/
-#ifndef _clipdrawer_h_
-#define _clipdrawer_h_
-
-#define CLIPDRAWER_HEIGHT 360
-#define CLIPDRAWER_HEIGHT_LANDSCAPE 228
+#ifndef _CLIPDRAWER_H_
+#define _CLIPDRAWER_H_
-enum {
- GI_TEXT = 0,
- GI_IMAGE,
+#include <Ecore_X.h>
+#include <Elementary.h>
- GI_MAX_ITEMS,
+typedef enum _AnimStatus AnimStatus;
+enum _AnimStatus {
+ STATUS_NONE = 0,
+ SHOW_ANIM,
+ HIDE_ANIM
};
-/* view maintains */
-int clipdrawer_init(void *data);
-int clipdrawer_create_view(void *data);
-void clipdrawer_activate_view(void *data);
-//void clipdrawer_hide_view(void *data);
-void clipdrawer_lower_view(void *data);
+struct _ClipdrawerData {
+ Evas_Object *main_win;
+ Ecore_X_Window x_main_win;
+ Evas_Object *gengrid;
+ Evas_Object *main_layout;
+ Elm_Gengrid_Item_Class gic;
+ Evas_Object *popup;
-void set_rotation_to_clipdrawer(void *data);
+ int o_degree;
+
+ int root_w;
+ int root_h;
+
+ int height;
+ int landscape_height;
+ int grid_item_w;
+ int grid_item_h;
+
+ Ecore_Event_Handler *keydown_handler;
+ Evas *evas;
+
+ Ecore_Timer *anim_timer;
+ AnimStatus anim_status;
+ int anim_count;
+ Eina_Bool paste_text_only:1;
+};
-const char* clipdrawer_get_plain_string_from_escaped(char *escstr);
+#include "cbhm.h"
-char *clipdrawer_get_item_data(void *data, int pos);
-int clipdrawer_add_item(char *idata, int type);
+Eina_Bool delete_mode;
-void clipdrawer_paste_textonly_set(void *data, Eina_Bool textonly);
-Eina_Bool clipdrawer_paste_textonly_get(void *data);
+void set_rotation_to_clipdrawer(ClipdrawerData *ad);
+void clipdrawer_activate_view(AppData* ad);
+void clipdrawer_lower_view(AppData* ad);
+ClipdrawerData *init_clipdrawer(AppData *ad);
+void depose_clipdrawer(ClipdrawerData *cd);
+void _delete_mode_set(AppData *ad, Eina_Bool del_mode);
-#endif // _clipdrawer_h_
+#endif // _CLIPDRAWER_H_