Commit Graph

10 Commits

Author SHA1 Message Date
Otavio Pontes c11bf5692a Add support for changing style from one elm widget in edje external.
Create a param 'style' that can be used in edje external
to change the style of one object.

Patch by: Otavio Pontes <otavio@profusion.mobi>



SVN revision: 53754
2010-10-21 22:03:43 +00:00
Gustavo Lima Chaves 02d6dc885f Ugly typos gone.
SVN revision: 53663
2010-10-20 12:40:36 +00:00
Bruno Dilly b74069f814 Fix some Wextra complains on elm edje-externals
SVN revision: 53637
2010-10-19 18:25:57 +00:00
Tiago Rezende Campos Falcao 6e9551b087 Review Elm_fileselector_button.
Removed the selected_{get,set} because is the same of path_{get,set}.

Now it uses elm_button like hoversel.

SVN revision: 53622
2010-10-19 14:17:14 +00:00
Jonathan Atton 76a2b5f2cb Elementary:
- we can get the content of a external object
- a signal can be send to the content of a external object

SVN revision: 50731
2010-08-01 17:29:20 +00:00
Iván Briano a03476375e Allowing that icon/content can be set as NULL
Now, we can "remove" the icon used for the widget, in editje.

By: Fabiano Fidencio <fidencio@profusion.mobi>



SVN revision: 49705
2010-06-16 20:58:01 +00:00
Iván Briano 760c3c076d Fixing icon lost of external widgets in editje.
When params_free is made icons/content were deleted.
It's not necessary with the new API for icon/content set in elementary.

By: Fabiano Fidencio <fidencio@profusion.mobi>



SVN revision: 49702
2010-06-16 20:57:33 +00:00
Christopher Michael de41ec04e3 Proper fix for compiler warnings by adding const to the _get functions
(thanks k-s).
Fix formatting & remove some whitespace.

NB: Please take notice, do not format if statements like this:
      if (val && !val2).
    You will get spanked...hard :P
    Proper if formatting should be:
      if ((val) && (!val2))
    This avoids potential evaluation errors (as was recently seen in
    ecore_con).



SVN revision: 49111
2010-05-21 19:26:57 +00:00
Christopher Michael 364c11ca14 Fix compiler warnings ... yes, they were fairly harmless, but I hate
seeing warnings during compile, especially when they are easily
corrected.



SVN revision: 49109
2010-05-21 17:16:42 +00:00
Gustavo Lima Chaves 23b65bc2de Welcome a new Elementary widget: file selector button.
This is an elm button extended to launch a file selector on click and to callback_call registered funcs
when selection is completed.

Many uses may arise from it, but as a fresh 1st example here comes the first (primitive, but cool) video
player in edje:

externals {
  external: "emotion";
  external: "elm";
}

collections {
  group { name: "main";
     parts {
        part { name: "video";
           type: EXTERNAL;
           source: "emotion";
           description { state: "default" 0;
              rel1 {
                 offset: 10 10;
              }
              rel2 {
                 offset: -11 -61;
              }
              params {
                 choice: "engine" "gstreamer";
              }
           }
        }
        part { name: "play";
           type: RECT;
           description { state: "default" 0;
              color: 0 255 0 128;
              rel1 {
                 relative: 0 1;
                 offset: 10 -51;
              }
              rel2 {
                 relative: 0.3 1;
                 offset: -6 -11;
              }
           }
        }
        part { name: "pause";
           type: RECT;
           description { state: "default" 0;
              color: 255 0 0 128;
              rel1 {
                 relative: 0.3 1;
                 offset: 5 -51;
              }
              rel2 {
                 relative: 0.6 1;
                 offset: -6 -11;
              }
           }
        }

        part { name: "file_sel_btn";
           type: EXTERNAL;
           source: "elm/fileselector_button";
           description { state: "default" 0;
              rel1 {
                 relative: 0.6 1;
                 offset: 5 -51;
              }
              rel2 {
                 offset: -11 -11;
              }
              params {
                 string: "label" "open file";
                 string: "icon" "file";
              }
           }
        }

        programs {
           program {
              signal: "mouse,clicked,1";
              source: "play";
              after: "do_play";
           }
           program {
              name: "do_play";
              action: PARAM_SET "video" "play" "1";
           }
           program {
              signal: "mouse,clicked,1";
              source: "pause";
              action: PARAM_SET "video" "play" "0";
           }
           program {
              signal: "file,chosen";
              source: "file_sel_btn";
              action: PARAM_COPY "file_sel_btn" "path" "video" "file";
              after: "do_play";
           }
        }
     }
  }
}

Enjoy. I've seen bugs on the fileselector itself wrt to list selection logic.
I'll dig into then soon.



SVN revision: 47846
2010-04-08 20:36:37 +00:00