summaryrefslogtreecommitdiff
path: root/plugins/Clist_nicer/src/rowheight_funcs.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-04-28 18:00:05 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-04-28 18:00:05 +0000
commit2a18cb546bac91077a193691368162d8f07992a1 (patch)
tree8fb89716131d9586fe7489fe3bb90faaf3b03fee /plugins/Clist_nicer/src/rowheight_funcs.h
parent9fa8edc73b6687bbc0f43743b872af83d4d06759 (diff)
we don't need that FindItem's implementation in nicer+ anymore, it's already in the core
git-svn-id: http://svn.miranda-ng.org/main/trunk@16791 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src/rowheight_funcs.h')
-rw-r--r--plugins/Clist_nicer/src/rowheight_funcs.h21
1 files changed, 9 insertions, 12 deletions
diff --git a/plugins/Clist_nicer/src/rowheight_funcs.h b/plugins/Clist_nicer/src/rowheight_funcs.h
index 60a0998e1c..aa49af8a10 100644
--- a/plugins/Clist_nicer/src/rowheight_funcs.h
+++ b/plugins/Clist_nicer/src/rowheight_funcs.h
@@ -16,7 +16,7 @@ public:
static int getMaxRowHeight(ClcData *dat, const HWND hwnd);
// Calc and store row height
- static int getRowHeight(ClcData *dat, ClcContact* contact, int item, DWORD style)
+ static int getRowHeight(ClcData *dat, ClcContact *contact, int item, DWORD style)
{
if (!Alloc(dat, item + 1))
return -1;
@@ -36,39 +36,36 @@ public:
// Checkbox size
if ((style & CLS_CHECKBOXES && contact->type == CLCIT_CONTACT) ||
- (style & CLS_GROUPCHECKBOXES && contact->type == CLCIT_GROUP) ||
- (contact->type == CLCIT_INFO && contact->flags & CLCIIF_CHECKBOX)) {
+ (style & CLS_GROUPCHECKBOXES && contact->type == CLCIT_GROUP) ||
+ (contact->type == CLCIT_INFO && contact->flags & CLCIIF_CHECKBOX)) {
height = max(height, dat->checkboxSize);
}
- //height += 2 * dat->row_border;
// Min size
height = max(height, contact->type == CLCIT_GROUP ? dat->group_row_height : dat->min_row_heigh);
height += cfg::dat.bRowSpacing;
dat->row_heights[item] = height;
- //contact->iRowHeight = item;
-
return height;
}
// Calc and store row height for all itens in the list
- static void calcRowHeights (ClcData *dat, HWND hwnd);
+ static void calcRowHeights(ClcData *dat, HWND hwnd);
// Calc item top Y (using stored data)
- static int getItemTopY (ClcData *dat, int item);
+ static int getItemTopY(ClcData *dat, int item);
// Calc item bottom Y (using stored data)
- static int getItemBottomY (ClcData *dat, int item);
+ static int getItemBottomY(ClcData *dat, int item);
// Calc total height of rows (using stored data)
- static int getTotalHeight (ClcData *dat);
+ static int getTotalHeight(ClcData *dat);
// Return the line that pos_y is at or -1 (using stored data). Y start at 0
- static int hitTest (ClcData *dat, int pos_y);
+ static int hitTest(ClcData *dat, int pos_y);
// Returns the height of the chosen row
- static int getHeight (ClcData *dat, int item);
+ static int getHeight(ClcData *dat, int item);
};
#endif // __ROWHEIGHT_FUNCS_H__