Remove Author from About and add Online Document to menu

Remove Author link from About dialog and add Online Document link to menu
This commit is contained in:
Don HO 2019-10-05 17:07:39 +02:00
parent 10f6ff6c1f
commit 5cf296ee10
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
7 changed files with 23 additions and 31 deletions

View File

@ -54,7 +54,6 @@ enum Platform { PF_UNKNOWN, PF_X86, PF_X64, PF_IA64 };
//Here you can find how to use these messages : http://docs.notepad-plus-plus.org/index.php/Messages_And_Notifications
#define NPPMSG (WM_USER + 1000) #define NPPMSG (WM_USER + 1000)
#define NPPM_GETCURRENTSCINTILLA (NPPMSG + 4) #define NPPM_GETCURRENTSCINTILLA (NPPMSG + 4)

View File

@ -970,17 +970,17 @@ BEGIN
BEGIN BEGIN
MENUITEM "Command Line Arguments...", IDM_CMDLINEARGUMENTS MENUITEM "Command Line Arguments...", IDM_CMDLINEARGUMENTS
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Notepad++ Home", IDM_HOMESWEETHOME MENUITEM "Notepad++ Home", IDM_HOMESWEETHOME
MENUITEM "Notepad++ Project Page", IDM_PROJECTPAGE MENUITEM "Notepad++ Project Page", IDM_PROJECTPAGE
MENUITEM "Notepad++ Community (Forum)", IDM_FORUM MENUITEM "Notepad++ Online Document", IDM_ONLINEDOCUMENT
MENUITEM "Live Support", IDM_ONLINESUPPORT MENUITEM "Notepad++ Community (Forum)", IDM_FORUM
//MENUITEM "Get More Plugins", IDM_PLUGINSHOME MENUITEM "Live Support", IDM_ONLINESUPPORT
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Update Notepad++", IDM_UPDATE_NPP MENUITEM "Update Notepad++", IDM_UPDATE_NPP
MENUITEM "Set Updater Proxy...", IDM_CONFUPDATERPROXY MENUITEM "Set Updater Proxy...", IDM_CONFUPDATERPROXY
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "Debug Info...", IDM_DEBUGINFO MENUITEM "Debug Info...", IDM_DEBUGINFO
MENUITEM "About Notepad++", IDM_ABOUT MENUITEM "About Notepad++", IDM_ABOUT
END END
MENUITEM "X", IDM_FILE_CLOSE, HELP MENUITEM "X", IDM_FILE_CLOSE, HELP
@ -1012,10 +1012,10 @@ BEGIN
//CONTROL "", IDI_SAMESEXMARRIAGE,"Static",SS_OWNERDRAW,20,5,64,64 //CONTROL "", IDI_SAMESEXMARRIAGE,"Static",SS_OWNERDRAW,20,5,64,64
LTEXT NOTEPAD_PLUS_VERSION, IDC_STATIC,70,20,140,11 LTEXT NOTEPAD_PLUS_VERSION, IDC_STATIC,70,20,140,11
LTEXT "bit",IDC_VERSION_BIT,150,20,140,11 LTEXT "bit",IDC_VERSION_BIT,150,20,140,11
LTEXT "Author :",IDC_STATIC,21,45,31,8 //LTEXT "Author :",IDC_STATIC,21,45,31,8
LTEXT "Notepad++ team",IDC_AUTHOR_NAME,78,45,70,8 //LTEXT "Notepad++ team",IDC_AUTHOR_NAME,78,45,70,8
LTEXT "Home Page :",IDC_STATIC,21,59,47,8 LTEXT "Home:",IDC_STATIC,21,45,47,8
LTEXT "https://notepad-plus-plus.org/",IDC_HOME_ADDR,78,59,126,8 LTEXT "https://notepad-plus-plus.org/",IDC_HOME_ADDR,50,45,126,8
GROUPBOX "GNU General Public Licence",IDC_STATIC,19,75,231,131,BS_CENTER GROUPBOX "GNU General Public Licence",IDC_STATIC,19,75,231,131,BS_CENTER
DEFPUSHBUTTON "OK",IDOK,106,215,50,14,BS_FLAT DEFPUSHBUTTON "OK",IDOK,106,215,50,14,BS_FLAT
// IDC_LICENCE_EDIT should be the last line, don't know why // IDC_LICENCE_EDIT should be the last line, don't know why

View File

@ -2844,9 +2844,9 @@ void Notepad_plus::command(int id)
break; break;
} }
case IDM_ONLINEHELP: case IDM_ONLINEDOCUMENT:
{ {
::ShellExecute(NULL, TEXT("open"), TEXT("http://docs.notepad-plus-plus.org/"), NULL, NULL, SW_SHOWNORMAL); ::ShellExecute(NULL, TEXT("open"), TEXT("https://npp-user-manual.org/"), NULL, NULL, SW_SHOWNORMAL);
break; break;
} }
@ -2859,7 +2859,7 @@ void Notepad_plus::command(int id)
case IDM_FORUM: case IDM_FORUM:
{ {
::ShellExecute(NULL, TEXT("open"), TEXT("https://notepad-plus-plus.org/community/"), NULL, NULL, SW_SHOWNORMAL); ::ShellExecute(NULL, TEXT("open"), TEXT("https://community.notepad-plus-plus.org/"), NULL, NULL, SW_SHOWNORMAL);
break; break;
} }
@ -2868,13 +2868,7 @@ void Notepad_plus::command(int id)
::ShellExecute(NULL, TEXT("open"), TEXT("https://gitter.im/notepad-plus-plus/notepad-plus-plus"), NULL, NULL, SW_SHOWNORMAL); ::ShellExecute(NULL, TEXT("open"), TEXT("https://gitter.im/notepad-plus-plus/notepad-plus-plus"), NULL, NULL, SW_SHOWNORMAL);
break; break;
} }
/*
case IDM_PLUGINSHOME:
{
::ShellExecute(NULL, TEXT("open"), TEXT("http://docs.notepad-plus-plus.org/index.php/Plugin_Central"), NULL, NULL, SW_SHOWNORMAL);
break;
}
*/
case IDM_UPDATE_NPP : case IDM_UPDATE_NPP :
case IDM_CONFUPDATERPROXY : case IDM_CONFUPDATERPROXY :
{ {
@ -2890,7 +2884,7 @@ void Notepad_plus::command(int id)
if (res == IDYES) if (res == IDYES)
{ {
::ShellExecute(NULL, TEXT("open"), TEXT("https://notepad-plus-plus.org/download/"), NULL, NULL, SW_SHOWNORMAL); ::ShellExecute(NULL, TEXT("open"), TEXT("https://notepad-plus-plus.org/downloads/"), NULL, NULL, SW_SHOWNORMAL);
} }
} }
else else

