summaryrefslogtreecommitdiff
path: root/main/src/view/ivug-setas-view.h
blob: 2e1dc5cb4c3c4d53b9dfc74130b739dfa08b9d56 (plain)
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/*
 * 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.
 */


#ifndef __SETAS_VIEW_H__
#define __SETAS_VIEW_H__

#include "ivug-common.h"

typedef enum {
	NOTI_SUCCESS,
	NOTI_FAIL,
} TEXT_POPUP_TYPE;

typedef enum {
	IVUG_CTRLBAR_SET_SCREEN_HOME,
	IVUG_CTRLBAR_SET_SCREEN_LOCK,
	IVUG_CTRLBAR_SET_SCREEN_BOTH,
	IVUG_CTRLBAR_SET_SCREEN_UNDEFINED,		// Show select popup when click ok button.
	IVUG_CTRLBAR_SET_SCREEN_MAX
} ivug_set_screen_type;

typedef struct {
	Evas_Object *parent;
	Evas_Object *ly_effect;		// Layout for transition effect

	Evas_Object *layout;

/*
   |------------------|
   | naviframe        |
   |------------------|
   | toolbar		  |
   |------------------|
   |				  |
   |				  |
   |				  |
   |				  |
   |------------------|
   | controlbar		  |
   |------------------|
*/
	Evas_Object *photocam;
	Evas_Object *toolbar;
	Evas_Object *content;		// Empty layout

	Evas_Object *select_box;

	struct {
		int x, y, h, w;
	} select_rect;

	Evas_Object *popup;
	Evas_Object *done_button;

	char *file_path;

	Eina_Bool b_hide_bar_flag;


	Ecore_Timer *timer_locate_rect;

	// click event
	Evas_Coord_Point down_pos;
	unsigned int timestamp;
	Ecore_Timer *click_timer;

	ivug_set_screen_type set_type;

	Evas_Object *genlist_popup;
	Eina_List *popup_list;
} Ivug_SetAsView;


Ivug_SetAsView *
ivug_setas_view_screen_ug_create(Evas_Object *parent, const char* filepath);

void
ivug_setas_view_destroy(Ivug_SetAsView *data);

Evas_Object *
ivug_setas_view_object_get(Ivug_SetAsView *pSetAsView);

#endif //__SETAS_VIEW_H__