[GME-commit] GMESRC/GME/Gme MainFrm.cpp,1.35,1.36
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Fri Dec 8 19:49:36 CST 2006
Update of /project/gme-repository/GMESRC/GME/Gme
In directory escher:/tmp/cvs-serv32196
Modified Files:
MainFrm.cpp
Log Message:
Behaviour modified to be similar that of MS Visual Studio>
when Search windows losts focus, and the user presses ^F again,
the Search window will get back the focus. This enables for 'Find Next'
or 'Find Again' like usage.
CVS User: Zoltan Molnar, ISIS (zolmol)
Index: MainFrm.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/Gme/MainFrm.cpp,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** MainFrm.cpp 4 Dec 2006 18:51:28 -0000 1.35
--- MainFrm.cpp 8 Dec 2006 19:49:34 -0000 1.36
***************
*** 632,636 ****
void CMainFrame::OnEditSearch()
{
! m_search.ShowWindow(SW_SHOWNORMAL);
}
--- 632,639 ----
void CMainFrame::OnEditSearch()
{
! m_search.ShowWindow(SW_SHOWNORMAL);
! m_search.SetFocus(); // allows for easy 'Find Next' feature
! // the user might press ^F whenever she'd like to jump
! // to a focused searchbox
}
***************
*** 640,644 ****
(CGMEDoc::theInstance != 0) &&
m_search &&
! (!m_search.IsWindowVisible())
);
}
--- 643,650 ----
(CGMEDoc::theInstance != 0) &&
m_search &&
! 1 //(!m_search.IsWindowVisible())
! // from now on will allow multiple ^F-s, and as a result it
! // will set focus back to search window (like in VStudio).
! // allows for easy 'Find Next'-like functionality
);
}
More information about the GME-commit
mailing list