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.101 - (hide annotations) (download) (as text)
Tue Dec 20 15:20:11 2005 UTC (18 years, 4 months ago) by h677
Branch: MAIN
CVS Tags: v1_51_1_639, b51, v1_51_0_634, v1_51_0_635, v1_51_0_636, v1_51_0_637, v1_51_0_633, v1_51_0_638, v1_51_1_640, root-of-Bb51, v1_51_1_641
Branch point for: Bb51
Changes since 1.100: +8 -1 lines
File MIME type: text/x-pascal
スレッド一覧DL後のソートをオプション化

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