Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Ceniza on July 23, 2005, 09:17:11 am

Title: Suggestions before next release
Post by: Ceniza on July 23, 2005, 09:17:11 am
I would like to see two things related to Search -> Find done before the next release:

1. Find enabled for Single File: it's a bit frustrating to open a single file and be unable to search for something.
2. When the Find dialog is opened, give focus to the ComboBox (the focus is in the tab by default). Same for Find in files.

It would also be good to have the Message pane really auto-hiding when you start typing (of course, if it's checked).

Another nice feature would be having the most recently opened projects listed in the "Start here" page so you can quickly open them. This feature could be implemented after the next release though.
Title: Re: Suggestions before next release
Post by: Ceniza on July 25, 2005, 07:22:39 am
Well, instead of just asking for it I'll give you the code:

src/main.cpp line 1861 from:
Code
mbar->Enable(idSearchFind, prj);
to:
Code
mbar->Enable(idSearchFind, prj || ed);

sdk/finddlg.cpp line 83 from:
Code
if (!m_Complete)
  XRCCTRL(*this, "nbFind", wxNotebook)->DeletePage(0); // no active editor, so only find-in-files
to:
Code
m_FindInFilesTab = true;
if (!m_Complete)
{
  XRCCTRL(*this, "nbFind", wxNotebook)->DeletePage(0); // no active editor, so only find-in-files
  XRCCTRL(*this, "cmbFind2", wxComboBox)->SetFocus(); // give focus to the ComboBox
}
else
{
  if (!Manager::Get()->GetProjectManager())
  {
    XRCCTRL(*this, "nbFind", wxNotebook)->DeletePage(1); // no project, so only find
    m_FindInFilesTab = false;
  }
 
  XRCCTRL(*this, "cmbFind1", wxComboBox)->SetFocus(); // give focus to the ComboBox
}

sdk/finddlg.cpp FindDlg::~FindDlg() last lines (sorry, I lost track of the line) from:
Code
// find in files options
to:
Code
if (!m_FindInFilesTab)
{
  return;
}

// find in files options

sdk/finddlg.cpp void FindDlg::OnFindChange last lines (lost track too) from:
Code
else if (cmbFind1)
to:
Code
else if (cmbFind1 && cmbFind2)

sdk/finddlg.cpp somewhere in the first lines add:
Code
#include "manager.h"
#include "projectmanager.h"

sdk/finddlg.h line 25 from:
Code
bool m_Complete;
to:
Code
bool m_Complete;
bool m_FindInFilesTab;

Sorry for all this mess but for what I saw the Find Dialog wasn't ready for single file. It should be changed because the old m_Complete wouldn't make sense now (since !m_Complete can mean either Find or Find In Files tab only), reason I added m_FindInFilesTab.

Well, I think that's all, but maybe I forgot to put some more changes here to get it working. It required more editing than I thought.

Oh, and I hope the "Start here" page change be considered too.

Note: this post was heavily edited.
Title: Re: Suggestions before next release
Post by: mandrav on July 25, 2005, 08:56:47 am
Unfortunately, it can't make it for the RC1. It should be out yesterday but some personal problems kept me from releasing it, which I will do today. It wouldn't be wise to add these last-minute without enough testing (other than yours)...

It will be added in CVS after RC1 is released.

Thanks,
Yiannis.
Title: Re: Suggestions before next release
Post by: rickg22 on July 25, 2005, 02:35:30 pm
I have also some changes pending for 1.0. Like adding a filename filter or target limiting to find in files.

I think we'll incorporate these in RC2.
Title: Re: Suggestions before next release
Post by: darklordsatan on July 25, 2005, 03:21:23 pm
I think we'll incorporate these in RC2.

? I thought there would only be one RC before 1.0 stable, how many RCs do you think then?
Title: Re: Suggestions before next release
Post by: rickg22 on July 25, 2005, 04:07:48 pm
I think we'll incorporate these in RC2.

? I thought there would only be one RC before 1.0 stable, how many RCs do you think then?

They're called Release Candidates. Obviously when bugs are found in a release candidate, these are fixed and a new candidate is released, until no more bugs are found. Then the last release candidate will be renamed to version 1.0 final and released.

Obviously the quality control is much higher than in beta releases. I think that at most there will be 3 Release Candidates. Let's hope it's only two.