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.136 - (hide annotations) (download) (as text)
Sun Jan 25 09:37:24 2009 UTC (15 years, 2 months ago) by h677
Branch: MAIN
CVS Tags: v1_59_0_778, v1_59_1_778, v1_60_0_780, v1_60_0_779, v1_59_2_785
Branch point for: Bb59
Changes since 1.135: +9 -0 lines
File MIME type: text/x-pascal
ギコナビ更新で、利用したインストーラのexeを削除する処理を追加。
(インストーラはUpdate完了時にiniファイルに自分のパスを書き込む処理を追加している。)

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