Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Signal handler. Please review
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
anatoly techtonik  
View profile  
 More options May 4 2012, 3:54 am
From: anatoly techtonik <techto...@gmail.com>
Date: Fri, 4 May 2012 00:54:48 -0700 (PDT)
Local: Fri, May 4 2012 3:54 am
Subject: Signal handler. Please review

Hi,

I've fixed a long annoyance in Spyder - implemented "find next" on Enter.
This is my first experience with Qt signal/event processing, so I'll
appreciate if somebody could review this change and tell if it could be
done better.
http://code.google.com/p/spyderlib/source/detail?r=9caff1b29c1499d11c...<http://code.google.com/p/spyderlib/source/detail?r=9caff1b29c1499d11c...>

In particular, I am interested if it is possible to pass parameters to
signal handler.

Thanks for the feedback.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carlos Córdoba  
View profile  
 More options May 4 2012, 8:54 am
From: Carlos Córdoba <ccordob...@gmail.com>
Date: Fri, 04 May 2012 07:54:30 -0500
Local: Fri, May 4 2012 8:54 am
Subject: Re: [spyder] Signal handler. Please review

This is really great! I was trying to add it the other day but totally
failed. It was very needed cause it makes the widget so much easier to use.

Unfortunately I can't help you with the signal/event review but from the
little I know they seem fine. I just have one question: why was not it
possible to add Enter as a keyboard shortcut to the widget here?

http://code.google.com/p/spyderlib/source/browse/spyderlib/widgets/fi...

(I say add it, because F3 has to continue working as usual). I mean,
¿why Enter has to be registered and processed as a keyboard event? I'm
just asking because it seems a bit more complicated than adding a shortcut.

Anyway, great work on your side.

Cheers,
Carlos

El 04/05/12 02:54, anatoly techtonik escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
anatoly techtonik  
View profile  
 More options May 4 2012, 9:35 am
From: anatoly techtonik <techto...@gmail.com>
Date: Fri, 4 May 2012 16:35:38 +0300
Local: Fri, May 4 2012 9:35 am
Subject: Re: [spyder] Signal handler. Please review

On Fri, May 4, 2012 at 3:54 PM, Carlos Córdoba <ccordob...@gmail.com> wrote:
> This is really great! I was trying to add it the other day but totally
> failed. It was very needed cause it makes the widget so much easier to use.

> Unfortunately I can't help you with the signal/event review but from the
> little I know they seem fine. I just have one question: why was not it
> possible to add Enter as a keyboard shortcut to the widget here?

> http://code.google.com/p/spyderlib/source/browse/spyderlib/widgets/fi...

> (I say add it, because F3 has to continue working as usual). I mean, ¿why
> Enter has to be registered and processed as a keyboard event? I'm just
> asking because it seems a bit more complicated than adding a shortcut.

I understood that these shortcuts are global - even if the panel is
inactive, they still work. I needed Enter shortcut processed only when
widget is active. More than than - this shortcut is only active in
ComboBox widget. It was also possible to override keyPressEvent() in
parent FindReplace() widget, but then Enter will work as find_next()
when focus was on all other elements too.

I thought writing a tutorial of resolving this particular bug into
Spyder blog as an example of reverse engineering for new people, but
quickly realized that I've run out of time. =)

> Anyway, great work on your side.

Thanks. ;)
--
anatoly t.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carlos Córdoba  
View profile  
 More options May 4 2012, 10:02 am
From: Carlos Córdoba <ccordob...@gmail.com>
Date: Fri, 04 May 2012 09:02:14 -0500
Local: Fri, May 4 2012 10:02 am
Subject: Re: [spyder] Signal handler. Please review
Please read my answers below

El 04/05/12 08:35, anatoly techtonik escribió:

I tried it and you're totally right here. I understand know you solution
and think it's the right approach, thanks for the explanation.

> It was also possible to override keyPressEvent() in
> parent FindReplace() widget, but then Enter will work as find_next()
> when focus was on all other elements too.

> I thought writing a tutorial of resolving this particular bug into
> Spyder blog as an example of reverse engineering for new people, but
> quickly realized that I've run out of time. =)

If you finally find the time, it would be a great reading for the other
devs and future contributors :)

Cheers,
Carlos


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jed Ludlow  
View profile  
 More options May 4 2012, 10:52 am
From: Jed Ludlow <jed.lud...@gmail.com>
Date: Fri, 4 May 2012 08:52:17 -0600
Local: Fri, May 4 2012 10:52 am
Subject: Re: [spyder] Signal handler. Please review

On Fri, May 4, 2012 at 1:54 AM, anatoly techtonik <techto...@gmail.com>wrote:

> Hi,

> I've fixed a long annoyance in Spyder - implemented "find next" on Enter.
> This is my first experience with Qt signal/event processing, so I'll
> appreciate if somebody could review this change and tell if it could be
> done better.

> http://code.google.com/p/spyderlib/source/detail?r=9caff1b29c1499d11c...<http://code.google.com/p/spyderlib/source/detail?r=9caff1b29c1499d11c...>

> In particular, I am interested if it is possible to pass parameters to
> signal handler.

> Thanks for the feedback.

Looks great. You essentially did the same thing that Pierre had done in
PatternComboBox, which is override keyPressEvent, so if there are
complaints now there should have been complaints earlier :). It's the right
way to go to accomplish what you intended to do as far as I know. I had
just one question, which I attached to a code review here:

http://code.google.com/p/spyderlib/source/detail?r=9caff1b29c1499d11c...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »