OSDN Git Service

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