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