From 9c0023c5754034cb0080e0b0befb577c55b3a1e0 Mon Sep 17 00:00:00 2001 From: donho Date: Fri, 30 May 2008 15:44:59 +0000 Subject: [PATCH] [NEW_FEATURE] Add "Select all" and "copy" context menu items in Find in files results window. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@212 f5eea248-9336-0410-98b8-ebc06183d4e3 --- .../src/ScitillaComponent/FindReplaceDlg.cpp | 16 ++++++++++++++++ PowerEditor/src/resource.h | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index 9714dc8e9..156f71717 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -1437,6 +1437,19 @@ BOOL CALLBACK Finder::run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam) _scintView.foldAll(fold_uncollapse); return TRUE; } + + case NPPM_INTERNAL_SCINTILLAFINFERCOPY : + { + _scintView.execute(SCI_COPY); + return TRUE; + } + + case NPPM_INTERNAL_SCINTILLAFINFERSELECTALL : + { + _scintView.execute(SCI_SELECTALL); + return TRUE; + } + default : { break; @@ -1454,6 +1467,9 @@ BOOL CALLBACK Finder::run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam) vector tmp; tmp.push_back(MenuItemUnit(NPPM_INTERNAL_SCINTILLAFINFERCOLLAPSE, "Collapse all")); tmp.push_back(MenuItemUnit(NPPM_INTERNAL_SCINTILLAFINFERUNCOLLAPSE, "Uncollapse all")); + tmp.push_back(MenuItemUnit(0, "Separator")); + tmp.push_back(MenuItemUnit(NPPM_INTERNAL_SCINTILLAFINFERCOPY, "Copy")); + tmp.push_back(MenuItemUnit(NPPM_INTERNAL_SCINTILLAFINFERSELECTALL, "Select All")); scintillaContextmenu.create(_hSelf, tmp); diff --git a/PowerEditor/src/resource.h b/PowerEditor/src/resource.h index 562e9e3fb..09756dc7f 100644 --- a/PowerEditor/src/resource.h +++ b/PowerEditor/src/resource.h @@ -285,7 +285,8 @@ #define NPPM_INTERNAL_ISFOCUSEDTAB (NOTEPADPLUS_USER_INTERNAL + 13) #define NPPM_INTERNAL_GETMENU (NOTEPADPLUS_USER_INTERNAL + 14) #define NPPM_INTERNAL_CLEARINDICATOR (NOTEPADPLUS_USER_INTERNAL + 15) - + #define NPPM_INTERNAL_SCINTILLAFINFERCOPY (NOTEPADPLUS_USER_INTERNAL + 16) + #define NPPM_INTERNAL_SCINTILLAFINFERSELECTALL (NOTEPADPLUS_USER_INTERNAL + 17) // See Notepad_plus_msgs.h //#define NOTEPADPLUS_USER (WM_USER + 1000) #define SCINTILLA_USER (WM_USER + 2000)