Commit Graph

64 Commits

Author SHA1 Message Date
Gustavo Lima Chaves d1454b4742 [elementary] Documenting/exemplifying file selector
widget.



SVN revision: 61401
2011-07-15 14:02:54 +00:00
Mike McCormack 252c052ea7 elementary: elementary_config.h is a local include
Using #include <elementary_config.h> will fail if
elementary has never been installed.

Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>

SVN revision: 61220
2011-07-11 01:22:19 +00:00
Vincent Torri 3fcd1757ea fix win32 compilation
SVN revision: 61215
2011-07-10 21:35:33 +00:00
David Walter Seikel b2171db9e9 Make it compile under linux again.
If it's still broken under Windows, caro can fix it after the spanking.


SVN revision: 61214
2011-07-10 15:08:12 +00:00
Vincent Torri 2e1a80fd31 fix compilation on Windows
SVN revision: 61192
2011-07-10 08:55:46 +00:00
Tom Hacohen 2d498587d4 Elm: Fix a couple more deprecation warnings and use elm_object_text_set/get.
SVN revision: 60809
2011-06-29 09:31:01 +00:00
Cedric BAIL 72db171f44 elementary: remove warning and work around insane ecore_thread_check bug.
SVN revision: 60725
2011-06-27 10:26:06 +00:00
Hyoyoung Chang 133cc990c3 From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elementary - elc_fileselector
Date: Sun, 26 Jun 2011 11:55:55 +0900

Dear elementary developers

When I compiled svn elementary, it seems a define(HAVE_EIO) is omitted.
I sending a patch, check about it please.

Thanks.


SVN revision: 60697
2011-06-26 04:56:47 +00:00
Cedric BAIL 452e2d379f elementary: use Eio when available for fileselector.
SVN revision: 60692
2011-06-25 23:39:43 +00:00
Cedric BAIL 303f6f594e elementary: use Eina_File.
SVN revision: 60685
2011-06-25 15:35:53 +00:00
Carsten Haitzler c44f45485f big move forward. scrolled entry and entry merge into entry. entry now
can be scrollable or not. scrolled entry now just calls entry calls
and is marked as dperecated to be killed off in the future so no need
to document it etc. edje external also goes.



SVN revision: 60438
2011-06-17 09:44:31 +00:00
Cedric BAIL fbf087b4e5 elementary: use evas_object_image_extension_can_load_fast_get.
SVN revision: 59873
2011-06-01 14:33:13 +00:00
Cedric BAIL e20bf4eba5 elementary: add elm_icon_thumb_set.
NOTE: it will only display thumbnail if you requested ethumb in your app.
See fileselector example for more information.


SVN revision: 59848
2011-05-31 16:16:01 +00:00
Tom Hacohen 9466cbcea3 Elementary: Use an enum for selecting line-wrap method.
BREAKS API - discussed in ML before.

SVN revision: 59115
2011-05-02 10:56:16 +00:00
ChunEon Park 0b74203480 elementary - fileselecto, actionslider, anchorview, fileselector_button, anchorblock, fileselector_entry, hoversel, scrolled_entry
SVN revision: 58254
2011-04-01 11:51:11 +00:00
Carsten Haitzler f74c18a02e make all widgets use a standard setup macro. cuts code down and
handles null parent errors, null wd alloc, null obj create errors etc.



SVN revision: 58242
2011-04-01 06:08:02 +00:00
WooHyun Jung fc6a5a24b9 From: WooHyun Jung <wh0705.jung@samsung.com>
Subject: [E-devel] [Patch] for Gettext /I18N

Mr. Govi in SISO made a patch for following description. 

Detail Description:

1. If EFL/Elementary Application has i18n String with its own PO file,
then Elementary will end up looking for internal Strings at application
PO files. Passing PACKAGE name in the Elementary String Look up macro
eliminates this issue and looks for internal String from Elm.po files.

