diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-07-16 16:31:53 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-07-16 16:31:53 +0000 |
commit | 5b0a53a6d3f1b8d70b34631d96d3815d0a334dd3 (patch) | |
tree | 9b38676d8ae565bac52063f5398dde110082a26f /plugins/Clist_nicer/INCLUDE/rowheight_funcs.h | |
parent | 1cf47d1eaff4d7d7242d0ab87dd540ae5b400833 (diff) |
Clist_mw, Clist_nicer, CmdLine, Console: folder structure change
git-svn-id: http://svn.miranda-ng.org/main/trunk@988 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/INCLUDE/rowheight_funcs.h')
-rw-r--r-- | plugins/Clist_nicer/INCLUDE/rowheight_funcs.h | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/plugins/Clist_nicer/INCLUDE/rowheight_funcs.h b/plugins/Clist_nicer/INCLUDE/rowheight_funcs.h deleted file mode 100644 index 383db5b592..0000000000 --- a/plugins/Clist_nicer/INCLUDE/rowheight_funcs.h +++ /dev/null @@ -1,85 +0,0 @@ -#ifndef __ROWHEIGHT_FUNCS_H__
-# define __ROWHEIGHT_FUNCS_H__
-
-#define ROW_SPACE_BEETWEEN_LINES 0
-#define ICON_HEIGHT 16
-
-class RowHeight {
-
-public:
- static BOOL Alloc (ClcData *dat, int size);
- static BOOL Init (ClcData *dat);
- static void Free (ClcData *dat);
- static void Clear (ClcData *dat);
-
- // Calc and store max row height
- static int getMaxRowHeight (ClcData *dat, const HWND hwnd);
-
-
- // Calc and store row height
- static int getRowHeight (ClcData *dat, const HWND hwnd, ClcContact* contact, int item, DWORD style)
- {
- int height = 0;
- //DWORD style=GetWindowLongPtr(hwnd,GWL_STYLE);
-
- //if(contact->iRowHeight == item)
- // return(dat->row_heights[item]);
-
- if (!Alloc(dat, item + 1))
- return -1;
-
- height = dat->fontInfo[GetBasicFontID(contact)].fontHeight;
-
- if (!dat->bisEmbedded) {
- if(contact->bSecondLine != MULTIROW_NEVER && contact->bSecondLine != MULTIROW_IFSPACE && contact->type == CLCIT_CONTACT) {
- if ((contact->bSecondLine == MULTIROW_ALWAYS || ((cfg::dat.dwFlags & CLUI_FRAME_SHOWSTATUSMSG && contact->bSecondLine == MULTIROW_IFNEEDED) && (contact->xStatus > 0 || cfg::eCache[contact->extraCacheEntry].bStatusMsgValid > STATUSMSG_XSTATUSID))))
- height += (dat->fontInfo[FONTID_STATUS].fontHeight + cfg::dat.avatarPadding);
- }
-
- // Avatar size
- if (contact->cFlags & ECF_AVATAR && contact->type == CLCIT_CONTACT && contact->ace != NULL && !(contact->ace->dwFlags & AVS_HIDEONCLIST))
- height = max(height, cfg::dat.avatarSize + cfg::dat.avatarPadding);
- }
-
- // 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))
- {
- 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);
-
- // Calc item top Y (using stored data)
- static int getItemTopY (ClcData *dat, int item);
-
- // Calc item bottom Y (using stored data)
- static int getItemBottomY (ClcData *dat, int item);
-
- // Calc total height of rows (using stored data)
- 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);
-
- // Returns the height of the chosen row
- static int getHeight (ClcData *dat, int item);
-
- // returns the height for a floating contact
- static int getFloatingRowHeight(const ClcData *dat, HWND hwnd, ClcContact *contact, DWORD dwFlags);
-};
-
-#endif // __ROWHEIGHT_FUNCS_H__
|