diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-12-13 13:35:19 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-12-13 13:35:19 +0000 |
commit | ab06f83a076ece3aba4a47a107203829b11974db (patch) | |
tree | 4d4f53fe0745e78d715f773825d430374f026b90 /plugins/TipperYM/src/options.h | |
parent | 7a63748295ddd657ef3fc1e1c17a6f15b424ede3 (diff) |
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
Diffstat (limited to 'plugins/TipperYM/src/options.h')
-rw-r--r-- | plugins/TipperYM/src/options.h | 12 |
1 files changed, 12 insertions, 0 deletions
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];
|