From 63eeb1a64332fb15abf0d2066e8673a59c3eed9a Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sat, 24 Nov 2012 11:35:51 +0000 Subject: adopted NoHistory git-svn-id: http://svn.miranda-ng.org/main/trunk@2459 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/!NotAdopted/NoHistory/NoHistory.aps | Bin 74352 -> 0 bytes plugins/!NotAdopted/NoHistory/NoHistory.mdsp | 102 ---- plugins/!NotAdopted/NoHistory/NoHistory.rc | 124 ----- plugins/!NotAdopted/NoHistory/NoHistory_8.dsp | 238 --------- plugins/!NotAdopted/NoHistory/NoHistory_8.dsw | 29 -- plugins/!NotAdopted/NoHistory/NoHistory_8.ncb | Bin 58368 -> 0 bytes plugins/!NotAdopted/NoHistory/NoHistory_8.opt | Bin 49664 -> 0 bytes plugins/!NotAdopted/NoHistory/NoHistory_8.plg | 48 -- plugins/!NotAdopted/NoHistory/NoHistory_8.sln | 20 - plugins/!NotAdopted/NoHistory/NoHistory_8.vcproj | 108 ----- .../!NotAdopted/NoHistory/NoHistory_8.vcproj.bak | 309 ------------ plugins/!NotAdopted/NoHistory/NoHistory_9.sln | 26 - plugins/!NotAdopted/NoHistory/NoHistory_9.vcproj | 539 --------------------- plugins/!NotAdopted/NoHistory/common.h | 44 -- plugins/!NotAdopted/NoHistory/dllmain.cpp | 433 ----------------- .../NoHistory/docs/licence_NoHistory.txt | 6 - plugins/!NotAdopted/NoHistory/history_clear.ico | Bin 2550 -> 0 bytes plugins/!NotAdopted/NoHistory/history_disabled.ico | Bin 2550 -> 0 bytes plugins/!NotAdopted/NoHistory/history_enabled.ico | Bin 2550 -> 0 bytes plugins/!NotAdopted/NoHistory/icons.cpp | 55 --- plugins/!NotAdopted/NoHistory/icons.h | 9 - plugins/!NotAdopted/NoHistory/options.cpp | 274 ----------- plugins/!NotAdopted/NoHistory/options.h | 9 - plugins/!NotAdopted/NoHistory/private.aps | Bin 39352 -> 0 bytes plugins/!NotAdopted/NoHistory/private.h | 24 - plugins/!NotAdopted/NoHistory/private.rc | 35 -- plugins/!NotAdopted/NoHistory/resource.aps | Bin 50144 -> 0 bytes plugins/!NotAdopted/NoHistory/resource.h | 26 - plugins/!NotAdopted/NoHistory/resource.rc | 2 - plugins/NoHistory/NoHistory.rc | 124 +++++ plugins/NoHistory/NoHistory.vcxproj | 233 +++++++++ plugins/NoHistory/NoHistory.vcxproj.filters | 67 +++ plugins/NoHistory/common.h | 43 ++ plugins/NoHistory/dllmain.cpp | 375 ++++++++++++++ plugins/NoHistory/docs/licence_NoHistory.txt | 6 + plugins/NoHistory/history_clear.ico | Bin 0 -> 2550 bytes plugins/NoHistory/history_disabled.ico | Bin 0 -> 2550 bytes plugins/NoHistory/history_enabled.ico | Bin 0 -> 2550 bytes plugins/NoHistory/icons.cpp | 49 ++ plugins/NoHistory/icons.h | 9 + plugins/NoHistory/options.cpp | 253 ++++++++++ plugins/NoHistory/options.h | 9 + plugins/NoHistory/private.aps | Bin 0 -> 18964 bytes plugins/NoHistory/private.h | 24 + plugins/NoHistory/private.rc | 35 ++ plugins/NoHistory/resource.aps | Bin 0 -> 30164 bytes plugins/NoHistory/resource.h | 26 + plugins/NoHistory/resource.rc | 2 + 48 files changed, 1255 insertions(+), 2460 deletions(-) delete mode 100644 plugins/!NotAdopted/NoHistory/NoHistory.aps delete mode 100644 plugins/!NotAdopted/NoHistory/NoHistory.mdsp delete mode 100644 plugins/!NotAdopted/NoHistory/NoHistory.rc delete mode 100644 plugins/!NotAdopted/NoHistory/NoHistory_8.dsp delete mode 100644 plugins/!NotAdopted/NoHistory/NoHistory_8.dsw delete mode 100644 plugins/!NotAdopted/NoHistory/NoHistory_8.ncb delete mode 100644 plugins/!NotAdopted/NoHistory/NoHistory_8.opt delete mode 100644 plugins/!NotAdopted/NoHistory/NoHistory_8.plg delete mode 100644 plugins/!NotAdopted/NoHistory/NoHistory_8.sln delete mode 100644 plugins/!NotAdopted/NoHistory/NoHistory_8.vcproj delete mode 100644 plugins/!NotAdopted/NoHistory/NoHistory_8.vcproj.bak delete mode 100644 plugins/!NotAdopted/NoHistory/NoHistory_9.sln delete mode 100644 plugins/!NotAdopted/NoHistory/NoHistory_9.vcproj delete mode 100644 plugins/!NotAdopted/NoHistory/common.h delete mode 100644 plugins/!NotAdopted/NoHistory/dllmain.cpp delete mode 100644 plugins/!NotAdopted/NoHistory/docs/licence_NoHistory.txt delete mode 100644 plugins/!NotAdopted/NoHistory/history_clear.ico delete mode 100644 plugins/!NotAdopted/NoHistory/history_disabled.ico delete mode 100644 plugins/!NotAdopted/NoHistory/history_enabled.ico delete mode 100644 plugins/!NotAdopted/NoHistory/icons.cpp delete mode 100644 plugins/!NotAdopted/NoHistory/icons.h delete mode 100644 plugins/!NotAdopted/NoHistory/options.cpp delete mode 100644 plugins/!NotAdopted/NoHistory/options.h delete mode 100644 plugins/!NotAdopted/NoHistory/private.aps delete mode 100644 plugins/!NotAdopted/NoHistory/private.h delete mode 100644 plugins/!NotAdopted/NoHistory/private.rc delete mode 100644 plugins/!NotAdopted/NoHistory/resource.aps delete mode 100644 plugins/!NotAdopted/NoHistory/resource.h delete mode 100644 plugins/!NotAdopted/NoHistory/resource.rc create mode 100644 plugins/NoHistory/NoHistory.rc create mode 100644 plugins/NoHistory/NoHistory.vcxproj create mode 100644 plugins/NoHistory/NoHistory.vcxproj.filters create mode 100644 plugins/NoHistory/common.h create mode 100644 plugins/NoHistory/dllmain.cpp create mode 100644 plugins/NoHistory/docs/licence_NoHistory.txt create mode 100644 plugins/NoHistory/history_clear.ico create mode 100644 plugins/NoHistory/history_disabled.ico create mode 100644 plugins/NoHistory/history_enabled.ico create mode 100644 plugins/NoHistory/icons.cpp create mode 100644 plugins/NoHistory/icons.h create mode 100644 plugins/NoHistory/options.cpp create mode 100644 plugins/NoHistory/options.h create mode 100644 plugins/NoHistory/private.aps create mode 100644 plugins/NoHistory/private.h create mode 100644 plugins/NoHistory/private.rc create mode 100644 plugins/NoHistory/resource.aps create mode 100644 plugins/NoHistory/resource.h create mode 100644 plugins/NoHistory/resource.rc (limited to 'plugins') diff --git a/plugins/!NotAdopted/NoHistory/NoHistory.aps b/plugins/!NotAdopted/NoHistory/NoHistory.aps deleted file mode 100644 index fe588be222..0000000000 Binary files a/plugins/!NotAdopted/NoHistory/NoHistory.aps and /dev/null differ diff --git a/plugins/!NotAdopted/NoHistory/NoHistory.mdsp b/plugins/!NotAdopted/NoHistory/NoHistory.mdsp deleted file mode 100644 index e0632f4335..0000000000 --- a/plugins/!NotAdopted/NoHistory/NoHistory.mdsp +++ /dev/null @@ -1,102 +0,0 @@ -[Project] -name=NoHistory -type=2 -defaultConfig=0 - - -[Debug] -// compiler -workingDirectory= -arguments= -intermediateFilesDirectory=Debug -outputFilesDirectory=Debug -compilerPreprocessor= -extraCompilerOptions= -compilerIncludeDirectory=..\..\include -noWarning=0 -defaultWarning=0 -allWarning=1 -extraWarning=0 -isoWarning=0 -warningsAsErrors=0 -debugType=1 -debugLevel=2 -exceptionEnabled=1 -runtimeTypeEnabled=1 -optimizeLevel=0 - -// linker -libraryPath= -outputFilename=Debug\NoHistory.dll -libraries=comctl32 -extraLinkerOptions= -ignoreStartupFile=0 -ignoreDefaultLibs=0 -stripExecutableFile=0 - -// archive -extraArchiveOptions= - -//resource -resourcePreprocessor= -resourceIncludeDirectory= -extraResourceOptions= - -[Release] -// compiler -workingDirectory= -arguments= -intermediateFilesDirectory=Release -outputFilesDirectory=Release -compilerPreprocessor= -extraCompilerOptions= -compilerIncludeDirectory=..\..\include -noWarning=0 -defaultWarning=0 -allWarning=1 -extraWarning=0 -isoWarning=0 -warningAsErrors=0 -debugType=0 -debugLevel=1 -exceptionEnabled=1 -runtimeTypeEnabled=1 -optimizeLevel=2 - -// linker -libraryPath= -outputFilename=Release\NoHistory.dll -libraries=comctl32 -extraLinkerOptions= -ignoreStartupFile=0 -ignoreDefaultLibs=0 -stripExecutableFile=1 - -// archive -extraArchiveOptions= - -//resource -resourcePreprocessor= -resourceIncludeDirectory= -extraResourceOptions= - -[Source] -1=dllmain.cpp -2=icons.cpp -3=options.cpp -[Header] -1=common.h -2=private.h -3=resource.h -4=icons.h -5=IcoLib.h -6=options.h -[Resource] -1=resource.rc -[Other] -[History] -options.cpp,5214 -..\tipper\options.cpp,37783 -common.h,481 -private.h,701 -dllmain.cpp,2225 diff --git a/plugins/!NotAdopted/NoHistory/NoHistory.rc b/plugins/!NotAdopted/NoHistory/NoHistory.rc deleted file mode 100644 index 485ca27bd6..0000000000 --- a/plugins/!NotAdopted/NoHistory/NoHistory.rc +++ /dev/null @@ -1,124 +0,0 @@ -//Microsoft Developer Studio generated resource script. -// -#include "resource.h" - -#define APSTUDIO_READONLY_SYMBOLS -///////////////////////////////////////////////////////////////////////////// -// -// Generated from the TEXTINCLUDE 2 resource. -// -#include "afxres.h" -///////////////////////////////////////////////////////////////////////////// -#undef APSTUDIO_READONLY_SYMBOLS - -///////////////////////////////////////////////////////////////////////////// -// Neutral (Default) resources - -#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEUD) -#ifdef _WIN32 -LANGUAGE LANG_NEUTRAL, SUBLANG_DEFAULT -#pragma code_page(1251) -#endif //_WIN32 - -///////////////////////////////////////////////////////////////////////////// -// -// Icon -// - -// Icon with lowest ID value placed first to ensure application icon -// remains consistent on all systems. -IDI_HKEEP ICON DISCARDABLE "history_enabled.ico" -IDI_HREMOVE ICON DISCARDABLE "history_disabled.ico" -IDI_HCLEAR ICON DISCARDABLE "history_clear.ico" -#endif // Neutral (Default) resources -///////////////////////////////////////////////////////////////////////////// - - -///////////////////////////////////////////////////////////////////////////// -// English (Australia) resources - -#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENA) -#ifdef _WIN32 -LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_AUS -#pragma code_page(1252) -#endif //_WIN32 - -#ifdef APSTUDIO_INVOKED -///////////////////////////////////////////////////////////////////////////// -// -// TEXTINCLUDE -// - -1 TEXTINCLUDE MOVEABLE PURE -BEGIN - "resource.h\0" -END - -3 TEXTINCLUDE MOVEABLE PURE -BEGIN - "\r\0" -END - -2 TEXTINCLUDE MOVEABLE PURE -BEGIN - "#include ""afxres.h""\r\0" -END - -#endif // APSTUDIO_INVOKED - - -///////////////////////////////////////////////////////////////////////////// -// -// Dialog -// - -IDD_OPT DIALOGEX 0, 0, 312, 235 -STYLE DS_FIXEDSYS | DS_CENTER | WS_CHILD -EXSTYLE WS_EX_CONTROLPARENT -FONT 8, "MS Shell Dlg" -BEGIN - CONTROL "Custom1",IDC_LIST,"CListControl",WS_TABSTOP | 0x1d0,7,7, - 298,192,WS_EX_CLIENTEDGE - ICON IDI_HKEEP,IDC_PIC_KEEP,8,203,21,20 - LTEXT "Keep history for this contact",IDC_STATIC,42,203,263,8, - SS_NOPREFIX | SS_CENTERIMAGE - ICON IDI_HREMOVE,IDC_PIC_REMOVE,8,218,21,20 - LTEXT "Disable history for this contact",IDC_STATIC,42,220,263, - 8,SS_NOPREFIX | SS_CENTERIMAGE -END - - -///////////////////////////////////////////////////////////////////////////// -// -// DESIGNINFO -// - -#ifdef APSTUDIO_INVOKED -GUIDELINES DESIGNINFO MOVEABLE PURE -BEGIN - IDD_OPT, DIALOG - BEGIN - LEFTMARGIN, 7 - RIGHTMARGIN, 305 - VERTGUIDE, 42 - TOPMARGIN, 7 - BOTTOMMARGIN, 228 - HORZGUIDE, 211 - END -END -#endif // APSTUDIO_INVOKED - -#endif // English (Australia) resources -///////////////////////////////////////////////////////////////////////////// - - - -#ifndef APSTUDIO_INVOKED -///////////////////////////////////////////////////////////////////////////// -// -// Generated from the TEXTINCLUDE 3 resource. -// - -///////////////////////////////////////////////////////////////////////////// -#endif // not APSTUDIO_INVOKED - diff --git a/plugins/!NotAdopted/NoHistory/NoHistory_8.dsp b/plugins/!NotAdopted/NoHistory/NoHistory_8.dsp deleted file mode 100644 index f348c2193a..0000000000 --- a/plugins/!NotAdopted/NoHistory/NoHistory_8.dsp +++ /dev/null @@ -1,238 +0,0 @@ -# Microsoft Developer Studio Project File - Name="NoHistory" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 - -CFG=NoHistory - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "NoHistory_8.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "NoHistory_8.mak" CFG="NoHistory - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "NoHistory - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library") -!MESSAGE "NoHistory - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library") -!MESSAGE - -# Begin Project -# PROP AllowPerConfigDependencies 0 -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -MTL=midl.exe -RSC=rc.exe - -!IF "$(CFG)" == "NoHistory - Win32 Debug" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "$(SolutionDir)$(ConfigurationName)" -# PROP BASE Intermediate_Dir "$(ConfigurationName)" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "$(SolutionDir)$(ConfigurationName)" -# PROP Intermediate_Dir "$(ConfigurationName)" -# PROP Target_Dir "" -# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "../../include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "NOHISTORY_EXPORTS" /D "_UNICODE" /YX /GZ /c -# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "../../include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "NOHISTORY_EXPORTS" /D "_UNICODE" /YX /GZ /c -# ADD BASE MTL /nologo /win32 -# ADD MTL /nologo /win32 -# ADD BASE RSC /l 0x409 -# ADD RSC /l 0x409 -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib /nologo /subsystem:windows /dll /debug /machine:IX86 /out:"..\..\bin\$(ConfigurationName)\plugins\$(ProjectName).dll" /implib:"$(IntDir)/$(TargetName).lib" /pdbtype:sept -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib /nologo /subsystem:windows /dll /debug /machine:IX86 /out:"..\..\bin\$(ConfigurationName)\plugins\$(ProjectName).dll" /implib:"$(IntDir)/$(TargetName).lib" /pdbtype:sept - -!ELSEIF "$(CFG)" == "NoHistory - Win32 Release" - -# PROP BASE Use_MFC 0 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "$(SolutionDir)$(ConfigurationName)" -# PROP BASE Intermediate_Dir "$(ConfigurationName)" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "Release/" -# PROP Intermediate_Dir "Release/" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /MT /W3 /GX /Zi /I "../../include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "NOHISTORY_EXPORTS" /D "_UNICODE" /YX /c -# ADD CPP /nologo /MT /W3 /GX /Zi /I "../../include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "NOHISTORY_EXPORTS" /D "_MBCS" /YX /c -# ADD BASE MTL /nologo /win32 -# ADD MTL /nologo /win32 -# ADD BASE RSC /l 0x409 -# ADD RSC /l 0x409 -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib /nologo /subsystem:windows /dll /debug /machine:IX86 /out:"..\..\bin\$(ConfigurationName)\plugins\$(ProjectName).dll" /implib:"$(IntDir)/$(TargetName).lib" /pdbtype:sept /opt:ref /opt:icf -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib /nologo /subsystem:windows /dll /debug /machine:IX86 /out:"../../bin/Release/plugins/nohistory.dll" /pdbtype:sept /opt:ref /opt:icf -# SUBTRACT LINK32 /pdb:none - -!ENDIF - -# Begin Target - -# Name "NoHistory - Win32 Debug" -# Name "NoHistory - Win32 Release" -# Begin Group "Source Files" - -# PROP Default_Filter "cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" -# Begin Source File - -SOURCE=.\dllmain.cpp -DEP_CPP_DLLMA=\ - "..\..\include\m_clc.h"\ - "..\..\include\m_clist.h"\ - "..\..\include\m_database.h"\ - "..\..\include\m_icolib.h"\ - "..\..\include\m_langpack.h"\ - "..\..\include\m_message.h"\ - "..\..\include\m_options.h"\ - "..\..\include\m_protocols.h"\ - "..\..\include\m_updater.h"\ - "..\..\include\newpluginapi.h"\ - "..\..\include\win2k.h"\ - ".\common.h"\ - ".\icons.h"\ - ".\options.h"\ - ".\private.h"\ - -NODEP_CPP_DLLMA=\ - ".\_plugins.h"\ - ".\_system.h"\ - ".\_utils.h"\ - ".\tatusmodes.h"\ - - -!IF "$(CFG)" == "NoHistory - Win32 Debug" - -# ADD CPP /nologo /GX /Yc"common.h" /GZ - -!ELSEIF "$(CFG)" == "NoHistory - Win32 Release" - -# ADD CPP /nologo /GX /Yc"common.h" - -!ENDIF - -# End Source File -# Begin Source File - -SOURCE=.\icons.cpp -DEP_CPP_ICONS=\ - "..\..\include\m_clc.h"\ - "..\..\include\m_clist.h"\ - "..\..\include\m_database.h"\ - "..\..\include\m_icolib.h"\ - "..\..\include\m_langpack.h"\ - "..\..\include\m_message.h"\ - "..\..\include\m_options.h"\ - "..\..\include\m_protocols.h"\ - "..\..\include\m_updater.h"\ - "..\..\include\newpluginapi.h"\ - "..\..\include\win2k.h"\ - ".\common.h"\ - ".\icons.h"\ - -NODEP_CPP_ICONS=\ - ".\_plugins.h"\ - ".\_system.h"\ - ".\_utils.h"\ - ".\tatusmodes.h"\ - -# End Source File -# Begin Source File - -SOURCE=.\options.cpp -DEP_CPP_OPTIO=\ - "..\..\include\m_clc.h"\ - "..\..\include\m_clist.h"\ - "..\..\include\m_database.h"\ - "..\..\include\m_icolib.h"\ - "..\..\include\m_langpack.h"\ - "..\..\include\m_message.h"\ - "..\..\include\m_options.h"\ - "..\..\include\m_protocols.h"\ - "..\..\include\m_updater.h"\ - "..\..\include\newpluginapi.h"\ - "..\..\include\win2k.h"\ - ".\common.h"\ - ".\icons.h"\ - ".\options.h"\ - -NODEP_CPP_OPTIO=\ - ".\_plugins.h"\ - ".\_system.h"\ - ".\_utils.h"\ - ".\tatusmodes.h"\ - -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "h;hpp;hxx;hm;inl;inc;xsd" -# Begin Source File - -SOURCE=.\common.h -# End Source File -# Begin Source File - -SOURCE=.\icons.h -# End Source File -# Begin Source File - -SOURCE=.\options.h -# End Source File -# Begin Source File - -SOURCE=.\private.h -# End Source File -# Begin Source File - -SOURCE=.\resource.h -# End Source File -# End Group -# Begin Group "Resource Files" - -# PROP Default_Filter "rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" -# Begin Source File - -SOURCE=.\history_clear.ico -# End Source File -# Begin Source File - -SOURCE=.\history_disabled.ico -# End Source File -# Begin Source File - -SOURCE=.\history_enabled.ico -# End Source File -# Begin Source File - -SOURCE=.\NoHistory.rc -# PROP Exclude_From_Build 1 -# End Source File -# Begin Source File - -SOURCE=.\private.rc -# PROP Exclude_From_Build 1 -# End Source File -# Begin Source File - -SOURCE=.\resource.rc -# End Source File -# End Group -# End Target -# End Project diff --git a/plugins/!NotAdopted/NoHistory/NoHistory_8.dsw b/plugins/!NotAdopted/NoHistory/NoHistory_8.dsw deleted file mode 100644 index c1d5efa0ad..0000000000 --- a/plugins/!NotAdopted/NoHistory/NoHistory_8.dsw +++ /dev/null @@ -1,29 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "NoHistory"=.\NoHistory_8.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/plugins/!NotAdopted/NoHistory/NoHistory_8.ncb b/plugins/!NotAdopted/NoHistory/NoHistory_8.ncb deleted file mode 100644 index fd1571b4d4..0000000000 Binary files a/plugins/!NotAdopted/NoHistory/NoHistory_8.ncb and /dev/null differ diff --git a/plugins/!NotAdopted/NoHistory/NoHistory_8.opt b/plugins/!NotAdopted/NoHistory/NoHistory_8.opt deleted file mode 100644 index 8197d6a54f..0000000000 Binary files a/plugins/!NotAdopted/NoHistory/NoHistory_8.opt and /dev/null differ diff --git a/plugins/!NotAdopted/NoHistory/NoHistory_8.plg b/plugins/!NotAdopted/NoHistory/NoHistory_8.plg deleted file mode 100644 index 6e89caaa6f..0000000000 --- a/plugins/!NotAdopted/NoHistory/NoHistory_8.plg +++ /dev/null @@ -1,48 +0,0 @@ - - -
-

