Develop and Download Open Source Software

Browse CVS Repository

Annotation of /gikonavigoeson/gikonavi/Setting.pas

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.94 - (hide annotations) (download) (as text)
Mon Sep 26 14:01:33 2005 UTC (18 years, 6 months ago) by genyakun
Branch: MAIN
Changes since 1.93: +5 -3 lines
File MIME type: text/x-pascal
2chの板一覧URL変更に対応

1 hi_ 1.1 unit Setting;
2    
3     interface
4    
5     uses
6     SysUtils, Classes, Graphics, Forms, Math, IniFiles, UCryptAuto, UBase64,
7 yoffy 1.74 ComCtrls, GestureModel;
8 hi_ 1.1
9     const
10     MAIN_COOLBAND_COUNT = 4; //?<?ゃ??oolBand????/span>
11     LIST_COOLBAND_COUNT = 2; //??oolBand????/span>
12     BROWSER_COOLBAND_COUNT = 3; //????????oolBand????/span>
13    
14 yoffy 1.14 BOARD_FILE_NAME = 'board.2ch';
15     CUSTOMBOARD_FILE_NAME = 'custom.2ch';
16 yoffy 1.18 BOARD_DIR_NAME = 'Board';
17 yoffy 1.14 KEY_SETTING_FILE_NAME = 'key.ini';
18 yoffy 1.34 EKEY_SETTING_FILE_NAME = 'Ekey.ini';
19 yoffy 1.14 TEMP_FOLDER = 'Temp';
20     OUTBOX_FILE_NAME = 'outbox.ini';
21     SENT_FILE_NAME = 'sent.ini';
22     CONFIG_DIR_NAME = 'config';
23     CSS_DIR_NAME = 'css';
24     SKIN_DIR_NAME = 'skin';
25     SKIN_HEADER_FILE_NAME = 'Header.html';
26     SKIN_FOOTER_FILE_NAME = 'Footer.html';
27     SKIN_NEWRES_FILE_NAME = 'NewRes.html';
28     SKIN_RES_FILE_NAME = 'Res.html';
29     SKIN_BOOKMARK_FILE_NAME = 'Bookmark.html';
30     SKIN_NEWMARK_FILE_NAME = 'Newmark.html';
31 yoffy 1.15 NGWORDs_DIR_NAME : String = 'NGwords';
32 yoffy 1.16 BOARD_PLUGIN_DIR_NAME = 'BoardPlugin';
33 yoffy 1.34 SAMBATIME_FILE_NAME : String = 'Samba.ini';
34 h677 1.35 IGNORE_FILE_NAME : String = 'Ignore.txt';
35 h677 1.37 // DOLIB_LOGIN_URL = '/~tora3n2c/futen.cgi';
36 q9_ 1.45 MAX_POPUP_RES : Integer = 10;
37 yoffy 1.74 GESTURE_FILE_NAME = 'Gestures.ini';
38 yoffy 1.79 SPAMFILTER_FILE_NAME = 'SpamFilter.ini';
39 genyakun 1.87 LANGUAGE_FILE_NAME = 'language.ini';
40 h677 1.86
41 hi_ 1.1 type
42     TGikoTabPosition = (gtpTop, gtpBottom); // ?帥??篏?臀?/span>
43     TGikoTabAppend = (gtaFirst, gtpLast); // ?帥??菴遵??篏?臀?/span>
44     TGikoTabStyle = (gtsTab, gtsButton, gtsFlat); // ?帥???鴻?帥?ゃ??/span>
45     TGikoListOrientation = (gloHorizontal, gloVertical); // ???鴻?????眼?紙梓綛?/span>
46     TGikoListState = (glsMax, glsNormal, glsMin); // ???鴻???泣?ゃ?榊?倶??
47     // ???????≪????茵?ず篏?臀?/span>
48     TGikoPopupPosition = (gppRightTop, gppTop, gppLeftTop,
49     gppRight, gppCenter, gppLeft,
50     gppRightBottom, gppBottom, gppLeftBottom);
51     //???????ャ?若?泣?ゃ??/span>
52     TGikoPreviewSize = (gpsXLarge, gpsLarge, gpsMedium, gpsSmall, gpsXSmall);
53 yoffy 1.39 TGikoBrowserAutoMaximize = (gbmNone, gbmClick, gbmDoubleClick);
54     // ???????吟????????????紊у???????>散
55 yoffy 1.49 /// ???壕;腓榊??蚊??10 ?? 65535 ????? n ???号?宴????
56     /// 絨?? 201-300 ??????????蚊?????????????醇?с?????????篏? 2 byte ???膣???
57     TGikoResRange = (grrAll, grrSelect, grrKoko, grrNew);
58 hi_ 1.1
59 yoffy 1.55 /// ?鴻??????筝?荀ц;腓榊???/span>
60     TGikoThreadRange = (gtrAll, gtrSelect, gtrLog, gtrNew);
61    
62 yoffy 1.83 //! ?鴻???????c???帥?若?≪???眼???冴??
63     TGikoSpamFilterAlgorithm = (
64     gsfaNone, gsfaPaulGraham, gsfaGaryRobinson, gsfaGaryRobinsonFisher);
65    
66 h677 1.86
67 yoffy 1.62 /// ?????眼?????鴻?????????? ID
68     type TGikoBBSColumnID = (gbbscTitle);
69 yoffy 1.63 /// ?????眼?????鴻????????????
70 yoffy 1.65 const GikoBBSColumnCaption : array[0..0] of string =
71 yoffy 1.62 ( '?????眼????' );
72 yoffy 1.63 /// ?????眼?????鴻????????????
73     type TGikoBBSColumnList = class( TList )
74     private
75     function GetItem( index : integer ) : TGikoBBSColumnID;
76     procedure SetItem( index : integer; value : TGikoBBSColumnID);
77     public
78     constructor Create;
79 yoffy 1.68 destructor Destroy; override;
80 yoffy 1.63 function Add( value : TGikoBBSColumnID ) : Integer;
81 yoffy 1.64 property Items[index : integer]: TGikoBBSColumnID read GetItem write SetItem; default;
82 yoffy 1.63 end;
83 yoffy 1.62 /// ?帥???鴻?????????? ID
84 yoffy 1.65 type TGikoCategoryColumnID = (gccTitle, gccRoundName, gccLastModified);
85 yoffy 1.62 /// ?帥???鴻????????????
86 yoffy 1.65 const GikoCategoryColumnCaption : array[0..2] of string =
87     ( '?水??', '綏≦??篋?膣?', '??緇??ユ??' );
88 yoffy 1.63 /// ?帥???鴻????????????
89     type TGikoCategoryColumnList = class( TList )
90     private
91     function GetItem( index : integer ) : TGikoCategoryColumnID;
92     procedure SetItem( index : integer; value : TGikoCategoryColumnID);
93     public
94     constructor Create;
95 yoffy 1.68 destructor Destroy; override;
96 yoffy 1.63 function Add( value : TGikoCategoryColumnID ) : Integer;
97 yoffy 1.64 property Items[index : integer]: TGikoCategoryColumnID read GetItem write SetItem; default;
98 yoffy 1.63 end;
99 yoffy 1.62 /// ?鴻?????鴻?????????? ID
100     type TGikoBoardColumnID = (gbcTitle, gbcAllCount, gbcLocalCount, gbcNonAcqCount,
101 h677 1.70 gbcNewCount, gbcUnReadCount, gbcRoundName, gbcRoundDate, gbcCreated, gbcLastModified );{gbcLastModified,}
102 yoffy 1.62 /// ?鴻?????鴻????????????
103 h677 1.70 const GikoBoardColumnCaption : array[0..9] of string =
104 yoffy 1.62 ( '?鴻????????', '?????潟??', '??緇?', '????', '?亥??',
105 h677 1.70 '???', '綏≦??篋?膣?', '??緇??ユ??', '?鴻??????ユ??', '??腟??贋?井?ユ??' );
106     const GikoBoardColumnAlignment : array[0..9] of TAlignment = (
107 yoffy 1.65 taLeftJustify, taRightJustify, taRightJustify, taRightJustify,
108     taRightJustify, taRightJustify, taLeftJustify, taLeftJustify,
109 h677 1.70 taLeftJustify, taLeftJustify);
110 yoffy 1.63 /// ?鴻?????鴻????????????
111     type TGikoBoardColumnList = class( TList )
112     private
113     function GetItem( index : integer ) : TGikoBoardColumnID;
114     procedure SetItem( index : integer; value : TGikoBoardColumnID);
115     public
116     constructor Create;
117 yoffy 1.68 destructor Destroy; override;
118 yoffy 1.63 function Add( value : TGikoBoardColumnID ) : Integer;
119 yoffy 1.64 property Items[index : integer]: TGikoBoardColumnID read GetItem write SetItem; default;
120 yoffy 1.63 end;
121 yoffy 1.62
122     type
123 hi_ 1.1 //CoolBar荐?????潟?若??
124     TCoolSet = record
125     FCoolID: Integer;
126     FCoolWidth: Integer;
127     FCoolBreak: Boolean;
128     end;
129    
130     TSetting = class(TObject)
131     private
132     //??篆<???????<?泣?ゃ??/span>
133     FRecvBufferSize: Integer;
134     //HTTP1.1篏睡??/span>
135     FProtocol: Boolean;
136     //???????傑・膓?HTTP1.1篏睡??/span>
137     FProxyProtocol: Boolean;
138    
139     //???????件?茯?昭???
140     FReadProxy: Boolean;
141     FReadProxyAddress: string;
142     FReadProxyPort: Integer;
143     FReadProxyUserID: string;
144     FReadProxyPassword: string;
145    
146     //???????件??梧昭???
147     FWriteProxy: Boolean;
148     FWriteProxyAddress: string;
149     FWriteProxyPort: Integer;
150     FWriteProxyUserID: string;
151     FWriteProxyPassword: string;
152    
153     //???c????????
154     FCabinetFontName: string;
155     FCabinetFontSize: Integer;
156     FCabinetFontBold: Boolean;
157     FCabinetFontItalic: Boolean;
158     FCabinetFontColor: TColor;
159     FCabinetBackColor: TColor;
160    
161     //???鴻??
162     FListFontName: string;
163     FListFontSize: Integer;
164     FListFontBold: Boolean;
165     FListFontItalic: Boolean;
166     FListFontColor: TColor;
167     FListBackColor: TColor;
168    
169     //????????/span>
170 yoffy 1.6 FBrowserFontName: string; // ''...default
171     FBrowserFontSize: Integer; // 0...default
172     FBrowserFontBold: Integer; // 0...default, -1...False, 1...True
173     FBrowserFontItalic: Integer; // 筝???????
174 yoffy 1.14 FBrowserFontColor: Integer; // -1...default
175     FBrowserBackColor: Integer; // 筝???????
176 hi_ 1.1
177     //?????c??/span>
178     FEditorFontName: string;
179     FEditorFontSize: Integer;
180     FEditorFontBold: Boolean;
181     FEditorFontItalic: Boolean;
182     FEditorFontColor: TColor;
183     FEditorBackColor: TColor;
184    
185     //?帥???????潟??
186     FBrowserTabFontName: string;
187     FBrowserTabFontSize: Integer;
188     FBrowserTabFontBold: Boolean;
189     FBrowserTabFontItalic: Boolean;
190    
191     //???潟?????c?潟????/span>
192     FHintFontName: string;
193     FHintFontSize: Integer;
194     //FHintFontBold: Boolean;
195     //FHintFontItalic: Boolean;
196     FHintFontColor: TColor;
197     FHintBackColor: TColor;
198    
199     //???c?潟?????泣?ゃ??/span>
200     FWindowTop: Integer;
201     FWindowLeft: Integer;
202     FWindowHeight: Integer;
203     FWindowWidth: Integer;
204     FWindowMax: Boolean;
205     //???鴻?????ャ?若?鴻?帥?ゃ??/span>
206     FListStyle: TViewStyle;
207    
208     //???若?????取;腓?/span>
209     FStdToolBarVisible: Boolean;
210     FAddressBarVisible: Boolean;
211     FLinkBarVisible: Boolean;
212     FListToolBarVisible: Boolean;
213     FListNameBarVisible: Boolean;
214     FBrowserToolBarVisible: Boolean;
215     FBrowserNameBarVisible: Boolean;
216    
217     //???????吟?帥??
218     FBrowserTabVisible: Boolean;
219     FBrowserTabPosition: TGikoTabPosition;
220     FBrowserTabAppend: TGikoTabAppend;
221     FBrowserTabStyle: TGikoTabStyle;
222    
223     //?<???祉?若?吾????/span>
224     FMessageBarVisible: Boolean;
225     FMessegeBarHeight: Integer;
226    
227     //?鴻???若?帥?鴻????/span>
228     FStatusBarVisible: Boolean;
229    
230     //???c????????????祉?泣?ゃ??/span>
231     FCabinetVisible: Boolean;
232     FCabinetWidth: Integer;
233    
234     //???鴻???祉???????吟?泣?ゃ??/span>
235     FListOrientation: TGikoListOrientation;
236     FListHeight: Integer;
237     FListHeightState: TGikoListState;
238     FListWidth: Integer;
239     FListWidthState: TGikoListState;
240     // FListHeightMax: Boolean;
241     // FListWidthMax: Boolean;
242    
243     //??篆∞???????祉?<?若??/span>
244     FNameList: TStringList;
245     FMailList: TStringList;
246    
247     //?????c?帥?若???c?潟?????泣?ゃ??/span>
248     FEditWindowTop: Integer;
249     FEditWindowLeft: Integer;
250     FEditWindowHeight: Integer;
251     FEditWindowWidth: Integer;
252     FEditWindowMax: Boolean;
253 genyakun 1.87 FEditWindowStay: Boolean;
254     FEditWindowTranslucent: Boolean;
255 hi_ 1.1
256     //???鴻????埈;腓?/span>
257     FListViewNo: Boolean;
258     //CSS茵?ず
259     FUseCSS: Boolean;
260     //CSS???<?ゃ????
261     FCSSFileName: string;
262 yoffy 1.14 // ?鴻???活;腓?筝???????????? ini ???絖???????????)
263     FUseSkin: Boolean;
264 hi_ 1.1 //mail罨?茵?ず
265     FShowMail: Boolean;
266 yoffy 1.49 /// ???壕;腓榊???/span>
267 yoffy 1.51 FResRange : Longint;
268     /// 莎桁???????壕;腓榊??蚊???阪?
269     FResRangeHold : Boolean;
270 yoffy 1.55 /// ?鴻??????筝?荀ц;腓榊???/span>
271     FThreadRange : TGikoThreadRange;
272 yoffy 1.2 //???≪?????c???????鴻???????≪????茵?ず
273 hi_ 1.1 FUnActivePopup: Boolean;
274 yoffy 1.2 //???鴻???????≪???????????若???若????
275     FResPopupHeaderBold: Boolean;
276 hi_ 1.1
277     //???違????????
278     FLogFolder: string;
279 h677 1.88 FLogFolderP: string; //???劫???????劫?阪????荐??激?х???c????????
280 hi_ 1.1 FNewLogFolder: string;
281    
282     //???鴻???????????????若?泣?ゃ??/span>
283     FBBSColumnWidth: array[0..0] of Integer;
284 yoffy 1.65 FCategoryColumnWidth: array[0..2] of Integer;
285 h677 1.70 FBoardColumnWidth: array[0..9] of Integer;
286 hi_ 1.1
287 yoffy 1.62 /// ?????眼?????鴻??????????綺?span>
288 yoffy 1.63 FBBSColumnOrder : TGikoBBSColumnList;
289 yoffy 1.62 /// ?帥???鴻??????????綺?span>
290 yoffy 1.63 FCategoryColumnOrder : TGikoCategoryColumnList;
291 yoffy 1.62 /// ?鴻?????鴻??????????綺?span>
292 yoffy 1.63 FBoardColumnOrder : TGikoBoardColumnList;
293 yoffy 1.62
294 q9_ 1.46 //?純?若????
295     FBBSSortIndex: Integer;
296     FBBSSortOrder: Boolean;
297     FCategorySortIndex: Integer;
298     FCategorySortOrder: Boolean;
299     FBoardSortIndex: Integer;
300     FBoardSortOrder: Boolean;
301    
302 q9_ 1.53 //Dat?純?<?鴻???純?若????
303     FDatOchiSortIndex: Integer;
304     FDatOchiSortOrder: Boolean;
305    
306 hi_ 1.1 //腟?莨若?炊??絖???
307     FSelectTextList: TStringList;
308    
309     //?推?荀?RL
310 h677 1.11 //FBoardURL2ch: string;
311 yoffy 1.14 FBoardURLs: TStringList;
312     FBoardURLSelected: Integer;
313 hi_ 1.1
314     //???若??D?祉???鴻???若??
315     FUserID: string;
316     FPassword: string;
317     FAutoLogin: Boolean;
318 genyakun 1.87 FForcedLogin: Boolean;
319 h677 1.36 FDolibURL: string;
320 hi_ 1.1
321     //URL??????????莎桁???≪????/span>
322     FURLApp: Boolean;
323     FURLAppFile: string;
324    
325     //mailto????????????篏?
326     FOpenMailer: Boolean;
327    
328     //???ょ∈茯?
329     FDeleteMsg: Boolean;
330    
331     //CoolBar鐚??<?ゃ?潟?紙?帥?祉???????駈?
332     FMainCoolBar: array[0..MAIN_COOLBAND_COUNT - 1] of TCoolSet;
333 yoffy 1.2 FListCoolBar: array[0..LIST_COOLBAND_COUNT - 1] of TCoolSet;
334 hi_ 1.1 FBrowserCoolBar: array[0..BROWSER_COOLBAND_COUNT - 1] of TCoolSet;
335    
336     //ToolBar Wrapable
337     FListToolBarWrapable: Boolean;
338     FBrowserToolBarWrapable: Boolean;
339    
340     //???????≪????篏?臀?/span>
341     FPopupPosition: TGikoPopupPosition;
342    
343     //?≪?????鴻????/span>
344     FURLDisplay: Boolean;
345     FAddressBarTabStop: Boolean;
346     FLinkAddAddressBar: Boolean;
347     FAddressHistoryCount: Integer;
348    
349     //?糸????????ャ??/span>
350     FPreviewVisible: Boolean;
351     FPreviewSize: TGikoPreviewSize;
352     FPreviewWait: Integer;
353    
354 yoffy 1.39 // ????????/span>
355     FBrowserAutoMaximize: TGikoBrowserAutoMaximize;
356    
357 hi_ 1.1 //?鴻??????筝?荀ф?贋?違?≪?ゃ?潟?活;腓?/span>
358     FListIconVisible: Boolean;
359    
360 genyakun 1.87 //?鴻??????筝?荀с??og???????鴻?????????帥?鴻??????ャ??茵?ず??????
361     FCreationTimeLogs: Boolean;
362     //?鴻??????筝?荀с???鴻???????ャ?ф???ャ???鴻?????????ャ??茵?ず??????
363 q9_ 1.44 FFutureThread: Boolean;
364 h677 1.29
365 hi_ 1.1 //?吾??莨若?炊?????激?恰????篏睡??┃絎?
366     FUseMachineTime: Boolean;
367     FTimeAdjustSec: Integer;
368     FTimeAdjust: Boolean;
369    
370 h677 1.11 //???若????
371     FAbonDeleterlo : Boolean; //&rlo;????????
372     FAbonReplaceul : Boolean; //<ul>?帥?違??<br>?帥?違??舟????????
373 yoffy 1.14 FPopUpAbon : Boolean; //???鴻???????≪???????????若????????/span>
374 h677 1.11 FShowNGLinesNum : Boolean; //荅峨?????鐚?磁???若?????<?ゃ??????違??茵?ず
375     FAddResAnchor : Boolean; //NG???鴻?吾?????鴻?≪?潟???若??菴遵??????
376 h677 1.93 FDeleteSyria : Boolean; //?激???∵??????????膈?
377     FIgnoreKana : Boolean; //????茹??蚊???????????????∴???????
378 h677 1.3
379 h677 1.11 // ?鴻??????腟?莨若???c?若???????
380     FSelectComboBoxWidth : Integer;
381 yoffy 1.5
382 h677 1.11 // ??緇????御?????????????激?с?潟???ゃ?≪???違???帥??
383     FOptionDialogTabIndex: Integer;
384 yoffy 1.8
385 h677 1.11 // ??緇????御???????????c????????
386     FCabinetIndex: Integer;
387 yoffy 1.8
388 yoffy 1.14 //腟?篋?????∈茯????ゃ?≪???違??茵?ず??????
389     FShowDialogForEnd : Boolean;
390 h677 1.38 //???????帥????????????????∈茯????ゃ?≪???違??茵?ず????
391     FShowDialogForAllTabClose: Boolean;
392 h677 1.19 //??緇????号?違???鴻???????????号?違???違???c??????????絽梧?????蚊?????c???蚊???????蚊??篏睡????????
393     FUseOddColorOddResNum: Boolean;
394     FOddColor: TColor;
395 h677 1.92 //???号?医?羝?綣決????????御???≪?ゃ???????????若???鴻???<????????お絖?????????
396     FUnFocusedBold : Boolean;
397 h677 1.13
398 h677 1.92 //Samba24絲丞?罘??純??篏帥????
399     FUseSamba: Boolean;
400 h677 1.36
401 h677 1.38 //???鴻?≪?潟???若???????????????吾?c?潟????????
402     FResAnchorJamp: Boolean;
403    
404 genyakun 1.47 //Tab????篆?絖?
405 genyakun 1.56 FTabAutoLoadSave : Boolean;
406 genyakun 1.71
407     //???<????茯?罅????泣???若??罘???/span>
408     F2chSupport : Boolean;
409    
410 yoffy 1.40 // ?????c??/span>
411 yoffy 1.41 FSpaceToNBSP : Boolean; ///< ??茹??鴻???若?鴻??Tab ?? &nbsp; ??舟??
412     FAmpToCharRef : Boolean; ///< '&' ?? &amp; ??舟??
413 h677 1.43
414     //???????吟?帥????茵?ず???????鴻???荀с?с?????若?純?????主Щ?????≦??????
415     FSelectInterval : Integer;
416 h677 1.67
417     //KuroutSettingTab 荅括完荐???帥????ctiveTab
418     FKuroutSettingTabIndex: Integer;
419 yoffy 1.74
420     //! ?????鴻?吾?с?鴻???c??/span>
421     FGestures : TGestureModel;
422 yoffy 1.75 //! ?????鴻?吾?с?鴻???c?若??篏睡??????????????
423     FGestureEnabled : Boolean;
424 genyakun 1.76
425 h677 1.81 //2ch荐?茯?荐??
426 h677 1.86 //F2chLanguage : TStringList;
427 h677 1.81
428     //???激?≪??????????荐??
429     FLocalTrapAtt : Boolean;
430     FRemoteTrapAtt : Boolean;
431     FReadTimeOut: Integer;
432 genyakun 1.77
433 yoffy 1.83 //! 篏睡???????鴻???????c???帥??/span>
434     FSpamFilterAlgorithm : TGikoSpamFilterAlgorithm;
435 h677 1.84 //???ャ?若??????????
436     FMute: Boolean;
437 h677 1.85 //?鴻???莨若?帥?ф??∈絎???絖??????鴻????????
438     FUseUndecided: Boolean;
439 genyakun 1.87 //MessageList???阪?????????<???祉?若??/span>
440     FMessageList : array[0..13] of string;
441    
442     //Be2ch
443     //茯?荐主?????若??D?祉???鴻???若??
444     FBeUserID: String;
445 h677 1.89 FBeCode: String;
446 h677 1.90 FBeAutoLogin: Boolean;
447 h677 1.91 FBeLogin: Boolean;
448     //絮ユ?????紊т?絖?篁倶??/span>
449     FMaxRecordCount : Integer;
450 h677 1.86
451 hi_ 1.1 function GetMainCoolSet(Index: Integer): TCoolSet;
452     function GetBoardCoolSet(Index: Integer): TCoolSet;
453     function GetBrowserCoolSet(Index: Integer): TCoolSet;
454     procedure SetMainCoolSet(Index: Integer; CoolSet: TCoolSet);
455     procedure SetBoardCoolSet(Index: Integer; CoolSet: TCoolSet);
456     procedure SetBrowserCoolSet(Index: Integer; CoolSet: TCoolSet);
457    
458     function GetBBSColumnWidth(index: Integer): Integer;
459     function GetCategoryColumnWidth(index: Integer): Integer;
460     function GetBoardColumnWidth(index: Integer): Integer;
461     procedure SetBBSColumnWidth(index: Integer; value: Integer);
462     procedure SetCategoryColumnWidth(index: Integer; value: Integer);
463     procedure SetBoardColumnWidth(index: Integer; value: Integer);
464    
465     function GetSoundName(Index: Integer): string;
466     function GetSoundViewName(Index: Integer): string;
467     function GetSoundFileName(Index: Integer): string;
468     procedure SetSoundFileName(Index: Integer; value: string);
469     function Encrypt(s: string): string;
470     function Decrypt(s: string): string;
471 h677 1.11
472 yoffy 1.14 procedure MakeURLIniFile();
473    
474     procedure SetUseCSS( value: Boolean );
475     procedure SetCSSFileName( fileName: string );
476 hi_ 1.1 protected
477    
478     public
479     constructor Create;
480     destructor Destroy; override;
481     function GetFileName: string;
482 yoffy 1.14 function GetBoardURLFileName: string;
483 hi_ 1.1 procedure ReadSettingFile;
484 yoffy 1.14 procedure ReadBoardURLsFile;
485 hi_ 1.1 procedure WriteSystemSettingFile;
486     procedure WriteWindowSettingFile;
487     procedure WriteNameMailSettingFile;
488     procedure WriteFolderSettingFile();
489 yoffy 1.14 procedure WriteBoardURLSettingFile;
490 hi_ 1.1 function GetSoundCount: Integer;
491     function FindSoundFileName(Name: string): string;
492    
493 yoffy 1.14 function GetBoardFileName: string;
494     function GetCustomBoardFileName: string;
495 yoffy 1.18 function GetBoardDir: string;
496 yoffy 1.14 function GetHtmlTempFileName: string;
497     function GetAppDir: string;
498     function GetTempFolder: string;
499     function GetSentFileName: string;
500     function GetConfigDir: string;
501     function GetSkinDir: string;
502     function GetSkinHeaderFileName: string;
503     function GetSkinFooterFileName: string;
504     function GetSkinResFileName: string;
505     function GetSkinNewResFileName: string;
506     function GetSkinBookmarkFileName: string;
507     function GetSkinNewmarkFileName: string;
508     function GetStyleSheetDir: string;
509     function GetOutBoxFileName: string;
510 yoffy 1.15 function GetNGWordsDir: string;
511 yoffy 1.16 function GetBoardPlugInDir: string;
512 h677 1.35 function GetSambaFileName: string;
513     function GetIgnoreFileName: string;
514 yoffy 1.74 function GetGestureFileName : string;
515 yoffy 1.79 function GetSpamFilterFileName : string;
516 genyakun 1.87 function GetLanguageFileName: string;
517     procedure SetMessages;
518     function GetMessage(AType :Integer): string;
519 h677 1.93 procedure WriteLogFolder(AVal : String);
520 yoffy 1.14
521 hi_ 1.1 //??篆<???????<?泣?ゃ??/span>
522     property RecvBufferSize: Integer read FRecvBufferSize write FRecvBufferSize;
523     //HTTP1.1篏睡??/span>
524     property Protocol: Boolean read FProtocol write FProtocol;
525     //???????傑・膓?HTTP1.1篏睡??/span>
526     property ProxyProtocol: Boolean read FProxyProtocol write FProxyProtocol;
527    
528     property ReadProxy: Boolean read FReadProxy write FReadProxy;
529     property ReadProxyAddress: string read FReadProxyAddress write FReadProxyAddress;
530     property ReadProxyPort: Integer read FReadProxyPort write FReadProxyPort;
531     property ReadProxyUserID: string read FReadProxyUserID write FReadProxyUserID;
532     property ReadProxyPassword: string read FReadProxyPassword write FReadProxyPassword;
533    
534     property WriteProxy: Boolean read FWriteProxy write FWriteProxy;
535     property WriteProxyAddress: string read FWriteProxyAddress write FWriteProxyAddress;
536     property WriteProxyPort: Integer read FWriteProxyPort write FWriteProxyPort;
537     property WriteProxyUserID: string read FWriteProxyUserID write FWriteProxyUserID;
538     property WriteProxyPassword: string read FWriteProxyPassword write FWriteProxyPassword;
539    
540     property CabinetFontName: string read FCabinetFontName write FCabinetFontName;
541     property CabinetFontSize: Integer read FCabinetFontSize write FCabinetFontSize;
542     property CabinetFontBold: Boolean read FCabinetFontBold write FCabinetFontBold;
543     property CabinetFontItalic: Boolean read FCabinetFontItalic write FCabinetFontItalic;
544     property CabinetFontColor: TColor read FCabinetFontColor write FCabinetFontColor;
545     property CabinetBackColor: TColor read FCabinetBackColor write FCabinetBackColor;
546    
547     property ListFontName: string read FListFontName write FListFontName;
548     property ListFontSize: Integer read FListFontSize write FListFontSize;
549     property ListFontBold: Boolean read FListFontBold write FListFontBold;
550     property ListFontItalic: Boolean read FListFontItalic write FListFontItalic;
551     property ListFontColor: TColor read FListFontColor write FListFontColor;
552     property ListBackColor: TColor read FListBackColor write FListBackColor;
553    
554 yoffy 1.6 property BrowserFontName: string read FBrowserFontName write FBrowserFontName;
555     property BrowserFontSize: Integer read FBrowserFontSize write FBrowserFontSize;
556     property BrowserFontBold: Integer read FBrowserFontBold write FBrowserFontBold;
557     property BrowserFontItalic: Integer read FBrowserFontItalic write FBrowserFontItalic;
558     property BrowserFontColor: Integer read FBrowserFontColor write FBrowserFontColor;
559     property BrowserBackColor: Integer read FBrowserBackColor write FBrowserBackColor;
560 hi_ 1.1
561     property EditorFontName: string read FEditorFontName write FEditorFontName;
562     property EditorFontSize: Integer read FEditorFontSize write FEditorFontSize;
563     property EditorFontBold: Boolean read FEditorFontBold write FEditorFontBold;
564     property EditorFontItalic: Boolean read FEditorFontItalic write FEditorFontItalic;
565     property EditorFontColor: TColor read FEditorFontColor write FEditorFontColor;
566     property EditorBackColor: TColor read FEditorBackColor write FEditorBackColor;
567    
568     property BrowserTabFontName: string read FBrowserTabFontName write FBrowserTabFontName;
569     property BrowserTabFontSize: Integer read FBrowserTabFontSize write FBrowserTabFontSize;
570     property BrowserTabFontBold: Boolean read FBrowserTabFontBold write FBrowserTabFontBold;
571     property BrowserTabFontItalic: Boolean read FBrowserTabFontItalic write FBrowserTabFontItalic;
572    
573     property HintFontName: string read FHintFontName write FHintFontName;
574     property HintFontSize: Integer read FHintFontSize write FHintFontSize;
575     //property HintFontBold: Boolean read FHintFontBold write FHintFontBold;
576     //property HintFontItalic: Boolean read FHintFontItalic write FHintFontItalic;
577     property HintFontColor: TColor read FHintFontColor write FHintFontColor;
578     property HintBackColor: TColor read FHintBackColor write FHintBackColor;
579    
580     property WindowTop: Integer read FWindowTop write FWindowTop;
581     property WindowLeft: Integer read FWindowLeft write FWindowLeft;
582     property WindowHeight: Integer read FWindowHeight write FWindowHeight;
583     property WindowWidth: Integer read FWindowWidth write FWindowWidth;
584     property WindowMax: Boolean read FWindowMax write FWindowMax;
585     property ListStyle: TViewStyle read FListStyle write FListStyle;
586    
587     property StdToolBarVisible: Boolean read FStdToolBarVisible write FStdToolBarVisible;
588     property AddressBarVisible: Boolean read FAddressBarVisible write FAddressBarVisible;
589     property LinkBarVisible: Boolean read FLinkBarVisible write FLinkBarVisible;
590     property ListToolBarVisible: Boolean read FListToolBarVisible write FListToolBarVisible;
591     property ListNameBarVisible: Boolean read FListNameBarVisible write FListNameBarVisible;
592     property BrowserToolBarVisible: Boolean read FBrowserToolBarVisible write FBrowserToolBarVisible;
593     property BrowserNameBarVisible: Boolean read FBrowserNameBarVisible write FBrowserNameBarVisible;
594    
595     property BrowserTabVisible: Boolean read FBrowserTabVisible write FBrowserTabVisible;
596     property BrowserTabPosition: TGikoTabPosition read FBrowserTabPosition write FBrowserTabPosition;
597     property BrowserTabAppend: TGikoTabAppend read FBrowserTabAppend write FBrowserTabAppend;
598     property BrowserTabStyle: TGikoTabStyle read FBrowserTabStyle write FBrowserTabStyle;
599    
600     property MessageBarVisible: Boolean read FMessageBarVisible write FMessageBarVisible;
601     property MessegeBarHeight: Integer read FMessegeBarHeight write FMessegeBarHeight;
602    
603     property StatusBarVisible: Boolean read FStatusBarVisible write FStatusBarVisible;
604    
605     property CabinetVisible: Boolean read FCabinetVisible write FCabinetVisible;
606     property CabinetWidth: Integer read FCabinetWidth write FCabinetWidth;
607    
608     property ListOrientation: TGikoListOrientation read FListOrientation write FListOrientation;
609     property ListHeight: Integer read FListHeight write FListHeight;
610     property ListHeightState: TGikoListState read FListHeightState write FListHeightState;
611     property ListWidth: Integer read FListWidth write FListWidth;
612     property ListWidthState: TGikoListState read FListWidthState write FListWidthState;
613     // property ListHeightMax: Boolean read FListHeightMax write FListHeightMax;
614     // property ListWidthMax: Boolean read FListWidthMax write FListWidthMax;
615    
616     property NameList: TStringList read FNameList write FNameList;
617     property MailList: TStringList read FMailList write FMailList;
618     property SelectTextList: TStringList read FSelectTextList write FSelectTextList;
619    
620     property EditWindowTop: Integer read FEditWindowTop write FEditWindowTop;
621     property EditWindowLeft: Integer read FEditWindowLeft write FEditWindowLeft;
622     property EditWindowHeight: Integer read FEditWindowHeight write FEditWindowHeight;
623     property EditWindowWidth: Integer read FEditWindowWidth write FEditWindowWidth;
624     property EditWindowMax: Boolean read FEditWindowMax write FEditWindowMax;
625 deux 1.20 property EditWindowStay: Boolean read FEditWindowStay write FEditWindowStay;
626 h677 1.38 property EditWindowTranslucent: Boolean read FEditWindowTranslucent write FEditWindowTranslucent;
627 hi_ 1.1
628     property ListViewNo: Boolean read FListViewNo write FListViewNo;
629 yoffy 1.14 property UseCSS: Boolean read FUseCSS write SetUseCSS;
630     property CSSFileName: string read FCSSFileName write SetCSSFileName;
631     property UseSkin: Boolean read FUseSkin;
632 hi_ 1.1
633     property ShowMail: Boolean read FShowMail write FShowMail;
634 yoffy 1.49 property ResRange : Longint read FResRange write FResRange;
635 yoffy 1.51 property ResRangeHold : Boolean read FResRangeHold write FResRangeHold;
636 yoffy 1.55 property ThreadRange : TGikoThreadRange read FThreadRange write FThreadRange;
637 hi_ 1.1 property UnActivePopup: Boolean read FUnActivePopup write FUnActivePopup;
638 yoffy 1.2 property ResPopupHeaderBold: Boolean read FResPopupHeaderBold write FResPopupHeaderBold;
639 hi_ 1.1
640 h677 1.88 property LogFolder: string read FLogFolder write WriteLogFolder;
641     property LogFolderP: string read FLogFolderP;
642 hi_ 1.1 property NewLogFolder: string read FNewLogFolder write FNewLogFolder;
643    
644     property BBSColumnWidth[index: Integer]: Integer read GetBBSColumnWidth write SetBBSColumnWidth;
645     property CategoryColumnWidth[index: Integer]: Integer read GetCategoryColumnWidth write SetCategoryColumnWidth;
646     property BoardColumnWidth[index: Integer]: Integer read GetBoardColumnWidth write SetBoardColumnWidth;
647    
648 yoffy 1.63 property BBSColumnOrder : TGikoBBSColumnList read FBBSColumnOrder write FBBSColumnOrder;
649     property CategoryColumnOrder : TGikoCategoryColumnList read FCategoryColumnOrder write FCategoryColumnOrder;
650     property BoardColumnOrder : TGikoBoardColumnList read FBoardColumnOrder write FBoardColumnOrder;
651 yoffy 1.62
652 hi_ 1.1 property SoundName[index: Integer]: string read GetSoundName;
653     property SoundViewName[index: Integer]: string read GetSoundViewName;
654     property SoundFileName[index: Integer]: string read GetSoundFileName write SetSoundFileName;
655    
656 q9_ 1.46 property BBSSortIndex: Integer read FBBSSortIndex write FBBSSortIndex;
657     property BBSSortOrder: Boolean read FBBSSortOrder write FBBSSortOrder;
658     property CategorySortIndex: Integer read FCategorySortIndex write FCategorySortIndex;
659     property CategorySortOrder: Boolean read FCategorySortOrder write FCategorySortOrder;
660     property BoardSortIndex: Integer read FBoardSortIndex write FBoardSortIndex;
661     property BoardSortOrder: Boolean read FBoardSortOrder write FBoardSortOrder;
662    
663 q9_ 1.53 property DatOchiSortIndex: Integer read FDatOchiSortIndex write FDatOchiSortIndex;
664     property DatOchiSortOrder: Boolean read FDatOchiSortOrder write FDatOchiSortOrder;
665    
666 h677 1.11 //property BoardURL2ch: string read FBoardURL2ch write FBoardURL2ch;
667     property BoardURLs: TStringList read FBoardURLs write FBoardURLs;
668 yoffy 1.14 property BoardURLSelected: Integer read FBoardURLSelected write FBoardURLSelected;
669 hi_ 1.1 property UserID: string read FUserID write FUserID;
670     property Password: string read FPassword write FPassword;
671     property AutoLogin: Boolean read FAutoLogin write FAutoLogin;
672 h677 1.38 property ForcedLogin: Boolean read FForcedLogin write FForcedLogin;
673 h677 1.36 property DolibURL: string read FDolibURL write FDolibURL;
674 hi_ 1.1
675     property URLApp: Boolean read FURLApp write FURLApp;
676     property URLAppFile: string read FURLAppFile write FURLAppFile;
677    
678     property OpenMailer: Boolean read FOpenMailer write FOpenMailer;
679    
680     property DeleteMsg: Boolean read FDeleteMsg write FDeleteMsg;
681    
682     property MainCoolSet[Index: Integer]: TCoolSet read GetMainCoolSet write SetMainCoolSet;
683     property ListCoolSet[Index: Integer]: TCoolSet read GetBoardCoolSet write SetBoardCoolSet;
684     property BrowserCoolSet[Index: Integer]: TCoolSet read GetBrowserCoolSet write SetBrowserCoolSet;
685    
686     property ListToolBarWrapable: Boolean read FListToolBarWrapable write FListToolBarWrapable;
687     property BrowserToolBarWrapable: Boolean read FBrowserToolBarWrapable write FBrowserToolBarWrapable;
688    
689     property PopupPosition: TGikoPopupPosition read FPopupPosition write FPopupPosition;
690    
691     property URLDisplay: Boolean read FURLDisplay write FURLDisplay;
692     property AddressBarTabStop: Boolean read FAddressBarTabStop write FAddressBarTabStop;
693     property LinkAddAddressBar: Boolean read FLinkAddAddressBar write FLinkAddAddressBar;
694     property AddressHistoryCount: Integer read FAddressHistoryCount write FAddressHistoryCount;
695    
696     property PreviewVisible: Boolean read FPreviewVisible write FPreviewVisible;
697     property PreviewSize: TGikoPreviewSize read FPreviewSize write FPreviewSize;
698     property PreviewWait: Integer read FPreviewWait write FPreviewWait;
699 yoffy 1.39 property BrowserAutoMaximize: TGikoBrowserAutoMaximize read FBrowserAutoMaximize write FBrowserAutoMaximize;
700 hi_ 1.1
701     property ListIconVisible: Boolean read FListIconVisible write FListIconVisible;
702 h677 1.38 property CreationTimeLogs: Boolean read FCreationTimeLogs write FCreationTimeLogs;
703     property FutureThread: Boolean read FFutureThread write FFutureThread;
704 hi_ 1.1
705     property UseMachineTime: Boolean read FUseMachineTime write FUseMachineTime;
706     property TimeAdjustSec: Integer read FTimeAdjustSec write FTimeAdjustSec;
707     property TimeAdjust: Boolean read FTimeAdjust write FTimeAdjust;
708 h677 1.3
709 yoffy 1.14 //???若????
710     property AbonDeleterlo : Boolean read FAbonDeleterlo write FAbonDeleterlo;
711     property AbonReplaceul : Boolean read FAbonReplaceul write FAbonReplaceul;
712     property PopUpAbon : Boolean read FPopUpAbon write FPopUpAbon;
713     property ShowNGLinesNum : Boolean read FShowNGLinesNum write FShowNGLinesNum;
714     property AddResAnchor : Boolean read FAddResAnchor write FAddResAnchor;
715 h677 1.38 property DeleteSyria : Boolean read FDeleteSyria write FDeleteSyria;
716 h677 1.93 property IgnoreKana : Boolean read FIgnoreKana write FIgnoreKana;
717 yoffy 1.14 // ?鴻??????腟?莨若???c?若???????
718     property SelectComboBoxWidth : Integer read FSelectComboBoxWidth write FSelectComboBoxWidth;
719 yoffy 1.8
720 yoffy 1.14 // ??緇????御?????????????激?с?潟???ゃ?≪???違???帥??
721     property OptionDialogTabIndex : Integer read FOptionDialogTabIndex write FOptionDialogTabIndex;
722 yoffy 1.8
723 yoffy 1.14 // ??緇????御???????????c????????
724     property CabinetIndex : Integer read FCabinetIndex write FCabinetIndex;
725 h677 1.13
726 yoffy 1.14 //腟?篋?????∈茯????ゃ?≪???違??茵?ず??????
727     property ShowDialogForEnd : Boolean read FShowDialogForEnd write FShowDialogForEnd;
728 h677 1.38 property ShowDialogForAllTabClose: Boolean read FShowDialogForAllTabClose write FShowDialogForAllTabClose;
729     //??緇????号?違???鴻???????????号?違???違???c??????????絽梧?????蚊?????c???蚊???????蚊??篏睡????????
730     property UseOddColorOddResNum: Boolean read FUseOddColorOddResNum write FUseOddColorOddResNum;
731     property OddColor: TColor read FOddColor write FOddColor;
732 h677 1.92 property UnFocusedBold : Boolean read FUnFocusedBold write FUnFocusedBold;
733 h677 1.36 property UseSamba: Boolean read FUseSamba write FUseSamba;
734 h677 1.81 property ResAnchorJamp: Boolean read FResAnchorJamp write FResAnchorJamp;
735 yoffy 1.40
736     // ?????c??/span>
737 yoffy 1.41 property SpaceToNBSP : Boolean read FSpaceToNBSP write FSpaceToNBSP;
738     property AmpToCharRef : Boolean read FAmpToCharRef write FAmpToCharRef;
739 h677 1.43
740     property SelectInterval : Integer read FSelectInterval write FSelectInterval;
741 h677 1.67 //Tab篆?絖?
742     property TabAutoLoadSave: Boolean read FTabAutoLoadSave write FTabAutoLoadSave;
743 h677 1.86 //property Gengo: TStringList read F2chLanguage write F2chLanguage;
744 h677 1.81 property GengoSupport : Boolean read F2chSupport write F2chSupport;
745 h677 1.67 property KuroutSettingTabIndex: Integer read FKuroutSettingTabIndex write FKuroutSettingTabIndex;
746 yoffy 1.74 //! ?????鴻?吾?с?鴻???c??/span>
747     property Gestures : TGestureModel read FGestures write FGestures;
748 yoffy 1.75 //! ?????鴻?吾?с?鴻???c?若??篏睡??????????????
749     property GestureEnabled : Boolean read FGestureEnabled write FGestureEnabled;
750 h677 1.81 //???激?≪??????????荐??
751     property LocalTrapAtt : Boolean read FLocalTrapAtt write FLocalTrapAtt;
752     property RemoteTrapAtt : Boolean read FRemoteTrapAtt write FRemoteTrapAtt;
753     property ReadTimeOut: Integer read FReadTimeOut write FReadTimeOut;
754 yoffy 1.83 //! 篏睡???????鴻???????c????/span>
755     property SpamFilterAlgorithm : TGikoSpamFilterAlgorithm
756     read FSpamFilterAlgorithm write FSpamFilterAlgorithm;
757 h677 1.84 property Mute: Boolean read FMute write FMute;
758 h677 1.85 property UseUndecided: Boolean read FUseUndecided write FUseUndecided;
759 genyakun 1.87
760     property BeUserID: string read FBeUserID write FBeUserID;
761 h677 1.89 property BeCode: string read FBeCode write FBeCode;
762 genyakun 1.87 property BeAutoLogin: Boolean read FBeAutoLogin write FBeAutoLogin;
763 h677 1.91 property BeLogin: Boolean read FBeLogin write FBeLogin;
764     property MaxRecordCount : Integer read FMaxRecordCount write FMaxRecordCount;
765    
766 yoffy 1.40 end;
767 hi_ 1.1
768    
769 h677 1.3
770 hi_ 1.1 implementation
771    
772     type
773     TSoundName = record
774     Name: string;
775     ViewName: string;
776     FileName: string;
777     end;
778    
779     const
780 yoffy 1.14 INI_FILE_NAME: string = 'gikoNavi.ini';
781     BOARD_URL_INI_FILE_NAME: string = 'url.ini';
782     DEFAULT_FONT_NAME: string = '鐚?竺 鐚違?眼?激????#39;;
783     DEFAULT_FONT_SIZE: Integer = 9;
784     DEFAULT_FONT_COLOR: string = 'clWindowText';
785     DEFAULT_WINDOW_COLOR: string = 'clWindow';
786     DEFAULT_TAB_FONT_NAME: string = '鐚?竺 鐚違?眼?激????#39;;
787     DEFAULT_TAB_FONT_SIZE: Integer = 9;
788 genyakun 1.94 //DEFAULT_2CH_BOARD_URL1: string = 'http://www6.ocn.ne.jp/~mirv/2chmenu.html';
789     //DEFAULT_2CH_BOARD_URL2: string = 'http://www.ff.iij4u.or.jp/~ch2/bbsmenu.html';
790     DEFAULT_2CH_BOARD_URL1: string = 'http://www.2ch.net/newbbsmenu.html';
791     DEFAULT_2CH_BOARD_URL2: string = 'http://menu.2ch.net/bbsmenu.html'; //404鐚?
792 h677 1.22 //http://menu.2ch.net/bbsmenu.html //??????????????罩e????推?荀с??????????
793 genyakun 1.94 //'http://www.2ch.net/newbbsmenu.html';
794 yoffy 1.14 GIKO_ENCRYPT_TEXT: string = 'gikoNaviEncryptText';
795 hi_ 1.1
796 genyakun 1.87 DEF_MESSAGES : array[0..13] of string = ( '???違?≪???????障????',
797     '???違?ゃ?潟???障???? - ',
798     '綣桁?吟???違?ゃ?潟???障???? - ',
799     '[?鴻???荀у??絎?篋?]',
800     '(??腱遺????',
801     '[?鴻????絎?篋?]',
802     '[?鴻??勲????緇?絎?篋?]',
803     '[???贋??',
804     '[筝???',
805     '[??????',
806     '[???拷??篆∞?篋?]',
807     '[?違?鴻????篆∞?篋?]',
808     '[???拷??篆≦け??]',
809     '[?違?鴻????篆≦け??]');
810 h677 1.86
811 hi_ 1.1 var
812     SOUND_NAME: array[0..4] of TSoundName = (
813 yoffy 1.14 (Name: 'New'; ViewName: '??緇?????'; FileName: ''),
814     (Name: 'NewDiff'; ViewName: '??緇?????(綏???)'; FileName: ''),
815     (Name: 'NoChange'; ViewName: '???贋??#39;; FileName: ''),
816     // (Name: 'RoundEnd'; ViewName: '綏≦??腟?篋?(??緇?????)'; FileName: ''),
817     // (Name: 'RoundNone'; ViewName: '綏≦??腟?篋?(??緇?????)'; FileName: ''),
818     (Name: 'ResEnd'; ViewName: '???拷??篆≦?篋?'; FileName: ''),
819     (Name: 'Error'; ViewName: '??????#39;; FileName: ''));
820 hi_ 1.1
821 yoffy 1.63 constructor TGikoBBSColumnList.Create;
822     begin
823     inherited;
824     end;
825    
826     destructor TGikoBBSColumnList.Destroy;
827     begin
828     inherited;
829     end;
830    
831     function TGikoBBSColumnList.GetItem( index : integer ) : TGikoBBSColumnID;
832     begin
833     Result := TGikoBBSColumnID( inherited Items[ index ] );
834     end;
835    
836     procedure TGikoBBSColumnList.SetItem( index : integer; value : TGikoBBSColumnID);
837     begin
838     inherited Items[ index ] := Pointer( value );
839     end;
840    
841     function TGikoBBSColumnList.Add( value : TGikoBBSColumnID ) : Integer;
842     begin
843     Result := inherited Add( Pointer( value ) );
844     end;
845    
846     constructor TGikoCategoryColumnList.Create;
847     begin
848     inherited;
849     end;
850    
851     destructor TGikoCategoryColumnList.Destroy;
852     begin
853     inherited;
854     end;
855    
856     function TGikoCategoryColumnList.GetItem( index : integer ) : TGikoCategoryColumnID;
857     begin
858     Result := TGikoCategoryColumnID( inherited Items[ index ] );
859     end;
860    
861     procedure TGikoCategoryColumnList.SetItem( index : integer; value : TGikoCategoryColumnID);
862     begin
863     inherited Items[ index ] := Pointer( value );
864     end;
865    
866     function TGikoCategoryColumnList.Add( value : TGikoCategoryColumnID ) : Integer;
867     begin
868     Result := inherited Add( Pointer( value ) );
869     end;
870    
871     constructor TGikoBoardColumnList.Create;
872     begin
873     inherited;
874     end;
875    
876     destructor TGikoBoardColumnList.Destroy;
877     begin
878     inherited;
879     end;
880    
881     function TGikoBoardColumnList.GetItem( index : integer ) : TGikoBoardColumnID;
882     begin
883     Result := TGikoBoardColumnID( inherited Items[ index ] );
884     end;
885    
886     procedure TGikoBoardColumnList.SetItem( index : integer; value : TGikoBoardColumnID);
887     begin
888     inherited Items[ index ] := Pointer( value );
889     end;
890    
891     function TGikoBoardColumnList.Add( value : TGikoBoardColumnID ) : Integer;
892     begin
893     Result := inherited Add( Pointer( value ) );
894     end;
895    
896 hi_ 1.1 //?潟?潟?鴻????????/span>
897     constructor TSetting.Create();
898     begin
899     FNameList := TStringList.Create;
900     FMailList := TStringList.Create;
901     FSelectTextList := TStringList.Create;
902 yoffy 1.14 FBoardURLs := TStringList.Create;
903 yoffy 1.64 FBBSColumnOrder := TGikoBBSColumnList.Create;
904     FCategoryColumnOrder := TGikoCategoryColumnList.Create;
905     FBoardColumnOrder := TGikoBoardColumnList.Create;
906 yoffy 1.74 FGestures := TGestureModel.Create;
907 hi_ 1.1 FNameList.Duplicates := dupIgnore;
908     FMailList.Duplicates := dupIgnore;
909 yoffy 1.14 FBoardURLs.Duplicates := dupIgnore;
910 hi_ 1.1 FSelectTextList.Duplicates := dupIgnore;
911     ReadSettingFile();
912 yoffy 1.14 ReadBoardURLsFile();
913 hi_ 1.1 end;
914    
915     //???鴻????????/span>
916     destructor TSetting.Destroy();
917     begin
918     inherited;
919 yoffy 1.64 FBoardColumnOrder.Free;
920     FCategoryColumnOrder.Free;
921     FBBSColumnOrder.Free;
922 hi_ 1.1 FSelectTextList.Free;
923 yoffy 1.14 FBoardURLs.Free;
924 hi_ 1.1 FMailList.Free;
925     FNameList.Free;
926 yoffy 1.74 FGestures.Free;
927 hi_ 1.1 end;
928    
929     //?????????<?ゃ??????緇?鐚????刻????<?ゃ????鐚?
930     function TSetting.GetFileName(): string;
931     begin
932     Result := ExtractFilePath(Application.ExeName) + INI_FILE_NAME;
933     end;
934    
935 h677 1.11 //?炊?贋?亥??RL荐?????<?ゃ????鐚????刻????<?ゃ????鐚?
936     function TSetting.GetBoardURLFileName(): string;
937     begin
938     Result := ExtractFilePath(Application.ExeName) + BOARD_URL_INI_FILE_NAME;
939     end;
940    
941 hi_ 1.1 //荐?????<?ゃ???莨?/span>
942     procedure TSetting.ReadSettingFile();
943     const
944     DEFAULT_BBS_WIDTH: array[0..0] of Integer = (140);
945 yoffy 1.65 DEFAULT_CATEGORY_WIDTH: array[0..2] of Integer = (150, 80, 130);
946 h677 1.70 DEFAULT_BOARD_WIDTH: array[0..9] of Integer = (350, 60, 60, 60, 60, 60, 80, 130, 130, 130);
947 q9_ 1.30 MAX_WIDTH: Integer = 2000;
948 hi_ 1.1 var
949     ini: TMemIniFile;
950     i: Integer;
951 yoffy 1.64 id, code : Integer;
952 hi_ 1.1 wkList: TStringList;
953     wkStr: string;
954     Exists: Boolean;
955 yoffy 1.63 s: string;
956 hi_ 1.1 // id: Integer;
957     CoolSet: TCoolSet;
958     begin
959     Exists := FileExists(GetFileName);
960     ini := TMemIniFile.Create(GetFileName);
961     try
962     //??篆<???????<?泣?ゃ??/span>
963     FRecvBufferSize := ini.ReadInteger('HTTP', 'RecvBufferSize', 4096);
964     //HTTP1.1篏睡??/span>
965     FProtocol := ini.ReadBool('HTTP', 'Protocol', True);
966     //???????傑・膓?HTTP1.1篏睡??/span>
967     FProxyProtocol := ini.ReadBool('HTTP', 'ProxyProtocol', False);
968    
969     FReadProxy := ini.ReadBool('ReadProxy', 'Proxy', false);
970     FReadProxyAddress := ini.ReadString('ReadProxy', 'Address', '');
971     FReadProxyPort := ini.ReadInteger('ReadProxy', 'Port', 0);
972     FReadProxyUserID := ini.ReadString('ReadProxy', 'UserID', '');
973     FReadProxyPassword := ini.ReadString('ReadProxy', 'Password', '');
974    
975     FWriteProxy := ini.ReadBool('WriteProxy', 'Proxy', false);
976     FWriteProxyAddress := ini.ReadString('WriteProxy', 'Address', '');
977     FWriteProxyPort := ini.ReadInteger('WriteProxy', 'Port', 0);
978     FWriteProxyUserID := ini.ReadString('WriteProxy', 'UserID', '');
979     FWriteProxyPassword := ini.ReadString('WriteProxy', 'Password', '');
980    
981 yoffy 1.6 FBrowserFontName := ini.ReadString('Window', 'BrowserFontName', '');
982     FBrowserFontSize := ini.ReadInteger('Window', 'BrowserFontSize', 0);
983     FBrowserFontBold := ini.ReadInteger('Window', 'BrowserFontBold', 0);
984     FBrowserFontItalic := ini.ReadInteger('Window', 'BrowserFontItalic', 0);
985     FBrowserFontColor := ini.ReadInteger('Window', 'BrowserFontColor', -1);
986     FBrowserBackColor := ini.ReadInteger('Window', 'BrowserBackColor', -1);
987    
988 hi_ 1.1 FCabinetFontName := ini.ReadString('Window', 'CabinetFontName', DEFAULT_FONT_NAME);
989     FCabinetFontSize := ini.ReadInteger('Window', 'CabinetFontSize', DEFAULT_FONT_SIZE);
990     FCabinetFontBold := ini.ReadBool('Window', 'CabinetFontBold', False);
991     FCabinetFontItalic := ini.ReadBool('Window', 'CabinetFontItalic', False);
992     FCabinetFontColor := StringToColor(ini.ReadString('Window', 'CabinetFontColor', DEFAULT_FONT_COLOR));
993     FCabinetBackColor := StringToColor(ini.ReadString('Window', 'CabinetBackColor', DEFAULT_WINDOW_COLOR));
994    
995     FListFontName := ini.ReadString('Window', 'ListFontName', DEFAULT_FONT_NAME);
996     FListFontSize := ini.ReadInteger('Window', 'ListFontSize', DEFAULT_FONT_SIZE);
997     FListFontBold := ini.ReadBool('Window', 'ListFontBold', False);
998     FListFontItalic := ini.ReadBool('Window', 'ListFontItalic', False);
999     FListFontColor := StringToColor(ini.ReadString('Window', 'ListFontColor', DEFAULT_FONT_COLOR));
1000     FListBackColor := StringToColor(ini.ReadString('Window', 'ListBackColor', DEFAULT_WINDOW_COLOR));
1001 h677 1.92 FUseOddColorOddResNum := ini.ReadBool('Window','UseOddColor', False);
1002     FOddColor := StringToColor(ini.ReadString('Window', 'OddColor', DEFAULT_WINDOW_COLOR));
1003     FUnFocusedBold := ini.ReadBool('Window','UnFocusedBold', False);
1004 hi_ 1.1
1005     FEditorFontName := ini.ReadString('Window', 'EditorFontName', DEFAULT_FONT_NAME);
1006     FEditorFontSize := ini.ReadInteger('Window', 'EditorFontSize', DEFAULT_FONT_SIZE);
1007     FEditorFontBold := ini.ReadBool('Window', 'EditorFontBold', False);
1008     FEditorFontItalic := ini.ReadBool('Window', 'EditorFontItalic', False);
1009     FEditorFontColor := StringToColor(ini.ReadString('Window', 'EditorFontColor', DEFAULT_FONT_COLOR));
1010     FEditorBackColor := StringToColor(ini.ReadString('Window', 'EditorBackColor', DEFAULT_WINDOW_COLOR));
1011    
1012     FBrowserTabFontName := ini.ReadString('Window', 'BrowserTabFontName', DEFAULT_TAB_FONT_NAME);
1013     FBrowserTabFontSize := ini.ReadInteger('Window', 'BrowserTabFontSize', DEFAULT_TAB_FONT_SIZE);
1014     FBrowserTabFontBold := ini.ReadBool('Window', 'BrowserTabFontBold', False);
1015     FBrowserTabFontItalic := ini.ReadBool('Window', 'BrowserTabFontItalic', False);
1016    
1017     FHintFontName := ini.ReadString('Window', 'HintFontName', Screen.HintFont.Name);
1018     FHintFontSize := ini.ReadInteger('Window', 'HintFontSize', Screen.HintFont.Size);
1019     //FHintFontBold := ini.ReadBool('Window', 'HintFontBold', False);
1020     //FHintFontItalic := ini.ReadBool('Window', 'HintFontItalic', False);
1021     FHintFontColor := StringToColor(ini.ReadString('Window', 'HintFontColor', DEFAULT_FONT_COLOR));
1022     FHintBackColor := StringToColor(ini.ReadString('Window', 'HintBackColor', 'clInfoBk'));
1023    
1024     FWindowTop := ini.ReadInteger('WindowSize', 'Top', -1);
1025     FWindowLeft := ini.ReadInteger('WindowSize', 'Left', -1);
1026     FWindowHeight := ini.ReadInteger('WindowSize', 'Height', -1);
1027     FWindowWidth := ini.ReadInteger('WindowSize', 'Width', -1);
1028     FWindowMax := ini.ReadBool('WindowSize', 'Max', false);
1029    
1030     if FWindowHeight <= 0 then FWindowHeight := 400;
1031     if FWindowWidth <= 0 then FWindowWidth := 600;
1032    
1033     FListStyle := TViewStyle(ini.ReadInteger('ViewStyle', 'ListView', Ord(vsReport)));
1034    
1035     FEditWindowTop := ini.ReadInteger('EditorWindowSize', 'Top', -1);
1036     FEditWindowLeft := ini.ReadInteger('EditorWindowSize', 'Left', -1);
1037     FEditWindowHeight := ini.ReadInteger('EditorWindowSize', 'Height', -1);
1038     FEditWindowWidth := ini.ReadInteger('EditorWindowSize', 'Width', -1);
1039     FEditWindowMax := ini.ReadBool('EditorWindowSize', 'Max', False);
1040 deux 1.20 FEditWindowStay := ini.ReadBool('EditorWindowSize', 'Stay', False);
1041 genyakun 1.48 FEditWindowTranslucent := ini.ReadBool('EditorWindowSize', 'Translucent', False);
1042 hi_ 1.1
1043 yoffy 1.14 FOptionDialogTabIndex := ini.ReadInteger('OptionDialog', 'TabIndex', 0);
1044 yoffy 1.8
1045 hi_ 1.1 //???若??????/span>
1046     FStdToolBarVisible := ini.ReadBool('ToolBar', 'StdVisible', True);
1047     FAddressBarVisible := ini.ReadBool('ToolBar', 'AddressVisible', True);
1048     FLinkBarVisible := ini.ReadBool('ToolBar', 'LinkVisible', True);
1049     FListToolBarVisible := ini.ReadBool('ToolBar', 'ListVisible', True);
1050     FListNameBarVisible := ini.ReadBool('ToolBar', 'ListNameVisible', True);
1051     FBrowserToolBarVisible := ini.ReadBool('ToolBar', 'BrowserVisible', True);
1052     FBrowserNameBarVisible := ini.ReadBool('ToolBar', 'BrowserNameVisible', True);
1053     //???若??????rapable
1054     FListToolBarWrapable := ini.ReadBool('ToolBar', 'ListWrapable', False);
1055     FBrowserToolBarWrapable := ini.ReadBool('ToolBar', 'BrowserWrapable', False);
1056    
1057     FBrowserTabVisible := ini.ReadBool('Tab', 'BrowserTabVisible', True);
1058     FBrowserTabPosition := TGikoTabPosition(ini.ReadInteger('Tab', 'BrowserTabPosition', Ord(gtpTop)));
1059     FBrowserTabAppend := TGikoTabAppend(ini.ReadInteger('Tab', 'BrowserTabAppend', Ord(gtaFirst)));
1060     FBrowserTabStyle := TGikoTabStyle(ini.ReadInteger('Tab', 'BrowserTabStyle', Ord(gtsFlat)));
1061    
1062     FMessageBarVisible := ini.ReadBool('MessageBar', 'Visible', True);
1063     FMessegeBarHeight := ini.ReadInteger('MessageBar', 'Height', 30);
1064    
1065     FStatusBarVisible := ini.ReadBool('StatusBar', 'Visible', True);
1066    
1067     FCabinetVisible := ini.ReadBool('Cabinet', 'Visible', True);
1068     FCabinetWidth := ini.ReadInteger('Cabinet', 'Width', 200);
1069 yoffy 1.14 FCabinetIndex := ini.ReadInteger('Cabinet', 'Index', 0);
1070 hi_ 1.1
1071     FListOrientation := TGikoListOrientation(ini.ReadInteger('List', 'Orientation', Ord(gloHorizontal)));
1072     FListHeight := ini.ReadInteger('List', 'Height', 180);
1073     FListHeightState := TGikoListState(ini.ReadInteger('List', 'HeightState', Ord(glsNormal)));
1074     FListWidth := ini.ReadInteger('List', 'Width', 180);
1075     FListWidthState := TGikoListState(ini.ReadInteger('List', 'WidthState', Ord(glsNormal)));
1076     // FListHeightMax := ini.ReadBool('List', 'HeightMax', False);
1077     // FListWidthMax := ini.ReadBool('List', 'WidthMax', False);
1078    
1079     wkList := TStringList.Create;
1080     try
1081     ini.ReadSection('Name', wkList);
1082     for i := 0 to wkList.Count - 1 do begin
1083     wkStr := ini.ReadString('Name', wkList[i], '');
1084     if (wkStr <> '') and (FNameList.IndexOf(wkStr) = -1) then
1085     FNameList.Add(wkStr);
1086     end;
1087     ini.ReadSection('Mail', wkList);
1088     for i := 0 to wkList.Count - 1 do begin
1089     wkStr := ini.ReadString('Mail', wkList[i], '');
1090     if (wkStr <> '') and (FMailList.IndexOf(wkStr) = -1) then
1091     FMailList.Add(wkStr);
1092     end;
1093     ini.ReadSection('SelectText', wkList);
1094     for i := 0 to wkList.Count - 1 do begin
1095     wkStr := ini.ReadString('SelectText', wkList[i], '');
1096     if (wkStr <> '') and (FSelectTextList.IndexOf(wkStr) = -1) then
1097     FSelectTextList.Add(wkStr);
1098     end;
1099     finally
1100     wkList.Free;
1101     end;
1102    
1103 yoffy 1.64 // ???鴻????????綛?
1104 hi_ 1.1 wkList := TStringList.Create;
1105     try
1106     ini.ReadSection('BBSColumnWidth', wkList);
1107     if Length(FBBSColumnWidth) <> wkList.Count then begin
1108     ini.EraseSection('BBSColumnWidth');
1109     end;
1110     for i := 0 to Length(FBBSColumnWidth) - 1 do begin
1111     BBSColumnWidth[i] := ini.ReadInteger('BBSColumnWidth', 'ID' + IntToStr(i), DEFAULT_BBS_WIDTH[i]);
1112 q9_ 1.30 if BBSColumnWidth[i] > MAX_WIDTH then
1113     BBSColumnWidth[i] := DEFAULT_BBS_WIDTH[i];
1114 hi_ 1.1 end;
1115     ini.ReadSection('CategoryColumnWidth', wkList);
1116     if Length(FCategoryColumnWidth) <> wkList.Count then begin
1117     ini.EraseSection('CategoryColumnWidth');
1118     end;
1119     for i := 0 to Length(FCategoryColumnWidth) - 1 do begin
1120     CategoryColumnWidth[i] := ini.ReadInteger('CategoryColumnWidth', 'ID' + IntToStr(i), DEFAULT_CATEGORY_WIDTH[i]);
1121 q9_ 1.30 if CategoryColumnWidth[i] > MAX_WIDTH then
1122     CategoryColumnWidth[i] := DEFAULT_CATEGORY_WIDTH[i];
1123 hi_ 1.1 end;
1124     ini.ReadSection('BoardColumnWidth', wkList);
1125     if Length(FBoardColumnWidth) <> wkList.Count then begin
1126     ini.EraseSection('BoardColumnWidth');
1127     end;
1128     for i := 0 to Length(FBoardColumnWidth) - 1 do begin
1129     BoardColumnWidth[i] := ini.ReadInteger('BoardColumnWidth', 'ID' + IntToStr(i), DEFAULT_BOARD_WIDTH[i]);
1130 q9_ 1.30 if BoardColumnWidth[i] > MAX_WIDTH then
1131     BoardColumnWidth[i] := DEFAULT_BOARD_WIDTH[i];
1132 hi_ 1.1 end;
1133     finally
1134     wkList.Free;
1135     end;
1136    
1137 yoffy 1.64 // ?????眼?????鴻??????????綺?span>
1138     wkList := TStringList.Create;
1139     try
1140     ini.ReadSection( 'BBSColumnOrder', wkList );
1141     for i := 0 to wkList.Count - 1 do begin
1142     wkStr := ini.ReadString( 'BBSColumnOrder', 'ID' + IntToStr( i ), '' );
1143     Val( wkStr, id, code );
1144     if code = 0 then
1145     FBBSColumnOrder.Add( TGikoBBSColumnID( id ) );
1146     end;
1147     if FBBSColumnOrder.Count = 0 then begin
1148     // 荐?????<?????т???
1149     for i := 0 to Integer( High( TGikoBBSColumnID ) ) do
1150     FBBSColumnOrder.Add( TGikoBBSColumnID( i ) );
1151     end;
1152    
1153     ini.ReadSection( 'CategoryColumnOrder', wkList );
1154     for i := 0 to wkList.Count - 1 do begin
1155     wkStr := ini.ReadString( 'CategoryColumnOrder', 'ID' + IntToStr( i ), '' );
1156     Val( wkStr, id, code );
1157     if code = 0 then
1158     FCategoryColumnOrder.Add( TGikoCategoryColumnID( id ) );
1159     end;
1160     if FCategoryColumnOrder.Count = 0 then begin
1161     // 荐?????<?????т???
1162     for i := 0 to Integer( High( TGikoCategoryColumnID ) ) do
1163     FCategoryColumnOrder.Add( TGikoCategoryColumnID( i ) );
1164     end;
1165    
1166     ini.ReadSection( 'BoardColumnOrder', wkList );
1167     for i := 0 to wkList.Count - 1 do begin
1168     wkStr := ini.ReadString( 'BoardColumnOrder', 'ID' + IntToStr( i ), '' );
1169     Val( wkStr, id, code );
1170     if code = 0 then
1171     FBoardColumnOrder.Add( TGikoBoardColumnID( id ) );
1172     end;
1173     if FBoardColumnOrder.Count = 0 then begin
1174     // 荐?????<?????т???
1175     for i := 0 to Integer( High( TGikoBoardColumnID ) ) do
1176     FBoardColumnOrder.Add( TGikoBoardColumnID( i ) );
1177     end;
1178     finally
1179     wkList.Free;
1180     end;
1181    
1182 hi_ 1.1 //???鴻?????/span>
1183     FListViewNo := ini.ReadBool('Function', 'ListViewNo', True);
1184     //CSS
1185 yoffy 1.17 UseCSS := ini.ReadBool('CSS', 'UseCSS', True);
1186 hi_ 1.1 //CSS???<?ゃ????
1187 yoffy 1.17 CSSFileName := ini.ReadString('CSS', 'FileName', 'default.css');
1188 hi_ 1.1
1189     //Mail罨?茵?ず
1190     FShowMail := ini.ReadBool('Thread', 'ShowMail', True);
1191 yoffy 1.49 // ???壕;腓榊???/span>
1192     if ini.ReadBool('Thread', 'OnlyAHundredRes',false) then
1193     FResRange := 100 // ?ゃ??荐?????????/span>
1194     else
1195 h677 1.60 FResRange := ini.ReadInteger( 'Thread', 'ResRange', Ord( grrAll ) );
1196 yoffy 1.51 FResRangeHold := ini.ReadBool( 'Thread', 'ResRangeHold', False );
1197 yoffy 1.55 // ?鴻??????筝?荀ц;腓榊???/span>
1198     FThreadRange := TGikoThreadRange( ini.ReadInteger('ThreadList', 'ThreadRange', Ord( gtrAll )) );
1199 yoffy 1.2 //???≪?????c???????鴻???????≪????茵?ず
1200 hi_ 1.1 FUnActivePopup := ini.ReadBool('Thread', 'UnActivePopup', False);
1201 yoffy 1.2 //???鴻???????≪???????????若???若????
1202     FResPopupHeaderBold := ini.ReadBool('Thread', 'ResPopupHeaderBold', True);
1203 hi_ 1.1 //???ょ∈茯?
1204     FDeleteMsg := ini.ReadBool('Function', 'LogDeleteMessage', True);
1205 yoffy 1.14 //腟?篋?腆肴?
1206     FShowDialogForEnd := ini.ReadBool('Function','ShowDialogForEnd',false);
1207 h677 1.38 //AllTabClose
1208     FShowDialogForAllTabClose := ini.ReadBool('Function','ShowDialogForAllTabClose',false);
1209 genyakun 1.48 //Samba
1210 h677 1.38 FUseSamba := ini.ReadBool('Function','UseSamba', True);
1211     //ResAnchorjamp
1212     ResAnchorJamp := ini.ReadBool('Function', 'ResAnchoJamp', True);
1213 hi_ 1.1 //???違????????
1214 h677 1.88 LogFolder := ini.ReadString('Folder', 'LogFolder', ExtractFilePath(Application.ExeName) + 'Log');
1215 hi_ 1.1 NewLogFolder := '';
1216    
1217     //??RL
1218 yoffy 1.14 //茲??亥?脂?蚊?с??????????????BoardURLs????????2003/10/05
1219 h677 1.11 //FBoardURL2ch := ini.ReadString('BoardURL', '2ch', DEFAULT_2CH_BOARD_URL);
1220 hi_ 1.1
1221     //茯?荐主?????若??D?祉???鴻???若??
1222     FUserID := ini.ReadString('Attestation', 'UserID', '');
1223     FPassword := Decrypt(ini.ReadString('Attestation', 'Password', ''));
1224     FAutoLogin := ini.ReadBool('Attestation', 'AutoLogin', False);
1225 h677 1.36 FForcedLogin := ini.ReadBool('Attestation', 'FForcedLogin', False);
1226 h677 1.37 // FDolibURL := ini.ReadString('Attestation', 'FDolibURL', DOLIB_LOGIN_URL);
1227 hi_ 1.1
1228     //URL??????????莎桁???≪????/span>
1229     FURLApp := ini.ReadBool('URLApp', 'Select', False);
1230     FURLAppFile := ini.ReadString('URLApp', 'File', '');
1231    
1232     //mailto????????????篏?
1233     FOpenMailer := ini.ReadBool('Mailto', 'Open', True);
1234    
1235     //???????≪????篏?臀?/span>
1236     FPopupPosition := TGikoPopupPosition(ini.ReadInteger('Browser', 'PopupPosition', Ord(gppLeftBottom)));
1237    
1238     //?≪?????鴻????/span>
1239     FURLDisplay := ini.ReadBool('AddressBar', 'URLDisplay', False);
1240     FAddressBarTabStop := ini.ReadBool('AddressBar', 'TabStop', True);
1241     FLinkAddAddressBar := ini.ReadBool('AddressBar', 'LinkAdd', False);
1242     FAddressHistoryCount := ini.ReadInteger('AddressBar', 'HistoryCount', 100);
1243    
1244     //?糸????????ャ??/span>
1245     FPreviewVisible := ini.ReadBool('Browser', 'PreviewVisible', True);
1246     FPreviewSize := TGikoPreviewSize(ini.ReadInteger('Browser', 'PreviewSize', Ord(gpsMedium)));
1247     FPreviewWait := ini.ReadInteger('Browser', 'PreviewWait', 500);
1248    
1249 yoffy 1.39 // ????????/span>
1250     FBrowserAutoMaximize := TGikoBrowserAutoMaximize(
1251     ini.ReadInteger('Window', 'BrowserAutoMaximize', Ord(gbmDoubleClick)) );
1252    
1253 hi_ 1.1 //?鴻??????筝?荀ф?贋?違?≪?ゃ?潟??/span>
1254     FListIconVisible := ini.ReadBool('ThreadList', 'StateIconVisible', True);
1255 q9_ 1.44 FCreationTimeLogs := ini.ReadBool('ThreadList', 'CreationTimeLogs', True);
1256 h677 1.43 FFutureThread := ini.ReadBool('ThreadList', 'FutureThread', True);
1257     FSelectInterval := ini.ReadInteger('ThreadList', 'SelectInterval', 110);
1258 q9_ 1.46 //?純?若????
1259     FBBSSortIndex := ini.ReadInteger('ThreadList', 'BBSSortIndex', 0);
1260 h677 1.59 FBBSSortOrder := ini.ReadBool('ThreadList', 'BBSSortOrder', True);
1261 q9_ 1.46 FCategorySortIndex := ini.ReadInteger('ThreadList', 'CategorySortIndex', 0);
1262 h677 1.59 FCategorySortOrder := ini.ReadBool('ThreadList', 'CategorySortOrder', True);
1263 q9_ 1.46 FBoardSortIndex := ini.ReadInteger('ThreadList', 'BoardSortIndex', 0);
1264 h677 1.59 FBoardSortOrder := ini.ReadBool('ThreadList', 'BoardSortOrder', True);
1265 q9_ 1.53 //Dat?純?<?鴻???純?若????
1266     FDatOchiSortIndex := ini.ReadInteger('ThreadList', 'DatOchiSortIndex', -1);
1267     FDatOchiSortOrder := ini.ReadBool('ThreadList', 'DatOchiSortOrder', False);
1268 hi_ 1.1
1269     //?吾??莨若?炊?????激?恰???私戎??┃絎?
1270     FUseMachineTime := ini.ReadBool('PostTime', 'UseMachineTime', False);
1271     FTimeAdjustSec := ini.ReadInteger('PostTime', 'TimeAdjustSec', 0);
1272     FTimeAdjust := ini.ReadBool('PostTime', 'TimeAdjust', True);
1273    
1274     //?泣???潟??
1275     if Exists then begin
1276     for i := 0 to GetSoundCount - 1 do begin
1277     SoundFileName[i] := ini.ReadString('Sound', SoundName[i], '');
1278     if not FileExists(SoundFileName[i]) then
1279     SoundFileName[i] := '';
1280     end;
1281     end else begin
1282     s := ExtractFileDir(Application.ExeName) + '\sound\';
1283     SoundFileName[0] := s + '??緇?????.wav';
1284     SoundFileName[1] := s + '??緇?????(綏???).wav';
1285     SoundFileName[2] := s + '???贋??wav';
1286     SoundFileName[3] := '';
1287     SoundFileName[4] := s + '??????wav';
1288     end;
1289    
1290     //???若??????/span>
1291     for i := 0 to MAIN_COOLBAND_COUNT - 1 do begin
1292     CoolSet.FCoolID := ini.ReadInteger('MainCoolBar', 'ID' + IntToStr(i), -1);
1293     CoolSet.FCoolWidth := ini.ReadInteger('MainCoolBar', 'Width' + IntToStr(i), -1);
1294     CoolSet.FCoolBreak := ini.ReadBool('MainCoolBar', 'Break' + IntToStr(i), False);
1295     MainCoolSet[i] := CoolSet;
1296     end;
1297 yoffy 1.14 FSelectComboBoxWidth := ini.ReadInteger( 'ListCoolBar', 'SelectWidth', 127 );
1298 hi_ 1.1 for i := 0 to LIST_COOLBAND_COUNT - 1 do begin
1299     CoolSet.FCoolID := ini.ReadInteger('ListCoolBar', 'ID' + IntToStr(i), -1);
1300     CoolSet.FCoolWidth := ini.ReadInteger('ListCoolBar', 'Width' + IntToStr(i), -1);
1301     CoolSet.FCoolBreak := ini.ReadBool('ListCoolBar', 'Break' + IntToStr(i), False);
1302 yoffy 1.2 ListCoolSet[i] := CoolSet;
1303 hi_ 1.1 end;
1304     for i := 0 to BROWSER_COOLBAND_COUNT - 1 do begin
1305     CoolSet.FCoolID := ini.ReadInteger('BrowserCoolBar', 'ID' + IntToStr(i), -1);
1306     CoolSet.FCoolWidth := ini.ReadInteger('BrowserCoolBar', 'Width' + IntToStr(i), -1);
1307     CoolSet.FCoolBreak := ini.ReadBool('BrowserCoolBar', 'Break' + IntToStr(i), False);
1308     BrowserCoolSet[i] := CoolSet;
1309     end;
1310 h677 1.3
1311 yoffy 1.14 //???若????
1312     FAbonDeleterlo := ini.ReadBool('Abon','Deleterlo',false);
1313     FAbonReplaceul := ini.ReadBool('Abon','Replaceul',false);
1314     FPopUpAbon := ini.ReadBool('Abon','Popup',false);
1315     FShowNGLinesNum := ini.ReadBool('Abon','ShowNGLines',false);
1316     FAddResAnchor := ini.ReadBool('Abon','AddResAnchor',false);
1317 h677 1.93 FDeleteSyria := ini.ReadBool('Abon','DeleteSyria',false);
1318     FIgnoreKana := ini.ReadBool('Abon','IgnoreKana',false);
1319 yoffy 1.40
1320     // ?????c??/span>
1321 h677 1.73 FSpaceToNBSP := ini.ReadBool( 'Editor', 'SpaceToNBSP', False );
1322 yoffy 1.42 FAmpToCharRef := ini.ReadBool( 'Editor', 'AmpToCharRef', False );
1323 h677 1.43
1324 h677 1.67 //Tab????篆?絖???茯??粋昭??/span>
1325     FTabAutoLoadSave := ini.ReadBool('TabAuto', 'TabAutoLoadSave', False);
1326    
1327     FKuroutSettingTabIndex := ini.ReadInteger('OptionDialog', 'KuroutTabIndex' , 0);
1328 genyakun 1.47
1329 yoffy 1.75 // ?????鴻?吾?с?鴻???c??/span>
1330     FGestureEnabled := ini.ReadBool( 'Guesture', 'Enabled', False );
1331 genyakun 1.77
1332 h677 1.81 //2ch荐?茯??泣??
1333     F2chSupport := ini.ReadBool('2chSupport', 'Support', False);
1334    
1335     //FusianaTrap
1336     FLocalTrapAtt := ini.ReadBool('Trap', 'LocalTrap', False);
1337     FRemoteTrapAtt := ini.ReadBool('Trap', 'RemoteTrap', False);
1338 h677 1.82 FReadTimeOut := ini.ReadInteger('HTTP', 'ReadTimeOut', 10000);
1339 genyakun 1.77
1340 yoffy 1.83 // 篏睡???????鴻???????c????/span>
1341     FSpamFilterAlgorithm := TGikoSpamFilterAlgorithm(
1342     ini.ReadInteger( 'Abon', 'SpamFilterAlgorithm', Ord( gsfaNone ) ) );
1343 h677 1.84 FMute := ini.ReadBool('Function', 'Mute', false);
1344 h677 1.85 FUseUndecided := ini.ReadBool('ThreadList', 'UseUndecided', False);
1345 genyakun 1.87
1346 h677 1.90 //Be2ch
1347 h677 1.91 //茯?荐主?????若??D?肢?荐若?潟?若??
1348 genyakun 1.87 FBeUserID := ini.ReadString('Be', 'UserID', '');
1349 h677 1.90 FBeCode := Decrypt(ini.ReadString('Be', 'Code', ''));
1350 genyakun 1.87 FBeAutoLogin := ini.ReadBool('Be', 'AutoLogin', False);
1351 h677 1.91 //絮ユ?????紊т?絖?篁倶??/span>
1352     FMaxRecordCount := Max(ini.ReadInteger('Recode', 'Max', 100), 1);
1353    
1354 h677 1.81 ini.UpdateFile;
1355 hi_ 1.1 finally
1356     ini.Free;
1357     end;
1358     end;
1359 h677 1.11 //?炊?贋?亥??RL茯??粋昭??/span>
1360     procedure TSetting.ReadBoardURLsFile();
1361     var
1362     ini: TMemIniFile;
1363 yoffy 1.14 urlNum: Integer;
1364     i : Integer;
1365 h677 1.11 begin
1366 yoffy 1.14 if not FileExists(GetBoardURLFileName()) then
1367     MakeURLIniFile();
1368 h677 1.11 ini := TMemIniFile.Create(GetBoardURLFileName());
1369 yoffy 1.14 try
1370     urlNum := ini.ReadInteger('URL','count',0);
1371     BoardURLSelected := ini.ReadInteger('URL','selected',0);
1372     for i := 0 to urlNum - 1 do begin
1373     FBoardURLs.Append(ini.ReadString('URL',IntToStr(i+1),''));
1374     end;
1375     finally
1376     ini.Free;
1377     end;
1378 hi_ 1.1
1379 h677 1.11 end;
1380 hi_ 1.1 //荐?????<?ゃ???絖?(system)
1381     procedure TSetting.WriteSystemSettingFile();
1382     var
1383     ini: TMemIniFile;
1384     begin
1385     ini := TMemIniFile.Create(GetFileName());
1386     try
1387     //??篆<???????<?泣?ゃ??/span>
1388     ini.WriteInteger('HTTP', 'RecvBufferSize', FRecvBufferSize);
1389     //HTTP1.1篏睡??/span>
1390     ini.WriteBool('HTTP', 'Protocol', FProtocol);
1391     //???????傑・膓?HTTP1.1篏睡??/span>
1392     ini.WriteBool('HTTP', 'ProxyProtocol', FProxyProtocol);
1393    
1394     ini.WriteBool('ReadProxy', 'Proxy', FReadProxy);
1395     ini.WriteString('ReadProxy', 'Address', FReadProxyAddress);
1396     ini.WriteInteger('ReadProxy', 'Port', FReadProxyPort);
1397     ini.WriteString('ReadProxy', 'UserID', FReadProxyUserID);
1398     ini.WriteString('ReadProxy', 'Password', FReadProxyPassword);
1399    
1400     ini.WriteBool('WriteProxy', 'Proxy', FWriteProxy);
1401     ini.WriteString('WriteProxy', 'Address', FWriteProxyAddress);
1402     ini.WriteInteger('WriteProxy', 'Port', FWriteProxyPort);
1403     ini.WriteString('WriteProxy', 'UserID', FWriteProxyUserID);
1404     ini.WriteString('WriteProxy', 'Password', FWriteProxyPassword);
1405    
1406 yoffy 1.6 ini.WriteString('Window', 'BrowserFontName', FBrowserFontName);
1407     ini.WriteInteger('Window', 'BrowserFontSize', FBrowserFontSize);
1408     ini.WriteInteger('Window', 'BrowserFontSize', FBrowserFontSize);
1409     ini.WriteInteger('Window', 'BrowserFontBold', FBrowserFontBold);
1410     ini.WriteInteger('Window', 'BrowserFontItalic', FBrowserFontItalic);
1411     ini.WriteInteger('Window', 'BrowserFontColor', FBrowserFontColor);
1412     ini.WriteInteger('Window', 'BrowserBackColor', FBrowserBackColor);
1413    
1414 hi_ 1.1 ini.WriteString('Window', 'CabinetFontName', FCabinetFontName);
1415     ini.WriteInteger('Window', 'CabinetFontSize', FCabinetFontSize);
1416     ini.WriteString('Window', 'CabinetFontColor', ColorToString(FCabinetFontColor));
1417 h677 1.80 ini.WriteBool('Window', 'CabinetFontBold', FCabinetFontBold);
1418     ini.WriteBool('Window', 'CabinetFontItalic', FCabinetFontItalic);
1419 hi_ 1.1 ini.WriteString('Window', 'CabinetBackColor', ColorToString(FCabinetBackColor));
1420    
1421     ini.WriteString('Window', 'ListFontName', FListFontName);
1422     ini.WriteInteger('Window', 'ListFontSize', FListFontSize);
1423     ini.WriteString('Window', 'ListFontColor', ColorToString(FListFontColor));
1424     ini.WriteString('Window', 'ListBackColor', ColorToString(FListBackColor));
1425 h677 1.80 ini.WriteBool('Window', 'ListFontBold', FListFontBold);
1426     ini.WriteBool('Window', 'ListFontItalic', FListFontItalic);
1427 h677 1.92 ini.WriteBool('Window','UseOddColor',FUseOddColorOddResNum);
1428     ini.WriteString('Window', 'OddColor',ColorToString(FOddColor));
1429     ini.WriteBool('Window','UnFocusedBold', FUnFocusedBold);
1430 hi_ 1.1
1431     ini.WriteString('Window', 'EditorFontName', FEditorFontName);
1432     ini.WriteInteger('Window', 'EditorFontSize', FEditorFontSize);
1433     ini.WriteString('Window', 'EditorFontColor', ColorToString(FEditorFontColor));
1434     ini.WriteString('Window', 'EditorBackColor', ColorToString(FEditorBackColor));
1435    
1436     ini.WriteString('Window', 'BrowserTabFontName', FBrowserTabFontName);
1437     ini.WriteInteger('Window', 'BrowserTabFontSize', FBrowserTabFontSize);
1438     ini.WriteBool('Window', 'BrowserTabFontBold', FBrowserTabFontBold);
1439     ini.WriteBool('Window', 'BrowserTabFontItalic', FBrowserTabFontItalic);
1440    
1441     ini.WriteString('Window', 'HintFontName', FHintFontName);
1442     ini.WriteInteger('Window', 'HintFontSize', FHintFontSize);
1443     ini.WriteString('Window', 'HintFontColor', ColorToString(FHintFontColor));
1444     ini.WriteString('Window', 'HintBackColor', ColorToString(FHintBackColor));
1445    
1446     ini.UpdateFile;
1447     finally
1448     ini.Free;
1449     end;
1450     end;
1451    
1452     //荐?????<?ゃ???絖?(window)
1453     procedure TSetting.WriteWindowSettingFile();
1454     var
1455     i: Integer;
1456     ini: TMemIniFile;
1457     CoolSet: TCoolSet;
1458 yoffy 1.66 wkList : TStringList;
1459 hi_ 1.1 begin
1460     ini := TMemIniFile.Create(GetFileName());
1461     try
1462     ini.WriteInteger('WindowSize', 'Top', WindowTop);
1463     ini.WriteInteger('WindowSize', 'Left', WindowLeft);
1464     ini.WriteInteger('WindowSize', 'Height', WindowHeight);
1465     ini.WriteInteger('WindowSize', 'Width', WindowWidth);
1466     ini.WriteBool('WindowSize', 'Max', WindowMax);
1467    
1468     ini.WriteInteger('ViewStyle', 'ListView', Ord(ListStyle));
1469    
1470     ini.WriteInteger('EditorWindowSize', 'Top', EditWindowTop);
1471     ini.WriteInteger('EditorWindowSize', 'Left', EditWindowLeft);
1472     ini.WriteInteger('EditorWindowSize', 'Height', EditWindowHeight);
1473     ini.WriteInteger('EditorWindowSize', 'Width', EditWindowWidth);
1474     ini.WriteBool('EditorWindowSize', 'Max', EditWindowMax);
1475 deux 1.20 ini.WriteBool('EditorWindowSize', 'Stay', EditWindowStay);
1476 yoffy 1.34 ini.WriteBool('EditorWindowSize', 'Translucent', EditWindowTranslucent);
1477 hi_ 1.1
1478 yoffy 1.14 ini.WriteInteger('OptionDialog', 'TabIndex', FOptionDialogTabIndex);
1479 yoffy 1.8
1480 hi_ 1.1 //???若??????/span>
1481     ini.WriteBool('ToolBar', 'StdVisible', FStdToolBarVisible);
1482     ini.WriteBool('ToolBar', 'AddressVisible', FAddressBarVisible);
1483     ini.WriteBool('ToolBar', 'LinkVisible', FLinkBarVisible);
1484     ini.WriteBool('ToolBar', 'ListVisible', FListToolBarVisible);
1485     ini.WriteBool('ToolBar', 'ListNameVisible', FListNameBarVisible);
1486     ini.WriteBool('ToolBar', 'BrowserVisible', FBrowserToolBarVisible);
1487     ini.WriteBool('ToolBar', 'BrowserNameVisible', FBrowserNameBarVisible);
1488     //???若??????rapable
1489     ini.WriteBool('ToolBar', 'ListWrapable', FListToolBarWrapable);
1490     ini.WriteBool('ToolBar', 'BrowserWrapable', FBrowserToolBarWrapable);
1491    
1492     //?帥??
1493     ini.WriteBool('Tab', 'BrowserTabVisible', FBrowserTabVisible);
1494     ini.WriteInteger('Tab', 'BrowserTabPosition', Ord(FBrowserTabPosition));
1495     ini.WriteInteger('Tab', 'BrowserTabAppend', Ord(FBrowserTabAppend));
1496     ini.WriteInteger('Tab', 'BrowserTabStyle', Ord(FBrowserTabStyle));
1497    
1498     //?<???祉?若?吾????/span>
1499     ini.WriteBool('MessageBar', 'Visible', FMessageBarVisible);
1500     ini.WriteInteger('MessageBar', 'Height', FMessegeBarHeight);
1501    
1502     //?鴻???若?帥?鴻????/span>
1503     ini.WriteBool('StatusBar', 'Visible', FStatusBarVisible);
1504    
1505     //???c????????
1506     ini.WriteBool('Cabinet', 'Visible', FCabinetVisible);
1507     ini.WriteInteger('Cabinet', 'Width', FCabinetWidth);
1508 yoffy 1.14 ini.WriteInteger('Cabinet', 'Index', FCabinetIndex);
1509 hi_ 1.1
1510     //???鴻?????泣?ゃ?冴?????贋梓綛?/span>
1511     ini.WriteInteger('List', 'Orientation', Ord(FListOrientation));
1512     ini.WriteInteger('List', 'Height', FListHeight);
1513     ini.WriteInteger('List', 'HeightState', Ord(FListHeightState));
1514     ini.WriteInteger('List', 'Width', FListWidth);
1515     ini.WriteInteger('List', 'WidthState', Ord(FListWidthState));
1516     // ini.WriteBool('List', 'HeightMax', FListHeightMax);
1517     // ini.WriteBool('List', 'WidthMax', FListWidthMax);
1518    
1519    
1520     // ini.WriteInteger('Window', 'BrowserFontSize', BrowserFontSize);
1521    
1522     //???鴻????埈;腓?/span>
1523     ini.WriteBool('Function', 'ListViewNo', FListViewNo);
1524     //CSS篏睡??/span>
1525     ini.WriteBool('CSS', 'UseCSS', FUseCSS);
1526     //CSS???<?ゃ????
1527     ini.WriteString('CSS', 'FileName', FCSSFileName);
1528     //Mail罨?茵?ず
1529     ini.WriteBool('Thread', 'ShowMail', FShowMail);
1530 yoffy 1.49 // ???壕;腓榊???/span>
1531 yoffy 1.58 ini.DeleteKey( 'Thread', 'OnlyAHundredRes' ); // ?ゃ??荐????????/span>
1532 yoffy 1.49 ini.WriteInteger('Thread', 'ResRange', FResRange);
1533 yoffy 1.51 ini.WriteBool('Thread', 'ResRangeHold', FResRangeHold);
1534 yoffy 1.55 // ?鴻??????筝?荀ц;腓榊???/span>
1535     ini.WriteInteger('ThreadList', 'ThreadRange', Ord( FThreadRange ));
1536 hi_ 1.1 //???医???ょ∈茯?
1537     ini.WriteBool('Function', 'LogDeleteMessage', FDeleteMsg);
1538 yoffy 1.14 //腟?篋?腆肴?
1539     ini.WriteBool('Function','ShowDialogForEnd',FShowDialogForEnd);
1540 h677 1.38 //AllTabClose
1541     ini.WriteBool('Function','ShowDialogForAllTabClose', FShowDialogForAllTabClose);
1542 yoffy 1.34 //Samba
1543     ini.WriteBool('Function','UseSamba', FUseSamba);
1544 h677 1.38 //ResAnchorjamp
1545     ini.WriteBool('Function', 'ResAnchoJamp', ResAnchorJamp);
1546 h677 1.33
1547 hi_ 1.1 //???≪?????c???????????≪????茵?ず
1548     ini.WriteBool('Thread', 'UnActivePopup', FUnActivePopup);
1549 yoffy 1.2 //???鴻???????≪???????????若???若????
1550     ini.WriteBool('Thread', 'ResPopupHeaderBold', FResPopupHeaderBold);
1551 h677 1.11 //ini.WriteString('BoardURL', '2ch', FBoardURL2ch);
1552 hi_ 1.1
1553     //茯?荐主?????若??D?祉???鴻???若??
1554     ini.WriteString('Attestation', 'UserID', FUserID);
1555     ini.WriteString('Attestation', 'Password', Encrypt(FPassword));
1556     ini.WriteBool('Attestation', 'AutoLogin', FAutoLogin);
1557 h677 1.36 ini.WriteBool('Attestation', 'FForcedLogin', FForcedLogin);
1558     ini.WriteString('Attestation', 'FDolibURL', FDolibURL);
1559 hi_ 1.1
1560     //URL??????????莎桁???≪????/span>
1561     ini.WriteBool('URLApp', 'Select', FURLApp);
1562     ini.WriteString('URLApp', 'File', FURLAppFile);
1563    
1564     //mailto????????????篏?
1565     ini.WriteBool('Mailto', 'Open', FOpenMailer);
1566    
1567     //???????≪????篏?臀?/span>
1568     ini.WriteInteger('Browser', 'PopupPosition', Ord(FPopupPosition));
1569    
1570     //?≪?????鴻????/span>
1571     ini.WriteBool('AddressBar', 'URLDisplay', FURLDisplay);
1572     ini.WriteBool('AddressBar', 'TabStop', FAddressBarTabStop);
1573     ini.WriteBool('AddressBar', 'LinkAdd', FLinkAddAddressBar);
1574     ini.WriteInteger('AddressBar', 'HistoryCount', FAddressHistoryCount);
1575    
1576     //?糸????????ャ??/span>
1577     ini.WriteBool('Browser', 'PreviewVisible', FPreviewVisible);
1578     ini.WriteInteger('Browser', 'PreviewSize', Ord(FPreviewSize));
1579     ini.WriteInteger('Browser', 'PreviewWait', FPreviewWait);
1580 yoffy 1.61
1581     ini.WriteInteger('Window', 'BrowserAutoMaximize', Ord( BrowserAutoMaximize ) );
1582 hi_ 1.1
1583     //?鴻??????筝?荀ф?贋?違?≪?ゃ?潟??/span>
1584     ini.WriteBool('ThreadList', 'StateIconVisible', FListIconVisible);
1585 yoffy 1.34 ini.WriteBool('ThreadList', 'CreationTimeLogs',FCreationTimeLogs);
1586     ini.WriteBool('ThreadList', 'FutureThread', FFutureThread);
1587 q9_ 1.44 ini.WriteInteger('ThreadList', 'SelectInterval', FSelectInterval);
1588 q9_ 1.46 //?純?若????
1589     ini.WriteInteger('ThreadList', 'BBSSortIndex', FBBSSortIndex);
1590     ini.WriteBool('ThreadList', 'BBSSortOrder', FBBSSortOrder);
1591     ini.WriteInteger('ThreadList', 'CategorySortIndex', FCategorySortIndex);
1592     ini.WriteBool('ThreadList', 'CategorySortOrder', FCategorySortOrder);
1593     ini.WriteInteger('ThreadList', 'BoardSortIndex', FBoardSortIndex);
1594     ini.WriteBool('ThreadList', 'BoardSortOrder', FBoardSortOrder);
1595 q9_ 1.53 ini.WriteInteger('ThreadList', 'DatOchiSortIndex', FDatOchiSortIndex);
1596     ini.WriteBool('ThreadList', 'DatOchiSortOrder', FDatOchiSortOrder);
1597 hi_ 1.1
1598     //?吾??莨若?炊?????激?恰???私戎??┃絎?
1599     ini.WriteBool('PostTime', 'UseMachineTime', FUseMachineTime);
1600     ini.WriteInteger('PostTime', 'TimeAdjustSec', FTimeAdjustSec);
1601     ini.WriteBool('PostTime', 'TimeAdjust', FTimeAdjust);
1602    
1603 yoffy 1.64 // ???鴻????????綛?
1604 hi_ 1.1 for i := 0 to Length(FBBSColumnWidth) - 1 do begin
1605     ini.WriteInteger('BBSColumnWidth', 'ID' + IntToStr(i), FBBSColumnWidth[i]);
1606     end;
1607     for i := 0 to Length(FCategoryColumnWidth) - 1 do begin
1608     ini.WriteInteger('CategoryColumnWidth', 'ID' + IntToStr(i), FCategoryColumnWidth[i]);
1609     end;
1610     for i := 0 to Length(FBoardColumnWidth) - 1 do begin
1611     ini.WriteInteger('BoardColumnWidth', 'ID' + IntToStr(i), FBoardColumnWidth[i]);
1612     end;
1613    
1614 yoffy 1.66 wkList := TStringList.Create;
1615     try
1616     // ?????眼?????鴻????綺?span>
1617     ini.ReadSection( 'BBSColumnOrder', wkList );
1618     for i := wkList.Count - 1 downto 0 do
1619     ini.DeleteKey( 'BBSColumnOrder', wkList[ i ] );
1620     for i := 0 to FBBSColumnOrder.Count - 1 do
1621     ini.WriteInteger( 'BBSColumnOrder', 'ID' + IntToStr( i ), Ord( FBBSColumnOrder[ i ] ) );
1622    
1623     // ?帥???鴻????綺?span>
1624     ini.ReadSection( 'CategoryColumnOrder', wkList );
1625     for i := wkList.Count - 1 downto 0 do
1626     ini.DeleteKey( 'CategoryColumnOrder', wkList[ i ] );
1627     for i := 0 to FCategoryColumnOrder.Count - 1 do
1628     ini.WriteInteger( 'CategoryColumnOrder', 'ID' + IntToStr( i ), Ord( FCategoryColumnOrder[ i ] ) );
1629    
1630     // ?鴻?????鴻????綺?span>
1631     ini.ReadSection( 'BoardColumnOrder', wkList );
1632     for i := wkList.Count - 1 downto 0 do
1633     ini.DeleteKey( 'BoardColumnOrder', wkList[ i ] );
1634     for i := 0 to FBoardColumnOrder.Count - 1 do
1635     ini.WriteInteger( 'BoardColumnOrder', 'ID' + IntToStr( i ), Ord( FBoardColumnOrder[ i ] ) );
1636     finally
1637     wkList.Free;
1638     end;
1639 yoffy 1.64
1640 hi_ 1.1 //?泣???潟??
1641     for i := 0 to GetSoundCount - 1 do begin
1642     if not FileExists(SoundFileName[i]) then
1643     SoundFileName[i] := '';
1644     ini.WriteString('Sound', SoundName[i], SoundFileName[i]);
1645     end;
1646    
1647     //CoolBar
1648     ini.EraseSection('MainCoolBar');
1649     for i := 0 to MAIN_COOLBAND_COUNT - 1 do begin
1650     CoolSet := MainCoolSet[i];
1651     ini.WriteInteger('MainCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1652     ini.WriteInteger('MainCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1653     ini.WriteBool('MainCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1654     end;
1655 yoffy 1.2 ini.EraseSection('ListCoolBar');
1656 yoffy 1.14 ini.WriteInteger( 'ListCoolBar', 'SelectWidth', FSelectComboBoxWidth );
1657 hi_ 1.1 for i := 0 to LIST_COOLBAND_COUNT - 1 do begin
1658     CoolSet := ListCoolSet[i];
1659     ini.WriteInteger('ListCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1660     ini.WriteInteger('ListCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1661     ini.WriteBool('ListCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1662     end;
1663     ini.EraseSection('BrowserCoolBar');
1664     for i := 0 to BROWSER_COOLBAND_COUNT - 1 do begin
1665     CoolSet := BrowserCoolSet[i];
1666     ini.WriteInteger('BrowserCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1667     ini.WriteInteger('BrowserCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1668     ini.WriteBool('BrowserCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1669     end;
1670 h677 1.3
1671 h677 1.9 //???若????
1672     ini.WriteBool('Abon','Deleterlo',FAbonDeleterlo);
1673     ini.WriteBool('Abon','Replaceul',FAbonReplaceul);
1674 h677 1.93 ini.WriteBool('Abon','Popup',FPopUpAbon);
1675 h677 1.9 ini.WriteBool('Abon','ShowNGLines',FShowNGLinesNum);
1676     ini.WriteBool('Abon','AddResAnchor',FAddResAnchor);
1677 h677 1.93 ini.WriteBool('Abon','DeleteSyria',FDeleteSyria);
1678     ini.WriteBool('Abon','IgnoreKana', FIgnoreKana);
1679 yoffy 1.40
1680     // ?????c??/span>
1681     ini.WriteBool( 'Editor', 'SpaceToNBSP', FSpaceToNBSP );
1682 yoffy 1.41 ini.WriteBool( 'Editor', 'AmpToCharRef', FAmpToCharRef );
1683 hi_ 1.1
1684 genyakun 1.71 //?帥??????篆?絖?
1685 h677 1.67 ini.WriteBool('TabAuto', 'TabAutoLoadSave', FTabAutoLoadSave);
1686 genyakun 1.71 //荅括完荐??
1687     ini.WriteInteger('OptionDialog', 'KuroutTabIndex', FKuroutSettingTabIndex);
1688 h677 1.67
1689 genyakun 1.71 //???<????茯?罅???罘???/span>
1690 genyakun 1.77 ini.WriteBool('2chSupport', 'Support', F2chSupport);
1691 genyakun 1.52
1692 yoffy 1.75 // ?????鴻?吾?с?鴻???c?若??篏睡??????????????
1693     ini.WriteBool( 'Guesture', 'Enabled', FGestureEnabled );
1694    
1695 h677 1.81 //FusianaTrap
1696     ini.WriteBool('Trap', 'LocalTrap', FLocalTrapAtt);
1697     ini.WriteBool('Trap', 'RemoteTrap', FRemoteTrapAtt);
1698     ini.WriteInteger('HTTP', 'ReadTimeOut', FReadTimeOut);
1699 yoffy 1.83
1700     // 篏睡???????鴻???????c????/span>
1701     ini.WriteInteger( 'Abon', 'SpamFilterAlgorithm', Ord( FSpamFilterAlgorithm ) );
1702 genyakun 1.87 ini.WriteBool('Function', 'Mute', FMute);
1703     ini.WriteBool('ThreadList', 'UseUndecided', FUseUndecided);
1704    
1705     //茯?荐主?????若??D?祉???鴻???若??
1706     ini.WriteString('Be', 'UserID', FBeUserID);
1707 h677 1.90 ini.WriteString('Be', 'Code', Encrypt(FBeCode));
1708 genyakun 1.87 ini.WriteBool('Be', 'AutoLogin', FBeAutoLogin);
1709    
1710 h677 1.91 //絮ユ?????紊т?絖?篁倶??/span>
1711     ini.WriteInteger('Recode', 'Max', FMaxRecordCount);
1712    
1713 h677 1.81 ini.UpdateFile;
1714 hi_ 1.1 finally
1715     ini.Free;
1716     end;
1717     end;
1718    
1719     //荐?????<?ゃ???絖?(name & mail)
1720     procedure TSetting.WriteNameMailSettingFile();
1721     var
1722     i: Integer;
1723     ini: TMemIniFile;
1724     begin
1725     ini := TMemIniFile.Create(GetFileName());
1726     try
1727     ini.EraseSection('Name');
1728     ini.EraseSection('Mail');
1729     ini.EraseSection('SelectText');
1730     for i := 0 to FNameList.Count - 1 do begin
1731     ini.WriteString('Name', Format('%.2d', [i + 1]), FNameList[i]);
1732     if i >= 39 then
1733     Break;
1734     end;
1735     for i := 0 to FMailList.Count - 1 do begin
1736     ini.WriteString('Mail', Format('%.2d', [i + 1]), FMailList[i]);
1737     if i >= 39 then
1738     Break;
1739     end;
1740     for i := 0 to FSelectTextList.Count - 1 do begin
1741     ini.WriteString('SelectText', Format('%.2d', [i + 1]), FSelectTextList[i]);
1742     if i >= 39 then
1743     Break;
1744     end;
1745     ini.UpdateFile;
1746     finally
1747     ini.Free;
1748     end;
1749     end;
1750    
1751     procedure TSetting.WriteFolderSettingFile();
1752     var
1753     ini: TMemIniFile;
1754     begin
1755     ini := TMemIniFile.Create(GetFileName());
1756     try
1757     if ExtractFilePath(Application.ExeName) + 'Log' = NewLogFolder then
1758     ini.DeleteKey('Folder', 'LogFolder')
1759     else
1760     ini.WriteString('Folder', 'LogFolder', NewLogFolder);
1761     ini.UpdateFile;
1762     finally
1763     ini.Free;
1764     end;
1765     end;
1766 h677 1.11 //?炊?贋?亥??oardURL??篆?絖?
1767     procedure TSetting.WriteBoardURLSettingFile();
1768     var
1769     ini: TMemIniFile;
1770 yoffy 1.14 i : Integer;
1771     oldcount : Integer;
1772 h677 1.11 begin
1773     ini := TMemIniFile.Create(GetBoardURLFileName());
1774     try
1775 yoffy 1.14 oldcount := ini.ReadInteger('URL','count',FBoardURLs.Count);
1776     ini.WriteInteger('URL','count',FBoardURLs.Count);
1777     ini.WriteInteger('URL','selected',BoardURLSelected);
1778     for i := 0 to FBoardURLs.Count -1 do begin
1779     ini.WriteString('URL',IntToStr(i+1),FBoardURLs.Strings[i]);
1780     end;
1781     if oldcount > FBoardURLs.Count then begin
1782     for i := FBoardURLs.Count to oldcount do begin
1783     ini.DeleteKey('URL',IntToStr(i+1));
1784     end;
1785     end;
1786 h677 1.11 ini.UpdateFile;
1787     finally
1788     ini.Free;
1789     end;
1790     end;
1791 hi_ 1.1
1792 yoffy 1.28 {$R-}
1793 hi_ 1.1 //???鴻????????????????/span>
1794     function TSetting.GetBBSColumnWidth(index: Integer): Integer;
1795     begin
1796     Result := IfThen(index in [0..Length(FBBSColumnWidth) - 1], FBBSColumnWidth[index], 0);
1797     end;
1798    
1799     function TSetting.GetCategoryColumnWidth(index: Integer): Integer;
1800     begin
1801     Result := IfThen(index in [0..Length(FCategoryColumnWidth) - 1], FCategoryColumnWidth[index], 0);
1802     end;
1803    
1804     function TSetting.GetBoardColumnWidth(index: Integer): Integer;
1805     begin
1806     Result := IfThen(index in [0..Length(FBoardColumnWidth) - 1], FBoardColumnWidth[index], 0);
1807     end;
1808 yoffy 1.28 {$IFDEF DEBUG}
1809     {$R+}
1810     {$ENDIF}
1811 hi_ 1.1
1812     procedure TSetting.SetBBSColumnWidth(index: Integer; value: Integer);
1813     begin
1814     if index in [0..Length(FBBSColumnWidth) - 1] then
1815     FBBSColumnWidth[index] := value;
1816     end;
1817    
1818     procedure TSetting.SetCategoryColumnWidth(index: Integer; value: Integer);
1819     begin
1820     if index in [0..Length(FCategoryColumnWidth) - 1] then
1821     FCategoryColumnWidth[index] := value;
1822     end;
1823    
1824     procedure TSetting.SetBoardColumnWidth(index: Integer; value: Integer);
1825     begin
1826     if index in [0..Length(FBoardColumnWidth) - 1] then
1827     FBoardColumnWidth[index] := value;
1828     end;
1829    
1830     function TSetting.GetSoundCount: Integer;
1831     begin
1832     Result := Length(SOUND_NAME);
1833     end;
1834    
1835     function TSetting.GetSoundName(Index: Integer): string;
1836     begin
1837     if (Index < GetSoundCount) and (Index >= 0) then
1838     Result := SOUND_NAME[Index].Name
1839     else
1840     Result := '';
1841     end;
1842    
1843     function TSetting.GetSoundViewName(Index: Integer): string;
1844     begin
1845     if (Index < GetSoundCount) and (Index >= 0) then
1846     Result := SOUND_NAME[Index].ViewName
1847     else
1848     Result := '';
1849     end;
1850    
1851     function TSetting.GetSoundFileName(Index: Integer): string;
1852     begin
1853     if (Index < GetSoundCount) and (Index >= 0) then
1854     Result := SOUND_NAME[Index].FileName
1855     else
1856     Result := '';
1857     end;
1858    
1859     procedure TSetting.SetSoundFileName(Index: Integer; value: string);
1860     begin
1861     if (Index < GetSoundCount) and (Index >= 0) then
1862     SOUND_NAME[Index].FileName := value;
1863     end;
1864    
1865     function TSetting.FindSoundFileName(Name: string): string;
1866     var
1867     i: Integer;
1868     begin
1869     for i := 0 to GetSoundCount - 1 do begin
1870     if SoundName[i] = Name then begin
1871     Result := SoundFileName[i];
1872     Exit;
1873     end;
1874     end;
1875     Result := '';
1876     end;
1877    
1878     function TSetting.Encrypt(s: string): string;
1879     var
1880     cryptObj: THogeCryptAuto;
1881     inputStream, outputStream: TStringStream;
1882     begin
1883     inputStream := TStringStream.Create(s);
1884     outputStream := TStringStream.Create('');
1885     cryptObj := THogeCryptAuto.Create;
1886     try
1887     // ???桁??
1888     cryptObj.Encrypt(inputStream, GIKO_ENCRYPT_TEXT, outputStream);
1889    
1890     // ???ゃ?????????у?荀?????????????鴻???????
1891     Result := HogeBase64Encode(outputStream.DataString);
1892     finally
1893     cryptObj.Free;
1894     outputStream.Free;
1895     inputStream.Free;
1896     end;
1897     end;
1898    
1899     function TSetting.Decrypt(s: string): string;
1900     var
1901     cryptObj: THogeCryptAuto;
1902     inputStream, outputStream: TStringStream;
1903     begin
1904     try
1905     inputStream := TStringStream.Create(HogeBase64Decode(s));
1906     except
1907     Result := '';
1908     Exit;
1909     end;
1910     outputStream := TStringStream.Create('');
1911     cryptObj := THogeCryptAuto.Create;
1912     try
1913     // 緇??/span>
1914     cryptObj.Decrypt(inputStream, GIKO_ENCRYPT_TEXT, outputStream);
1915     Result := outputStream.DataString;
1916     finally
1917     cryptObj.Free;
1918     outputStream.Free;
1919     inputStream.Free;
1920     end;
1921     end;
1922    
1923     function TSetting.GetMainCoolSet(Index: Integer): TCoolSet;
1924     begin
1925     if Index in [0..MAIN_COOLBAND_COUNT - 1] then
1926     Result := FMainCoolBar[Index]
1927     else begin
1928     Result.FCoolID := -1;
1929     Result.FCoolWidth := -1;
1930     Result.FCoolBreak := False;
1931     end;
1932     end;
1933    
1934     function TSetting.GetBoardCoolSet(Index: Integer): TCoolSet;
1935     begin
1936     if Index in [0..LIST_COOLBAND_COUNT - 1] then
1937     Result := FListCoolBar[Index]
1938     else begin
1939     Result.FCoolID := -1;
1940     Result.FCoolWidth := -1;
1941     Result.FCoolBreak := False;
1942     end;
1943     end;
1944    
1945     function TSetting.GetBrowserCoolSet(Index: Integer): TCoolSet;
1946     begin
1947     if Index in [0..BROWSER_COOLBAND_COUNT - 1] then
1948     Result := FBrowserCoolBar[Index]
1949     else begin
1950     Result.FCoolID := -1;
1951     Result.FCoolWidth := -1;
1952     Result.FCoolBreak := False;
1953     end;
1954     end;
1955    
1956     procedure TSetting.SetMainCoolSet(Index: Integer; CoolSet: TCoolSet);
1957     begin
1958     if Index in [0..MAIN_COOLBAND_COUNT - 1] then
1959     FMainCoolBar[Index] := CoolSet;
1960     end;
1961    
1962     procedure TSetting.SetBoardCoolSet(Index: Integer; CoolSet: TCoolSet);
1963     begin
1964     if Index in [0..LIST_COOLBAND_COUNT - 1] then
1965     FListCoolBar[Index] := CoolSet;
1966     end;
1967    
1968     procedure TSetting.SetBrowserCoolSet(Index: Integer; CoolSet: TCoolSet);
1969     begin
1970     if Index in [0..BROWSER_COOLBAND_COUNT - 1] then
1971     FBrowserCoolBar[Index] := CoolSet;
1972     end;
1973    
1974 h677 1.11 //url.ini????????????????????
1975     procedure TSetting.MakeURLIniFile();
1976     var
1977     ini: TMemIniFile;
1978     begin
1979     ini := TMemIniFile.Create(GetBoardURLFileName());
1980     try
1981 yoffy 1.14 ini.WriteInteger('URL','count',2);
1982     ini.WriteInteger('URL','selected',2);
1983     ini.WriteString('URL','1',DEFAULT_2CH_BOARD_URL1);
1984     ini.WriteString('URL','2',DEFAULT_2CH_BOARD_URL2);
1985 h677 1.11 ini.UpdateFile;
1986     finally
1987     ini.Free;
1988     end;
1989 yoffy 1.14 end;
1990    
1991     (*************************************************************************
1992     *???若?????<?ゃ??????緇?鐚????刻????<?ゃ????鐚?
1993     *************************************************************************)
1994     function TSetting.GetBoardFileName: string;
1995     begin
1996     Result := GetAppDir + CONFIG_DIR_NAME + '\' + BOARD_FILE_NAME;
1997     end;
1998    
1999     (*************************************************************************
2000     *???若?????<?ゃ??????緇?鐚????刻????<?ゃ????鐚?
2001     *************************************************************************)
2002     function TSetting.GetCustomBoardFileName: string;
2003     begin
2004     Result := GetAppDir + CONFIG_DIR_NAME + '\' + CUSTOMBOARD_FILE_NAME;
2005 yoffy 1.18 end;
2006    
2007     (*************************************************************************
2008     *???若?????c??????????
2009     *************************************************************************)
2010     function TSetting.GetBoardDir: string;
2011     begin
2012     Result := GetAppDir + CONFIG_DIR_NAME + '\' + BOARD_DIR_NAME + '\';
2013 yoffy 1.14 end;
2014    
2015     (*************************************************************************
2016     *???潟???????????????弱????緇?
2017     *************************************************************************)
2018     function TSetting.GetHtmlTempFileName: string;
2019     begin
2020     Result := TEMP_FOLDER;
2021     end;
2022    
2023    
2024     (*************************************************************************
2025     *絎?茵????<?ゃ????????????緇?
2026     *************************************************************************)
2027     function TSetting.GetAppDir: string;
2028     begin
2029     Result := ExtractFilePath(Application.ExeName);
2030     end;
2031    
2032     (*************************************************************************
2033     *TempHtml???<?ゃ??????緇?鐚????刻????<?ゃ????鐚?
2034     *************************************************************************)
2035     function TSetting.GetTempFolder: string;
2036     begin
2037     Result := GetAppDir + TEMP_FOLDER;
2038     end;
2039    
2040     (*************************************************************************
2041     *sent.ini???<?ゃ??????緇?鐚????刻????<?ゃ????鐚?
2042     *************************************************************************)
2043     function TSetting.GetSentFileName: string;
2044     begin
2045     Result := GetAppDir + SENT_FILE_NAME;
2046     end;
2047    
2048     (*************************************************************************
2049     *outbox.ini???<?ゃ??????緇?鐚????刻????<?ゃ????鐚?
2050     *************************************************************************)
2051     function TSetting.GetOutBoxFileName: string;
2052     begin
2053     Result := GetAppDir + OUTBOX_FILE_NAME;
2054     end;
2055    
2056     (*************************************************************************
2057     *Config??????????緇?
2058     *************************************************************************)
2059     function TSetting.GetConfigDir: string;
2060     begin
2061     Result := IncludeTrailingPathDelimiter(GetAppDir + CONFIG_DIR_NAME);
2062     end;
2063    
2064     function TSetting.GetStyleSheetDir: string;
2065     begin
2066     Result := IncludeTrailingPathDelimiter(GetConfigDir + CSS_DIR_NAME);
2067     end;
2068    
2069     function TSetting.GetSkinDir: string;
2070     begin
2071     Result := IncludeTrailingPathDelimiter(GetConfigDir + SKIN_DIR_NAME);
2072     end;
2073    
2074     function TSetting.GetSkinHeaderFileName: string;
2075     begin
2076     Result := CSSFileName + SKIN_HEADER_FILE_NAME;
2077     end;
2078    
2079     function TSetting.GetSkinFooterFileName: string;
2080     begin
2081     Result := CSSFileName + SKIN_FOOTER_FILE_NAME;
2082     end;
2083    
2084     function TSetting.GetSkinNewResFileName: string;
2085     begin
2086     Result := CSSFileName + SKIN_NEWRES_FILE_NAME;
2087     end;
2088    
2089     function TSetting.GetSkinResFileName: string;
2090     begin
2091     Result := CSSFileName + SKIN_RES_FILE_NAME;
2092     end;
2093    
2094     function TSetting.GetSkinBookmarkFileName: string;
2095     begin
2096     Result := CSSFileName + SKIN_BOOKMARK_FILE_NAME;
2097     end;
2098    
2099     function TSetting.GetSkinNewmarkFileName: string;
2100     begin
2101     Result := CSSFileName + SKIN_NEWMARK_FILE_NAME;
2102 yoffy 1.15 end;
2103    
2104     function TSetting.GetNGWordsDir: string;
2105     begin
2106 yoffy 1.16 Result := IncludeTrailingPathDelimiter(GetConfigDir + NGWORDs_DIR_NAME);
2107     end;
2108    
2109     function TSetting.GetBoardPlugInDir: string;
2110     begin
2111     Result := IncludeTrailingPathDelimiter(GetConfigDir + BOARD_PLUGIN_DIR_NAME);
2112 yoffy 1.14 end;
2113    
2114     procedure TSetting.SetUseCSS( value: Boolean );
2115     begin
2116    
2117     FUseCSS := value;
2118    
2119     FUseSkin :=
2120     UseCSS and
2121     (Pos( GetSkinDir, CSSFileName ) > 0) and
2122     FileExists( GetSkinHeaderFileName );
2123    
2124     end;
2125    
2126     procedure TSetting.SetCSSFileName( fileName: string );
2127     begin
2128    
2129     FCSSFileName := fileName;
2130    
2131     FUseSkin :=
2132     UseCSS and
2133     (Pos( GetSkinDir, CSSFileName ) > 0) and
2134     FileExists( GetSkinHeaderFileName );
2135    
2136 h677 1.11 end;
2137 hi_ 1.1
2138 h677 1.31 function TSetting.GetSambaFileName: string;
2139     begin
2140     Result := GetAppDir + SAMBATIME_FILE_NAME;
2141     end;
2142 h677 1.35 //?炊?贋?育?ゅ??????眼?????鴻??篆?絖????<?ゃ??/span>
2143     function TSetting.GetIgnoreFileName: string;
2144     begin
2145     Result := GetConfigDir + IGNORE_FILE_NAME;
2146     end;
2147    
2148 yoffy 1.74 //! ?????鴻?吾?с?鴻???c?若???<?ゃ??????/span>
2149     function TSetting.GetGestureFileName: string;
2150     begin
2151     Result := GetConfigDir + GESTURE_FILE_NAME;
2152     end;
2153    
2154 yoffy 1.79 //! ?鴻???????c???水?膺?絮ユ????<?ゃ??????/span>
2155     function TSetting.GetSpamFilterFileName: string;
2156     begin
2157     Result := GetConfigDir + SPAMFILTER_FILE_NAME;
2158     end;
2159    
2160 h677 1.86 function TSetting.GetLanguageFileName: string;
2161     begin
2162     Result := GetConfigDir + LANGUAGE_FILE_NAME;
2163     end;
2164     //Messagelist???阪?????????<???祉?若?吾??┃絎?
2165     procedure TSetting.SetMessages;
2166     var
2167     i :Integer;
2168     ini : TMemIniFile;
2169     begin
2170