4 \83A
\83v
\83\8a\83P
\81[
\83V
\83\87\83\93\91S
\91Ì
\82Å
\8eg
\82¤
\82³
\82Ü
\82´
\82Ü
\82È
\83f
\81[
\83^
\82ð
\92è
\8b`
9 uses Windows, IniFiles, BRegExp, Graphics, SysUtils, Forms, Dialogs, Classes,
10 ComCtrls, Contnrs, SsPlayTime, StrReplace;
13 TReturnKeyFunction = (kfYenN, kfReturn, kfYenNReturn, kfConstText);
14 TSoundArrived = (saFalse, saTrue, saParent);
15 TLogWindowPreviewStyle = (psConversation, psImageConversation,
16 psScript, psScriptWithLineBreak);
17 TLogListPreviewStyle = (psNoColor, psNormal, psTagStripped);
18 TSurfacePreviewOnScriptPointPosition = (spspMainWindowLeft, spspMainWindowRight);
20 //SSTP Bottle
\82Ì
\90Ý
\92è
21 TBottlePrefs = class(TObject)
25 FIgnoreTimeCritical: boolean;
27 FShowConstBar: boolean;
29 FDblClkInsert: boolean;
30 FShowToolBar: boolean;
31 FDefaultScript: TStringList;
33 FMetaWordColor: TColor;
35 FMarkErrorColor: TColor;
40 FWhenCtrlReturn: TReturnKeyFunction;
41 FWhenShiftReturn: TReturnKeyFunction;
42 FWhenReturn: TReturnKeyFunction;
43 FNoTranslate: boolean;
48 FSilentWhenHidden: boolean;
50 FSenderWindowPosition: TRect;
51 FTabPosition: TTabPosition;
52 FLogWindowPosition: TRect;
54 FIgnoreFrequentYenS: boolean;
55 FWaitScriptEnd: integer;
56 FCgiNameGhost: String;
59 FLogWindowDividerPos: integer;
61 FUseHttpProxy: boolean;
63 FProxyAddress: String;
64 FConfirmOnExit: boolean;
65 FFixMessySurface: boolean;
66 FResetIfGhostAfterSend: boolean;
67 FGhostDropDownCount: integer;
68 FLogWindowPreviewStyle: TLogWindowPreviewStyle;
71 FLogWindowColumnWidth: String;
72 FClearAfterSend: boolean;
73 FAutoJoinChannels: TStrings;
75 FHUTagTo01Tag: boolean;
76 FWarnYenTNotExist: boolean;
77 FWarnScopeChangeInSynchronize: boolean;
78 FNeedConfirmBeforeSend: boolean;
81 FVisibleGhostsList: TStringList;
82 FSurfacePreviewOnHint: boolean;
83 FSurfacePreviewOnScriptPoint: boolean;
84 FSurfacePreviewOnScriptPointPosition: TSurfacePreviewOnScriptPointPosition;
85 FNoExtraSSTPHeaders: boolean;
86 FLogListPreviewStyle: TLogListPreviewStyle;
87 FEditorPreviewWindowPosition: TRect;
89 FConfirmOnTabClose: boolean;
90 FReconnectWait: integer;
91 FPartialConfirmFormat: String;
92 FAutoPartialConfirm: boolean;
93 FPlayTimeParams: TSsPlayTimeParams;
94 FBottleServerPort: integer;
95 FBottleServer: String;
97 FBrowserExeName: string;
98 FReplacePresets: TReplacePresets;
100 procedure SetDblClkInsert(const Value: boolean);
101 procedure SetDefaultScript(const Value: String);
102 procedure SetIgnoreTimeCritical(const Value: boolean);
103 procedure SetMarkErrorColor(const Value: TColor);
104 procedure SetMarkUpColor(const Value: TColor);
105 procedure SetMetaWordColor(const Value: TColor);
106 procedure SetTextColor(const Value: TColor);
107 procedure SetNoConfirm(const Value: boolean);
108 procedure SetShowConstBar(const Value: boolean);
109 procedure SetShowToolBar(const Value: boolean);
110 procedure SetStayOnTop(const Value: boolean);
111 procedure SetTalkColorH(const Value: TColor);
112 procedure SetTalkColorU(const Value: TColor);
113 procedure SetAutoStart(const Value: boolean);
114 procedure SetWhenCtrlReturn(const Value: TReturnKeyFunction);
115 procedure SetWhenReturn(const Value: TReturnKeyFunction);
116 procedure SetWhenShiftReturn(const Value: TReturnKeyFunction);
117 procedure SetNoTranslate(const Value: boolean);
118 procedure SetNoDescript(const Value: boolean);
119 procedure SetBgColor(const Value: TColor);
120 procedure SetServerPort(const Value: integer);
121 procedure SetSilentWhenHidden(const Value: boolean);
122 procedure SetLUID(const Value: String);
123 procedure SetSenderWindowPosition(const Value: TRect);
124 procedure SetTabPosition(const Value: TTabPosition);
125 procedure SetLogWindowPosition(const Value: TRect);
126 procedure SetIgnoreFrequentYenS(const Value: boolean);
127 procedure SetNoTransUrl(const Value: boolean);
128 procedure SetWaitScriptEnd(const Value: integer);
129 procedure SetLogWindowDividerPos(const Value: integer);
130 procedure SetProxyAddress(const Value: String);
131 procedure SetProxyPort(const Value: integer);
132 procedure SetUseHttpProxy(const Value: boolean);
133 procedure SetConfirmOnExit(const Value: boolean);
134 procedure SetFixMessySurface(const Value: boolean);
135 procedure SetResetIfGhostAfterSend(const Value: boolean);
136 procedure SetGhostDropDownCount(const Value: integer);
137 procedure SetLogWindowPreviewStyle(const Value: TLogWindowPreviewStyle);
138 procedure SetTalkColorS(const Value: TColor);
139 procedure SetLogWindowColumnWidth(const Value: String);
140 procedure SetClearAfterSend(const Value: boolean);
141 procedure SetAutoJoinChannels(const Value: TStrings);
142 procedure SetFMOName(const Value: TStrings);
143 function GetDefaultScript: String;
144 procedure SetHUTagTo01Tag(const Value: boolean);
145 procedure SetWarnScopeChangeInSynchronize(const Value: boolean);
146 procedure SetWarnYenTNotExist(const Value: boolean);
147 procedure SetNeedConfirmBeforeSend(const Value: boolean);
148 procedure SetShowRuler(const Value: boolean);
149 procedure SetHideGhosts(const Value: boolean);
150 procedure SetVisibleGhostsList(const Value: TStringList);
151 procedure SetSurfacePreviewOnHint(const Value: boolean);
152 procedure SetSurfacePreviewOnScriptPoint(const Value: boolean);
153 procedure SetSurfacePreviewOnScriptPointPosition(
154 const Value: TSurfacePreviewOnScriptPointPosition);
155 procedure SetNoExtraSSTPHeaders(const Value: boolean);
156 procedure SetLogListPreviewStyle(const Value: TLogListPreviewStyle);
157 procedure SetEditorPreviewWindowPosition(const Value: TRect);
158 procedure SetAutoClip(const Value: boolean);
159 procedure SetConfirmOnTabClose(const Value: boolean);
160 procedure SetReconnectWait(const Value: integer);
161 procedure SetPartialConfirmFormat(const Value: String);
162 procedure SetAutoPartialConfirm(const Value: boolean);
163 procedure SetPlayTimeParams(const Value: TSsPlayTimeParams);
164 procedure SetTabWidth(const Value: integer);
165 procedure SetBrowserExeName(const Value: string);
167 function InScreen(ARect: TRect): boolean;
169 property BottleServer: String read FBottleServer;
170 property BottleServerPort: integer read FBottleServerPort;
171 property PartialConfirmFormat: String read FPartialConfirmFormat write SetPartialConfirmFormat;
172 property AutoPartialConfirm: boolean read FAutoPartialConfirm write SetAutoPartialConfirm;
173 property ConfirmOnExit: boolean read FConfirmOnExit write SetConfirmOnExit;
174 property ConfirmOnTabClose: boolean read FConfirmOnTabClose write SetConfirmOnTabClose;
175 property AutoClip: boolean read FAutoClip write SetAutoClip;
176 property AutoStart: boolean read FAutoStart write SetAutoStart;
177 property TabPosition: TTabPosition read FTabPosition write SetTabPosition;
178 property TabWidth: integer read FTabWidth write SetTabWidth;
179 property GhostDropDownCount: integer read FGhostDropDownCount write SetGhostDropDownCount;
180 property NoTranslate: boolean read FNoTranslate write SetNoTranslate;
181 property NoDescript: boolean read FNoDescript write SetNoDescript;
182 property NoTransUrl: boolean read FNoTransUrl write SetNoTransUrl;
183 property SilentWhenHidden: boolean read FSilentWhenHidden write SetSilentWhenHidden;
184 property FixMessySurface: boolean read FFixMessySurface write SetFixMessySurface;
185 property HUTagTo01Tag: boolean read FHUTagTo01Tag write SetHUTagTo01Tag;
186 property ResetIfGhostAfterSend: boolean read FResetIfGhostAfterSend write SetResetIfGhostAfterSend;
187 property ClearAfterSend: boolean read FClearAfterSend write SetClearAfterSend;
188 property NeedConfirmBeforeSend: boolean read FNeedConfirmBeforeSend write SetNeedConfirmBeforeSend;
189 property IgnoreFrequentYenS: boolean read FIgnoreFrequentYenS write SetIgnoreFrequentYenS;
190 property WarnYenTNotExist: boolean read FWarnYenTNotExist write SetWarnYenTNotExist;
191 property WarnScopeChangeInSynchronize: boolean read FWarnScopeChangeInSynchronize write SetWarnScopeChangeInSynchronize;
192 property WaitScriptEnd: integer read FWaitScriptEnd write SetWaitScriptEnd;
193 property StayOnTop: boolean read FStayOnTop write SetStayOnTop;
194 property IgnoreTimeCritical: boolean read FIgnoreTimeCritical write SetIgnoreTimeCritical;
195 property TalkColorH: TColor read FTalkColorH write SetTalkColorH;
196 property TalkColorU: TColor read FTalkColorU write SetTalkColorU;
197 property TalkColorS: TColor read FTalkColorS write SetTalkColorS;
198 property MarkUpColor: TColor read FMarkUpColor write SetMarkUpColor;
199 property MetaWordColor: TColor read FMetaWordColor write SetMetaWordColor;
200 property MarkErrorColor: TColor read FMarkErrorColor write SetMarkErrorColor;
201 property BgColor: TColor read FBgColor write SetBgColor;
202 property TextColor: TColor read FTextColor write SetTextColor;
203 property DefaultScript: String read GetDefaultScript write SetDefaultScript;
204 property ShowRuler: boolean read FShowRuler write SetShowRuler;
205 property DblClkInsert: boolean read FDblClkInsert write SetDblClkInsert;
206 property ShowToolBar: boolean read FShowToolBar write SetShowToolBar;
207 property ShowConstBar: boolean read FShowConstBar write SetShowConstBar;
208 property NoConfirm: boolean read FNoConfirm write SetNoConfirm;
209 property HomePage: string read FHomePage;
210 property WhenReturn: TReturnKeyFunction read FWhenReturn write SetWhenReturn;
211 property WhenShiftReturn: TReturnKeyFunction read FWhenShiftReturn write SetWhenShiftReturn;
212 property WhenCtrlReturn: TReturnKeyFunction read FWhenCtrlReturn write SetWhenCtrlReturn;
213 property ServerPort: integer read FServerPort write SetServerPort;
215 property CgiName: string read FCgiName;
216 property CgiNameGhost: String read FCgiNameGhost;
217 property CgiFetchLog: String read FCgiFetchLog;
218 property GLogPage: String read FGLogPage;
219 property VotePage: String read FVotePage;
220 property HelpPage: String read FHelpPage;
222 //
\83`
\83\83\83\93\83l
\83\8b\8aÖ
\8cW
223 property AutoJoinChannels: TStrings read FAutoJoinChannels write SetAutoJoinChannels;
225 property LUID: String read FLUID write SetLUID;
227 //
\83E
\83B
\83\93\83h
\83E
\88Ê
\92u
228 property SenderWindowPosition: TRect
229 read FSenderWindowPosition write SetSenderWindowPosition;
230 property LogWindowPosition: TRect read FLogWindowPosition write SetLogWindowPosition;
231 property LogWindowDividerPos: integer
232 read FLogWindowDividerPos write SetLogWindowDividerPos;
233 property LogWindowColumnWidth: String
234 read FLogWindowColumnWidth write SetLogWindowColumnWidth;
235 property EditorPreviewWindowPosition: TRect read FEditorPreviewWindowPosition write SetEditorPreviewWindowPosition;
236 //
\83v
\83\8d\83L
\83V
\8aÖ
\8cW
237 property UseHttpProxy: boolean read FUseHttpProxy write SetUseHttpProxy;
238 property ProxyAddress: String read FProxyAddress write SetProxyAddress;
239 property ProxyPort: integer read FProxyPort write SetProxyPort;
241 property ReconnectWait: integer read FReconnectWait write SetReconnectWait;
242 //
\83\8d\83O
\83E
\83B
\83\93\83h
\83E
\8aÖ
\8cW
243 property LogWindowPreviewStyle: TLogWindowPreviewStyle
244 read FLogWindowPreviewStyle write SetLogWindowPreviewStyle;
245 property LogListPreviewStyle: TLogListPreviewStyle
246 read FLogListPreviewStyle write SetLogListPreviewStyle;
248 property FMOName: TStrings read FFMOName write SetFMOName;
249 property HideGhosts: boolean read FHideGhosts write SetHideGhosts;
250 property VisibleGhostsList: TStringList read FVisibleGhostsList write SetVisibleGhostsList;
251 property NoExtraSSTPHeaders: boolean read FNoExtraSSTPHeaders write SetNoExtraSSTPHeaders;
252 //
\83T
\81[
\83t
\83B
\83X
\83v
\83\8c\83r
\83\85\81[
253 property SurfacePreviewOnHint: boolean
254 read FSurfacePreviewOnHint write SetSurfacePreviewOnHint;
255 property SurfacePreviewOnScriptPoint: boolean
256 read FSurfacePreviewOnScriptPoint write SetSurfacePreviewOnScriptPoint;
257 property SurfacePreviewOnScriptPointPosition: TSurfacePreviewOnScriptPointPosition
258 read FSurfacePreviewOnScriptPointPosition write SetSurfacePreviewOnScriptPointPosition;
259 //
\8dÄ
\90¶
\8e\9e\8aÔ
\97\
\91ª
260 property PlayTimeParams: TSsPlayTimeParams read FPlayTimeParams write SetPlayTimeParams;
261 //URL
\83I
\81[
\83v
\83\93\8e\9e\82É
\8eg
\82¤
\83u
\83\89\83E
\83U
\82Ì
\8eÀ
\8ds
\83t
\83@
\83C
\83\8b\96¼
262 property BrowserExeName: string read FBrowserExeName write SetBrowserExeName;
263 //
\8e©
\93®
\92u
\8a·
\83v
\83\8a\83Z
\83b
\83g
264 property ReplacePresets: TReplacePresets read FReplacePresets;
266 //
\83R
\83\93\83X
\83g
\83\89\83N
\83^
\81E
\83f
\83X
\83g
\83\89\83N
\83^
\81E
\95Û
\91¶
268 destructor Destroy; override;
269 procedure SaveSettings;
272 TChannelListItem = class(TObject)
280 procedure SetGhost(const Value: String);
281 procedure SetInfo(const Value: String);
282 procedure SetMembers(const Value: integer);
283 procedure SetName(const Value: String);
284 procedure SetNoPost(const Value: boolean);
285 procedure SetWarnPost(const Value: boolean);
287 property Name: String read FName write SetName;
288 property Info: String read FInfo write SetInfo;
289 property Ghost: String read FGhost write SetGhost;
290 property Members: integer read FMembers write SetMembers;
291 property NoPost: boolean read FNoPost write SetNoPost;
292 property WarnPost: boolean read FWarnPost write SetWarnPost;
295 TChannelList = class(TList)
297 function GetChannel(Name: String): TChannelListItem;
298 function GetChannelItem(Index: integer): TChannelListItem;
300 procedure Clear; override;
301 property Channel[Name: String]: TChannelListItem read GetChannel;
302 property ChannelItem[Index: integer]: TChannelListItem read GetChannelItem;
305 TScriptTransOption = (
306 toIgnoreTimeCritical,
309 toIgnoreFrequentYenS,
317 TScriptTransOptions = set of TScriptTransOption;
321 ChannelList: TChannelList; //
\83`
\83\83\83\93\83l
\83\8b\83\8a\83X
\83g
\82ð
\95Û
\8e\9d\82·
\82é
322 JoinChannels: TStringList; //
\8c»
\8dÝ
\8eQ
\89Á
\82µ
\82Ä
\82¢
\82é
\83`
\83\83\83\93\83l
\83\8b
325 DefaultBottleServer = 'bottle.mikage.to';
326 DefaultBottleServerPort = 9871;
327 DefaultCGI = '/bottle2.cgi';
328 DefaultCGIGhost = '/glog/bottleglog.cgi';
329 DefaultCGIFetchLog = '/fetchlog.cgi';
332 DefaultHomePage = 'http://bottle.mikage.to/';
333 DefaultGLogPage = 'http://bottle.mikage.to/glog/glogview.cgi';
334 DefaultVotePage = 'http://bottle.mikage.to/viewvotes.cgi';
335 DefaultHelpPage = 'http://bottle.mikage.to/clihelp/index.html';
340 VersionString = 'SSTP Bottle Client ver ' + Version + 'a NO MUTEX VERSION';
342 VersionString = 'SSTP Bottle Client ver ' + Version;
345 SentLogFile = 'sent.log';
347 BottleDisclaimer = '(C)2001-2004 WinBottle Project'#13#10 +
348 'naru, C.Ponapalt, Yune Kotomi, yese, Mikage Sawatari'#13#10 +
351 ChannelDefault = '(CH
\90\84\8f§)';
352 ClipChannel = '(
\83N
\83\8a\83b
\83v)';
354 function ParamsEncode(const ASrc: string): string;
355 function XMLEntity(From: String): String;
356 function SafeFileName(From: String; ChangePathDelimiters: boolean = true): String;
357 function ComponentToString(Component: TComponent): string;
358 function StringToComponent(Value: string): TComponent;
360 function ReplacePresetFileName: string;
362 procedure BuildShortCutList(Target: TStrings);
366 function ParamsEncode(const ASrc: string): string;
370 UnsafeChars = ['*', '#', '%', '<', '>', ' ', '[', ']', '+'];
372 Result := ''; {Do not Localize}
373 for i := 1 to Length(ASrc) do
375 if (ASrc[i] in UnsafeChars) or (not (ord(ASrc[i])in [33..128])) then
376 begin {do not localize}
377 Result := Result + '%' + IntToHex(Ord(ASrc[i]), 2); {do not localize}
381 Result := Result + ASrc[i];
386 // XML
\8eÀ
\91Ì
\8eQ
\8fÆ
\82É
\92u
\82«
\8a·
\82¦
\82é
387 function XMLEntity(From: String): String;
394 for i := 1 to Length(From) do
399 Result := Result + From[i];
400 end else if From[i] in LeadBytes then
403 Result := Result + From[i];
407 60: Result := Result + '<'; // Less than
408 62: Result := Result + '>'; // Greater than
409 38: Result := Result + '&'; // Ampersand
410 39: Result := Result + '''; // Single quote
411 34: Result := Result + '"'; // Double quote
413 Result := Result + From[i];
419 // Escape characters which can not be used as a filename
420 function SafeFileName(From: String; ChangePathDelimiters: boolean = true): String;
422 Result := StringReplace(From, '*', '
\81\96', [rfReplaceAll]);
423 Result := StringReplace(Result, '|', '
\81b', [rfReplaceAll]);
424 Result := StringReplace(Result, '"', '''''', [rfReplaceAll]);
425 Result := StringReplace(Result, '<', '
\81\83', [rfReplaceAll]);
426 Result := StringReplace(Result, '>', '
\81\84', [rfReplaceAll]);
427 Result := StringReplace(Result, '?', '
\81H', [rfReplaceAll]);
428 if ChangePathDelimiters then
430 Result := StringReplace(Result, '\', '
\81\8f', [rfReplaceAll]);
431 Result := StringReplace(Result, ':', '
\81F', [rfReplaceAll]);
432 Result := StringReplace(Result, '/', '
\81^', [rfReplaceAll]);
436 function ComponentToString(Component: TComponent): string;
438 BinStream:TMemoryStream;
439 StrStream: TStringStream;
442 BinStream := TMemoryStream.Create;
444 StrStream := TStringStream.Create(s);
446 BinStream.WriteComponent(Component);
447 BinStream.Seek(0, soFromBeginning);
448 ObjectBinaryToText(BinStream, StrStream);
449 StrStream.Seek(0, soFromBeginning);
450 Result:= StrStream.DataString;
459 function StringToComponent(Value: string): TComponent;
461 StrStream:TStringStream;
462 BinStream: TMemoryStream;
464 StrStream := TStringStream.Create(Value);
466 BinStream := TMemoryStream.Create;
468 ObjectTextToBinary(StrStream, BinStream);
469 BinStream.Seek(0, soFromBeginning);
470 Result := BinStream.ReadComponent(nil);
479 function ReplacePresetFileName: string;
481 Result := ExtractFilePath(Application.ExeName) + 'replace.txt';
484 procedure BuildShortCutList(Target: TStrings);
489 //
\83V
\83\87\81[
\83g
\83J
\83b
\83g
\83\8a\83X
\83g
\82Ì
\91I
\91ð
\8e\88\82ð
\8dì
\90¬
494 for c := 'A' to 'Z' do
496 for c := 'A' to 'Z' do
497 Add('Shift+Ctrl+' + c);
498 for c := 'A' to 'Z' do
499 Add('Alt+Ctrl+' + c);
501 Add('F' + IntToStr(i));
503 Add('Shift+F' + IntToStr(i));
512 constructor TBottlePrefs.Create;
516 FAutoJoinChannels := TStringList.Create;
517 FDefaultScript := TStringList.Create;
518 FFMOName := TStringList.Create;
519 FVisibleGhostsList := TStringList.Create;
521 FIni := TIniFile.Create(ChangeFileExt(Application.ExeName, '.ini'));
523 PartialConfirmFormat := FIni.ReadString('System', 'PartialConfirmFormat', '\t|\e');
524 AutoPartialConfirm := FIni.ReadBool('System', 'AutoPartialConfirm', false);
525 ConfirmOnExit := FIni.ReadBool('System', 'ConfirmOnExit', false);
526 ConfirmOnExit := FIni.ReadBool('System', 'ConfirmOnExit', false);
527 ConfirmOnTabClose := FIni.ReadBool('System', 'ConfirmOnTabClose', false);
528 AutoClip := FIni.ReadBool('System', 'AutoClip', false);
529 AutoStart := FIni.ReadBool('System', 'AutoStart', false);
530 TabPosition := TTabPosition(FIni.ReadInteger('System', 'TabPosition', 0));
531 TabWidth := FIni.ReadInteger('System', 'TabWidth', 0);
532 GhostDropDownCount := FIni.ReadInteger('System', 'GhostDropDownCount', 30);
534 NoTranslate := FIni.ReadBool('System', 'NoTranslate', true);
535 NoDescript := FIni.ReadBool('System', 'NoDescript', false);
536 NoTransUrl := FIni.ReadBool('System', 'NoTransUrl', false);
537 SilentWhenHidden:= FIni.ReadBool('System', 'SilentWhenHidden', true);
538 FixMessySurface := FIni.ReadBool('System', 'FixMessySurface', false);
539 HUTagTo01Tag := FIni.ReadBool('System', 'HUTagTo01Tag', false);
540 ResetIfGhostAfterSend := FIni.ReadBool('System', 'ResetIfGhostAfterSend', false);
541 ClearAfterSend := FIni.ReadBool('System', 'ClearAfterSend', true);
542 NeedConfirmBeforeSend := FIni.ReadBool('System', 'NeedConfirmBeforeSend', true);
543 WarnYenTNotExist := FIni.ReadBool('System', 'WarnYenTNotExist', false);
544 WarnScopeChangeInSynchronize := FIni.ReadBool('System', 'WarnScopeChangeInSynchronize', false);
546 IgnoreFrequentYenS := FIni.ReadBool('System', 'IgnoreFrequentYenS', false);
547 WaitScriptEnd := FIni.ReadInteger('System', 'WaitScriptEnd', 0);
548 StayOnTop := FIni.ReadBool('System', 'StayOnTop', false);
549 ShowConstBar := FIni.ReadBool('System', 'ShowConstBar', true);
550 ShowToolBar := FIni.ReadBool('System', 'ShowToolBar', true);
551 NoConfirm := FIni.ReadBool('System', 'NoConfirm', false);
552 IgnoreTimeCritical := FIni.ReadBool('System', 'IgnoreTimeCritical', false);
553 FDefaultScript.CommaText := FIni.ReadString('System', 'DefaultScript', '\t\u\s[10]\h\s[0]|\e');
554 ShowRuler := FIni.ReadBool('System', 'ShowRuler', false);
557 TalkColorH := StringToColor(FIni.ReadString('System', 'TalkColorH', 'clBlack'));
558 TalkColorU := StringToColor(FIni.ReadString('System', 'TalkColorU', 'clMaroon'));
559 TalkColorS := StringToColor(FIni.ReadString('System', 'TalkColorS', 'clPurple'));
560 MarkUpColor := StringToColor(FIni.ReadString('System', 'MarkUpColor', 'clGreen'));
561 MetaWordColor := StringToColor(FIni.ReadString('System', 'MetaWordColor', 'clBlue'));
562 MarkErrorColor := StringToColor(FIni.ReadString('System', 'MarkErrorColor', 'clRed'));
563 TextColor := StringToColor(FIni.ReadString('System', 'TextColor', ColorToString(TalkColorH)));
564 BgColor := StringToColor(FIni.ReadString('System', 'BgColor', 'clWhite'));
566 on EConvertError do begin
567 ShowMessage('
\83J
\83\89\81[
\82Ì
\90Ý
\92è
\93Ç
\82Ý
\8d\9e\82Ý
\83G
\83\89\81[');
568 FTalkColorH := clBlack;
569 FTalkColorU := clMaroon;
570 FMarkUpColor := clGreen;
571 FMetaWordColor := clBlue;
572 FMarkErrorColor := clRed;
573 FTextColor := clBlack;
578 if FIni.ReadString('System', 'PlayTimeParams', '') = '' then
580 FPlayTimeParams := TSsPlayTimeParams.Create(nil);
581 FPlayTimeParams.ProfileName := '
\83f
\83t
\83H
\83\8b\83g';
584 Strs := TStringList.Create;
586 Strs.CommaText := FIni.ReadString('System', 'PlayTimeParams', '');
587 FPlayTimeParams := StringToComponent(Strs.Text) as TSsPlayTimeParams;
595 ShowMessage('
\8dÄ
\90¶
\8e\9e\8aÔ
\97\
\91ª
\90Ý
\92è
\82Ì
\93Ç
\82Ý
\8d\9e\82Ý
\83G
\83\89\81[' + E.Message);
596 if FPlayTimeParams = nil then
597 FPlayTimeParams := TSsPlayTimeParams.Create(nil);
601 WhenReturn := TReturnKeyFunction(FIni.ReadInteger('System', 'WhenReturn', 0));
602 WhenShiftReturn := TReturnKeyFunction(FIni.ReadInteger('System', 'WhenShiftReturn', 0));
603 WhenCtrlReturn := TReturnKeyFunction(FIni.ReadInteger('System', 'WhenCtrlReturn', 0));
604 //
\83\
\83P
\83b
\83g
\82ð
\83{
\83g
\83\8b\94z
\91\97\82ÌSSTP
\92Ê
\90M
\82É
\8eg
\97p
\82·
\82é
\8fê
\8d\87\82Ì
\90Ý
\92è
605 ServerPort := FIni.ReadInteger('System', 'ServerPort', 11000);
607 FBottleServer := FIni.ReadString('System', 'BottleServer', DefaultBottleServer);
608 FBottleServerPort := FIni.ReadInteger('System', 'BottleServerPort', DefaultBottleServerPort);
609 FCgiName := FIni.ReadString('System', 'CgiName', DefaultCGI);
610 FCgiFetchLog := FIni.ReadString('System', 'CgiFetchLog', DefaultCGIFetchLog);
611 FHomePage := FIni.ReadString('System', 'HomePage', DefaultHomePage);
612 FGLogPage := FIni.ReadString('System', 'GLogPage', DefaultGLogPage);
613 FVotePage := FIni.ReadString('System', 'VotePage', DefaultVotePage);
614 FHelpPage := FIni.ReadString('System', 'HelpPage', DefaultHelpPage);
615 FCgiNameGhost := FIni.ReadString('System', 'GHOST', DefaultCGIGhost);
616 FLUID := FIni.ReadString('System', 'LUID', '');
617 FAutoJoinChannels.CommaText := FIni.ReadString('System', 'AutoJoinChannels', '');
619 ARect.Top := FIni.ReadInteger('System', 'SenderWindowPositionTop', 100);
620 ARect.Left := FIni.ReadInteger('System', 'SenderWindowPositionLeft', 100);
621 ARect.Bottom := FIni.ReadInteger('System', 'SenderWindowPositionBottom', 500);
622 ARect.Right := FIni.ReadInteger('System', 'SenderWindowPositionRight', 500);
623 if not InScreen(ARect) then
624 ARect := Rect(100, 100, 500, 500);
625 SenderWindowPosition := ARect;
626 ARect.Top := FIni.ReadInteger('System', 'LogWindowPositionTop', 200);
627 ARect.Left := FIni.ReadInteger('System', 'LogWindowPositionLeft', 200);
628 ARect.Bottom := FIni.ReadInteger('System', 'LogWindowPositionBottom', 600);
629 ARect.Right := FIni.ReadInteger('System', 'LogWindowPositionRight', 400);
630 LogWindowDividerPos := FIni.ReadInteger('System', 'LogWindowDividerPos', 150);
631 LogWindowColumnWidth := FIni.ReadString('System', 'LogWindowColumnWidth', '');
632 if not InScreen(ARect) then begin
633 ARect := Rect(200, 200, 600, 400);
634 LogWindowDividerPos := 150;
636 LogWindowPosition := ARect;
637 Strs := TStringList.Create;
639 Strs.CommaText := FIni.ReadString('System', 'EditorPreviewWindowPosition', '500,100,800,500');
641 ARect.Left := StrToInt(Strs[0]);
642 ARect.Top := StrToInt(Strs[1]);
643 ARect.Right := StrToInt(Strs[2]);
644 ARect.Bottom := StrToInt(Strs[3]);
646 ARect := Rect(500, 100, 800, 500);
648 EditorPreviewWindowPosition := ARect;
653 UseHttpProxy := FIni.ReadBool('System', 'UseHttpProxy', false);
654 ProxyAddress := FIni.ReadString('System', 'ProxyAddress', '');
655 ProxyPort := FIni.ReadInteger('System', 'ProxyPort', 0);
657 ReconnectWait := FIni.ReadInteger('System', 'ReconnectWait', 6);
658 //
\83\8d\83O
\83E
\83B
\83\93\83h
\83E
\8aÖ
\8cW
659 LogWindowPreviewStyle := TLogWindowPreviewStyle(
660 FIni.ReadInteger('System', 'LogWindowPreviewStyle', 0));
661 LogListPreviewStyle := TLogListPreviewStyle(
662 FIni.ReadInteger('System', 'LogListPreviewStyle', 0));
664 FMOName.CommaText := FIni.ReadString('System', 'FMOName', 'Sakura');
665 HideGhosts := FIni.ReadBool('System', 'HideGhosts', false);
666 VisibleGhostsList.CommaText := FIni.ReadString('System', 'VisibleGhostsList', '');
667 NoExtraSSTPHeaders := FIni.ReadBool('System', 'NoExtraSSTPHeaders', false);
668 //
\83T
\81[
\83t
\83B
\83X
\83v
\83\8c\83r
\83\85\81[
669 SurfacePreviewOnHint := FIni.ReadBool('System', 'SurfacePreviewOnHint', false);
670 SurfacePreviewOnScriptPoint := FIni.ReadBool('System', 'SurfacePreviewOnScriptPoint', false);
671 SurfacePreviewOnScriptPointPosition :=
672 TSurfacePreviewOnScriptPointPosition(FIni.ReadInteger('System', 'SurfacePreviewOnScriptPointPosition', 0));
674 //URL
\82ð
\8aJ
\82
\83u
\83\89\83E
\83U
675 FBrowserExeName:= FIni.ReadString('System', 'BrowserExeName', '');
677 //
\8e©
\93®
\92u
\8a·
\83v
\83\8a\83Z
\83b
\83g
678 if FileExists(ReplacePresetFileName) then
681 Strs := TStringList.Create;
683 Strs.LoadFromFile(ReplacePresetFileName);
684 FReplacePresets := StringToComponent(Strs.Text) as TReplacePresets;
689 ShowMessage('Replace.txt
\93Ç
\82Ý
\8d\9e\82Ý
\92\86\82Ì
\83G
\83\89\81[
\81B'#13#10+
690 '
\83t
\83@
\83C
\83\8b\82ª
\94j
\91¹
\82µ
\82Ä
\82¢
\82é
\8fê
\8d\87\82Í
\81A
\82±
\82Ì
\83t
\83@
\83C
\83\8b\82ð
\8dí
\8f\9c\82µ
\82Ä
\8dÄ
\8bN
\93®
\82µ
\82Ä
\82
\82¾
\82³
\82¢');
694 FReplacePresets := TReplacePresets.Create(nil);
698 ShowMessage('
\90Ý
\92è
\93Ç
\82Ý
\8d\9e\82Ý
\83G
\83\89\81['#13#10 + E.Message);
699 Application.Terminate;
704 destructor TBottlePrefs.Destroy;
708 if FReplacePresets <> nil then
709 FReplacePresets.Free;
712 if FAutoJoinChannels <> nil then
713 FAutoJoinChannels.Free;
714 if FDefaultScript <> nil then
716 if FFMOName <> nil then
718 if FVisibleGhostsList <> nil then
719 FVisibleGhostsList.Free;
720 if FPlayTimeParams <> nil then
721 FPlayTimeParams.Free;
724 procedure TBottlePrefs.SetAutoStart(const Value: boolean);
729 procedure TBottlePrefs.SetBgColor(const Value: TColor);
734 procedure TBottlePrefs.SetConfirmOnExit(const Value: boolean);
736 FConfirmOnExit := Value;
739 procedure TBottlePrefs.SetDblClkInsert(const Value: boolean);
741 FDblClkInsert := Value;
744 procedure TBottlePrefs.SetDefaultScript(const Value: String);
746 FDefaultScript.Text := Value;
749 procedure TBottlePrefs.SetFixMessySurface(const Value: boolean);
751 FFixMessySurface := Value;
754 procedure TBottlePrefs.SetGhostDropDownCount(const Value: integer);
756 FGhostDropDownCount := Value;
759 procedure TBottlePrefs.SetIgnoreFrequentYenS(const Value: boolean);
761 FIgnoreFrequentYenS := Value;
764 procedure TBottlePrefs.SetIgnoreTimeCritical(const Value: boolean);
766 FIgnoreTimeCritical := Value;
769 procedure TBottlePrefs.SetLogWindowDividerPos(const Value: integer);
771 FLogWindowDividerPos := Value;
774 procedure TBottlePrefs.SetLogWindowPosition(const Value: TRect);
776 FLogWindowPosition := Value;
779 procedure TBottlePrefs.SetLUID(const Value: String);
784 procedure TBottlePrefs.SetMarkErrorColor(const Value: TColor);
786 FMarkErrorColor := Value;
789 procedure TBottlePrefs.SetTextColor(const Value: TColor);
794 procedure TBottlePrefs.SetMarkUpColor(const Value: TColor);
796 FMarkUpColor := Value;
799 procedure TBottlePrefs.SetMetaWordColor(const Value: TColor);
801 FMetaWordColor := Value;
804 procedure TBottlePrefs.SetNoConfirm(const Value: boolean);
809 procedure TBottlePrefs.SetNoDescript(const Value: boolean);
811 FNoDescript := Value;
814 procedure TBottlePrefs.SetNoTranslate(const Value: boolean);
816 FNoTranslate := Value;
819 procedure TBottlePrefs.SetNoTransUrl(const Value: boolean);
821 FNoTransUrl := Value;
824 procedure TBottlePrefs.SetLogWindowPreviewStyle(
825 const Value: TLogWindowPreviewStyle);
827 FLogWindowPreviewStyle := Value;
830 procedure TBottlePrefs.SetProxyAddress(const Value: String);
832 FProxyAddress := Value;
835 procedure TBottlePrefs.SetProxyPort(const Value: integer);
840 procedure TBottlePrefs.SetResetIfGhostAfterSend(const Value: boolean);
842 FResetIfGhostAfterSend := Value;
845 procedure TBottlePrefs.SetSenderWindowPosition(const Value: TRect);
847 FSenderWindowPosition := Value;
850 procedure TBottlePrefs.SetServerPort(const Value: integer);
852 if Value > 0 then FServerPort := Value;
855 procedure TBottlePrefs.SetShowConstBar(const Value: boolean);
857 FShowConstBar := Value;
860 procedure TBottlePrefs.SetShowToolBar(const Value: boolean);
862 FShowToolBar := Value;
865 procedure TBottlePrefs.SetSilentWhenHidden(const Value: boolean);
867 FSilentWhenHidden := Value;
870 procedure TBottlePrefs.SetStayOnTop(const Value: boolean);
875 procedure TBottlePrefs.SetTabPosition(const Value: TTabPosition);
877 FTabPosition := Value;
880 procedure TBottlePrefs.SetTalkColorH(const Value: TColor);
882 FTalkColorH := Value;
885 procedure TBottlePrefs.SetTalkColorU(const Value: TColor);
887 FTalkColorU := Value;
890 procedure TBottlePrefs.SetUseHttpProxy(const Value: boolean);
892 FUseHttpProxy := Value;
895 procedure TBottlePrefs.SetWaitScriptEnd(const Value: integer);
897 if Value > 0 then FWaitScriptEnd := Value;
900 procedure TBottlePrefs.SetWhenCtrlReturn(const Value: TReturnKeyFunction);
902 FWhenCtrlReturn := Value;
905 procedure TBottlePrefs.SetWhenReturn(const Value: TReturnKeyFunction);
907 FWhenReturn := Value;
910 procedure TBottlePrefs.SetWhenShiftReturn(const Value: TReturnKeyFunction);
912 FWhenShiftReturn := Value;
915 procedure TBottlePrefs.SetTalkColorS(const Value: TColor);
917 FTalkColorS := Value;
920 procedure TBottlePrefs.SetLogWindowColumnWidth(const Value: String);
922 FLogWindowColumnWidth := Value;
925 procedure TBottlePrefs.SetClearAfterSend(const Value: boolean);
927 FClearAfterSend := Value;
930 procedure TBottlePrefs.SetAutoJoinChannels(const Value: TStrings);
932 FAutoJoinChannels.Assign(Value);
935 procedure TBottlePrefs.SetFMOName(const Value: TStrings);
937 FFMOName.Assign(Value);
940 procedure TBottlePrefs.SaveSettings;
944 FIni.WriteString('System', 'PartialConfirmFormat', PartialConfirmFormat);
945 FIni.WriteBool('System', 'AutoPartialConfirm', AutoPartialConfirm);
946 FIni.WriteBool('System', 'ConfirmOnExit', ConfirmOnExit);
947 FIni.WriteBool('System', 'ConfirmOnTabClose', ConfirmOnTabClose);
948 FIni.WriteBool('System', 'AutoClip', AutoClip);
949 FIni.WriteBool('System', 'AutoStart', AutoStart);
950 FIni.WriteInteger('System', 'TabPosition', Ord(TabPosition));
951 FIni.WriteInteger('System', 'TabWidth', TabWidth);
952 FIni.WriteInteger('System', 'GhostDropDownCount', GhostDropDownCount);
954 FIni.WriteBool('System', 'NoTranslate', NoTranslate);
955 FIni.WriteBool('System', 'NoDescript', NoDescript);
956 FIni.WriteBool('System', 'NoTransUrl', NoTransUrl);
957 FIni.WriteBool('System', 'SilentWhenHidden', SilentWhenHidden);
958 FIni.WriteBool('System', 'FixMessySurface', FixMessySurface);
959 FIni.WriteBool('System', 'HUTagTo01Tag', HUTagTo01Tag);
960 FIni.WriteBool('System', 'ResetIfGhostAfterSend', ResetIfGhostAfterSend);
961 FIni.WriteBool('System', 'ClearAfterSend', ClearAfterSend);
962 FIni.WriteBool('System', 'NeedConfirmBeforeSend', NeedConfirmBeforeSend);
963 FIni.WriteBool('System', 'WarnYenTNotExist', WarnYenTNotExist);
964 FIni.WriteBool('System', 'WarnScopeChangeInSynchronize', WarnScopeChangeInSynchronize);
966 FIni.WriteBool('System', 'IgnoreFrequentYenS', IgnoreFrequentYenS);
967 FIni.WriteInteger('System', 'WaitScriptEnd', WaitScriptEnd);
968 FIni.WriteBool('System', 'StayOnTop', StayOnTop);
969 FIni.WriteBool('System', 'NoConfirm', NoConfirm);
970 FIni.WriteBool('System', 'IgnoreTimeCritical', IgnoreTimeCritical);
971 FIni.WriteString('System', 'TalkColorH', ColorToString(TalkColorH));
972 FIni.WriteString('System', 'TalkColorU', ColorToString(TalkColorU));
973 FIni.WriteString('System', 'TalkColorS', ColorToString(TalkColorS));
974 FIni.WriteString('System', 'MarkUpColor', ColorToString(MarkUpColor));
975 FIni.WriteString('System', 'MetaWordColor', ColorToString(MetaWordColor));
976 FIni.WriteString('System', 'MarkErrorColor', ColorToString(MarkErrorColor));
977 FIni.WriteString('System', 'TextColor', ColorToString(TextColor));
979 Strs := TStringList.Create;
981 Strs.Text := ComponentToString(FPlayTimeParams);
982 FIni.WriteString('System', 'PlayTimeParams', Strs.CommaText);
987 FIni.WriteString('System', 'BgColor', ColorToString(BgColor));
988 FIni.WriteBool('System', 'ShowToolBar', ShowToolBar);
989 FIni.WriteBool('System', 'ShowConstBar', ShowConstBar);
990 FIni.WriteString('System', 'DefaultScript', FDefaultScript.CommaText);
991 FIni.WriteBool('System', 'ShowRuler', ShowRuler);
992 FIni.WriteInteger('System', 'WhenReturn', Ord(WhenReturn));
993 FIni.WriteInteger('System', 'WhenShiftReturn', Ord(WhenShiftReturn));
994 FIni.WriteInteger('System', 'WhenCtrlReturn', Ord(WhenCtrlReturn));
995 FIni.WriteInteger('System', 'ServerPort', ServerPort);
996 FIni.WriteString('System', 'LUID', LUID);
997 FIni.WriteString('System', 'AutoJoinChannels', FAutoJoinChannels.CommaText);
999 FIni.WriteInteger('System', 'SenderWindowPositionLeft', SenderWindowPosition.Left);
1000 FIni.WriteInteger('System', 'SenderWindowPositionTop', SenderWindowPosition.Top);
1001 FIni.WriteInteger('System', 'SenderWindowPositionRight', SenderWindowPosition.Right);
1002 FIni.WriteInteger('System', 'SenderWindowPositionBottom', SenderWindowPosition.Bottom);
1003 FIni.WriteInteger('System', 'LogWindowPositionLeft', LogWindowPosition.Left);
1004 FIni.WriteInteger('System', 'LogWindowPositionTop', LogWindowPosition.Top);
1005 FIni.WriteInteger('System', 'LogWindowPositionRight', LogWindowPosition.Right);
1006 FIni.WriteInteger('System', 'LogWindowPositionBottom', LogWindowPosition.Bottom);
1007 FIni.WriteInteger('System', 'LogWindowDividerPos', LogWindowDividerPos);
1008 FIni.WriteString('System', 'LogWindowColumnWidth', LogWindowColumnWidth);
1009 with EditorPreviewWindowPosition do
1010 FIni.WriteString('System', 'EditorPreviewWindowPosition',
1011 Format('%d,%d,%d,%d', [Left, Top, Right, Bottom]));
1013 FIni.WriteBool('System', 'UseHttpProxy', UseHttpProxy);
1014 FIni.WriteString('System', 'ProxyAddress', ProxyAddress);
1015 FIni.WriteInteger('System', 'ProxyPort', ProxyPort);
1017 FIni.WriteInteger('System', 'ReconnectWait', ReconnectWait);
1019 FIni.WriteInteger('System', 'LogWindowPreviewStyle', Ord(LogWindowPreviewStyle));
1020 FIni.WriteInteger('System', 'LogListPreviewStyle', Ord(LogListPreviewStyle));
1021 FIni.WriteString('System', 'FMOName', FFMOName.CommaText);
1022 FIni.WriteBool('System', 'HideGhosts', HideGhosts);
1023 FIni.WriteString('System', 'VisibleGhostsList', VisibleGhostsList.CommaText);
1024 FIni.WriteBool('System', 'NoExtraSSTPHeaders', NoExtraSSTPHeaders);
1026 FIni.WriteBool('System', 'SurfacePreviewOnHint', SurfacePreviewOnHint);
1027 FIni.WriteBool('System', 'SurfacePreviewOnScriptPoint', SurfacePreviewOnScriptPoint);
1028 FIni.WriteInteger('System', 'SurfacePreviewOnScriptPointPosition', Ord(SurfacePreviewOnScriptPointPosition));
1030 FIni.WriteString('System', 'BrowserExeName', FBrowserExeName);
1032 Strs := TStringList.Create;
1034 Strs.Text := ComponentToString(FReplacePresets);
1035 Strs.SaveToFile(ReplacePresetFileName);
1041 function TBottlePrefs.GetDefaultScript: String;
1043 Result := FDefaultScript.Text;
1046 procedure TBottlePrefs.SetHUTagTo01Tag(const Value: boolean);
1048 FHUTagTo01Tag := Value;
1051 procedure TBottlePrefs.SetWarnScopeChangeInSynchronize(
1052 const Value: boolean);
1054 FWarnScopeChangeInSynchronize := Value;
1057 procedure TBottlePrefs.SetWarnYenTNotExist(const Value: boolean);
1059 FWarnYenTNotExist := Value;
1062 procedure TBottlePrefs.SetNeedConfirmBeforeSend(const Value: boolean);
1064 FNeedConfirmBeforeSend := Value;
1067 procedure TBottlePrefs.SetShowRuler(const Value: boolean);
1069 FShowRuler := Value;
1072 procedure TBottlePrefs.SetHideGhosts(const Value: boolean);
1074 FHideGhosts := Value;
1077 procedure TBottlePrefs.SetVisibleGhostsList(const Value: TStringList);
1079 FVisibleGhostsList.Assign(Value);
1082 procedure TBottlePrefs.SetSurfacePreviewOnHint(const Value: boolean);
1084 FSurfacePreviewOnHint := Value;
1087 procedure TBottlePrefs.SetSurfacePreviewOnScriptPoint(
1088 const Value: boolean);
1090 FSurfacePreviewOnScriptPoint := Value;
1093 procedure TBottlePrefs.SetSurfacePreviewOnScriptPointPosition(
1094 const Value: TSurfacePreviewOnScriptPointPosition);
1096 FSurfacePreviewOnScriptPointPosition := Value;
1099 procedure TBottlePrefs.SetNoExtraSSTPHeaders(const Value: boolean);
1101 FNoExtraSSTPHeaders := Value;
1104 procedure TBottlePrefs.SetLogListPreviewStyle(
1105 const Value: TLogListPreviewStyle);
1107 FLogListPreviewStyle := Value;
1110 procedure TBottlePrefs.SetEditorPreviewWindowPosition(const Value: TRect);
1112 FEditorPreviewWindowPosition := Value;
1115 function TBottlePrefs.InScreen(ARect: TRect): boolean;
1120 for i := 0 to Screen.MonitorCount-1 do
1122 if IntersectRect(dum, ARect, Screen.Monitors[i].WorkareaRect) then
1130 procedure TBottlePrefs.SetAutoClip(const Value: boolean);
1135 procedure TBottlePrefs.SetConfirmOnTabClose(const Value: boolean);
1137 FConfirmOnTabClose := Value;
1140 procedure TBottlePrefs.SetReconnectWait(const Value: integer);
1142 FReconnectWait := Value;
1144 raise Exception.Create('Reconnect wait must be >=6');
1147 procedure TBottlePrefs.SetPartialConfirmFormat(const Value: String);
1149 FPartialConfirmFormat := Value;
1152 procedure TBottlePrefs.SetAutoPartialConfirm(const Value: boolean);
1154 FAutoPartialConfirm := Value;
1157 procedure TBottlePrefs.SetPlayTimeParams(const Value: TSsPlayTimeParams);
1159 FPlayTimeParams.Assign(Value);
1162 procedure TBottlePrefs.SetTabWidth(const Value: integer);
1167 procedure TBottlePrefs.SetBrowserExeName(const Value: string);
1169 FBrowserExeName := Value;
1172 { TChannelListItem }
1174 procedure TChannelListItem.SetGhost(const Value: String);
1179 procedure TChannelListItem.SetInfo(const Value: String);
1184 procedure TChannelListItem.SetMembers(const Value: integer);
1189 procedure TChannelListItem.SetName(const Value: String);
1194 procedure TChannelListItem.SetNoPost(const Value: boolean);
1199 procedure TChannelListItem.SetWarnPost(const Value: boolean);
1206 procedure TChannelList.Clear;
1209 for i := Self.Count-1 downto 0 do begin
1210 TChannelListItem(Self[i]).Free;
1215 function TChannelList.GetChannel(Name: String): TChannelListItem;
1219 for i := 0 to Count-1 do
1220 if TChannelListItem(Self[i]).Name = Name then begin
1221 Result := TChannelListItem(Self[i]);
1226 function TChannelList.GetChannelItem(Index: integer): TChannelListItem;
1228 Result := TChannelListItem(Self[Index]);
1233 Classes.RegisterClass(TSsPlayTimeParams);
1235 Pref := TBottlePrefs.Create;
1236 ChannelList := TChannelList.Create;
1237 JoinChannels := TStringList.Create;