summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_clc.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-04-28 11:27:27 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-04-28 11:27:27 +0000
commit7c2e75f14ad9dd186a85b17587c21c2561286581 (patch)
treefcd4db66a9b149cb7ee480a89d3f20582bea2823 /plugins/Clist_modern/src/modern_clc.h
parent01433b81e943d57b1ec2ebb5758bd2a85d836753 (diff)
- 2nd & 3rd lines handling unification;
- no need to copy data to make async calls; - no need to launch a thread to save a couple of msecs on a very large roster; - unused code & params cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@16785 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_clc.h')
-rw-r--r--plugins/Clist_modern/src/modern_clc.h87
1 files changed, 26 insertions, 61 deletions
diff --git a/plugins/Clist_modern/src/modern_clc.h b/plugins/Clist_modern/src/modern_clc.h
index 72ae4d3b02..b61584cf57 100644
--- a/plugins/Clist_modern/src/modern_clc.h
+++ b/plugins/Clist_modern/src/modern_clc.h
@@ -64,7 +64,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define TIMERID_SUBEXPAND 21
#define TIMERID_INVALIDATE 22
-#define TIMERID_INVALIDATE_FULL 25
#define TIMERID_RECALCSCROLLBAR 26
#define TIMERID_FIRST TIMERID_RENAME
@@ -221,6 +220,19 @@ struct ClcContact : public ClcContactBase
}
};
+struct ClcLineInfo
+{
+ BOOL show;
+ int top_space;
+ BOOL draw_smileys;
+ int type;
+ TCHAR text[TEXT_TEXT_MAX_LENGTH];
+ BOOL xstatus_has_priority;
+ BOOL show_status_if_no_away;
+ BOOL show_listening_if_no_away;
+ BOOL use_name_and_message_for_xstatus;
+};
+
struct ClcModernFontInfo {
HFONT hFont;
int fontHeight, changed;
@@ -301,73 +313,26 @@ struct ClcData : public ClcDataBase
BOOL first_line_draw_smileys;
BOOL first_line_append_nick;
- // Second line
- BOOL second_line_show;
- int second_line_top_space;
- BOOL second_line_draw_smileys;
- int second_line_type;
- TCHAR second_line_text[TEXT_TEXT_MAX_LENGTH];
- BOOL second_line_xstatus_has_priority;
- BOOL second_line_show_status_if_no_away;
- BOOL second_line_show_listening_if_no_away;
- BOOL second_line_use_name_and_message_for_xstatus;
-
- // Third line
- BOOL third_line_show;
- int third_line_top_space;
- BOOL third_line_draw_smileys;
- int third_line_type;
- TCHAR third_line_text[TEXT_TEXT_MAX_LENGTH];
- BOOL third_line_xstatus_has_priority;
- BOOL third_line_show_status_if_no_away;
- BOOL third_line_show_listening_if_no_away;
- BOOL third_line_use_name_and_message_for_xstatus;
- struct ClcModernFontInfo fontModernInfo[FONTID_MODERN_MAX + 1];
- HWND hWnd;
- BYTE menuOwnerType;
- int menuOwnerID;
+ // Second & third line
+ ClcLineInfo secondLine, thirdLine;
+
+ ClcModernFontInfo fontModernInfo[FONTID_MODERN_MAX + 1];
+ HWND hWnd;
+ BYTE menuOwnerType;
+ int menuOwnerID;
DWORD m_paintCouter; //range is enoght to 49 days if painting will occure each one millisecond
- BYTE useMetaIcon;
- BYTE drawOverlayedStatus;
- int nInsertionLevel;
+ BYTE useMetaIcon;
+ BYTE drawOverlayedStatus;
+ int nInsertionLevel;
- BYTE dbbMetaHideExtra;
- BYTE dbbBlendInActiveState;
- BYTE dbbBlend25;
+ BYTE dbbMetaHideExtra;
+ BYTE dbbBlendInActiveState;
+ BYTE dbbBlend25;
XPTHANDLE hCheckBoxTheme;
BYTE bCompactMode;
};
-struct SHORTDATA
-{
- HWND hWnd;
- BOOL contact_time_show_only_if_different;
- int text_smiley_height;
- BOOL text_replace_smileys;
- BOOL text_use_protocol_smileys;
-
- // Second line
- BOOL second_line_show;
- BOOL second_line_draw_smileys;
- int second_line_type;
- TCHAR second_line_text[TEXT_TEXT_MAX_LENGTH];
- BOOL second_line_xstatus_has_priority;
- BOOL second_line_show_status_if_no_away;
- BOOL second_line_show_listening_if_no_away;
- BOOL second_line_use_name_and_message_for_xstatus;
-
- // Third line
- BOOL third_line_show;
- BOOL third_line_draw_smileys;
- int third_line_type;
- TCHAR third_line_text[TEXT_TEXT_MAX_LENGTH];
- BOOL third_line_xstatus_has_priority;
- BOOL third_line_show_status_if_no_away;
- BOOL third_line_show_listening_if_no_away;
- BOOL third_line_use_name_and_message_for_xstatus;
-};
-
typedef struct tagOVERLAYICONINFO
{
char *name;