@ -67,6 +67,20 @@ void Notepad_plus::command(int id)
}
break ;
case IDM_FILE_OPEN_FOLDER :
{
Command cmd ( TEXT ( " explorer /select,$(FULL_CURRENT_PATH) " )) ;
cmd . run ( _pPublicInterface - > getHSelf ( ) ) ;
}
break ;
case IDM_FILE_OPEN_CMD :
{
Command cmd ( TEXT ( " cmd /K cd /d $(CURRENT_DIRECTORY) " )) ;
cmd . run ( _pPublicInterface - > getHSelf ( ) ) ;
}
break ;
case IDM_FILE_RELOAD :
fileReload ( ) ;
break ;
@ -1936,82 +1950,6 @@ void Notepad_plus::command(int id)
}
break ;
}
/*
case ( IDM_FORMAT_WIN_1250 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_WIN_1251 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_WIN_1252 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_WIN_1253 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_WIN_1254 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_WIN_1255 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_WIN_1256 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_WIN_1257 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_WIN_1258 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_ISO_8859_1 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_ISO_8859_2 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_ISO_8859_3 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_ISO_8859_4 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_ISO_8859_5 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_ISO_8859_6 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_ISO_8859_7 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_ISO_8859_8 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_ISO_8859_9 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_ISO_8859_10 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_ISO_8859_11 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_ISO_8859_13 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_ISO_8859_14 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_ISO_8859_15 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_ISO_8859_16 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_DOS_437 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_DOS_720 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_DOS_737 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_DOS_775 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_DOS_850 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_DOS_852 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_DOS_855 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_DOS_857 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_DOS_858 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_DOS_860 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_DOS_861 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_DOS_862 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_DOS_863 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_DOS_865 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_DOS_866 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_DOS_869 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_BIG5 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_GB2312 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_SHIFT_JIS + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_KOREAN_WIN + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_EUC_KR + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_TIS_620 + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_MAC_CYRILLIC + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_KOI8U_CYRILLIC + IDM_FORMAT_CONVERT ) :
case ( IDM_FORMAT_KOI8R_CYRILLIC + IDM_FORMAT_CONVERT ) :
{
int index = id - IDM_FORMAT_CONVERT - IDM_FORMAT_ENCODE ;
EncodingMapper * em = EncodingMapper : : getInstance ( ) ;
int newEncoding = em - > getEncodingFromIndex ( index ) ;
if ( newEncoding = = - 1 )
{
return ;
}
Buffer * buf = _pEditView - > getCurrentBuffer ( ) ;
UniMode um = buf - > getUnicodeMode ( ) ;
int oldEncoding = buf - > getEncoding ( ) ;
if ( oldEncoding = = newEncoding )
return ;
if ( oldEncoding ! = - 1 )
{
//do warning
}
buf - > setEncoding ( newEncoding ) ;
break ;
}
*/
case IDM_SETTING_IMPORTPLUGIN :
{
@ -2180,13 +2118,10 @@ void Notepad_plus::command(int id)
{
char * authorName = " «J¤µ§^ " ;
HWND hItem = : : GetDlgItem ( _aboutDlg . getHSelf ( ) , IDC_AUTHOR_NAME ) ;
# ifdef UNICODE
WcharMbcsConvertor * wmc = WcharMbcsConvertor : : getInstance ( ) ;
const wchar_t * authorNameW = wmc - > char2wchar ( authorName , NPP_CP_BIG5 ) ;
: : SetWindowText ( hItem , authorNameW ) ;
# else
: : SetWindowText ( hItem , authorName ) ;
# endif
}
}
}