Well, instead of just asking for it I'll give you the code:
src/main.cpp line 1861 from:
mbar->Enable(idSearchFind, prj);
to:
mbar->Enable(idSearchFind, prj || ed);
sdk/finddlg.cpp line 83 from:
if (!m_Complete)
XRCCTRL(*this, "nbFind", wxNotebook)->DeletePage(0); // no active editor, so only find-in-files
to:
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:
to:
if (!m_FindInFilesTab)
{
return;
}
// find in files options
sdk/finddlg.cpp void FindDlg::OnFindChange last lines (lost track too) from:
to:
else if (cmbFind1 && cmbFind2)
sdk/finddlg.cpp somewhere in the first lines add:
#include "manager.h"
#include "projectmanager.h"
sdk/finddlg.h line 25 from:
to:
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.