Author Topic: Fixed annoying FindDlg bugs  (Read 10732 times)

knue

  • Guest
Fixed annoying FindDlg bugs
« on: December 15, 2005, 01:25:50 pm »
I have fixed a couple of bugs in the FindDlg:
- The FindDlg does not crash, if you "find in files"
- calling the Dlg sets the focus now properly
- Backspace works now in the ComboBox
- small fix for the update of some ui-elements(in "find in files", "search path" and that stuff when you play with the scope setting and restart the dlg)

EDIT: I use the linux-version. Perhaps some bugs can only be seen there.

[attachment deleted by admin]
« Last Edit: December 15, 2005, 01:28:49 pm by knue »

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Fixed annoying FindDlg bugs
« Reply #1 on: December 15, 2005, 02:35:17 pm »
Please use the patch tracker. Posting patches here, is certain to be overlooked/lost.
Be patient!
This bug will be fixed soon...

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Re: Fixed annoying FindDlg bugs
« Reply #2 on: December 15, 2005, 02:38:57 pm »
Please use the patch tracker. Posting patches here, is certain to be overlooked/lost.

What's that?

Edit nevermind i found it.
« Last Edit: December 15, 2005, 02:41:55 pm by 280Z28 »
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
 Check out The Sam Zone :cool:

knue

  • Guest
Re: Fixed annoying FindDlg bugs
« Reply #3 on: December 17, 2005, 10:47:54 am »
Perhaps somebody can tell whether this patch was useful.

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Fixed annoying FindDlg bugs
« Reply #4 on: December 17, 2005, 10:54:34 am »
Perhaps somebody can tell whether this patch was useful.
want to test it soon but currently is only windows build possible for me.
but i want to collect infos and ideas about Search features

see also
http://forums.codeblocks.org/index.php?topic=1678.msg12347#msg12347

thanks

knue

  • Guest
Re: Fixed annoying FindDlg bugs
« Reply #5 on: December 28, 2005, 12:56:41 am »
Why does nobody apply my patch?
The finddlg in the svn repository is still buggy.

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Fixed annoying FindDlg bugs
« Reply #6 on: December 28, 2005, 02:50:02 am »
knue: I'm afraid we're running out of developers. I'm focusing 100% on the code completion annoyances - plus, we need someone who tests your patches first. Look in the sourceforge page, there are some beta-testers there, they might test your patches. It might also work if you edit your submission and assign it to Thomas. He's good at patching :)

takeshimiya

  • Guest
Re: Fixed annoying FindDlg bugs
« Reply #7 on: December 28, 2005, 03:02:33 am »
Yeah, we need an official patch reviewer ASAP :)

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Fixed annoying FindDlg bugs
« Reply #8 on: December 28, 2005, 04:41:53 am »
Is me22 still around? He's fixed LOTS of unicode errors in patches before.

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Fixed annoying FindDlg bugs
« Reply #9 on: December 28, 2005, 06:49:33 am »
in the past i was using Ubuntu 5.04 and was using wxGTK-2.6.0 Ansi build to build Codeblocks - but this isn't contemporary any longer.

since Monday i've set up a new Ubuntu 5.10 with wxGTK-2.6.1-Unicode and have built the latest CodeBlocks from SVN.
( there were a few small problems, but now with SVN rev. 1606 all builds fine !!! )

i wanted to look at and test this (and other pending unicode-) patch(es) but i need(ed) some time to create a rock-solid test-environment.
sorry for the delay ...  8)

[edit]
btw.  @ knue
which linux build do you use ?
neither the Find nor the FindinFiles dialogs does crash in its current state in my actual unicode build  :?
« Last Edit: December 28, 2005, 07:21:38 am by tiwag »

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Re: Fixed annoying FindDlg bugs
« Reply #10 on: December 28, 2005, 08:42:22 am »
knue: I'm afraid we're running out of developers. I'm focusing 100% on the code completion annoyances - plus, we need someone who tests your patches first. Look in the sourceforge page, there are some beta-testers there, they might test your patches. It might also work if you edit your submission and assign it to Thomas. He's good at patching :)

I'll volunteer if you ever feel like taking me up on the offer. :)
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
 Check out The Sam Zone :cool:

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: Fixed annoying FindDlg bugs
« Reply #11 on: December 28, 2005, 09:15:11 am »
I'll volunteer too, I am getting to know more and more cb code through applying patches as it is.

Lieven

knue

  • Guest
Re: Fixed annoying FindDlg bugs
« Reply #12 on: December 28, 2005, 04:31:59 pm »
@tiwag: The current svn version does not crash anymore. Besides the UI-update bugs seem to be fixed. But the focus and backspace problems remain.

Now we have more then double work :(

I will test my patch today by myself with the unicode version.

I use gentoo linux with wxGTK-2.6.2 and (now) unicode support.

I am also interessted in helping with developing. I have not that much time. But I can help fixing bugs (especially for the linux version) and integrating features I'd like to see in codeblocks.

What about this: Support for the "wine mingw32" compiler. So you can build the windows version within linux. Actually codeblocks is powerful enough to handle that but there are a couple of bugs when you fiddle around with compiler options. Besides I like to see the Devpak-Plugin in the linux version for this purpose.

takeshimiya

  • Guest
Re: Fixed annoying FindDlg bugs
« Reply #13 on: December 29, 2005, 12:53:50 am »
Some thoughs: GCC cross-compiling (mingw32, etc), cygwin, and msys support out-of-the-box.

How?

knue

  • Guest
Re: Fixed annoying FindDlg bugs
« Reply #14 on: December 29, 2005, 06:23:42 am »
Hmm the unicode version does not start at all. So I can't test my patch :(

This is my error message:

E: A

@Takeshi Miya: Well, just try
$ wine mingw32.exe test.cpp -o test.exe
this test.exe will start under windows.

takeshimiya

  • Guest
Re: Fixed annoying FindDlg bugs
« Reply #15 on: December 29, 2005, 06:48:05 am »
I know, but I'm talking of supporting cross-compilation without wine.
And about supporting from C::B the following environments: cross-mingw32, cygwin, cross-cygwin, msys.

Offline duncanka

  • Multiple posting newcomer
  • *
  • Posts: 53
Re: Fixed annoying FindDlg bugs
« Reply #16 on: March 12, 2006, 04:09:40 pm »
I've fixed another minor error in the FindDlg code (I think): if you switched to the "Find in Files" tab before typing the text to search for, the dialog did not save the search term in the search history.  I've created a patch, but I can't test it at the moment.  Could someone test whether the patch below (the forum wouldn't let me attach it as a file) works before I submit it to the tracker?

Code: diff
Index: finddlg.cpp
===================================================================
--- finddlg.cpp (revision 2173)
+++ finddlg.cpp (working copy)
@@ -128,7 +128,7 @@
 
  // save last searches (up to 10)
     wxComboBox* combo = XRCCTRL(*this, "cmbFind1", wxComboBox);
- if (!m_Complete)
+ if ( IsFindInFiles() )
         combo = XRCCTRL(*this, "cmbFind2", wxComboBox);
     wxArrayString previous;
     for (int i = 0; (i < combo->GetCount()) && (i < 10); ++i)