Clean test_map, test_multi and test_photocam files
Remove commented lines, extra lines and spaces. SVN revision: 53638
This commit is contained in:
parent
b74069f814
commit
0121df333c
|
@ -33,112 +33,96 @@ Marker_Data data_parking= {PACKAGE_DATA_DIR"/images/parking.png"};
|
|||
static void
|
||||
my_map_clicked(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
//Evas_Object *win = data;
|
||||
printf("clicked\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_map_press(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
//Evas_Object *win = data;
|
||||
printf("press\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_map_longpressed(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
//Evas_Object *win = data;
|
||||
printf("longpressed\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_map_clicked_double(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
//Evas_Object *win = data;
|
||||
printf("clicked,double\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_map_load(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
//Evas_Object *win = data;
|
||||
printf("load\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_map_loaded(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
//Evas_Object *win = data;
|
||||
printf("loaded\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_map_load_details(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
//Evas_Object *win = data;
|
||||
printf("load,details\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_map_loaded_details(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
//Evas_Object *win = data;
|
||||
printf("loaded,details\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_map_zoom_start(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
//Evas_Object *win = data;
|
||||
printf("zoom,start\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_map_zoom_stop(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
//Evas_Object *win = data;
|
||||
printf("zoom,stop\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_map_zoom_change(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
//Evas_Object *win = data;
|
||||
printf("zoom,change\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_map_anim_start(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
//Evas_Object *win = data;
|
||||
printf("anim,start\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_map_anim_stop(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
//Evas_Object *win = data;
|
||||
printf("anim,stop\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_map_drag_start(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
//Evas_Object *win = data;
|
||||
printf("drag,start\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_map_drag_stop(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
//Evas_Object *win = data;
|
||||
printf("drag_stop\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_map_scroll(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
|
||||
{
|
||||
//Evas_Object *win = data;
|
||||
double lon, lat;
|
||||
elm_map_geo_region_get(obj, &lon, &lat);
|
||||
printf("scroll longitude : %f latitude : %f\n", lon, lat);
|
||||
|
|
|
@ -12,7 +12,6 @@ static void
|
|||
_mouse_down(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *o __UNUSED__, void *event_info)
|
||||
{
|
||||
Evas_Event_Mouse_Down *ev = event_info;
|
||||
// Evas_Object *win = data;
|
||||
|
||||
if (ev->button != 1) return;
|
||||
printf("MOUSE: down @ %4i %4i\n", ev->canvas.x, ev->canvas.y);
|
||||
|
@ -25,7 +24,6 @@ static void
|
|||
_mouse_up(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *o __UNUSED__, void *event_info)
|
||||
{
|
||||
Evas_Event_Mouse_Up *ev = event_info;
|
||||
// Evas_Object *win = data;
|
||||
if (ev->button != 1) return;
|
||||
printf("MOUSE: up @ %4i %4i\n", ev->canvas.x, ev->canvas.y);
|
||||
evas_object_hide(indicator[0]);
|
||||
|
@ -35,20 +33,15 @@ static void
|
|||
_mouse_move(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *o __UNUSED__, void *event_info)
|
||||
{
|
||||
Evas_Event_Mouse_Move *ev = event_info;
|
||||
// Evas_Object *win = data;
|
||||
printf("MOUSE: move @ %4i %4i\n", ev->cur.canvas.x, ev->cur.canvas.y);
|
||||
evas_object_move(indicator[0], ev->cur.canvas.x, ev->cur.canvas.y);
|
||||
evas_object_resize(indicator[0], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void
|
||||
_multi_down(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *o __UNUSED__, void *event_info)
|
||||
{
|
||||
Evas_Event_Multi_Down *ev = event_info;
|
||||
// Evas_Object *win = data;
|
||||
printf("MULTI: down @ %4i %4i | dev: %i\n", ev->canvas.x, ev->canvas.y, ev->device);
|
||||
if (ev->device >= IND_NUM) return;
|
||||
evas_object_move(indicator[ev->device], ev->canvas.x, ev->canvas.y);
|
||||
|
@ -60,7 +53,6 @@ static void
|
|||
_multi_up(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *o __UNUSED__, void *event_info)
|
||||
{
|
||||
Evas_Event_Multi_Up *ev = event_info;
|
||||
// Evas_Object *win = data;
|
||||
printf("MULTI: up @ %4i %4i | dev: %i\n", ev->canvas.x, ev->canvas.y, ev->device);
|
||||
if (ev->device >= IND_NUM) return;
|
||||
evas_object_hide(indicator[ev->device]);
|
||||
|
@ -70,16 +62,13 @@ static void
|
|||
_multi_move(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *o __UNUSED__, void *event_info)
|
||||
{
|
||||
Evas_Event_Multi_Move *ev = event_info;
|
||||
// Evas_Object *win = data;
|
||||
printf("MULTI: move @ %4i %4i | dev: %i\n", ev->cur.canvas.x, ev->cur.canvas.y, ev->device);
|
||||
printf("MULTI: move @ %4i %4i | dev: %i\n", ev->cur.canvas.x,
|
||||
ev->cur.canvas.y, ev->device);
|
||||
if (ev->device >= IND_NUM) return;
|
||||
evas_object_move(indicator[ev->device], ev->cur.canvas.x, ev->cur.canvas.y);
|
||||
evas_object_resize(indicator[ev->device], 1, 1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void
|
||||
test_multi(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
|
|
|
@ -9,112 +9,96 @@ static Evas_Object *rect;
|
|||
static void
|
||||
my_ph_clicked(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
// Evas_Object *win = data;
|
||||
printf("clicked\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_ph_press(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
// Evas_Object *win = data;
|
||||
printf("press\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_ph_longpressed(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
// Evas_Object *win = data;
|
||||
printf("longpressed\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_ph_clicked_double(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
// Evas_Object *win = data;
|
||||
printf("clicked,double\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_ph_load(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
// Evas_Object *win = data;
|
||||
printf("load\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_ph_loaded(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
// Evas_Object *win = data;
|
||||
printf("loaded\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_ph_load_details(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
// Evas_Object *win = data;
|
||||
printf("load,details\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_ph_loaded_details(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
// Evas_Object *win = data;
|
||||
printf("loaded,details\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_ph_zoom_start(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
// Evas_Object *win = data;
|
||||
printf("zoom,start\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_ph_zoom_stop(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
// Evas_Object *win = data;
|
||||
printf("zoom,stop\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_ph_zoom_change(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
// Evas_Object *win = data;
|
||||
printf("zoom,change\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_ph_anim_start(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
// Evas_Object *win = data;
|
||||
printf("anim,start\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_ph_anim_stop(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
// Evas_Object *win = data;
|
||||
printf("anim,stop\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_ph_drag_start(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
// Evas_Object *win = data;
|
||||
printf("drag,start\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_ph_drag_stop(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
// Evas_Object *win = data;
|
||||
printf("drag_stop\n");
|
||||
}
|
||||
|
||||
static void
|
||||
my_ph_scroll(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
|
||||
{
|
||||
// Evas_Object *win = data;
|
||||
int x, y, w, h;
|
||||
elm_photocam_region_get(obj, &x, &y, &w, &h);
|
||||
printf("scroll %i %i %ix%i\n", x, y, w, h);
|
||||
|
@ -236,7 +220,7 @@ _photocam_mouse_wheel_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUS
|
|||
if (zoom >= 1) elm_photocam_zoom_set(photocam, zoom);
|
||||
}
|
||||
|
||||
static void
|
||||
static void
|
||||
_photocam_move_resize_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||
{
|
||||
int x,y,w,h;
|
||||
|
@ -333,7 +317,6 @@ test_photocam(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
|
|||
elm_table_pack(tb2, bt, 2, 0, 1, 1);
|
||||
evas_object_show(bt);
|
||||
|
||||
|
||||
bt = elm_button_add(win);
|
||||
elm_button_label_set(bt, "Show 30,50 500x300");
|
||||
evas_object_smart_callback_add(bt, "clicked", my_bt_show_reg, ph);
|
||||
|
@ -350,7 +333,6 @@ test_photocam(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
|
|||
elm_table_pack(tb2, bt, 2, 1, 1, 1);
|
||||
evas_object_show(bt);
|
||||
|
||||
|
||||
bt = elm_button_add(win);
|
||||
elm_button_label_set(bt, "Pause On/Off");
|
||||
evas_object_smart_callback_add(bt, "clicked", my_bt_pause, ph);
|
||||
|
|
Loading…
Reference in New Issue