Commit Graph

133 Commits

Author SHA1 Message Date
Gustavo Lima Chaves 7d4f42fe00 New list layout: horizontal.
Now one can set lists to dispose its items horizontally, too.
elm_list_horizontal_mode_set(), whose name was bogus and would
conflict with the new methods, got renamed to elm_mode_set(), along
with the getters.

This is coming along to help a widget using lists which has a
horizontal mode. The default theme for horizontal items is kinda ugly
for default lists, but one can always improve it :) (in a hurry
now).

Also, I'm introducing a new mode for Elementary lists: expand.



SVN revision: 53640
2010-10-19 20:19:12 +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
Gustavo Sverzut Barbieri cb2ebb9303 add elm_fileselector_entry
works, but focus chain is not giving focus to button.



SVN revision: 53384
2010-10-14 01:18:14 +00:00
Tiago Rezende Campos Falcao 18e550d688 Notify timeout is double (in Externals)
SVN revision: 52887
2010-09-29 12:22:25 +00:00
Brett Nash 38997599c8 Untested fix for edje external elm_panes
It was elm_panes_horizontal_is, but grep shows no matches.
So I'm guessing horiztonal_get.
Seems was originally comited by watchwolf when the file was added.

SVN revision: 52287
2010-09-15 06:39:43 +00:00
Carsten Haitzler 68f5b4119b oooh big cleanup. internal elm widget api cleaned up a bit.
SVN revision: 52178
2010-09-13 07:56:23 +00:00
Bruno Dilly a0da368667 Remove some unused variables from elm tests and externals
SVN revision: 52101
2010-09-09 19:35:53 +00:00
Bruno Dilly a06fdc1b84 Fix layout options used by external elm_slideshow
SVN revision: 52099
2010-09-09 19:34:58 +00:00
Brett Nash 0d492dcdaf Merge branch 'elmdnd'
Conflicts:
	trunk/TMP/st/elementary/.gitignore

SVN revision: 51935
2010-09-07 06:56:16 +00:00
Cedric BAIL 7966765d77 * edje: fix edje external module to be consistent with the rest of the efl.
SVN revision: 51296
2010-08-18 16:57:19 +00:00
Cedric BAIL 5826c17db1 * edje: fix edje external module path.
SVN revision: 51251
2010-08-17 13:29:23 +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
Jonathan Atton 8050ddfe99 elementary: add elm_panes in edje external
SVN revision: 50520
2010-07-26 20:33:33 +00:00
Bruno Dilly e7bd53447a "Ooops, forgot about edje_external in the previous patch. Can someone apply this for me? Thanks."
By Rafael Fonseca <rfonseca@profusion.mobi>


SVN revision: 50393
2010-07-20 21:51:08 +00:00
Jonathan Atton 7a8c3ce129 External elm_slideshow: add "string: layout"
SVN revision: 50302
2010-07-17 08:18:04 +00:00
Jonathan Atton 24f5b1831b Add the elm notify external object
SVN revision: 50180
2010-07-11 21:19:27 +00:00
Carsten Haitzler e3679621e0 barf. build. didnt use ethubm cflags. bad!
SVN revision: 50171
2010-07-10 02:31:58 +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
Gustavo Lima Chaves e6798aa016 Shut up compilation error on OpenSolaris, for this widget.
Here it is, vtorri, sorry :)



SVN revision: 49557
2010-06-07 19:01:37 +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
Tiago Rezende Campos Falcao cd6fc4f7d0 dont return if choice didnt match
SVN revision: 48436
2010-04-29 20:26:41 +00:00
Tiago Rezende Campos Falcao 8186783f89 Update some widgets for type compare with CHOICE type. By Masaki
Author:    Thiago Ribeiro Masaki <masaki at profusion.mobi>

SVN revision: 48435
2010-04-29 20:26:38 +00:00
Iván Briano 13015087f4 Allow setting group for radios
SVN revision: 48255
2010-04-23 18:04:24 +00:00
Iván Briano 07d91767cd Expose elm_list as external
Patch by Thiago Masaki


