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.137 - (hide annotations) (download) (as text)
Sun Feb 15 03:42:10 2009 UTC (15 years, 2 months ago) by h677
Branch: MAIN
CVS Tags: v1_60_0_781, v1_60_0_782, v1_60_0_784, v1_60_0_786, v1_60_0_783
Changes since 1.136: +6 -0 lines
File MIME type: text/x-pascal
最新100レス表示の表示数を拡張できるようにオプションを追加

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