From ab06f83a076ece3aba4a47a107203829b11974db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Fri, 13 Dec 2013 13:35:19 +0000 Subject: Tipper: new option for items to show only for particular type of contacts (all, contacts, chatrooms); version bump Useful for not showing last seen or status fields for chatrooms. git-svn-id: http://svn.miranda-ng.org/main/trunk@7174 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TipperYM/src/options.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'plugins/TipperYM/src/options.h') diff --git a/plugins/TipperYM/src/options.h b/plugins/TipperYM/src/options.h index 32c2009b8a..c3c649ded5 100644 --- a/plugins/TipperYM/src/options.h +++ b/plugins/TipperYM/src/options.h @@ -41,14 +41,26 @@ typedef struct { TCHAR *swzTooltip; } OPTBUTTON; +typedef enum { DIT_ALL = 0, DIT_CONTACTS = 1, DIT_CHATS = 2 } DisplayItemType; typedef struct { TCHAR swzLabel[LABEL_LEN]; TCHAR swzValue[VALUE_LEN]; + DisplayItemType type; bool bLineAbove, bValueNewline; bool bIsVisible; bool bParseTipperVarsFirst; } DISPLAYITEM; +// display item types +static struct { + DisplayItemType type; + TCHAR* title; +} displayItemTypes[] = { + { DIT_ALL, LPGENT("Show for all contact types") }, + { DIT_CONTACTS, LPGENT("Show only for contacts") }, + { DIT_CHATS, LPGENT("Show only for chatrooms") } +}; + typedef enum {DVT_DB = 0, DVT_PROTODB = 1} DisplaySubstType; typedef struct { TCHAR swzName[LABEL_LEN]; -- cgit v1.2.3