SVN revision: 47847
2010-04-08 20:53:01 +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
Iván Briano 7c413d98dd Assorted fixes to slideshow in lib and externals
Patch by Thiago Masaki


SVN revision: 47845
2010-04-08 20:16:21 +00:00
Tiago Rezende Campos Falcao 58ffdf8254 Fix some bugs in Genlist/Photocam. By Fidencio
Author:    Fabiano Fidêncio <fidencio at profusion.mobi>

SVN revision: 47823
2010-04-07 21:30:54 +00:00
Gustavo Lima Chaves ad9e7cb93b Fixes, fixes...
SVN revision: 47821
2010-04-07 19:37:31 +00:00
Gustavo Lima Chaves 0a90fa0886 One more.
SVN revision: 47818
2010-04-07 17:28:15 +00:00
Gustavo Lima Chaves a760186ea8 Note to self: never commit in a hurry.
SVN revision: 47817
2010-04-07 17:27:58 +00:00
Gustavo Lima Chaves 7caba8955b Again, and that's all.
SVN revision: 47816
2010-04-07 17:24:48 +00:00
Gustavo Lima Chaves 6985d6383e Nasty one, sorry.
SVN revision: 47815
2010-04-07 17:24:26 +00:00
Tiago Rezende Campos Falcao baa7e26d78 Some fixes in external Photocam. By Fidencio
Author:    Fabiano Fidêncio <fidencio at profusion.mobi>

SVN revision: 47785
2010-04-06 14:01:08 +00:00
Tiago Rezende Campos Falcao ffaa68c266 Added get functions in elm_genlist and added external Genlist support. By Fidencio
Author:    Fabiano Fidêncio <fidencio at profusion.mobi>

SVN revision: 47784
2010-04-06 14:01:04 +00:00
Gustavo Lima Chaves 07702cd2f3 Elm slideshow as edje external, by Masaki.
SVN revision: 47780
2010-04-05 20:23:30 +00:00
Gustavo Lima Chaves 6d3534b6f8 Elm_map exported as edje external.
SVN revision: 47654
2010-04-01 17:34:49 +00:00
Tiago Rezende Campos Falcao 46282c0f44 Toolbar external dont have icon
SVN revision: 47653
2010-04-01 17:08:14 +00:00
Gustavo Sverzut Barbieri 92342eca82 fix stupid error and delete icon.
SVN revision: 47652
2010-04-01 16:04:52 +00:00
Tiago Rezende Campos Falcao 6b3e8c6be5 External Photocam. By Fidencio
Author: Fabiano Fidêncio <fidencio at profusion.mobi>

SVN revision: 47649
2010-04-01 14:22:45 +00:00
Tiago Rezende Campos Falcao 8428f91d63 Just some fixes to show changes like horizontal and inverted in editje.By Fidencio
Author: Fabiano Fidêncio <fidencio at profusion.mobi>

SVN revision: 47648
2010-04-01 14:22:41 +00:00
Tiago Rezende Campos Falcao eb475b53bd Added get functions in elm progressbar and added elm progressbar support in edje externals.By Fidencio
Author: Fabiano Fidêncio <fidencio at profusion.mobi>

SVN revision: 47647
2010-04-01 14:22:36 +00:00
Tiago Rezende Campos Falcao c00911ee84 Added get functions in elm spinner and added elm spinner in edje externals.By Fidencio
Author: Fabiano Fidêncio <fidencio at profusion.mobi>

SVN revision: 47646
2010-04-01 14:22:32 +00:00
Tiago Rezende Campos Falcao c8823541a4 Added get functions in elm clock and added elm clock support in edje externals. By Fidencio
Author: Fabiano Fidêncio <fidencio at profusion.mobi>

SVN revision: 47645
2010-04-01 14:22:26 +00:00
Tiago Rezende Campos Falcao 147ae448e0 Free params in Toolbar external
SVN revision: 47644
2010-04-01 14:22:21 +00:00
Gustavo Lima Chaves a1228094fd Elm_fileselector as edje external.
SVN revision: 47634
2010-03-31 20:19:55 +00:00
Gustavo Lima Chaves 39507a1c57 Oops.
SVN revision: 47633
2010-03-31 19:14:32 +00:00
Gustavo Lima Chaves 8483246729 Elm_thumb as an edje external.
There's a bug while adding it at Editje: it will draw itself over the part moving knob.
Fixing it later.



