Enlightenment CVS committal
Author : shorne
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_config.c e_config.h e_dnd.c e_int_config_desks.c
e_ipc_handlers.h e_ipc_handlers_list.h e_zone.c
Log Message:
Added more advanced edge flipping configurations. This will reset the edge flip
configuration so some people may need to reconfigure it int Desktop Settings.
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_config.c,v
retrieving revision 1.186
retrieving revision 1.187
diff -u -3 -r1.186 -r1.187
--- e_config.c 9 Aug 2006 06:08:36 -0000 1.186
+++ e_config.c 10 Aug 2006 05:01:07 -0000 1.187
@@ -335,7 +335,8 @@
E_CONFIG_VAL(D, T, zone_desks_x_count, INT); /**/
E_CONFIG_VAL(D, T, zone_desks_y_count, INT); /**/
E_CONFIG_VAL(D, T, use_virtual_roots, INT); /* should not make this a
config option (for now) */
- E_CONFIG_VAL(D, T, use_edge_flip, INT); /**/
+ E_CONFIG_VAL(D, T, edge_flip_dragging, INT); /**/
+ E_CONFIG_VAL(D, T, edge_flip_moving, INT); /**/
E_CONFIG_VAL(D, T, edge_flip_timeout, DOUBLE); /**/
E_CONFIG_VAL(D, T, evas_engine_default, INT); /**/
E_CONFIG_VAL(D, T, evas_engine_container, INT); /**/
@@ -531,7 +532,8 @@
e_config->zone_desks_x_count = 4;
e_config->zone_desks_y_count = 1;
e_config->use_virtual_roots = 0;
- e_config->use_edge_flip = 1;
+ e_config->edge_flip_dragging = 1;
+ e_config->edge_flip_moving = 1;
e_config->edge_flip_timeout = 0.25;
e_config->evas_engine_default = E_EVAS_ENGINE_SOFTWARE_X11;
e_config->evas_engine_container = E_EVAS_ENGINE_DEFAULT;
@@ -1181,7 +1183,8 @@
E_CONFIG_LIMIT(e_config->cache_flush_interval, 0.0, 600.0);
E_CONFIG_LIMIT(e_config->zone_desks_x_count, 1, 64);
E_CONFIG_LIMIT(e_config->zone_desks_y_count, 1, 64);
- E_CONFIG_LIMIT(e_config->use_edge_flip, 0, 1);
+ E_CONFIG_LIMIT(e_config->edge_flip_dragging, 0, 1);
+ E_CONFIG_LIMIT(e_config->edge_flip_moving, 0, 1);
E_CONFIG_LIMIT(e_config->edge_flip_timeout, 0.0, 2.0);
E_CONFIG_LIMIT(e_config->window_placement_policy, E_WINDOW_PLACEMENT_SMART,
E_WINDOW_PLACEMENT_MANUAL);
E_CONFIG_LIMIT(e_config->focus_policy, 0, 2);
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_config.h,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -3 -r1.102 -r1.103
--- e_config.h 27 Jun 2006 00:59:18 -0000 1.102
+++ e_config.h 10 Aug 2006 05:01:07 -0000 1.103
@@ -50,7 +50,7 @@
/* increment this whenever a new set of config values are added but the users
* config doesn't need top be wiped - simply new values need to be put in
*/
-#define E_CONFIG_FILE_GENERATION 0x0094
+#define E_CONFIG_FILE_GENERATION 0x0095
#define E_CONFIG_FILE_VERSION ((E_CONFIG_FILE_EPOCH << 16) |
E_CONFIG_FILE_GENERATION)
#define E_EVAS_ENGINE_DEFAULT 0
@@ -95,7 +95,8 @@
int zone_desks_x_count; // GUI
int zone_desks_y_count; // GUI
int use_virtual_roots;
- int use_edge_flip; // GUI
+ int edge_flip_dragging;
+ int edge_flip_moving; // GUI
double edge_flip_timeout; // GUI
int evas_engine_default;
int evas_engine_container;
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_dnd.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -3 -r1.42 -r1.43
--- e_dnd.c 9 Aug 2006 18:08:55 -0000 1.42
+++ e_dnd.c 10 Aug 2006 05:01:07 -0000 1.43
@@ -462,7 +462,14 @@
static void
_e_drag_move(E_Drag *drag, int x, int y)
{
+ E_Zone *zone;
+
if (((drag->x + drag->dx) == x) && ((drag->y + drag->dy) == y)) return;
+
+ //FIXME: I think the timer needs to be cleaned up by passing (-1, -1)
someplace
+ zone = e_container_zone_at_point_get(drag->container, x, y);
+ if (zone) e_zone_flip_coords_handle(zone, x, y);
+
drag->x = x - drag->dx;
drag->y = y - drag->dy;
ecore_evas_move(drag->ecore_evas,
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_desks.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- e_int_config_desks.c 2 Jul 2006 16:19:51 -0000 1.16
+++ e_int_config_desks.c 10 Aug 2006 05:01:07 -0000 1.17
@@ -17,9 +17,11 @@
/*- BASIC -*/
int x;
int y;
-// int flip;
+ int edge_flip_basic;
+
/*- ADVANCED -*/
- int use_edge_flip;
+ int edge_flip_moving;
+ int edge_flip_dragging;
double edge_flip_timeout;
int flip_wrap;
};
@@ -51,7 +53,9 @@
{
cfdata->x = e_config->zone_desks_x_count;
cfdata->y = e_config->zone_desks_y_count;
- cfdata->use_edge_flip = e_config->use_edge_flip;
+ cfdata->edge_flip_basic = e_config->edge_flip_moving ||
e_config->edge_flip_dragging;
+ cfdata->edge_flip_moving = e_config->edge_flip_moving;
+ cfdata->edge_flip_dragging = e_config->edge_flip_dragging;
cfdata->edge_flip_timeout = e_config->edge_flip_timeout;
cfdata->flip_wrap = e_config->desk_flip_wrap;
}
@@ -101,7 +105,8 @@
}
}
- e_config->use_edge_flip = cfdata->use_edge_flip;
+ e_config->edge_flip_dragging = cfdata->edge_flip_basic;
+ e_config->edge_flip_moving = cfdata->edge_flip_basic;
e_zone_update_flip_all();
e_config_save_queue();
@@ -131,7 +136,8 @@
}
}
- e_config->use_edge_flip = cfdata->use_edge_flip;
+ e_config->edge_flip_moving = cfdata->edge_flip_moving;
+ e_config->edge_flip_dragging = cfdata->edge_flip_dragging;
e_config->edge_flip_timeout = cfdata->edge_flip_timeout;
e_config->desk_flip_wrap = cfdata->flip_wrap;
@@ -145,8 +151,8 @@
_basic_create_widgets(E_Config_Dialog *cdd, Evas *evas, E_Config_Dialog_Data
*cfdata)
{
/* generate the core widget layout for a basic dialog */
- Evas_Object *o, *ob, *of, *ot;
-
+ Evas_Object *o, *ob, *of, *ot;
+
o = e_widget_list_add(evas, 0, 0);
of = e_widget_framelist_add(evas, _("Number of Desktops"), 0);
@@ -158,10 +164,11 @@
e_widget_table_object_append(ot, ob, 0, 1, 1, 1, 1, 0, 1, 0);
e_widget_framelist_object_append(of, ot);
e_widget_list_object_append(o, of, 1, 1, 0.5);
-
+
of = e_widget_framelist_add(evas, _("Desktop Mouse Flip"), 0);
- ob = e_widget_check_add(evas, _("Flip desktops when mouse at screen edge"),
&(cfdata->use_edge_flip));
+ ob = e_widget_check_add(evas, _("Flip desktops when mouse at screen edge"),
&(cfdata->edge_flip_basic));
e_widget_framelist_object_append(of, ob);
+
e_widget_list_object_append(o, of, 1, 1, 0.5);
return o;
@@ -172,6 +179,7 @@
{
/* generate the core widget layout for an advanced dialog */
Evas_Object *o, *ob, *of, *ot;
+ E_Radio_Group *rg;
o = e_widget_list_add(evas, 0, 0);
@@ -186,13 +194,19 @@
e_widget_list_object_append(o, of, 1, 1, 0.5);
of = e_widget_framelist_add(evas, _("Desktop Mouse Flip"), 0);
- ob = e_widget_check_add(evas, _("Flip desktops when mouse at screen edge"),
&(cfdata->use_edge_flip));
+
+ ob = e_widget_check_add(evas, _("Flip when moving mouse to the screen
edge"), &(cfdata->edge_flip_moving));
e_widget_framelist_object_append(of, ob);
+ ob = e_widget_check_add(evas, _("Flip when dragging objects to the screen
edge"), &(cfdata->edge_flip_dragging));
+ e_widget_framelist_object_append(of, ob);
+
ob = e_widget_label_add(evas, _("Time the mouse is at the edge before
flipping:"));
e_widget_framelist_object_append(of, ob);
+
ob = e_widget_slider_add(evas, 1, 0, _("%1.1f sec"), 0.0, 2.0, 0.05, 0,
&(cfdata->edge_flip_timeout), NULL, 200);
e_widget_framelist_object_append(of, ob);
+
ob = e_widget_check_add(evas, _("Wrap desktops around when flipping"),
&(cfdata->flip_wrap));
e_widget_framelist_object_append(of, ob);
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_ipc_handlers.h,v
retrieving revision 1.132
retrieving revision 1.133
diff -u -3 -r1.132 -r1.133
--- e_ipc_handlers.h 1 Aug 2006 04:54:12 -0000 1.132
+++ e_ipc_handlers.h 10 Aug 2006 05:01:07 -0000 1.133
@@ -1838,15 +1838,15 @@
#undef HDL
/****************************************************************************/
-#define HDL E_IPC_OP_USE_EDGE_FLIP_SET
+#define HDL E_IPC_OP_EDGE_FLIP_MOVING_SET
#if (TYPE == E_REMOTE_OPTIONS)
- OP("-edge-flip-set", 1, "Set the edge flip flag (0/1)", 0, HDL)
+ OP("-edge-flip-moving-set", 1, "Set the edge flip while moving policy flag
(0/1)", 0, HDL)
#elif (TYPE == E_REMOTE_OUT)
REQ_INT(atoi(params[0]), HDL);
#elif (TYPE == E_WM_IN)
START_INT(value, HDL);
- e_config->use_edge_flip = value;
- E_CONFIG_LIMIT(e_config->use_edge_flip, 0, 1);
+ e_config->edge_flip_moving = value;
+ E_CONFIG_LIMIT(e_config->edge_flip_moving, 0, 1);
e_zone_update_flip_all();
SAVE;
END_INT;
@@ -1855,19 +1855,60 @@
#undef HDL
/****************************************************************************/
-#define HDL E_IPC_OP_USE_EDGE_FLIP_GET
+#define HDL E_IPC_OP_EDGE_FLIP_MOVING_GET
#if (TYPE == E_REMOTE_OPTIONS)
- OP("-edge-flip-get", 0, "Get the edge flip flag", 1, HDL)
+ OP("-edge-flip-moving-get", 0, "Get the edge flip while moving policy
flag", 1, HDL)
#elif (TYPE == E_REMOTE_OUT)
REQ_NULL(HDL)
#elif (TYPE == E_WM_IN)
- SEND_INT(e_config->use_edge_flip, E_IPC_OP_USE_EDGE_FLIP_GET_REPLY, HDL);
+ SEND_INT(e_config->edge_flip_moving, E_IPC_OP_EDGE_FLIP_MOVING_GET_REPLY,
HDL);
#elif (TYPE == E_REMOTE_IN)
#endif
#undef HDL
/****************************************************************************/
-#define HDL E_IPC_OP_USE_EDGE_FLIP_GET_REPLY
+#define HDL E_IPC_OP_EDGE_FLIP_MOVING_GET_REPLY
+#if (TYPE == E_REMOTE_OPTIONS)
+#elif (TYPE == E_REMOTE_OUT)
+#elif (TYPE == E_WM_IN)
+#elif (TYPE == E_REMOTE_IN)
+ START_INT(val, HDL)
+ printf("REPLY: %i\n", val);
+ END_INT;
+#endif
+#undef HDL
+
+/****************************************************************************/
+#define HDL E_IPC_OP_EDGE_FLIP_DRAGGING_SET
+#if (TYPE == E_REMOTE_OPTIONS)
+ OP("-edge-flip-dragging-set", 1, "Set the edge flip while dragging policy
flag (0/1)", 0, HDL)
+#elif (TYPE == E_REMOTE_OUT)
+ REQ_INT(atoi(params[0]), HDL);
+#elif (TYPE == E_WM_IN)
+ START_INT(value, HDL);
+ e_config->edge_flip_dragging = value;
+ E_CONFIG_LIMIT(e_config->edge_flip_dragging, 0, 1);
+ e_zone_update_flip_all();
+ SAVE;
+ END_INT;
+#elif (TYPE == E_REMOTE_IN)
+#endif
+#undef HDL
+
+/****************************************************************************/
+#define HDL E_IPC_OP_EDGE_FLIP_DRAGGING_GET
+#if (TYPE == E_REMOTE_OPTIONS)
+ OP("-edge-flip-dragging-get", 0, "Get the edge flip while dragging policy
flag", 1, HDL)
+#elif (TYPE == E_REMOTE_OUT)
+ REQ_NULL(HDL)
+#elif (TYPE == E_WM_IN)
+ SEND_INT(e_config->edge_flip_dragging,
E_IPC_OP_EDGE_FLIP_DRAGGING_GET_REPLY, HDL);
+#elif (TYPE == E_REMOTE_IN)
+#endif
+#undef HDL
+
+/****************************************************************************/
+#define HDL E_IPC_OP_EDGE_FLIP_DRAGGING_GET_REPLY
#if (TYPE == E_REMOTE_OPTIONS)
#elif (TYPE == E_REMOTE_OUT)
#elif (TYPE == E_WM_IN)
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_ipc_handlers_list.h,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -3 -r1.47 -r1.48
--- e_ipc_handlers_list.h 5 Jun 2006 10:50:33 -0000 1.47
+++ e_ipc_handlers_list.h 10 Aug 2006 05:01:07 -0000 1.48
@@ -64,9 +64,9 @@
#define E_IPC_OP_FONT_CACHE_SET 64
#define E_IPC_OP_FONT_CACHE_GET 65
#define E_IPC_OP_FONT_CACHE_GET_REPLY 66
-#define E_IPC_OP_USE_EDGE_FLIP_SET 67
-#define E_IPC_OP_USE_EDGE_FLIP_GET 68
-#define E_IPC_OP_USE_EDGE_FLIP_GET_REPLY 69
+#define E_IPC_OP_EDGE_FLIP_MOVING_SET 67
+#define E_IPC_OP_EDGE_FLIP_MOVING_GET 68
+#define E_IPC_OP_EDGE_FLIP_MOVING_GET_REPLY 69
#define E_IPC_OP_EDGE_FLIP_TIMEOUT_SET 70
#define E_IPC_OP_EDGE_FLIP_TIMEOUT_GET 71
#define E_IPC_OP_EDGE_FLIP_TIMEOUT_GET_REPLY 72
@@ -387,3 +387,7 @@
#define E_IPC_OP_FONT_HINTING_SET 357
#define E_IPC_OP_FONT_HINTING_GET 358
#define E_IPC_OP_FONT_HINTING_GET_REPLY 359
+
+#define E_IPC_OP_EDGE_FLIP_DRAGGING_SET 360
+#define E_IPC_OP_EDGE_FLIP_DRAGGING_GET 361
+#define E_IPC_OP_EDGE_FLIP_DRAGGING_GET_REPLY 362
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_zone.c,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -3 -r1.98 -r1.99
--- e_zone.c 9 Aug 2006 04:38:32 -0000 1.98
+++ e_zone.c 10 Aug 2006 05:01:07 -0000 1.99
@@ -272,7 +272,7 @@
int one_row = 1;
int one_col = 1;
- if (!e_config->use_edge_flip) return;
+ if (!e_config->edge_flip_dragging) return;
/* if we have only 1 row we can flip up/down even if we have xinerama */
if (evas_list_count(zone->container->zones) > 1)
{
@@ -1024,7 +1024,7 @@
static void
_e_zone_update_flip(E_Zone *zone)
{
- if (e_config->use_edge_flip)
+ if (e_config->edge_flip_moving)
{
/* if we have only 1 row we can flip up/down even if we have xinerama */
int one_row = 1;
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs