[Padre-dev] "search" investigation

Offer Kaye offer.kaye at gmail.com
Thu Apr 9 11:59:23 PDT 2009


On Thu, Apr 2, 2009 at 3:32 PM, Gabor Szabo wrote:
> On Wed, Apr 1, 2009 at 5:03 PM, Offer Kaye wrote:
>> Trying to understand why search window (dialog) doesn't return focus
>> to the main Padre window and why it doesn't work.
>>
>> I noticed in Padre::Wx::Dialog::Find that the beginning of the file
>> says "use base qw(Padre::Wx::Dialog);" however the create_dialog
>> method calls Wx::Dialog (see line 55). Is this on purpose?
>
> probably not
>

Hi,
I've had more time to look into this. It looks like the call to
*_build_layout* from *new* (both subs inside Wx::Perl::Dialog) is
broken, as I get an error ("Can't use an undefined value as an ARRAY
reference at C:/temp/Padre/trunk/Padre/lib/Wx/Perl/Dialog.pm line
367.") when I try to use it instead of Wx::Dialog.

Does that mean Wx::Perl::Dialog is broken? I'm not sure how to fix it...

On the other hand I don't understand how the code inside
Padre::Wx::Dialog::Find works even when it used Wx::Dialog. Find
doesn't work (doesn't do anything - looks like the "find" sub doesn't
ever call "search" sub?). "Find Again" seems to call "search"
correctly and works - but I don't see the connection, as I don't see
in the code where the "Find Again" is bound to. It works strange
because it brings up a separate widget, not the normal Find one nor
does it just jump to the next occurrence of the text to find, as I
would expect a "Find Again" item to work. The widget it brings up
looks like what I would expect "Quick Find" to work only I don't have
that option selected in the menu...

Can someone help me make heads or tails of this? Is there some
debugger I can run that will help me see the flow of the code as I
click on various UI elements?

Thanks,
-- 
Offer Kaye


More information about the Padre-dev mailing list