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.141 - (hide annotations) (download) (as text)
Sat Feb 19 09:10:09 2011 UTC (13 years, 2 months ago) by h677
Branch: MAIN
CVS Tags: v1_62_0_807, v1_62_0_806
Changes since 1.140: +62 -2 lines
File MIME type: text/x-pascal
冒険の書対応

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