SVN revision: 47632
2010-03-31 19:08:51 +00:00
Gustavo Sverzut Barbieri 587bfbac42 shutdown all resources.
SVN revision: 47623
2010-03-31 12:06:12 +00:00
Tiago Rezende Campos Falcao 5884ebfb18 Toolbar External
SVN revision: 47608
2010-03-30 20:42:01 +00:00
Tiago Rezende Campos Falcao 5dd010bb26 Hoversel External
SVN revision: 47607
2010-03-30 20:41:56 +00:00
Gustavo Lima Chaves 9a8981530d Elm anchorblock edje external support. Same progress as anchorview's.
SVN revision: 47606
2010-03-30 18:38:02 +00:00
Gustavo Lima Chaves 5f686476b5 Anchorview exported to edje.
Just text exported, for now.
TODO: make editje pass *unescaped* text down to this property.



SVN revision: 47604
2010-03-30 17:21:47 +00:00
Gustavo Lima Chaves 3240d746eb Elm notepad on edje_externals.
Still lacking properties exported, will come with more powerful param. types, further.



SVN revision: 47569
2010-03-29 20:53:00 +00:00
Gustavo Lima Chaves 3451411326 New elm widget exported to edje: bubble.
SVN revision: 47559
2010-03-29 17:19:35 +00:00
Gustavo Sverzut Barbieri c83883b8ef call elm_init otherwise applications that still did not will fail.
SVN revision: 47499
2010-03-27 01:24:40 +00:00
Iván Briano efccbe07e8 Make someone else assume responsibility when Elementary is not the father.
SVN revision: 47479
2010-03-26 05:44:30 +00:00
Iván Briano 679b233813 _elm_log_dom is not available outside of libelementary.so and EAPIfying it doesn't sound like a good idea. So let's just have another variable named like it in the externals module so we can reuse the log macros defined in elm_priv.h
SVN revision: 47468
2010-03-26 05:20:30 +00:00
Gustavo Sverzut Barbieri 439a3bd492 Proxy Elementary widget signals to Edje.
Add support to automatic proxy events from Elementary to Edje using
callbacks described with Evas_Smart_Cb_Description and set to
Evas_Smart_Class or per-instance with
evas_object_smart_callbacks_descriptions_set().

Right now elm_widget is not subclassable, so there is no way to define
class signals, just instance signals.

Just doing it for button, lots of widgets to do... If you can help,
please follow the process:

  * see example at src/lib/elm_button.c, copy it.

  * read your widget documentation at Elementary.h

  * grep for evas_object_smart_callback_call(), see if they are all
    documented in Elementary.h, or if there are some missing. Fix Elementary.h

  * paste and change based on fixed Elementary.h My recommendation is
    to create "static const char []" variables and replace all
    evas_object_smart_callback_call() with that, to force sync.


With callback descriptions pre-defined and using the same pointer with
a custom variation evas_object_smart_callback_call_ptr() we may later
optimize signal calling heavily, removing the requirement to call
eina_stringshare_add()/eina_stringshare_del() and also not mixing all
the callbacks in teh same list, instead having an array for defined
signals, and a list from there.  These optimizations are not in, but
they are easily added later without breaking the API/ABI.




SVN revision: 47461
2010-03-26 00:58:14 +00:00
Gustavo Sverzut Barbieri ed5cb0e7f3 Simplify state_set and just apply values that were explicitly set.
SVN revision: 47458
2010-03-25 20:17:34 +00:00
Gustavo Sverzut Barbieri d1d996f13d Port to new Edje EXTERNAL API goodies!
Now it is possible to change labels and lots of other parameters
directly through Edje's API.