View File

@ -389,7 +389,7 @@ static const WinMenuKeyDefinition winKeyDefs[] =
{ VK_NULL, IDM_CMDLINEARGUMENTS, false, false, false, nullptr }, { VK_NULL, IDM_CMDLINEARGUMENTS, false, false, false, nullptr },
{ VK_NULL, IDM_HOMESWEETHOME, false, false, false, nullptr }, { VK_NULL, IDM_HOMESWEETHOME, false, false, false, nullptr },
{ VK_NULL, IDM_PROJECTPAGE, false, false, false, nullptr }, { VK_NULL, IDM_PROJECTPAGE, false, false, false, nullptr },
// { VK_NULL, IDM_ONLINEHELP, false, false, false, nullptr }, // { VK_NULL, IDM_ONLINEDOCUMENT, false, false, false, nullptr },
{ VK_NULL, IDM_FORUM, false, false, false, nullptr }, { VK_NULL, IDM_FORUM, false, false, false, nullptr },
{ VK_NULL, IDM_ONLINESUPPORT, false, false, false, nullptr }, { VK_NULL, IDM_ONLINESUPPORT, false, false, false, nullptr },
// { VK_NULL, IDM_PLUGINSHOME, false, false, false, nullptr }, // { VK_NULL, IDM_PLUGINSHOME, false, false, false, nullptr },

View File

@ -60,9 +60,8 @@ INT_PTR CALLBACK AboutDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lPara
HWND licenceEditHandle = ::GetDlgItem(_hSelf, IDC_LICENCE_EDIT); HWND licenceEditHandle = ::GetDlgItem(_hSelf, IDC_LICENCE_EDIT);
::SendMessage(licenceEditHandle, WM_SETTEXT, 0, reinterpret_cast<LPARAM>(LICENCE_TXT)); ::SendMessage(licenceEditHandle, WM_SETTEXT, 0, reinterpret_cast<LPARAM>(LICENCE_TXT));
_emailLink.init(_hInst, _hSelf); //_emailLink.init(_hInst, _hSelf);
//_emailLink.create(::GetDlgItem(_hSelf, IDC_AUTHOR_NAME), TEXT("mailto:don.h@free.fr")); //_emailLink.create(::GetDlgItem(_hSelf, IDC_AUTHOR_NAME), TEXT("mailto:don.h@free.fr"));
_emailLink.create(::GetDlgItem(_hSelf, IDC_AUTHOR_NAME), TEXT("https://notepad-plus-plus.org/contributors"));
_pageLink.init(_hInst, _hSelf); _pageLink.init(_hInst, _hSelf);
_pageLink.create(::GetDlgItem(_hSelf, IDC_HOME_ADDR), TEXT("https://notepad-plus-plus.org/")); _pageLink.create(::GetDlgItem(_hSelf, IDC_HOME_ADDR), TEXT("https://notepad-plus-plus.org/"));

View File

@ -56,7 +56,7 @@ public :
void doDialog(); void doDialog();
virtual void destroy() { virtual void destroy() {
_emailLink.destroy(); //_emailLink.destroy();
_pageLink.destroy(); _pageLink.destroy();
}; };
@ -64,7 +64,7 @@ protected :
virtual INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam); virtual INT_PTR CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam);
private : private :
URLCtrl _emailLink; //URLCtrl _emailLink;
URLCtrl _pageLink; URLCtrl _pageLink;
}; };

View File

@ -530,7 +530,7 @@
#define IDM_ABOUT (IDM + 7000) #define IDM_ABOUT (IDM + 7000)
#define IDM_HOMESWEETHOME (IDM_ABOUT + 1) #define IDM_HOMESWEETHOME (IDM_ABOUT + 1)
#define IDM_PROJECTPAGE (IDM_ABOUT + 2) #define IDM_PROJECTPAGE (IDM_ABOUT + 2)
#define IDM_ONLINEHELP (IDM_ABOUT + 3) #define IDM_ONLINEDOCUMENT (IDM_ABOUT + 3)
#define IDM_FORUM (IDM_ABOUT + 4) #define IDM_FORUM (IDM_ABOUT + 4)
//#define IDM_PLUGINSHOME (IDM_ABOUT + 5) //#define IDM_PLUGINSHOME (IDM_ABOUT + 5)
#define IDM_UPDATE_NPP (IDM_ABOUT + 6) #define IDM_UPDATE_NPP (IDM_ABOUT + 6)