1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
|
#if !defined(HISTORYSTATS_GUARD__CONSTS_H)
#define HISTORYSTATS_GUARD__CONSTS_H
#include "_globals.h"
#if defined(HISTORYSTATS_CONST_DEFINE)
#define CONST_T(nam, txt) extern const mu_text* nam = muT(txt);
#define CONST_A(nam, txt) extern const mu_ansi* nam = muA(txt);
#define CONST_W(nam, txt) extern const mu_wide* nam = muW(txt);
#else
#define CONST_T(nam, txt) extern const mu_text* nam;
#define CONST_A(nam, txt) extern const mu_ansi* nam;
#define CONST_W(nam, txt) extern const mu_wide* nam;
#endif
/*
* base colors:
*
* outgoing - #FF0000 (red)
* incoming - #007F00 (green)
* bar - #0000FF (blue)
* i/o line - #BFBFBF (lt grey)
* bar line - #00007F (dk blue)
* bar back - #BFBFBF (lt grey)
*
* base colors (a0x):
*
* outgoing - #E8641B (red)
* incoming - #7CC623 (green)
* bar - #0581B4 (blue)
* i/o line - #BFBFBF (lt grey)
* bar line - #023F59 (dk blue)
* bar back - #BFBFBF (lt grey)
*/
namespace con
{
// protocol names
CONST_A(ProtoUnknown , "(Unknown protocol)" )
// historystats settings
CONST_A(ModHistoryStats , "HistoryStats" )
CONST_A(SettVersion , "_Version" )
CONST_A(SettLastPage , "_LastPage" )
CONST_A(SettShowColumnInfo , "_ShowColumnInfo" )
CONST_A(SettShowSupportInfo , "_ShowSupportInfo" )
CONST_A(SettLastStatisticsFile , "_LastStatisticsFile" )
CONST_A(SettAutoOpenOptions , "AutoOpenOptions" )
CONST_A(SettAutoOpenStartup , "AutoOpenStartup" )
CONST_A(SettAutoOpenMenu , "AutoOpenMenu" )
CONST_A(SettAverageMinTime , "AverageMinTime" )
CONST_A(SettCalcTotals , "CalcTotals" )
CONST_A(SettChatSessionMinDur , "ChatSessionMinDur" )
CONST_A(SettChatSessionTimeout , "ChatSessionTimeout" )
CONST_A(SettColumns , "Columns" )
CONST_A(SettFilterBBCodes , "FilterBBCodes" )
CONST_A(SettFilterRawRTF , "FilterRawRTF" )
CONST_A(SettFilterWords , "FilterWords" )
CONST_A(SettGraphicsMode , "GraphicsMode" )
CONST_A(SettHeaderTooltips , "HeaderTooltips" )
CONST_A(SettHeaderTooltipsIfCustom, "HeaderTooltipsIfCustom")
CONST_A(SettHideContactMenuProtos , "HideContactMenuProtos" )
CONST_A(SettIgnoreAfter , "IgnoreAfter" )
CONST_A(SettIgnoreBefore , "IgnoreBefore" )
CONST_A(SettIgnoreOld , "IgnoreOld" )
CONST_A(SettMenuItem , "MenuItem" )
CONST_A(SettMergeContacts , "MergeContacts" )
CONST_A(SettMergeContactsGroups , "MergeContactsGroups" )
CONST_A(SettMergeMode , "MergeMode" )
CONST_A(SettMetaContactsMode , "MetaContactsMode" )
CONST_A(SettNickname , "Nickname" )
CONST_A(SettOmitByRank , "OmitByRank" )
CONST_A(SettOmitByTime , "OmitByTime" )
CONST_A(SettOmitByTimeDays , "OmitByTimeDays" )
CONST_A(SettOmitByValue , "OmitByValue" )
CONST_A(SettOmitByValueData , "OmitByValueData" )
CONST_A(SettOmitByValueLimit , "OmitByValueLimit" )
CONST_A(SettOmitContacts , "OmitContacts" )
CONST_A(SettOmitNumOnTop , "OmitNumOnTop" )
CONST_A(SettOmittedInTotals , "OmittedInTotals" )
CONST_A(SettOmittedInExtraRow , "OmittedInExtraRow" )
CONST_A(SettOnStartup , "OnStartup" )
CONST_A(SettOutput , "Output" )
CONST_A(SettOutputExtraFolder , "OutputExtraFolder" )
CONST_A(SettOutputExtraToFolder , "OutputExtraToFolder" )
CONST_A(SettOutputVariables , "OutputVariables" )
CONST_A(SettOverwriteAlways , "OverwriteAlways" )
CONST_A(SettPathToBrowser , "PathToBrowser" )
CONST_A(SettPNGMode , "PNGMode" )
CONST_A(SettProtosIgnore , "ProtosIgnore2" )
CONST_A(SettRemoveEmptyContacts , "RemoveEmptyContacts" )
CONST_A(SettRemoveInChatsZero , "RemoveInChatsZero" )
CONST_A(SettRemoveInBytesZero , "RemoveInBytesZero" )
CONST_A(SettRemoveOutChatsZero , "RemoveOutChatsZero" )
CONST_A(SettRemoveOutBytesZero , "RemoveOutBytesZero" )
CONST_A(SettShowContactMenu , "ShowContactMenu" )
CONST_A(SettShowContactMenuPseudo , "ShowContactMenuPseudo" )
CONST_A(SettShowMenuSub , "ShowMenuSub" )
CONST_A(SettSort , "Sort" )
CONST_A(SettTableHeader , "TableHeader" )
CONST_A(SettTableHeaderRepeat , "TableHeaderRepeat" )
CONST_A(SettTableHeaderVerbose , "TableHeaderVerbose" )
CONST_A(SettThreadLowPriority , "ThreadLowPriority" )
CONST_A(SettWordDelimiters , "WordDelimiters" )
CONST_A(SettExclude , "Exclude" )
// clist module settings
CONST_A(ModCList , "CList" )
CONST_A(SettGroup , "Group" )
// column tags
CONST_T(ColChatDuration , "chatduration" )
CONST_T(ColEvents , "events" )
CONST_T(ColGroup , "group" )
CONST_T(ColInOut , "inouttext" )
CONST_T(ColInOutGraph , "inout" )
CONST_T(ColNick , "nick" )
CONST_T(ColProtocol , "protocol" )
CONST_T(ColRank , "rank" )
CONST_T(ColSplit , "split" )
CONST_T(ColSplitTimeline , "splittimeline" )
CONST_T(ColTimeline , "timeline" )
CONST_T(ColWordCount , "wordcount" )
CONST_T(ColWords , "commonwords" )
// suffix for column-specific settings
CONST_T(SuffixData , "/data" )
// suffix for shared column data (filter words)
CONST_T(SuffixWords , "/words" )
// keys for common column settings
CONST_T(KeyGUID , "guid" )
CONST_T(KeyEnabled , "enabled" )
CONST_T(KeyTitle , "title" )
// keys for column-specific settings
CONST_T(KeyAbsolute , "absolute" ) // InOut, InOutGraph
CONST_T(KeyAbsTime , "abs_time" ) // InOut, InOutGraph
CONST_T(KeyBlocks , "blocks" ) // Split, SplitTimeline
CONST_T(KeyBlockUnit , "block_unit" ) // Split, SplitTimeline
CONST_T(KeyContactCount , "contact_count" ) // Nick
CONST_T(KeyCustomGroup , "custom_group" ) // SplitTimeline
CONST_T(KeyDays , "days" ) // Timeline
CONST_T(KeyDetail , "detail" ) // ChatDuration, InOutGraph, Nick, Split, Timeline, WordCount, Words
CONST_T(KeyDetailInOut , "detail_inout" ) // Words
CONST_T(KeyDetailInvert , "detail_invert" ) // InOutGraph
CONST_T(KeyDetailPercent , "detail_percent" ) // InOutGraph
CONST_T(KeyDOWGroup , "dow_group" ) // SplitTimeline
CONST_T(KeyFilterLinks , "filter_links" ) // [Base]Words
CONST_T(KeyFilterWords , "filter_words" ) // [Base]Words
CONST_T(KeyGraph , "graph" ) // ChatDuration
CONST_T(KeyGraphAlign , "graph_align" ) // Split, SplitTimeline
CONST_T(KeyGraphPercent , "graph_percent" ) // InOutGraph
CONST_T(KeyHODGroup , "hod_group" ) // SplitTimeline
CONST_T(KeyIgnoreOld , "ignore_old" ) // Timeline
CONST_T(KeyInOutColor , "in_out_color" ) // Words
CONST_T(KeyMaxLength , "max_length" ) // [Base]Words
CONST_T(KeyMinLength , "min_length" ) // [Base]Words
CONST_T(KeyNum , "num" ) // Words, **keys for common column settings**
CONST_T(KeyOffset , "offset" ) // Words
CONST_T(KeyShowSum , "show_sum" ) // InOutGraph
CONST_T(KeySource , "source" ) // [Base]Words, Events, InOut, InOutGraph, Split, SplitTimeline, Timeline
CONST_T(KeySourceType , "source_type" ) // Split, SplitTimeline, Timeline
CONST_T(KeyTopPerColumn , "top_per_column" ) // SplitTimeline
CONST_T(KeyUnitsPerBlock , "units_per_block" ) // Split, SplitTimeline
CONST_T(KeyVisMode , "vis_mode" ) // ChatDuration, Split, SplitTimeline, WordCount, Words
// keeys for shared column data (filter words)
CONST_T(KeyID , "id" )
CONST_T(KeyName , "name" )
CONST_T(KeyMode , "mode" )
CONST_T(KeyNumWords , "num_words" )
// keys for sort settings
CONST_T(KeyAsc , "asc" )
CONST_T(KeyBy , "by" )
// miranda services created by historystats
CONST_A(SvcConfigure , "HistoryStats/Configure" )
CONST_A(SvcCreateStatistics , "HistoryStats/CreateFile" )
CONST_A(SvcShowStatistics , "HistoryStats/ShowFile" )
CONST_A(SvcToggleExclude , "HistoryStats/ToggleExclude")
#if defined(HISTORYSTATS_HISTORYCOPY)
CONST_A(SvcHistoryCopy , "HistoryStats/HistoryCopy" )
CONST_A(SvcHistoryPaste , "HistoryStats/HistoryPaste" )
#endif
// min/max time
const DWORD MinDateTime = 0x00000000;
const DWORD MaxDateTime = 0xFFFFFFFF;
// default colors for html output
const COLORREF ColorOut = RGB(0xE8, 0x64, 0x1B);
const COLORREF ColorIn = RGB(0x7C, 0xC6, 0x23);
const COLORREF ColorBar = RGB(0x05, 0x81, 0xB4);
const COLORREF ColorIOLine = RGB(0xBF, 0xBF, 0xBF);
const COLORREF ColorBarLine = RGB(0x02, 0x3F, 0x59);
const COLORREF ColorBarBack = RGB(0xBF, 0xBF, 0xBF);
const COLORREF ColorBack = RGB(0xFF, 0xFF, 0xFF);
const COLORREF ColorBorder = RGB(0x7F, 0x7F, 0x7F);
const COLORREF ColorHeader = RGB(0xDF, 0xDF, 0xDF);
const COLORREF ColorOmitted = RGB(0xDF, 0xDF, 0xDF);
const COLORREF ColorTotals = RGB(0xDF, 0xDF, 0xDF);
}
#undef CONST_T
#undef CONST_A
#undef CONST_W
#endif // HISTORYSTATS_GUARD__CONSTS_H
|