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.91 - (hide annotations) (download) (as text)
Sun Jun 5 14:10:30 2005 UTC (18 years, 10 months ago) by h677
Branch: MAIN
CVS Tags: v1_50_0_590, merged-remodeling, root-of-Bb50
Branch point for: Bb50
Changes since 1.90: +13 -3 lines
File MIME type: text/x-pascal
アドレスバーのURL数の上限と履歴のスレッド数の上限を分けた

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