Build Log

-

---------------------Configuration: NoHistory - Win32 Release-------------------- -

-

Command Lines

-Creating command line "rc.exe /l 0x409 /fo"Release/resource.res" "R:\miranda\mirandanewscr\plugins\NoHistory\resource.rc"" -Creating temporary file "S:\TEMP\RSP6ED.tmp" with contents -[ -/nologo /MT /W3 /GX /Zi /I "../../include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "NOHISTORY_EXPORTS" /D "_MBCS" /Fp"Release/NoHistory_8.pch" /Yc"common.h" /Fo"Release/" /Fd"Release/" /c -"R:\miranda\mirandanewscr\plugins\NoHistory\dllmain.cpp" -] -Creating command line "cl.exe @S:\TEMP\RSP6ED.tmp" -Creating temporary file "S:\TEMP\RSP6EE.tmp" with contents -[ -/nologo /MT /W3 /GX /Zi /I "../../include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "NOHISTORY_EXPORTS" /D "_MBCS" /Fp"Release/NoHistory_8.pch" /YX /Fo"Release/" /Fd"Release/" /c -"R:\miranda\mirandanewscr\plugins\NoHistory\icons.cpp" -"R:\miranda\mirandanewscr\plugins\NoHistory\options.cpp" -] -Creating command line "cl.exe @S:\TEMP\RSP6EE.tmp" -Creating temporary file "S:\TEMP\RSP6EF.tmp" with contents -[ -kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib /nologo /subsystem:windows /dll /incremental:no /pdb:"Release/nohistory.pdb" /debug /machine:IX86 /out:"Release/nohistory.dll" /implib:"Release/nohistory.lib" /pdbtype:sept /opt:ref /opt:icf -.\Release\dllmain.obj -.\Release\icons.obj -.\Release\options.obj -.\Release\resource.res -] -Creating command line "link.exe @S:\TEMP\RSP6EF.tmp" -

Output Window

-Compiling resources... -Compiling... -dllmain.cpp -Compiling... -icons.cpp -options.cpp -Linking... - Creating library Release/nohistory.lib and object Release/nohistory.exp - - - -

Results

