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.90 - (hide annotations) (download) (as text)
Thu Mar 31 13:01:55 2005 UTC (19 years ago) by h677
Branch: MAIN
CVS Tags: v1_50_0_577, v1_50_0_574, v_step1, v1_50_0_576, v1_50_0_578, root-of-remodel
Branch point for: remodeling
Changes since 1.89: +7 -5 lines
File MIME type: text/x-pascal
Beログインボタン&Action追加

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