On Thu, Apr 9, 2009 at 4:22 PM, Sergey Semernin
<sergey.semer...@gmail.com> wrote:
> Hello, All.
>
> In message from 9 апреля 2009 Gustavo Sverzut Barbieri wrote:
>
>> > As I see only TEXTBLOCK element have property 'entry_mode', to set it
>> > editable or no. This is using in elm_entry.c.
>> > Many other widgets contain TEXT element, such as 'e.text.label', but
>> > seems no similar property in it. Therefore, no basic callbacks are
>> > initialized when creating. And no way to change entry_mode in runtime.
>> > What shall I do? Simply make 'e.text.label' to TEXTBLOCK type? Or any
>> > else is possible? For example make similar callbacks for 'e.text.label'
>> > when edit, but this is a lot of duplicate code...
>>
>> just change it to textblock, add new signals to make it editable
>> (enter edit mode). You can choose to when the signal to become
>> editable is sent to edje object you hide the TEXT part and show a new
>> one with TEXTBLOCK already in edit mode.
>
> Then, can I safely change type of 'e.text.label'
> of 'e/fileman/default/icon/variable' and etc. to TEXTBLOCK? Or create new
> TEXTBLOCK with same borders as 'e.text.label' and name it for
> ex. 'e.text.editor'? It is affected all themes, so what be better?

you can safely change the type, both should work with the same calls,
BUT be aware that you'd need to escape chars like < and >, since
they're handled differently by TEXTBLOCK (it will do tags).

yes, it will affect all themes, but don't bother much, if you commit
such a change then mail the list and request themes to be updated.
that's the good part of being "not yet released" :-)  But it would be
good to update THEMES/blingbling since it is in svn.


> TEXTBLOCK can be multiline. Maybe in efm2 use it for show long names wrapped
> by a words? Now, when I create file named 'This is text with very long long
> long name.txt' it's icon take a lot of place in file manager window...

word-wrap is not good for such things, rather use char-wrap, that's
because you usually have around 100px and maybe big fonts, so not many
words would fit.

>> you should create a transparent rectangle on top with mouse_events:1
>> on TOP. make it visible:1 when you want to block events, visible:0
>> when you want to stop (as invisible objects will not get events).
>
> Thanks, I see that 'events' RECT are already exists in most cases. And when
> I'll need block mouse events I simply make it invisible.

sure!

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to