From 98e9f1f9714ec03630560f1f99243c321d6793bd Mon Sep 17 00:00:00 2001 From: donho Date: Wed, 8 Aug 2007 23:05:14 +0000 Subject: [PATCH] [NEW_FEATURE] Add a menu entry to access to notepad++ plugins project page. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@4 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/bin/change.log | 1 + PowerEditor/src/Notepad_plus.cpp | 8 +++++++- PowerEditor/src/Notepad_plus.rc | 1 + PowerEditor/src/resource.h | 1 + 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/PowerEditor/bin/change.log b/PowerEditor/bin/change.log index bf6af4e2f..4cb5709f0 100644 --- a/PowerEditor/bin/change.log +++ b/PowerEditor/bin/change.log @@ -7,6 +7,7 @@ v4.2 fixed bugs and added features (from v4.1.2) : 5. Add new feature which backups files in a user specific directory. 6. Fix TeX syntax highlighting corruption problem while switching off then switching back to current document. 7. Fix User Define Language extension recognition problem for sensitive case (now it's insensitive). +8. Add a menu entry to access to notepad++ plugins project page. Plugins included in v4.2 : diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 0841965b2..b2840f52d 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -3235,6 +3235,12 @@ void Notepad_plus::command(int id) break; } + case IDM_PLUGINSHOME: + { + ::ShellExecute(NULL, "open", "https://sourceforge.net/projects/npp-plugins/", NULL, NULL, SW_SHOWNORMAL); + break; + } + case IDC_AUTOCOMPLETE : showAutoComp(); break; @@ -5765,7 +5771,7 @@ LRESULT Notepad_plus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa if (lParam) { const char *filtre = (const char *)lParam; - _findReplaceDlg.setFindInFilesDirFilter(dir, filtre); + _findReplaceDlg.setFindInFilesDirFilter(dir, filtre); } else { diff --git a/PowerEditor/src/Notepad_plus.rc b/PowerEditor/src/Notepad_plus.rc index acbdec76b..eda6bb5ef 100644 --- a/PowerEditor/src/Notepad_plus.rc +++ b/PowerEditor/src/Notepad_plus.rc @@ -473,6 +473,7 @@ BEGIN MENUITEM "Notepad++ Project Page", IDM_PROJECTPAGE MENUITEM "Online help", IDM_ONLINEHELP MENUITEM "Forum", IDM_FORUM + MENUITEM "Get more plugins", IDM_PLUGINSHOME MENUITEM "About Notepad++\tF1", IDM_ABOUT END diff --git a/PowerEditor/src/resource.h b/PowerEditor/src/resource.h index fff3448e9..3667c7876 100644 --- a/PowerEditor/src/resource.h +++ b/PowerEditor/src/resource.h @@ -377,6 +377,7 @@ #define IDM_PROJECTPAGE (IDM_ABOUT + 2) #define IDM_ONLINEHELP (IDM_ABOUT + 3) #define IDM_FORUM (IDM_ABOUT + 4) + #define IDM_PLUGINSHOME (IDM_ABOUT + 5) #define IDC_MINIMIZED_TRAY (IDM + 7001)