2. Macro E_(str) is used, to differentiate the elementary Strings from
commonly used #define _(str) in the applications. ( Just E ed :) )
 


SVN revision: 58085
2011-03-25 04:49:49 +00:00
Tom Hacohen d2d4b44c31 Elementary fileselector: Updated translatable strings and regenerated .pos
SVN revision: 57051
2011-02-15 14:32:27 +00:00
Tom Hacohen f55a3f4cfc Elementary: fixed on-the-fly UI-mirroring in elc objects.
All sub-objects have auto-ui-mirroring flag turned off now
By Aharon Hillel.

SVN revision: 56922
2011-02-10 15:13:05 +00:00
Tom Hacohen c04d8990f0 Elementary: Added on-the-fly UI-mirroing support to all of the widgets
SVN revision: 56846
2011-02-09 16:14:02 +00:00
Jonathan Atton 3cf19c064c elm external: fileselector: enable the textblock when we are in the save mode
SVN revision: 56823
2011-02-08 22:09:26 +00:00
Tom Hacohen 99da5b6541 Elementary: Added ui-mirroring support for all the widgets.
SVN revision: 56803
2011-02-08 12:08:28 +00:00
3v1n0 ff67ce31fb Always check for valid evas object.
If you try to create a new widget, you must be sure that the parent
is really an evas object.

With the previous implementation it was possible to call an _add
function for an elementary widget with any non-null pointer as parent
eventually causing crashes (like with the elm_box).


SVN revision: 55521
2010-12-12 19:12:43 +00:00
Gustavo Lima Chaves 19f5f9fc00 New Fileselector mode: GRID.
SVN revision: 55448
2010-12-10 13:01:51 +00:00
Gustavo Lima Chaves fb9a4e36f9 All fileselector cases (mixing save, folder only, expand) seem OK, now.
SVN revision: 55378
2010-12-08 16:18:37 +00:00
Gustavo Lima Chaves 68437b969b Indenting and removing bogus code blocks.
SVN revision: 55364
2010-12-07 19:18:14 +00:00
helen 030b697366 EINA_SAFETY_ON_NULL_RETURN
Checking parameters with EINA_SAFETY_ON_NULL_RETURN and
EINA_SAFETY_ON_NULL_RETURN_VAL in Elementary

SVN revision: 55188
2010-12-03 14:08:33 +00:00
Leandro Pereira 85c4fe8cf4 elementary: Bugfix: Elm_Fileselector returns parent directory in folder select mode
SVN revision: 55085
2010-11-30 12:59:08 +00:00
Leandro Pereira dbe6545040 elementary/elc_fileselector: Pack booleans with a bitfield
SVN revision: 55084
2010-11-30 12:59:05 +00:00
Carsten Haitzler fc2c036041 fix filesel - never gave right path!
SVN revision: 54977
2010-11-25 10:01:39 +00:00
Tiago Rezende Campos Falcao d666346484 Elm Fileselector with theme support
SVN revision: 54812
2010-11-22 19:24:48 +00:00
Tiago Rezende Campos Falcao d938999c78 Add missing object type checkers.
The test test_decl now warn about missing API_ENTRY or
ELM_CHECK_WIDTYPE.

SVN revision: 53956
2010-10-28 13:38:55 +00:00
Rafael Fonseca 61a5564850 Use profile configuration on fileselectors.
The profile now defines the default value for expand and inwin modes. The
fileselectors tests were changed to reflect that.

Note that the default for desktops is expand mode enabled and inwin disabled
and for mobiles is the opposite.



SVN revision: 53728
2010-10-21 18:40:49 +00:00
Tiago Rezende Campos Falcao 8ca4d18a0b Fixing can_focus to the widgets
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

