diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2014-06-30 17:17:11 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2014-06-30 17:17:11 +0000 |
commit | 9198ad465cc104525b9acb25bfdd66949adc07a4 (patch) | |
tree | aab7f198d61481db1a60f212352f87e7e4610ebc | |
parent | f7e69e8cb113ccfe7fdf53aa597ca570804b7b4a (diff) |
More forum friendly BB-codes for CrashDumper and VersionInfo plugins (thx Robyer)
git-svn-id: http://svn.miranda-ng.org/main/trunk@9628 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/CrashDumper/src/dumper.cpp | 4 | ||||
-rw-r--r-- | plugins/VersionInfo/src/CVersionInfo.cpp | 8 | ||||
-rw-r--r-- | plugins/VersionInfo/src/dlgHandlers.cpp | 22 |
3 files changed, 17 insertions, 17 deletions
diff --git a/plugins/CrashDumper/src/dumper.cpp b/plugins/CrashDumper/src/dumper.cpp index e1ece5775f..aac4ecc9e1 100644 --- a/plugins/CrashDumper/src/dumper.cpp +++ b/plugins/CrashDumper/src/dumper.cpp @@ -36,8 +36,8 @@ void CreateMiniDump(HANDLE hDumpFile, PEXCEPTION_POINTERS exc_ptr) void WriteBBFile(CMString& buffer, bool hdr)
{
- static const TCHAR header[] = TEXT("[quote][size=1]");
- static const TCHAR footer[] = TEXT("[/size][/quote]");
+ static const TCHAR header[] = TEXT("[spoiler=VersionInfo][quote]");
+ static const TCHAR footer[] = TEXT("[/quote][/spoiler]");
buffer.Append(hdr ? header : footer);
}
diff --git a/plugins/VersionInfo/src/CVersionInfo.cpp b/plugins/VersionInfo/src/CVersionInfo.cpp index 38950bfbd2..29b77f68af 100644 --- a/plugins/VersionInfo/src/CVersionInfo.cpp +++ b/plugins/VersionInfo/src/CVersionInfo.cpp @@ -765,8 +765,8 @@ void CVersionInfo::AddInfoHeader(int suppressHeader, int forumStyle, int beautif if (forumStyle) { //forum style
TCHAR szSize[256], szQuote[256];
- GetStringFromDatabase("SizeBegin", _T("[size=1]"), szSize, SIZEOF(szSize));
- GetStringFromDatabase("QuoteBegin", _T("[quote]"), szQuote, SIZEOF(szQuote));
+ GetStringFromDatabase("SizeBegin", _T("[quote]"), szSize, SIZEOF(szSize));
+ GetStringFromDatabase("QuoteBegin", _T("[spoiler=VersionInfo]"), szQuote, SIZEOF(szQuote));
out.append(szQuote);
out.append(szSize);
}
@@ -868,8 +868,8 @@ void CVersionInfo::AddInfoFooter(int suppressFooter, int forumStyle, int beautif }
else {
TCHAR szSize[256], szQuote[256];
- GetStringFromDatabase("SizeEnd", _T("[/size]"), szSize, SIZEOF(szSize));
- GetStringFromDatabase("QuoteEnd", _T("[/quote]"), szQuote, SIZEOF(szQuote));
+ GetStringFromDatabase("SizeEnd", _T("[/quote]"), szSize, SIZEOF(szSize));
+ GetStringFromDatabase("QuoteEnd", _T("[/spoiler]"), szQuote, SIZEOF(szQuote));
out.append(szSize);
out.append(szQuote);
}
diff --git a/plugins/VersionInfo/src/dlgHandlers.cpp b/plugins/VersionInfo/src/dlgHandlers.cpp index 17bf2c1903..c6193cc0b5 100644 --- a/plugins/VersionInfo/src/dlgHandlers.cpp +++ b/plugins/VersionInfo/src/dlgHandlers.cpp @@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "common.h"
-const char *szQuoteStrings[] = {"[quote] | [/quote]", "[code] | [/code]", ""};
-const char *szSizeStrings[] = {"[size=1] | [/size]", "[size=1px] | [/size]", "[size=12] | [/size]", "[size=80] | [/size]", ""};
+const char *szQuoteStrings[] = {"[spoiler=VersionInfo] | [/spoiler]", "[quote] | [/quote]", "[code] | [/code]", ""};
+const char *szSizeStrings[] = {"[quote] | [/quote]", "[size=1] | [/size]", "[size=1px] | [/size]", "[size=12] | [/size]", "[size=80] | [/size]", ""};
const char *szBoldStrings[] = {"[b] | [/b]", "[u] | [/u]", "[b][u] | [/u][/b]", "<b> | </b>", "<u> | </u>", "<b><u> | </u></b>"};
const int nQuoteCount = SIZEOF(szQuoteStrings); //get the number of quote strings
const int nSizeCount = SIZEOF(szSizeStrings); //get the number of size strings
@@ -75,13 +75,13 @@ INT_PTR CALLBACK AskDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) EnableAskComboboxes(hWnd, oldFSFValue);
{
TCHAR buffer[1024];
- GetStringFromDatabase("QuoteBegin", _T("[quote]"), oldQuoteBegin, MAX_SIZE);
- GetStringFromDatabase("QuoteEnd", _T("[/quote]"), oldQuoteEnd, MAX_SIZE);
+ GetStringFromDatabase("QuoteBegin", _T("[spoiler=VersionInfo]"), oldQuoteBegin, MAX_SIZE);
+ GetStringFromDatabase("QuoteEnd", _T("[/spoiler]"), oldQuoteEnd, MAX_SIZE);
mir_sntprintf(buffer, SIZEOF(buffer), _T("%s | %s"), oldQuoteBegin, oldQuoteEnd);
SendDlgItemMessage(hWnd, IDC_ASK_QUOTECOMBOBOX, CB_SELECTSTRING, -1, (LPARAM) buffer);
- GetStringFromDatabase("SizeBegin", _T("[size=1]"), oldSizeBegin, MAX_SIZE);
- GetStringFromDatabase("SizeEnd", _T("[/size]"), oldSizeEnd, MAX_SIZE);
+ GetStringFromDatabase("SizeBegin", _T("[quote]"), oldSizeBegin, MAX_SIZE);
+ GetStringFromDatabase("SizeEnd", _T("[/quote]"), oldSizeEnd, MAX_SIZE);
mir_sntprintf(buffer, SIZEOF(buffer), _T("%s | %s"), oldSizeBegin, oldSizeEnd);
SendDlgItemMessage(hWnd, IDC_ASK_SIZECOMBOBOX, CB_SELECTSTRING, -1, (LPARAM) buffer);
@@ -271,13 +271,13 @@ INT_PTR CALLBACK DlgProcOpts(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) SetDlgItemText(hWnd, IDC_FILENAME, buffer);
TCHAR start[256], end[256];
- GetStringFromDatabase("QuoteBegin", _T("[quote]"), start, SIZEOF(start));
- GetStringFromDatabase("QuoteEnd", _T("[/quote]"), end, SIZEOF(end));
+ GetStringFromDatabase("QuoteBegin", _T("[spoiler=VersionInfo]"), start, SIZEOF(start));
+ GetStringFromDatabase("QuoteEnd", _T("[/spoiler]"), end, SIZEOF(end));
mir_sntprintf(buffer, SIZEOF(buffer), _T("%s | %s"), start, end);
SendDlgItemMessage(hWnd, IDC_QUOTECOMBOBOX, CB_SELECTSTRING, -1, (LPARAM) buffer);
- GetStringFromDatabase("SizeBegin", _T("[size=1]"), start, SIZEOF(start));
- GetStringFromDatabase("SizeEnd", _T("[/size]"), end, SIZEOF(end));
+ GetStringFromDatabase("SizeBegin", _T("[quote]"), start, SIZEOF(start));
+ GetStringFromDatabase("SizeEnd", _T("[/quote]"), end, SIZEOF(end));
mir_sntprintf(buffer, SIZEOF(buffer), _T("%s | %s"), start, end);
SendDlgItemMessage(hWnd, IDC_SIZECOMBOBOX, CB_SELECTSTRING, -1, (LPARAM) buffer);
@@ -573,7 +573,7 @@ INT_PTR CALLBACK DialogBoxProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam }
break;
- }
+ }
case WM_DESTROY:
DeleteObject((HFONT)SendDlgItemMessage(hWnd,IDC_TEXT,WM_GETFONT,0,0));
myInfo = NULL;
|