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.114 - (hide annotations) (download) (as text)
Sun Aug 27 16:30:02 2006 UTC (17 years, 7 months ago) by h677
Branch: MAIN
CVS Tags: v1_54_0_684, v1_54_0_683
Changes since 1.113: +7 -1 lines
File MIME type: text/x-pascal
100レス表示で、先頭表示レス数を設定できるように変更。

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