widgets:
anchorblock:    can_focus = EINA_TRUE
anchorview:     can_focus = EINA_TRUE
fileselector:   can_focus = EINA_FALSE
hoversel:       can_focus = EINA_FALSE
notepad:        can_focus = EINA_TRUE
scrolled_entry: can_focus = EINA_TRUE
bubble:         can_focus = EINA_FALSE
calendar:       can_focus = EINA_TRUE
clock:          can_focus = EINA_TRUE
conformant:     can_focus = EINA_FALSE
flip:           can_focus = EINA_FALSE
frame:          can_focus = EINA_FALSE
gengrid:        can_focus = EINA_TRUE
genlist:        can_focus = EINA_TRUE
index:          can_focus = EINA_FALSE
list:           can_focus = EINA_TRUE
layout:         can_focus = EINA_FALSE
map:            can_focus = EINA_TRUE
mapbuf:         can_focus = EINA_FALSE
menu:           can_focus = EINA_FALSE
notify:         can_focus = EINA_FALSE
pager:          can_focus = EINA_FALSE
panes:          can_focus = EINA_FALSE
progressbar:    can_focus = EINA_FALSE
photocam:       can_focus = EINA_TRUE
scroller:       can_focus = EINA_TRUE
table:          can_focus = EINA_FALSE
thumb:          can_focus = EINA_FALSE
win:            can_focus = EINA_FALSE

SVN revision: 52888
2010-09-29 12:22:30 +00:00
Gustavo Sverzut Barbieri c4d40c7183 Constant void data is pretty useless in item callback contexts.
the callbacks are supposed to freely modify their data, as it is their
context (ie: python/js object, row from database, etc.



SVN revision: 52372
2010-09-17 16:21:34 +00:00
Davide Andreoli 4ab457bce6 whitespaces--
Im going to clear the fileselector widget, I will make the theme use
a layout instead of a fixed box and also I will clear the api that have
silly names atm

If you have suggestions please speak now

DaveMDS


SVN revision: 51966
2010-09-08 03:54:42 +00:00
Lucas De Marchi c6a4ea9d2f Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
Cedric BAIL bdf6efa129 * elementary: fix Ecore API changes.
SVN revision: 49860
2010-06-25 09:58:14 +00:00
Gustavo Lima Chaves 24b1c5d025 Fixing some compiler warnings on filesector widgets.
SVN revision: 48024
2010-04-15 18:00:31 +00:00
Boris Faure 1ca26086db elm: add lots of doc! Thanks to Mike (zmike/discomfitor)
SVN revision: 47944
2010-04-12 08:12:02 +00:00
Gustavo Lima Chaves bf7c032627 Fix race condition on item selection for file selectors.
Also, fixing bug at file selector button (last selection saving).



SVN revision: 47881
2010-04-09 17:52:55 +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
Boris Faure 97dfb904e9 add doc, thanks to Mike Blumenkrantz (zmike)
SVN revision: 47801
2010-04-07 07:37:49 +00:00
Gustavo Lima Chaves 10baacf024 1st use of description field for callback signals.
SVN revision: 47779
2010-04-05 19:38:59 +00:00
Gustavo Lima Chaves 31d1a343c5 Signal description infra for file selector.
SVN revision: 47774
2010-04-05 19:18:36 +00:00
Gustavo Lima Chaves a1228094fd Elm_fileselector as edje external.
SVN revision: 47634
2010-03-31 20:19:55 +00:00
Gustavo Sverzut Barbieri 06d14ed245 const and -Wextra, come on guys! :-/
SVN revision: 47409
2010-03-24 03:06:00 +00:00
Gustavo Sverzut Barbieri e01d72fe26 Use eina_stringshare_replace to avoid crashes.
By: Rafael Fonseca <rfonseca@profusion.mobi>



SVN revision: 47187
2010-03-13 21:01:26 +00:00
Carsten Haitzler 310810413c and some more warning--
SVN revision: 47097
2010-03-10 03:47:33 +00:00
Vincent Torri b07e49d435 remove unused parameter in the library.
I won't do this everyday, and i won't touch the tests.


SVN revision: 47093
2010-03-09 17:51:30 +00:00