Am Freitag, 14. Juni 2013 um 01:42 schrieb Daniel Juyung Seo: > On Fri, Jun 14, 2013 at 4:36 AM, Leif Middelschulte < > leif.middelschu...@gmail.com (mailto:leif.middelschu...@gmail.com)> wrote: > > > Am Mittwoch, 12. Juni 2013 um 06:21 schrieb Daniel Juyung Seo: > > > On Wed, Jun 12, 2013 at 1:38 AM, Leif Middelschulte < > > > leif.middelschu...@gmail.com (mailto:leif.middelschu...@gmail.com)> > > > > > > > wrote: > > > > > > > 2013/6/11 Daniel Juyung Seo <seojuyu...@gmail.com > > > > (mailto:seojuyu...@gmail.com) (mailto: > > seojuyu...@gmail.com (mailto:seojuyu...@gmail.com))> > > > > > > > > > On Wed, Jun 12, 2013 at 12:43 AM, Leif Middelschulte < > > > > > leif.middelschu...@gmail.com (mailto:leif.middelschu...@gmail.com)> > > > > > > > > > > > > > > > > > > > > wrote: > > > > > > > > > > > Am Dienstag, 11. Juni 2013 um 16:19 schrieb Rafael Antognolli: > > > > > > > Hi, > > > > > > > > > > > > > > On Tue, Jun 11, 2013 at 9:54 AM, Daniel Juyung Seo < > > > > > seojuyu...@gmail.com (mailto:seojuyu...@gmail.com)(mailto: > > > > > > seojuyu...@gmail.com (mailto:seojuyu...@gmail.com))> wrote: > > > > > > > > On Tue, Jun 11, 2013 at 9:42 PM, Leif Middelschulte < > > > > > > > > leif.middelschu...@gmail.com > > > > > > > > (mailto:leif.middelschu...@gmail.com) (mailto: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > leif.middelschu...@gmail.com (mailto:leif.middelschu...@gmail.com) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > )> > > > > > > wrote: > > > > > > > > > > > > > > > > > Am Dienstag, 11. Juni 2013 schrieb Daniel Juyung Seo : > > > > > > > > > > > > > > > > > > > Hello, this follows elementary policy. > > > > > > > > > > > > > > > > > > > > 1. focused object A lose its focus when another object is > > going > > > > > to > > > > > > get > > > > > > > > > > focus. > > > > > > > > > > 2. an object is focused when it's clicked. > > > > > > > > > > > > > > > > > > > > so the sequence is > > > > > > > > > > 1. click object B > > > > > > > > > > 2. focused object A lose its focus > > > > > > > > > > 3. object B gets focus > > > > > > > > > > > > > > > > > > > > So only one object is focused at any point. > > > > > > > > > > > > > > > > > > > > It's not possible to unfocus other object before any other > > > > object > > > > > > is > > > > > > > > > > clicked. > > > > > > > > > > Because clicked signal will trigger unfocus signal. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > So, as I already imagined, it's due to the current > > > > implementation. > > > > > > > > > > > > > > > > Not just an implementation. It's a policy. > > > > > > > > > > > > > > > > > > > > > > > > > Can't we trigger "unfocused" callbacks, before we trigger > > > > "clicked" > > > > > > > > > callbacks? I assume that it's the way it is, because Edje > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > understands > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > How come? > > > > > > > > I repeat. > > > > > > > > 1. An object is focused when it's clicked. > > > > > > > > 2. An object is unfocused when other object is going to be > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > focused. > > > > > > > > > > > > > > > > It means mouse click -> unfocused -> focused. > > > > > > > > > > > > > > If I understood correctly, Leif is saying that this is not what > > is > > > > > > > happening, and his test proves that (I didn't try it). He is > > > > > > > > > > > > > > > > > > > > > > saying > > > > > > > that the current order is: > > > > > > > > > > > > > > mouse click -> focused -> unfocused > > > > > > I haven't considered "focused" events yet, because I want to react > > > > > > > > > > > > > > > > > > > > > > to > > > > > > "clicked while focused" (sets stuff) and "unfocused" (resets stuff) > > > > > > > > > > > > > > > events. > > > > > > > > > > > > > > > > > > > > > > > > > > Well, contradiction here. > > > > > If an object is already focused, click does not emit focused signal > > > > > > > > > > > > > > > > > again. > > > > > So "clicked while focused" doesn't happen. > > > > > > > > > > > > Sorry, that was more of a "goal description". > > > > > > > > > > > > > > > > > > > > But with current behavior I get: set (click) -> reset (unfocused) > > > > > > So, afaics, we basically ignore the concept of object focus for > > > > > > > > > > > > > > > > > > > > > > > > > > > > "clicked" > > > > > > events. > > > > > > Maybe we can have "focused,clicked" or whatever? > > > > > > > > > > > > > > > > > > > > > > > > > > Well maybe I should check your fundamental requirement first, not > > wasting > > > > > my time on this topic. > > > > > > > > > > > > Sorry, I didn't mean to waste anybody's time here :-/ > > > > > > Explaining same thing a couple of times is not a happy job. > > > But I wasn't intended to be agrressive though. > > > > > > > > > > > > From your example I don't get what you really want to do as the > > final > > > > > outcome. > > > > > Even your first email does not describe your goal. > > > > > Can you show me more code? > > > > > > > > > > > > > > > > > I've attached an easy example. > > > > Clicking on a button shall set the global state variable to some > > > > > > > > > > > value. If > > > > focus is lost, it should be reset to some other value. > > > > As you can see, clicking on one button, and then the next, while using > > > > "unfocused" callbacks, leads to a reset value. > > > > > > > > > > > > > Well here is a catch. > > > You are chaning one global variable with different types of callbacks. > > > "unfocused" and "mouse up". > > > I would rather use "focused" + "unfocused" combination OR "mouse down" + > > > "mouse up" combination. > > > That's more correct logically, isn't it? > > > > > > > > > No, because one might want to use "clicked" in conjunction with "focused", > > as I'll explain later. > > > > > > If you use different types of callbacks for one global variable there is > > no > > > garuantee of call sequence. > > > > > > And I still don't get your final goal yet. Why do you change one global > > > variable in "unfocused" and "mouse up"? > > > > > > > > > First of all: Thanks for you patience here :) > > I am working on an ui that should be usable via touch or a rotary > > knob/keyboard at the same time. > > To allow the ui multicontextual usage of the rotary knob, I manipulate the > > X events (could be a different elm call too, I know) the rotary knob emits > > as input depending on the current ui context. > > > > Scenario: > > Two flipselectors (a,b) which are 'locked' by default. > > Rotating the knob left/right will emit tab/shift tab respectively and thus > > switch focus from one flipselector to the next. Clicking/pressing "Return" > > while a flipselector is focused unlocks it and changes the rotary knob's > > context to "Up"/"Down". > > > > > Great. Thanks for the good description. This will help us solve your > question. > This must be in your first mail/question :) > Telling what and why you are going to do something finally really helps. > > > > So here's where my problem with the missing "clicked while focused" event > > comes in. > > I switch the rotary knob's context to "Up"/"Down", when the touch > > interface is used to select a flipselector, but it gets reset to default > > (Tab/Shift Tab) behavior by the "unfocused" callback of the previously > > focused object. > > > > > I am not sure if I understood correctly but I still don't see a point why > you use "unfocused" callback. > >
Imagine a user has unlocked a flipselector and is changing its value via rotary knob "Up"/"Down". Then she proceeds and selects a button somewhere. The events the rotary knob emits should be changed back to Tab/Shift Tab, so the rotary function can be used to switch focus again. So the most logical point in time for resetting the rotary knob's behavior is when the rotary knob loses the focus. > Just check if the object is focused in mouse up callback (flipselector is > missing clicked callback) by elm_object_focus_get(), if it's focused then > unlock it and change the rotary knob's context. > > That would make two clicks necessary, because the first one would be rejected. > > But you didn't describe how you lock the flipselector again. My next answer > will depend on your that. > > _______________ | | /\ | | Some Value | | | | \/ | -------------------------- It's completely edje. I have a lock layer whose visibility is set to 0 on either mouse click or specific signal I send via elm_layout api when e.g. "Return" is pressed. Once the lock layer is invisible, the underlying arrows can be pressed, emitting the value change signals, elm is listening for. By either clicking the "Some value" area or emitting a lock signal via elm_layout api, the lock layer is set to be visible again. This "lock" approach is necessary to validate the value a user selected. I know it's not optimal but for the time being, it's sufficient. > > Btw, how did you lock/unlock the flipselector? See above. -- Leif > > Daniel Juyung Seo (SeoZ) > > > > > > > > Thanks. > > Thank you :) > > > > Leif > > > > > > Daniel Juyung Seo (SeoZ) > > > > > > > > > > > > > > > > > > > > > > > Thanks. > > > > Thank you! > > > > > > > > Leif > > > > > > > > > > > > > > Daniel Juyung Seo (SeoZ) > > > > > > > > > > > > > > > > > > > > > > Thanks for your explanations, > > > > > > > > > > > > Leif > > > > > > > > > > > > > > Regards, > > > > > > > -- > > > > > > > Rafael Antognolli > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > This SF.net (http://SF.net) email is sponsored by Windows: > > > > > > > > > > > > > > Build for Windows Store. > > > > > > > > > > > > > > http://p.sf.net/sfu/windows-dev2dev > > > > > > > _______________________________________________ > > > > > > > enlightenment-devel mailing list > > > > > > > enlightenment-devel@lists.sourceforge.net > > > > > > > (mailto:enlightenment-devel@lists.sourceforge.net) (mailto: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > enlightenment-devel@lists.sourceforge.net > > (mailto:enlightenment-devel@lists.sourceforge.net)) (mailto: > > > > > > > > > > > > > > > > > > > > > > > > > enlightenment-devel@lists.sourceforge.net > > > > > > (mailto:enlightenment-devel@lists.sourceforge.net) (mailto: > > enlightenment-devel@lists.sourceforge.net > > (mailto:enlightenment-devel@lists.sourceforge.net))) > > > > > > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > This SF.net (http://SF.net) email is sponsored by Windows: > > > > > > > > > > > > Build for Windows Store. > > > > > > > > > > > > http://p.sf.net/sfu/windows-dev2dev > > > > > > _______________________________________________ > > > > > > enlightenment-devel mailing list > > > > > > enlightenment-devel@lists.sourceforge.net > > > > > > (mailto:enlightenment-devel@lists.sourceforge.net) (mailto: > > > > > > > > > > > > > > > > > > > > > > enlightenment-devel@lists.sourceforge.net > > (mailto:enlightenment-devel@lists.sourceforge.net)) > > > > > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > This SF.net (http://SF.net) email is sponsored by Windows: > > > > > > > > > > Build for Windows Store. > > > > > > > > > > http://p.sf.net/sfu/windows-dev2dev > > > > > _______________________________________________ > > > > > enlightenment-devel mailing list > > > > > enlightenment-devel@lists.sourceforge.net > > > > > (mailto:enlightenment-devel@lists.sourceforge.net) (mailto: > > > > > > > > > > > > > > > > enlightenment-devel@lists.sourceforge.net > > (mailto:enlightenment-devel@lists.sourceforge.net)) > > > > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Leif > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > This SF.net (http://SF.net) email is sponsored by Windows: > > > > > > > > Build for Windows Store. > > > > > > > > http://p.sf.net/sfu/windows-dev2dev > > > > _______________________________________________ > > > > enlightenment-devel mailing list > > > > enlightenment-devel@lists.sourceforge.net > > > > (mailto:enlightenment-devel@lists.sourceforge.net) (mailto: > > > > > > > > > > > enlightenment-devel@lists.sourceforge.net > > (mailto:enlightenment-devel@lists.sourceforge.net)) > > > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > > > > > ------------------------------------------------------------------------------ > > > This SF.net (http://SF.net) email is sponsored by Windows: > > > > > > Build for Windows Store. > > > > > > http://p.sf.net/sfu/windows-dev2dev > > > _______________________________________________ > > > enlightenment-devel mailing list > > > enlightenment-devel@lists.sourceforge.net > > > (mailto:enlightenment-devel@lists.sourceforge.net) (mailto: > > > > > > > enlightenment-devel@lists.sourceforge.net > > (mailto:enlightenment-devel@lists.sourceforge.net)) > > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > > > > > > > > ------------------------------------------------------------------------------ > > This SF.net (http://SF.net) email is sponsored by Windows: > > > > Build for Windows Store. > > > > http://p.sf.net/sfu/windows-dev2dev > > _______________________________________________ > > enlightenment-devel mailing list > > enlightenment-devel@lists.sourceforge.net > > (mailto:enlightenment-devel@lists.sourceforge.net) > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > > ------------------------------------------------------------------------------ > This SF.net (http://SF.net) email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > (mailto:enlightenment-devel@lists.sourceforge.net) > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel