mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-28 00:04:25 +02:00
[NEW] Add "Command line arguments help" menu item command.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1195 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
282d0ea9a9
commit
8f1e1bd940
@ -831,6 +831,7 @@ BEGIN
|
|||||||
POPUP "&?"
|
POPUP "&?"
|
||||||
BEGIN
|
BEGIN
|
||||||
MENUITEM "Help Contents", IDM_HELP
|
MENUITEM "Help Contents", IDM_HELP
|
||||||
|
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
|
||||||
|
@ -31,6 +31,33 @@
|
|||||||
|
|
||||||
#include "Notepad_plus.h"
|
#include "Notepad_plus.h"
|
||||||
|
|
||||||
|
const TCHAR COMMAND_ARG_HELP[] = TEXT("Usage :\r\
|
||||||
|
\r\
|
||||||
|
notepad++ [--help] [-multiInst] [-noPlugin] [-lLanguage] [-LlangCode] [-nLineNumber] [-cColumnNumber] [-xPos] [-yPos] [-nosession] [-notabbar] [-ro] [-systemtray] [-loadingTime] [-alwaysOnTop] [-openSession] [-r] [fullFilePathName]\r\
|
||||||
|
\r\
|
||||||
|
--help : This help message\r\
|
||||||
|
-multiInst : Launch another Notepad++ instance\r\
|
||||||
|
-noPlugin : Launch Notepad++ without loading any plugin\r\
|
||||||
|
-l : Launch Notepad++ by applying indicated programming language\r\
|
||||||
|
to the file to open\r\
|
||||||
|
-L : Launch Notepad++ by applying indicated localization\r\
|
||||||
|
langCode is browser language code\r\
|
||||||
|
-n : Launch Notepad++ by scrolling indicated line on the file to open\r\
|
||||||
|
-c : Launch Notepad++ on scrolling indicated column on the file to open\r\
|
||||||
|
-x : Launch Notepad++ by indicating its left side position on the screen\r\
|
||||||
|
-y : Launch Notepad++ by indicating its top position on the screen\r\
|
||||||
|
-nosession : Launch Notepad++ without any session\r\
|
||||||
|
-notabbar : Launch Notepad++ without tabbar\r\
|
||||||
|
-ro : Launch Notepad++ and make the file to open read only\r\
|
||||||
|
-systemtray : Launch Notepad++ directly in system tray\r\
|
||||||
|
-loadingTime : Display Notepad++ loading time\r\
|
||||||
|
-alwaysOnTop : Make Notepad++ always on top\r\
|
||||||
|
-openSession : Open a specific session. fullFilePathName must be a session file\r\
|
||||||
|
-r : Open files recursively. This argument will be ignored\r\
|
||||||
|
if fullFilePathName contain no wildcard character\r\
|
||||||
|
fullFilePathName : file or folder name to open (absolute or relative path name)\r\
|
||||||
|
");
|
||||||
|
|
||||||
class Notepad_plus_Window : public Window {
|
class Notepad_plus_Window : public Window {
|
||||||
public:
|
public:
|
||||||
Notepad_plus_Window() {};
|
Notepad_plus_Window() {};
|
||||||
|
@ -2195,7 +2195,13 @@ void Notepad_plus::command(int id)
|
|||||||
::ShellExecute(NULL, TEXT("open"), TEXT("http://npp-community.tuxfamily.org/"), NULL, NULL, SW_SHOWNORMAL);
|
::ShellExecute(NULL, TEXT("open"), TEXT("http://npp-community.tuxfamily.org/"), NULL, NULL, SW_SHOWNORMAL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case IDM_CMDLINEARGUMENTS:
|
||||||
|
{
|
||||||
|
::MessageBox(NULL, COMMAND_ARG_HELP, TEXT("Notepad++ Command Argument Help"), MB_OK);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case IDM_FORUM:
|
case IDM_FORUM:
|
||||||
{
|
{
|
||||||
::ShellExecute(NULL, TEXT("open"), TEXT("http://sourceforge.net/forum/?group_id=95717"), NULL, NULL, SW_SHOWNORMAL);
|
::ShellExecute(NULL, TEXT("open"), TEXT("http://sourceforge.net/forum/?group_id=95717"), NULL, NULL, SW_SHOWNORMAL);
|
||||||
|
@ -474,6 +474,7 @@
|
|||||||
#define IDM_WIKIFAQ (IDM_ABOUT + 7)
|
#define IDM_WIKIFAQ (IDM_ABOUT + 7)
|
||||||
#define IDM_HELP (IDM_ABOUT + 8)
|
#define IDM_HELP (IDM_ABOUT + 8)
|
||||||
#define IDM_CONFUPDATERPROXY (IDM_ABOUT + 9)
|
#define IDM_CONFUPDATERPROXY (IDM_ABOUT + 9)
|
||||||
|
#define IDM_CMDLINEARGUMENTS (IDM_ABOUT + 10)
|
||||||
|
|
||||||
|
|
||||||
#define IDM_SETTING (IDM + 8000)
|
#define IDM_SETTING (IDM + 8000)
|
||||||
|
@ -190,33 +190,6 @@ const TCHAR FLAG_ALWAYS_ON_TOP[] = TEXT("-alwaysOnTop");
|
|||||||
const TCHAR FLAG_OPENSESSIONFILE[] = TEXT("-openSession");
|
const TCHAR FLAG_OPENSESSIONFILE[] = TEXT("-openSession");
|
||||||
const TCHAR FLAG_RECURSIVE[] = TEXT("-r");
|
const TCHAR FLAG_RECURSIVE[] = TEXT("-r");
|
||||||
|
|
||||||
const TCHAR COMMAND_ARG_HELP[] = TEXT("Usage :\r\
|
|
||||||
\r\
|
|
||||||
notepad++ [--help] [-multiInst] [-noPlugin] [-lLanguage] [-LlangCode] [-nLineNumber] [-cColumnNumber] [-xPos] [-yPos] [-nosession] [-notabbar] [-ro] [-systemtray] [-loadingTime] [-alwaysOnTop] [-openSession] [-r] [fullFilePathName]\r\
|
|
||||||
\r\
|
|
||||||
--help : This help message\r\
|
|
||||||
-multiInst : Launch another Notepad++ instance\r\
|
|
||||||
-noPlugin : Launch Notepad++ without loading any plugin\r\
|
|
||||||
-l : Launch Notepad++ by applying indicated programming language\r\
|
|
||||||
to the file to open\r\
|
|
||||||
-L : Launch Notepad++ by applying indicated localization\r\
|
|
||||||
langCode is browser language code\r\
|
|
||||||
-n : Launch Notepad++ by scrolling indicated line on the file to open\r\
|
|
||||||
-c : Launch Notepad++ on scrolling indicated column on the file to open\r\
|
|
||||||
-x : Launch Notepad++ by indicating its left side position on the screen\r\
|
|
||||||
-y : Launch Notepad++ by indicating its top position on the screen\r\
|
|
||||||
-nosession : Launch Notepad++ without any session\r\
|
|
||||||
-notabbar : Launch Notepad++ without tabbar\r\
|
|
||||||
-ro : Launch Notepad++ and make the file to open read only\r\
|
|
||||||
-systemtray : Launch Notepad++ directly in system tray\r\
|
|
||||||
-loadingTime : Display Notepad++ loading time\r\
|
|
||||||
-alwaysOnTop : Make Notepad++ always on top\r\
|
|
||||||
-openSession : Open a specific session. fullFilePathName must be a session file\r\
|
|
||||||
-r : Open files recursively. This argument will be ignored\r\
|
|
||||||
if fullFilePathName contain no wildcard character\r\
|
|
||||||
fullFilePathName : file or folder name to open (absolute or relative path name)\r\
|
|
||||||
");
|
|
||||||
|
|
||||||
void doException(Notepad_plus_Window & notepad_plus_plus);
|
void doException(Notepad_plus_Window & notepad_plus_plus);
|
||||||
|
|
||||||
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int)
|
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user