From 122df3d8d5e45cc79cfe9bd68083e99616cd685d Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sat, 26 Sep 2015 13:31:07 +0000 Subject: SmileyAdd: spelling git-svn-id: http://svn.miranda-ng.org/main/trunk@15450 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SmileyAdd/src/options.cpp | 10 +++++----- plugins/SmileyAdd/src/options.h | 2 +- plugins/SmileyAdd/src/resource.h | 2 +- plugins/SmileyAdd/src/smltool.cpp | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'plugins/SmileyAdd/src') diff --git a/plugins/SmileyAdd/src/options.cpp b/plugins/SmileyAdd/src/options.cpp index a8cd5cf0f5..f75931b937 100644 --- a/plugins/SmileyAdd/src/options.cpp +++ b/plugins/SmileyAdd/src/options.cpp @@ -177,7 +177,7 @@ BOOL OptionsDialogType::DialogProcedure(UINT msg, WPARAM wParam, LPARAM lParam) case IDC_DCURSORSMILEY: case IDC_DISABLECUSTOM: case IDC_HQSCALING: - case IDC_SORTING_HORISONTAL: + case IDC_SORTING_HORIZONTAL: if (HIWORD(wParam) == BN_CLICKED) SetChanged(); break; @@ -409,7 +409,7 @@ void OptionsDialogType::InitDialog(void) CheckDlgButton(m_hwndDialog, IDC_DCURSORSMILEY, opt.DCursorSmiley ? BST_CHECKED : BST_UNCHECKED); CheckDlgButton(m_hwndDialog, IDC_DISABLECUSTOM, opt.DisableCustom ? BST_CHECKED : BST_UNCHECKED); CheckDlgButton(m_hwndDialog, IDC_HQSCALING, opt.HQScaling ? BST_CHECKED : BST_UNCHECKED); - CheckDlgButton(m_hwndDialog, IDC_SORTING_HORISONTAL, opt.HorisontalSorting ? BST_CHECKED : BST_UNCHECKED); + CheckDlgButton(m_hwndDialog, IDC_SORTING_HORIZONTAL, opt.HorizontalSorting ? BST_CHECKED : BST_UNCHECKED); SendDlgItemMessage(m_hwndDialog, IDC_SMLBUT, CB_ADDSTRING, 0, (LPARAM) TranslateT("Off")); SendDlgItemMessage(m_hwndDialog, IDC_SMLBUT, CB_ADDSTRING, 0, (LPARAM) TranslateT("Top")); @@ -486,7 +486,7 @@ void OptionsDialogType::ApplyChanges(void) opt.DCursorSmiley = IsDlgButtonChecked(m_hwndDialog, IDC_DCURSORSMILEY) == BST_CHECKED; opt.DisableCustom = IsDlgButtonChecked(m_hwndDialog, IDC_DISABLECUSTOM) == BST_CHECKED; opt.HQScaling = IsDlgButtonChecked(m_hwndDialog, IDC_HQSCALING) == BST_CHECKED; - opt.HorisontalSorting = IsDlgButtonChecked(m_hwndDialog, IDC_SORTING_HORISONTAL) == BST_CHECKED; + opt.HorizontalSorting = IsDlgButtonChecked(m_hwndDialog, IDC_SORTING_HORIZONTAL) == BST_CHECKED; opt.ButtonStatus = (unsigned)SendDlgItemMessage(m_hwndDialog, IDC_SMLBUT, CB_GETCURSEL, 0, 0); opt.SelWndBkgClr = (unsigned)SendDlgItemMessage(m_hwndDialog, IDC_SELCLR, CPM_GETCOLOUR, 0, 0); @@ -616,7 +616,7 @@ void OptionsType::Save(void) db_set_dw(NULL, "SmileyAdd", "SelWndBkgClr", SelWndBkgClr); db_set_dw(NULL, "SmileyAdd", "MaxCustomSmileySize", MaxCustomSmileySize); db_set_dw(NULL, "SmileyAdd", "MinSmileySize", MinSmileySize); - db_set_b(NULL, "SmileyAdd", "HorisontalSorting", HorisontalSorting); + db_set_b(NULL, "SmileyAdd", "HorizontalSorting", HorizontalSorting); } void OptionsType::Load(void) @@ -641,7 +641,7 @@ void OptionsType::Load(void) SelWndBkgClr = db_get_dw(NULL, "SmileyAdd", "SelWndBkgClr", GetSysColor(COLOR_WINDOW)); MaxCustomSmileySize = db_get_dw(NULL, "SmileyAdd", "MaxCustomSmileySize", 0); MinSmileySize = db_get_dw(NULL, "SmileyAdd", "MinSmileySize", 0); - HorisontalSorting = db_get_b(NULL, "SmileyAdd", "HorisontalSorting") != 0; + HorizontalSorting = db_get_b(NULL, "SmileyAdd", "HorizontalSorting") != 0; } diff --git a/plugins/SmileyAdd/src/options.h b/plugins/SmileyAdd/src/options.h index da6d53a897..f757084d82 100644 --- a/plugins/SmileyAdd/src/options.h +++ b/plugins/SmileyAdd/src/options.h @@ -40,7 +40,7 @@ public: bool DCursorSmiley; bool DisableCustom; bool HQScaling; - bool HorisontalSorting; + bool HorizontalSorting; unsigned ButtonStatus; unsigned SelWndBkgClr; unsigned MaxCustomSmileySize; diff --git a/plugins/SmileyAdd/src/resource.h b/plugins/SmileyAdd/src/resource.h index ed280b1142..18d06cd4d7 100644 --- a/plugins/SmileyAdd/src/resource.h +++ b/plugins/SmileyAdd/src/resource.h @@ -34,7 +34,7 @@ #define IDC_MINSMSZ 1064 #define IDC_MINSPIN 1065 #define IDC_CHECK1 1066 -#define IDC_SORTING_HORISONTAL 1066 +#define IDC_SORTING_HORIZONTAL 1066 #define IDC_BROWSE 1184 #define IDC_FILENAME 1271 diff --git a/plugins/SmileyAdd/src/smltool.cpp b/plugins/SmileyAdd/src/smltool.cpp index 55e52dc7a0..15ff7b0497 100644 --- a/plugins/SmileyAdd/src/smltool.cpp +++ b/plugins/SmileyAdd/src/smltool.cpp @@ -688,7 +688,7 @@ RECT SmileyToolWindowType::CalculateButtonToCoordinates(int buttonPosition, int { int row, rowpos; - if (opt.HorisontalSorting) + if (opt.HorizontalSorting) { row = buttonPosition / m_NumberOfHorizontalButtons; rowpos = buttonPosition % m_NumberOfHorizontalButtons; @@ -715,7 +715,7 @@ int SmileyToolWindowType::CalculateCoordinatesToButton(POINT pt, int scroll) const int row = (pt.y - m_ButtonSpace) / (m_ButtonSize.cy + m_ButtonSpace) + scroll; int pos; - if (opt.HorisontalSorting) + if (opt.HorizontalSorting) pos = m_NumberOfHorizontalButtons * row + rowpos; else pos = m_NumberOfVerticalButtons * rowpos + row; -- cgit v1.2.3