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.119 - (hide annotations) (download) (as text)
Sun Mar 11 12:03:30 2007 UTC (17 years, 1 month ago) by h677
Branch: MAIN
CVS Tags: v1_55_0_697, v1_55_1_697
Branch point for: Bb55, bListSU
Changes since 1.118: +1 -1 lines
File MIME type: text/x-pascal
タブの追加位置に、現在タブの右/左を追加

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