-nohistory.dll - 0 error(s), 0 warning(s) -
- - diff --git a/plugins/!NotAdopted/NoHistory/NoHistory_8.sln b/plugins/!NotAdopted/NoHistory/NoHistory_8.sln deleted file mode 100644 index 9bdfb770ea..0000000000 --- a/plugins/!NotAdopted/NoHistory/NoHistory_8.sln +++ /dev/null @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual Studio 2005 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NoHistory", "NoHistory_8.vcproj", "{ABF05E2C-C335-4BD1-8C3E-4C63285362CF}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - Release|Win32 = Release|Win32 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {ABF05E2C-C335-4BD1-8C3E-4C63285362CF}.Debug|Win32.ActiveCfg = Debug|Win32 - {ABF05E2C-C335-4BD1-8C3E-4C63285362CF}.Debug|Win32.Build.0 = Debug|Win32 - {ABF05E2C-C335-4BD1-8C3E-4C63285362CF}.Release|Win32.ActiveCfg = Release|Win32 - {ABF05E2C-C335-4BD1-8C3E-4C63285362CF}.Release|Win32.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/plugins/!NotAdopted/NoHistory/NoHistory_8.vcproj b/plugins/!NotAdopted/NoHistory/NoHistory_8.vcproj deleted file mode 100644 index 60599d558c..0000000000 --- a/plugins/!NotAdopted/NoHistory/NoHistory_8.vcproj +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/!NotAdopted/NoHistory/NoHistory_8.vcproj.bak b/plugins/!NotAdopted/NoHistory/NoHistory_8.vcproj.bak deleted file mode 100644 index c0fa6459f6..0000000000 --- a/plugins/!NotAdopted/NoHistory/NoHistory_8.vcproj.bak +++ /dev/null @@ -1,309 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/!NotAdopted/NoHistory/NoHistory_9.sln b/plugins/!NotAdopted/NoHistory/NoHistory_9.sln deleted file mode 100644 index 56a6c1ccc5..0000000000 --- a/plugins/!NotAdopted/NoHistory/NoHistory_9.sln +++ /dev/null @@ -1,26 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 10.00 -# Visual Studio 2008 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NoHistory", "NoHistory_9.vcproj", "{ABF05E2C-C335-4BD1-8C3E-4C63285362CF}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - Debug|x64 = Debug|x64 - Release|Win32 = Release|Win32 - Release|x64 = Release|x64 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {ABF05E2C-C335-4BD1-8C3E-4C63285362CF}.Debug|Win32.ActiveCfg = Debug|Win32 - {ABF05E2C-C335-4BD1-8C3E-4C63285362CF}.Debug|Win32.Build.0 = Debug|Win32 - {ABF05E2C-C335-4BD1-8C3E-4C63285362CF}.Debug|x64.ActiveCfg = Debug|x64 - {ABF05E2C-C335-4BD1-8C3E-4C63285362CF}.Debug|x64.Build.0 = Debug|x64 - {ABF05E2C-C335-4BD1-8C3E-4C63285362CF}.Release|Win32.ActiveCfg = Release|Win32 - {ABF05E2C-C335-4BD1-8C3E-4C63285362CF}.Release|Win32.Build.0 = Release|Win32 - {ABF05E2C-C335-4BD1-8C3E-4C63285362CF}.Release|x64.ActiveCfg = Release|x64 - {ABF05E2C-C335-4BD1-8C3E-4C63285362CF}.Release|x64.Build.0 = Release|x64 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/plugins/!NotAdopted/NoHistory/NoHistory_9.vcproj b/plugins/!NotAdopted/NoHistory/NoHistory_9.vcproj deleted file mode 100644 index b4fd128feb..0000000000 --- a/plugins/!NotAdopted/NoHistory/NoHistory_9.vcproj +++ /dev/null @@ -1,539 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/plugins/!NotAdopted/NoHistory/common.h b/plugins/!NotAdopted/NoHistory/common.h deleted file mode 100644 index 4f113af9a4..0000000000 --- a/plugins/!NotAdopted/NoHistory/common.h +++ /dev/null @@ -1,44 +0,0 @@ -#define MIRANDA_VER 0x800 - -#ifndef _COMMON_INC -#define _COMMON_INC - -#define _WIN32_WINNT 0x0501 -#define _WIN32_IE 0x0500 - -#include - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include "m_updater.h" - -#define MODULE "NoHistory" -#define DBSETTING_REMOVE "RemoveHistory" - -extern HINSTANCE hInst; - -#ifndef MIID_NOHISTORY -#define MIID_NOHISTORY {0xe9ba130e, 0x9927, 0x4469, { 0xb6, 0x19, 0x95, 0x61, 0xa8, 0xc0, 0x57, 0xa7}} -#endif - -#endif - - -void SrmmMenu_Load(); -void SrmmMenu_Unload(); - - diff --git a/plugins/!NotAdopted/NoHistory/dllmain.cpp b/plugins/!NotAdopted/NoHistory/dllmain.cpp deleted file mode 100644 index b60b77c7e7..0000000000 --- a/plugins/!NotAdopted/NoHistory/dllmain.cpp +++ /dev/null @@ -1,433 +0,0 @@ -/* Replace "dll.h" with the name of your header */ -#include "common.h" -#include "private.h" -#include "resource.h" -#include "icons.h" -#include "options.h" - -#include - -/////////////////////////////////////////////// -// Common Plugin Stuff -/////////////////////////////////////////////// -HINSTANCE hInst; -PLUGINLINK *pluginLink; - -struct MM_INTERFACE mmi = {sizeof(struct MM_INTERFACE ),0}; - - -// add icon to srmm status icons -static void SrmmMenu_UpdateIcon(HANDLE hContact); -static int SrmmMenu_ProcessEvent(WPARAM wParam, LPARAM lParam); -static int SrmmMenu_ProcessIconClick(WPARAM wParam, LPARAM lParam); - - -HANDLE hEventDbEventAdded, hEventMenuPrebuild, hMenuToggle, hMenuClear, hServiceToggle, hServiceClear, hEventWindow, hEventIconPressed; - -CRITICAL_SECTION list_cs; - -#define MS_NOHISTORY_TOGGLE MODULE "/ToggleOnOff" -#define MS_NOHISTORY_CLEAR MODULE "/Clear" - -#define DBSETTING_REMOVE "RemoveHistory" - -// a list of db events - we'll check them for the 'read' flag periodically and delete them whwen marked as read -struct EventListNode { - HANDLE hContact, hDBEvent; - EventListNode *next; -}; - -EventListNode *event_list = 0; - -// plugin stuff -PLUGININFOEX pluginInfo={ - sizeof(PLUGININFOEX), - MODULE, - PLUGIN_MAKE_VERSION(VER_MAJOR, VER_MINOR, VER_RELEASE, VER_BUILD), - DESC_STRING, - "Scott Ellis, NightFox", - "mail@scottellis.com.au; nightfox@myied.org", - "© 2005 Scott Ellis; NightFox 2010", - "http://www.scottellis.com.au/", - 0, //not transient - 0, //doesn't replace anything built-in -#ifdef _UNICODE -{ 0xb25e8c7b, 0x292b, 0x495a, { 0x9f, 0xb8, 0xa4, 0xc3, 0xd4, 0xee, 0xb0, 0x4b } } // {B25E8C7B-292B-495a-9FB8-A4C3D4EEB04B} -#else -{ 0x12e5a39, 0x78a6, 0x4ccb, { 0xa6, 0x3f, 0x60, 0xfa, 0x7c, 0xb4, 0xd, 0xee } } // {012E5A39-78A6-4ccb-A63F-60FA7CB40DEE} -#endif -}; - -extern "C" BOOL APIENTRY DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved) { - hInst=hinstDLL; - return TRUE; -} - -extern "C" __declspec (dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) { - return &pluginInfo; -} - -extern "C" __declspec (dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion) { - pluginInfo.cbSize = sizeof(PLUGININFO); - return (PLUGININFO*)&pluginInfo; -} - -static const MUUID interfaces[] = {MIID_NOHISTORY, MIID_LAST}; -extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void) { - return interfaces; -} - - - -void RemoveReadEvents(HANDLE hContact = 0) { - DBEVENTINFO info = {0}; - info.cbSize = sizeof(info); - bool remove; - - EnterCriticalSection(&list_cs); - EventListNode *node = event_list, *prev = 0; - while(node) { - remove = false; - if(hContact == 0 || hContact == node->hContact) { - info.cbBlob = 0; - if(!CallService(MS_DB_EVENT_GET, (WPARAM)node->hDBEvent, (LPARAM)&info)) { - if((info.flags & DBEF_READ) || (info.flags & DBEF_SENT)) // note: already checked event type when added to list - remove = true; - } else { - // could not get event info - maybe someone else deleted it - so remove list node - remove = true; - } - } - - if(remove) { - if(DBGetContactSettingByte(node->hContact, MODULE, DBSETTING_REMOVE, 0)) // is history disabled for this contact? - CallService(MS_DB_EVENT_DELETE, (WPARAM)node->hContact, (LPARAM)node->hDBEvent); - - // remove list node anyway - if(event_list == node) event_list = node->next; - if(prev) prev->next = node->next; - - free(node); - - if(prev) node = prev->next; - else node = event_list; - } else { - prev = node; - node = node->next; - } - } - - LeaveCriticalSection(&list_cs); -} - -void RemoveAllEvents(HANDLE hContact) { - HANDLE hDBEvent = (HANDLE)CallService(MS_DB_EVENT_FINDFIRST, (WPARAM)hContact, 0), hDBEventNext; - while(hDBEvent) { - hDBEventNext = (HANDLE)CallService(MS_DB_EVENT_FINDNEXT, (WPARAM)hDBEvent, 0); - CallService(MS_DB_EVENT_DELETE, (WPARAM)hContact, (LPARAM)hDBEvent); - hDBEvent = hDBEventNext; - } - -} - -void CALLBACK TimerProc(HWND hWnd, UINT uMsg, UINT idEvent, DWORD dwTime) { - RemoveReadEvents(); -} - - -int OnDatabaseEventAdd(WPARAM wParam, LPARAM lParam) { - HANDLE hContact = (HANDLE)wParam, hDBEvent = (HANDLE)lParam; - - // history not disabled for this contact - if(DBGetContactSettingByte(hContact, MODULE, DBSETTING_REMOVE, 0) == 0) - return 0; - - DBEVENTINFO info = {0}; - info.cbSize = sizeof(info); - if(!CallService(MS_DB_EVENT_GET, (WPARAM)hDBEvent, (LPARAM)&info)) { - if(info.eventType == EVENTTYPE_MESSAGE) { - EventListNode *node = (EventListNode *)malloc(sizeof(EventListNode)); - node->hContact = hContact; - node->hDBEvent = hDBEvent; - - EnterCriticalSection(&list_cs); - node->next = event_list; - event_list = node; - LeaveCriticalSection(&list_cs); - } - } - - return 0; -} - - -INT_PTR ServiceClear(WPARAM wParam, LPARAM lParam) { - HANDLE hContact = (HANDLE)wParam; - - if(MessageBox(0, TranslateT("This operation will PERMANENTLY REMOVE all history for this contact.\nAre you sure you want to do this?"), TranslateT("Clear History"), MB_YESNO | MB_ICONWARNING) == IDYES) { - RemoveAllEvents(hContact); - } - - return 0; -} - -int PrebuildContactMenu(WPARAM wParam, LPARAM lParam) { - HANDLE hContact = (HANDLE)wParam; - - bool remove = (DBGetContactSettingByte(hContact, MODULE, DBSETTING_REMOVE, 0) != 0); - char *proto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0); - bool chat_room = (proto && DBGetContactSettingByte(hContact, proto, "ChatRoom", 0) != 0); - - CLISTMENUITEM mi = {0}; - mi.cbSize = sizeof(mi); - - mi.flags = CMIM_FLAGS; - if(chat_room) mi.flags |= CMIF_HIDDEN; - else { - mi.flags |= (CMIM_NAME | CMIM_ICON); - mi.pszName = (remove ? Translate("Enable History") : Translate("Disable History")); - mi.hIcon = (remove ? hIconKeep : hIconRemove); - } - CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hMenuToggle, (LPARAM)&mi); - - mi.flags = CMIM_FLAGS; - if(chat_room) mi.flags |= CMIF_HIDDEN; - else { - int event_count = (int)CallService(MS_DB_EVENT_GETCOUNT, (WPARAM)hContact, 0); - if(event_count <= 0) mi.flags |= CMIF_HIDDEN; - } - CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hMenuClear, (LPARAM)&mi); - - return 0; -} - -INT_PTR ServiceToggle(WPARAM wParam, LPARAM lParam) { - HANDLE hContact = (HANDLE)wParam; - - int remove = (DBGetContactSettingByte(hContact, MODULE, DBSETTING_REMOVE, 0) != 0); - remove = !remove; - DBWriteContactSettingByte(hContact, MODULE, DBSETTING_REMOVE, (remove ? 1 : 0)); - - StatusIconData sid = {0}; - sid.cbSize = sizeof(sid); - sid.szModule = MODULE; - - - for (int i = 0; i < 2; ++i) - { - sid.dwId = i; - sid.flags = (i == remove) ? 0 : MBF_HIDDEN; - CallService(MS_MSG_MODIFYICON, (WPARAM)hContact, (LPARAM)&sid); - } -/* - sid.dwId = 0; - sid.flags = (remove ? MBF_DISABLED : 0); - CallService(MS_MSG_MODIFYICON, (WPARAM)hContact, (LPARAM)&sid); -*/ - return 0; -} - -int WindowEvent(WPARAM wParam, LPARAM lParam) { - MessageWindowEventData *mwd = (MessageWindowEventData *)lParam; - HANDLE hContact = mwd->hContact; - int remove = (DBGetContactSettingByte(hContact, MODULE, DBSETTING_REMOVE, 0) != 0); - - if(mwd->uType == MSG_WINDOW_EVT_CLOSE) { - RemoveReadEvents(hContact); - return 0; - } - - if(mwd->uType != MSG_WINDOW_EVT_OPEN) return 0; - - if(!ServiceExists(MS_MSG_MODIFYICON)) return 0; - - char *proto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0); - bool chat_room = (proto && DBGetContactSettingByte(hContact, proto, "ChatRoom", 0) != 0); - - - - StatusIconData sid = {0}; - sid.cbSize = sizeof(sid); - sid.szModule = MODULE; -/* - sid.dwId = 0; - sid.flags = (chat_room ? MBF_HIDDEN : (remove ? MBF_DISABLED : 1)); - CallService(MS_MSG_MODIFYICON, (WPARAM)hContact, (LPARAM)&sid); -*/ - - for (int i = 0; i < 2; ++i) - { - sid.dwId = i; - sid.flags = (chat_room ? MBF_HIDDEN : (i == remove) ? 0 : MBF_HIDDEN); - CallService(MS_MSG_MODIFYICON, (WPARAM)hContact, (LPARAM)&sid); - } - - - - return 0; -} - - -int IconPressed(WPARAM wParam, LPARAM lParam) { - HANDLE hContact = (HANDLE)wParam; - StatusIconClickData *sicd = (StatusIconClickData *)lParam; - if(sicd->cbSize < (int)sizeof(StatusIconClickData)) - return 0; - - if(sicd->flags & MBCF_RIGHTBUTTON) return 0; // ignore right-clicks - if(strcmp(sicd->szModule, MODULE) != 0) return 0; // not our event - - char *proto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0); - bool chat_room = (proto && DBGetContactSettingByte(hContact, proto, "ChatRoom", 0) != 0); - - if(!chat_room) ServiceToggle((WPARAM)hContact, 0); - - return 0; -} - - -// add icon to srmm status icons -void SrmmMenu_Load() -{ - if(ServiceExists(MS_MSG_ADDICON)) { - StatusIconData sid = {0}; - sid.cbSize = sizeof(sid); - sid.szModule = MODULE; - sid.flags = 0; - sid.dwId = 0; -// sid.hIcon = hIconKeep; -// sid.hIconDisabled = hIconRemove; - - sid.szTooltip = Translate("History Enabled"); - sid.hIcon = sid.hIconDisabled = hIconKeep; - - CallService(MS_MSG_ADDICON, 0, (LPARAM)&sid); - - sid.dwId = 1; - sid.szTooltip = Translate("History Disabled"); - sid.hIcon = sid.hIconDisabled = hIconRemove; - CallService(MS_MSG_ADDICON, 0, (LPARAM)&sid); - - - // hook the window events so that we can can change the status of the icon - hEventWindow = HookEvent(ME_MSG_WINDOWEVENT, WindowEvent); - hEventIconPressed = HookEvent(ME_MSG_ICONPRESSED, IconPressed); - } - - -} - -int ModulesLoaded(WPARAM wParam, LPARAM lParam) { - if(ServiceExists(MS_UPDATE_REGISTER)) { - // register with updater - Update update = {0}; - char szVersion[16]; - - update.cbSize = sizeof(Update); - - update.szComponentName = pluginInfo.shortName; - update.pbVersion = (BYTE *)CreateVersionString(pluginInfo.version, szVersion); - update.cpbVersion = (int)strlen((char *)update.pbVersion); - - update.szUpdateURL = UPDATER_AUTOREGISTER; - - // these are the three lines that matter - the archive, the page containing the version string, and the text (or data) - // before the version that we use to locate it on the page - // (note that if the update URL and the version URL point to standard file listing entries, the backend xml - // data will be used to check for updates rather than the actual web page - this is not true for beta urls) - update.szBetaUpdateURL = "http://www.scottellis.com.au/miranda_plugins/no_history.zip"; - update.szBetaVersionURL = "http://www.scottellis.com.au/miranda_plugins/ver_no_history.html"; - update.pbBetaVersionPrefix = (BYTE *)"NoHistory plugin, version "; - - update.cpbBetaVersionPrefix = (int)strlen((char *)update.pbBetaVersionPrefix); - - CallService(MS_UPDATE_REGISTER, 0, (WPARAM)&update); - } - - hServiceToggle = (HANDLE)CreateServiceFunction(MS_NOHISTORY_TOGGLE, ServiceToggle); - hServiceClear = (HANDLE)CreateServiceFunction(MS_NOHISTORY_CLEAR, ServiceClear); - - InitIcons(); - - // create contact menu item - CLISTMENUITEM mi = {0}; - mi.cbSize = sizeof(mi); - mi.flags = CMIM_ALL; - - mi.position = -300010; - mi.pszName = Translate("Disable History"); - mi.pszService = MS_NOHISTORY_TOGGLE; - mi.hIcon = hIconRemove; - hMenuToggle = (HANDLE)CallService(MS_CLIST_ADDCONTACTMENUITEM, 0, (LPARAM)&mi); - - mi.position = -300005; - mi.pszName = Translate("Clear History"); - mi.pszService = MS_NOHISTORY_CLEAR; - mi.hIcon = hIconClear; - hMenuClear = (HANDLE)CallService(MS_CLIST_ADDCONTACTMENUITEM, 0, (LPARAM)&mi); - - hEventMenuPrebuild = HookEvent(ME_CLIST_PREBUILDCONTACTMENU, PrebuildContactMenu); - - // hooked so we can track events added to the database - hEventDbEventAdded = HookEvent(ME_DB_EVENT_ADDED, OnDatabaseEventAdd); - - // add icon to srmm status icons - SrmmMenu_Load(); - - return 0; -} - - -HANDLE hModulesLoaded; -extern "C" __declspec (dllexport) int Load(PLUGINLINK *link) { - pluginLink=link; - - CallService( MS_SYSTEM_GET_MMI, 0, (LPARAM)&mmi ); - - InitializeCriticalSection(&list_cs); - - // fix for wrong module name - ugh - DBVARIANT dbv; - HANDLE hContact = ( HANDLE )CallService( MS_DB_CONTACT_FINDFIRST, 0, 0 ); - while ( hContact != NULL ) - { - if(!DBGetContactSetting(hContact, "NoHostory", DBSETTING_REMOVE, &dbv)) { - if(dbv.type == DBVT_BYTE && dbv.bVal != 0) - DBWriteContactSettingByte(hContact, MODULE, DBSETTING_REMOVE, 1); - DBFreeVariant(&dbv); - DBDeleteContactSetting(hContact, "NoHostory", DBSETTING_REMOVE); - } - hContact = ( HANDLE )CallService( MS_DB_CONTACT_FINDNEXT,( WPARAM )hContact, 0 ); - } - - INITCOMMONCONTROLSEX icex; - - // Ensure that the common control DLL is loaded (for listview) - icex.dwSize = sizeof(INITCOMMONCONTROLSEX); - icex.dwICC = ICC_LISTVIEW_CLASSES; - InitCommonControlsEx(&icex); - - InitOptions(); - // hook modules loaded - hModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded); - return 0; -} - -extern "C" __declspec (dllexport) int Unload(void) { - UnhookEvent(hEventWindow); - UnhookEvent(hEventIconPressed); - - UnhookEvent(hModulesLoaded); - DeinitOptions(); - - UnhookEvent(hEventDbEventAdded); - UnhookEvent(hEventMenuPrebuild); - DestroyServiceFunction(hServiceToggle); - DestroyServiceFunction(hServiceClear); - - RemoveReadEvents(); - DeleteCriticalSection(&list_cs); - - DeinitIcons(); - return 0; -} diff --git a/plugins/!NotAdopted/NoHistory/docs/licence_NoHistory.txt b/plugins/!NotAdopted/NoHistory/docs/licence_NoHistory.txt deleted file mode 100644 index a391390f72..0000000000 --- a/plugins/!NotAdopted/NoHistory/docs/licence_NoHistory.txt +++ /dev/null @@ -1,6 +0,0 @@ -The NoHistory plugin for Miranda-IM is Copyright (c) 2006 Scott Ellis (mail@scottellis.com.au) - -http://www.scottellis.com.au - -It is released under the General Public Licence, available here: -http://www.gnu.org/copyleft/gpl.html \ No newline at end of file diff --git a/plugins/!NotAdopted/NoHistory/history_clear.ico b/plugins/!NotAdopted/NoHistory/history_clear.ico deleted file mode 100644 index 1a95f86f20..0000000000 Binary files a/plugins/!NotAdopted/NoHistory/history_clear.ico and /dev/null differ diff --git a/plugins/!NotAdopted/NoHistory/history_disabled.ico b/plugins/!NotAdopted/NoHistory/history_disabled.ico deleted file mode 100644 index 27225e24fb..0000000000 Binary files a/plugins/!NotAdopted/NoHistory/history_disabled.ico and /dev/null differ diff --git a/plugins/!NotAdopted/NoHistory/history_enabled.ico b/plugins/!NotAdopted/NoHistory/history_enabled.ico deleted file mode 100644 index cee748347d..0000000000 Binary files a/plugins/!NotAdopted/NoHistory/history_enabled.ico and /dev/null differ diff --git a/plugins/!NotAdopted/NoHistory/icons.cpp b/plugins/!NotAdopted/NoHistory/icons.cpp deleted file mode 100644 index b8fcddc70b..0000000000 --- a/plugins/!NotAdopted/NoHistory/icons.cpp +++ /dev/null @@ -1,55 +0,0 @@ -#include "common.h" -#include "icons.h" -#include "resource.h" - -HICON hIconRemove, hIconKeep, hIconClear; -HANDLE hIcoLibIconsChanged = 0; - -int ReloadIcons(WPARAM wParam, LPARAM lParam) { - hIconRemove = Skin_GetIcon(MODULE "_remove"); - hIconKeep = Skin_GetIcon(MODULE "_keep"); - hIconClear = Skin_GetIcon(MODULE "_clear"); - - return 0; -} - -void InitIcons() { - if(ServiceExists(MS_SKIN2_ADDICON)) { - SKINICONDESC sid = {0}; - sid.cbSize = sizeof(SKINICONDESC); - - sid.pszSection = MODULE; - -#define AddIcon(x,y,z) \ - sid.pszDescription = Translate(x); \ - sid.pszName = y; \ - sid.pszDefaultFile = MODULE ".dll"; \ - sid.hDefaultIcon = (HICON)LoadImage(hInst, MAKEINTRESOURCE(z), IMAGE_ICON, 0, 0, 0); \ - CallService(MS_SKIN2_ADDICON, 0, (LPARAM)&sid); \ - sid.iDefaultIndex++; - - AddIcon("Disable", MODULE "_remove", IDI_HREMOVE); - AddIcon("Enable", MODULE "_keep", IDI_HKEEP); - AddIcon("Clear", MODULE "_clear", IDI_HCLEAR); - -#undef AddIcon - - ReloadIcons(0, 0); - - hIcoLibIconsChanged = HookEvent(ME_SKIN2_ICONSCHANGED, ReloadIcons); - } else { - hIconRemove = (HICON)LoadImage(hInst, MAKEINTRESOURCE(IDI_HREMOVE), IMAGE_ICON, 0, 0, 0);//LR_LOADTRANSPARENT | LR_LOADMAP3DCOLORS ); - hIconKeep = (HICON)LoadImage(hInst, MAKEINTRESOURCE(IDI_HKEEP), IMAGE_ICON, 0, 0, 0);//LR_LOADTRANSPARENT | LR_LOADMAP3DCOLORS ); - hIconClear = (HICON)LoadImage(hInst, MAKEINTRESOURCE(IDI_HCLEAR), IMAGE_ICON, 0, 0, 0);//LR_LOADTRANSPARENT | LR_LOADMAP3DCOLORS ); - } - -} - -void DeinitIcons() { - if(hIcoLibIconsChanged) UnhookEvent(hIcoLibIconsChanged); - else { - DestroyIcon(hIconRemove); - DestroyIcon(hIconKeep); - DestroyIcon(hIconClear); - } -} diff --git a/plugins/!NotAdopted/NoHistory/icons.h b/plugins/!NotAdopted/NoHistory/icons.h deleted file mode 100644 index 88fae4be67..0000000000 --- a/plugins/!NotAdopted/NoHistory/icons.h +++ /dev/null @@ -1,9 +0,0 @@ -#ifndef _ICONS_INC -#define _ICONS_INC - -extern HICON hIconRemove, hIconKeep, hIconClear; - -void InitIcons(); -void DeinitIcons(); - -#endif diff --git a/plugins/!NotAdopted/NoHistory/options.cpp b/plugins/!NotAdopted/NoHistory/options.cpp deleted file mode 100644 index 7e73253613..0000000000 --- a/plugins/!NotAdopted/NoHistory/options.cpp +++ /dev/null @@ -1,274 +0,0 @@ -#include "common.h" -#include "options.h" -#include "resource.h" -#include "icons.h" - -static void SetListGroupIcons(HWND hwndList,HANDLE hFirstItem,HANDLE hParentItem,int *groupChildCount) -{ - int typeOfFirst; - int iconOn = 1; - int childCount = 0; - int iImage; - HANDLE hItem,hChildItem; - - typeOfFirst=SendMessage(hwndList,CLM_GETITEMTYPE,(WPARAM)hFirstItem,0); - //check groups - if(typeOfFirst==CLCIT_GROUP) hItem=hFirstItem; - else hItem=(HANDLE)SendMessage(hwndList,CLM_GETNEXTITEM,CLGN_NEXTGROUP,(LPARAM)hFirstItem); - while(hItem) { - hChildItem=(HANDLE)SendMessage(hwndList,CLM_GETNEXTITEM,CLGN_CHILD,(LPARAM)hItem); - if(hChildItem) SetListGroupIcons(hwndList,hChildItem,hItem,&childCount); - if(iconOn && SendMessage(hwndList,CLM_GETEXTRAIMAGE,(WPARAM)hItem,0)==0) iconOn=0; - hItem=(HANDLE)SendMessage(hwndList,CLM_GETNEXTITEM,CLGN_NEXTGROUP,(LPARAM)hItem); - } - //check contacts - if(typeOfFirst==CLCIT_CONTACT) hItem=hFirstItem; - else hItem=(HANDLE)SendMessage(hwndList,CLM_GETNEXTITEM,CLGN_NEXTCONTACT,(LPARAM)hFirstItem); - while(hItem) { - iImage=SendMessage(hwndList,CLM_GETEXTRAIMAGE,(WPARAM)hItem,0); - if(iconOn && iImage==0) iconOn=0; - if(iImage!=0xFF) childCount++; - hItem=(HANDLE)SendMessage(hwndList,CLM_GETNEXTITEM,CLGN_NEXTCONTACT,(LPARAM)hItem); - } - //set icons - SendMessage(hwndList,CLM_SETEXTRAIMAGE,(WPARAM)hParentItem,MAKELPARAM(0,childCount?(iconOn?1:0):0xFF)); - if(groupChildCount) *groupChildCount+=childCount; -} - -static void SetAllChildIcons(HWND hwndList,HANDLE hFirstItem,int iColumn,int iImage) -{ - int typeOfFirst,iOldIcon; - HANDLE hItem,hChildItem; - - typeOfFirst=SendMessage(hwndList,CLM_GETITEMTYPE,(WPARAM)hFirstItem,0); - //check groups - if(typeOfFirst==CLCIT_GROUP) hItem=hFirstItem; - else hItem=(HANDLE)SendMessage(hwndList,CLM_GETNEXTITEM,CLGN_NEXTGROUP,(LPARAM)hFirstItem); - while(hItem) { - hChildItem=(HANDLE)SendMessage(hwndList,CLM_GETNEXTITEM,CLGN_CHILD,(LPARAM)hItem); - if(hChildItem) SetAllChildIcons(hwndList,hChildItem,iColumn,iImage); - hItem=(HANDLE)SendMessage(hwndList,CLM_GETNEXTITEM,CLGN_NEXTGROUP,(LPARAM)hItem); - } - //check contacts - if(typeOfFirst==CLCIT_CONTACT) hItem=hFirstItem; - else hItem=(HANDLE)SendMessage(hwndList,CLM_GETNEXTITEM,CLGN_NEXTCONTACT,(LPARAM)hFirstItem); - while(hItem) { - iOldIcon=SendMessage(hwndList,CLM_GETEXTRAIMAGE,(WPARAM)hItem,iColumn); - if(iOldIcon!=0xFF && iOldIcon!=iImage) SendMessage(hwndList,CLM_SETEXTRAIMAGE,(WPARAM)hItem,MAKELPARAM(iColumn,iImage)); - hItem=(HANDLE)SendMessage(hwndList,CLM_GETNEXTITEM,CLGN_NEXTCONTACT,(LPARAM)hItem); - } -} - - -static void ResetListOptions(HWND hwndList) -{ - int i; - - SendMessage(hwndList,CLM_SETBKBITMAP,0,(LPARAM)(HBITMAP)NULL); - SendMessage(hwndList,CLM_SETBKCOLOR,GetSysColor(COLOR_WINDOW),0); - SendMessage(hwndList,CLM_SETGREYOUTFLAGS,0,0); - SendMessage(hwndList,CLM_SETLEFTMARGIN,2,0); - SendMessage(hwndList,CLM_SETINDENT,10,0); - for(i=0;i<=FONTID_MAX;i++) - SendMessage(hwndList,CLM_SETTEXTCOLOR,i,GetSysColor(COLOR_WINDOWTEXT)); - SetWindowLong(hwndList,GWL_STYLE,GetWindowLong(hwndList,GWL_STYLE)|CLS_SHOWHIDDEN); -} - -static void SetAllContactIcons(HWND hwndList) -{ - HANDLE hContact,hItem; - bool disabled; - char *proto; - bool chat_room; - - hContact=(HANDLE)CallService(MS_DB_CONTACT_FINDFIRST,0,0); - do { - proto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0); - chat_room = (proto && DBGetContactSettingByte(hContact, proto, "ChatRoom", 0) != 0); - - if(!chat_room) { - hItem=(HANDLE)SendMessage(hwndList,CLM_FINDCONTACT,(WPARAM)hContact,0); - if(hItem) { - disabled = (DBGetContactSettingByte(hContact, MODULE, DBSETTING_REMOVE, 0) == 1); - SendMessage(hwndList,CLM_SETEXTRAIMAGE,(WPARAM)hItem,MAKELPARAM(0,disabled?1:0)); - } - } - } while(hContact=(HANDLE)CallService(MS_DB_CONTACT_FINDNEXT,(WPARAM)hContact,0)); -} - - - -static INT_PTR CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) { - static HANDLE hItemAll; - - switch ( msg ) { - case WM_INITDIALOG: - TranslateDialogDefault( hwndDlg ); - { HIMAGELIST hIml; - hIml=ImageList_Create(GetSystemMetrics(SM_CXSMICON),GetSystemMetrics(SM_CYSMICON),(IsWinVerXPPlus()?ILC_COLOR32:ILC_COLOR16)|ILC_MASK,2,2); - ImageList_AddIcon(hIml,hIconKeep); - ImageList_AddIcon(hIml,hIconRemove); - SendDlgItemMessage(hwndDlg,IDC_LIST,CLM_SETEXTRAIMAGELIST,0,(LPARAM)hIml); - SendDlgItemMessage(hwndDlg,IDC_PIC_KEEP,STM_SETICON,(WPARAM)hIconKeep,0); - SendDlgItemMessage(hwndDlg,IDC_PIC_REMOVE,STM_SETICON,(WPARAM)hIconRemove,0); - } - - ResetListOptions(GetDlgItem(hwndDlg,IDC_LIST)); - SendDlgItemMessage(hwndDlg,IDC_LIST,CLM_SETEXTRACOLUMNS,1,0); - - { CLCINFOITEM cii={0}; - cii.cbSize=sizeof(cii); - cii.flags=CLCIIF_GROUPFONT; - cii.pszText=TranslateT("** All contacts **"); - hItemAll=(HANDLE)SendDlgItemMessage(hwndDlg,IDC_LIST,CLM_ADDINFOITEM,0,(LPARAM)&cii); - } - - SetAllContactIcons(GetDlgItem(hwndDlg,IDC_LIST)); - SetListGroupIcons(GetDlgItem(hwndDlg,IDC_LIST),(HANDLE)SendDlgItemMessage(hwndDlg,IDC_LIST,CLM_GETNEXTITEM,CLGN_ROOT,0),hItemAll,NULL); - - SendDlgItemMessage(hwndDlg, IDC_SPN_TIMEOUT, UDM_SETRANGE, 0, (LPARAM)MAKELONG(60 * 60, 1)); - - return FALSE; - case WM_SETFOCUS: - SetFocus(GetDlgItem(hwndDlg,IDC_LIST)); - break; - case WM_COMMAND: - if ( HIWORD( wParam ) == EN_CHANGE && ( HWND )lParam == GetFocus()) - SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0); - break; - case WM_NOTIFY: - switch(((LPNMHDR)lParam)->idFrom) { - case IDC_LIST: - switch (((LPNMHDR)lParam)->code) - { - case CLN_NEWCONTACT: - case CLN_LISTREBUILT: - SetAllContactIcons(GetDlgItem(hwndDlg,IDC_LIST)); - //fall through - case CLN_CONTACTMOVED: - SetListGroupIcons(GetDlgItem(hwndDlg,IDC_LIST),(HANDLE)SendDlgItemMessage(hwndDlg,IDC_LIST,CLM_GETNEXTITEM,CLGN_ROOT,0),hItemAll,NULL); - break; - case CLN_OPTIONSCHANGED: - ResetListOptions(GetDlgItem(hwndDlg,IDC_LIST)); - break; - case NM_CLICK: - { HANDLE hItem; - NMCLISTCONTROL *nm=(NMCLISTCONTROL*)lParam; - DWORD hitFlags; - int iImage; - int itemType; - - // Make sure we have an extra column - if (nm->iColumn == -1) - break; - - // Find clicked item - hItem = (HANDLE)SendDlgItemMessage(hwndDlg, IDC_LIST, CLM_HITTEST, (WPARAM)&hitFlags, MAKELPARAM(nm->pt.x,nm->pt.y)); - // Nothing was clicked - if (hItem == NULL) break; - // It was not a visbility icon - if (!(hitFlags & CLCHT_ONITEMEXTRA)) break; - - // Get image in clicked column (0=none, 1=visible, 2=invisible) - iImage = SendDlgItemMessage(hwndDlg, IDC_LIST, CLM_GETEXTRAIMAGE, (WPARAM)hItem, MAKELPARAM(nm->iColumn, 0)); - if (iImage == 0) - iImage=nm->iColumn + 1; - else - if (iImage == 1) - iImage = 0; - - // Get item type (contact, group, etc...) - itemType = SendDlgItemMessage(hwndDlg, IDC_LIST, CLM_GETITEMTYPE, (WPARAM)hItem, 0); - - // Update list, making sure that the options are mutually exclusive - if (itemType == CLCIT_CONTACT) { // A contact - SendDlgItemMessage(hwndDlg, IDC_LIST, CLM_SETEXTRAIMAGE, (WPARAM)hItem, MAKELPARAM(nm->iColumn, iImage)); - } - else if (itemType == CLCIT_INFO) { // All Contacts - SetAllChildIcons(GetDlgItem(hwndDlg, IDC_LIST), hItem, nm->iColumn, iImage); - } - else if (itemType == CLCIT_GROUP) { // A group - hItem = (HANDLE)SendDlgItemMessage(hwndDlg, IDC_LIST, CLM_GETNEXTITEM, CLGN_CHILD, (LPARAM)hItem); - if (hItem) { - SetAllChildIcons(GetDlgItem(hwndDlg, IDC_LIST), hItem, nm->iColumn, iImage); - } - } - // Update the all/none icons - SetListGroupIcons(GetDlgItem(hwndDlg, IDC_LIST), (HANDLE)SendDlgItemMessage(hwndDlg, IDC_LIST, CLM_GETNEXTITEM, CLGN_ROOT, 0), hItemAll, NULL); - - // Activate Apply button - SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0); - break; - } - } - break; - case 0: - switch (((LPNMHDR)lParam)->code) - { - case PSN_APPLY: - { HANDLE hContact,hItem; - int iImage; - char *proto; - bool chat_room; - - hContact=(HANDLE)CallService(MS_DB_CONTACT_FINDFIRST,0,0); - do { - proto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0); - chat_room = (proto && DBGetContactSettingByte(hContact, proto, "ChatRoom", 0) != 0); - - if(!chat_room) { - hItem=(HANDLE)SendDlgItemMessage(hwndDlg,IDC_LIST,CLM_FINDCONTACT,(WPARAM)hContact,0); - if(hItem) { - iImage=SendDlgItemMessage(hwndDlg,IDC_LIST,CLM_GETEXTRAIMAGE,(WPARAM)hItem,MAKELPARAM(0,0)); - DBWriteContactSettingByte(hContact, MODULE, DBSETTING_REMOVE, iImage==1?1:0); - } - } - } while(hContact=(HANDLE)CallService(MS_DB_CONTACT_FINDNEXT,(WPARAM)hContact,0)); - - return TRUE; - } - } - break; - } - break; - case WM_DESTROY: - { HIMAGELIST hIml=(HIMAGELIST)SendDlgItemMessage(hwndDlg,IDC_LIST,CLM_GETEXTRAIMAGELIST,0,0); - ImageList_Destroy(hIml); - } - break; - } - - return 0; -} - -int OptInit(WPARAM wParam, LPARAM lParam) { -//#define OPTIONPAGE_OLD_SIZE2 60 - - OPTIONSDIALOGPAGE odp = { 0 }; - odp.cbSize = sizeof(odp); -// odp.cbSize = OPTIONPAGE_OLD_SIZE2; - odp.flags = ODPF_BOLDGROUPS; - //odp.flags |= ODPF_UNICODE; - odp.position = -790000000; - odp.hInstance = hInst; - - odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT); -// odp.pszTitle = "NoHistory"; - odp.pszTitle = "History"; - odp.pszGroup = "Message Sessions"; - odp.pszTab = "Logging"; - odp.nIDBottomSimpleControl = 0; - odp.pfnDlgProc = DlgProcOpts; - CallService( MS_OPT_ADDPAGE, wParam,( LPARAM )&odp ); - - return 0; -} - -HANDLE hEventOptInit; -void InitOptions() { - hEventOptInit = HookEvent(ME_OPT_INITIALISE, OptInit); -} - -void DeinitOptions() { - UnhookEvent(hEventOptInit); -} diff --git a/plugins/!NotAdopted/NoHistory/options.h b/plugins/!NotAdopted/NoHistory/options.h deleted file mode 100644 index f9825ce47c..0000000000 --- a/plugins/!NotAdopted/NoHistory/options.h +++ /dev/null @@ -1,9 +0,0 @@ -#ifndef _OPTIONS_INC -#define _OPTIONS_INC - -extern DWORD event_timeout; - -void InitOptions(); -void DeinitOptions(); - -#endif diff --git a/plugins/!NotAdopted/NoHistory/private.aps b/plugins/!NotAdopted/NoHistory/private.aps deleted file mode 100644 index 343dfb5165..0000000000 Binary files a/plugins/!NotAdopted/NoHistory/private.aps and /dev/null differ diff --git a/plugins/!NotAdopted/NoHistory/private.h b/plugins/!NotAdopted/NoHistory/private.h deleted file mode 100644 index 535dd34c5f..0000000000 --- a/plugins/!NotAdopted/NoHistory/private.h +++ /dev/null @@ -1,24 +0,0 @@ -#ifndef _PRIVATE_H -#define _PRIVATE_H - -/* VERSION DEFINITIONS */ -#define VER_MAJOR 0 -#define VER_MINOR 2 -#define VER_RELEASE 3 -#define VER_BUILD 0 - -#define __STRINGIZE(x) #x -#define VER_STRING __STRINGIZE( VER_MAJOR.VER_MINOR.VER_RELEASE.VER_BUILD ) - -#define DESC_STRING "Prevent miranda from storing any history" -#define COMPANY_NAME "" -#define FILE_VERSION VER_STRING -#define FILE_DESCRIPTION DESC_STRING -#define INTERNAL_NAME "" -#define LEGAL_COPYRIGHT "© Scott Ellis 2005; NightFox 2010" -#define LEGAL_TRADEMARKS "" -#define ORIGINAL_FILENAME "no_history.dll" -#define PRODUCT_NAME DESC_STRING -#define PRODUCT_VERSION VER_STRING - -#endif /*OTR_PRIVATE_H*/ diff --git a/plugins/!NotAdopted/NoHistory/private.rc b/plugins/!NotAdopted/NoHistory/private.rc deleted file mode 100644 index 47bca39ef1..0000000000 --- a/plugins/!NotAdopted/NoHistory/private.rc +++ /dev/null @@ -1,35 +0,0 @@ -/* THIS FILE WILL BE OVERWRITTEN BY DEV-C++ */ -/* DO NOT EDIT! */ - -#include "private.h" -#include "afxres.h" -// -// TO CHANGE VERSION INFORMATION, EDIT PROJECT OPTIONS... -// -1 VERSIONINFO -FILEVERSION VER_MAJOR,VER_MINOR,VER_RELEASE,VER_BUILD -PRODUCTVERSION VER_MAJOR,VER_MINOR,VER_RELEASE,VER_BUILD -FILETYPE VFT_DLL -{ - BLOCK "StringFileInfo" - { - BLOCK "0C0904E4" - { - VALUE "CompanyName", COMPANY_NAME - VALUE "FileVersion", FILE_VERSION - VALUE "FileDescription", FILE_DESCRIPTION - VALUE "InternalName", INTERNAL_NAME - VALUE "LegalCopyright", LEGAL_COPYRIGHT - VALUE "LegalTrademarks", LEGAL_TRADEMARKS - VALUE "OriginalFilename", ORIGINAL_FILENAME - VALUE "ProductName", PRODUCT_NAME - VALUE "ProductVersion", PRODUCT_VERSION - } - } - BLOCK "VarFileInfo" - { - VALUE "Translation", 0x0C09, 1252 - } -} - - diff --git a/plugins/!NotAdopted/NoHistory/resource.aps b/plugins/!NotAdopted/NoHistory/resource.aps deleted file mode 100644 index 5d9d5042ce..0000000000 Binary files a/plugins/!NotAdopted/NoHistory/resource.aps and /dev/null differ diff --git a/plugins/!NotAdopted/NoHistory/resource.h b/plugins/!NotAdopted/NoHistory/resource.h deleted file mode 100644 index 5640d91b59..0000000000 --- a/plugins/!NotAdopted/NoHistory/resource.h +++ /dev/null @@ -1,26 +0,0 @@ -//{{NO_DEPENDENCIES}} -// Microsoft Visual C++ generated include file. -// Used by NoHistory.rc -// -#define IDI_HKEEP 100 -#define IDI_HREMOVE 101 -#define IDI_HCLEAR 102 -#define IDD_OPT 103 -#define IDC_LIST 1000 -#define IDC_PIC_KEEP 1001 -#define IDC_PIC_REMOVE 1002 -#define IDC_BUTTON1 1003 -#define IDC_ED_TIMEOUT 1004 -#define IDC_SPIN1 1005 -#define IDC_SPN_TIMEOUT 1005 - -// Next default values for new objects -// -#ifdef APSTUDIO_INVOKED -#ifndef APSTUDIO_READONLY_SYMBOLS -#define _APS_NEXT_RESOURCE_VALUE 104 -#define _APS_NEXT_COMMAND_VALUE 40001 -#define _APS_NEXT_CONTROL_VALUE 1006 -#define _APS_NEXT_SYMED_VALUE 101 -#endif -#endif diff --git a/plugins/!NotAdopted/NoHistory/resource.rc b/plugins/!NotAdopted/NoHistory/resource.rc deleted file mode 100644 index 12fdadcee4..0000000000 --- a/plugins/!NotAdopted/NoHistory/resource.rc +++ /dev/null @@ -1,2 +0,0 @@ -#include "NoHistory.rc" -#include "private.rc" diff --git a/plugins/NoHistory/NoHistory.rc b/plugins/NoHistory/NoHistory.rc new file mode 100644 index 0000000000..485ca27bd6 --- /dev/null +++ b/plugins/NoHistory/NoHistory.rc @@ -0,0 +1,124 @@ +//Microsoft Developer Studio generated resource script. +// +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "afxres.h" +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// Neutral (Default) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEUD) +#ifdef _WIN32 +LANGUAGE LANG_NEUTRAL, SUBLANG_DEFAULT +#pragma code_page(1251) +#endif //_WIN32 + +///////////////////////////////////////////////////////////////////////////// +// +// Icon +// + +// Icon with lowest ID value placed first to ensure application icon +// remains consistent on all systems. +IDI_HKEEP ICON DISCARDABLE "history_enabled.ico" +IDI_HREMOVE ICON DISCARDABLE "history_disabled.ico" +IDI_HCLEAR ICON DISCARDABLE "history_clear.ico" +#endif // Neutral (Default) resources +///////////////////////////////////////////////////////////////////////////// + + +///////////////////////////////////////////////////////////////////////////// +// English (Australia) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENA) +#ifdef _WIN32 +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_AUS +#pragma code_page(1252) +#endif //_WIN32 + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE MOVEABLE PURE +BEGIN + "resource.h\0" +END + +3 TEXTINCLUDE MOVEABLE PURE +BEGIN + "\r\0" +END + +2 TEXTINCLUDE MOVEABLE PURE +BEGIN + "#include ""afxres.h""\r\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Dialog +// + +IDD_OPT DIALOGEX 0, 0, 312, 235 +STYLE DS_FIXEDSYS | DS_CENTER | WS_CHILD +EXSTYLE WS_EX_CONTROLPARENT +FONT 8, "MS Shell Dlg" +BEGIN + CONTROL "Custom1",IDC_LIST,"CListControl",WS_TABSTOP | 0x1d0,7,7, + 298,192,WS_EX_CLIENTEDGE + ICON IDI_HKEEP,IDC_PIC_KEEP,8,203,21,20 + LTEXT "Keep history for this contact",IDC_STATIC,42,203,263,8, + SS_NOPREFIX | SS_CENTERIMAGE + ICON IDI_HREMOVE,IDC_PIC_REMOVE,8,218,21,20 + LTEXT "Disable history for this contact",IDC_STATIC,42,220,263, + 8,SS_NOPREFIX | SS_CENTERIMAGE +END + + +///////////////////////////////////////////////////////////////////////////// +// +// DESIGNINFO +// + +#ifdef APSTUDIO_INVOKED +GUIDELINES DESIGNINFO MOVEABLE PURE +BEGIN + IDD_OPT, DIALOG + BEGIN + LEFTMARGIN, 7 + RIGHTMARGIN, 305 + VERTGUIDE, 42 + TOPMARGIN, 7 + BOTTOMMARGIN, 228 + HORZGUIDE, 211 + END +END +#endif // APSTUDIO_INVOKED + +#endif // English (Australia) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/plugins/NoHistory/NoHistory.vcxproj b/plugins/NoHistory/NoHistory.vcxproj new file mode 100644 index 0000000000..4992dbd857 --- /dev/null +++ b/plugins/NoHistory/NoHistory.vcxproj @@ -0,0 +1,233 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + NoHistory + {ABF05E2C-C335-4BD1-8C3E-4C63285362CF} + NoHistory + Win32Proj + + + + DynamicLibrary + Unicode + true + + + DynamicLibrary + Unicode + + + DynamicLibrary + Unicode + true + + + DynamicLibrary + Unicode + + + + + + + + + + + + + + + + + + + <_ProjectFileVersion>10.0.40219.1 + $(SolutionDir)$(Configuration)\ + $(Configuration)\ + $(SolutionDir)$(Configuration)\ + $(Configuration)\ + false + $(SolutionDir)$(Configuration)64\Plugins\ + $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ + $(SolutionDir)$(Configuration)64\Plugins\ + $(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\ + false + true + true + + + + Full + ../../include;../../../include;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;_WINDOWS;_USRDLL;NOHISTORY_EXPORTS;%(PreprocessorDefinitions) + true + EnableFastChecks + MultiThreadedDebug + Use + common.h + Level3 + EditAndContinue + 4996;%(DisableSpecificWarnings) + + + Comctl32.lib;%(AdditionalDependencies) + Windows + + + $(IntDir)$(TargetName).lib + $(ProfileDir)..\..\bin10\lib + false + + + + + Full + Size + ../../include;../../../include;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;_WINDOWS;_USRDLL;NOHISTORY_EXPORTS;%(PreprocessorDefinitions) + true + + + MultiThreadedDLL + false + Fast + false + Use + common.h + Level3 + ProgramDatabase + 4996;%(DisableSpecificWarnings) + + + Comctl32.lib;%(AdditionalDependencies) + Windows + true + true + + + $(IntDir)$(TargetName).lib + $(ProfileDir)..\..\bin10\lib + false + + + + + X64 + + + Full + ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + WIN64;_DEBUG;_WINDOWS;_USRDLL;NOHISTORY_EXPORTS;%(PreprocessorDefinitions) + true + EnableFastChecks + MultiThreadedDebug + Use + common.h + Level3 + ProgramDatabase + 4996;%(DisableSpecificWarnings) + + + Comctl32.lib;%(AdditionalDependencies) + Windows + + + $(IntDir)$(TargetName).lib + $(ProfileDir)..\..\bin10\lib + false + + + + + X64 + + + Full + Size + ..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories) + WIN64;NDEBUG;_WINDOWS;_USRDLL;NOHISTORY_EXPORTS;%(PreprocessorDefinitions) + true + + + MultiThreadedDLL + false + Fast + false + Use + common.h + Level3 + ProgramDatabase + 4996;%(DisableSpecificWarnings) + + + Comctl32.lib;%(AdditionalDependencies) + Windows + true + true + + + $(IntDir)$(TargetName).lib + $(ProfileDir)..\..\bin10\lib + false + + + + + Create + Create + Create + Create + + + + + + + + + + + + + + + + + + + true + true + true + true + + + true + true + true + true + + + + + + + \ No newline at end of file diff --git a/plugins/NoHistory/NoHistory.vcxproj.filters b/plugins/NoHistory/NoHistory.vcxproj.filters new file mode 100644 index 0000000000..1fa1822595 --- /dev/null +++ b/plugins/NoHistory/NoHistory.vcxproj.filters @@ -0,0 +1,67 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav + + + + + Source Files + + + Source Files + + + Source Files + + + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + + + Resource Files + + + Resource Files + + + Resource Files + + + + + Resource Files + + + Resource Files + + + Resource Files + + + \ No newline at end of file diff --git a/plugins/NoHistory/common.h b/plugins/NoHistory/common.h new file mode 100644 index 0000000000..060be9624a --- /dev/null +++ b/plugins/NoHistory/common.h @@ -0,0 +1,43 @@ +#define MIRANDA_VER 0x800 + +#ifndef _COMMON_INC +#define _COMMON_INC + +#define _WIN32_WINNT 0x0501 +#define _WIN32_IE 0x0500 + +#include + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#define MODULE "NoHistory" +#define DBSETTING_REMOVE "RemoveHistory" + +extern HINSTANCE hInst; + +#ifndef MIID_NOHISTORY +#define MIID_NOHISTORY {0xe9ba130e, 0x9927, 0x4469, { 0xb6, 0x19, 0x95, 0x61, 0xa8, 0xc0, 0x57, 0xa7}} +#endif + +#endif + + +void SrmmMenu_Load(); +void SrmmMenu_Unload(); + + diff --git a/plugins/NoHistory/dllmain.cpp b/plugins/NoHistory/dllmain.cpp new file mode 100644 index 0000000000..2a76dc620a --- /dev/null +++ b/plugins/NoHistory/dllmain.cpp @@ -0,0 +1,375 @@ +/* Replace "dll.h" with the name of your header */ +#include "common.h" +#include "private.h" +#include "resource.h" +#include "icons.h" +#include "options.h" + +#include + +/////////////////////////////////////////////// +// Common Plugin Stuff +/////////////////////////////////////////////// +HINSTANCE hInst; +int hLangpack = 0; + +// add icon to srmm status icons +static void SrmmMenu_UpdateIcon(HANDLE hContact); +static int SrmmMenu_ProcessEvent(WPARAM wParam, LPARAM lParam); +static int SrmmMenu_ProcessIconClick(WPARAM wParam, LPARAM lParam); + + +HANDLE hEventDbEventAdded, hEventMenuPrebuild, hMenuToggle, hMenuClear, hServiceToggle, hServiceClear, hEventWindow, hEventIconPressed; + +CRITICAL_SECTION list_cs; + +#define MS_NOHISTORY_TOGGLE MODULE "/ToggleOnOff" +#define MS_NOHISTORY_CLEAR MODULE "/Clear" + +#define DBSETTING_REMOVE "RemoveHistory" + +// a list of db events - we'll check them for the 'read' flag periodically and delete them whwen marked as read +struct EventListNode { + HANDLE hContact, hDBEvent; + EventListNode *next; +}; + +EventListNode *event_list = 0; + +// plugin stuff +PLUGININFOEX pluginInfo={ + sizeof(PLUGININFOEX), + MODULE, + PLUGIN_MAKE_VERSION(VER_MAJOR, VER_MINOR, VER_RELEASE, VER_BUILD), + DESC_STRING, + "Scott Ellis, NightFox", + "mail@scottellis.com.au; nightfox@myied.org", + "© 2005 Scott Ellis; NightFox 2010", + "http://www.scottellis.com.au/", + UNICODE_AWARE, //not transient + { 0xb25e8c7b, 0x292b, 0x495a, { 0x9f, 0xb8, 0xa4, 0xc3, 0xd4, 0xee, 0xb0, 0x4b } } // {B25E8C7B-292B-495a-9FB8-A4C3D4EEB04B} +}; + +extern "C" BOOL APIENTRY DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved) { + hInst=hinstDLL; + return TRUE; +} + +extern "C" __declspec (dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) { + return &pluginInfo; +} + +static const MUUID interfaces[] = {MIID_NOHISTORY, MIID_LAST}; +extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void) { + return interfaces; +} + + + +void RemoveReadEvents(HANDLE hContact = 0) { + DBEVENTINFO info = {0}; + info.cbSize = sizeof(info); + bool remove; + + EnterCriticalSection(&list_cs); + EventListNode *node = event_list, *prev = 0; + while(node) { + remove = false; + if(hContact == 0 || hContact == node->hContact) { + info.cbBlob = 0; + if(!CallService(MS_DB_EVENT_GET, (WPARAM)node->hDBEvent, (LPARAM)&info)) { + if((info.flags & DBEF_READ) || (info.flags & DBEF_SENT)) // note: already checked event type when added to list + remove = true; + } else { + // could not get event info - maybe someone else deleted it - so remove list node + remove = true; + } + } + + if(remove) { + if(DBGetContactSettingByte(node->hContact, MODULE, DBSETTING_REMOVE, 0)) // is history disabled for this contact? + CallService(MS_DB_EVENT_DELETE, (WPARAM)node->hContact, (LPARAM)node->hDBEvent); + + // remove list node anyway + if(event_list == node) event_list = node->next; + if(prev) prev->next = node->next; + + free(node); + + if(prev) node = prev->next; + else node = event_list; + } else { + prev = node; + node = node->next; + } + } + + LeaveCriticalSection(&list_cs); +} + +void RemoveAllEvents(HANDLE hContact) { + HANDLE hDBEvent = (HANDLE)CallService(MS_DB_EVENT_FINDFIRST, (WPARAM)hContact, 0), hDBEventNext; + while(hDBEvent) { + hDBEventNext = (HANDLE)CallService(MS_DB_EVENT_FINDNEXT, (WPARAM)hDBEvent, 0); + CallService(MS_DB_EVENT_DELETE, (WPARAM)hContact, (LPARAM)hDBEvent); + hDBEvent = hDBEventNext; + } + +} + +void CALLBACK TimerProc(HWND hWnd, UINT uMsg, UINT idEvent, DWORD dwTime) { + RemoveReadEvents(); +} + + +int OnDatabaseEventAdd(WPARAM wParam, LPARAM lParam) { + HANDLE hContact = (HANDLE)wParam, hDBEvent = (HANDLE)lParam; + + // history not disabled for this contact + if(DBGetContactSettingByte(hContact, MODULE, DBSETTING_REMOVE, 0) == 0) + return 0; + + DBEVENTINFO info = {0}; + info.cbSize = sizeof(info); + if(!CallService(MS_DB_EVENT_GET, (WPARAM)hDBEvent, (LPARAM)&info)) { + if(info.eventType == EVENTTYPE_MESSAGE) { + EventListNode *node = (EventListNode *)malloc(sizeof(EventListNode)); + node->hContact = hContact; + node->hDBEvent = hDBEvent; + + EnterCriticalSection(&list_cs); + node->next = event_list; + event_list = node; + LeaveCriticalSection(&list_cs); + } + } + + return 0; +} + + +INT_PTR ServiceClear(WPARAM wParam, LPARAM lParam) { + if(MessageBox(0, TranslateT("This operation will PERMANENTLY REMOVE all history for this contact.\nAre you sure you want to do this?"), TranslateT("Clear History"), MB_YESNO | MB_ICONWARNING) == IDYES) { + HANDLE hContact = (HANDLE)wParam; + RemoveAllEvents(hContact); + } + + return 0; +} + +int PrebuildContactMenu(WPARAM wParam, LPARAM lParam) { + HANDLE hContact = (HANDLE)wParam; + + bool remove = (DBGetContactSettingByte(hContact, MODULE, DBSETTING_REMOVE, 0) != 0); + char *proto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0); + bool chat_room = (proto && DBGetContactSettingByte(hContact, proto, "ChatRoom", 0) != 0); + + CLISTMENUITEM mi = {0}; + mi.cbSize = sizeof(mi); + + mi.flags = CMIM_FLAGS|CMIF_TCHAR; + if(chat_room) mi.flags |= CMIF_HIDDEN; + else { + mi.flags |= (CMIM_NAME | CMIM_ICON); + mi.ptszName = (remove ? LPGENT("Enable History") : LPGENT("Disable History")); + mi.hIcon = (remove ? hIconKeep : hIconRemove); + } + CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hMenuToggle, (LPARAM)&mi); + + mi.flags = CMIM_FLAGS; + if(chat_room) mi.flags |= CMIF_HIDDEN; + else { + int event_count = (int)CallService(MS_DB_EVENT_GETCOUNT, (WPARAM)hContact, 0); + if(event_count <= 0) mi.flags |= CMIF_HIDDEN; + } + CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hMenuClear, (LPARAM)&mi); + + return 0; +} + +INT_PTR ServiceToggle(WPARAM wParam, LPARAM lParam) { + HANDLE hContact = (HANDLE)wParam; + + int remove = (DBGetContactSettingByte(hContact, MODULE, DBSETTING_REMOVE, 0) != 0); + remove = !remove; + DBWriteContactSettingByte(hContact, MODULE, DBSETTING_REMOVE, (remove ? 1 : 0)); + + StatusIconData sid = {0}; + sid.cbSize = sizeof(sid); + sid.szModule = MODULE; + + + for (int i = 0; i < 2; ++i) + { + sid.dwId = i; + sid.flags = (i == remove) ? 0 : MBF_HIDDEN; + CallService(MS_MSG_MODIFYICON, (WPARAM)hContact, (LPARAM)&sid); + } +/* + sid.dwId = 0; + sid.flags = (remove ? MBF_DISABLED : 0); + CallService(MS_MSG_MODIFYICON, (WPARAM)hContact, (LPARAM)&sid); +*/ + return 0; +} + +int WindowEvent(WPARAM wParam, LPARAM lParam) { + MessageWindowEventData *mwd = (MessageWindowEventData *)lParam; + HANDLE hContact = mwd->hContact; + int remove = (DBGetContactSettingByte(hContact, MODULE, DBSETTING_REMOVE, 0) != 0); + + if(mwd->uType == MSG_WINDOW_EVT_CLOSE) { + RemoveReadEvents(hContact); + return 0; + } + + if(mwd->uType != MSG_WINDOW_EVT_OPEN) return 0; + + if(!ServiceExists(MS_MSG_MODIFYICON)) return 0; + + char *proto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0); + bool chat_room = (proto && DBGetContactSettingByte(hContact, proto, "ChatRoom", 0) != 0); + + + + StatusIconData sid = {0}; + sid.cbSize = sizeof(sid); + sid.szModule = MODULE; +/* + sid.dwId = 0; + sid.flags = (chat_room ? MBF_HIDDEN : (remove ? MBF_DISABLED : 1)); + CallService(MS_MSG_MODIFYICON, (WPARAM)hContact, (LPARAM)&sid); +*/ + + for (int i = 0; i < 2; ++i) + { + sid.dwId = i; + sid.flags = (chat_room ? MBF_HIDDEN : (i == remove) ? 0 : MBF_HIDDEN); + CallService(MS_MSG_MODIFYICON, (WPARAM)hContact, (LPARAM)&sid); + } + + + + return 0; +} + + +int IconPressed(WPARAM wParam, LPARAM lParam) { + HANDLE hContact = (HANDLE)wParam; + StatusIconClickData *sicd = (StatusIconClickData *)lParam; + if(sicd->cbSize < (int)sizeof(StatusIconClickData)) + return 0; + + if(sicd->flags & MBCF_RIGHTBUTTON) return 0; // ignore right-clicks + if(strcmp(sicd->szModule, MODULE) != 0) return 0; // not our event + + char *proto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0); + bool chat_room = (proto && DBGetContactSettingByte(hContact, proto, "ChatRoom", 0) != 0); + + if(!chat_room) ServiceToggle((WPARAM)hContact, 0); + + return 0; +} + + +// add icon to srmm status icons +void SrmmMenu_Load() +{ + if(ServiceExists(MS_MSG_ADDICON)) { + StatusIconData sid = {0}; + sid.cbSize = sizeof(sid); + sid.szModule = MODULE; + sid.flags = 0; + sid.dwId = 0; +// sid.hIcon = hIconKeep; +// sid.hIconDisabled = hIconRemove; + + sid.szTooltip = Translate("History Enabled"); + sid.hIcon = sid.hIconDisabled = hIconKeep; + + CallService(MS_MSG_ADDICON, 0, (LPARAM)&sid); + + sid.dwId = 1; + sid.szTooltip = Translate("History Disabled"); + sid.hIcon = sid.hIconDisabled = hIconRemove; + CallService(MS_MSG_ADDICON, 0, (LPARAM)&sid); + + + // hook the window events so that we can can change the status of the icon + hEventWindow = HookEvent(ME_MSG_WINDOWEVENT, WindowEvent); + hEventIconPressed = HookEvent(ME_MSG_ICONPRESSED, IconPressed); + } + + +} + +int ModulesLoaded(WPARAM wParam, LPARAM lParam) { + InitIcons(); + + // create contact menu item + CLISTMENUITEM mi = {0}; + mi.cbSize = sizeof(mi); + mi.flags = CMIF_TCHAR; + + mi.position = -300010; + mi.ptszName = LPGENT("Disable History"); + mi.pszService = MS_NOHISTORY_TOGGLE; + mi.hIcon = hIconRemove; + hMenuToggle = Menu_AddMainMenuItem(&mi); + + mi.position = -300005; + mi.ptszName = LPGENT("Clear History"); + mi.pszService = MS_NOHISTORY_CLEAR; + mi.hIcon = hIconClear; + hMenuClear = Menu_AddMainMenuItem(&mi); + + // add icon to srmm status icons + SrmmMenu_Load(); + + return 0; +} + + +HANDLE hModulesLoaded; +extern "C" __declspec (dllexport) int Load() { + InitializeCriticalSection(&list_cs); + mir_getLP(&pluginInfo); + + // Ensure that the common control DLL is loaded (for listview) + INITCOMMONCONTROLSEX icex; + icex.dwSize = sizeof(INITCOMMONCONTROLSEX); + icex.dwICC = ICC_LISTVIEW_CLASSES; + InitCommonControlsEx(&icex); + + InitOptions(); + + hEventMenuPrebuild = HookEvent(ME_CLIST_PREBUILDCONTACTMENU, PrebuildContactMenu); + // hooked so we can track events added to the database + hEventDbEventAdded = HookEvent(ME_DB_EVENT_ADDED, OnDatabaseEventAdd); + // hook modules loaded + hModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded); + + hServiceToggle = CreateServiceFunction(MS_NOHISTORY_TOGGLE, ServiceToggle); + hServiceClear = CreateServiceFunction(MS_NOHISTORY_CLEAR, ServiceClear); + + return 0; +} + +extern "C" __declspec (dllexport) int Unload(void) { + UnhookEvent(hEventWindow); + UnhookEvent(hEventIconPressed); + + UnhookEvent(hModulesLoaded); + DeinitOptions(); + + UnhookEvent(hEventDbEventAdded); + UnhookEvent(hEventMenuPrebuild); + DestroyServiceFunction(hServiceToggle); + DestroyServiceFunction(hServiceClear); + + RemoveReadEvents(); + DeleteCriticalSection(&list_cs); + + DeinitIcons(); + return 0; +} diff --git a/plugins/NoHistory/docs/licence_NoHistory.txt b/plugins/NoHistory/docs/licence_NoHistory.txt new file mode 100644 index 0000000000..a391390f72 --- /dev/null +++ b/plugins/NoHistory/docs/licence_NoHistory.txt @@ -0,0 +1,6 @@ +The NoHistory plugin for Miranda-IM is Copyright (c) 2006 Scott Ellis (mail@scottellis.com.au) + +http://www.scottellis.com.au + +It is released under the General Public Licence, available here: +http://www.gnu.org/copyleft/gpl.html \ No newline at end of file diff --git a/plugins/NoHistory/history_clear.ico b/plugins/NoHistory/history_clear.ico new file mode 100644 index 0000000000..1a95f86f20 Binary files /dev/null and b/plugins/NoHistory/history_clear.ico differ diff --git a/plugins/NoHistory/history_disabled.ico b/plugins/NoHistory/history_disabled.ico new file mode 100644 index 0000000000..27225e24fb Binary files /dev/null and b/plugins/NoHistory/history_disabled.ico differ diff --git a/plugins/NoHistory/history_enabled.ico b/plugins/NoHistory/history_enabled.ico new file mode 100644 index 0000000000..cee748347d Binary files /dev/null and b/plugins/NoHistory/history_enabled.ico differ diff --git a/plugins/NoHistory/icons.cpp b/plugins/NoHistory/icons.cpp new file mode 100644 index 0000000000..6bfff6a424 --- /dev/null +++ b/plugins/NoHistory/icons.cpp @@ -0,0 +1,49 @@ +#include "common.h" +#include "icons.h" +#include "resource.h" + +HICON hIconRemove, hIconKeep, hIconClear; +HANDLE hIcoLibIconsChanged = 0; + +int ReloadIcons(WPARAM wParam, LPARAM lParam) { + hIconRemove = Skin_GetIcon(MODULE "_remove"); + hIconKeep = Skin_GetIcon(MODULE "_keep"); + hIconClear = Skin_GetIcon(MODULE "_clear"); + + return 0; +} + +void InitIcons() { + SKINICONDESC sid = {0}; + sid.cbSize = sizeof(SKINICONDESC); + + sid.ptszSection = _T(MODULE); + sid.flags = SIDF_ALL_TCHAR; + + TCHAR path[MAX_PATH]; + GetModuleFileName(hInst,path,MAX_PATH); + +#define AddIcon(x,y,z) \ + sid.ptszDescription = x; \ + sid.pszName = y; \ + sid.ptszDefaultFile = path; \ + sid.hDefaultIcon = (HICON)LoadImage(hInst, MAKEINTRESOURCE(z), IMAGE_ICON, 0, 0, 0); \ + Skin_AddIcon(&sid); \ + sid.iDefaultIndex++; + + AddIcon(LPGENT("Disable"), MODULE "_remove", IDI_HREMOVE); + AddIcon(LPGENT("Enable"), MODULE "_keep", IDI_HKEEP); + AddIcon(LPGENT("Clear"), MODULE "_clear", IDI_HCLEAR); + +#undef AddIcon + + ReloadIcons(0, 0); + + hIcoLibIconsChanged = HookEvent(ME_SKIN2_ICONSCHANGED, ReloadIcons); + +} + +void DeinitIcons() { + if(hIcoLibIconsChanged) + UnhookEvent(hIcoLibIconsChanged); +} diff --git a/plugins/NoHistory/icons.h b/plugins/NoHistory/icons.h new file mode 100644 index 0000000000..88fae4be67 --- /dev/null +++ b/plugins/NoHistory/icons.h @@ -0,0 +1,9 @@ +#ifndef _ICONS_INC +#define _ICONS_INC + +extern HICON hIconRemove, hIconKeep, hIconClear; + +void InitIcons(); +void DeinitIcons(); + +#endif diff --git a/plugins/NoHistory/options.cpp b/plugins/NoHistory/options.cpp new file mode 100644 index 0000000000..45b2c876eb --- /dev/null +++ b/plugins/NoHistory/options.cpp @@ -0,0 +1,253 @@ +#include "common.h" +#include "options.h" +#include "resource.h" +#include "icons.h" + +static void SetListGroupIcons(HWND hwndList,HANDLE hFirstItem,HANDLE hParentItem,int *groupChildCount) +{ + int iconOn = 1; + int childCount = 0; + int iImage; + HANDLE hItem; + + int typeOfFirst=SendMessage(hwndList,CLM_GETITEMTYPE,(WPARAM)hFirstItem,0); + //check groups + if(typeOfFirst==CLCIT_GROUP) hItem=hFirstItem; + else hItem=(HANDLE)SendMessage(hwndList,CLM_GETNEXTITEM,CLGN_NEXTGROUP,(LPARAM)hFirstItem); + while(hItem) { + HANDLE hChildItem=(HANDLE)SendMessage(hwndList,CLM_GETNEXTITEM,CLGN_CHILD,(LPARAM)hItem); + if(hChildItem) SetListGroupIcons(hwndList,hChildItem,hItem,&childCount); + if(iconOn && SendMessage(hwndList,CLM_GETEXTRAIMAGE,(WPARAM)hItem,0)==0) iconOn=0; + hItem=(HANDLE)SendMessage(hwndList,CLM_GETNEXTITEM,CLGN_NEXTGROUP,(LPARAM)hItem); + } + //check contacts + if(typeOfFirst==CLCIT_CONTACT) hItem=hFirstItem; + else hItem=(HANDLE)SendMessage(hwndList,CLM_GETNEXTITEM,CLGN_NEXTCONTACT,(LPARAM)hFirstItem); + while(hItem) { + iImage=SendMessage(hwndList,CLM_GETEXTRAIMAGE,(WPARAM)hItem,0); + if(iconOn && iImage==0) iconOn=0; + if(iImage!=0xFF) childCount++; + hItem=(HANDLE)SendMessage(hwndList,CLM_GETNEXTITEM,CLGN_NEXTCONTACT,(LPARAM)hItem); + } + //set icons + SendMessage(hwndList,CLM_SETEXTRAIMAGE,(WPARAM)hParentItem,MAKELPARAM(0,childCount?(iconOn?1:0):0xFF)); + if(groupChildCount) *groupChildCount+=childCount; +} + +static void SetAllChildIcons(HWND hwndList,HANDLE hFirstItem,int iColumn,int iImage) +{ + HANDLE hItem; + + int typeOfFirst=SendMessage(hwndList,CLM_GETITEMTYPE,(WPARAM)hFirstItem,0); + //check groups + if(typeOfFirst==CLCIT_GROUP) hItem=hFirstItem; + else hItem=(HANDLE)SendMessage(hwndList,CLM_GETNEXTITEM,CLGN_NEXTGROUP,(LPARAM)hFirstItem); + while(hItem) { + HANDLE hChildItem=(HANDLE)SendMessage(hwndList,CLM_GETNEXTITEM,CLGN_CHILD,(LPARAM)hItem); + if(hChildItem) SetAllChildIcons(hwndList,hChildItem,iColumn,iImage); + hItem=(HANDLE)SendMessage(hwndList,CLM_GETNEXTITEM,CLGN_NEXTGROUP,(LPARAM)hItem); + } + //check contacts + if(typeOfFirst==CLCIT_CONTACT) hItem=hFirstItem; + else hItem=(HANDLE)SendMessage(hwndList,CLM_GETNEXTITEM,CLGN_NEXTCONTACT,(LPARAM)hFirstItem); + while(hItem) { + int iOldIcon=SendMessage(hwndList,CLM_GETEXTRAIMAGE,(WPARAM)hItem,iColumn); + if(iOldIcon!=0xFF && iOldIcon!=iImage) SendMessage(hwndList,CLM_SETEXTRAIMAGE,(WPARAM)hItem,MAKELPARAM(iColumn,iImage)); + hItem=(HANDLE)SendMessage(hwndList,CLM_GETNEXTITEM,CLGN_NEXTCONTACT,(LPARAM)hItem); + } +} + + +static void ResetListOptions(HWND hwndList) +{ + SendMessage(hwndList,CLM_SETBKBITMAP,0,(LPARAM)(HBITMAP)NULL); + SendMessage(hwndList,CLM_SETBKCOLOR,GetSysColor(COLOR_WINDOW),0); + SendMessage(hwndList,CLM_SETGREYOUTFLAGS,0,0); + SendMessage(hwndList,CLM_SETLEFTMARGIN,2,0); + SendMessage(hwndList,CLM_SETINDENT,10,0); + for(int i=0;i<=FONTID_MAX;i++) + SendMessage(hwndList,CLM_SETTEXTCOLOR,i,GetSysColor(COLOR_WINDOWTEXT)); + SetWindowLong(hwndList,GWL_STYLE,GetWindowLong(hwndList,GWL_STYLE)|CLS_SHOWHIDDEN); +} + +static void SetAllContactIcons(HWND hwndList) +{ + HANDLE hContact = db_find_first(); + do { + char *proto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0); + bool chat_room = (proto && DBGetContactSettingByte(hContact, proto, "ChatRoom", 0) != 0); + + if(!chat_room) { + HANDLE hItem=(HANDLE)SendMessage(hwndList,CLM_FINDCONTACT,(WPARAM)hContact,0); + if(hItem) { + bool disabled = (DBGetContactSettingByte(hContact, MODULE, DBSETTING_REMOVE, 0) == 1); + SendMessage(hwndList,CLM_SETEXTRAIMAGE,(WPARAM)hItem,MAKELPARAM(0,disabled?1:0)); + } + } + } while(hContact = db_find_next(hContact)); +} + + + +static INT_PTR CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) { + static HANDLE hItemAll; + + switch ( msg ) { + case WM_INITDIALOG: + TranslateDialogDefault( hwndDlg ); + { HIMAGELIST hIml; + hIml=ImageList_Create(GetSystemMetrics(SM_CXSMICON),GetSystemMetrics(SM_CYSMICON),(IsWinVerXPPlus()?ILC_COLOR32:ILC_COLOR16)|ILC_MASK,2,2); + ImageList_AddIcon(hIml,hIconKeep); + ImageList_AddIcon(hIml,hIconRemove); + SendDlgItemMessage(hwndDlg,IDC_LIST,CLM_SETEXTRAIMAGELIST,0,(LPARAM)hIml); + SendDlgItemMessage(hwndDlg,IDC_PIC_KEEP,STM_SETICON,(WPARAM)hIconKeep,0); + SendDlgItemMessage(hwndDlg,IDC_PIC_REMOVE,STM_SETICON,(WPARAM)hIconRemove,0); + } + + ResetListOptions(GetDlgItem(hwndDlg,IDC_LIST)); + SendDlgItemMessage(hwndDlg,IDC_LIST,CLM_SETEXTRACOLUMNS,1,0); + + { CLCINFOITEM cii={0}; + cii.cbSize=sizeof(cii); + cii.flags=CLCIIF_GROUPFONT; + cii.pszText=TranslateT("** All contacts **"); + hItemAll=(HANDLE)SendDlgItemMessage(hwndDlg,IDC_LIST,CLM_ADDINFOITEM,0,(LPARAM)&cii); + } + + SetAllContactIcons(GetDlgItem(hwndDlg,IDC_LIST)); + SetListGroupIcons(GetDlgItem(hwndDlg,IDC_LIST),(HANDLE)SendDlgItemMessage(hwndDlg,IDC_LIST,CLM_GETNEXTITEM,CLGN_ROOT,0),hItemAll,NULL); + + SendDlgItemMessage(hwndDlg, IDC_SPN_TIMEOUT, UDM_SETRANGE, 0, (LPARAM)MAKELONG(60 * 60, 1)); + + return FALSE; + case WM_SETFOCUS: + SetFocus(GetDlgItem(hwndDlg,IDC_LIST)); + break; + case WM_COMMAND: + if ( HIWORD( wParam ) == EN_CHANGE && ( HWND )lParam == GetFocus()) + SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0); + break; + case WM_NOTIFY: + switch(((LPNMHDR)lParam)->idFrom) { + case IDC_LIST: + switch (((LPNMHDR)lParam)->code) + { + case CLN_NEWCONTACT: + case CLN_LISTREBUILT: + SetAllContactIcons(GetDlgItem(hwndDlg,IDC_LIST)); + //fall through + case CLN_CONTACTMOVED: + SetListGroupIcons(GetDlgItem(hwndDlg,IDC_LIST),(HANDLE)SendDlgItemMessage(hwndDlg,IDC_LIST,CLM_GETNEXTITEM,CLGN_ROOT,0),hItemAll,NULL); + break; + case CLN_OPTIONSCHANGED: + ResetListOptions(GetDlgItem(hwndDlg,IDC_LIST)); + break; + case NM_CLICK: + { + NMCLISTCONTROL *nm=(NMCLISTCONTROL*)lParam; + DWORD hitFlags; + + // Make sure we have an extra column + if (nm->iColumn == -1) + break; + + // Find clicked item + HANDLE hItem = (HANDLE)SendDlgItemMessage(hwndDlg, IDC_LIST, CLM_HITTEST, (WPARAM)&hitFlags, MAKELPARAM(nm->pt.x,nm->pt.y)); + // Nothing was clicked + if (hItem == NULL) break; + // It was not a visbility icon + if (!(hitFlags & CLCHT_ONITEMEXTRA)) break; + + // Get image in clicked column (0=none, 1=visible, 2=invisible) + int iImage = SendDlgItemMessage(hwndDlg, IDC_LIST, CLM_GETEXTRAIMAGE, (WPARAM)hItem, MAKELPARAM(nm->iColumn, 0)); + if (iImage == 0) + iImage=nm->iColumn + 1; + else + if (iImage == 1) + iImage = 0; + + // Get item type (contact, group, etc...) + int itemType = SendDlgItemMessage(hwndDlg, IDC_LIST, CLM_GETITEMTYPE, (WPARAM)hItem, 0); + + // Update list, making sure that the options are mutually exclusive + if (itemType == CLCIT_CONTACT) { // A contact + SendDlgItemMessage(hwndDlg, IDC_LIST, CLM_SETEXTRAIMAGE, (WPARAM)hItem, MAKELPARAM(nm->iColumn, iImage)); + } + else if (itemType == CLCIT_INFO) { // All Contacts + SetAllChildIcons(GetDlgItem(hwndDlg, IDC_LIST), hItem, nm->iColumn, iImage); + } + else if (itemType == CLCIT_GROUP) { // A group + hItem = (HANDLE)SendDlgItemMessage(hwndDlg, IDC_LIST, CLM_GETNEXTITEM, CLGN_CHILD, (LPARAM)hItem); + if (hItem) { + SetAllChildIcons(GetDlgItem(hwndDlg, IDC_LIST), hItem, nm->iColumn, iImage); + } + } + // Update the all/none icons + SetListGroupIcons(GetDlgItem(hwndDlg, IDC_LIST), (HANDLE)SendDlgItemMessage(hwndDlg, IDC_LIST, CLM_GETNEXTITEM, CLGN_ROOT, 0), hItemAll, NULL); + + // Activate Apply button + SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0); + break; + } + } + break; + case 0: + switch (((LPNMHDR)lParam)->code) + { + case PSN_APPLY: + { + HANDLE hContact = db_find_first(); + do { + char *proto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0); + bool chat_room = (proto && DBGetContactSettingByte(hContact, proto, "ChatRoom", 0) != 0); + + if(!chat_room) { + HANDLE hItem=(HANDLE)SendDlgItemMessage(hwndDlg,IDC_LIST,CLM_FINDCONTACT,(WPARAM)hContact,0); + if(hItem) { + int iImage=SendDlgItemMessage(hwndDlg,IDC_LIST,CLM_GETEXTRAIMAGE,(WPARAM)hItem,MAKELPARAM(0,0)); + DBWriteContactSettingByte(hContact, MODULE, DBSETTING_REMOVE, iImage==1?1:0); + } + } + } while(hContact = db_find_next(hContact)); + + return TRUE; + } + } + break; + } + break; + case WM_DESTROY: + { HIMAGELIST hIml=(HIMAGELIST)SendDlgItemMessage(hwndDlg,IDC_LIST,CLM_GETEXTRAIMAGELIST,0,0); + ImageList_Destroy(hIml); + } + break; + } + + return 0; +} + +int OptInit(WPARAM wParam, LPARAM lParam) { + OPTIONSDIALOGPAGE odp = { 0 }; + odp.cbSize = sizeof(odp); + odp.flags = ODPF_BOLDGROUPS|ODPF_TCHAR; + odp.position = -790000000; + odp.hInstance = hInst; + + odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT); + odp.ptszTitle = LPGENT("No History"); + odp.ptszGroup = LPGENT("History"); + odp.ptszTab = LPGENT("Logging"); + odp.pfnDlgProc = DlgProcOpts; + Options_AddPage(wParam,&odp); + + return 0; +} + +HANDLE hEventOptInit; +void InitOptions() { + hEventOptInit = HookEvent(ME_OPT_INITIALISE, OptInit); +} + +void DeinitOptions() { + UnhookEvent(hEventOptInit); +} diff --git a/plugins/NoHistory/options.h b/plugins/NoHistory/options.h new file mode 100644 index 0000000000..f9825ce47c --- /dev/null +++ b/plugins/NoHistory/options.h @@ -0,0 +1,9 @@ +#ifndef _OPTIONS_INC +#define _OPTIONS_INC + +extern DWORD event_timeout; + +void InitOptions(); +void DeinitOptions(); + +#endif diff --git a/plugins/NoHistory/private.aps b/plugins/NoHistory/private.aps new file mode 100644 index 0000000000..01a3adcadc Binary files /dev/null and b/plugins/NoHistory/private.aps differ diff --git a/plugins/NoHistory/private.h b/plugins/NoHistory/private.h new file mode 100644 index 0000000000..535dd34c5f --- /dev/null +++ b/plugins/NoHistory/private.h @@ -0,0 +1,24 @@ +#ifndef _PRIVATE_H +#define _PRIVATE_H + +/* VERSION DEFINITIONS */ +#define VER_MAJOR 0 +#define VER_MINOR 2 +#define VER_RELEASE 3 +#define VER_BUILD 0 + +#define __STRINGIZE(x) #x +#define VER_STRING __STRINGIZE( VER_MAJOR.VER_MINOR.VER_RELEASE.VER_BUILD ) + +#define DESC_STRING "Prevent miranda from storing any history" +#define COMPANY_NAME "" +#define FILE_VERSION VER_STRING +#define FILE_DESCRIPTION DESC_STRING +#define INTERNAL_NAME "" +#define LEGAL_COPYRIGHT "© Scott Ellis 2005; NightFox 2010" +#define LEGAL_TRADEMARKS "" +#define ORIGINAL_FILENAME "no_history.dll" +#define PRODUCT_NAME DESC_STRING +#define PRODUCT_VERSION VER_STRING + +#endif /*OTR_PRIVATE_H*/ diff --git a/plugins/NoHistory/private.rc b/plugins/NoHistory/private.rc new file mode 100644 index 0000000000..47bca39ef1 --- /dev/null +++ b/plugins/NoHistory/private.rc @@ -0,0 +1,35 @@ +/* THIS FILE WILL BE OVERWRITTEN BY DEV-C++ */ +/* DO NOT EDIT! */ + +#include "private.h" +#include "afxres.h" +// +// TO CHANGE VERSION INFORMATION, EDIT PROJECT OPTIONS... +// +1 VERSIONINFO +FILEVERSION VER_MAJOR,VER_MINOR,VER_RELEASE,VER_BUILD +PRODUCTVERSION VER_MAJOR,VER_MINOR,VER_RELEASE,VER_BUILD +FILETYPE VFT_DLL +{ + BLOCK "StringFileInfo" + { + BLOCK "0C0904E4" + { + VALUE "CompanyName", COMPANY_NAME + VALUE "FileVersion", FILE_VERSION + VALUE "FileDescription", FILE_DESCRIPTION + VALUE "InternalName", INTERNAL_NAME + VALUE "LegalCopyright", LEGAL_COPYRIGHT + VALUE "LegalTrademarks", LEGAL_TRADEMARKS + VALUE "OriginalFilename", ORIGINAL_FILENAME + VALUE "ProductName", PRODUCT_NAME + VALUE "ProductVersion", PRODUCT_VERSION + } + } + BLOCK "VarFileInfo" + { + VALUE "Translation", 0x0C09, 1252 + } +} + + diff --git a/plugins/NoHistory/resource.aps b/plugins/NoHistory/resource.aps new file mode 100644 index 0000000000..5d72483fde Binary files /dev/null and b/plugins/NoHistory/resource.aps differ diff --git a/plugins/NoHistory/resource.h b/plugins/NoHistory/resource.h new file mode 100644 index 0000000000..5640d91b59 --- /dev/null +++ b/plugins/NoHistory/resource.h @@ -0,0 +1,26 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by NoHistory.rc +// +#define IDI_HKEEP 100 +#define IDI_HREMOVE 101 +#define IDI_HCLEAR 102 +#define IDD_OPT 103 +#define IDC_LIST 1000 +#define IDC_PIC_KEEP 1001 +#define IDC_PIC_REMOVE 1002 +#define IDC_BUTTON1 1003 +#define IDC_ED_TIMEOUT 1004 +#define IDC_SPIN1 1005 +#define IDC_SPN_TIMEOUT 1005 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 104 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1006 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/plugins/NoHistory/resource.rc b/plugins/NoHistory/resource.rc new file mode 100644 index 0000000000..12fdadcee4 --- /dev/null +++ b/plugins/NoHistory/resource.rc @@ -0,0 +1,2 @@ +#include "NoHistory.rc" +#include "private.rc" -- cgit v1.2.3