BIG FAT NOTE: this is a convenience that comes with a reasonable
    price. If you have hot paths, like loops, then avoid calling this
    and use the object directly. This functions add a cost to check
    edje, then find the part, then get the type, then get the
    param_set/param_get methods, then calling it, then finding the
    parameters using strcmp(), then checking the type and just then it
    will call the actual method. So whenever possible, just call the
    method directly.

Due the reasoning of the "big fat note" I'm adding this inside edje
externals only. The code would be almost the same to expose it in
Elementary.h as elm_widget_property_set/get, but then I know people
would misuse it... actually this kind of stuff could be easily ported
to Evas smart object, but then abuse and slowness will hunt us
foreveeeeer...




SVN revision: 47457
2010-03-25 18:10:25 +00:00
Tiago Rezende Campos Falcao 97ae653c9f Externals Make Scrolled Entry Editable. By Kubo
Author:    Raphael Kubo da Costa <kubo at profusion.mobi>

SVN revision: 47400
2010-03-23 19:48:40 +00:00
Gustavo Sverzut Barbieri 45fb5c7947 Edje EXTERNAL should use as parent the first elm_widget so focus chain
is correct.

This patch should fix issues with multiple entries not being able to
focus, if not, let me know.




SVN revision: 47375
2010-03-22 21:38:32 +00:00
Iván Briano 1f9f880037 Don't set text in entries for now. It has big issues with state changes.
SVN revision: 45704
2010-01-29 15:16:22 +00:00
Tiago Rezende Campos Falcao 435abed395 Adding Module Name to Externals
SVN revision: 45566
2010-01-25 20:30:39 +00:00
Iván Briano 6f6ebbfaa6 Remove unused variable and don't create icons if there's no icon set
SVN revision: 45564
2010-01-25 19:56:45 +00:00
Iván Briano 66d310cf5b Fix typo and prototype
SVN revision: 45559
2010-01-25 18:52:05 +00:00
Gustavo Lima Chaves 500a0ffdd7 Adding more size hints to external object's icons.
Patch by Fabiano Fidêncio.



SVN revision: 45553
2010-01-25 14:24:15 +00:00
Iván Briano 507a2cde73 Icons for available externals, how exciting.
SVN revision: 45449
2010-01-22 20:07:47 +00:00
Gustavo Sverzut Barbieri fb539794d1 Icon parser check if it was successfuly set and if not deletes the icon.
that's the end of that ugly space in editje button.



SVN revision: 44589
2009-12-20 00:28:02 +00:00
Iván Briano d2d403453a formatting
SVN revision: 44448
2009-12-14 18:30:32 +00:00
Iván Briano bcc4b4db54 Scrolled entry, first step.
This is a compound widget that puts an entry inside a scroller,
so the user doesn't have to manage that stuff. Still needs some
more exposure of the scroller stuff and probably some automatizations.


SVN revision: 44349
2009-12-11 05:57:53 +00:00
Iván Briano 86a11a7b6e use bool type where it makes sense
SVN revision: 44310
2009-12-09 06:53:37 +00:00
Iván Briano 68f9598c49 reenable parameters
SVN revision: 44304
2009-12-09 05:22:38 +00:00
Iván Briano bf5af093fa style, better parsing, some parameter names changed
SVN revision: 44302
2009-12-09 04:37:48 +00:00
Iván Briano 0c8c726601 use correct types for parameters
SVN revision: 44297
2009-12-09 02:37:20 +00:00
Carsten Haitzler e4a50fc013 disable - compile errors - NAN for those macros!
SVN revision: 44278
2009-12-08 13:53:38 +00:00
Iván Briano 3d6a80c5f8 Rename some parametes, use defaults, use info
SVN revision: 44274
2009-12-08 05:53:12 +00:00
Iván Briano 02cb10c6e5 State is not a common parameter
patch by Fabiano Fidencio


SVN revision: 44273
2009-12-08 04:57:39 +00:00
Iván Briano 5e7c1eb4db use right name for the module
SVN revision: 44270
2009-12-08 01:35:15 +00:00
Tiago Rezende Campos Falcao edf7f2e22e Elementary edje external modules
Widgets: Button, Check, Radio, Slider, Toggle

SVN revision: 44207
2009-12-06 01:22:54 +00:00