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.110 - (hide annotations) (download) (as text)
Sun Aug 6 03:17:02 2006 UTC (17 years, 8 months ago) by h677
Branch: MAIN
Changes since 1.109: +22 -2 lines
File MIME type: text/x-pascal
リンク移動履歴の保持数を設定できるように修正

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