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.89 - (hide annotations) (download) (as text)
Wed Mar 30 14:09:02 2005 UTC (19 years ago) by h677
Branch: MAIN
CVS Tags: v1_50_0_573
Changes since 1.88: +4 -4 lines
File MIME type: text/x-pascal
BepasswordをBeCodeに変更

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