OSDN Git Service

コメントテスト2
[gikonavigoeson/gikonavi.git] / Setting.pas
1 unit Setting;
2
3
4 interface
5
6 uses
7         SysUtils, Classes, Graphics, Forms, {Math, IniFiles, UCryptAuto, UBase64,}
8         ComCtrls, GestureModel, IniFiles, SkinFiles;
9
10 const
11         MAIN_COOLBAND_COUNT = 4;                //\83\81\83C\83\93CoolBand\82Ì\90\94
12         LIST_COOLBAND_COUNT = 2;                //\94ÂCoolBand\82Ì\90\94
13         BROWSER_COOLBAND_COUNT = 3;     //\83u\83\89\83E\83UCoolBand\82Ì\90\94
14
15
16 type
17         TGikoTabPosition = (gtpTop, gtpBottom);                                                         // \83^\83u\88Ê\92u
18         TGikoTabAppend = (gtaFirst, gtaLast, gtaRight, gtaLeft);                                                                        // \83^\83u\92Ç\89Á\88Ê\92u
19         TGikoTabStyle = (gtsTab, gtsButton, gtsFlat);                                   // \83^\83u\83X\83^\83C\83\8b
20         TGikoListOrientation = (gloHorizontal, gloVertical);    // \83\8a\83X\83g\90\82\92¼\81E\90\85\95½
21         TGikoListState = (glsMax, glsNormal, glsMin);                                   // \83\8a\83X\83g\83T\83C\83Y\8fó\91Ô
22                                                                                                                                                                                                                                 // \83|\83b\83v\83A\83b\83v\95\\8e¦\88Ê\92u
23         TGikoPopupPosition = (gppLeftTop = 0, gppTop, gppRightTop,
24                                                                                                 gppLeft, gppCenter, gppRight,
25                                                                                                 gppLeftBottom, gppBottom, gppRightBottom);
26                                                                                                                                                                                                                                 //\83v\83\8c\83r\83\85\81[\83T\83C\83Y
27         TGikoPreviewSize = (gpsXLarge, gpsLarge, gpsMedium, gpsSmall, gpsXSmall);
28         TGikoBrowserAutoMaximize        = (gbmNone, gbmClick, gbmDoubleClick);
29                                                                                                                                                                                                                                 // \83u\83\89\83E\83U\82ð\8e©\93®\93I\82É\8dÅ\91å\89»\82·\82é\8fð\8c\8f
30         /// \83\8c\83X\95\\8e¦\94Í\88Í\81B10 \81` 65535 \82Í\8dÅ\90V n \83\8c\83X\88µ\82¢\81B
31         /// \8f«\97\88 201-300 \82Ì\82æ\82¤\82È\94Í\88Í\82ð\8e\9d\82½\82¹\82é\89Â\94\\90«\82à\8dl\82¦\82Ä\8fã\88Ê 2 byte \82Í\97\\96ñ\81B
32         TGikoResRange = (grrAll, grrSelect, grrKoko, grrNew);
33
34         /// \83X\83\8c\83b\83h\88ê\97\97\95\\8e¦\94Í\88Í
35         TGikoThreadRange = (gtrAll, gtrSelect, gtrLog, gtrNew, gtrLive, gtrArch);
36
37         //! \83X\83p\83\80\83t\83B\83\8b\83^\81[\83A\83\8b\83S\83\8a\83Y\83\80
38         TGikoSpamFilterAlgorithm = (
39                 gsfaNone, gsfaPaulGraham, gsfaGaryRobinson, gsfaGaryRobinsonFisher);
40
41
42         /// \83J\83e\83S\83\8a\83\8a\83X\83g\82Ì\83J\83\89\83\80 ID
43         type    TGikoBBSColumnID = (gbbscTitle);
44         /// \83J\83e\83S\83\8a\83\8a\83X\83g\82Ì\83J\83\89\83\80\96¼
45         const   GikoBBSColumnCaption : array[0..0] of string =
46                 ( '\83J\83e\83S\83\8a\96¼' );
47         /// \83J\83e\83S\83\8a\83\8a\83X\83g\83J\83\89\83\80\94z\97ñ
48         type    TGikoBBSColumnList = class( TList )
49         private
50                 function GetItem( index : integer ) : TGikoBBSColumnID;
51                 procedure SetItem( index : integer; value : TGikoBBSColumnID);
52         public
53                 constructor Create;
54                 destructor Destroy;     override;
55                 function Add( value : TGikoBBSColumnID ) : Integer;
56                 property Items[index : integer]: TGikoBBSColumnID read GetItem write SetItem; default;
57         end;
58         /// \94Â\83\8a\83X\83g\82Ì\83J\83\89\83\80 ID
59         type    TGikoCategoryColumnID = (gccTitle, gccRoundName, gccLastModified);
60         /// \94Â\83\8a\83X\83g\82Ì\83J\83\89\83\80\96¼
61         const GikoCategoryColumnCaption : array[0..2] of string =
62                 ( '\94Â\96¼', '\8f\84\89ñ\97\\96ñ', '\8eæ\93¾\93ú\8e\9e' );
63         /// \94Â\83\8a\83X\83g\83J\83\89\83\80\94z\97ñ
64         type    TGikoCategoryColumnList = class( TList )
65         private
66                 function GetItem( index : integer ) : TGikoCategoryColumnID;
67                 procedure SetItem( index : integer; value : TGikoCategoryColumnID);
68         public
69                 constructor Create;
70                 destructor Destroy;     override;
71                 function Add( value : TGikoCategoryColumnID ) : Integer;
72                 property Items[index : integer]: TGikoCategoryColumnID read GetItem write SetItem; default;
73         end;
74         /// \83X\83\8c\83\8a\83X\83g\82Ì\83J\83\89\83\80 ID
75         type    TGikoBoardColumnID = (gbcTitle, gbcAllCount, gbcLocalCount, gbcNonAcqCount,
76                 gbcNewCount, gbcUnReadCount, gbcRoundName, gbcRoundDate, gbcCreated, gbcLastModified, gbcVigor );{gbcLastModified,}
77         /// \83X\83\8c\83\8a\83X\83g\82Ì\83J\83\89\83\80\96¼
78         const   GikoBoardColumnCaption : array[0..10] of string =
79                 ( '\83X\83\8c\83b\83h\96¼', '\83J\83E\83\93\83g', '\8eæ\93¾', '\96¢\8eæ\93¾', '\90V\92\85',
80                 '\96¢\93Ç', '\8f\84\89ñ\97\\96ñ', '\8eæ\93¾\93ú\8e\9e', '\83X\83\8c\8dì\90¬\93ú\8e\9e', '\8dÅ\8fI\8dX\90V\93ú\8e\9e', '\90¨\82¢' );
81         const GikoBoardColumnAlignment : array[0..10] of TAlignment = (
82                 taLeftJustify, taRightJustify, taRightJustify, taRightJustify,
83                 taRightJustify, taRightJustify, taLeftJustify, taLeftJustify,
84                 taLeftJustify, taLeftJustify, taRightJustify);
85         /// \83X\83\8c\83\8a\83X\83g\83J\83\89\83\80\94z\97ñ
86         type    TGikoBoardColumnList = class( TList )
87         private
88                 function GetItem( index : integer ) : TGikoBoardColumnID;
89                 procedure SetItem( index : integer; value : TGikoBoardColumnID);
90         public
91                 constructor Create;
92                 destructor Destroy;     override;
93                 function Add( value : TGikoBoardColumnID ) : Integer;
94                 property Items[index : integer]: TGikoBoardColumnID read GetItem write SetItem; default;
95         end;
96
97 type
98         //CoolBar\90Ý\92è\83\8c\83R\81[\83h
99         TCoolSet = record
100                 FCoolID: Integer;
101                 FCoolWidth: Integer;
102                 FCoolBreak: Boolean;
103         end;
104
105         TSetting = class(TObject)
106         private
107                 //\8eó\90M\83o\83b\83t\83@\83T\83C\83Y
108                 FRecvBufferSize: Integer;
109                 //HTTP1.1\8eg\97p
110                 FProtocol: Boolean;
111                 //\83v\83\8d\83L\83V\90Ú\91±HTTP1.1\8eg\97p
112                 FProxyProtocol: Boolean;
113
114                 //\83v\83\8d\83L\83V\81i\93Ç\8d\9e\97p\81j
115                 FReadProxy: Boolean;
116                 FReadProxyAddress: string;
117                 FReadProxyPort: Integer;
118                 FReadProxyUserID: string;
119                 FReadProxyPassword: string;
120
121                 //\83v\83\8d\83L\83V\81i\8f\91\8d\9e\97p\81j
122                 FWriteProxy: Boolean;
123                 FWriteProxyAddress: string;
124                 FWriteProxyPort: Integer;
125                 FWriteProxyUserID: string;
126                 FWriteProxyPassword: string;
127
128                 //\83L\83\83\83r\83l\83b\83g
129                 FCabinetFontName: string;
130                 FCabinetFontSize: Integer;
131                 FCabinetFontBold: Boolean;
132                 FCabinetFontItalic: Boolean;
133                 FCabinetFontColor: TColor;
134                 FCabinetBackColor: TColor;
135
136                 //\83\8a\83X\83g
137                 FListFontName: string;
138                 FListFontSize: Integer;
139                 FListFontBold: Boolean;
140                 FListFontItalic: Boolean;
141                 FListFontColor: TColor;
142                 FListBackColor: TColor;
143
144                 //\83u\83\89\83E\83U
145                 FBrowserFontName: string;                       // ''...default
146                 FBrowserFontSize: Integer;              // 0...default
147                 FBrowserFontBold: Integer;              // 0...default, -1...False, 1...True
148                 FBrowserFontItalic: Integer;    // \8fã\82É\93¯\82
149                 FBrowserFontColor: Integer;             // -1...default
150                 FBrowserBackColor: Integer;             // \8fã\82É\93¯\82
151
152                 //\83G\83f\83B\83^
153                 FEditorFontName: string;
154                 FEditorFontSize: Integer;
155                 FEditorFontBold: Boolean;
156                 FEditorFontItalic: Boolean;
157                 FEditorFontColor: TColor;
158                 FEditorBackColor: TColor;
159
160                 //\83^\83u\83t\83H\83\93\83g
161                 FBrowserTabFontName: string;
162                 FBrowserTabFontSize: Integer;
163                 FBrowserTabFontBold: Boolean;
164                 FBrowserTabFontItalic: Boolean;
165
166                 //\83q\83\93\83g\83E\83B\83\93\83h\83E
167                 FHintFontName: string;
168                 FHintFontSize: Integer;
169                 //FHintFontBold: Boolean;
170                 //FHintFontItalic: Boolean;
171                 FHintFontColor: TColor;
172                 FHintBackColor: TColor;
173
174                 //\83E\83B\83\93\83h\83E\83T\83C\83Y
175                 FWindowTop: Integer;
176                 FWindowLeft: Integer;
177                 FWindowHeight: Integer;
178                 FWindowWidth: Integer;
179                 FWindowMax: Boolean;
180                 //\83\8a\83X\83g\83r\83\85\81[\83X\83^\83C\83\8b
181                 FListStyle: TViewStyle;
182
183                 //\83c\81[\83\8b\83o\81[\95\\8e¦
184                 FStdToolBarVisible: Boolean;
185                 FAddressBarVisible: Boolean;
186                 FLinkBarVisible: Boolean;
187                 FListToolBarVisible: Boolean;
188                 FListNameBarVisible: Boolean;
189                 FBrowserToolBarVisible: Boolean;
190                 FBrowserNameBarVisible: Boolean;
191
192                 //\83u\83\89\83E\83U\83^\83u
193                 FBrowserTabVisible: Boolean;
194                 FBrowserTabPosition: TGikoTabPosition;
195                 FBrowserTabAppend: TGikoTabAppend;
196                 FBrowserTabStyle: TGikoTabStyle;
197
198                 //\83\81\83b\83Z\81[\83W\83o\81[
199                 FMessageBarVisible: Boolean;
200                 FMessegeBarHeight: Integer;
201
202                 //\83X\83e\81[\83^\83X\83o\81[
203                 FStatusBarVisible: Boolean;
204
205                 //\83L\83\83\83r\83l\83b\83g\89Â\8e\8b\81E\83T\83C\83Y
206                 FCabinetVisible: Boolean;
207                 FCabinetWidth: Integer;
208
209                 //\83\8a\83X\83g\81E\83u\83\89\83E\83U\83T\83C\83Y
210                 FListOrientation: TGikoListOrientation;
211                 FListHeight: Integer;
212                 FListHeightState: TGikoListState;
213                 FListWidth: Integer;
214                 FListWidthState: TGikoListState;
215 //              FListHeightMax: Boolean;
216 //              FListWidthMax: Boolean;
217
218                 //\91\97\90M\97p\96¼\91O\81E\83\81\81[\83\8b
219                 FNameList: TStringList;
220                 FMailList: TStringList;
221
222                 //\83G\83f\83B\83^\81[\83E\83B\83\93\83h\83E\83T\83C\83Y
223                 FEditWindowTop: Integer;
224                 FEditWindowLeft: Integer;
225                 FEditWindowHeight: Integer;
226                 FEditWindowWidth: Integer;
227                 FEditWindowMax: Boolean;
228                 FEditWindowStay: Boolean;
229                 FEditWindowTranslucent: Boolean;
230
231                 //\83\8a\83X\83g\94Ô\8d\86\95\\8e¦
232                 FListViewNo: Boolean;
233                 //CSS\95\\8e¦
234                 FUseCSS: Boolean;
235                 // \83X\83L\83\93\95\\8e¦(\88ê\8e\9e\93I\82È\82à\82Ì\82Å ini \82É\95Û\91\82Í\82³\82ê\82È\82¢)
236                 FUseSkin: Boolean;
237                 //\82©\82¿\82ã\81`\82µ\82á\97p\82ÌSkin\82ð\97\98\97p\82·\82é\82©
238                 FUseKatjushaType : Boolean;
239                 //mail\97\93\95\\8e¦
240                 FShowMail: Boolean;
241                 /// \83\8c\83X\95\\8e¦\94Í\88Í
242                 FResRange                       : Longint;
243                 /// \8bN\93®\8e\9e\83\8c\83X\95\\8e¦\94Í\88Í\82Ì\8cÅ\92è
244                 FResRangeHold   : Boolean;
245                 /// \83X\83\8c\83b\83h\88ê\97\97\95\\8e¦\94Í\88Í
246                 FThreadRange    : TGikoThreadRange;
247                 //\94ñ\83A\83N\83e\83B\83u\8e\9e\83\8c\83X\83|\83b\83v\83A\83b\83v\95\\8e¦
248                 FUnActivePopup: Boolean;
249                 //\83\8c\83X\83|\83b\83v\83A\83b\83v\83w\83b\83_\81[\83{\81[\83\8b\83h
250                 FResPopupHeaderBold: Boolean;
251
252                 //\83\8d\83O\83t\83H\83\8b\83_
253                 FLogFolder: string;
254         FLogFolderP: string; //\83p\83X\96¼\82ª\83p\83X\8bæ\90Ø\82è\8bL\8d\86\82Å\8fI\82í\82Á\82Ä\82¢\82é\81B
255                 FNewLogFolder: string;
256
257                 //\83\8a\83X\83g\83J\83\89\83\80\83w\83b\83_\81[\83T\83C\83Y
258                 FBBSColumnWidth: array[0..0] of Integer;
259                 FCategoryColumnWidth: array[0..2] of Integer;
260                 FBoardColumnWidth: array[0..10] of Integer;
261
262                 /// \83J\83e\83S\83\8a\83\8a\83X\83g\83J\83\89\83\80\8f\87\8f\98
263                 FBBSColumnOrder : TGikoBBSColumnList;
264                 /// \94Â\83\8a\83X\83g\83J\83\89\83\80\8f\87\8f\98
265                 FCategoryColumnOrder : TGikoCategoryColumnList;
266                 /// \83X\83\8c\83\8a\83X\83g\83J\83\89\83\80\8f\87\8f\98
267                 FBoardColumnOrder : TGikoBoardColumnList;
268
269                 //\83\\81[\83g\8f\87
270                 FBBSSortIndex: Integer;
271                 FBBSSortOrder: Boolean;
272                 FCategorySortIndex: Integer;
273                 FCategorySortOrder: Boolean;
274                 FBoardSortIndex: Integer;
275                 FBoardSortOrder: Boolean;
276
277                 //Dat\97\8e\82¿\83X\83\8c\83\\81[\83g\8f\87
278                 FDatOchiSortIndex: Integer;
279                 FDatOchiSortOrder: Boolean;
280
281                 //\8di\8d\9e\82Ý\95\8e\9a\97ñ
282                 FSelectTextList: TStringList;
283
284                 //\94Â\88ê\97\97URL
285                 //FBoardURL2ch: string;
286                 FBoardURLs: TStringList;
287                 FBoardURLSelected: Integer;
288
289                 //\83\86\81[\83UID\81E\83p\83X\83\8f\81[\83h
290                 FUserID: string;
291                 FPassword: string;
292                 FAutoLogin: Boolean;
293                 FForcedLogin: Boolean;
294                 FDolibURL: string;
295
296                 //URL\83N\83\8a\83b\83N\8e\9e\8bN\93®\83A\83v\83\8a
297                 FURLApp: Boolean;
298                 FURLAppFile: string;
299
300                 //mailto\83N\83\8a\83b\83N\8e\9e\93®\8dì
301                 FOpenMailer: Boolean;
302
303                 //\8dí\8f\9c\8am\94F
304                 FDeleteMsg: Boolean;
305
306                 //CoolBar\81i\83\81\83C\83\93\81E\94Â\81E\83u\83\89\83E\83U\81j
307                 FMainCoolBar: array[0..MAIN_COOLBAND_COUNT - 1] of TCoolSet;
308                 FListCoolBar: array[0..LIST_COOLBAND_COUNT - 1] of TCoolSet;
309                 FBrowserCoolBar: array[0..BROWSER_COOLBAND_COUNT - 1] of TCoolSet;
310
311                 //ToolBar Wrapable
312                 FListToolBarWrapable: Boolean;
313                 FBrowserToolBarWrapable: Boolean;
314
315                 //\83|\83b\83v\83A\83b\83v\88Ê\92u
316                 FPopupPosition: TGikoPopupPosition;
317
318                 //\83A\83h\83\8c\83X\83o\81[
319                 FURLDisplay: Boolean;
320                 FAddressBarTabStop: Boolean;
321                 FLinkAddAddressBar: Boolean;
322                 FAddressHistoryCount: Integer;
323
324                 //\89æ\91\9c\83v\83\8c\83r\83\85\81[
325                 FPreviewVisible: Boolean;
326                 FPreviewSize: TGikoPreviewSize;
327                 FPreviewWait: Integer;
328
329                 // \83u\83\89\83E\83U
330                 FBrowserAutoMaximize: TGikoBrowserAutoMaximize;
331
332                 //\83X\83\8c\83b\83h\88ê\97\97\8dX\90V\83A\83C\83R\83\93\95\\8e¦
333                 FListIconVisible: Boolean;
334
335                 //\83X\83\8c\83b\83h\88ê\97\97\82ÅLog\82Ì\82 \82é\83X\83\8c\83b\83h\82Ì\82Ý\83X\83\8c\8dì\90¬\93ú\82ð\95\\8e¦\82·\82é\82©
336                 FCreationTimeLogs: Boolean;
337                 //\83X\83\8c\83b\83h\88ê\97\97\82Ì\83X\83\8c\90\90¬\93ú\82Å\96¢\97\88\82Ì\83X\83\8c\82Ì\90\90¬\93ú\82ð\95\\8e¦\82µ\82È\82¢
338                 FFutureThread: Boolean;
339
340                 //\8f\91\82«\8d\9e\82Ý\8e\9e\83}\83V\83\93\8e\9e\8aÔ\8eg\97p\90Ý\92è
341                 FUseMachineTime: Boolean;
342                 FTimeAdjustSec: Integer;
343                 FTimeAdjust: Boolean;
344
345                 //\82 \82Ú\81`\82ñ
346                 FAbonDeleterlo : Boolean; //&rlo;\82ð\8dí\82é\82©
347                 FAbonReplaceul : Boolean; //<ul>\83^\83O\82ð<br>\83^\83O\82É\92u\8a·\82·\82é\82©
348                 FPopUpAbon               : Boolean; //\83\8c\83X\83|\83b\83v\83A\83b\83v\8e\9e\82Ì\82 \82Ú\81`\82ñ\97L\8cø
349                 FShowNGLinesNum : Boolean; //\8aY\93\96\82µ\82½\82m\82f\83\8f\81[\83h\83t\83@\83C\83\8b\82Ì\8ds\90\94\82ð\95\\8e¦
350                 FAddResAnchor : Boolean; //NG\83\8c\83X\82Ö\82Ì\83\8c\83X\83A\83\93\83J\81[\82ð\92Ç\89Á\82·\82é
351                 FDeleteSyria : Boolean; //\83V\83\8a\83A\8cê\83u\83\89\83N\83\89\91Î\8dô
352                 FIgnoreKana     : Boolean;      //\91S\94¼\8ap\82Ð\82ç\83J\83i\82Ì\88á\82¢\82ð\96³\8e\8b\82·\82é\82©
353
354                 // \83X\83\8c\83b\83h\8di\8d\9e\83t\83B\81[\83\8b\83h\82Ì\95\9d
355                 FSelectComboBoxWidth : Integer;
356
357                 // \8dÅ\8cã\82É\91I\91ð\82³\82ê\82½\83I\83v\83V\83\87\83\93\83_\83C\83A\83\8d\83O\82Ì\83^\83u
358                 FOptionDialogTabIndex: Integer;
359
360                 // \8dÅ\8cã\82É\91I\91ð\82³\82ê\82½\83L\83\83\83r\83l\83b\83g
361                 FCabinetIndex: Integer;
362
363                 //\8fI\97¹\8e\9e\82É\8am\94F\83_\83C\83A\83\8d\83O\82ð\95\\8e¦\82·\82é\82©
364                 FShowDialogForEnd : Boolean;
365                 //\91S\82Ä\82Ì\83^\83u\95Â\82\82é\82Ì\82Æ\82«\82É\8am\94F\83_\83C\83A\83\8d\83O\82ð\95\\8e¦\82·\82é
366                 FShowDialogForAllTabClose: Boolean;
367                 //\8eæ\93¾\83\8c\83X\90\94\82Æ\83X\83\8c\83b\83h\82Ì\83\8c\83X\90\94\82ª\88Ù\82È\82Á\82½\82Æ\82«\82É\92Ê\8fí\94w\8ci\90F\82Æ\88á\82Á\82½\90F\82Ì\94w\8ci\90F\82ð\8eg\97p\82·\82é\82©
368                 FUseOddColorOddResNum: Boolean;
369                 FOddColor: TColor;
370                 //\83\8c\83X\90\94\91\9d\8c¸\8b­\92²\8e\9e\82É\81A\91I\91ð\83A\83C\83e\83\80\82É\83t\83H\81[\83J\83X\82ª\96³\82¢\82Æ\82«\82É\91¾\8e\9a\82É\82·\82é\82©
371                 FUnFocusedBold : Boolean;
372
373                 //Samba24\91Î\8dô\8b@\94\\82ð\8eg\82¤\82©
374                 FUseSamba: Boolean;
375
376                 //\83\8c\83X\83A\83\93\83J\81[\82ð\83N\83\8a\83b\83N\82µ\82Ä\83W\83\83\83\93\83v\82·\82é\82©
377                 FResAnchorJamp: Boolean;
378
379                 //Tab\8e©\93®\95Û\91
380                 FTabAutoLoadSave : Boolean;
381                 //\8dÅ\8cã\82É\8aJ\82¢\82Ä\82¢\82½\83X\83\8c\83b\83h\82ÌURL
382                 FLastCloseTabURL: String;
383                 //\82É\82¿\82á\82ñ\8cê\88Ä\93à\83T\83|\81[\83g\8b@\94\
384                 F2chSupport : Boolean;
385
386                 // \83G\83f\83B\83^
387                 FSpaceToNBSP    : Boolean;      ///< \94¼\8ap\83X\83y\81[\83X\81ATab \82ð &nbsp; \82É\92u\8a·
388                 FAmpToCharRef   : Boolean;      ///< '&' \82ð &amp; \82É\92u\8a·
389
390                 //\83u\83\89\83E\83U\83^\83u\94ñ\95\\8e¦\82Ì\8e\9e\82Ì\83X\83\8c\88ê\97\97\82Å\82Ì\83J\81[\83\\83\8b\83L\81[\88Ú\93®\82Ì\96³\94½\89\9e\8e\9e\8aÔ
391                 FSelectInterval : Integer;
392
393                 //KuroutSettingTab \8fÚ\8d×\90Ý\92è\83^\83u\82ÌActiveTab
394                 FKuroutSettingTabIndex: Integer;
395
396                 //! \83}\83E\83X\83W\83F\83X\83`\83\83\81[
397                 FGestures       : TGestureModel;
398                 //! \83}\83E\83X\83W\83F\83X\83`\83\83\81[\82ð\8eg\97p\82·\82é\82©\82Ç\82¤\82©
399                 FGestureEnabled : Boolean;
400         //! \83}\83E\83X\83W\83F\83X\83`\83\83\81[\82ð\83R\83\93\83e\83L\83X\83g\93\99\82Ì\8fã\82Å\96³\8cø
401         FGestureIgnoreContext : Boolean;
402                 //\83t\83V\83A\83i\83g\83\89\83b\83v\90Ý\92è
403                 FLocalTrapAtt : Boolean;
404                 FRemoteTrapAtt : Boolean;
405                 FReadTimeOut: Integer;
406
407                 //! \8eg\97p\82·\82é\83X\83p\83\80\83t\83B\83\8b\83^\81[
408                 FSpamFilterAlgorithm : TGikoSpamFilterAlgorithm;
409                 //\83~\83\85\81[\83g\82µ\82Ä\82é\82©
410                 FMute: Boolean;
411                 //\83X\83\8c\8di\8d\9e\82Ý\82Å\96¢\8am\92è\95\8e\9a\82à\97L\8cø\82É\82·\82é\82©
412                 FUseUndecided: Boolean;
413
414                                 //Be2ch
415                 //\94F\8fØ\97p\83\86\81[\83UID\81E\83p\83X\83\8f\81[\83h
416                 FBeUserID: String;
417                 FBeCode: String;
418                 FBeAutoLogin: Boolean;
419                 FBeLogin: Boolean;
420                 //\97\9a\97ð\82Ì\8dÅ\91å\95Û\91\8c\8f\90\94
421                 FMaxRecordCount : Integer;
422
423                 //\83X\83\8c\83b\83h\88ê\97\97\82ð\83_\83E\83\93\83\8d\81[\83h\8cã\82É\83\\81[\83g\82·\82é\82©
424                 FAutoSortThreadList : Boolean;
425
426                 //InputAssist\83t\83H\81[\83\80\82Ì\88Ê\92u
427                 FInputAssistFormLeft :Integer;
428                 FInputAssistFormTop :Integer;
429                 //InputAssist\83t\83H\81[\83\80\82Ì\83T\83C\83Y
430                 FInputAssistFormWidth: Integer;
431                 FInputAssistFormHeight: Integer;
432
433                 //! Cookie\82É\95t\89Á\82·\82é\8cÅ\92è\83R\81[\83h
434                 FFixedCookie: String;
435         //! \83\8a\83\93\83N\88Ú\93®\97\9a\97ð\82Ì\95Û\8e\9d\90\94
436         FMoveHistorySize : Integer;
437         //! \8dÅ\8f¬\89»\82µ\82½\82Æ\82«\82É\83^\83X\83N\83g\83\8c\83C\82É\8ai\94[\82·\82é\82©
438         FStoredTaskTray : Boolean;
439         //! \83^\83u\82Ì\88Ú\93®\82Å\83\8b\81[\83v\82ð\8b\96\89Â\82·\82é
440         FLoopBrowserTabs : Boolean;
441         //! 100\83\8c\83X\95\\8e¦\82Ì\90æ\93ª\95\\8e¦\83\8c\83X\90\94
442         FHeadResCount : Integer;
443         //! \8aÖ\98A\83L\81[\83\8f\81[\83h\92Ç\89Á\83t\83\89\83O
444         FAddKeywordLink: Boolean;
445         //! dat\92u\8a·\82ð\97L\8cø\82É\82·\82é
446         FReplaceDat: Boolean;
447         //! sent.ini\83t\83@\83C\83\8b\82Ì\83T\83C\83Y\81i\92P\88ÊMB\81j
448         FSentIniFileSize: Integer;
449         //! \83\8a\83\93\83NURL\8eæ\93¾\82Ì\91Î\8fÛ\8ag\92£\8eq
450         FExtList: String;
451         //! Skin\8aÖ\98A
452         FSkinFiles: TSkinFiles;
453         //! index\83t\83@\83C\83\8b\82ð\93Ç\82Ý\8e\9e\82Édat\82ð\8c\9f\8dõ\82·\82é
454         FCheckDatFile: Boolean;
455         //! \93¯ID\83\8c\83X\83A\83\93\83J\81[\95\\8e¦
456         FLimitResCountMessage: Boolean;
457         //! \83\8c\83X\83|\83b\83v\83A\83b\83v\95\\8e¦\88Ê\92udeltaX
458         FRespopupDeltaX: Integer;
459         //! \83\8c\83X\83|\83b\83v\83A\83b\83v\95\\8e¦\88Ê\92udeltaY
460         FRespopupDeltaY: Integer;
461         //! \83\8c\83X\83|\83b\83v\83A\83b\83v\83^\83C\83}\81[
462         FRespopupWait: Integer;
463         //! \83\81\81[\83\8b\97\93\83\8c\83X\83|\83b\83v\83A\83b\83v
464         FRespopupMailTo: Boolean;
465                 function GetMainCoolSet(Index: Integer): TCoolSet;
466                 function GetBoardCoolSet(Index: Integer): TCoolSet;
467                 function GetBrowserCoolSet(Index: Integer): TCoolSet;
468                 procedure SetMainCoolSet(Index: Integer; CoolSet: TCoolSet);
469                 procedure SetBoardCoolSet(Index: Integer; CoolSet: TCoolSet);
470                 procedure SetBrowserCoolSet(Index: Integer; CoolSet: TCoolSet);
471
472                 function GetBBSColumnWidth(index: Integer): Integer;
473                 function GetCategoryColumnWidth(index: Integer): Integer;
474                 function GetBoardColumnWidth(index: Integer): Integer;
475                 procedure SetBBSColumnWidth(index: Integer; value: Integer);
476                 procedure SetCategoryColumnWidth(index: Integer; value: Integer);
477                 procedure SetBoardColumnWidth(index: Integer; value: Integer);
478
479                 function GetSoundName(Index: Integer): string;
480                 function GetSoundViewName(Index: Integer): string;
481                 function GetSoundFileName(Index: Integer): string;
482                 procedure SetSoundFileName(Index: Integer; value: string);
483                 function Encrypt(s: string): string;
484                 function Decrypt(s: string): string;
485
486                 procedure MakeURLIniFile();
487
488                 procedure SetUseCSS( value: Boolean );
489                 procedure SetCSSFileName( fileName: string );
490         function GetCSSFileName: string;
491         //! \83v\83\8d\83L\83V\90Ý\92è\93Ç\82Ý\8d\9e\82Ý
492         procedure ReadProxySettings(memIni: TMemIniFile);
493         //! \8ae\8eí\83E\83B\83\93\83h\83E\90Ý\92è\93Ç\82Ý\8d\9e\82Ý
494         procedure ReadWindowSettings(memIni: TMemIniFile);
495         //! \93ü\97Í\97\9a\97ð\93Ç\82Ý\8d\9e\82Ý\81i\8c\9f\8dõ\81{\83\81\81[\83\8b\97\93\81{\96¼\91O\81j
496         procedure ReadInputHisotrys(memIni: TMemIniFile);
497         //! \83\8a\83X\83g\83J\83\89\83\80\95\9d\93Ç\82Ý\8d\9e\82Ý
498         procedure ReadListColumnWidth(memIni: TMemIniFile);
499         //! \83J\83e\83S\83\8a\83\8a\83X\83g\83J\83\89\83\80\8f\87\8f\98\93Ç\82Ý\8d\9e\82Ý
500         procedure ReadOrdColumn(memIni: TMemIniFile);
501         protected
502
503         public
504                 constructor Create;
505                 destructor Destroy; override;
506                 function GetFileName: string;
507                 function GetBoardURLFileName: string;
508                 procedure ReadSettingFile;
509                 procedure ReadBoardURLsFile;
510                 procedure WriteSystemSettingFile;
511                 procedure WriteWindowSettingFile;
512                 procedure WriteNameMailSettingFile;
513                 procedure WriteFolderSettingFile();
514                 procedure WriteBoardURLSettingFile;
515                 function GetSoundCount: Integer;
516                 function FindSoundFileName(Name: string): string;
517
518                 function GetBoardFileName: string;
519                 function GetCustomBoardFileName: string;
520                 function GetBoardDir: string;
521                 function GetHtmlTempFileName: string;
522                 function GetAppDir: string;
523                 function GetTempFolder: string;
524                 function GetSentFileName: string;
525                 function GetConfigDir: string;
526                 function GetSkinDir: string;
527                 function GetStyleSheetDir: string;
528                 function GetOutBoxFileName: string;
529                 function GetNGWordsDir: string;
530                 function GetBoardPlugInDir: string;
531                 function GetSambaFileName: string;
532                 function GetIgnoreFileName: string;
533                 function GetGestureFileName : string;
534                 function GetSpamFilterFileName : string;
535                 function GetLanguageFileName: string;
536                 function GetMainKeyFileName: String;
537                 function GetEditorKeyFileName: String;
538                 procedure WriteLogFolder(AVal : String);
539                 function GetInputAssistFileName : String;
540         function GetReplaceFileName: String;
541         function GetExtprevieFileName: String;
542         {
543         \brief  \83\8a\83\93\83N\97\9a\97ð\82Ì\95Û\8e\9d\83T\83C\83Y\82Ìsetter
544         \param  AVal    \90Ý\92è\82·\82é\83T\83C\83Y( >0)
545         }
546         procedure SetMoveHistorySize(AVal : Integer);
547                 //\8eó\90M\83o\83b\83t\83@\83T\83C\83Y
548                 property RecvBufferSize: Integer read FRecvBufferSize write FRecvBufferSize;
549                 //HTTP1.1\8eg\97p
550                 property Protocol: Boolean read FProtocol write FProtocol;
551                 //\83v\83\8d\83L\83V\90Ú\91±HTTP1.1\8eg\97p
552                 property ProxyProtocol: Boolean read FProxyProtocol write FProxyProtocol;
553
554                 property ReadProxy: Boolean read FReadProxy write FReadProxy;
555                 property ReadProxyAddress: string read FReadProxyAddress write FReadProxyAddress;
556                 property ReadProxyPort: Integer read FReadProxyPort write FReadProxyPort;
557                 property ReadProxyUserID: string read FReadProxyUserID write FReadProxyUserID;
558                 property ReadProxyPassword: string read FReadProxyPassword write FReadProxyPassword;
559
560                 property WriteProxy: Boolean read FWriteProxy write FWriteProxy;
561                 property WriteProxyAddress: string read FWriteProxyAddress write FWriteProxyAddress;
562                 property WriteProxyPort: Integer read FWriteProxyPort write FWriteProxyPort;
563                 property WriteProxyUserID: string read FWriteProxyUserID write FWriteProxyUserID;
564                 property WriteProxyPassword: string read FWriteProxyPassword write FWriteProxyPassword;
565
566                 property CabinetFontName: string read FCabinetFontName write FCabinetFontName;
567                 property CabinetFontSize: Integer read FCabinetFontSize write FCabinetFontSize;
568                 property CabinetFontBold: Boolean read FCabinetFontBold write FCabinetFontBold;
569                 property CabinetFontItalic: Boolean read FCabinetFontItalic write FCabinetFontItalic;
570                 property CabinetFontColor: TColor read FCabinetFontColor write FCabinetFontColor;
571                 property CabinetBackColor: TColor read FCabinetBackColor write FCabinetBackColor;
572
573                 property ListFontName: string read FListFontName write FListFontName;
574                 property ListFontSize: Integer read FListFontSize write FListFontSize;
575                 property ListFontBold: Boolean read FListFontBold write FListFontBold;
576                 property ListFontItalic: Boolean read FListFontItalic write FListFontItalic;
577                 property ListFontColor: TColor read FListFontColor write FListFontColor;
578                 property ListBackColor: TColor read FListBackColor write FListBackColor;
579
580                 property BrowserFontName: string read FBrowserFontName write FBrowserFontName;
581                 property BrowserFontSize: Integer read FBrowserFontSize write FBrowserFontSize;
582                 property BrowserFontBold: Integer read FBrowserFontBold write FBrowserFontBold;
583                 property BrowserFontItalic: Integer read FBrowserFontItalic write FBrowserFontItalic;
584                 property BrowserFontColor: Integer read FBrowserFontColor write FBrowserFontColor;
585                 property BrowserBackColor: Integer read FBrowserBackColor write FBrowserBackColor;
586
587                 property EditorFontName: string read FEditorFontName write FEditorFontName;
588                 property EditorFontSize: Integer read FEditorFontSize write FEditorFontSize;
589                 property EditorFontBold: Boolean read FEditorFontBold write FEditorFontBold;
590                 property EditorFontItalic: Boolean read FEditorFontItalic write FEditorFontItalic;
591                 property EditorFontColor: TColor read FEditorFontColor write FEditorFontColor;
592                 property EditorBackColor: TColor read FEditorBackColor write FEditorBackColor;
593
594                 property BrowserTabFontName: string read FBrowserTabFontName write FBrowserTabFontName;
595                 property BrowserTabFontSize: Integer read FBrowserTabFontSize write FBrowserTabFontSize;
596                 property BrowserTabFontBold: Boolean read FBrowserTabFontBold write FBrowserTabFontBold;
597                 property BrowserTabFontItalic: Boolean read FBrowserTabFontItalic write FBrowserTabFontItalic;
598
599                 property HintFontName: string read FHintFontName write FHintFontName;
600                 property HintFontSize: Integer read FHintFontSize write FHintFontSize;
601                 //property HintFontBold: Boolean read FHintFontBold write FHintFontBold;
602                 //property HintFontItalic: Boolean read FHintFontItalic write FHintFontItalic;
603                 property HintFontColor: TColor read FHintFontColor write FHintFontColor;
604                 property HintBackColor: TColor read FHintBackColor write FHintBackColor;
605
606                 property WindowTop: Integer read FWindowTop write FWindowTop;
607                 property WindowLeft: Integer read FWindowLeft write FWindowLeft;
608                 property WindowHeight: Integer read FWindowHeight write FWindowHeight;
609                 property WindowWidth: Integer read FWindowWidth write FWindowWidth;
610                 property WindowMax: Boolean read FWindowMax write FWindowMax;
611                 property ListStyle: TViewStyle read FListStyle write FListStyle;
612
613                 property StdToolBarVisible: Boolean read FStdToolBarVisible write FStdToolBarVisible;
614                 property AddressBarVisible: Boolean read FAddressBarVisible write FAddressBarVisible;
615                 property LinkBarVisible: Boolean read FLinkBarVisible write FLinkBarVisible;
616                 property ListToolBarVisible: Boolean read FListToolBarVisible write FListToolBarVisible;
617                 property ListNameBarVisible: Boolean read FListNameBarVisible write FListNameBarVisible;
618                 property BrowserToolBarVisible: Boolean read FBrowserToolBarVisible write FBrowserToolBarVisible;
619                 property BrowserNameBarVisible: Boolean read FBrowserNameBarVisible write FBrowserNameBarVisible;
620
621                 property BrowserTabVisible: Boolean read FBrowserTabVisible write FBrowserTabVisible;
622                 property BrowserTabPosition: TGikoTabPosition read FBrowserTabPosition write FBrowserTabPosition;
623                 property BrowserTabAppend: TGikoTabAppend read FBrowserTabAppend write FBrowserTabAppend;
624                 property BrowserTabStyle: TGikoTabStyle read FBrowserTabStyle write FBrowserTabStyle;
625
626                 property MessageBarVisible: Boolean read FMessageBarVisible write FMessageBarVisible;
627                 property MessegeBarHeight: Integer read FMessegeBarHeight write FMessegeBarHeight;
628
629                 property StatusBarVisible: Boolean read FStatusBarVisible write FStatusBarVisible;
630
631                 property CabinetVisible: Boolean read FCabinetVisible write FCabinetVisible;
632                 property CabinetWidth: Integer read FCabinetWidth write FCabinetWidth;
633
634                 property ListOrientation: TGikoListOrientation read FListOrientation write FListOrientation;
635                 property ListHeight: Integer read FListHeight write FListHeight;
636                 property ListHeightState: TGikoListState read FListHeightState write FListHeightState;
637                 property ListWidth: Integer read FListWidth write FListWidth;
638                 property ListWidthState: TGikoListState read FListWidthState write FListWidthState;
639 //              property ListHeightMax: Boolean read FListHeightMax write FListHeightMax;
640 //              property ListWidthMax: Boolean read FListWidthMax write FListWidthMax;
641
642                 property NameList: TStringList read FNameList write FNameList;
643                 property MailList: TStringList read FMailList write FMailList;
644                 property SelectTextList: TStringList read FSelectTextList write FSelectTextList;
645
646                 property EditWindowTop: Integer read FEditWindowTop write FEditWindowTop;
647                 property EditWindowLeft: Integer read FEditWindowLeft write FEditWindowLeft;
648                 property EditWindowHeight: Integer read FEditWindowHeight write FEditWindowHeight;
649                 property EditWindowWidth: Integer read FEditWindowWidth write FEditWindowWidth;
650                 property EditWindowMax: Boolean read FEditWindowMax write FEditWindowMax;
651                 property EditWindowStay: Boolean read FEditWindowStay write FEditWindowStay;
652                 property EditWindowTranslucent: Boolean read FEditWindowTranslucent write FEditWindowTranslucent;
653
654                 property ListViewNo: Boolean read FListViewNo write FListViewNo;
655                 property UseCSS: Boolean read FUseCSS write SetUseCSS;
656                 property CSSFileName: string read GetCSSFileName write SetCSSFileName;
657                 property UseKatjushaType : Boolean read FUseKatjushaType write FUseKatjushaType;
658                 property UseSkin: Boolean read FUseSkin;
659
660                 property ShowMail: Boolean read FShowMail write FShowMail;
661                 property ResRange : Longint read FResRange write FResRange;
662                 property ResRangeHold : Boolean read FResRangeHold write FResRangeHold;
663                 property ThreadRange    : TGikoThreadRange read FThreadRange write FThreadRange;
664                 property UnActivePopup: Boolean read FUnActivePopup write FUnActivePopup;
665                 property ResPopupHeaderBold: Boolean read FResPopupHeaderBold write FResPopupHeaderBold;
666
667                 property LogFolder: string read FLogFolder write WriteLogFolder;
668         property LogFolderP: string read FLogFolderP;
669                 property NewLogFolder: string read FNewLogFolder write FNewLogFolder;
670
671                 property BBSColumnWidth[index: Integer]: Integer read GetBBSColumnWidth write SetBBSColumnWidth;
672                 property CategoryColumnWidth[index: Integer]: Integer read GetCategoryColumnWidth write SetCategoryColumnWidth;
673                 property BoardColumnWidth[index: Integer]: Integer read GetBoardColumnWidth write SetBoardColumnWidth;
674
675                 property BBSColumnOrder : TGikoBBSColumnList read FBBSColumnOrder write FBBSColumnOrder;
676                 property CategoryColumnOrder : TGikoCategoryColumnList read FCategoryColumnOrder write FCategoryColumnOrder;
677                 property BoardColumnOrder : TGikoBoardColumnList read FBoardColumnOrder write FBoardColumnOrder;
678
679                 property SoundName[index: Integer]: string read GetSoundName;
680                 property SoundViewName[index: Integer]: string read GetSoundViewName;
681                 property SoundFileName[index: Integer]: string read GetSoundFileName write SetSoundFileName;
682
683                 property BBSSortIndex: Integer read FBBSSortIndex write FBBSSortIndex;
684                 property BBSSortOrder: Boolean read FBBSSortOrder write FBBSSortOrder;
685                 property CategorySortIndex: Integer read FCategorySortIndex write FCategorySortIndex;
686                 property CategorySortOrder: Boolean read FCategorySortOrder write FCategorySortOrder;
687                 property BoardSortIndex: Integer read FBoardSortIndex write FBoardSortIndex;
688                 property BoardSortOrder: Boolean read FBoardSortOrder write FBoardSortOrder;
689
690                 property DatOchiSortIndex: Integer read FDatOchiSortIndex write FDatOchiSortIndex;
691                 property DatOchiSortOrder: Boolean read FDatOchiSortOrder write FDatOchiSortOrder;
692
693                 //property BoardURL2ch: string read FBoardURL2ch write FBoardURL2ch;
694                 property BoardURLs: TStringList read FBoardURLs write FBoardURLs;
695                 property BoardURLSelected: Integer read FBoardURLSelected write FBoardURLSelected;
696                 property UserID: string read FUserID write FUserID;
697                 property Password: string read FPassword write FPassword;
698                 property AutoLogin: Boolean read FAutoLogin write FAutoLogin;
699                 property ForcedLogin: Boolean read FForcedLogin write FForcedLogin;
700                 property DolibURL: string read FDolibURL write FDolibURL;
701
702                 property URLApp: Boolean read FURLApp write FURLApp;
703                 property URLAppFile: string read FURLAppFile write FURLAppFile;
704
705                 property OpenMailer: Boolean read FOpenMailer write FOpenMailer;
706
707                 property DeleteMsg: Boolean read FDeleteMsg write FDeleteMsg;
708
709                 property MainCoolSet[Index: Integer]: TCoolSet read GetMainCoolSet write SetMainCoolSet;
710                 property ListCoolSet[Index: Integer]: TCoolSet read GetBoardCoolSet write SetBoardCoolSet;
711                 property BrowserCoolSet[Index: Integer]: TCoolSet read GetBrowserCoolSet write SetBrowserCoolSet;
712
713                 property ListToolBarWrapable: Boolean read FListToolBarWrapable write FListToolBarWrapable;
714                 property BrowserToolBarWrapable: Boolean read FBrowserToolBarWrapable write FBrowserToolBarWrapable;
715
716                 property PopupPosition: TGikoPopupPosition read FPopupPosition write FPopupPosition;
717
718                 property URLDisplay: Boolean read FURLDisplay write FURLDisplay;
719                 property AddressBarTabStop: Boolean read FAddressBarTabStop write FAddressBarTabStop;
720                 property LinkAddAddressBar: Boolean read FLinkAddAddressBar write FLinkAddAddressBar;
721                 property AddressHistoryCount: Integer read FAddressHistoryCount write FAddressHistoryCount;
722
723                 property PreviewVisible: Boolean read FPreviewVisible write FPreviewVisible;
724                 property PreviewSize: TGikoPreviewSize read FPreviewSize write FPreviewSize;
725                 property PreviewWait: Integer read FPreviewWait write FPreviewWait;
726                 property BrowserAutoMaximize: TGikoBrowserAutoMaximize read FBrowserAutoMaximize write FBrowserAutoMaximize;
727
728                 property ListIconVisible: Boolean read FListIconVisible write FListIconVisible;
729                 property CreationTimeLogs: Boolean read FCreationTimeLogs write FCreationTimeLogs;
730                 property FutureThread: Boolean read FFutureThread write FFutureThread;
731
732                 property UseMachineTime: Boolean read FUseMachineTime write FUseMachineTime;
733                 property TimeAdjustSec: Integer read FTimeAdjustSec write FTimeAdjustSec;
734                 property TimeAdjust: Boolean read FTimeAdjust write FTimeAdjust;
735
736                 //\82 \82Ú\81`\82ñ
737                 property AbonDeleterlo : Boolean read FAbonDeleterlo write FAbonDeleterlo;
738                 property AbonReplaceul : Boolean read FAbonReplaceul write FAbonReplaceul;
739                 property PopUpAbon               : Boolean read FPopUpAbon write FPopUpAbon;
740                 property ShowNGLinesNum : Boolean read FShowNGLinesNum write FShowNGLinesNum;
741                 property AddResAnchor : Boolean read FAddResAnchor write FAddResAnchor;
742                 property DeleteSyria : Boolean read FDeleteSyria write FDeleteSyria;
743                 property IgnoreKana : Boolean read FIgnoreKana write FIgnoreKana;
744                 // \83X\83\8c\83b\83h\8di\8d\9e\83t\83B\81[\83\8b\83h\82Ì\95\9d
745                 property SelectComboBoxWidth : Integer read FSelectComboBoxWidth write FSelectComboBoxWidth;
746
747                 // \8dÅ\8cã\82É\91I\91ð\82³\82ê\82½\83I\83v\83V\83\87\83\93\83_\83C\83A\83\8d\83O\82Ì\83^\83u
748                 property OptionDialogTabIndex : Integer read FOptionDialogTabIndex write FOptionDialogTabIndex;
749
750                 // \8dÅ\8cã\82É\91I\91ð\82³\82ê\82½\83L\83\83\83r\83l\83b\83g
751                 property CabinetIndex : Integer read FCabinetIndex write FCabinetIndex;
752
753                 //\8fI\97¹\8e\9e\82É\8am\94F\83_\83C\83A\83\8d\83O\82ð\95\\8e¦\82·\82é\82©
754                 property ShowDialogForEnd : Boolean read FShowDialogForEnd write FShowDialogForEnd;
755                 property ShowDialogForAllTabClose: Boolean read FShowDialogForAllTabClose write FShowDialogForAllTabClose;
756                 //\8eæ\93¾\83\8c\83X\90\94\82Æ\83X\83\8c\83b\83h\82Ì\83\8c\83X\90\94\82ª\88Ù\82È\82Á\82½\82Æ\82«\82É\92Ê\8fí\94w\8ci\90F\82Æ\88á\82Á\82½\90F\82Ì\94w\8ci\90F\82ð\8eg\97p\82·\82é\82©
757                 property UseOddColorOddResNum: Boolean read FUseOddColorOddResNum write FUseOddColorOddResNum;
758                 property OddColor: TColor read FOddColor write FOddColor;
759                 property UnFocusedBold : Boolean read FUnFocusedBold write FUnFocusedBold;
760                 property UseSamba: Boolean read FUseSamba write FUseSamba;
761                                 property ResAnchorJamp: Boolean read FResAnchorJamp write FResAnchorJamp;
762
763                 // \83G\83f\83B\83^
764                 property SpaceToNBSP    : Boolean       read FSpaceToNBSP               write FSpaceToNBSP;
765                 property AmpToCharRef   : Boolean       read FAmpToCharRef      write FAmpToCharRef;
766
767                 property SelectInterval : Integer       read FSelectInterval    write FSelectInterval;
768                 //Tab\95Û\91
769                 property TabAutoLoadSave: Boolean           read FTabAutoLoadSave      write FTabAutoLoadSave;
770         //\83^\83u\82Ì\95\9c\8c³\82Æ\82©\97p
771         property LastCloseTabURL: String read FLastCloseTabURL write FLastCloseTabURL;
772                                 //property Gengo: TStringList read F2chLanguage write F2chLanguage;
773                                 property GengoSupport : Boolean read F2chSupport write F2chSupport;
774                 property KuroutSettingTabIndex: Integer read FKuroutSettingTabIndex write FKuroutSettingTabIndex;
775                 //! \83}\83E\83X\83W\83F\83X\83`\83\83\81[
776                 property Gestures : TGestureModel read FGestures write FGestures;
777                 //! \83}\83E\83X\83W\83F\83X\83`\83\83\81[\82ð\8eg\97p\82·\82é\82©\82Ç\82¤\82©
778                 property GestureEnabled : Boolean read FGestureEnabled write FGestureEnabled;
779         property GestureIgnoreContext : Boolean read FGestureIgnoreContext write FGestureIgnoreContext;
780                 //\83t\83V\83A\83i\83g\83\89\83b\83v\90Ý\92è
781                 property LocalTrapAtt : Boolean read FLocalTrapAtt write FLocalTrapAtt;
782                 property RemoteTrapAtt : Boolean read FRemoteTrapAtt write FRemoteTrapAtt;
783                 property ReadTimeOut: Integer read FReadTimeOut write FReadTimeOut;
784                 //! \8eg\97p\82·\82é\83X\83p\83\80\83t\83B\83\8b\83^
785                 property SpamFilterAlgorithm : TGikoSpamFilterAlgorithm
786                         read FSpamFilterAlgorithm write FSpamFilterAlgorithm;
787                 property Mute: Boolean read FMute write FMute;
788                 property UseUndecided: Boolean read FUseUndecided write FUseUndecided;
789
790                 property BeUserID: string read FBeUserID write FBeUserID;
791                 property BeCode: string read FBeCode write FBeCode;
792                 property BeAutoLogin: Boolean read FBeAutoLogin write FBeAutoLogin;
793                 property BeLogin: Boolean read FBeLogin write FBeLogin;
794                 property MaxRecordCount : Integer read FMaxRecordCount write FMaxRecordCount;
795                 //! \83X\83\8c\83b\83h\88ê\97\97\83_\83E\83\93\83\8d\81[\83h\8cã\82É\83X\83\8c\83b\83h\96¼\82Å\8f¸\8f\87\83\\81[\83g\82·\82é\82©
796                 property AutoSortThreadList : Boolean read FAutoSortThreadList write FAutoSortThreadList;
797                 //! InputAssist\83t\83H\81[\83\80\82Ì\88Ê\92u
798                 property InputAssistFormLeft :Integer read FInputAssistFormLeft write FInputAssistFormLeft;
799                 property InputAssistFormTop :Integer read FInputAssistFormTop write FInputAssistFormTop;
800                 //! InputAssist\83t\83H\81[\83\80\82Ì\83T\83C\83Y
801                 property InputAssistFormWidth: Integer read FInputAssistFormWidth write FInputAssistFormWidth;
802                 property InputAssistFormHeight: Integer read FInputAssistFormHeight write FInputAssistFormHeight;
803                 //! Cookie\82É\95t\89Á\82·\82é\8cÅ\92è\83R\81[\83h
804                 property FixedCookie: String read FFixedCookie write FFixedCookie;
805         //! \83\8a\83\93\83N\88Ú\93®\97\9a\97ð\82Ì\95Û\8e\9d\90\94
806         property MoveHistorySize : Integer read FMoveHistorySize write SetMoveHistorySize;
807         //! \8dÅ\8f¬\89»\8e\9e\82É\83^\83X\83N\83g\83\8c\83C\82É\8ai\94[\82·\82é\82©
808         property StoredTaskTray : Boolean read FStoredTaskTray write FStoredTaskTray;
809         //! \83u\83\89\83E\83U\83^\83u\82Ì\83\8b\81[\83v\82ð\8b\96\89Â\82·\82é
810         property LoopBrowserTabs : Boolean read FLoopBrowserTabs write FLoopBrowserTabs;
811         //! 100\83\8c\83X\95\\8e¦\82Ì\90æ\93ª\95\\8e¦\83\8c\83X\90\94
812         property HeadResCount : Integer read FHeadResCount write FHeadResCount;
813         //! \8aÖ\98A\83L\81[\83\8f\81[\83h\92Ç\89Á\83t\83\89\83O
814         property AddKeywordLink: Boolean read FAddKeywordLink write FAddKeywordLink;
815         //! dat\82Ì\92u\8a·\82ð\97L\8cø\82É\82·\82é\82©
816         property ReplaceDat: Boolean read FReplaceDat write FReplaceDat;
817         //! sent.ini\83t\83@\83C\83\8b\82Ì\83T\83C\83Y\81i\92P\88ÊMB\81j
818         property SentIniFileSize: Integer read FSentIniFileSize write FSentIniFileSize;
819         //! \83\8a\83\93\83NURL\8eæ\93¾\82Ì\91Î\8fÛ\8ag\92£\8eq
820         property ExtList: String read FExtList write FExtList;
821         //! Skin\83t\83@\83C\83\8b\8aÇ\97\9d
822         property SkinFiles: TSkinFiles read FSkinFiles;
823         //! \83C\83\93\83f\83b\83N\83X\93Ç\82Ý\8d\9e\82Ý\8e\9edat\83t\83@\83C\83\8b\83`\83F\83b\83N
824         property CheckDatFile: Boolean read FCheckDatFile write FCheckDatFile;
825         property LimitResCountMessage: Boolean read FLimitResCountMessage write FLimitResCountMessage;
826         //! \83\8c\83X\83|\83b\83v\83A\83b\83v\95\\8e¦\88Ê\92udeltaX
827         property  RespopupDeltaX: Integer read FRespopupDeltaX write FRespopupDeltaX;
828         //! \83\8c\83X\83|\83b\83v\83A\83b\83v\95\\8e¦\88Ê\92udeltaY
829         property RespopupDeltaY: Integer read FRespopupDeltaY write FRespopupDeltaY;
830         //! \83\8c\83X\83|\83b\83v\83A\83b\83v\83^\83C\83}\81[
831         property RespopupWait: Integer read FRespopupWait write FRespopupWait;
832         property RespopupMailTo: Boolean read FRespopupMailTo write FRespopupMailTo;
833 end;
834
835
836 const
837 //      MAIN_COOLBAND_COUNT = 4;                //\83\81\83C\83\93CoolBand\82Ì\90\94
838 //      LIST_COOLBAND_COUNT = 2;                //\94ÂCoolBand\82Ì\90\94
839 //      BROWSER_COOLBAND_COUNT = 3;     //\83u\83\89\83E\83UCoolBand\82Ì\90\94
840
841         BOARD_FILE_NAME                                                         = 'board.2ch';
842         CUSTOMBOARD_FILE_NAME                                   = 'custom.2ch';
843         BOARD_DIR_NAME                                                          = 'Board';
844         KEY_SETTING_FILE_NAME                                   = 'key.ini';
845         EKEY_SETTING_FILE_NAME                          = 'Ekey.ini';
846         TEMP_FOLDER                                                                             = 'Temp';
847         OUTBOX_FILE_NAME                                                        = 'outbox.ini';
848         SENT_FILE_NAME                                                          = 'sent.ini';
849         CONFIG_DIR_NAME                                                         = 'config';
850         CSS_DIR_NAME                                                                    = 'css';
851         SKIN_DIR_NAME                                                                   = 'skin';
852         NGWORDs_DIR_NAME : String               = 'NGwords';
853         BOARD_PLUGIN_DIR_NAME                                   = 'BoardPlugin';
854         SAMBATIME_FILE_NAME : String    = 'Samba.ini';
855         IGNORE_FILE_NAME : String               = 'Ignore.txt';
856 //      DOLIB_LOGIN_URL     = '/~tora3n2c/futen.cgi';
857         MAX_POPUP_RES : Integer = 10;
858         GESTURE_FILE_NAME                                                       = 'Gestures.ini';
859         SPAMFILTER_FILE_NAME                                    = 'SpamFilter.ini';
860                 LANGUAGE_FILE_NAME    = 'language.ini';
861         INPUTASSIST_FILE_NAME   = 'InputAssist.ini';
862     FIXED_COOKIE =           'hana=mogera';
863     REPLACE_FILE_NAME = 'replace.ini';
864     EXT_PREVIEW_FILE_NAME = 'extpreview.ini';
865
866 implementation
867
868 uses
869         Math, UCryptAuto, UBase64, Windows,GikoUtil;
870
871 type
872         TSoundName = record
873                 Name: string;
874                 ViewName: string;
875                 FileName: string;
876         end;
877
878 const
879         INI_FILE_NAME: string                            = 'gikoNavi.ini';
880         BOARD_URL_INI_FILE_NAME: string = 'url.ini';
881         DEFAULT_FONT_NAME: string                = '\82l\82\82o\83S\83V\83b\83N';
882         DEFAULT_FONT_SIZE: Integer              = 9;
883         DEFAULT_FONT_COLOR: string              = 'clWindowText';
884         DEFAULT_WINDOW_COLOR: string    = 'clWindow';
885         DEFAULT_TAB_FONT_NAME: string            = '\82l\82\82o\83S\83V\83b\83N';
886         DEFAULT_TAB_FONT_SIZE: Integer          = 9;
887         DEFAULT_2CH_BOARD_URL1: string = 'http://menu.2ch.net/bbsmenu.html';
888         GIKO_ENCRYPT_TEXT: string                = 'gikoNaviEncryptText';
889
890 var
891         SOUND_NAME: array[0..4] of TSoundName = (
892                 (Name: 'New';                           ViewName: '\8eæ\93¾\90¬\8c÷';                                    FileName: ''),
893                 (Name: 'NewDiff';               ViewName: '\8eæ\93¾\90¬\8c÷(\8d·\95ª)';              FileName: ''),
894                 (Name: 'NoChange';       ViewName: '\96¢\8dX\90V';                                             FileName: ''),
895 //              (Name: 'RoundEnd';       ViewName: '\8f\84\89ñ\8fI\97¹(\8eæ\93¾\82 \82è)'; FileName: ''),
896 //              (Name: 'RoundNone';     ViewName: '\8f\84\89ñ\8fI\97¹(\8eæ\93¾\82È\82µ)'; FileName: ''),
897                 (Name: 'ResEnd';                 ViewName: '\83\8c\83X\91\97\90M\8a®\97¹';                       FileName: ''),
898                 (Name: 'Error';                 ViewName: '\83G\83\89\81[';                                              FileName: ''));
899
900 constructor TGikoBBSColumnList.Create;
901 begin
902         inherited;
903 end;
904
905 destructor TGikoBBSColumnList.Destroy;
906 begin
907         inherited;
908 end;
909
910 function TGikoBBSColumnList.GetItem( index : integer ) : TGikoBBSColumnID;
911 begin
912         Result := TGikoBBSColumnID( inherited Items[ index ] );
913 end;
914
915 procedure TGikoBBSColumnList.SetItem( index : integer; value : TGikoBBSColumnID);
916 begin
917         inherited Items[ index ] := Pointer( value );
918 end;
919
920 function TGikoBBSColumnList.Add( value : TGikoBBSColumnID ) : Integer;
921 begin
922         Result := inherited Add( Pointer( value ) );
923 end;
924
925 constructor TGikoCategoryColumnList.Create;
926 begin
927         inherited;
928 end;
929
930 destructor TGikoCategoryColumnList.Destroy;
931 begin
932         inherited;
933 end;
934
935 function TGikoCategoryColumnList.GetItem( index : integer ) : TGikoCategoryColumnID;
936 begin
937         Result := TGikoCategoryColumnID( inherited Items[ index ] );
938 end;
939
940 procedure TGikoCategoryColumnList.SetItem( index : integer; value : TGikoCategoryColumnID);
941 begin
942         inherited Items[ index ] := Pointer( value );
943 end;
944
945 function TGikoCategoryColumnList.Add( value : TGikoCategoryColumnID ) : Integer;
946 begin
947         Result := inherited Add( Pointer( value ) );
948 end;
949
950 constructor TGikoBoardColumnList.Create;
951 begin
952         inherited;
953 end;
954
955 destructor TGikoBoardColumnList.Destroy;
956 begin
957         inherited;
958 end;
959
960 function TGikoBoardColumnList.GetItem( index : integer ) : TGikoBoardColumnID;
961 begin
962         Result := TGikoBoardColumnID( inherited Items[ index ] );
963 end;
964
965 procedure TGikoBoardColumnList.SetItem( index : integer; value : TGikoBoardColumnID);
966 begin
967         inherited Items[ index ] := Pointer( value );
968 end;
969
970 function TGikoBoardColumnList.Add( value : TGikoBoardColumnID ) : Integer;
971 begin
972         Result := inherited Add( Pointer( value ) );
973 end;
974
975 //\83R\83\93\83X\83g\83\89\83N\83^
976 constructor TSetting.Create();
977 begin
978         FNameList := TStringList.Create;
979         FMailList := TStringList.Create;
980         FSelectTextList := TStringList.Create;
981         FBoardURLs := TStringList.Create;
982         FBBSColumnOrder := TGikoBBSColumnList.Create;
983         FCategoryColumnOrder := TGikoCategoryColumnList.Create;
984         FBoardColumnOrder := TGikoBoardColumnList.Create;
985         FGestures := TGestureModel.Create;
986     FSkinFiles := TSkinFiles.Create;
987         FNameList.Duplicates := dupIgnore;
988         FMailList.Duplicates := dupIgnore;
989         FBoardURLs.Duplicates := dupIgnore;
990         FSelectTextList.Duplicates := dupIgnore;
991         ReadSettingFile();
992         ReadBoardURLsFile();
993 end;
994
995 //\83f\83X\83g\83\89\83N\83^
996 destructor TSetting.Destroy();
997 begin
998         FBoardColumnOrder.Free;
999         FCategoryColumnOrder.Free;
1000         FBBSColumnOrder.Free;
1001         FSelectTextList.Free;
1002         FBoardURLs.Free;
1003         FMailList.Free;
1004         FNameList.Free;
1005         FGestures.Free;
1006     FSkinFiles.Free;
1007         inherited;
1008 end;
1009
1010 //\8f\89\8aú\89»\83t\83@\83C\83\8b\96¼\8eæ\93¾\81i\83p\83X\81{\83t\83@\83C\83\8b\96¼\81j
1011 function TSetting.GetFileName(): string;
1012 begin
1013         Result := GetAppDir + INI_FILE_NAME;
1014 end;
1015
1016 //\94Â\8dX\90V\97pURL\90Ý\92è\83t\83@\83C\83\8b\96¼\81i\83p\83X\81{\83t\83@\83C\83\8b\96¼\81j
1017 function TSetting.GetBoardURLFileName(): string;
1018 begin
1019         Result := GetAppDir + BOARD_URL_INI_FILE_NAME;
1020 end;
1021
1022 //\90Ý\92è\83t\83@\83C\83\8b\93Ç\8d\9e
1023 procedure TSetting.ReadSettingFile();
1024 var
1025         ini: TMemIniFile;
1026         i: Integer;
1027         Exists: Boolean;
1028         s: string;                                               
1029         CoolSet: TCoolSet;
1030     msg: String;
1031 begin
1032         Exists := FileExists(GetFileName);
1033         ini := TMemIniFile.Create(GetFileName);
1034         try
1035                 //\8eó\90M\83o\83b\83t\83@\83T\83C\83Y
1036                 FRecvBufferSize := ini.ReadInteger('HTTP', 'RecvBufferSize', 4096);
1037                 //HTTP1.1\8eg\97p
1038                 FProtocol := ini.ReadBool('HTTP', 'Protocol', True);
1039                 //\83v\83\8d\83L\83V\90Ú\91±HTTP1.1\8eg\97p
1040                 FProxyProtocol := ini.ReadBool('HTTP', 'ProxyProtocol', False);
1041
1042         // \83v\83\8d\83L\83V\90Ý\92è\93Ç\82Ý\8d\9e\82Ý
1043         ReadProxySettings( ini );
1044
1045         // \8ae\8eí\83E\83B\83\93\83h\83E\82Ì\90Ý\92è\93Ç\82Ý\8d\9e\82Ý
1046         ReadWindowSettings( ini );
1047
1048                 FWindowTop := ini.ReadInteger('WindowSize', 'Top', -1);
1049                 FWindowLeft := ini.ReadInteger('WindowSize', 'Left', -1);
1050                 FWindowHeight := ini.ReadInteger('WindowSize', 'Height', -1);
1051                 FWindowWidth := ini.ReadInteger('WindowSize', 'Width', -1);
1052                 FWindowMax := ini.ReadBool('WindowSize', 'Max', false);
1053
1054                 if FWindowHeight <= 0 then      FWindowHeight := 400;
1055                 if FWindowWidth <= 0 then FWindowWidth := 600;
1056
1057                 FListStyle := TViewStyle(ini.ReadInteger('ViewStyle', 'ListView', Ord(vsReport)));
1058
1059                 FEditWindowTop := ini.ReadInteger('EditorWindowSize', 'Top', -1);
1060                 FEditWindowLeft := ini.ReadInteger('EditorWindowSize', 'Left', -1);
1061                 FEditWindowHeight := ini.ReadInteger('EditorWindowSize', 'Height', -1);
1062                 FEditWindowWidth := ini.ReadInteger('EditorWindowSize', 'Width', -1);
1063                 FEditWindowMax := ini.ReadBool('EditorWindowSize', 'Max', False);
1064                 FEditWindowStay := ini.ReadBool('EditorWindowSize', 'Stay', False);
1065                 FEditWindowTranslucent := ini.ReadBool('EditorWindowSize', 'Translucent', False);
1066
1067                 FOptionDialogTabIndex := ini.ReadInteger('OptionDialog', 'TabIndex', 0);
1068
1069                 //\83c\81[\83\8b\83o\81[
1070                 FStdToolBarVisible := ini.ReadBool('ToolBar', 'StdVisible', True);
1071                 FAddressBarVisible := ini.ReadBool('ToolBar', 'AddressVisible', True);
1072                 FLinkBarVisible := ini.ReadBool('ToolBar', 'LinkVisible', True);
1073                 FListToolBarVisible := ini.ReadBool('ToolBar', 'ListVisible', True);
1074                 FListNameBarVisible := ini.ReadBool('ToolBar', 'ListNameVisible', True);
1075                 FBrowserToolBarVisible := ini.ReadBool('ToolBar', 'BrowserVisible', True);
1076                 FBrowserNameBarVisible := ini.ReadBool('ToolBar', 'BrowserNameVisible', True);
1077                 //\83c\81[\83\8b\83o\81[Wrapable
1078                 FListToolBarWrapable := ini.ReadBool('ToolBar', 'ListWrapable', False);
1079                 FBrowserToolBarWrapable := ini.ReadBool('ToolBar', 'BrowserWrapable', False);
1080
1081                 FBrowserTabVisible := ini.ReadBool('Tab', 'BrowserTabVisible', True);
1082                 FBrowserTabPosition := TGikoTabPosition(ini.ReadInteger('Tab', 'BrowserTabPosition', Ord(gtpTop)));
1083                 FBrowserTabAppend := TGikoTabAppend(ini.ReadInteger('Tab', 'BrowserTabAppend', Ord(gtaFirst)));
1084                 FBrowserTabStyle := TGikoTabStyle(ini.ReadInteger('Tab', 'BrowserTabStyle', Ord(gtsFlat)));
1085
1086                 FMessageBarVisible := ini.ReadBool('MessageBar', 'Visible', True);
1087                 FMessegeBarHeight := ini.ReadInteger('MessageBar', 'Height', 30);
1088
1089                 FStatusBarVisible := ini.ReadBool('StatusBar', 'Visible', True);
1090
1091                 FCabinetVisible := ini.ReadBool('Cabinet', 'Visible', True);
1092                 FCabinetWidth := ini.ReadInteger('Cabinet', 'Width', 200);
1093                 FCabinetIndex := ini.ReadInteger('Cabinet', 'Index', 0);
1094
1095                 FListOrientation := TGikoListOrientation(ini.ReadInteger('List', 'Orientation', Ord(gloHorizontal)));
1096                 FListHeight := ini.ReadInteger('List', 'Height', 180);
1097                 FListHeightState := TGikoListState(ini.ReadInteger('List', 'HeightState', Ord(glsNormal)));
1098                 FListWidth := ini.ReadInteger('List', 'Width', 180);
1099                 FListWidthState := TGikoListState(ini.ReadInteger('List', 'WidthState', Ord(glsNormal)));
1100 //              FListHeightMax := ini.ReadBool('List', 'HeightMax', False);
1101 //              FListWidthMax := ini.ReadBool('List', 'WidthMax', False);
1102
1103         // \93ü\97Í\8d\80\96Ú\82Ì\97\9a\97ð\82ð\93Ç\82Ý\8d\9e\82Þ
1104         ReadInputHisotrys( ini );
1105
1106                 // \83\8a\83X\83g\83J\83\89\83\80\95\9d
1107         ReadListColumnWidth( ini );
1108
1109                 // \83J\83e\83S\83\8a\83\8a\83X\83g\83J\83\89\83\80\8f\87\8f\98
1110         ReadOrdColumn( ini );
1111
1112                 //\83\8a\83X\83g\94Ô\8d\86
1113                 FListViewNo := ini.ReadBool('Function', 'ListViewNo', True);
1114                 //CSS
1115                 UseCSS := ini.ReadBool('CSS', 'UseCSS', True);
1116                 //CSS\83t\83@\83C\83\8b\96¼
1117                 CSSFileName := ini.ReadString('CSS', 'FileName', 'default.css');
1118                 //\82©\82µ\82ã\81`\82µ\82á\82Ì\83X\83L\83\93\82ð\8eg\82¤\82©
1119                 FUseKatjushaType := ini.ReadBool('CSS', 'UseKatjushaType', false);
1120
1121                 //Mail\97\93\95\\8e¦
1122                 FShowMail := ini.ReadBool('Thread', 'ShowMail', True);
1123                 // \83\8c\83X\95\\8e¦\94Í\88Í
1124                 if ini.ReadBool('Thread', 'OnlyAHundredRes',false) then
1125                         FResRange := 100        // \8cÃ\82¢\90Ý\92è\82Ì\8cÝ\8a·\97p
1126                 else
1127                         FResRange := ini.ReadInteger( 'Thread', 'ResRange', Ord( grrAll ) );
1128                 FResRangeHold := ini.ReadBool( 'Thread', 'ResRangeHold', False );
1129         FHeadResCount := ini.ReadInteger('Thread', 'HeadResCount', 1);
1130                 // \83X\83\8c\83b\83h\88ê\97\97\95\\8e¦\94Í\88Í
1131                 FThreadRange := TGikoThreadRange( ini.ReadInteger('ThreadList', 'ThreadRange', Ord( gtrAll )) );
1132                 //\94ñ\83A\83N\83e\83B\83u\8e\9e\83\8c\83X\83|\83b\83v\83A\83b\83v\95\\8e¦
1133                 FUnActivePopup := ini.ReadBool('Thread', 'UnActivePopup', False);
1134                 //\83\8c\83X\83|\83b\83v\83A\83b\83v\83w\83b\83_\81[\83{\81[\83\8b\83h
1135                 FResPopupHeaderBold := ini.ReadBool('Thread', 'ResPopupHeaderBold', True);
1136                 //\8dí\8f\9c\8am\94F
1137                 FDeleteMsg := ini.ReadBool('Function', 'LogDeleteMessage', True);
1138                 //\8fI\97¹\8am\94F
1139                 FShowDialogForEnd := ini.ReadBool('Function','ShowDialogForEnd',false);
1140                 //AllTabClose
1141                 FShowDialogForAllTabClose := ini.ReadBool('Function','ShowDialogForAllTabClose',false);
1142                 //Samba
1143                 FUseSamba := ini.ReadBool('Function','UseSamba', True);
1144                 //ResAnchorjamp
1145                 ResAnchorJamp := ini.ReadBool('Function', 'ResAnchoJamp', True);
1146                 //\83\8d\83O\83t\83H\83\8b\83_
1147                 LogFolder := ini.ReadString('Folder', 'LogFolder', GetAppDir + 'Log');
1148                 NewLogFolder := '';
1149
1150                 //\94ÂURL
1151                 //\95¡\90\94\93o\98^\82Å\82«\82é\82æ\82¤\82É\82µ\82ÄFBoardURLs\82É\82µ\82½\81@2003/10/05
1152                 //FBoardURL2ch := ini.ReadString('BoardURL', '2ch', DEFAULT_2CH_BOARD_URL);
1153
1154                 //\94F\8fØ\97p\83\86\81[\83UID\81E\83p\83X\83\8f\81[\83h
1155                 FUserID := ini.ReadString('Attestation', 'UserID', '');
1156                 FPassword := Decrypt(ini.ReadString('Attestation', 'Password', ''));
1157                 FAutoLogin := ini.ReadBool('Attestation', 'AutoLogin', False);
1158                 FForcedLogin := ini.ReadBool('Attestation', 'FForcedLogin', False);
1159 //              FDolibURL       := ini.ReadString('Attestation', 'FDolibURL', DOLIB_LOGIN_URL);
1160
1161                 //URL\83N\83\8a\83b\83N\8e\9e\8bN\93®\83A\83v\83\8a
1162                 FURLApp := ini.ReadBool('URLApp', 'Select', False);
1163                 FURLAppFile := ini.ReadString('URLApp', 'File', '');
1164
1165                 //mailto\83N\83\8a\83b\83N\8e\9e\93®\8dì
1166                 FOpenMailer := ini.ReadBool('Mailto', 'Open', True);
1167
1168                 //\83|\83b\83v\83A\83b\83v\88Ê\92u
1169                 FPopupPosition := TGikoPopupPosition(ini.ReadInteger('Browser', 'PopupPosition', Ord(gppRightTop)));
1170         // \83o\83^56\88È\91O\82©\82ç\82Ì\83A\83b\83v\83f\81[\83g\91Î\8dô
1171         if (FPopupPosition = gppCenter) then begin
1172             FPopupPosition := gppTop;
1173         end;
1174         FRespopupDeltaX := ini.ReadInteger('Browser', 'RespopupDelteX', 5);
1175         FRespopupDeltaY := ini.ReadInteger('Browser', 'RespopupDelteY', 5);
1176         FRespopupWait   := ini.ReadInteger('Browser', 'RespopupWait', 1000);
1177         FRespopupMailTo := ini.ReadBool('Browser', 'RespopupMailTo', true);
1178
1179                 //\83A\83h\83\8c\83X\83o\81[
1180                 FURLDisplay := ini.ReadBool('AddressBar', 'URLDisplay', False);
1181                 FAddressBarTabStop := ini.ReadBool('AddressBar', 'TabStop', True);
1182                 FLinkAddAddressBar := ini.ReadBool('AddressBar', 'LinkAdd', False);
1183                 FAddressHistoryCount := ini.ReadInteger('AddressBar', 'HistoryCount', 100);
1184
1185                 //\89æ\91\9c\83v\83\8c\83r\83\85\81[
1186                 FPreviewVisible := ini.ReadBool('Browser', 'PreviewVisible', True);
1187                 FPreviewSize := TGikoPreviewSize(ini.ReadInteger('Browser', 'PreviewSize', Ord(gpsMedium)));
1188                 FPreviewWait := ini.ReadInteger('Browser', 'PreviewWait', 500);
1189
1190                 // \83u\83\89\83E\83U
1191                 FBrowserAutoMaximize := TGikoBrowserAutoMaximize(
1192                         ini.ReadInteger('Window', 'BrowserAutoMaximize', Ord(gbmDoubleClick)) );
1193
1194                 //\83X\83\8c\83b\83h\88ê\97\97\8dX\90V\83A\83C\83R\83\93
1195                 FListIconVisible := ini.ReadBool('ThreadList', 'StateIconVisible', True);
1196                 FCreationTimeLogs := ini.ReadBool('ThreadList', 'CreationTimeLogs', True);
1197                 FFutureThread := ini.ReadBool('ThreadList', 'FutureThread', True);
1198                 FSelectInterval := ini.ReadInteger('ThreadList', 'SelectInterval', 110);
1199                 //\83\\81[\83g\8f\87
1200                 FBBSSortIndex := ini.ReadInteger('ThreadList', 'BBSSortIndex', 0);
1201                 FBBSSortOrder := ini.ReadBool('ThreadList', 'BBSSortOrder', True);
1202                 FCategorySortIndex := ini.ReadInteger('ThreadList', 'CategorySortIndex', 0);
1203                 FCategorySortOrder := ini.ReadBool('ThreadList', 'CategorySortOrder', True);
1204                 FBoardSortIndex := ini.ReadInteger('ThreadList', 'BoardSortIndex', 0);
1205                 FBoardSortOrder := ini.ReadBool('ThreadList', 'BoardSortOrder', True);
1206                 // DL\8cã\82Ì\8e©\93®\83\\81[\83g
1207                 FAutoSortThreadList := ini.ReadBool('ThreadList', 'AutoSort', False);
1208                 //Dat\97\8e\82¿\83X\83\8c\83\\81[\83g\8f\87
1209                 FDatOchiSortIndex := ini.ReadInteger('ThreadList', 'DatOchiSortIndex', -1);
1210                 FDatOchiSortOrder := ini.ReadBool('ThreadList', 'DatOchiSortOrder', False);
1211
1212                 //\8f\91\82«\8d\9e\82Ý\8e\9e\83}\83V\83\93\8e\9e\8d\8f\8eg\97p\90Ý\92è
1213                 FUseMachineTime := ini.ReadBool('PostTime', 'UseMachineTime', False);
1214                 FTimeAdjustSec := ini.ReadInteger('PostTime', 'TimeAdjustSec', 0);
1215                 FTimeAdjust := ini.ReadBool('PostTime', 'TimeAdjust', True);
1216
1217                 //\83T\83E\83\93\83h
1218                 if Exists then begin
1219                         for i := 0 to GetSoundCount - 1 do begin
1220                                 SoundFileName[i] := ini.ReadString('Sound', SoundName[i], '');
1221                                 if not FileExists(SoundFileName[i]) then
1222                                         SoundFileName[i] := '';
1223                         end;
1224                 end else begin
1225                         s := GetAppDir + '\sound\';
1226                         SoundFileName[0] := s + '\8eæ\93¾\90¬\8c÷.wav';
1227                         SoundFileName[1] := s + '\8eæ\93¾\90¬\8c÷(\8d·\95ª).wav';
1228                         SoundFileName[2] := s + '\96¢\8dX\90V.wav';
1229                         SoundFileName[3] := '';
1230                         SoundFileName[4] := s + '\83G\83\89\81[.wav';
1231                 end;
1232
1233                 //\83N\81[\83\8b\83o\81[
1234                 for i := 0 to MAIN_COOLBAND_COUNT - 1 do begin
1235                         CoolSet.FCoolID := ini.ReadInteger('MainCoolBar', 'ID' + IntToStr(i), -1);
1236                         CoolSet.FCoolWidth := ini.ReadInteger('MainCoolBar', 'Width' + IntToStr(i), -1);
1237                         CoolSet.FCoolBreak := ini.ReadBool('MainCoolBar', 'Break' + IntToStr(i), False);
1238                         MainCoolSet[i] := CoolSet;
1239                 end;
1240                 FSelectComboBoxWidth := ini.ReadInteger( 'ListCoolBar', 'SelectWidth', 127 );
1241                 for i := 0 to LIST_COOLBAND_COUNT - 1 do begin
1242                         CoolSet.FCoolID := ini.ReadInteger('ListCoolBar', 'ID' + IntToStr(i), -1);
1243                         CoolSet.FCoolWidth := ini.ReadInteger('ListCoolBar', 'Width' + IntToStr(i), -1);
1244                         CoolSet.FCoolBreak := ini.ReadBool('ListCoolBar', 'Break' + IntToStr(i), False);
1245                         ListCoolSet[i] := CoolSet;
1246                 end;
1247                 for i := 0 to BROWSER_COOLBAND_COUNT - 1 do begin
1248                         CoolSet.FCoolID := ini.ReadInteger('BrowserCoolBar', 'ID' + IntToStr(i), -1);
1249                         CoolSet.FCoolWidth := ini.ReadInteger('BrowserCoolBar', 'Width' + IntToStr(i), -1);
1250                         CoolSet.FCoolBreak := ini.ReadBool('BrowserCoolBar', 'Break' + IntToStr(i), False);
1251                         BrowserCoolSet[i] := CoolSet;
1252                 end;
1253
1254                 //\82 \82Ú\81`\82ñ
1255                 FAbonDeleterlo := ini.ReadBool('Abon','Deleterlo',false);
1256                 FAbonReplaceul := ini.ReadBool('Abon','Replaceul',false);
1257                 FPopUpAbon               := ini.ReadBool('Abon','Popup',false);
1258                 FShowNGLinesNum := ini.ReadBool('Abon','ShowNGLines',false);
1259                 FAddResAnchor := ini.ReadBool('Abon','AddResAnchor',false);
1260                 FDeleteSyria :=  ini.ReadBool('Abon','DeleteSyria',false);
1261                 FIgnoreKana  :=  ini.ReadBool('Abon','IgnoreKana',false);
1262
1263                 // \83G\83f\83B\83^
1264                 FSpaceToNBSP    := ini.ReadBool( 'Editor', 'SpaceToNBSP', False );
1265                 FAmpToCharRef   := ini.ReadBool( 'Editor', 'AmpToCharRef', False );
1266
1267                 //Tab\8e©\93®\95Û\91\81A\93Ç\82Ý\8d\9e\82Ý
1268                 FTabAutoLoadSave    := ini.ReadBool('TabAuto', 'TabAutoLoadSave', False);
1269         FLastCloseTabURL    := ini.ReadString('Thread', 'LastCloseTabURL', '');
1270                 FKuroutSettingTabIndex := ini.ReadInteger('OptionDialog', 'KuroutTabIndex' , 0);
1271
1272                 // \83}\83E\83X\83W\83F\83X\83`\83\83\81[
1273                 FGestureEnabled := ini.ReadBool( 'Guesture', 'Enabled', False );
1274         FGestureIgnoreContext := ini.ReadBool( 'Guesture', 'IgnoreContext', False );
1275                 //2ch\8c¾\8cê\83T\83|
1276                 F2chSupport := ini.ReadBool('2chSupport', 'Support', False);
1277
1278                 //FusianaTrap
1279                 FLocalTrapAtt := ini.ReadBool('Trap', 'LocalTrap', False);
1280                 FRemoteTrapAtt := ini.ReadBool('Trap', 'RemoteTrap', False);
1281                 FReadTimeOut := ini.ReadInteger('HTTP', 'ReadTimeOut', 10000);
1282
1283                 // \8eg\97p\82·\82é\83X\83p\83\80\83t\83B\83\8b\83^
1284                 FSpamFilterAlgorithm := TGikoSpamFilterAlgorithm(
1285                         ini.ReadInteger( 'Abon', 'SpamFilterAlgorithm', Ord( gsfaNone ) ) );
1286                 FMute := ini.ReadBool('Function', 'Mute', false);
1287                 FUseUndecided := ini.ReadBool('ThreadList', 'UseUndecided', False);
1288
1289         //Be2ch
1290                 //\94F\8fØ\97p\83\86\81[\83UID\81E\94F\8fØ\83R\81[\83h
1291                 FBeUserID := ini.ReadString('Be', 'UserID', '');
1292                 FBeCode := Decrypt(ini.ReadString('Be', 'Code', ''));
1293                 FBeAutoLogin := ini.ReadBool('Be', 'AutoLogin', False);
1294                 //\97\9a\97ð\82Ì\8dÅ\91å\95Û\91\8c\8f\90\94
1295                 FMaxRecordCount := Max(ini.ReadInteger('Recode', 'Max', 100), 1);
1296
1297                 // \93ü\97Í\83A\83V\83X\83g
1298                 FInputAssistFormTop := ini.ReadInteger('IAtWindowsSize', 'Top', 0);
1299                 FInputAssistFormLeft := ini.ReadInteger('IAtWindowsSize', 'Left', 0);
1300                 FInputAssistFormWidth := ini.ReadInteger('IAtWindowsSize', 'Width', 400);
1301                 FInputAssistFormHeight := ini.ReadInteger('IAtWindowsSize', 'Height', 460);
1302
1303                 // Cookie\82É\95t\89Á\82·\82é\8cÅ\92è\83R\81[\83h
1304                 FFixedCookie := ini.ReadString('Cookie', 'fixedString', FIXED_COOKIE);
1305
1306         // \83\8a\83\93\83N\88Ú\93®\97\9a\97ð\82Ì\8dÅ\91å\95Û\8e\9d\90\94
1307         FMoveHistorySize := ini.ReadInteger('MoveHisotry', 'Max', 20);
1308
1309         FStoredTaskTray := ini.ReadBool('Function', 'StroedTaskTray', false);
1310         FLoopBrowserTabs := ini.ReadBool('Function', 'LoopBrowserTabs', false);
1311         FAddKeywordLink := ini.ReadBool('Thread', 'AddKeywordLink', false);
1312         if not (ini.ValueExists('Thread', 'ReplaceDat')) then begin
1313             msg := '\83Z\83L\83\85\83\8a\83e\83B\83\\83t\83g\82Ì\8cë\94½\89\9e\91Î\8dô\82ð\82µ\82Ü\82·\82©\81H'+ #13#10 +
1314                  '\81i\90\84\8f§:\82Í\82¢\81j'+ #13#10+'\8fÚ\8d×\90Ý\92è\82©\82ç\95Ï\8dX\82Å\82«\82Ü\82·\81B';
1315                     if MsgBox(Application.Handle,
1316                  msg, '\83M\83R\83i\83r', MB_YESNO or MB_ICONQUESTION) = IDYES  then begin
1317                  FReplaceDat := True;
1318             end;
1319         end else begin
1320             FReplaceDat := ini.ReadBool('Thread', 'ReplaceDat', False);
1321         end;
1322
1323         FSentIniFileSize := ini.ReadInteger('Function', 'SentIniFileSize', 3);
1324         FExtList := ini.ReadString('Function', 'ExtList', '*.gif;*.jpg;*.jpeg;*.png;*.zip;*.rar');
1325
1326         FCheckDatFile := ini.ReadBool('ThreadList', 'CheckDatFile', True);
1327         FLimitResCountMessage := ini.ReadBool('Thread', 'LimitResCountMessage', True);
1328                 ini.UpdateFile;
1329         finally
1330                 ini.Free;
1331         end;
1332 end;
1333 //\94Â\8dX\90V\97pURL\93Ç\82Ý\8d\9e\82Ý
1334 procedure TSetting.ReadBoardURLsFile();
1335 var
1336         ini: TMemIniFile;
1337         urlNum: Integer;
1338         i : Integer;
1339 begin
1340         if not FileExists(GetBoardURLFileName()) then
1341         MakeURLIniFile();
1342         ini := TMemIniFile.Create(GetBoardURLFileName());
1343         try
1344                 urlNum := ini.ReadInteger('URL','count',0);
1345                 BoardURLSelected := ini.ReadInteger('URL','selected',0);
1346                 for i := 0 to urlNum - 1 do begin
1347                         FBoardURLs.Append(ini.ReadString('URL',IntToStr(i+1),''));
1348                 end;
1349         finally
1350                 ini.Free;
1351         end;
1352
1353 end;
1354 //\90Ý\92è\83t\83@\83C\83\8b\95Û\91¶(system)
1355 procedure TSetting.WriteSystemSettingFile();
1356 var
1357         ini: TMemIniFile;
1358 begin
1359         ini := TMemIniFile.Create(GetFileName());
1360         try
1361                 //\8eó\90M\83o\83b\83t\83@\83T\83C\83Y
1362                 ini.WriteInteger('HTTP', 'RecvBufferSize', FRecvBufferSize);
1363                 //HTTP1.1\8eg\97p
1364                 ini.WriteBool('HTTP', 'Protocol', FProtocol);
1365                 //\83v\83\8d\83L\83V\90Ú\91±HTTP1.1\8eg\97p
1366                 ini.WriteBool('HTTP', 'ProxyProtocol', FProxyProtocol);
1367
1368                 ini.WriteBool('ReadProxy', 'Proxy', FReadProxy);
1369                 ini.WriteString('ReadProxy', 'Address', FReadProxyAddress);
1370                 ini.WriteInteger('ReadProxy', 'Port', FReadProxyPort);
1371                 ini.WriteString('ReadProxy', 'UserID', FReadProxyUserID);
1372                 ini.WriteString('ReadProxy', 'Password', FReadProxyPassword);
1373
1374                 ini.WriteBool('WriteProxy', 'Proxy', FWriteProxy);
1375                 ini.WriteString('WriteProxy', 'Address', FWriteProxyAddress);
1376                 ini.WriteInteger('WriteProxy', 'Port', FWriteProxyPort);
1377                 ini.WriteString('WriteProxy', 'UserID', FWriteProxyUserID);
1378                 ini.WriteString('WriteProxy', 'Password', FWriteProxyPassword);
1379
1380                 ini.WriteString('Window', 'BrowserFontName', FBrowserFontName);
1381                 ini.WriteInteger('Window', 'BrowserFontSize', FBrowserFontSize);
1382                 ini.WriteInteger('Window', 'BrowserFontSize', FBrowserFontSize);
1383                 ini.WriteInteger('Window', 'BrowserFontBold', FBrowserFontBold);
1384                 ini.WriteInteger('Window', 'BrowserFontItalic', FBrowserFontItalic);
1385                 ini.WriteInteger('Window', 'BrowserFontColor', FBrowserFontColor);
1386                 ini.WriteInteger('Window', 'BrowserBackColor', FBrowserBackColor);
1387
1388                 ini.WriteString('Window', 'CabinetFontName', FCabinetFontName);
1389                 ini.WriteInteger('Window', 'CabinetFontSize', FCabinetFontSize);
1390                 ini.WriteString('Window', 'CabinetFontColor', ColorToString(FCabinetFontColor));
1391                 ini.WriteBool('Window', 'CabinetFontBold', FCabinetFontBold);
1392                 ini.WriteBool('Window', 'CabinetFontItalic', FCabinetFontItalic);
1393                 ini.WriteString('Window', 'CabinetBackColor', ColorToString(FCabinetBackColor));
1394
1395                 ini.WriteString('Window', 'ListFontName', FListFontName);
1396                 ini.WriteInteger('Window', 'ListFontSize', FListFontSize);
1397                 ini.WriteString('Window', 'ListFontColor', ColorToString(FListFontColor));
1398                 ini.WriteString('Window', 'ListBackColor', ColorToString(FListBackColor));
1399                 ini.WriteBool('Window', 'ListFontBold', FListFontBold);
1400                 ini.WriteBool('Window', 'ListFontItalic', FListFontItalic);
1401                 ini.WriteBool('Window','UseOddColor',FUseOddColorOddResNum);
1402                 ini.WriteString('Window', 'OddColor',ColorToString(FOddColor));
1403                 ini.WriteBool('Window','UnFocusedBold', FUnFocusedBold);
1404
1405                 ini.WriteString('Window', 'EditorFontName', FEditorFontName);
1406                 ini.WriteInteger('Window', 'EditorFontSize', FEditorFontSize);
1407                 ini.WriteString('Window', 'EditorFontColor', ColorToString(FEditorFontColor));
1408                 ini.WriteString('Window', 'EditorBackColor', ColorToString(FEditorBackColor));
1409
1410                 ini.WriteString('Window', 'BrowserTabFontName', FBrowserTabFontName);
1411                 ini.WriteInteger('Window', 'BrowserTabFontSize', FBrowserTabFontSize);
1412                 ini.WriteBool('Window', 'BrowserTabFontBold', FBrowserTabFontBold);
1413                 ini.WriteBool('Window', 'BrowserTabFontItalic', FBrowserTabFontItalic);
1414
1415                 ini.WriteString('Window', 'HintFontName', FHintFontName);
1416                 ini.WriteInteger('Window', 'HintFontSize', FHintFontSize);
1417                 ini.WriteString('Window', 'HintFontColor', ColorToString(FHintFontColor));
1418                 ini.WriteString('Window', 'HintBackColor', ColorToString(FHintBackColor));
1419
1420                 ini.UpdateFile;
1421         finally
1422                 ini.Free;
1423         end;
1424 end;
1425
1426 //\90Ý\92è\83t\83@\83C\83\8b\95Û\91¶(window)
1427 procedure TSetting.WriteWindowSettingFile();
1428 var
1429         i: Integer;
1430         ini: TMemIniFile;
1431         CoolSet: TCoolSet;
1432         wkList  : TStringList;
1433 begin
1434         ini := TMemIniFile.Create(GetFileName());
1435         try
1436                 ini.WriteInteger('WindowSize', 'Top', WindowTop);
1437                 ini.WriteInteger('WindowSize', 'Left', WindowLeft);
1438                 ini.WriteInteger('WindowSize', 'Height', WindowHeight);
1439                 ini.WriteInteger('WindowSize', 'Width', WindowWidth);
1440                 ini.WriteBool('WindowSize', 'Max', WindowMax);
1441
1442                 ini.WriteInteger('ViewStyle', 'ListView', Ord(ListStyle));
1443
1444                 ini.WriteInteger('EditorWindowSize', 'Top', EditWindowTop);
1445                 ini.WriteInteger('EditorWindowSize', 'Left', EditWindowLeft);
1446                 ini.WriteInteger('EditorWindowSize', 'Height', EditWindowHeight);
1447                 ini.WriteInteger('EditorWindowSize', 'Width', EditWindowWidth);
1448                 ini.WriteBool('EditorWindowSize', 'Max', EditWindowMax);
1449                 ini.WriteBool('EditorWindowSize', 'Stay', EditWindowStay);
1450                 ini.WriteBool('EditorWindowSize', 'Translucent', EditWindowTranslucent);
1451
1452                 ini.WriteInteger('OptionDialog', 'TabIndex', FOptionDialogTabIndex);
1453
1454                 // \93ü\97Í\83A\83V\83X\83g
1455                 ini.WriteInteger('IAtWindowsSize', 'Top', FInputAssistFormTop);
1456                 ini.WriteInteger('IAtWindowsSize', 'Left', FInputAssistFormLeft);
1457                 ini.WriteInteger('IAtWindowsSize', 'Width', FInputAssistFormWidth);
1458                 ini.WriteInteger('IAtWindowsSize', 'Height', FInputAssistFormHeight);
1459
1460                 //\83c\81[\83\8b\83o\81[
1461                 ini.WriteBool('ToolBar', 'StdVisible', FStdToolBarVisible);
1462                 ini.WriteBool('ToolBar', 'AddressVisible', FAddressBarVisible);
1463                 ini.WriteBool('ToolBar', 'LinkVisible', FLinkBarVisible);
1464                 ini.WriteBool('ToolBar', 'ListVisible', FListToolBarVisible);
1465                 ini.WriteBool('ToolBar', 'ListNameVisible', FListNameBarVisible);
1466                 ini.WriteBool('ToolBar', 'BrowserVisible', FBrowserToolBarVisible);
1467                 ini.WriteBool('ToolBar', 'BrowserNameVisible', FBrowserNameBarVisible);
1468                 //\83c\81[\83\8b\83o\81[Wrapable
1469                 ini.WriteBool('ToolBar', 'ListWrapable', FListToolBarWrapable);
1470                 ini.WriteBool('ToolBar', 'BrowserWrapable', FBrowserToolBarWrapable);
1471
1472                 //\83^\83u
1473                 ini.WriteBool('Tab', 'BrowserTabVisible', FBrowserTabVisible);
1474                 ini.WriteInteger('Tab', 'BrowserTabPosition', Ord(FBrowserTabPosition));
1475                 ini.WriteInteger('Tab', 'BrowserTabAppend', Ord(FBrowserTabAppend));
1476                 ini.WriteInteger('Tab', 'BrowserTabStyle', Ord(FBrowserTabStyle));
1477
1478                 //\83\81\83b\83Z\81[\83W\83o\81[
1479                 ini.WriteBool('MessageBar', 'Visible', FMessageBarVisible);
1480                 ini.WriteInteger('MessageBar', 'Height', FMessegeBarHeight);
1481
1482                 //\83X\83e\81[\83^\83X\83o\81[
1483                 ini.WriteBool('StatusBar', 'Visible', FStatusBarVisible);
1484
1485                 //\83L\83\83\83r\83l\83b\83g
1486                 ini.WriteBool('Cabinet', 'Visible', FCabinetVisible);
1487                 ini.WriteInteger('Cabinet', 'Width', FCabinetWidth);
1488                 ini.WriteInteger('Cabinet', 'Index', FCabinetIndex);
1489
1490                 //\83\8a\83X\83g\82Ì\83T\83C\83Y\82Æ\90\82\92¼\90\85\95½
1491                 ini.WriteInteger('List', 'Orientation', Ord(FListOrientation));
1492                 ini.WriteInteger('List', 'Height', FListHeight);
1493                 ini.WriteInteger('List', 'HeightState', Ord(FListHeightState));
1494                 ini.WriteInteger('List', 'Width', FListWidth);
1495                 ini.WriteInteger('List', 'WidthState', Ord(FListWidthState));
1496 //              ini.WriteBool('List', 'HeightMax', FListHeightMax);
1497 //              ini.WriteBool('List', 'WidthMax', FListWidthMax);
1498
1499
1500 //              ini.WriteInteger('Window', 'BrowserFontSize', BrowserFontSize);
1501
1502                 //\83\8a\83X\83g\94Ô\8d\86\95\\8e¦
1503                 ini.WriteBool('Function', 'ListViewNo', FListViewNo);
1504                 //CSS\8eg\97p
1505                 ini.WriteBool('CSS', 'UseCSS', FUseCSS);
1506                 //\82©\82µ\82ã\81`\82µ\82á\82Ì\83X\83L\83\93\82ð\8eg\82¤\82©
1507                 ini.WriteBool('CSS', 'UseKatjushaType', FUseKatjushaType);
1508                 //CSS\83t\83@\83C\83\8b\96¼
1509                 ini.WriteString('CSS', 'FileName', FSkinFiles.FileName);
1510                 //Mail\97\93\95\\8e¦
1511                 ini.WriteBool('Thread', 'ShowMail', FShowMail);
1512                 // \83\8c\83X\95\\8e¦\94Í\88Í
1513                 ini.DeleteKey( 'Thread', 'OnlyAHundredRes' );   // \8cÃ\82¢\90Ý\92è\82Ì\8dí\8f\9c
1514                 ini.WriteInteger('Thread', 'ResRange', FResRange);
1515                 ini.WriteBool('Thread', 'ResRangeHold', FResRangeHold);
1516         ini.WriteInteger('Thread', 'HeadResCount', FHeadResCount);
1517                 // \83X\83\8c\83b\83h\88ê\97\97\95\\8e¦\94Í\88Í
1518                 ini.WriteInteger('ThreadList', 'ThreadRange', Ord( FThreadRange ));
1519                 //\83\8d\83O\8dí\8f\9c\8am\94F
1520                 ini.WriteBool('Function', 'LogDeleteMessage', FDeleteMsg);
1521                 //\8fI\97¹\8am\94F
1522                 ini.WriteBool('Function','ShowDialogForEnd',FShowDialogForEnd);
1523                 //AllTabClose
1524                 ini.WriteBool('Function','ShowDialogForAllTabClose', FShowDialogForAllTabClose);
1525                 //Samba
1526                 ini.WriteBool('Function','UseSamba', FUseSamba);
1527                 //ResAnchorjamp
1528                 ini.WriteBool('Function', 'ResAnchoJamp', ResAnchorJamp);
1529
1530                 //\94ñ\83A\83N\83e\83B\83u\8e\9e\83|\83b\83v\83A\83b\83v\95\\8e¦
1531                 ini.WriteBool('Thread', 'UnActivePopup', FUnActivePopup);
1532                 //\83\8c\83X\83|\83b\83v\83A\83b\83v\83w\83b\83_\81[\83{\81[\83\8b\83h
1533                 ini.WriteBool('Thread', 'ResPopupHeaderBold', FResPopupHeaderBold);
1534                 //ini.WriteString('BoardURL', '2ch', FBoardURL2ch);
1535
1536                 //\94F\8fØ\97p\83\86\81[\83UID\81E\83p\83X\83\8f\81[\83h
1537                 ini.WriteString('Attestation', 'UserID', FUserID);
1538                 ini.WriteString('Attestation', 'Password', Encrypt(FPassword));
1539                 ini.WriteBool('Attestation', 'AutoLogin', FAutoLogin);
1540                 ini.WriteBool('Attestation', 'FForcedLogin', FForcedLogin);
1541                 ini.WriteString('Attestation', 'FDolibURL', FDolibURL);
1542
1543                 //URL\83N\83\8a\83b\83N\8e\9e\8bN\93®\83A\83v\83\8a
1544                 ini.WriteBool('URLApp', 'Select', FURLApp);
1545                 ini.WriteString('URLApp', 'File', FURLAppFile);
1546
1547                 //mailto\83N\83\8a\83b\83N\8e\9e\93®\8dì
1548                 ini.WriteBool('Mailto', 'Open', FOpenMailer);
1549
1550                 //\83|\83b\83v\83A\83b\83v\88Ê\92u
1551                 ini.WriteInteger('Browser', 'PopupPosition', Ord(FPopupPosition));
1552         ini.WriteInteger('Browser', 'RespopupDelteX', FRespopupDeltaX);
1553         ini.WriteInteger('Browser', 'RespopupDelteY', FRespopupDeltaY);
1554         ini.WriteInteger('Browser', 'RespopupWait', FRespopupWait);
1555         ini.WriteBool('Browser', 'RespopupMailTo', FRespopupMailTo);
1556         
1557                 //\83A\83h\83\8c\83X\83o\81[
1558                 ini.WriteBool('AddressBar', 'URLDisplay', FURLDisplay);
1559                 ini.WriteBool('AddressBar', 'TabStop', FAddressBarTabStop);
1560                 ini.WriteBool('AddressBar', 'LinkAdd', FLinkAddAddressBar);
1561                 ini.WriteInteger('AddressBar', 'HistoryCount', FAddressHistoryCount);
1562
1563                 //\89æ\91\9c\83v\83\8c\83r\83\85\81[
1564                 ini.WriteBool('Browser', 'PreviewVisible', FPreviewVisible);
1565                 ini.WriteInteger('Browser', 'PreviewSize', Ord(FPreviewSize));
1566                 ini.WriteInteger('Browser', 'PreviewWait', FPreviewWait);
1567
1568                 ini.WriteInteger('Window', 'BrowserAutoMaximize', Ord( BrowserAutoMaximize ) );
1569
1570                 //\83X\83\8c\83b\83h\88ê\97\97\8dX\90V\83A\83C\83R\83\93
1571                 ini.WriteBool('ThreadList', 'StateIconVisible', FListIconVisible);
1572                 ini.WriteBool('ThreadList', 'CreationTimeLogs',FCreationTimeLogs);
1573                 ini.WriteBool('ThreadList', 'FutureThread', FFutureThread);
1574                 ini.WriteInteger('ThreadList', 'SelectInterval', FSelectInterval);
1575                 //\83\\81[\83g\8f\87
1576                 ini.WriteInteger('ThreadList', 'BBSSortIndex', FBBSSortIndex);
1577                 ini.WriteBool('ThreadList', 'BBSSortOrder', FBBSSortOrder);
1578                 ini.WriteInteger('ThreadList', 'CategorySortIndex', FCategorySortIndex);
1579                 ini.WriteBool('ThreadList', 'CategorySortOrder', FCategorySortOrder);
1580                 ini.WriteInteger('ThreadList', 'BoardSortIndex', FBoardSortIndex);
1581                 ini.WriteBool('ThreadList', 'BoardSortOrder', FBoardSortOrder);
1582                 ini.WriteInteger('ThreadList', 'DatOchiSortIndex', FDatOchiSortIndex);
1583                 ini.WriteBool('ThreadList', 'DatOchiSortOrder', FDatOchiSortOrder);
1584                 // DL\8cã\82Ì\8e©\93®\83\\81[\83g
1585                 ini.WriteBool('ThreadList', 'AutoSort', FAutoSortThreadList);
1586
1587                 //\8f\91\82«\8d\9e\82Ý\8e\9e\83}\83V\83\93\8e\9e\8d\8f\8eg\97p\90Ý\92è
1588                 ini.WriteBool('PostTime', 'UseMachineTime', FUseMachineTime);
1589                 ini.WriteInteger('PostTime', 'TimeAdjustSec', FTimeAdjustSec);
1590                 ini.WriteBool('PostTime', 'TimeAdjust', FTimeAdjust);
1591
1592                 // \83\8a\83X\83g\83J\83\89\83\80\95\9d
1593                 for i := 0 to Length(FBBSColumnWidth) - 1 do begin
1594                         ini.WriteInteger('BBSColumnWidth', 'ID' + IntToStr(i), FBBSColumnWidth[i]);
1595                 end;
1596                 for i := 0 to Length(FCategoryColumnWidth) - 1 do begin
1597                         ini.WriteInteger('CategoryColumnWidth', 'ID' + IntToStr(i), FCategoryColumnWidth[i]);
1598                 end;
1599                 for i := 0 to Length(FBoardColumnWidth) - 1 do begin
1600                         ini.WriteInteger('BoardColumnWidth', 'ID' + IntToStr(i), FBoardColumnWidth[i]);
1601                 end;
1602
1603                 wkList := TStringList.Create;
1604                 try
1605                         // \83J\83e\83S\83\8a\83\8a\83X\83g\8f\87\8f\98
1606                         ini.ReadSection( 'BBSColumnOrder', wkList );
1607                         for i := wkList.Count - 1 downto 0 do
1608                                 ini.DeleteKey( 'BBSColumnOrder', wkList[ i ] );
1609                         for i := 0 to FBBSColumnOrder.Count - 1 do
1610                                 ini.WriteInteger( 'BBSColumnOrder', 'ID' + IntToStr( i ), Ord( FBBSColumnOrder[ i ] ) );
1611
1612                         // \94Â\83\8a\83X\83g\8f\87\8f\98
1613                         ini.ReadSection( 'CategoryColumnOrder', wkList );
1614                         for i := wkList.Count - 1 downto 0 do
1615                                 ini.DeleteKey( 'CategoryColumnOrder', wkList[ i ] );
1616                         for i := 0 to FCategoryColumnOrder.Count - 1 do
1617                                 ini.WriteInteger( 'CategoryColumnOrder', 'ID' + IntToStr( i ), Ord( FCategoryColumnOrder[ i ] ) );
1618
1619                         // \83X\83\8c\83\8a\83X\83g\8f\87\8f\98
1620                         ini.ReadSection( 'BoardColumnOrder', wkList );
1621                         for i := wkList.Count - 1 downto 0 do
1622                                 ini.DeleteKey( 'BoardColumnOrder', wkList[ i ] );
1623                         for i := 0 to FBoardColumnOrder.Count - 1 do
1624                                 ini.WriteInteger( 'BoardColumnOrder', 'ID' + IntToStr( i ), Ord( FBoardColumnOrder[ i ] ) );
1625                 finally
1626                         wkList.Free;
1627                 end;
1628
1629                 //\83T\83E\83\93\83h
1630                 for i := 0 to GetSoundCount - 1 do begin
1631                         if not FileExists(SoundFileName[i]) then
1632                                 SoundFileName[i] := '';
1633                         ini.WriteString('Sound', SoundName[i], SoundFileName[i]);
1634                 end;
1635
1636                 //CoolBar
1637                 ini.EraseSection('MainCoolBar');
1638                 for i := 0 to MAIN_COOLBAND_COUNT - 1 do begin
1639                         CoolSet := MainCoolSet[i];
1640                         ini.WriteInteger('MainCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1641                         ini.WriteInteger('MainCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1642                         ini.WriteBool('MainCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1643                 end;
1644                 ini.EraseSection('ListCoolBar');
1645                 ini.WriteInteger( 'ListCoolBar', 'SelectWidth', FSelectComboBoxWidth );
1646                 for i := 0 to LIST_COOLBAND_COUNT - 1 do begin
1647                         CoolSet := ListCoolSet[i];
1648                         ini.WriteInteger('ListCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1649                         ini.WriteInteger('ListCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1650                         ini.WriteBool('ListCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1651                 end;
1652                 ini.EraseSection('BrowserCoolBar');
1653                 for i := 0 to BROWSER_COOLBAND_COUNT - 1 do begin
1654                         CoolSet := BrowserCoolSet[i];
1655                         ini.WriteInteger('BrowserCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1656                         ini.WriteInteger('BrowserCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1657                         ini.WriteBool('BrowserCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1658                 end;
1659
1660                 //\82 \82Ú\81`\82ñ
1661                 ini.WriteBool('Abon','Deleterlo',FAbonDeleterlo);
1662                 ini.WriteBool('Abon','Replaceul',FAbonReplaceul);
1663                 ini.WriteBool('Abon','Popup',FPopUpAbon);
1664                 ini.WriteBool('Abon','ShowNGLines',FShowNGLinesNum);
1665                 ini.WriteBool('Abon','AddResAnchor',FAddResAnchor);
1666                 ini.WriteBool('Abon','DeleteSyria',FDeleteSyria);
1667                 ini.WriteBool('Abon','IgnoreKana', FIgnoreKana);
1668
1669                 // \83G\83f\83B\83^
1670                 ini.WriteBool( 'Editor', 'SpaceToNBSP', FSpaceToNBSP );
1671                 ini.WriteBool( 'Editor', 'AmpToCharRef', FAmpToCharRef );
1672
1673                 //\83^\83u\8e©\93®\95Û\91
1674                 ini.WriteBool('TabAuto', 'TabAutoLoadSave', FTabAutoLoadSave);
1675         ini.WriteString('Thread', 'LastCloseTabURL', FLastCloseTabURL); 
1676                 //\8fÚ\8d×\90Ý\92è
1677                 ini.WriteInteger('OptionDialog', 'KuroutTabIndex', FKuroutSettingTabIndex);
1678
1679                 //\82É\82¿\82á\82ñ\8cê\88Ä\93à\8b@\94\
1680                 ini.WriteBool('2chSupport', 'Support', F2chSupport);
1681
1682                 // \83}\83E\83X\83W\83F\83X\83`\83\83\81[\82ð\8eg\97p\82·\82é\82©\82Ç\82¤\82©
1683                 ini.WriteBool( 'Guesture', 'Enabled', FGestureEnabled );
1684         ini.WriteBool( 'Guesture', 'IgnoreContext', FGestureIgnoreContext );
1685                 //FusianaTrap
1686                 ini.WriteBool('Trap', 'LocalTrap', FLocalTrapAtt);
1687                 ini.WriteBool('Trap', 'RemoteTrap', FRemoteTrapAtt);
1688                 ini.WriteInteger('HTTP', 'ReadTimeOut', FReadTimeOut);
1689
1690                 // \8eg\97p\82·\82é\83X\83p\83\80\83t\83B\83\8b\83^
1691                 ini.WriteInteger( 'Abon', 'SpamFilterAlgorithm', Ord( FSpamFilterAlgorithm ) );
1692                 ini.WriteBool('Function', 'Mute', FMute);
1693                 ini.WriteBool('ThreadList', 'UseUndecided', FUseUndecided);
1694
1695                 //\94F\8fØ\97p\83\86\81[\83UID\81E\83p\83X\83\8f\81[\83h
1696                 ini.WriteString('Be', 'UserID', FBeUserID);
1697                 ini.WriteString('Be', 'Code', Encrypt(FBeCode));
1698                 ini.WriteBool('Be', 'AutoLogin', FBeAutoLogin);
1699
1700                 //\97\9a\97ð\82Ì\8dÅ\91å\95Û\91\8c\8f\90\94
1701                 ini.WriteInteger('Recode', 'Max', FMaxRecordCount);
1702                 // \8cÅ\92è\82ÌCookie\95\8e\9a\97ñ
1703         ini.WriteString('Cookie', 'fixedString', FFixedCookie);
1704
1705         // \83\8a\83\93\83N\88Ú\93®\97\9a\97ð\82Ì\8dÅ\91å\95Û\8e\9d\90\94
1706         ini.WriteInteger('MoveHisotry', 'Max', FMoveHistorySize);
1707
1708         ini.WriteBool('Function', 'StroedTaskTray', FStoredTaskTray);
1709         ini.WriteBool('Function', 'LoopBrowserTabs', FLoopBrowserTabs);
1710         ini.WriteBool('Thread', 'AddKeywordLink', FAddKeywordLink);
1711         ini.WriteBool('Thread', 'ReplaceDat', FReplaceDat);
1712         ini.WriteInteger('Function', 'SentIniFileSize', FSentIniFileSize);
1713         ini.WriteString('Function', 'ExtList', FExtList);
1714         ini.WriteBool('ThreadList', 'CheckDatFile', FCheckDatFile);
1715         ini.WriteBool('Thread', 'LimitResCountMessage', FLimitResCountMessage);
1716                 ini.UpdateFile;
1717         finally
1718                 ini.Free;
1719         end;
1720 end;
1721
1722 //\90Ý\92è\83t\83@\83C\83\8b\95Û\91¶(name & mail)
1723 procedure TSetting.WriteNameMailSettingFile();
1724 var
1725         i: Integer;
1726         ini: TMemIniFile;
1727 begin
1728         ini := TMemIniFile.Create(GetFileName());
1729         try
1730                 ini.EraseSection('Name');
1731                 ini.EraseSection('Mail');
1732                 ini.EraseSection('SelectText');
1733                 for i := 0 to FNameList.Count - 1 do begin
1734                         ini.WriteString('Name', Format('%.2d', [i + 1]), FNameList[i]);
1735                         if i >= 39 then
1736                                 Break;
1737                 end;
1738                 for i := 0 to FMailList.Count - 1 do begin
1739                         ini.WriteString('Mail', Format('%.2d', [i + 1]), FMailList[i]);
1740                         if i >= 39 then
1741                                 Break;
1742                 end;
1743                 for i := 0 to FSelectTextList.Count - 1 do begin
1744                         ini.WriteString('SelectText', Format('%.2d', [i + 1]), FSelectTextList[i]);
1745                         if i >= 39 then
1746                                 Break;
1747                 end;
1748                 ini.UpdateFile;
1749         finally
1750                 ini.Free;
1751         end;
1752 end;
1753
1754 procedure TSetting.WriteFolderSettingFile();
1755 var
1756         ini: TMemIniFile;
1757 begin
1758         ini := TMemIniFile.Create(GetFileName());
1759         try
1760                 if GetAppDir + 'Log' = NewLogFolder then
1761                         ini.DeleteKey('Folder', 'LogFolder')
1762                 else
1763                         ini.WriteString('Folder', 'LogFolder', NewLogFolder);
1764                 ini.UpdateFile;
1765         finally
1766                 ini.Free;
1767         end;
1768 end;
1769 //\94Â\8dX\90V\97pBoardURL\82ð\95Û\91
1770 procedure TSetting.WriteBoardURLSettingFile();
1771 var
1772         ini: TMemIniFile;
1773                 i : Integer;
1774                 oldcount : Integer;
1775 begin
1776         ini := TMemIniFile.Create(GetBoardURLFileName());
1777         try
1778                 oldcount := ini.ReadInteger('URL','count',FBoardURLs.Count);
1779                 ini.WriteInteger('URL','count',FBoardURLs.Count);
1780                 ini.WriteInteger('URL','selected',BoardURLSelected);
1781                 for i := 0 to FBoardURLs.Count -1 do begin
1782                                         ini.WriteString('URL',IntToStr(i+1),FBoardURLs.Strings[i]);
1783                 end;
1784                 if oldcount > FBoardURLs.Count then begin
1785                         for i := FBoardURLs.Count to oldcount do begin
1786                                 ini.DeleteKey('URL',IntToStr(i+1));
1787                         end;
1788                 end;
1789                 ini.UpdateFile;
1790         finally
1791                 ini.Free;
1792         end;
1793 end;
1794
1795 {$R-}
1796 //\83\8a\83X\83g\83J\83\89\83\80\83w\83b\83_\81[
1797 function TSetting.GetBBSColumnWidth(index: Integer): Integer;
1798 begin
1799         Result := IfThen(index in [0..Length(FBBSColumnWidth) - 1], FBBSColumnWidth[index], 0);
1800 end;
1801
1802 function TSetting.GetCategoryColumnWidth(index: Integer): Integer;
1803 begin
1804         Result := IfThen(index in [0..Length(FCategoryColumnWidth) - 1], FCategoryColumnWidth[index], 0);
1805 end;
1806
1807 function TSetting.GetBoardColumnWidth(index: Integer): Integer;
1808 begin
1809         Result := IfThen(index in [0..Length(FBoardColumnWidth) - 1], FBoardColumnWidth[index], 0);
1810 end;
1811 {$IFDEF DEBUG}
1812 {$R+}
1813 {$ENDIF}
1814
1815 procedure TSetting.SetBBSColumnWidth(index: Integer; value: Integer);
1816 begin
1817         if index in [0..Length(FBBSColumnWidth) - 1] then
1818                 FBBSColumnWidth[index] := value;
1819 end;
1820
1821 procedure TSetting.SetCategoryColumnWidth(index: Integer; value: Integer);
1822 begin
1823         if index in [0..Length(FCategoryColumnWidth) - 1] then
1824                 FCategoryColumnWidth[index] := value;
1825 end;
1826
1827 procedure TSetting.SetBoardColumnWidth(index: Integer; value: Integer);
1828 begin
1829         if index in [0..Length(FBoardColumnWidth) - 1] then
1830                 FBoardColumnWidth[index] := value;
1831 end;
1832
1833 function TSetting.GetSoundCount: Integer;
1834 begin
1835         Result := Length(SOUND_NAME);
1836 end;
1837
1838 function TSetting.GetSoundName(Index: Integer): string;
1839 begin
1840         if (Index < GetSoundCount) and (Index >= 0) then
1841                 Result := SOUND_NAME[Index].Name
1842         else
1843                 Result := '';
1844 end;
1845
1846 function TSetting.GetSoundViewName(Index: Integer): string;
1847 begin
1848         if (Index < GetSoundCount) and (Index >= 0) then
1849                 Result := SOUND_NAME[Index].ViewName
1850         else
1851                 Result := '';
1852 end;
1853
1854 function TSetting.GetSoundFileName(Index: Integer): string;
1855 begin
1856         if (Index < GetSoundCount) and (Index >= 0) then
1857                 Result := SOUND_NAME[Index].FileName
1858         else
1859                 Result := '';
1860 end;
1861
1862 procedure TSetting.SetSoundFileName(Index: Integer; value: string);
1863 begin
1864         if (Index < GetSoundCount) and (Index >= 0) then
1865                 SOUND_NAME[Index].FileName := value;
1866 end;
1867
1868 function TSetting.FindSoundFileName(Name: string): string;
1869 var
1870         i: Integer;
1871 begin
1872         for i := 0 to GetSoundCount - 1 do begin
1873                 if SoundName[i] = Name then begin
1874                         Result := SoundFileName[i];
1875                         Exit;
1876                 end;
1877         end;
1878         Result := '';
1879 end;
1880
1881 function TSetting.Encrypt(s: string): string;
1882 var
1883         cryptObj: THogeCryptAuto;
1884         inputStream, outputStream: TStringStream;
1885 begin
1886         inputStream := TStringStream.Create(s);
1887         outputStream := TStringStream.Create('');
1888         cryptObj := THogeCryptAuto.Create;
1889         try
1890                 // \88Ã\8d\86\89»
1891                 cryptObj.Encrypt(inputStream, GIKO_ENCRYPT_TEXT, outputStream);
1892
1893                 // \83o\83C\83i\83\8a\82È\82Ì\82Å\95K\97v\82É\89\9e\82\82Ä\83e\83L\83X\83g\82É\95Ï\8a·
1894                 Result := HogeBase64Encode(outputStream.DataString);
1895         finally
1896                 cryptObj.Free;
1897                 outputStream.Free;
1898                 inputStream.Free;
1899         end;
1900 end;
1901
1902 function TSetting.Decrypt(s: string): string;
1903 var
1904         cryptObj: THogeCryptAuto;
1905         inputStream, outputStream: TStringStream;
1906 begin
1907         try
1908                 inputStream := TStringStream.Create(HogeBase64Decode(s));
1909         except
1910                 Result := '';
1911                 Exit;
1912         end;
1913         outputStream := TStringStream.Create('');
1914         cryptObj := THogeCryptAuto.Create;
1915         try
1916                 // \95\9c\8d\86
1917                 cryptObj.Decrypt(inputStream, GIKO_ENCRYPT_TEXT, outputStream);
1918                 Result := outputStream.DataString;
1919         finally
1920                 cryptObj.Free;
1921                 outputStream.Free;
1922                 inputStream.Free;
1923         end;
1924 end;
1925
1926 function TSetting.GetMainCoolSet(Index: Integer): TCoolSet;
1927 begin
1928         if Index in [0..MAIN_COOLBAND_COUNT - 1] then
1929                 Result := FMainCoolBar[Index]
1930         else begin
1931                 Result.FCoolID := -1;
1932                 Result.FCoolWidth := -1;
1933                 Result.FCoolBreak := False;
1934         end;
1935 end;
1936
1937 function TSetting.GetBoardCoolSet(Index: Integer): TCoolSet;
1938 begin
1939         if Index in [0..LIST_COOLBAND_COUNT - 1] then
1940                 Result := FListCoolBar[Index]
1941         else begin
1942                 Result.FCoolID := -1;
1943                 Result.FCoolWidth := -1;
1944                 Result.FCoolBreak := False;
1945         end;
1946 end;
1947
1948 function TSetting.GetBrowserCoolSet(Index: Integer): TCoolSet;
1949 begin
1950         if Index in [0..BROWSER_COOLBAND_COUNT - 1] then
1951                 Result := FBrowserCoolBar[Index]
1952         else begin
1953                 Result.FCoolID := -1;
1954                 Result.FCoolWidth := -1;
1955                 Result.FCoolBreak := False;
1956         end;
1957 end;
1958
1959 procedure TSetting.SetMainCoolSet(Index: Integer; CoolSet: TCoolSet);
1960 begin
1961         if Index in [0..MAIN_COOLBAND_COUNT - 1] then
1962                 FMainCoolBar[Index] := CoolSet;
1963 end;
1964
1965 procedure TSetting.SetBoardCoolSet(Index: Integer; CoolSet: TCoolSet);
1966 begin
1967         if Index in [0..LIST_COOLBAND_COUNT - 1] then
1968                 FListCoolBar[Index] := CoolSet;
1969 end;
1970
1971 procedure TSetting.SetBrowserCoolSet(Index: Integer; CoolSet: TCoolSet);
1972 begin
1973         if Index in [0..BROWSER_COOLBAND_COUNT - 1] then
1974                 FBrowserCoolBar[Index] := CoolSet;
1975 end;
1976
1977 //url.ini\82ª\82È\82¢\82Æ\82«\82É\90\90¬\82·\82é
1978 procedure TSetting.MakeURLIniFile();
1979 var
1980         ini: TMemIniFile;
1981 begin
1982         ini := TMemIniFile.Create(GetBoardURLFileName());
1983         try
1984                 //\8dX\90VURL\82Ì\90\94
1985                 ini.WriteInteger('URL','count',1);
1986                 //\83f\83t\83H\83\8b\83g\82Å\8eg\97p\82·\82é\82t\82q\82k\82Ì\83C\83\93\83f\83b\83N\83X
1987                 ini.WriteInteger('URL','selected',1);
1988                 //\88È\89º\95K\97v\82È\90\94\82¾\82¯\81A\8dX\90V\82t\82q\82k\82ð\92Ç\89Á
1989                 ini.WriteString('URL','1',DEFAULT_2CH_BOARD_URL1);
1990                 //ini.WriteString('URL','2',DEFAULT_2CH_BOARD_URL2);
1991                 ini.UpdateFile;
1992         finally
1993                 ini.Free;
1994         end;
1995 end;
1996
1997 (*************************************************************************
1998  *\83{\81[\83h\83t\83@\83C\83\8b\96¼\8eæ\93¾\81i\83p\83X\81{\83t\83@\83C\83\8b\96¼\81j
1999  *************************************************************************)
2000 function TSetting.GetBoardFileName: string;
2001 begin
2002         Result := GetConfigDir + BOARD_FILE_NAME;
2003 end;
2004
2005 (*************************************************************************
2006  *\83{\81[\83h\83t\83@\83C\83\8b\96¼\8eæ\93¾\81i\83p\83X\81{\83t\83@\83C\83\8b\96¼\81j
2007  *************************************************************************)
2008 function TSetting.GetCustomBoardFileName: string;
2009 begin
2010         Result := GetConfigDir + CUSTOMBOARD_FILE_NAME;
2011 end;
2012
2013 (*************************************************************************
2014  *\83{\81[\83h\83f\83B\83\8c\83N\83g\83\8a\8eæ\93¾(\\82Å\8fI\82í\82é)
2015  *************************************************************************)
2016 function TSetting.GetBoardDir: string;
2017 begin
2018         Result := IncludeTrailingPathDelimiter(GetConfigDir + BOARD_DIR_NAME);
2019 end;
2020
2021 (*************************************************************************
2022  *\83e\83\93\83|\83\89\83\8a\83t\83H\83\8b\83_\81[\96¼\8eæ\93¾
2023  *************************************************************************)
2024 function TSetting.GetHtmlTempFileName: string;
2025 begin
2026         Result := TEMP_FOLDER;
2027 end;
2028
2029
2030 (*************************************************************************
2031  *\8eÀ\8ds\83t\83@\83C\83\8b\83t\83H\83\8b\83_\8eæ\93¾(\8dÅ\8cã\82É\\82ª\82 \82é)
2032  *************************************************************************)
2033 function TSetting.GetAppDir: string;
2034 begin
2035         Result := ExtractFilePath(Application.ExeName);
2036 end;
2037
2038 (*************************************************************************
2039  *TempHtml\83t\83@\83C\83\8b\96¼\8eæ\93¾\81i\83p\83X\81{\83t\83@\83C\83\8b\96¼\81j
2040  *************************************************************************)
2041 function TSetting.GetTempFolder: string;
2042 begin
2043         Result := GetAppDir + TEMP_FOLDER;
2044 end;
2045
2046 (*************************************************************************
2047  *sent.ini\83t\83@\83C\83\8b\96¼\8eæ\93¾\81i\83p\83X\81{\83t\83@\83C\83\8b\96¼\81j
2048  *************************************************************************)
2049 function TSetting.GetSentFileName: string;
2050 begin
2051         Result := GetAppDir + SENT_FILE_NAME;
2052 end;
2053
2054 (*************************************************************************
2055  *outbox.ini\83t\83@\83C\83\8b\96¼\8eæ\93¾\81i\83p\83X\81{\83t\83@\83C\83\8b\96¼\81j
2056  *************************************************************************)
2057 function TSetting.GetOutBoxFileName: string;
2058 begin
2059         Result := GetAppDir + OUTBOX_FILE_NAME;
2060 end;
2061
2062 (*************************************************************************
2063  *Config\83t\83H\83\8b\83_\8eæ\93¾(\\82Å\8fI\82í\82é)
2064  *************************************************************************)
2065 function TSetting.GetConfigDir: string;
2066 begin
2067         Result := IncludeTrailingPathDelimiter(GetAppDir + CONFIG_DIR_NAME);
2068 end;
2069 (*************************************************************************
2070  *CSS\83t\83H\83\8b\83_\8eæ\93¾(\\82Å\8fI\82í\82é)
2071  *************************************************************************)
2072 function TSetting.GetStyleSheetDir: string;
2073 begin
2074         Result := IncludeTrailingPathDelimiter(GetConfigDir + CSS_DIR_NAME);
2075 end;
2076 (*************************************************************************
2077  *skin\83t\83H\83\8b\83_\8eæ\93¾(\\82Å\8fI\82í\82é)
2078  *************************************************************************)
2079 function TSetting.GetSkinDir: string;
2080 begin
2081         Result := IncludeTrailingPathDelimiter(GetConfigDir + SKIN_DIR_NAME);
2082 end;
2083 (*************************************************************************
2084  *NG\83\8f\81[\83h\83f\83B\83\8c\83N\83g\83\8a\8eæ\93¾(\\82Å\8fI\82í\82é)
2085  *************************************************************************)
2086 function TSetting.GetNGWordsDir: string;
2087 begin
2088         Result := IncludeTrailingPathDelimiter(GetConfigDir + NGWORDs_DIR_NAME);
2089 end;
2090 (*************************************************************************
2091  *Board\83v\83\89\83O\83C\83\93\83f\83B\83\8c\83N\83g\83\8a\8eæ\93¾(\\82Å\8fI\82í\82é)
2092  *************************************************************************)
2093 function TSetting.GetBoardPlugInDir: string;
2094 begin
2095         Result := IncludeTrailingPathDelimiter(GetConfigDir + BOARD_PLUGIN_DIR_NAME);
2096 end;
2097
2098 procedure TSetting.SetUseCSS( value: Boolean );
2099 begin
2100
2101         FUseCSS := value;
2102         // Windows\93I\82É\83t\83@\83C\83\8b\83p\83X\82Ì\91å\95\8e\9a\8f¬\95\8e\9a\82Ì\88á\82¢\82Í\96³\8e\8b\82³\82ê\82é\82Ì\82Å\81A
2103         // \83R\83R\82Å\82Ì\94»\92è\82Å\82à\91å\95\8e\9a\8f¬\95\8e\9a\82Ì\88á\82¢\82Í\96³\8e\8b\82·\82é\81B
2104         FUseSkin :=
2105                 UseCSS and
2106                 (Pos( AnsiLowerCase(GetSkinDir), AnsiLowerCase(FSkinFiles.FileName) ) > 0) and
2107                 FileExists( FSkinFiles.GetSkinHeaderFileName );
2108
2109 end;
2110
2111 procedure TSetting.SetCSSFileName( fileName: string );
2112 begin
2113     FSkinFiles.FileName := fileName;
2114         // Windows\93I\82É\83t\83@\83C\83\8b\83p\83X\82Ì\91å\95\8e\9a\8f¬\95\8e\9a\82Ì\88á\82¢\82Í\96³\8e\8b\82³\82ê\82é\82Ì\82Å\81A
2115         // \83R\83R\82Å\82Ì\94»\92è\82Å\82à\91å\95\8e\9a\8f¬\95\8e\9a\82Ì\88á\82¢\82Í\96³\8e\8b\82·\82é\81B
2116         FUseSkin :=
2117                 UseCSS and
2118                 (Pos( AnsiLowerCase(GetSkinDir), AnsiLowerCase(FSkinFiles.FileName) ) > 0) and
2119                 FileExists( FSkinFiles.GetSkinHeaderFileName );
2120
2121 end;
2122 (*************************************************************************
2123  *samba\90Ý\92è\83t\83@\83C\83\8b\96¼\8eæ\93¾
2124  *************************************************************************)
2125 function TSetting.GetSambaFileName: string;
2126 begin
2127         Result := GetAppDir + SAMBATIME_FILE_NAME;
2128 end;
2129 //\94Â\8dX\90V\8f\9c\8aO\83J\83e\83S\83\8a\83\8a\83X\83g\95Û\91\83t\83@\83C\83\8b
2130 function TSetting.GetIgnoreFileName: string;
2131 begin
2132         Result := GetConfigDir + IGNORE_FILE_NAME;
2133 end;
2134
2135 //! \83}\83E\83X\83W\83F\83X\83`\83\83\81[\83t\83@\83C\83\8b\83p\83X
2136 function TSetting.GetGestureFileName: string;
2137 begin
2138         Result := GetConfigDir + GESTURE_FILE_NAME;
2139 end;
2140
2141 //! \83X\83p\83\80\83t\83B\83\8b\83^\8aw\8fK\97\9a\97ð\83t\83@\83C\83\8b\83p\83X
2142 function TSetting.GetSpamFilterFileName: string;
2143 begin
2144         Result := GetConfigDir + SPAMFILTER_FILE_NAME;
2145 end;
2146
2147 function TSetting.GetLanguageFileName: string;
2148 begin
2149     Result := GetConfigDir + LANGUAGE_FILE_NAME;
2150 end;
2151 procedure TSetting.WriteLogFolder(AVal : String);
2152 begin
2153         FLogFolder := AVal;
2154         FLogFolderP := IncludeTrailingPathDelimiter(LogFolder);
2155 end;
2156 function TSetting.GetMainKeyFileName: String;
2157 begin
2158         Result := GetConfigDir + KEY_SETTING_FILE_NAME;
2159 end;
2160 function TSetting.GetEditorKeyFileName: String;
2161 begin
2162         Result := GetConfigDir + EKEY_SETTING_FILE_NAME;
2163 end;
2164 function TSetting.GetInputAssistFileName : String;
2165 begin
2166         Result := GetConfigDir + INPUTASSIST_FILE_NAME;
2167 end;
2168 function TSetting.GetReplaceFileName: String;
2169 begin
2170     Result := GetConfigDir + REPLACE_FILE_NAME;
2171 end;
2172 function TSetting.GetExtprevieFileName: String;
2173 begin
2174     Result := GetConfigDir + EXT_PREVIEW_FILE_NAME;
2175 end;
2176 procedure TSetting.SetMoveHistorySize(AVal : Integer);
2177 begin
2178     if (AVal > 0) then begin
2179         FMoveHistorySize := AVal;
2180     end;
2181 end;
2182 {
2183 \brief \83v\83\8d\83L\83V\90Ý\92è\93Ç\82Ý\8d\9e\82Ý
2184 \param  memIni  ini\83t\83@\83C\83\8b
2185 }
2186 procedure TSetting.ReadProxySettings(memIni: TMemIniFile);
2187 const
2188     READ_SECTION = 'ReadProxy';
2189     WRITE_SECTION= 'WriteProxy';
2190     PROXY_KEY = 'Proxy';
2191     ADDRE_KEY = 'Address';
2192     PORT_KEY = 'Port';
2193     UID_KEY  = 'UserID';
2194     PASS_KEY = 'Password';
2195 begin
2196     if (memIni <> nil) then begin
2197                 FReadProxy := memIni.ReadBool(READ_SECTION, PROXY_KEY, false);
2198                 FReadProxyAddress := memIni.ReadString(READ_SECTION, ADDRE_KEY, '');
2199                 FReadProxyPort := memIni.ReadInteger(READ_SECTION, PORT_KEY, 0);
2200                 FReadProxyUserID := memIni.ReadString(READ_SECTION, UID_KEY, '');
2201                 FReadProxyPassword := memIni.ReadString(READ_SECTION, PASS_KEY, '');
2202
2203                 FWriteProxy := memIni.ReadBool(WRITE_SECTION, PROXY_KEY, false);
2204                 FWriteProxyAddress := memIni.ReadString(WRITE_SECTION, ADDRE_KEY, '');
2205                 FWriteProxyPort := memIni.ReadInteger(WRITE_SECTION, PORT_KEY, 0);
2206                 FWriteProxyUserID := memIni.ReadString(WRITE_SECTION, UID_KEY, '');
2207                 FWriteProxyPassword := memIni.ReadString(WRITE_SECTION, PASS_KEY, '');
2208     end;
2209 end;
2210 {
2211 \brief  \8ae\8eí\83E\83B\83\93\83h\83E\90Ý\92è\93Ç\82Ý\8d\9e\82Ý
2212 \param  menIni  ini\83t\83@\83C\83\8b
2213 }
2214 procedure TSetting.ReadWindowSettings(memIni: TMemIniFile);
2215 const
2216     WINDOW_SECTION = 'Window';
2217 begin
2218     if (memIni <> nil) then begin
2219                 FBrowserFontName := memIni.ReadString(WINDOW_SECTION, 'BrowserFontName', '');
2220                 FBrowserFontSize := memIni.ReadInteger(WINDOW_SECTION, 'BrowserFontSize', 0);
2221                 FBrowserFontBold := memIni.ReadInteger(WINDOW_SECTION, 'BrowserFontBold', 0);
2222                 FBrowserFontItalic := memIni.ReadInteger(WINDOW_SECTION, 'BrowserFontItalic', 0);
2223                 FBrowserFontColor := memIni.ReadInteger(WINDOW_SECTION, 'BrowserFontColor', -1);
2224                 FBrowserBackColor := memIni.ReadInteger(WINDOW_SECTION, 'BrowserBackColor', -1);
2225
2226                 FCabinetFontName := memIni.ReadString(WINDOW_SECTION, 'CabinetFontName', DEFAULT_FONT_NAME);
2227                 FCabinetFontSize := memIni.ReadInteger(WINDOW_SECTION, 'CabinetFontSize', DEFAULT_FONT_SIZE);
2228                 FCabinetFontBold := memIni.ReadBool(WINDOW_SECTION, 'CabinetFontBold', False);
2229                 FCabinetFontItalic := memIni.ReadBool(WINDOW_SECTION, 'CabinetFontItalic', False);
2230                 FCabinetFontColor := StringToColor(memIni.ReadString(WINDOW_SECTION, 'CabinetFontColor', DEFAULT_FONT_COLOR));
2231                 FCabinetBackColor := StringToColor(memIni.ReadString(WINDOW_SECTION, 'CabinetBackColor', DEFAULT_WINDOW_COLOR));
2232
2233                 FListFontName := memIni.ReadString(WINDOW_SECTION, 'ListFontName', DEFAULT_FONT_NAME);
2234                 FListFontSize := memIni.ReadInteger(WINDOW_SECTION, 'ListFontSize', DEFAULT_FONT_SIZE);
2235                 FListFontBold := memIni.ReadBool(WINDOW_SECTION, 'ListFontBold', False);
2236                 FListFontItalic := memIni.ReadBool(WINDOW_SECTION, 'ListFontItalic', False);
2237                 FListFontColor := StringToColor(memIni.ReadString(WINDOW_SECTION, 'ListFontColor', DEFAULT_FONT_COLOR));
2238                 FListBackColor := StringToColor(memIni.ReadString(WINDOW_SECTION, 'ListBackColor', DEFAULT_WINDOW_COLOR));
2239                 FUseOddColorOddResNum := memIni.ReadBool(WINDOW_SECTION,'UseOddColor', False);
2240                 FOddColor := StringToColor(memIni.ReadString(WINDOW_SECTION, 'OddColor', DEFAULT_WINDOW_COLOR));
2241                 FUnFocusedBold := memIni.ReadBool(WINDOW_SECTION,'UnFocusedBold', False);
2242
2243                 FEditorFontName := memIni.ReadString(WINDOW_SECTION, 'EditorFontName', DEFAULT_FONT_NAME);
2244                 FEditorFontSize := memIni.ReadInteger(WINDOW_SECTION, 'EditorFontSize', DEFAULT_FONT_SIZE);
2245                 FEditorFontBold := memIni.ReadBool(WINDOW_SECTION, 'EditorFontBold', False);
2246                 FEditorFontItalic := memIni.ReadBool(WINDOW_SECTION, 'EditorFontItalic', False);
2247                 FEditorFontColor := StringToColor(memIni.ReadString(WINDOW_SECTION, 'EditorFontColor', DEFAULT_FONT_COLOR));
2248                 FEditorBackColor := StringToColor(memIni.ReadString(WINDOW_SECTION, 'EditorBackColor', DEFAULT_WINDOW_COLOR));
2249
2250                 FBrowserTabFontName := memIni.ReadString(WINDOW_SECTION, 'BrowserTabFontName', DEFAULT_TAB_FONT_NAME);
2251                 FBrowserTabFontSize := memIni.ReadInteger(WINDOW_SECTION, 'BrowserTabFontSize', DEFAULT_TAB_FONT_SIZE);
2252                 FBrowserTabFontBold := memIni.ReadBool(WINDOW_SECTION, 'BrowserTabFontBold', False);
2253                 FBrowserTabFontItalic := memIni.ReadBool(WINDOW_SECTION, 'BrowserTabFontItalic', False);
2254
2255                 FHintFontName := memIni.ReadString(WINDOW_SECTION, 'HintFontName', Screen.HintFont.Name);
2256                 FHintFontSize := memIni.ReadInteger(WINDOW_SECTION, 'HintFontSize', Screen.HintFont.Size);
2257                 //FHintFontBold := memIni.ReadBool(WINDOW_SECTION, 'HintFontBold', False);
2258                 //FHintFontItalic := memIni.ReadBool(WINDOW_SECTION, 'HintFontItalic', False);
2259                 FHintFontColor := StringToColor(memIni.ReadString(WINDOW_SECTION, 'HintFontColor', DEFAULT_FONT_COLOR));
2260                 FHintBackColor := StringToColor(memIni.ReadString(WINDOW_SECTION, 'HintBackColor', 'clInfoBk'));
2261     end;
2262 end;
2263 {
2264 \brief  \93ü\97Í\97\9a\97ð\93Ç\82Ý\8d\9e\82Ý\81i\8c\9f\8dõ\81{\83\81\81[\83\8b\97\93\81{\96¼\91O\81j
2265 \param  memIni  ini\83t\83@\83C\83\8b
2266 }
2267 procedure TSetting.ReadInputHisotrys(memIni: TMemIniFile);
2268 const
2269     SECTIONS : array[0..2] of string = ('Name', 'Mail', 'SelectText');
2270 var
2271         wkList : TStringList;
2272     wkStr : string;
2273     i, j : Integer;
2274     listArray : array[0..2] of TStringList;
2275 begin
2276     if (memIni <> nil) then begin
2277         listArray[0] := FNameList;
2278         listArray[1] := FMailList;
2279         listArray[2] := FSelectTextList;
2280         wkList := TStringList.Create;
2281         try
2282             for i := 0 to High(listArray) do begin
2283                 memIni.ReadSection(SECTIONS[i], wkList);
2284                 for j := 0 to wkList.Count -1 do begin
2285                     wkStr := memIni.ReadString(SECTIONS[i], wkList[j], '');
2286                     if (wkStr <> '') and
2287                         (listArray[i].IndexOf(wkStr) = -1) then begin
2288                         listArray[i].Add(wkStr);
2289                     end;
2290                 end;
2291             end;
2292         finally
2293             wkList.Free;
2294         end;
2295     end;
2296 end;
2297 {
2298 \breif  \83\8a\83X\83g\83J\83\89\83\80\95\9d\93Ç\82Ý\8d\9e\82Ý
2299 \param  memIni  ini\83t\83@\83C\83\8b
2300 }
2301 procedure TSetting.ReadListColumnWidth(memIni: TMemIniFile);
2302 const
2303     SECTIONS : array[0..2] of string =
2304         ('BBSColumnWidth', 'CategoryColumnWidth', 'BoardColumnWidth');
2305         DEFAULT_BBS_WIDTH: array[0..0] of Integer = (140);
2306         DEFAULT_CATEGORY_WIDTH: array[0..2] of Integer = (150, 80, 130);
2307         DEFAULT_BOARD_WIDTH: array[0..10] of Integer = (350, 60, 60, 60, 60, 60, 80, 130, 130, 130, 60);
2308         MAX_WIDTH: Integer = 2000;
2309 var
2310         wkList : TStringList;
2311     i : Integer;
2312 begin
2313     if (memIni <> nil) then begin
2314                 // \83\8a\83X\83g\83J\83\89\83\80\95\9d
2315                 wkList := TStringList.Create;
2316                 try
2317                         memIni.ReadSection(SECTIONS[0], wkList);
2318                         if Length(FBBSColumnWidth) <> wkList.Count then begin
2319                                 memIni.EraseSection(SECTIONS[0]);
2320                         end;
2321                         for i := 0 to High(FBBSColumnWidth) do begin
2322                                 BBSColumnWidth[i] := memIni.ReadInteger(SECTIONS[0],
2323                      'ID' + IntToStr(i), DEFAULT_BBS_WIDTH[i]);
2324                                 if BBSColumnWidth[i] > MAX_WIDTH then
2325                                         BBSColumnWidth[i] := DEFAULT_BBS_WIDTH[i];
2326                         end;
2327                         memIni.ReadSection(SECTIONS[1], wkList);
2328                         if Length(FCategoryColumnWidth) <> wkList.Count then begin
2329                                 memIni.EraseSection(SECTIONS[1]);
2330                         end;
2331                         for i := 0 to High(FCategoryColumnWidth) do begin
2332                                 CategoryColumnWidth[i] := memIni.ReadInteger(SECTIONS[1],
2333                      'ID' + IntToStr(i), DEFAULT_CATEGORY_WIDTH[i]);
2334                                 if CategoryColumnWidth[i] > MAX_WIDTH then
2335                                         CategoryColumnWidth[i] := DEFAULT_CATEGORY_WIDTH[i];
2336                         end;
2337                         memIni.ReadSection(SECTIONS[2], wkList);
2338                         if Length(FBoardColumnWidth) <> wkList.Count then begin
2339                                 memIni.EraseSection(SECTIONS[2]);
2340                         end;
2341                         for i := 0 to High(FBoardColumnWidth) do begin
2342                                 BoardColumnWidth[i] := memIni.ReadInteger(SECTIONS[2],
2343                      'ID' + IntToStr(i), DEFAULT_BOARD_WIDTH[i]);
2344                                 if BoardColumnWidth[i] > MAX_WIDTH then
2345                                         BoardColumnWidth[i] := DEFAULT_BOARD_WIDTH[i];
2346                         end;
2347                 finally
2348                         wkList.Free;
2349                 end;
2350     end;
2351 end;
2352 //! \83J\83e\83S\83\8a\83\8a\83X\83g\83J\83\89\83\80\8f\87\8f\98\93Ç\82Ý\8d\9e\82Ý
2353 procedure TSetting.ReadOrdColumn(memIni: TMemIniFile);
2354 var
2355         wkList : TStringList;
2356     wkStr : string;
2357     i, id, code : Integer;
2358 begin
2359     if (memIni <> nil) then begin
2360                 wkList := TStringList.Create;
2361                 try
2362                         memIni.ReadSection( 'BBSColumnOrder', wkList );
2363                         for i := 0 to wkList.Count - 1 do begin
2364                                 wkStr := memIni.ReadString( 'BBSColumnOrder', 'ID' + IntToStr( i ), '' );
2365                                 Val( wkStr, id, code );
2366                                 if code = 0 then
2367                                         FBBSColumnOrder.Add( TGikoBBSColumnID( id ) );
2368                         end;
2369                         if FBBSColumnOrder.Count = 0 then begin
2370                                 // \90Ý\92è\82ª\96³\82¢\82Ì\82Å\8dì\90¬
2371                                 for i := 0 to Integer( High( TGikoBBSColumnID ) ) do
2372                                         FBBSColumnOrder.Add( TGikoBBSColumnID( i ) );
2373                         end;
2374
2375                         memIni.ReadSection( 'CategoryColumnOrder', wkList );
2376                         for i := 0 to wkList.Count - 1 do begin
2377                                 wkStr := memIni.ReadString( 'CategoryColumnOrder', 'ID' + IntToStr( i ), '' );
2378                                 Val( wkStr, id, code );
2379                                 if code = 0 then
2380                                         FCategoryColumnOrder.Add( TGikoCategoryColumnID( id ) );
2381                         end;
2382                         if FCategoryColumnOrder.Count = 0 then begin
2383                                 // \90Ý\92è\82ª\96³\82¢\82Ì\82Å\8dì\90¬
2384                                 for i := 0 to Integer( High( TGikoCategoryColumnID ) ) do
2385                                         FCategoryColumnOrder.Add( TGikoCategoryColumnID( i ) );
2386                         end;
2387
2388                         memIni.ReadSection( 'BoardColumnOrder', wkList );
2389                         for i := 0 to wkList.Count - 1 do begin
2390                                 wkStr := memIni.ReadString( 'BoardColumnOrder', 'ID' + IntToStr( i ), '' );
2391                                 Val( wkStr, id, code );
2392                                 if code = 0 then
2393                                         FBoardColumnOrder.Add( TGikoBoardColumnID( id ) );
2394                         end;
2395                         if FBoardColumnOrder.Count = 0 then begin
2396                                 // \90Ý\92è\82ª\96³\82¢\82Ì\82Å\8dì\90¬
2397                                 for i := 0 to Integer( High( TGikoBoardColumnID ) ) do begin
2398                                         // \90¨\82¢\82Ì\83J\83\89\83\80\82Í\83f\83t\83H\83\8b\83g\82Å\94ñ\95\\8e¦\82É\82·\82é
2399                                         if ( i <> Ord(gbcVigor) ) then begin
2400                                                 FBoardColumnOrder.Add( TGikoBoardColumnID( i ) );
2401                                         end;
2402                                 end;
2403                         end;
2404                 finally
2405                         wkList.Free;
2406                 end;
2407     end;
2408 end;
2409
2410 function TSetting.GetCSSFileName: string;
2411 begin
2412     Result := FSkinFiles.FileName;
2413 end;
2414
2415 end.
2416