Commit Graph

40 Commits

Author SHA1 Message Date
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
Carsten Haitzler 91e01aa86e patch from discomfitor <- check type of widget on api call and return if not
the right type



SVN revision: 47073
2010-03-09 06:15:39 +00:00
Sebastian Dransfeld abe8dfc614 Ecore_Str.h -> Eina
SVN revision: 45745
2010-01-30 22:22:46 +00:00
Sebastian Dransfeld 50fe92a1d2 Correct second argument
SVN revision: 45223
2010-01-16 13:54:55 +00:00
Carsten Haitzler 4dd7f4e799 fix build break!
SVN revision: 45214
2010-01-16 12:35:31 +00:00
Jonathan Atton 7be1d94aa2 Elm: use evas_object_event_callback_del_full() everywhere and improve elm_notify
SVN revision: 43217
2009-10-22 22:10:23 +00:00
Christopher Michael 6ddb7d155a Fix some formatting.
Add missing function prototype & fix function declaration.



SVN revision: 43041
2009-10-12 20:51:26 +00:00
Carsten Haitzler 8d4735d43a ther is no _() macro in elm! intl not done (yet)
SVN revision: 42990
2009-10-10 02:53:22 +00:00
Christopher Michael 5f9ad176c9 More EVAS_HINT_EXPAND/FILL.
Allow button labels to be translated.



SVN revision: 42989
2009-10-10 00:35:05 +00:00
Christopher Michael 45d94713b9 Use EVAS_HINT_EXPAND & EVAS_HINT_FILL.
SVN revision: 42988
2009-10-10 00:32:27 +00:00
Davide Andreoli fe918771b3 * FileSelector: Add new API call:
elm_fileselector_is_save_set(Evas_Object *obj, Eina_Bool is_save)

When the fs is in 'save' mode you can type the name of the file to save.

SVN revision: 42306
2009-09-07 00:00:33 +00:00
Iván Briano 150c72c6cc As requested by vtorri, to fix compilation on Windows
SVN revision: 42056
2009-08-28 05:28:44 +00:00
Carsten Haitzler 14287466c9 fix symbol clash
SVN revision: 42027
2009-08-26 23:39:17 +00:00
Christopher Michael 8af7cf2468 Add standard Folder & file icons.
Resize refresh icon to match other icons so file size is slightly smaller.
Make fileselector widget use Folder & File icons.
Remove some printfs in fileselector widget.



SVN revision: 42024
2009-08-26 17:59:41 +00:00
Davide Andreoli 9f93e36cfe File Selector: rename the source from elm_ to elc_
SVN revision: 41723
2009-08-12 23:04:26 +00:00