[MODIF] hide 5 inconsist plugins messages.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@399 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
1e27703297
commit
2e1806bd34
|
@ -191,24 +191,6 @@ enum winVer{WV_UNKNOWN, WV_WIN32S, WV_95, WV_98, WV_ME, WV_NT, WV_W2K, WV_XP, WV
|
||||||
// BOOL NPPM_ISTABBARHIDDEN(0, 0)
|
// BOOL NPPM_ISTABBARHIDDEN(0, 0)
|
||||||
// returned value : TRUE if tab bar is hidden, otherwise FALSE
|
// returned value : TRUE if tab bar is hidden, otherwise FALSE
|
||||||
|
|
||||||
#define NPPM_CHECKDOCSTATUS (NPPMSG + 53)
|
|
||||||
// VOID NPPM_CHECKDOCSTATUS(BOOL, 0)
|
|
||||||
// check all opened documents status.
|
|
||||||
// If files are modified, then reloaod (with or without prompt, it depends on settings).
|
|
||||||
// if files are deleted, then prompt user to close the documents
|
|
||||||
|
|
||||||
#define NPPM_ENABLECHECKDOCOPT (NPPMSG + 54)
|
|
||||||
// VOID NPPM_ENABLECHECKDOCOPT(OPT, 0)
|
|
||||||
// where OPT is :
|
|
||||||
#define CHECKDOCOPT_NONE 0
|
|
||||||
#define CHECKDOCOPT_UPDATESILENTLY 1
|
|
||||||
#define CHECKDOCOPT_UPDATEGO2END 2
|
|
||||||
|
|
||||||
#define NPPM_GETCHECKDOCOPT (NPPMSG + 55)
|
|
||||||
// INT NPPM_GETCHECKDOCOPT(0, 0)
|
|
||||||
#define NPPM_SETCHECKDOCOPT (NPPMSG + 56)
|
|
||||||
// INT NPPM_SETCHECKDOCOPT(OPT, 0)
|
|
||||||
|
|
||||||
#define NPPM_GETPOSFROMBUFFERID (NPPMSG + 57)
|
#define NPPM_GETPOSFROMBUFFERID (NPPMSG + 57)
|
||||||
// INT NPPM_GETPOSFROMBUFFERID(INT bufferID, 0)
|
// INT NPPM_GETPOSFROMBUFFERID(INT bufferID, 0)
|
||||||
// Return VIEW|INDEX from a buffer ID. -1 if the bufferID non existing
|
// Return VIEW|INDEX from a buffer ID. -1 if the bufferID non existing
|
||||||
|
@ -219,7 +201,7 @@ enum winVer{WV_UNKNOWN, WV_WIN32S, WV_95, WV_98, WV_ME, WV_NT, WV_W2K, WV_XP, WV
|
||||||
// SUB_VIEW 1
|
// SUB_VIEW 1
|
||||||
|
|
||||||
#define NPPM_GETFULLPATHFROMBUFFERID (NPPMSG + 58)
|
#define NPPM_GETFULLPATHFROMBUFFERID (NPPMSG + 58)
|
||||||
// INT NPPM_GETFULLPATHFROMBUFFERID(INT bufferID, CHAR *fullFilePath)
|
// INT NPPM_GETFULLPATHFROMBUFFERID(INT bufferID, TCHAR *fullFilePath)
|
||||||
// Get full path file name from a bufferID.
|
// Get full path file name from a bufferID.
|
||||||
// Return -1 if the bufferID non existing, otherwise the number of TCHAR copied/to copy
|
// Return -1 if the bufferID non existing, otherwise the number of TCHAR copied/to copy
|
||||||
// User should call it with fullFilePath be NULL to get the number of TCHAR (not including the nul character),
|
// User should call it with fullFilePath be NULL to get the number of TCHAR (not including the nul character),
|
||||||
|
@ -238,10 +220,6 @@ enum winVer{WV_UNKNOWN, WV_WIN32S, WV_95, WV_98, WV_ME, WV_NT, WV_W2K, WV_XP, WV
|
||||||
//wParam: Buffer to reload
|
//wParam: Buffer to reload
|
||||||
//lParam: 0 if no alert, else alert
|
//lParam: 0 if no alert, else alert
|
||||||
|
|
||||||
#define NPPM_SETFILENAME (NPPMSG + 63)
|
|
||||||
//wParam: BufferID to rename
|
|
||||||
//lParam: name to set (TCHAR*)
|
|
||||||
//Buffer must have been previously unnamed (eg "new 1" document types)
|
|
||||||
|
|
||||||
#define NPPM_GETBUFFERLANGTYPE (NPPMSG + 64)
|
#define NPPM_GETBUFFERLANGTYPE (NPPMSG + 64)
|
||||||
//wParam: BufferID to get LangType from
|
//wParam: BufferID to get LangType from
|
||||||
|
|
|
@ -7069,7 +7069,7 @@ LRESULT Notepad_plus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NPPM_SETFILENAME:
|
case NPPM_INTERNAL_SETFILENAME:
|
||||||
{
|
{
|
||||||
if (!lParam && !wParam)
|
if (!lParam && !wParam)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -8025,7 +8025,7 @@ LRESULT Notepad_plus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
|
||||||
return notify(reinterpret_cast<SCNotification *>(lParam));
|
return notify(reinterpret_cast<SCNotification *>(lParam));
|
||||||
}
|
}
|
||||||
|
|
||||||
case NPPM_CHECKDOCSTATUS :
|
case NPPM_INTERNAL_CHECKDOCSTATUS :
|
||||||
case WM_ACTIVATEAPP :
|
case WM_ACTIVATEAPP :
|
||||||
{
|
{
|
||||||
if (wParam == TRUE) // if npp is about to be activated
|
if (wParam == TRUE) // if npp is about to be activated
|
||||||
|
@ -8041,12 +8041,12 @@ LRESULT Notepad_plus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case NPPM_GETCHECKDOCOPT :
|
case NPPM_INTERNAL_GETCHECKDOCOPT :
|
||||||
{
|
{
|
||||||
return (LRESULT)((NppGUI &)(pNppParam->getNppGUI()))._fileAutoDetection;
|
return (LRESULT)((NppGUI &)(pNppParam->getNppGUI()))._fileAutoDetection;
|
||||||
}
|
}
|
||||||
|
|
||||||
case NPPM_SETCHECKDOCOPT :
|
case NPPM_INTERNAL_SETCHECKDOCOPT :
|
||||||
{
|
{
|
||||||
// If nothing is changed by user, then we allow to set this value
|
// If nothing is changed by user, then we allow to set this value
|
||||||
if (((NppGUI &)(pNppParam->getNppGUI()))._fileAutoDetection == ((NppGUI &)(pNppParam->getNppGUI()))._fileAutoDetectionOriginalValue)
|
if (((NppGUI &)(pNppParam->getNppGUI()))._fileAutoDetection == ((NppGUI &)(pNppParam->getNppGUI()))._fileAutoDetectionOriginalValue)
|
||||||
|
@ -8078,7 +8078,7 @@ LRESULT Notepad_plus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPa
|
||||||
return MainFileManager->getFileNameFromBuffer((BufferID)wParam, (TCHAR *)lParam);
|
return MainFileManager->getFileNameFromBuffer((BufferID)wParam, (TCHAR *)lParam);
|
||||||
}
|
}
|
||||||
|
|
||||||
case NPPM_ENABLECHECKDOCOPT:
|
case NPPM_INTERNAL_ENABLECHECKDOCOPT:
|
||||||
{
|
{
|
||||||
NppGUI & nppgui = (NppGUI &)(pNppParam->getNppGUI());
|
NppGUI & nppgui = (NppGUI &)(pNppParam->getNppGUI());
|
||||||
if (wParam == CHECKDOCOPT_NONE)
|
if (wParam == CHECKDOCOPT_NONE)
|
||||||
|
|
|
@ -304,6 +304,36 @@
|
||||||
#define NPPM_INTERNAL_PLUGINSHORTCUTMOTIFIED (NOTEPADPLUS_USER_INTERNAL + 26)
|
#define NPPM_INTERNAL_PLUGINSHORTCUTMOTIFIED (NOTEPADPLUS_USER_INTERNAL + 26)
|
||||||
// See Notepad_plus_msgs.h
|
// See Notepad_plus_msgs.h
|
||||||
//#define NOTEPADPLUS_USER (WM_USER + 1000)
|
//#define NOTEPADPLUS_USER (WM_USER + 1000)
|
||||||
|
|
||||||
|
//
|
||||||
|
// Used by Doc Monitor plugin
|
||||||
|
//
|
||||||
|
#define NPPM_INTERNAL_CHECKDOCSTATUS (NPPMSG + 53)
|
||||||
|
// VOID NPPM_CHECKDOCSTATUS(BOOL, 0)
|
||||||
|
// check all opened documents status.
|
||||||
|
// If files are modified, then reloaod (with or without prompt, it depends on settings).
|
||||||
|
// if files are deleted, then prompt user to close the documents
|
||||||
|
|
||||||
|
#define NPPM_INTERNAL_ENABLECHECKDOCOPT (NPPMSG + 54)
|
||||||
|
// VOID NPPM_ENABLECHECKDOCOPT(OPT, 0)
|
||||||
|
// where OPT is :
|
||||||
|
#define CHECKDOCOPT_NONE 0
|
||||||
|
#define CHECKDOCOPT_UPDATESILENTLY 1
|
||||||
|
#define CHECKDOCOPT_UPDATEGO2END 2
|
||||||
|
|
||||||
|
#define NPPM_INTERNAL_GETCHECKDOCOPT (NPPMSG + 55)
|
||||||
|
// INT NPPM_GETCHECKDOCOPT(0, 0)
|
||||||
|
#define NPPM_INTERNAL_SETCHECKDOCOPT (NPPMSG + 56)
|
||||||
|
// INT NPPM_SETCHECKDOCOPT(OPT, 0)
|
||||||
|
|
||||||
|
//
|
||||||
|
// Used by netnote plugin
|
||||||
|
//
|
||||||
|
#define NPPM_INTERNAL_SETFILENAME (NPPMSG + 63)
|
||||||
|
//wParam: BufferID to rename
|
||||||
|
//lParam: name to set (TCHAR*)
|
||||||
|
//Buffer must have been previously unnamed (eg "new 1" document types)
|
||||||
|
|
||||||
#define SCINTILLA_USER (WM_USER + 2000)
|
#define SCINTILLA_USER (WM_USER + 2000)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue