Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: knue on December 15, 2005, 01:25:50 pm

Title: Fixed annoying FindDlg bugs
Post by: knue 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]
Title: Re: Fixed annoying FindDlg bugs
Post by: mandrav on December 15, 2005, 02:35:17 pm
Please use the patch tracker. Posting patches here, is certain to be overlooked/lost.
Title: Re: Fixed annoying FindDlg bugs
Post by: 280Z28 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.
Title: Re: Fixed annoying FindDlg bugs
Post by: knue on December 17, 2005, 10:47:54 am
Perhaps somebody can tell whether this patch was useful.
Title: Re: Fixed annoying FindDlg bugs
Post by: tiwag 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
Title: Re: Fixed annoying FindDlg bugs
Post by: knue on December 28, 2005, 12:56:41 am
Why does nobody apply my patch?
The finddlg in the svn repository is still buggy.
Title: Re: Fixed annoying FindDlg bugs
Post by: rickg22 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 :)
Title: Re: Fixed annoying FindDlg bugs
Post by: takeshimiya on December 28, 2005, 03:02:33 am
Yeah, we need an official patch reviewer ASAP :)
Title: Re: Fixed annoying FindDlg bugs
Post by: rickg22 on December 28, 2005, 04:41:53 am
Is me22 still around? He's fixed LOTS of unicode errors in patches before.
Title: Re: Fixed annoying FindDlg bugs
Post by: tiwag 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  :?
Title: Re: Fixed annoying FindDlg bugs
Post by: 280Z28 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. :)
Title: Re: Fixed annoying FindDlg bugs
Post by: killerbot 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
Title: Re: Fixed annoying FindDlg bugs
Post by: knue 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.
Title: Re: Fixed annoying FindDlg bugs
Post by: takeshimiya on December 29, 2005, 12:53:50 am
Some thoughs: GCC cross-compiling (mingw32, etc), cygwin, and msys support out-of-the-box.

How?
Title: Re: Fixed annoying FindDlg bugs
Post by: knue 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.
Title: Re: Fixed annoying FindDlg bugs
Post by: takeshimiya 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.
Title: Re: Fixed annoying FindDlg bugs
Post by: duncanka 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)