diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-14 19:06:59 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-14 19:06:59 +0000 |
commit | e3ffab889d900847fa6fb9807bc5f818da28c358 (patch) | |
tree | 5722d206bdaeaec951c1c293bb671cd7347ebad7 /plugins/Clist_nicer/SRC | |
parent | e2e713063780dd623c8025b6f4762c1e32bc784d (diff) |
much less crazy way to organize clist data
git-svn-id: http://svn.miranda-ng.org/main/trunk@973 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/SRC')
-rw-r--r-- | plugins/Clist_nicer/SRC/clc.cpp | 16 | ||||
-rw-r--r-- | plugins/Clist_nicer/SRC/cluiopts.cpp | 8 | ||||
-rw-r--r-- | plugins/Clist_nicer/SRC/extBackg.cpp | 2 | ||||
-rw-r--r-- | plugins/Clist_nicer/SRC/rowheight_funcs.cpp | 4 |
4 files changed, 15 insertions, 15 deletions
diff --git a/plugins/Clist_nicer/SRC/clc.cpp b/plugins/Clist_nicer/SRC/clc.cpp index b63a77a7bb..98348ca0e0 100644 --- a/plugins/Clist_nicer/SRC/clc.cpp +++ b/plugins/Clist_nicer/SRC/clc.cpp @@ -288,7 +288,7 @@ LRESULT CALLBACK ContactListControlWndProc(HWND hwnd, UINT msg, WPARAM wParam, L dat->himlExtraColumns = himlExtraImages;
dat->hwndParent = GetParent(hwnd);
dat->lastSort = GetTickCount();
- dat->bNeedSort = FALSE;
+ dat->needsResort = FALSE;
{
CREATESTRUCT *cs = (CREATESTRUCT *)lParam;
if (cs->lpCreateParams == (LPVOID)0xff00ff00) {
@@ -344,7 +344,7 @@ LBL_Def: nm.hItem = (HANDLE) wParam;
SendMessage(GetParent(hwnd), WM_NOTIFY, 0, (LPARAM) &nm);
}
- dat->bNeedSort = TRUE;
+ dat->needsResort = TRUE;
PostMessage(hwnd, INTM_SORTCLC, 0, 1);
goto LBL_Def;
}
@@ -404,7 +404,7 @@ LBL_Def: else
dat->selection = -1;
}
- dat->bNeedSort = TRUE;
+ dat->needsResort = TRUE;
PostMessage(hwnd, INTM_SORTCLC, 0, recalcScrollBar);
PostMessage(hwnd, INTM_INVALIDATE, 0, (LPARAM)(contactRemoved ? 0 : wParam));
if (recalcScrollBar)
@@ -448,7 +448,7 @@ LBL_Def: RTL_DetectAndSet(contact, 0);
- dat->bNeedSort = TRUE;
+ dat->needsResort = TRUE;
PostMessage(hwnd, INTM_SORTCLC, 0, 0);
goto LBL_Def;
}
@@ -536,7 +536,7 @@ LBL_Def: RTL_DetectAndSet(contact, 0);
- dat->bNeedSort = TRUE;
+ dat->needsResort = TRUE;
PostMessage(hwnd, INTM_SORTCLC, 0, 0);
goto LBL_Def;
}
@@ -574,12 +574,12 @@ LBL_Def: goto LBL_Def;
}
case INTM_FORCESORT:
- dat->bNeedSort = TRUE;
+ dat->needsResort = TRUE;
return SendMessage(hwnd, INTM_SORTCLC, wParam, lParam);
case INTM_SORTCLC:
- if (dat->bNeedSort) {
+ if (dat->needsResort) {
pcli->pfnSortCLC(hwnd, dat, TRUE);
- dat->bNeedSort = FALSE;
+ dat->needsResort = FALSE;
}
if (lParam)
pcli->pfnRecalcScrollBar(hwnd, dat);
diff --git a/plugins/Clist_nicer/SRC/cluiopts.cpp b/plugins/Clist_nicer/SRC/cluiopts.cpp index 843925d5dd..f836995f68 100644 --- a/plugins/Clist_nicer/SRC/cluiopts.cpp +++ b/plugins/Clist_nicer/SRC/cluiopts.cpp @@ -41,7 +41,7 @@ INT_PTR CALLBACK DlgProcCluiOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l switch (msg) {
case WM_INITDIALOG:
{
- opt_clui_changed = 0;
+ opt_clui_changed = 0;
TranslateDialogDefault(hwndDlg);
CheckDlgButton(hwndDlg, IDC_BRINGTOFRONT, cfg::getByte("CList", "BringToFront", SETTING_BRINGTOFRONT_DEFAULT) ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(hwndDlg, IDC_ALWAYSHIDEONTASKBAR, cfg::getByte("CList", "AlwaysHideOnTB", 1) ? BST_CHECKED : BST_UNCHECKED);
@@ -164,9 +164,9 @@ INT_PTR CALLBACK DlgProcCluiOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l SetDlgItemTextA(hwndDlg, IDC_ACTIVEPERC, str);
}
if (wParam != 0x12345678) {
- SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
- opt_clui_changed = 1;
- }
+ SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
+ opt_clui_changed = 1;
+ }
break;
case WM_NOTIFY:
switch (((LPNMHDR) lParam)->code) {
diff --git a/plugins/Clist_nicer/SRC/extBackg.cpp b/plugins/Clist_nicer/SRC/extBackg.cpp index 9cc8f0fd44..972ba79b1f 100644 --- a/plugins/Clist_nicer/SRC/extBackg.cpp +++ b/plugins/Clist_nicer/SRC/extBackg.cpp @@ -1843,7 +1843,7 @@ int CoolSB_SetupScrollBar() !StatusItems[ID_EXTBKSCROLLBUTTONHOVER - ID_STATUS_OFFLINE].imageItem ||
!StatusItems[ID_EXTBKSCROLLBUTTONPRESSED - ID_STATUS_OFFLINE].imageItem)
- cfg::dat.bSkinnedScrollbar = FALSE;
+ cfg::dat.bSkinnedScrollbar = FALSE;
if(cfg::getByte("CLC", "NoVScrollBar", 0)) {
UninitializeCoolSB(pcli->hwndContactTree);
diff --git a/plugins/Clist_nicer/SRC/rowheight_funcs.cpp b/plugins/Clist_nicer/SRC/rowheight_funcs.cpp index 8328d3f7bb..25a7b6b68d 100644 --- a/plugins/Clist_nicer/SRC/rowheight_funcs.cpp +++ b/plugins/Clist_nicer/SRC/rowheight_funcs.cpp @@ -35,7 +35,7 @@ BOOL RowHeight::Init(ClcData *dat)
{
- dat->max_row_height = 0;
+ dat->rowHeight = 0;
dat->row_heights_size = 0;
dat->row_heights_allocated = 0;
dat->row_heights = NULL;
@@ -133,7 +133,7 @@ int RowHeight::getMaxRowHeight(ClcData *dat, const HWND hwnd) max_height = max(max_height, dat->min_row_heigh);
max_height += cfg::dat.bRowSpacing;
- dat->max_row_height = max_height;
+ dat->rowHeight = max_height;
return max_height;
}
|