Commit Graph

12 Commits

Author SHA1 Message Date
Gustavo Sverzut Barbieri 8a8025c6d8 e_bg: improvements and start import process (unfinished!)
I ran out of time, so if someone wants to finish the move of
e_int_config_wallpaper_import.c to standard e_bg.c I appreciate the
help. Skeleton is there.

With this, it is possible to remove code from conf_wallpaper and have
that functionality in both wallpaper and wallpaper2.



SVN revision: 44527
2009-12-17 23:05:51 +00:00
Viktor Kojouharov 648d75caab Larger backgrounds can now be set to scroll whenever a E changes between desks. Kind of like a transition, but uses only one (the first desk's), larger wallpaper instead of several wallpapers for all desks, and it overrides the transition settings if activated.
The option can currently be activated from Virtual Desktops Settings -> Advanced. A better home and preview would be better for these settings.

In more detail, this option can make a wallpaper, larger than the geometry of the zone, scroll appropriately with each desk change. Consider a nice panorama picture, which is as wide as the total desks' width. Then, at most, E will scroll the background by 1 / (number of desks) for each desk change. The direction of the scrolling is dependent on the desk change itself. Also, the user can specify a coefficient of maximum scrolling for each axis. If the coefficient is 0, the wallpaper will not move.

More advanced animations can be constructed with edje. The data item "directional_freedom" "(1|0) (1|0)" can toggle the actual wallpaper scrolling done by E for each axis. A message with the current x/y position, panning w|h, and zone w|h is sent to the background edje with each desk change animation tick. An example embryo script that handles the message, and changes a hypothetical "a1" part in the "e/desktop/background" group is shown below:

         public message(Msg_Type:type, id, ...) {
            if (type == MSG_INT_SET) {
               new x = getarg(2);
               new y = getarg(3);
  //	     new max_x = getarg(4);
  //	     new max_y = getarg(5);
  //	     new w = getarg(6);
  //	     new h = getarg(7);
               custom_state(PART:"a1", "default", 0.0);
               set_state_val(PART:"a1", STATE_FILL_POS, 0.0, 0.0, -x / 4, -y / 4);
               set_state(PART:"a1", "custom", 0.0);
            }
         }




SVN revision: 40543
2009-05-07 18:39:55 +00:00
Christopher Michael ce341fa4df E_FM Context Menus :)
Big Thanks to CodeWarrior for his help !!!

Add context handler for backgrounds. Can now right-click an .edj and Set as
Background.


SVN revision: 32068
2007-10-14 16:06:51 +00:00
rephorm 80478f40d8 Allow setting bg of desktops from within virtual desktop dialog.
For now, left click on the small desktop.
We'll probably add a menu on click, with the ability to set the desktop name or set bg.


SVN revision: 26700
2006-10-20 03:23:46 +00:00
Carsten Haitzler f261c9e1a8 metric pooch!
SVN revision: 26674
2006-10-17 12:29:00 +00:00
rephorm 1532587bcb Dynamically add and remove desks in the preview when you change the # of virtual desks.
A few small fixmes still to go


SVN revision: 26662
2006-10-16 23:45:16 +00:00
rephorm 7c2f28556a add preview widget to Virtual Desktops dialog
SVN revision: 26455
2006-10-09 19:06:43 +00:00
rephorm e41e945e3b break code that finds bg file for a zone into a separate function
SVN revision: 26433
2006-10-08 21:15:21 +00:00
Carsten Haitzler f25d473428 use desk x,y as ints
SVN revision: 15586
2005-06-30 14:35:19 +00:00
Carsten Haitzler 472f87ff96 ok - desktop changes are done by edje transitions now
i hereby invoke the power of edje on ye desktop wallpapers.


SVN revision: 15585
2005-06-30 14:07:28 +00:00
Carsten Haitzler 22534090d3 and now u can set different bg's for different desktops.. and it "just works"
(tm) currently defautt transition is a sinusiodal crossfade - it can be a bit
sluggish on big screens or slow machines. need to be able to configure that.


SVN revision: 15575
2005-06-30 10:43:21 +00:00
Carsten Haitzler e314c2cc04 bg now allows transitions when changing the bg. also a first step to allow
different bg's per desk - not implemented yet tho, but some infrastructure
for it


SVN revision: 15568
2005-06-29 14:28:47 +00:00