7 SysUtils, Classes, Graphics, Forms, {Math, IniFiles, UCryptAuto, UBase64,}
8 ComCtrls, GestureModel, IniFiles;
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
17 TGikoTabPosition = (gtpTop, gtpBottom); //
\83^
\83u
\88Ê
\92u
18 TGikoTabAppend = (gtaFirst, gtpLast); //
\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);
34 ///
\83X
\83\8c\83b
\83h
\88ê
\97\97\95\
\8e¦
\94Í
\88Í
35 TGikoThreadRange = (gtrAll, gtrSelect, gtrLog, gtrNew, gtrLive, gtrArch);
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);
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 )
50 function GetItem( index : integer ) : TGikoBBSColumnID;
51 procedure SetItem( index : integer; value : TGikoBBSColumnID);
54 destructor Destroy; override;
55 function Add( value : TGikoBBSColumnID ) : Integer;
56 property Items[index : integer]: TGikoBBSColumnID read GetItem write SetItem; default;
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 )
66 function GetItem( index : integer ) : TGikoCategoryColumnID;
67 procedure SetItem( index : integer; value : TGikoCategoryColumnID);
70 destructor Destroy; override;
71 function Add( value : TGikoCategoryColumnID ) : Integer;
72 property Items[index : integer]: TGikoCategoryColumnID read GetItem write SetItem; default;
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 )
88 function GetItem( index : integer ) : TGikoBoardColumnID;
89 procedure SetItem( index : integer; value : TGikoBoardColumnID);
92 destructor Destroy; override;
93 function Add( value : TGikoBoardColumnID ) : Integer;
94 property Items[index : integer]: TGikoBoardColumnID read GetItem write SetItem; default;
98 //CoolBar
\90Ý
\92è
\83\8c\83R
\81[
\83h
105 TSetting = class(TObject)
107 //
\8eó
\90M
\83o
\83b
\83t
\83@
\83T
\83C
\83Y
108 FRecvBufferSize: Integer;
111 //
\83v
\83\8d\83L
\83V
\90Ú
\91±HTTP1.1
\8eg
\97p
112 FProxyProtocol: Boolean;
114 //
\83v
\83\8d\83L
\83V
\81i
\93Ç
\8d\9e\97p
\81j
116 FReadProxyAddress: string;
117 FReadProxyPort: Integer;
118 FReadProxyUserID: string;
119 FReadProxyPassword: string;
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;
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;
137 FListFontName: string;
138 FListFontSize: Integer;
139 FListFontBold: Boolean;
140 FListFontItalic: Boolean;
141 FListFontColor: TColor;
142 FListBackColor: TColor;
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¶
153 FEditorFontName: string;
154 FEditorFontSize: Integer;
155 FEditorFontBold: Boolean;
156 FEditorFontItalic: Boolean;
157 FEditorFontColor: TColor;
158 FEditorBackColor: TColor;
160 //
\83^
\83u
\83t
\83H
\83\93\83g
161 FBrowserTabFontName: string;
162 FBrowserTabFontSize: Integer;
163 FBrowserTabFontBold: Boolean;
164 FBrowserTabFontItalic: Boolean;
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;
174 //
\83E
\83B
\83\93\83h
\83E
\83T
\83C
\83Y
176 FWindowLeft: Integer;
177 FWindowHeight: Integer;
178 FWindowWidth: Integer;
180 //
\83\8a\83X
\83g
\83r
\83\85\81[
\83X
\83^
\83C
\83\8b
181 FListStyle: TViewStyle;
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;
192 //
\83u
\83\89\83E
\83U
\83^
\83u
193 FBrowserTabVisible: Boolean;
194 FBrowserTabPosition: TGikoTabPosition;
195 FBrowserTabAppend: TGikoTabAppend;
196 FBrowserTabStyle: TGikoTabStyle;
198 //
\83\81\83b
\83Z
\81[
\83W
\83o
\81[
199 FMessageBarVisible: Boolean;
200 FMessegeBarHeight: Integer;
202 //
\83X
\83e
\81[
\83^
\83X
\83o
\81[
203 FStatusBarVisible: Boolean;
205 //
\83L
\83\83\83r
\83l
\83b
\83g
\89Â
\8e\8b\81E
\83T
\83C
\83Y
206 FCabinetVisible: Boolean;
207 FCabinetWidth: Integer;
209 //
\83\8a\83X
\83g
\81E
\83u
\83\89\83E
\83U
\83T
\83C
\83Y
210 FListOrientation: TGikoListOrientation;
211 FListHeight: Integer;
212 FListHeightState: TGikoListState;
214 FListWidthState: TGikoListState;
215 // FListHeightMax: Boolean;
216 // FListWidthMax: Boolean;
218 //
\91\97\90M
\97p
\96¼
\91O
\81E
\83\81\81[
\83\8b
219 FNameList: TStringList;
220 FMailList: TStringList;
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;
231 //
\83\8a\83X
\83g
\94Ô
\8d\86\95\
\8e¦
232 FListViewNo: Boolean;
235 //CSS
\83t
\83@
\83C
\83\8b\96¼
236 FCSSFileName: string;
237 //
\83X
\83L
\83\93\95\
\8e¦(
\88ê
\8e\9e\93I
\82È
\82à
\82Ì
\82Å ini
\82É
\95Û
\91¶
\82Í
\82³
\82ê
\82È
\82¢)
239 //
\82©
\82¿
\82ã
\81`
\82µ
\82á
\97p
\82ÌSkin
\82ð
\97\98\97p
\82·
\82é
\82©
240 FUseKatjushaType : Boolean;
243 ///
\83\8c\83X
\95\
\8e¦
\94Í
\88Í
245 ///
\8bN
\93®
\8e\9e\83\8c\83X
\95\
\8e¦
\94Í
\88Í
\82Ì
\8cÅ
\92è
246 FResRangeHold : Boolean;
247 ///
\83X
\83\8c\83b
\83h
\88ê
\97\97\95\
\8e¦
\94Í
\88Í
248 FThreadRange : TGikoThreadRange;
249 //
\94ñ
\83A
\83N
\83e
\83B
\83u
\8e\9e\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\95\
\8e¦
250 FUnActivePopup: Boolean;
251 //
\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\83w
\83b
\83_
\81[
\83{
\81[
\83\8b\83h
252 FResPopupHeaderBold: Boolean;
254 //
\83\8d\83O
\83t
\83H
\83\8b\83_
256 FLogFolderP: string; //
\83p
\83X
\96¼
\82ª
\83p
\83X
\8bæ
\90Ø
\82è
\8bL
\8d\86\82Å
\8fI
\82í
\82Á
\82Ä
\82¢
\82é
\81B
257 FNewLogFolder: string;
259 //
\83\8a\83X
\83g
\83J
\83\89\83\80\83w
\83b
\83_
\81[
\83T
\83C
\83Y
260 FBBSColumnWidth: array[0..0] of Integer;
261 FCategoryColumnWidth: array[0..2] of Integer;
262 FBoardColumnWidth: array[0..10] of Integer;
264 ///
\83J
\83e
\83S
\83\8a\83\8a\83X
\83g
\83J
\83\89\83\80\8f\87\8f\98
265 FBBSColumnOrder : TGikoBBSColumnList;
266 ///
\94Â
\83\8a\83X
\83g
\83J
\83\89\83\80\8f\87\8f\98
267 FCategoryColumnOrder : TGikoCategoryColumnList;
268 ///
\83X
\83\8c\83\8a\83X
\83g
\83J
\83\89\83\80\8f\87\8f\98
269 FBoardColumnOrder : TGikoBoardColumnList;
272 FBBSSortIndex: Integer;
273 FBBSSortOrder: Boolean;
274 FCategorySortIndex: Integer;
275 FCategorySortOrder: Boolean;
276 FBoardSortIndex: Integer;
277 FBoardSortOrder: Boolean;
279 //Dat
\97\8e\82¿
\83X
\83\8c\83\
\81[
\83g
\8f\87
280 FDatOchiSortIndex: Integer;
281 FDatOchiSortOrder: Boolean;
283 //
\8di
\8d\9e\82Ý
\95¶
\8e\9a\97ñ
284 FSelectTextList: TStringList;
287 //FBoardURL2ch: string;
288 FBoardURLs: TStringList;
289 FBoardURLSelected: Integer;
291 //
\83\86\81[
\83UID
\81E
\83p
\83X
\83\8f\81[
\83h
295 FForcedLogin: Boolean;
298 //URL
\83N
\83\8a\83b
\83N
\8e\9e\8bN
\93®
\83A
\83v
\83\8a
302 //mailto
\83N
\83\8a\83b
\83N
\8e\9e\93®
\8dì
303 FOpenMailer: Boolean;
308 //CoolBar
\81i
\83\81\83C
\83\93\81E
\94Â
\81E
\83u
\83\89\83E
\83U
\81j
309 FMainCoolBar: array[0..MAIN_COOLBAND_COUNT - 1] of TCoolSet;
310 FListCoolBar: array[0..LIST_COOLBAND_COUNT - 1] of TCoolSet;
311 FBrowserCoolBar: array[0..BROWSER_COOLBAND_COUNT - 1] of TCoolSet;
314 FListToolBarWrapable: Boolean;
315 FBrowserToolBarWrapable: Boolean;
317 //
\83|
\83b
\83v
\83A
\83b
\83v
\88Ê
\92u
318 FPopupPosition: TGikoPopupPosition;
320 //
\83A
\83h
\83\8c\83X
\83o
\81[
321 FURLDisplay: Boolean;
322 FAddressBarTabStop: Boolean;
323 FLinkAddAddressBar: Boolean;
324 FAddressHistoryCount: Integer;
326 //
\89æ
\91\9c\83v
\83\8c\83r
\83\85\81[
327 FPreviewVisible: Boolean;
328 FPreviewSize: TGikoPreviewSize;
329 FPreviewWait: Integer;
331 //
\83u
\83\89\83E
\83U
332 FBrowserAutoMaximize: TGikoBrowserAutoMaximize;
334 //
\83X
\83\8c\83b
\83h
\88ê
\97\97\8dX
\90V
\83A
\83C
\83R
\83\93\95\
\8e¦
335 FListIconVisible: Boolean;
337 //
\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©
338 FCreationTimeLogs: Boolean;
339 //
\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¢
340 FFutureThread: Boolean;
342 //
\8f\91\82«
\8d\9e\82Ý
\8e\9e\83}
\83V
\83\93\8e\9e\8aÔ
\8eg
\97p
\90Ý
\92è
343 FUseMachineTime: Boolean;
344 FTimeAdjustSec: Integer;
345 FTimeAdjust: Boolean;
348 FAbonDeleterlo : Boolean; //&rlo;
\82ð
\8dí
\82é
\82©
349 FAbonReplaceul : Boolean; //<ul>
\83^
\83O
\82ð<br>
\83^
\83O
\82É
\92u
\8a·
\82·
\82é
\82©
350 FPopUpAbon : Boolean; //
\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\8e\9e\82Ì
\82 \82Ú
\81`
\82ñ
\97L
\8cø
351 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¦
352 FAddResAnchor : Boolean; //NG
\83\8c\83X
\82Ö
\82Ì
\83\8c\83X
\83A
\83\93\83J
\81[
\82ð
\92Ç
\89Á
\82·
\82é
353 FDeleteSyria : Boolean; //
\83V
\83\8a\83A
\8cê
\83u
\83\89\83N
\83\89\91Î
\8dô
354 FIgnoreKana : Boolean; //
\91S
\94¼
\8ap
\82Ð
\82ç
\83J
\83i
\82Ì
\88á
\82¢
\82ð
\96³
\8e\8b\82·
\82é
\82©
356 //
\83X
\83\8c\83b
\83h
\8di
\8d\9e\83t
\83B
\81[
\83\8b\83h
\82Ì
\95\9d
357 FSelectComboBoxWidth : Integer;
359 //
\8dÅ
\8cã
\82É
\91I
\91ð
\82³
\82ê
\82½
\83I
\83v
\83V
\83\87\83\93\83_
\83C
\83A
\83\8d\83O
\82Ì
\83^
\83u
360 FOptionDialogTabIndex: Integer;
362 //
\8dÅ
\8cã
\82É
\91I
\91ð
\82³
\82ê
\82½
\83L
\83\83\83r
\83l
\83b
\83g
363 FCabinetIndex: Integer;
365 //
\8fI
\97¹
\8e\9e\82É
\8am
\94F
\83_
\83C
\83A
\83\8d\83O
\82ð
\95\
\8e¦
\82·
\82é
\82©
366 FShowDialogForEnd : Boolean;
367 //
\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é
368 FShowDialogForAllTabClose: Boolean;
369 //
\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©
370 FUseOddColorOddResNum: Boolean;
372 //
\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©
373 FUnFocusedBold : Boolean;
375 //Samba24
\91Î
\8dô
\8b@
\94\
\82ð
\8eg
\82¤
\82©
378 //
\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©
379 FResAnchorJamp: Boolean;
381 //Tab
\8e©
\93®
\95Û
\91¶
382 FTabAutoLoadSave : Boolean;
384 //
\82É
\82¿
\82á
\82ñ
\8cê
\88Ä
\93à
\83T
\83|
\81[
\83g
\8b@
\94\
385 F2chSupport : Boolean;
388 FSpaceToNBSP : Boolean; ///<
\94¼
\8ap
\83X
\83y
\81[
\83X
\81ATab
\82ð
\82É
\92u
\8a·
389 FAmpToCharRef : Boolean; ///< '&'
\82ð &
\82É
\92u
\8a·
391 //
\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Ô
392 FSelectInterval : Integer;
394 //KuroutSettingTab
\8fÚ
\8d×
\90Ý
\92è
\83^
\83u
\82ÌActiveTab
395 FKuroutSettingTabIndex: Integer;
397 //!
\83}
\83E
\83X
\83W
\83F
\83X
\83`
\83\83\81[
398 FGestures : TGestureModel;
399 //!
\83}
\83E
\83X
\83W
\83F
\83X
\83`
\83\83\81[
\82ð
\8eg
\97p
\82·
\82é
\82©
\82Ç
\82¤
\82©
400 FGestureEnabled : Boolean;
402 //
\83t
\83V
\83A
\83i
\83g
\83\89\83b
\83v
\90Ý
\92è
403 FLocalTrapAtt : Boolean;
404 FRemoteTrapAtt : Boolean;
405 FReadTimeOut: Integer;
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©
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;
415 //
\94F
\8fØ
\97p
\83\86\81[
\83UID
\81E
\83p
\83X
\83\8f\81[
\83h
418 FBeAutoLogin: Boolean;
420 //
\97\9a\97ð
\82Ì
\8dÅ
\91å
\95Û
\91¶
\8c\8f\90\94
421 FMaxRecordCount : Integer;
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;
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;
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 function GetMainCoolSet(Index: Integer): TCoolSet;
440 function GetBoardCoolSet(Index: Integer): TCoolSet;
441 function GetBrowserCoolSet(Index: Integer): TCoolSet;
442 procedure SetMainCoolSet(Index: Integer; CoolSet: TCoolSet);
443 procedure SetBoardCoolSet(Index: Integer; CoolSet: TCoolSet);
444 procedure SetBrowserCoolSet(Index: Integer; CoolSet: TCoolSet);
446 function GetBBSColumnWidth(index: Integer): Integer;
447 function GetCategoryColumnWidth(index: Integer): Integer;
448 function GetBoardColumnWidth(index: Integer): Integer;
449 procedure SetBBSColumnWidth(index: Integer; value: Integer);
450 procedure SetCategoryColumnWidth(index: Integer; value: Integer);
451 procedure SetBoardColumnWidth(index: Integer; value: Integer);
453 function GetSoundName(Index: Integer): string;
454 function GetSoundViewName(Index: Integer): string;
455 function GetSoundFileName(Index: Integer): string;
456 procedure SetSoundFileName(Index: Integer; value: string);
457 function Encrypt(s: string): string;
458 function Decrypt(s: string): string;
460 procedure MakeURLIniFile();
462 procedure SetUseCSS( value: Boolean );
463 procedure SetCSSFileName( fileName: string );
464 //!
\83v
\83\8d\83L
\83V
\90Ý
\92è
\93Ç
\82Ý
\8d\9e\82Ý
465 procedure ReadProxySettings(memIni: TMemIniFile);
466 //!
\8ae
\8eí
\83E
\83B
\83\93\83h
\83E
\90Ý
\92è
\93Ç
\82Ý
\8d\9e\82Ý
467 procedure ReadWindowSettings(memIni: TMemIniFile);
468 //!
\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
469 procedure ReadInputHisotrys(memIni: TMemIniFile);
470 //!
\83\8a\83X
\83g
\83J
\83\89\83\80\95\9d\93Ç
\82Ý
\8d\9e\82Ý
471 procedure ReadListColumnWidth(memIni: TMemIniFile);
472 //!
\83J
\83e
\83S
\83\8a\83\8a\83X
\83g
\83J
\83\89\83\80\8f\87\8f\98\93Ç
\82Ý
\8d\9e\82Ý
473 procedure ReadOrdColumn(memIni: TMemIniFile);
478 destructor Destroy; override;
479 function GetFileName: string;
480 function GetBoardURLFileName: string;
481 procedure ReadSettingFile;
482 procedure ReadBoardURLsFile;
483 procedure WriteSystemSettingFile;
484 procedure WriteWindowSettingFile;
485 procedure WriteNameMailSettingFile;
486 procedure WriteFolderSettingFile();
487 procedure WriteBoardURLSettingFile;
488 function GetSoundCount: Integer;
489 function FindSoundFileName(Name: string): string;
491 function GetBoardFileName: string;
492 function GetCustomBoardFileName: string;
493 function GetBoardDir: string;
494 function GetHtmlTempFileName: string;
495 function GetAppDir: string;
496 function GetTempFolder: string;
497 function GetSentFileName: string;
498 function GetConfigDir: string;
499 function GetSkinDir: string;
500 function GetSkinHeaderFileName: string;
501 function GetSkinFooterFileName: string;
502 function GetSkinResFileName: string;
503 function GetSkinNewResFileName: string;
504 function GetSkinBookmarkFileName: string;
505 function GetSkinNewmarkFileName: string;
506 function GetStyleSheetDir: string;
507 function GetOutBoxFileName: string;
508 function GetNGWordsDir: string;
509 function GetBoardPlugInDir: string;
510 function GetSambaFileName: string;
511 function GetIgnoreFileName: string;
512 function GetGestureFileName : string;
513 function GetSpamFilterFileName : string;
514 function GetLanguageFileName: string;
515 function GetMainKeyFileName: String;
516 function GetEditorKeyFileName: String;
517 procedure WriteLogFolder(AVal : String);
518 function GetInputAssistFileName : String;
520 \brief
\83\8a\83\93\83N
\97\9a\97ð
\82Ì
\95Û
\8e\9d\83T
\83C
\83Y
\82Ìsetter
521 \param AVal
\90Ý
\92è
\82·
\82é
\83T
\83C
\83Y( >0)
523 procedure SetMoveHistorySize(AVal : Integer);
524 //
\8eó
\90M
\83o
\83b
\83t
\83@
\83T
\83C
\83Y
525 property RecvBufferSize: Integer read FRecvBufferSize write FRecvBufferSize;
527 property Protocol: Boolean read FProtocol write FProtocol;
528 //
\83v
\83\8d\83L
\83V
\90Ú
\91±HTTP1.1
\8eg
\97p
529 property ProxyProtocol: Boolean read FProxyProtocol write FProxyProtocol;
531 property ReadProxy: Boolean read FReadProxy write FReadProxy;
532 property ReadProxyAddress: string read FReadProxyAddress write FReadProxyAddress;
533 property ReadProxyPort: Integer read FReadProxyPort write FReadProxyPort;
534 property ReadProxyUserID: string read FReadProxyUserID write FReadProxyUserID;
535 property ReadProxyPassword: string read FReadProxyPassword write FReadProxyPassword;
537 property WriteProxy: Boolean read FWriteProxy write FWriteProxy;
538 property WriteProxyAddress: string read FWriteProxyAddress write FWriteProxyAddress;
539 property WriteProxyPort: Integer read FWriteProxyPort write FWriteProxyPort;
540 property WriteProxyUserID: string read FWriteProxyUserID write FWriteProxyUserID;
541 property WriteProxyPassword: string read FWriteProxyPassword write FWriteProxyPassword;
543 property CabinetFontName: string read FCabinetFontName write FCabinetFontName;
544 property CabinetFontSize: Integer read FCabinetFontSize write FCabinetFontSize;
545 property CabinetFontBold: Boolean read FCabinetFontBold write FCabinetFontBold;
546 property CabinetFontItalic: Boolean read FCabinetFontItalic write FCabinetFontItalic;
547 property CabinetFontColor: TColor read FCabinetFontColor write FCabinetFontColor;
548 property CabinetBackColor: TColor read FCabinetBackColor write FCabinetBackColor;
550 property ListFontName: string read FListFontName write FListFontName;
551 property ListFontSize: Integer read FListFontSize write FListFontSize;
552 property ListFontBold: Boolean read FListFontBold write FListFontBold;
553 property ListFontItalic: Boolean read FListFontItalic write FListFontItalic;
554 property ListFontColor: TColor read FListFontColor write FListFontColor;
555 property ListBackColor: TColor read FListBackColor write FListBackColor;
557 property BrowserFontName: string read FBrowserFontName write FBrowserFontName;
558 property BrowserFontSize: Integer read FBrowserFontSize write FBrowserFontSize;
559 property BrowserFontBold: Integer read FBrowserFontBold write FBrowserFontBold;
560 property BrowserFontItalic: Integer read FBrowserFontItalic write FBrowserFontItalic;
561 property BrowserFontColor: Integer read FBrowserFontColor write FBrowserFontColor;
562 property BrowserBackColor: Integer read FBrowserBackColor write FBrowserBackColor;
564 property EditorFontName: string read FEditorFontName write FEditorFontName;
565 property EditorFontSize: Integer read FEditorFontSize write FEditorFontSize;
566 property EditorFontBold: Boolean read FEditorFontBold write FEditorFontBold;
567 property EditorFontItalic: Boolean read FEditorFontItalic write FEditorFontItalic;
568 property EditorFontColor: TColor read FEditorFontColor write FEditorFontColor;
569 property EditorBackColor: TColor read FEditorBackColor write FEditorBackColor;
571 property BrowserTabFontName: string read FBrowserTabFontName write FBrowserTabFontName;
572 property BrowserTabFontSize: Integer read FBrowserTabFontSize write FBrowserTabFontSize;
573 property BrowserTabFontBold: Boolean read FBrowserTabFontBold write FBrowserTabFontBold;
574 property BrowserTabFontItalic: Boolean read FBrowserTabFontItalic write FBrowserTabFontItalic;
576 property HintFontName: string read FHintFontName write FHintFontName;
577 property HintFontSize: Integer read FHintFontSize write FHintFontSize;
578 //property HintFontBold: Boolean read FHintFontBold write FHintFontBold;
579 //property HintFontItalic: Boolean read FHintFontItalic write FHintFontItalic;
580 property HintFontColor: TColor read FHintFontColor write FHintFontColor;
581 property HintBackColor: TColor read FHintBackColor write FHintBackColor;
583 property WindowTop: Integer read FWindowTop write FWindowTop;
584 property WindowLeft: Integer read FWindowLeft write FWindowLeft;
585 property WindowHeight: Integer read FWindowHeight write FWindowHeight;
586 property WindowWidth: Integer read FWindowWidth write FWindowWidth;
587 property WindowMax: Boolean read FWindowMax write FWindowMax;
588 property ListStyle: TViewStyle read FListStyle write FListStyle;
590 property StdToolBarVisible: Boolean read FStdToolBarVisible write FStdToolBarVisible;
591 property AddressBarVisible: Boolean read FAddressBarVisible write FAddressBarVisible;
592 property LinkBarVisible: Boolean read FLinkBarVisible write FLinkBarVisible;
593 property ListToolBarVisible: Boolean read FListToolBarVisible write FListToolBarVisible;
594 property ListNameBarVisible: Boolean read FListNameBarVisible write FListNameBarVisible;
595 property BrowserToolBarVisible: Boolean read FBrowserToolBarVisible write FBrowserToolBarVisible;
596 property BrowserNameBarVisible: Boolean read FBrowserNameBarVisible write FBrowserNameBarVisible;
598 property BrowserTabVisible: Boolean read FBrowserTabVisible write FBrowserTabVisible;
599 property BrowserTabPosition: TGikoTabPosition read FBrowserTabPosition write FBrowserTabPosition;
600 property BrowserTabAppend: TGikoTabAppend read FBrowserTabAppend write FBrowserTabAppend;
601 property BrowserTabStyle: TGikoTabStyle read FBrowserTabStyle write FBrowserTabStyle;
603 property MessageBarVisible: Boolean read FMessageBarVisible write FMessageBarVisible;
604 property MessegeBarHeight: Integer read FMessegeBarHeight write FMessegeBarHeight;
606 property StatusBarVisible: Boolean read FStatusBarVisible write FStatusBarVisible;
608 property CabinetVisible: Boolean read FCabinetVisible write FCabinetVisible;
609 property CabinetWidth: Integer read FCabinetWidth write FCabinetWidth;
611 property ListOrientation: TGikoListOrientation read FListOrientation write FListOrientation;
612 property ListHeight: Integer read FListHeight write FListHeight;
613 property ListHeightState: TGikoListState read FListHeightState write FListHeightState;
614 property ListWidth: Integer read FListWidth write FListWidth;
615 property ListWidthState: TGikoListState read FListWidthState write FListWidthState;
616 // property ListHeightMax: Boolean read FListHeightMax write FListHeightMax;
617 // property ListWidthMax: Boolean read FListWidthMax write FListWidthMax;
619 property NameList: TStringList read FNameList write FNameList;
620 property MailList: TStringList read FMailList write FMailList;
621 property SelectTextList: TStringList read FSelectTextList write FSelectTextList;
623 property EditWindowTop: Integer read FEditWindowTop write FEditWindowTop;
624 property EditWindowLeft: Integer read FEditWindowLeft write FEditWindowLeft;
625 property EditWindowHeight: Integer read FEditWindowHeight write FEditWindowHeight;
626 property EditWindowWidth: Integer read FEditWindowWidth write FEditWindowWidth;
627 property EditWindowMax: Boolean read FEditWindowMax write FEditWindowMax;
628 property EditWindowStay: Boolean read FEditWindowStay write FEditWindowStay;
629 property EditWindowTranslucent: Boolean read FEditWindowTranslucent write FEditWindowTranslucent;
631 property ListViewNo: Boolean read FListViewNo write FListViewNo;
632 property UseCSS: Boolean read FUseCSS write SetUseCSS;
633 property CSSFileName: string read FCSSFileName write SetCSSFileName;
634 property UseKatjushaType : Boolean read FUseKatjushaType write FUseKatjushaType;
635 property UseSkin: Boolean read FUseSkin;
637 property ShowMail: Boolean read FShowMail write FShowMail;
638 property ResRange : Longint read FResRange write FResRange;
639 property ResRangeHold : Boolean read FResRangeHold write FResRangeHold;
640 property ThreadRange : TGikoThreadRange read FThreadRange write FThreadRange;
641 property UnActivePopup: Boolean read FUnActivePopup write FUnActivePopup;
642 property ResPopupHeaderBold: Boolean read FResPopupHeaderBold write FResPopupHeaderBold;
644 property LogFolder: string read FLogFolder write WriteLogFolder;
645 property LogFolderP: string read FLogFolderP;
646 property NewLogFolder: string read FNewLogFolder write FNewLogFolder;
648 property BBSColumnWidth[index: Integer]: Integer read GetBBSColumnWidth write SetBBSColumnWidth;
649 property CategoryColumnWidth[index: Integer]: Integer read GetCategoryColumnWidth write SetCategoryColumnWidth;
650 property BoardColumnWidth[index: Integer]: Integer read GetBoardColumnWidth write SetBoardColumnWidth;
652 property BBSColumnOrder : TGikoBBSColumnList read FBBSColumnOrder write FBBSColumnOrder;
653 property CategoryColumnOrder : TGikoCategoryColumnList read FCategoryColumnOrder write FCategoryColumnOrder;
654 property BoardColumnOrder : TGikoBoardColumnList read FBoardColumnOrder write FBoardColumnOrder;
656 property SoundName[index: Integer]: string read GetSoundName;
657 property SoundViewName[index: Integer]: string read GetSoundViewName;
658 property SoundFileName[index: Integer]: string read GetSoundFileName write SetSoundFileName;
660 property BBSSortIndex: Integer read FBBSSortIndex write FBBSSortIndex;
661 property BBSSortOrder: Boolean read FBBSSortOrder write FBBSSortOrder;
662 property CategorySortIndex: Integer read FCategorySortIndex write FCategorySortIndex;
663 property CategorySortOrder: Boolean read FCategorySortOrder write FCategorySortOrder;
664 property BoardSortIndex: Integer read FBoardSortIndex write FBoardSortIndex;
665 property BoardSortOrder: Boolean read FBoardSortOrder write FBoardSortOrder;
667 property DatOchiSortIndex: Integer read FDatOchiSortIndex write FDatOchiSortIndex;
668 property DatOchiSortOrder: Boolean read FDatOchiSortOrder write FDatOchiSortOrder;
670 //property BoardURL2ch: string read FBoardURL2ch write FBoardURL2ch;
671 property BoardURLs: TStringList read FBoardURLs write FBoardURLs;
672 property BoardURLSelected: Integer read FBoardURLSelected write FBoardURLSelected;
673 property UserID: string read FUserID write FUserID;
674 property Password: string read FPassword write FPassword;
675 property AutoLogin: Boolean read FAutoLogin write FAutoLogin;
676 property ForcedLogin: Boolean read FForcedLogin write FForcedLogin;
677 property DolibURL: string read FDolibURL write FDolibURL;
679 property URLApp: Boolean read FURLApp write FURLApp;
680 property URLAppFile: string read FURLAppFile write FURLAppFile;
682 property OpenMailer: Boolean read FOpenMailer write FOpenMailer;
684 property DeleteMsg: Boolean read FDeleteMsg write FDeleteMsg;
686 property MainCoolSet[Index: Integer]: TCoolSet read GetMainCoolSet write SetMainCoolSet;
687 property ListCoolSet[Index: Integer]: TCoolSet read GetBoardCoolSet write SetBoardCoolSet;
688 property BrowserCoolSet[Index: Integer]: TCoolSet read GetBrowserCoolSet write SetBrowserCoolSet;
690 property ListToolBarWrapable: Boolean read FListToolBarWrapable write FListToolBarWrapable;
691 property BrowserToolBarWrapable: Boolean read FBrowserToolBarWrapable write FBrowserToolBarWrapable;
693 property PopupPosition: TGikoPopupPosition read FPopupPosition write FPopupPosition;
695 property URLDisplay: Boolean read FURLDisplay write FURLDisplay;
696 property AddressBarTabStop: Boolean read FAddressBarTabStop write FAddressBarTabStop;
697 property LinkAddAddressBar: Boolean read FLinkAddAddressBar write FLinkAddAddressBar;
698 property AddressHistoryCount: Integer read FAddressHistoryCount write FAddressHistoryCount;
700 property PreviewVisible: Boolean read FPreviewVisible write FPreviewVisible;
701 property PreviewSize: TGikoPreviewSize read FPreviewSize write FPreviewSize;
702 property PreviewWait: Integer read FPreviewWait write FPreviewWait;
703 property BrowserAutoMaximize: TGikoBrowserAutoMaximize read FBrowserAutoMaximize write FBrowserAutoMaximize;
705 property ListIconVisible: Boolean read FListIconVisible write FListIconVisible;
706 property CreationTimeLogs: Boolean read FCreationTimeLogs write FCreationTimeLogs;
707 property FutureThread: Boolean read FFutureThread write FFutureThread;
709 property UseMachineTime: Boolean read FUseMachineTime write FUseMachineTime;
710 property TimeAdjustSec: Integer read FTimeAdjustSec write FTimeAdjustSec;
711 property TimeAdjust: Boolean read FTimeAdjust write FTimeAdjust;
714 property AbonDeleterlo : Boolean read FAbonDeleterlo write FAbonDeleterlo;
715 property AbonReplaceul : Boolean read FAbonReplaceul write FAbonReplaceul;
716 property PopUpAbon : Boolean read FPopUpAbon write FPopUpAbon;
717 property ShowNGLinesNum : Boolean read FShowNGLinesNum write FShowNGLinesNum;
718 property AddResAnchor : Boolean read FAddResAnchor write FAddResAnchor;
719 property DeleteSyria : Boolean read FDeleteSyria write FDeleteSyria;
720 property IgnoreKana : Boolean read FIgnoreKana write FIgnoreKana;
721 //
\83X
\83\8c\83b
\83h
\8di
\8d\9e\83t
\83B
\81[
\83\8b\83h
\82Ì
\95\9d
722 property SelectComboBoxWidth : Integer read FSelectComboBoxWidth write FSelectComboBoxWidth;
724 //
\8dÅ
\8cã
\82É
\91I
\91ð
\82³
\82ê
\82½
\83I
\83v
\83V
\83\87\83\93\83_
\83C
\83A
\83\8d\83O
\82Ì
\83^
\83u
725 property OptionDialogTabIndex : Integer read FOptionDialogTabIndex write FOptionDialogTabIndex;
727 //
\8dÅ
\8cã
\82É
\91I
\91ð
\82³
\82ê
\82½
\83L
\83\83\83r
\83l
\83b
\83g
728 property CabinetIndex : Integer read FCabinetIndex write FCabinetIndex;
730 //
\8fI
\97¹
\8e\9e\82É
\8am
\94F
\83_
\83C
\83A
\83\8d\83O
\82ð
\95\
\8e¦
\82·
\82é
\82©
731 property ShowDialogForEnd : Boolean read FShowDialogForEnd write FShowDialogForEnd;
732 property ShowDialogForAllTabClose: Boolean read FShowDialogForAllTabClose write FShowDialogForAllTabClose;
733 //
\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©
734 property UseOddColorOddResNum: Boolean read FUseOddColorOddResNum write FUseOddColorOddResNum;
735 property OddColor: TColor read FOddColor write FOddColor;
736 property UnFocusedBold : Boolean read FUnFocusedBold write FUnFocusedBold;
737 property UseSamba: Boolean read FUseSamba write FUseSamba;
738 property ResAnchorJamp: Boolean read FResAnchorJamp write FResAnchorJamp;
741 property SpaceToNBSP : Boolean read FSpaceToNBSP write FSpaceToNBSP;
742 property AmpToCharRef : Boolean read FAmpToCharRef write FAmpToCharRef;
744 property SelectInterval : Integer read FSelectInterval write FSelectInterval;
746 property TabAutoLoadSave: Boolean read FTabAutoLoadSave write FTabAutoLoadSave;
747 //property Gengo: TStringList read F2chLanguage write F2chLanguage;
748 property GengoSupport : Boolean read F2chSupport write F2chSupport;
749 property KuroutSettingTabIndex: Integer read FKuroutSettingTabIndex write FKuroutSettingTabIndex;
750 //!
\83}
\83E
\83X
\83W
\83F
\83X
\83`
\83\83\81[
751 property Gestures : TGestureModel read FGestures write FGestures;
752 //!
\83}
\83E
\83X
\83W
\83F
\83X
\83`
\83\83\81[
\82ð
\8eg
\97p
\82·
\82é
\82©
\82Ç
\82¤
\82©
753 property GestureEnabled : Boolean read FGestureEnabled write FGestureEnabled;
754 //
\83t
\83V
\83A
\83i
\83g
\83\89\83b
\83v
\90Ý
\92è
755 property LocalTrapAtt : Boolean read FLocalTrapAtt write FLocalTrapAtt;
756 property RemoteTrapAtt : Boolean read FRemoteTrapAtt write FRemoteTrapAtt;
757 property ReadTimeOut: Integer read FReadTimeOut write FReadTimeOut;
758 //!
\8eg
\97p
\82·
\82é
\83X
\83p
\83\80\83t
\83B
\83\8b\83^
759 property SpamFilterAlgorithm : TGikoSpamFilterAlgorithm
760 read FSpamFilterAlgorithm write FSpamFilterAlgorithm;
761 property Mute: Boolean read FMute write FMute;
762 property UseUndecided: Boolean read FUseUndecided write FUseUndecided;
764 property BeUserID: string read FBeUserID write FBeUserID;
765 property BeCode: string read FBeCode write FBeCode;
766 property BeAutoLogin: Boolean read FBeAutoLogin write FBeAutoLogin;
767 property BeLogin: Boolean read FBeLogin write FBeLogin;
768 property MaxRecordCount : Integer read FMaxRecordCount write FMaxRecordCount;
769 //!
\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©
770 property AutoSortThreadList : Boolean read FAutoSortThreadList write FAutoSortThreadList;
771 //! InputAssist
\83t
\83H
\81[
\83\80\82Ì
\88Ê
\92u
772 property InputAssistFormLeft :Integer read FInputAssistFormLeft write FInputAssistFormLeft;
773 property InputAssistFormTop :Integer read FInputAssistFormTop write FInputAssistFormTop;
774 //! InputAssist
\83t
\83H
\81[
\83\80\82Ì
\83T
\83C
\83Y
775 property InputAssistFormWidth: Integer read FInputAssistFormWidth write FInputAssistFormWidth;
776 property InputAssistFormHeight: Integer read FInputAssistFormHeight write FInputAssistFormHeight;
777 //! Cookie
\82É
\95t
\89Á
\82·
\82é
\8cÅ
\92è
\83R
\81[
\83h
778 property FixedCookie: String read FFixedCookie write FFixedCookie;
779 //!
\83\8a\83\93\83N
\88Ú
\93®
\97\9a\97ð
\82Ì
\95Û
\8e\9d\90\94
780 property MoveHistorySize : Integer read FMoveHistorySize write SetMoveHistorySize;
781 //!
\8dÅ
\8f¬
\89»
\8e\9e\82É
\83^
\83X
\83N
\83g
\83\8c\83C
\82É
\8ai
\94[
\82·
\82é
\82©
782 property StoredTaskTray : Boolean read FStoredTaskTray write FStoredTaskTray;
787 // MAIN_COOLBAND_COUNT = 4; //
\83\81\83C
\83\93CoolBand
\82Ì
\90\94
788 // LIST_COOLBAND_COUNT = 2; //
\94ÂCoolBand
\82Ì
\90\94
789 // BROWSER_COOLBAND_COUNT = 3; //
\83u
\83\89\83E
\83UCoolBand
\82Ì
\90\94
791 BOARD_FILE_NAME = 'board.2ch';
792 CUSTOMBOARD_FILE_NAME = 'custom.2ch';
793 BOARD_DIR_NAME = 'Board';
794 KEY_SETTING_FILE_NAME = 'key.ini';
795 EKEY_SETTING_FILE_NAME = 'Ekey.ini';
796 TEMP_FOLDER = 'Temp';
797 OUTBOX_FILE_NAME = 'outbox.ini';
798 SENT_FILE_NAME = 'sent.ini';
799 CONFIG_DIR_NAME = 'config';
800 CSS_DIR_NAME = 'css';
801 SKIN_DIR_NAME = 'skin';
802 SKIN_HEADER_FILE_NAME = 'Header.html';
803 SKIN_FOOTER_FILE_NAME = 'Footer.html';
804 SKIN_NEWRES_FILE_NAME = 'NewRes.html';
805 SKIN_RES_FILE_NAME = 'Res.html';
806 SKIN_BOOKMARK_FILE_NAME = 'Bookmark.html';
807 SKIN_NEWMARK_FILE_NAME = 'Newmark.html';
808 NGWORDs_DIR_NAME : String = 'NGwords';
809 BOARD_PLUGIN_DIR_NAME = 'BoardPlugin';
810 SAMBATIME_FILE_NAME : String = 'Samba.ini';
811 IGNORE_FILE_NAME : String = 'Ignore.txt';
812 // DOLIB_LOGIN_URL = '/~tora3n2c/futen.cgi';
813 MAX_POPUP_RES : Integer = 10;
814 GESTURE_FILE_NAME = 'Gestures.ini';
815 SPAMFILTER_FILE_NAME = 'SpamFilter.ini';
816 LANGUAGE_FILE_NAME = 'language.ini';
817 INPUTASSIST_FILE_NAME = 'InputAssist.ini';
818 FIXED_COOKIE = 'hana=mogera';
824 Math, UCryptAuto, UBase64;
834 INI_FILE_NAME: string = 'gikoNavi.ini';
835 BOARD_URL_INI_FILE_NAME: string = 'url.ini';
836 DEFAULT_FONT_NAME: string = '
\82l
\82r
\82o
\83S
\83V
\83b
\83N';
837 DEFAULT_FONT_SIZE: Integer = 9;
838 DEFAULT_FONT_COLOR: string = 'clWindowText';
839 DEFAULT_WINDOW_COLOR: string = 'clWindow';
840 DEFAULT_TAB_FONT_NAME: string = '
\82l
\82r
\82o
\83S
\83V
\83b
\83N';
841 DEFAULT_TAB_FONT_SIZE: Integer = 9;
842 DEFAULT_2CH_BOARD_URL1: string = 'http://menu.2ch.net/bbsmenu.html';
843 GIKO_ENCRYPT_TEXT: string = 'gikoNaviEncryptText';
846 SOUND_NAME: array[0..4] of TSoundName = (
847 (Name: 'New'; ViewName: '
\8eæ
\93¾
\90¬
\8c÷'; FileName: ''),
848 (Name: 'NewDiff'; ViewName: '
\8eæ
\93¾
\90¬
\8c÷(
\8d·
\95ª)'; FileName: ''),
849 (Name: 'NoChange'; ViewName: '
\96¢
\8dX
\90V'; FileName: ''),
850 // (Name: 'RoundEnd'; ViewName: '
\8f\84\89ñ
\8fI
\97¹(
\8eæ
\93¾
\82 \82è)'; FileName: ''),
851 // (Name: 'RoundNone'; ViewName: '
\8f\84\89ñ
\8fI
\97¹(
\8eæ
\93¾
\82È
\82µ)'; FileName: ''),
852 (Name: 'ResEnd'; ViewName: '
\83\8c\83X
\91\97\90M
\8a®
\97¹'; FileName: ''),
853 (Name: 'Error'; ViewName: '
\83G
\83\89\81['; FileName: ''));
855 constructor TGikoBBSColumnList.Create;
860 destructor TGikoBBSColumnList.Destroy;
865 function TGikoBBSColumnList.GetItem( index : integer ) : TGikoBBSColumnID;
867 Result := TGikoBBSColumnID( inherited Items[ index ] );
870 procedure TGikoBBSColumnList.SetItem( index : integer; value : TGikoBBSColumnID);
872 inherited Items[ index ] := Pointer( value );
875 function TGikoBBSColumnList.Add( value : TGikoBBSColumnID ) : Integer;
877 Result := inherited Add( Pointer( value ) );
880 constructor TGikoCategoryColumnList.Create;
885 destructor TGikoCategoryColumnList.Destroy;
890 function TGikoCategoryColumnList.GetItem( index : integer ) : TGikoCategoryColumnID;
892 Result := TGikoCategoryColumnID( inherited Items[ index ] );
895 procedure TGikoCategoryColumnList.SetItem( index : integer; value : TGikoCategoryColumnID);
897 inherited Items[ index ] := Pointer( value );
900 function TGikoCategoryColumnList.Add( value : TGikoCategoryColumnID ) : Integer;
902 Result := inherited Add( Pointer( value ) );
905 constructor TGikoBoardColumnList.Create;
910 destructor TGikoBoardColumnList.Destroy;
915 function TGikoBoardColumnList.GetItem( index : integer ) : TGikoBoardColumnID;
917 Result := TGikoBoardColumnID( inherited Items[ index ] );
920 procedure TGikoBoardColumnList.SetItem( index : integer; value : TGikoBoardColumnID);
922 inherited Items[ index ] := Pointer( value );
925 function TGikoBoardColumnList.Add( value : TGikoBoardColumnID ) : Integer;
927 Result := inherited Add( Pointer( value ) );
930 //
\83R
\83\93\83X
\83g
\83\89\83N
\83^
931 constructor TSetting.Create();
933 FNameList := TStringList.Create;
934 FMailList := TStringList.Create;
935 FSelectTextList := TStringList.Create;
936 FBoardURLs := TStringList.Create;
937 FBBSColumnOrder := TGikoBBSColumnList.Create;
938 FCategoryColumnOrder := TGikoCategoryColumnList.Create;
939 FBoardColumnOrder := TGikoBoardColumnList.Create;
940 FGestures := TGestureModel.Create;
941 FNameList.Duplicates := dupIgnore;
942 FMailList.Duplicates := dupIgnore;
943 FBoardURLs.Duplicates := dupIgnore;
944 FSelectTextList.Duplicates := dupIgnore;
949 //
\83f
\83X
\83g
\83\89\83N
\83^
950 destructor TSetting.Destroy();
953 FBoardColumnOrder.Free;
954 FCategoryColumnOrder.Free;
955 FBBSColumnOrder.Free;
956 FSelectTextList.Free;
963 //
\8f\89\8aú
\89»
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
964 function TSetting.GetFileName(): string;
966 Result := ExtractFilePath(Application.ExeName) + INI_FILE_NAME;
969 //
\94Â
\8dX
\90V
\97pURL
\90Ý
\92è
\83t
\83@
\83C
\83\8b\96¼
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
970 function TSetting.GetBoardURLFileName(): string;
972 Result := ExtractFilePath(Application.ExeName) + BOARD_URL_INI_FILE_NAME;
975 //
\90Ý
\92è
\83t
\83@
\83C
\83\8b\93Ç
\8d\9e
976 procedure TSetting.ReadSettingFile();
984 Exists := FileExists(GetFileName);
985 ini := TMemIniFile.Create(GetFileName);
987 //
\8eó
\90M
\83o
\83b
\83t
\83@
\83T
\83C
\83Y
988 FRecvBufferSize := ini.ReadInteger('HTTP', 'RecvBufferSize', 4096);
990 FProtocol := ini.ReadBool('HTTP', 'Protocol', True);
991 //
\83v
\83\8d\83L
\83V
\90Ú
\91±HTTP1.1
\8eg
\97p
992 FProxyProtocol := ini.ReadBool('HTTP', 'ProxyProtocol', False);
994 //
\83v
\83\8d\83L
\83V
\90Ý
\92è
\93Ç
\82Ý
\8d\9e\82Ý
995 ReadProxySettings( ini );
997 //
\8ae
\8eí
\83E
\83B
\83\93\83h
\83E
\82Ì
\90Ý
\92è
\93Ç
\82Ý
\8d\9e\82Ý
998 ReadWindowSettings( ini );
1000 FWindowTop := ini.ReadInteger('WindowSize', 'Top', -1);
1001 FWindowLeft := ini.ReadInteger('WindowSize', 'Left', -1);
1002 FWindowHeight := ini.ReadInteger('WindowSize', 'Height', -1);
1003 FWindowWidth := ini.ReadInteger('WindowSize', 'Width', -1);
1004 FWindowMax := ini.ReadBool('WindowSize', 'Max', false);
1006 if FWindowHeight <= 0 then FWindowHeight := 400;
1007 if FWindowWidth <= 0 then FWindowWidth := 600;
1009 FListStyle := TViewStyle(ini.ReadInteger('ViewStyle', 'ListView', Ord(vsReport)));
1011 FEditWindowTop := ini.ReadInteger('EditorWindowSize', 'Top', -1);
1012 FEditWindowLeft := ini.ReadInteger('EditorWindowSize', 'Left', -1);
1013 FEditWindowHeight := ini.ReadInteger('EditorWindowSize', 'Height', -1);
1014 FEditWindowWidth := ini.ReadInteger('EditorWindowSize', 'Width', -1);
1015 FEditWindowMax := ini.ReadBool('EditorWindowSize', 'Max', False);
1016 FEditWindowStay := ini.ReadBool('EditorWindowSize', 'Stay', False);
1017 FEditWindowTranslucent := ini.ReadBool('EditorWindowSize', 'Translucent', False);
1019 FOptionDialogTabIndex := ini.ReadInteger('OptionDialog', 'TabIndex', 0);
1021 //
\83c
\81[
\83\8b\83o
\81[
1022 FStdToolBarVisible := ini.ReadBool('ToolBar', 'StdVisible', True);
1023 FAddressBarVisible := ini.ReadBool('ToolBar', 'AddressVisible', True);
1024 FLinkBarVisible := ini.ReadBool('ToolBar', 'LinkVisible', True);
1025 FListToolBarVisible := ini.ReadBool('ToolBar', 'ListVisible', True);
1026 FListNameBarVisible := ini.ReadBool('ToolBar', 'ListNameVisible', True);
1027 FBrowserToolBarVisible := ini.ReadBool('ToolBar', 'BrowserVisible', True);
1028 FBrowserNameBarVisible := ini.ReadBool('ToolBar', 'BrowserNameVisible', True);
1029 //
\83c
\81[
\83\8b\83o
\81[Wrapable
1030 FListToolBarWrapable := ini.ReadBool('ToolBar', 'ListWrapable', False);
1031 FBrowserToolBarWrapable := ini.ReadBool('ToolBar', 'BrowserWrapable', False);
1033 FBrowserTabVisible := ini.ReadBool('Tab', 'BrowserTabVisible', True);
1034 FBrowserTabPosition := TGikoTabPosition(ini.ReadInteger('Tab', 'BrowserTabPosition', Ord(gtpTop)));
1035 FBrowserTabAppend := TGikoTabAppend(ini.ReadInteger('Tab', 'BrowserTabAppend', Ord(gtaFirst)));
1036 FBrowserTabStyle := TGikoTabStyle(ini.ReadInteger('Tab', 'BrowserTabStyle', Ord(gtsFlat)));
1038 FMessageBarVisible := ini.ReadBool('MessageBar', 'Visible', True);
1039 FMessegeBarHeight := ini.ReadInteger('MessageBar', 'Height', 30);
1041 FStatusBarVisible := ini.ReadBool('StatusBar', 'Visible', True);
1043 FCabinetVisible := ini.ReadBool('Cabinet', 'Visible', True);
1044 FCabinetWidth := ini.ReadInteger('Cabinet', 'Width', 200);
1045 FCabinetIndex := ini.ReadInteger('Cabinet', 'Index', 0);
1047 FListOrientation := TGikoListOrientation(ini.ReadInteger('List', 'Orientation', Ord(gloHorizontal)));
1048 FListHeight := ini.ReadInteger('List', 'Height', 180);
1049 FListHeightState := TGikoListState(ini.ReadInteger('List', 'HeightState', Ord(glsNormal)));
1050 FListWidth := ini.ReadInteger('List', 'Width', 180);
1051 FListWidthState := TGikoListState(ini.ReadInteger('List', 'WidthState', Ord(glsNormal)));
1052 // FListHeightMax := ini.ReadBool('List', 'HeightMax', False);
1053 // FListWidthMax := ini.ReadBool('List', 'WidthMax', False);
1055 //
\93ü
\97Í
\8d\80\96Ú
\82Ì
\97\9a\97ð
\82ð
\93Ç
\82Ý
\8d\9e\82Þ
1056 ReadInputHisotrys( ini );
1058 //
\83\8a\83X
\83g
\83J
\83\89\83\80\95\9d
1059 ReadListColumnWidth( ini );
1061 //
\83J
\83e
\83S
\83\8a\83\8a\83X
\83g
\83J
\83\89\83\80\8f\87\8f\98
1062 ReadOrdColumn( ini );
1064 //
\83\8a\83X
\83g
\94Ô
\8d\86
1065 FListViewNo := ini.ReadBool('Function', 'ListViewNo', True);
1067 UseCSS := ini.ReadBool('CSS', 'UseCSS', True);
1068 //CSS
\83t
\83@
\83C
\83\8b\96¼
1069 CSSFileName := ini.ReadString('CSS', 'FileName', 'default.css');
1070 //
\82©
\82µ
\82ã
\81`
\82µ
\82á
\82Ì
\83X
\83L
\83\93\82ð
\8eg
\82¤
\82©
1071 FUseKatjushaType := ini.ReadBool('CSS', 'UseKatjushaType', false);
1073 //Mail
\97\93\95\
\8e¦
1074 FShowMail := ini.ReadBool('Thread', 'ShowMail', True);
1075 //
\83\8c\83X
\95\
\8e¦
\94Í
\88Í
1076 if ini.ReadBool('Thread', 'OnlyAHundredRes',false) then
1077 FResRange := 100 //
\8cÃ
\82¢
\90Ý
\92è
\82Ì
\8cÝ
\8a·
\97p
1079 FResRange := ini.ReadInteger( 'Thread', 'ResRange', Ord( grrAll ) );
1080 FResRangeHold := ini.ReadBool( 'Thread', 'ResRangeHold', False );
1081 //
\83X
\83\8c\83b
\83h
\88ê
\97\97\95\
\8e¦
\94Í
\88Í
1082 FThreadRange := TGikoThreadRange( ini.ReadInteger('ThreadList', 'ThreadRange', Ord( gtrAll )) );
1083 //
\94ñ
\83A
\83N
\83e
\83B
\83u
\8e\9e\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\95\
\8e¦
1084 FUnActivePopup := ini.ReadBool('Thread', 'UnActivePopup', False);
1085 //
\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\83w
\83b
\83_
\81[
\83{
\81[
\83\8b\83h
1086 FResPopupHeaderBold := ini.ReadBool('Thread', 'ResPopupHeaderBold', True);
1087 //
\8dí
\8f\9c\8am
\94F
1088 FDeleteMsg := ini.ReadBool('Function', 'LogDeleteMessage', True);
1090 FShowDialogForEnd := ini.ReadBool('Function','ShowDialogForEnd',false);
1092 FShowDialogForAllTabClose := ini.ReadBool('Function','ShowDialogForAllTabClose',false);
1094 FUseSamba := ini.ReadBool('Function','UseSamba', True);
1096 ResAnchorJamp := ini.ReadBool('Function', 'ResAnchoJamp', True);
1097 //
\83\8d\83O
\83t
\83H
\83\8b\83_
1098 LogFolder := ini.ReadString('Folder', 'LogFolder', ExtractFilePath(Application.ExeName) + 'Log');
1102 //
\95¡
\90\94\93o
\98^
\82Å
\82«
\82é
\82æ
\82¤
\82É
\82µ
\82ÄFBoardURLs
\82É
\82µ
\82½
\81@2003/10/05
1103 //FBoardURL2ch := ini.ReadString('BoardURL', '2ch', DEFAULT_2CH_BOARD_URL);
1105 //
\94F
\8fØ
\97p
\83\86\81[
\83UID
\81E
\83p
\83X
\83\8f\81[
\83h
1106 FUserID := ini.ReadString('Attestation', 'UserID', '');
1107 FPassword := Decrypt(ini.ReadString('Attestation', 'Password', ''));
1108 FAutoLogin := ini.ReadBool('Attestation', 'AutoLogin', False);
1109 FForcedLogin := ini.ReadBool('Attestation', 'FForcedLogin', False);
1110 // FDolibURL := ini.ReadString('Attestation', 'FDolibURL', DOLIB_LOGIN_URL);
1112 //URL
\83N
\83\8a\83b
\83N
\8e\9e\8bN
\93®
\83A
\83v
\83\8a
1113 FURLApp := ini.ReadBool('URLApp', 'Select', False);
1114 FURLAppFile := ini.ReadString('URLApp', 'File', '');
1116 //mailto
\83N
\83\8a\83b
\83N
\8e\9e\93®
\8dì
1117 FOpenMailer := ini.ReadBool('Mailto', 'Open', True);
1119 //
\83|
\83b
\83v
\83A
\83b
\83v
\88Ê
\92u
1120 FPopupPosition := TGikoPopupPosition(ini.ReadInteger('Browser', 'PopupPosition', Ord(gppLeftBottom)));
1122 //
\83A
\83h
\83\8c\83X
\83o
\81[
1123 FURLDisplay := ini.ReadBool('AddressBar', 'URLDisplay', False);
1124 FAddressBarTabStop := ini.ReadBool('AddressBar', 'TabStop', True);
1125 FLinkAddAddressBar := ini.ReadBool('AddressBar', 'LinkAdd', False);
1126 FAddressHistoryCount := ini.ReadInteger('AddressBar', 'HistoryCount', 100);
1128 //
\89æ
\91\9c\83v
\83\8c\83r
\83\85\81[
1129 FPreviewVisible := ini.ReadBool('Browser', 'PreviewVisible', True);
1130 FPreviewSize := TGikoPreviewSize(ini.ReadInteger('Browser', 'PreviewSize', Ord(gpsMedium)));
1131 FPreviewWait := ini.ReadInteger('Browser', 'PreviewWait', 500);
1133 //
\83u
\83\89\83E
\83U
1134 FBrowserAutoMaximize := TGikoBrowserAutoMaximize(
1135 ini.ReadInteger('Window', 'BrowserAutoMaximize', Ord(gbmDoubleClick)) );
1137 //
\83X
\83\8c\83b
\83h
\88ê
\97\97\8dX
\90V
\83A
\83C
\83R
\83\93
1138 FListIconVisible := ini.ReadBool('ThreadList', 'StateIconVisible', True);
1139 FCreationTimeLogs := ini.ReadBool('ThreadList', 'CreationTimeLogs', True);
1140 FFutureThread := ini.ReadBool('ThreadList', 'FutureThread', True);
1141 FSelectInterval := ini.ReadInteger('ThreadList', 'SelectInterval', 110);
1142 //
\83\
\81[
\83g
\8f\87
1143 FBBSSortIndex := ini.ReadInteger('ThreadList', 'BBSSortIndex', 0);
1144 FBBSSortOrder := ini.ReadBool('ThreadList', 'BBSSortOrder', True);
1145 FCategorySortIndex := ini.ReadInteger('ThreadList', 'CategorySortIndex', 0);
1146 FCategorySortOrder := ini.ReadBool('ThreadList', 'CategorySortOrder', True);
1147 FBoardSortIndex := ini.ReadInteger('ThreadList', 'BoardSortIndex', 0);
1148 FBoardSortOrder := ini.ReadBool('ThreadList', 'BoardSortOrder', True);
1149 // DL
\8cã
\82Ì
\8e©
\93®
\83\
\81[
\83g
1150 FAutoSortThreadList := ini.ReadBool('ThreadList', 'AutoSort', False);
1151 //Dat
\97\8e\82¿
\83X
\83\8c\83\
\81[
\83g
\8f\87
1152 FDatOchiSortIndex := ini.ReadInteger('ThreadList', 'DatOchiSortIndex', -1);
1153 FDatOchiSortOrder := ini.ReadBool('ThreadList', 'DatOchiSortOrder', False);
1155 //
\8f\91\82«
\8d\9e\82Ý
\8e\9e\83}
\83V
\83\93\8e\9e\8d\8f\8eg
\97p
\90Ý
\92è
1156 FUseMachineTime := ini.ReadBool('PostTime', 'UseMachineTime', False);
1157 FTimeAdjustSec := ini.ReadInteger('PostTime', 'TimeAdjustSec', 0);
1158 FTimeAdjust := ini.ReadBool('PostTime', 'TimeAdjust', True);
1160 //
\83T
\83E
\83\93\83h
1161 if Exists then begin
1162 for i := 0 to GetSoundCount - 1 do begin
1163 SoundFileName[i] := ini.ReadString('Sound', SoundName[i], '');
1164 if not FileExists(SoundFileName[i]) then
1165 SoundFileName[i] := '';
1168 s := ExtractFileDir(Application.ExeName) + '\sound\';
1169 SoundFileName[0] := s + '
\8eæ
\93¾
\90¬
\8c÷.wav';
1170 SoundFileName[1] := s + '
\8eæ
\93¾
\90¬
\8c÷(
\8d·
\95ª).wav';
1171 SoundFileName[2] := s + '
\96¢
\8dX
\90V.wav';
1172 SoundFileName[3] := '';
1173 SoundFileName[4] := s + '
\83G
\83\89\81[.wav';
1176 //
\83N
\81[
\83\8b\83o
\81[
1177 for i := 0 to MAIN_COOLBAND_COUNT - 1 do begin
1178 CoolSet.FCoolID := ini.ReadInteger('MainCoolBar', 'ID' + IntToStr(i), -1);
1179 CoolSet.FCoolWidth := ini.ReadInteger('MainCoolBar', 'Width' + IntToStr(i), -1);
1180 CoolSet.FCoolBreak := ini.ReadBool('MainCoolBar', 'Break' + IntToStr(i), False);
1181 MainCoolSet[i] := CoolSet;
1183 FSelectComboBoxWidth := ini.ReadInteger( 'ListCoolBar', 'SelectWidth', 127 );
1184 for i := 0 to LIST_COOLBAND_COUNT - 1 do begin
1185 CoolSet.FCoolID := ini.ReadInteger('ListCoolBar', 'ID' + IntToStr(i), -1);
1186 CoolSet.FCoolWidth := ini.ReadInteger('ListCoolBar', 'Width' + IntToStr(i), -1);
1187 CoolSet.FCoolBreak := ini.ReadBool('ListCoolBar', 'Break' + IntToStr(i), False);
1188 ListCoolSet[i] := CoolSet;
1190 for i := 0 to BROWSER_COOLBAND_COUNT - 1 do begin
1191 CoolSet.FCoolID := ini.ReadInteger('BrowserCoolBar', 'ID' + IntToStr(i), -1);
1192 CoolSet.FCoolWidth := ini.ReadInteger('BrowserCoolBar', 'Width' + IntToStr(i), -1);
1193 CoolSet.FCoolBreak := ini.ReadBool('BrowserCoolBar', 'Break' + IntToStr(i), False);
1194 BrowserCoolSet[i] := CoolSet;
1198 FAbonDeleterlo := ini.ReadBool('Abon','Deleterlo',false);
1199 FAbonReplaceul := ini.ReadBool('Abon','Replaceul',false);
1200 FPopUpAbon := ini.ReadBool('Abon','Popup',false);
1201 FShowNGLinesNum := ini.ReadBool('Abon','ShowNGLines',false);
1202 FAddResAnchor := ini.ReadBool('Abon','AddResAnchor',false);
1203 FDeleteSyria := ini.ReadBool('Abon','DeleteSyria',false);
1204 FIgnoreKana := ini.ReadBool('Abon','IgnoreKana',false);
1207 FSpaceToNBSP := ini.ReadBool( 'Editor', 'SpaceToNBSP', False );
1208 FAmpToCharRef := ini.ReadBool( 'Editor', 'AmpToCharRef', False );
1210 //Tab
\8e©
\93®
\95Û
\91¶
\81A
\93Ç
\82Ý
\8d\9e\82Ý
1211 FTabAutoLoadSave := ini.ReadBool('TabAuto', 'TabAutoLoadSave', False);
1213 FKuroutSettingTabIndex := ini.ReadInteger('OptionDialog', 'KuroutTabIndex' , 0);
1215 //
\83}
\83E
\83X
\83W
\83F
\83X
\83`
\83\83\81[
1216 FGestureEnabled := ini.ReadBool( 'Guesture', 'Enabled', False );
1218 //2ch
\8c¾
\8cê
\83T
\83|
1219 F2chSupport := ini.ReadBool('2chSupport', 'Support', False);
1222 FLocalTrapAtt := ini.ReadBool('Trap', 'LocalTrap', False);
1223 FRemoteTrapAtt := ini.ReadBool('Trap', 'RemoteTrap', False);
1224 FReadTimeOut := ini.ReadInteger('HTTP', 'ReadTimeOut', 10000);
1226 //
\8eg
\97p
\82·
\82é
\83X
\83p
\83\80\83t
\83B
\83\8b\83^
1227 FSpamFilterAlgorithm := TGikoSpamFilterAlgorithm(
1228 ini.ReadInteger( 'Abon', 'SpamFilterAlgorithm', Ord( gsfaNone ) ) );
1229 FMute := ini.ReadBool('Function', 'Mute', false);
1230 FUseUndecided := ini.ReadBool('ThreadList', 'UseUndecided', False);
1233 //
\94F
\8fØ
\97p
\83\86\81[
\83UID
\81E
\94F
\8fØ
\83R
\81[
\83h
1234 FBeUserID := ini.ReadString('Be', 'UserID', '');
1235 FBeCode := Decrypt(ini.ReadString('Be', 'Code', ''));
1236 FBeAutoLogin := ini.ReadBool('Be', 'AutoLogin', False);
1237 //
\97\9a\97ð
\82Ì
\8dÅ
\91å
\95Û
\91¶
\8c\8f\90\94
1238 FMaxRecordCount := Max(ini.ReadInteger('Recode', 'Max', 100), 1);
1240 //
\93ü
\97Í
\83A
\83V
\83X
\83g
1241 FInputAssistFormTop := ini.ReadInteger('IAtWindowsSize', 'Top', 0);
1242 FInputAssistFormLeft := ini.ReadInteger('IAtWindowsSize', 'Left', 0);
1243 FInputAssistFormWidth := ini.ReadInteger('IAtWindowsSize', 'Width', 400);
1244 FInputAssistFormHeight := ini.ReadInteger('IAtWindowsSize', 'Height', 460);
1246 // Cookie
\82É
\95t
\89Á
\82·
\82é
\8cÅ
\92è
\83R
\81[
\83h
1247 FFixedCookie := ini.ReadString('Cookie', 'fixedString', FIXED_COOKIE);
1249 //
\83\8a\83\93\83N
\88Ú
\93®
\97\9a\97ð
\82Ì
\8dÅ
\91å
\95Û
\8e\9d\90\94
1250 FMoveHistorySize := ini.ReadInteger('MoveHisotry', 'Max', 20);
1252 FStoredTaskTray := ini.ReadBool('Function', 'StroedTaskTray', false);
1259 //
\94Â
\8dX
\90V
\97pURL
\93Ç
\82Ý
\8d\9e\82Ý
1260 procedure TSetting.ReadBoardURLsFile();
1266 if not FileExists(GetBoardURLFileName()) then
1268 ini := TMemIniFile.Create(GetBoardURLFileName());
1270 urlNum := ini.ReadInteger('URL','count',0);
1271 BoardURLSelected := ini.ReadInteger('URL','selected',0);
1272 for i := 0 to urlNum - 1 do begin
1273 FBoardURLs.Append(ini.ReadString('URL',IntToStr(i+1),''));
1280 //
\90Ý
\92è
\83t
\83@
\83C
\83\8b\95Û
\91¶(system)
1281 procedure TSetting.WriteSystemSettingFile();
1285 ini := TMemIniFile.Create(GetFileName());
1287 //
\8eó
\90M
\83o
\83b
\83t
\83@
\83T
\83C
\83Y
1288 ini.WriteInteger('HTTP', 'RecvBufferSize', FRecvBufferSize);
1290 ini.WriteBool('HTTP', 'Protocol', FProtocol);
1291 //
\83v
\83\8d\83L
\83V
\90Ú
\91±HTTP1.1
\8eg
\97p
1292 ini.WriteBool('HTTP', 'ProxyProtocol', FProxyProtocol);
1294 ini.WriteBool('ReadProxy', 'Proxy', FReadProxy);
1295 ini.WriteString('ReadProxy', 'Address', FReadProxyAddress);
1296 ini.WriteInteger('ReadProxy', 'Port', FReadProxyPort);
1297 ini.WriteString('ReadProxy', 'UserID', FReadProxyUserID);
1298 ini.WriteString('ReadProxy', 'Password', FReadProxyPassword);
1300 ini.WriteBool('WriteProxy', 'Proxy', FWriteProxy);
1301 ini.WriteString('WriteProxy', 'Address', FWriteProxyAddress);
1302 ini.WriteInteger('WriteProxy', 'Port', FWriteProxyPort);
1303 ini.WriteString('WriteProxy', 'UserID', FWriteProxyUserID);
1304 ini.WriteString('WriteProxy', 'Password', FWriteProxyPassword);
1306 ini.WriteString('Window', 'BrowserFontName', FBrowserFontName);
1307 ini.WriteInteger('Window', 'BrowserFontSize', FBrowserFontSize);
1308 ini.WriteInteger('Window', 'BrowserFontSize', FBrowserFontSize);
1309 ini.WriteInteger('Window', 'BrowserFontBold', FBrowserFontBold);
1310 ini.WriteInteger('Window', 'BrowserFontItalic', FBrowserFontItalic);
1311 ini.WriteInteger('Window', 'BrowserFontColor', FBrowserFontColor);
1312 ini.WriteInteger('Window', 'BrowserBackColor', FBrowserBackColor);
1314 ini.WriteString('Window', 'CabinetFontName', FCabinetFontName);
1315 ini.WriteInteger('Window', 'CabinetFontSize', FCabinetFontSize);
1316 ini.WriteString('Window', 'CabinetFontColor', ColorToString(FCabinetFontColor));
1317 ini.WriteBool('Window', 'CabinetFontBold', FCabinetFontBold);
1318 ini.WriteBool('Window', 'CabinetFontItalic', FCabinetFontItalic);
1319 ini.WriteString('Window', 'CabinetBackColor', ColorToString(FCabinetBackColor));
1321 ini.WriteString('Window', 'ListFontName', FListFontName);
1322 ini.WriteInteger('Window', 'ListFontSize', FListFontSize);
1323 ini.WriteString('Window', 'ListFontColor', ColorToString(FListFontColor));
1324 ini.WriteString('Window', 'ListBackColor', ColorToString(FListBackColor));
1325 ini.WriteBool('Window', 'ListFontBold', FListFontBold);
1326 ini.WriteBool('Window', 'ListFontItalic', FListFontItalic);
1327 ini.WriteBool('Window','UseOddColor',FUseOddColorOddResNum);
1328 ini.WriteString('Window', 'OddColor',ColorToString(FOddColor));
1329 ini.WriteBool('Window','UnFocusedBold', FUnFocusedBold);
1331 ini.WriteString('Window', 'EditorFontName', FEditorFontName);
1332 ini.WriteInteger('Window', 'EditorFontSize', FEditorFontSize);
1333 ini.WriteString('Window', 'EditorFontColor', ColorToString(FEditorFontColor));
1334 ini.WriteString('Window', 'EditorBackColor', ColorToString(FEditorBackColor));
1336 ini.WriteString('Window', 'BrowserTabFontName', FBrowserTabFontName);
1337 ini.WriteInteger('Window', 'BrowserTabFontSize', FBrowserTabFontSize);
1338 ini.WriteBool('Window', 'BrowserTabFontBold', FBrowserTabFontBold);
1339 ini.WriteBool('Window', 'BrowserTabFontItalic', FBrowserTabFontItalic);
1341 ini.WriteString('Window', 'HintFontName', FHintFontName);
1342 ini.WriteInteger('Window', 'HintFontSize', FHintFontSize);
1343 ini.WriteString('Window', 'HintFontColor', ColorToString(FHintFontColor));
1344 ini.WriteString('Window', 'HintBackColor', ColorToString(FHintBackColor));
1352 //
\90Ý
\92è
\83t
\83@
\83C
\83\8b\95Û
\91¶(window)
1353 procedure TSetting.WriteWindowSettingFile();
1358 wkList : TStringList;
1360 ini := TMemIniFile.Create(GetFileName());
1362 ini.WriteInteger('WindowSize', 'Top', WindowTop);
1363 ini.WriteInteger('WindowSize', 'Left', WindowLeft);
1364 ini.WriteInteger('WindowSize', 'Height', WindowHeight);
1365 ini.WriteInteger('WindowSize', 'Width', WindowWidth);
1366 ini.WriteBool('WindowSize', 'Max', WindowMax);
1368 ini.WriteInteger('ViewStyle', 'ListView', Ord(ListStyle));
1370 ini.WriteInteger('EditorWindowSize', 'Top', EditWindowTop);
1371 ini.WriteInteger('EditorWindowSize', 'Left', EditWindowLeft);
1372 ini.WriteInteger('EditorWindowSize', 'Height', EditWindowHeight);
1373 ini.WriteInteger('EditorWindowSize', 'Width', EditWindowWidth);
1374 ini.WriteBool('EditorWindowSize', 'Max', EditWindowMax);
1375 ini.WriteBool('EditorWindowSize', 'Stay', EditWindowStay);
1376 ini.WriteBool('EditorWindowSize', 'Translucent', EditWindowTranslucent);
1378 ini.WriteInteger('OptionDialog', 'TabIndex', FOptionDialogTabIndex);
1380 //
\93ü
\97Í
\83A
\83V
\83X
\83g
1381 ini.WriteInteger('IAtWindowsSize', 'Top', FInputAssistFormTop);
1382 ini.WriteInteger('IAtWindowsSize', 'Left', FInputAssistFormLeft);
1383 ini.WriteInteger('IAtWindowsSize', 'Width', FInputAssistFormWidth);
1384 ini.WriteInteger('IAtWindowsSize', 'Height', FInputAssistFormHeight);
1386 //
\83c
\81[
\83\8b\83o
\81[
1387 ini.WriteBool('ToolBar', 'StdVisible', FStdToolBarVisible);
1388 ini.WriteBool('ToolBar', 'AddressVisible', FAddressBarVisible);
1389 ini.WriteBool('ToolBar', 'LinkVisible', FLinkBarVisible);
1390 ini.WriteBool('ToolBar', 'ListVisible', FListToolBarVisible);
1391 ini.WriteBool('ToolBar', 'ListNameVisible', FListNameBarVisible);
1392 ini.WriteBool('ToolBar', 'BrowserVisible', FBrowserToolBarVisible);
1393 ini.WriteBool('ToolBar', 'BrowserNameVisible', FBrowserNameBarVisible);
1394 //
\83c
\81[
\83\8b\83o
\81[Wrapable
1395 ini.WriteBool('ToolBar', 'ListWrapable', FListToolBarWrapable);
1396 ini.WriteBool('ToolBar', 'BrowserWrapable', FBrowserToolBarWrapable);
1399 ini.WriteBool('Tab', 'BrowserTabVisible', FBrowserTabVisible);
1400 ini.WriteInteger('Tab', 'BrowserTabPosition', Ord(FBrowserTabPosition));
1401 ini.WriteInteger('Tab', 'BrowserTabAppend', Ord(FBrowserTabAppend));
1402 ini.WriteInteger('Tab', 'BrowserTabStyle', Ord(FBrowserTabStyle));
1404 //
\83\81\83b
\83Z
\81[
\83W
\83o
\81[
1405 ini.WriteBool('MessageBar', 'Visible', FMessageBarVisible);
1406 ini.WriteInteger('MessageBar', 'Height', FMessegeBarHeight);
1408 //
\83X
\83e
\81[
\83^
\83X
\83o
\81[
1409 ini.WriteBool('StatusBar', 'Visible', FStatusBarVisible);
1411 //
\83L
\83\83\83r
\83l
\83b
\83g
1412 ini.WriteBool('Cabinet', 'Visible', FCabinetVisible);
1413 ini.WriteInteger('Cabinet', 'Width', FCabinetWidth);
1414 ini.WriteInteger('Cabinet', 'Index', FCabinetIndex);
1416 //
\83\8a\83X
\83g
\82Ì
\83T
\83C
\83Y
\82Æ
\90\82\92¼
\90\85\95½
1417 ini.WriteInteger('List', 'Orientation', Ord(FListOrientation));
1418 ini.WriteInteger('List', 'Height', FListHeight);
1419 ini.WriteInteger('List', 'HeightState', Ord(FListHeightState));
1420 ini.WriteInteger('List', 'Width', FListWidth);
1421 ini.WriteInteger('List', 'WidthState', Ord(FListWidthState));
1422 // ini.WriteBool('List', 'HeightMax', FListHeightMax);
1423 // ini.WriteBool('List', 'WidthMax', FListWidthMax);
1426 // ini.WriteInteger('Window', 'BrowserFontSize', BrowserFontSize);
1428 //
\83\8a\83X
\83g
\94Ô
\8d\86\95\
\8e¦
1429 ini.WriteBool('Function', 'ListViewNo', FListViewNo);
1431 ini.WriteBool('CSS', 'UseCSS', FUseCSS);
1432 //
\82©
\82µ
\82ã
\81`
\82µ
\82á
\82Ì
\83X
\83L
\83\93\82ð
\8eg
\82¤
\82©
1433 ini.WriteBool('CSS', 'UseKatjushaType', FUseKatjushaType);
1434 //CSS
\83t
\83@
\83C
\83\8b\96¼
1435 ini.WriteString('CSS', 'FileName', FCSSFileName);
1436 //Mail
\97\93\95\
\8e¦
1437 ini.WriteBool('Thread', 'ShowMail', FShowMail);
1438 //
\83\8c\83X
\95\
\8e¦
\94Í
\88Í
1439 ini.DeleteKey( 'Thread', 'OnlyAHundredRes' ); //
\8cÃ
\82¢
\90Ý
\92è
\82Ì
\8dí
\8f\9c
1440 ini.WriteInteger('Thread', 'ResRange', FResRange);
1441 ini.WriteBool('Thread', 'ResRangeHold', FResRangeHold);
1442 //
\83X
\83\8c\83b
\83h
\88ê
\97\97\95\
\8e¦
\94Í
\88Í
1443 ini.WriteInteger('ThreadList', 'ThreadRange', Ord( FThreadRange ));
1444 //
\83\8d\83O
\8dí
\8f\9c\8am
\94F
1445 ini.WriteBool('Function', 'LogDeleteMessage', FDeleteMsg);
1447 ini.WriteBool('Function','ShowDialogForEnd',FShowDialogForEnd);
1449 ini.WriteBool('Function','ShowDialogForAllTabClose', FShowDialogForAllTabClose);
1451 ini.WriteBool('Function','UseSamba', FUseSamba);
1453 ini.WriteBool('Function', 'ResAnchoJamp', ResAnchorJamp);
1455 //
\94ñ
\83A
\83N
\83e
\83B
\83u
\8e\9e\83|
\83b
\83v
\83A
\83b
\83v
\95\
\8e¦
1456 ini.WriteBool('Thread', 'UnActivePopup', FUnActivePopup);
1457 //
\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\83w
\83b
\83_
\81[
\83{
\81[
\83\8b\83h
1458 ini.WriteBool('Thread', 'ResPopupHeaderBold', FResPopupHeaderBold);
1459 //ini.WriteString('BoardURL', '2ch', FBoardURL2ch);
1461 //
\94F
\8fØ
\97p
\83\86\81[
\83UID
\81E
\83p
\83X
\83\8f\81[
\83h
1462 ini.WriteString('Attestation', 'UserID', FUserID);
1463 ini.WriteString('Attestation', 'Password', Encrypt(FPassword));
1464 ini.WriteBool('Attestation', 'AutoLogin', FAutoLogin);
1465 ini.WriteBool('Attestation', 'FForcedLogin', FForcedLogin);
1466 ini.WriteString('Attestation', 'FDolibURL', FDolibURL);
1468 //URL
\83N
\83\8a\83b
\83N
\8e\9e\8bN
\93®
\83A
\83v
\83\8a
1469 ini.WriteBool('URLApp', 'Select', FURLApp);
1470 ini.WriteString('URLApp', 'File', FURLAppFile);
1472 //mailto
\83N
\83\8a\83b
\83N
\8e\9e\93®
\8dì
1473 ini.WriteBool('Mailto', 'Open', FOpenMailer);
1475 //
\83|
\83b
\83v
\83A
\83b
\83v
\88Ê
\92u
1476 ini.WriteInteger('Browser', 'PopupPosition', Ord(FPopupPosition));
1478 //
\83A
\83h
\83\8c\83X
\83o
\81[
1479 ini.WriteBool('AddressBar', 'URLDisplay', FURLDisplay);
1480 ini.WriteBool('AddressBar', 'TabStop', FAddressBarTabStop);
1481 ini.WriteBool('AddressBar', 'LinkAdd', FLinkAddAddressBar);
1482 ini.WriteInteger('AddressBar', 'HistoryCount', FAddressHistoryCount);
1484 //
\89æ
\91\9c\83v
\83\8c\83r
\83\85\81[
1485 ini.WriteBool('Browser', 'PreviewVisible', FPreviewVisible);
1486 ini.WriteInteger('Browser', 'PreviewSize', Ord(FPreviewSize));
1487 ini.WriteInteger('Browser', 'PreviewWait', FPreviewWait);
1489 ini.WriteInteger('Window', 'BrowserAutoMaximize', Ord( BrowserAutoMaximize ) );
1491 //
\83X
\83\8c\83b
\83h
\88ê
\97\97\8dX
\90V
\83A
\83C
\83R
\83\93
1492 ini.WriteBool('ThreadList', 'StateIconVisible', FListIconVisible);
1493 ini.WriteBool('ThreadList', 'CreationTimeLogs',FCreationTimeLogs);
1494 ini.WriteBool('ThreadList', 'FutureThread', FFutureThread);
1495 ini.WriteInteger('ThreadList', 'SelectInterval', FSelectInterval);
1496 //
\83\
\81[
\83g
\8f\87
1497 ini.WriteInteger('ThreadList', 'BBSSortIndex', FBBSSortIndex);
1498 ini.WriteBool('ThreadList', 'BBSSortOrder', FBBSSortOrder);
1499 ini.WriteInteger('ThreadList', 'CategorySortIndex', FCategorySortIndex);
1500 ini.WriteBool('ThreadList', 'CategorySortOrder', FCategorySortOrder);
1501 ini.WriteInteger('ThreadList', 'BoardSortIndex', FBoardSortIndex);
1502 ini.WriteBool('ThreadList', 'BoardSortOrder', FBoardSortOrder);
1503 ini.WriteInteger('ThreadList', 'DatOchiSortIndex', FDatOchiSortIndex);
1504 ini.WriteBool('ThreadList', 'DatOchiSortOrder', FDatOchiSortOrder);
1505 // DL
\8cã
\82Ì
\8e©
\93®
\83\
\81[
\83g
1506 ini.WriteBool('ThreadList', 'AutoSort', FAutoSortThreadList);
1508 //
\8f\91\82«
\8d\9e\82Ý
\8e\9e\83}
\83V
\83\93\8e\9e\8d\8f\8eg
\97p
\90Ý
\92è
1509 ini.WriteBool('PostTime', 'UseMachineTime', FUseMachineTime);
1510 ini.WriteInteger('PostTime', 'TimeAdjustSec', FTimeAdjustSec);
1511 ini.WriteBool('PostTime', 'TimeAdjust', FTimeAdjust);
1513 //
\83\8a\83X
\83g
\83J
\83\89\83\80\95\9d
1514 for i := 0 to Length(FBBSColumnWidth) - 1 do begin
1515 ini.WriteInteger('BBSColumnWidth', 'ID' + IntToStr(i), FBBSColumnWidth[i]);
1517 for i := 0 to Length(FCategoryColumnWidth) - 1 do begin
1518 ini.WriteInteger('CategoryColumnWidth', 'ID' + IntToStr(i), FCategoryColumnWidth[i]);
1520 for i := 0 to Length(FBoardColumnWidth) - 1 do begin
1521 ini.WriteInteger('BoardColumnWidth', 'ID' + IntToStr(i), FBoardColumnWidth[i]);
1524 wkList := TStringList.Create;
1526 //
\83J
\83e
\83S
\83\8a\83\8a\83X
\83g
\8f\87\8f\98
1527 ini.ReadSection( 'BBSColumnOrder', wkList );
1528 for i := wkList.Count - 1 downto 0 do
1529 ini.DeleteKey( 'BBSColumnOrder', wkList[ i ] );
1530 for i := 0 to FBBSColumnOrder.Count - 1 do
1531 ini.WriteInteger( 'BBSColumnOrder', 'ID' + IntToStr( i ), Ord( FBBSColumnOrder[ i ] ) );
1533 //
\94Â
\83\8a\83X
\83g
\8f\87\8f\98
1534 ini.ReadSection( 'CategoryColumnOrder', wkList );
1535 for i := wkList.Count - 1 downto 0 do
1536 ini.DeleteKey( 'CategoryColumnOrder', wkList[ i ] );
1537 for i := 0 to FCategoryColumnOrder.Count - 1 do
1538 ini.WriteInteger( 'CategoryColumnOrder', 'ID' + IntToStr( i ), Ord( FCategoryColumnOrder[ i ] ) );
1540 //
\83X
\83\8c\83\8a\83X
\83g
\8f\87\8f\98
1541 ini.ReadSection( 'BoardColumnOrder', wkList );
1542 for i := wkList.Count - 1 downto 0 do
1543 ini.DeleteKey( 'BoardColumnOrder', wkList[ i ] );
1544 for i := 0 to FBoardColumnOrder.Count - 1 do
1545 ini.WriteInteger( 'BoardColumnOrder', 'ID' + IntToStr( i ), Ord( FBoardColumnOrder[ i ] ) );
1550 //
\83T
\83E
\83\93\83h
1551 for i := 0 to GetSoundCount - 1 do begin
1552 if not FileExists(SoundFileName[i]) then
1553 SoundFileName[i] := '';
1554 ini.WriteString('Sound', SoundName[i], SoundFileName[i]);
1558 ini.EraseSection('MainCoolBar');
1559 for i := 0 to MAIN_COOLBAND_COUNT - 1 do begin
1560 CoolSet := MainCoolSet[i];
1561 ini.WriteInteger('MainCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1562 ini.WriteInteger('MainCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1563 ini.WriteBool('MainCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1565 ini.EraseSection('ListCoolBar');
1566 ini.WriteInteger( 'ListCoolBar', 'SelectWidth', FSelectComboBoxWidth );
1567 for i := 0 to LIST_COOLBAND_COUNT - 1 do begin
1568 CoolSet := ListCoolSet[i];
1569 ini.WriteInteger('ListCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1570 ini.WriteInteger('ListCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1571 ini.WriteBool('ListCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1573 ini.EraseSection('BrowserCoolBar');
1574 for i := 0 to BROWSER_COOLBAND_COUNT - 1 do begin
1575 CoolSet := BrowserCoolSet[i];
1576 ini.WriteInteger('BrowserCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1577 ini.WriteInteger('BrowserCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1578 ini.WriteBool('BrowserCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1582 ini.WriteBool('Abon','Deleterlo',FAbonDeleterlo);
1583 ini.WriteBool('Abon','Replaceul',FAbonReplaceul);
1584 ini.WriteBool('Abon','Popup',FPopUpAbon);
1585 ini.WriteBool('Abon','ShowNGLines',FShowNGLinesNum);
1586 ini.WriteBool('Abon','AddResAnchor',FAddResAnchor);
1587 ini.WriteBool('Abon','DeleteSyria',FDeleteSyria);
1588 ini.WriteBool('Abon','IgnoreKana', FIgnoreKana);
1591 ini.WriteBool( 'Editor', 'SpaceToNBSP', FSpaceToNBSP );
1592 ini.WriteBool( 'Editor', 'AmpToCharRef', FAmpToCharRef );
1594 //
\83^
\83u
\8e©
\93®
\95Û
\91¶
1595 ini.WriteBool('TabAuto', 'TabAutoLoadSave', FTabAutoLoadSave);
1597 ini.WriteInteger('OptionDialog', 'KuroutTabIndex', FKuroutSettingTabIndex);
1599 //
\82É
\82¿
\82á
\82ñ
\8cê
\88Ä
\93à
\8b@
\94\
1600 ini.WriteBool('2chSupport', 'Support', F2chSupport);
1602 //
\83}
\83E
\83X
\83W
\83F
\83X
\83`
\83\83\81[
\82ð
\8eg
\97p
\82·
\82é
\82©
\82Ç
\82¤
\82©
1603 ini.WriteBool( 'Guesture', 'Enabled', FGestureEnabled );
1606 ini.WriteBool('Trap', 'LocalTrap', FLocalTrapAtt);
1607 ini.WriteBool('Trap', 'RemoteTrap', FRemoteTrapAtt);
1608 ini.WriteInteger('HTTP', 'ReadTimeOut', FReadTimeOut);
1610 //
\8eg
\97p
\82·
\82é
\83X
\83p
\83\80\83t
\83B
\83\8b\83^
1611 ini.WriteInteger( 'Abon', 'SpamFilterAlgorithm', Ord( FSpamFilterAlgorithm ) );
1612 ini.WriteBool('Function', 'Mute', FMute);
1613 ini.WriteBool('ThreadList', 'UseUndecided', FUseUndecided);
1615 //
\94F
\8fØ
\97p
\83\86\81[
\83UID
\81E
\83p
\83X
\83\8f\81[
\83h
1616 ini.WriteString('Be', 'UserID', FBeUserID);
1617 ini.WriteString('Be', 'Code', Encrypt(FBeCode));
1618 ini.WriteBool('Be', 'AutoLogin', FBeAutoLogin);
1620 //
\97\9a\97ð
\82Ì
\8dÅ
\91å
\95Û
\91¶
\8c\8f\90\94
1621 ini.WriteInteger('Recode', 'Max', FMaxRecordCount);
1622 //
\8cÅ
\92è
\82ÌCookie
\95¶
\8e\9a\97ñ
1623 ini.WriteString('Cookie', 'fixedString', FFixedCookie);
1625 //
\83\8a\83\93\83N
\88Ú
\93®
\97\9a\97ð
\82Ì
\8dÅ
\91å
\95Û
\8e\9d\90\94
1626 ini.WriteInteger('MoveHisotry', 'Max', FMoveHistorySize);
1628 ini.WriteBool('Function', 'StroedTaskTray', FStoredTaskTray);
1636 //
\90Ý
\92è
\83t
\83@
\83C
\83\8b\95Û
\91¶(name & mail)
1637 procedure TSetting.WriteNameMailSettingFile();
1642 ini := TMemIniFile.Create(GetFileName());
1644 ini.EraseSection('Name');
1645 ini.EraseSection('Mail');
1646 ini.EraseSection('SelectText');
1647 for i := 0 to FNameList.Count - 1 do begin
1648 ini.WriteString('Name', Format('%.2d', [i + 1]), FNameList[i]);
1652 for i := 0 to FMailList.Count - 1 do begin
1653 ini.WriteString('Mail', Format('%.2d', [i + 1]), FMailList[i]);
1657 for i := 0 to FSelectTextList.Count - 1 do begin
1658 ini.WriteString('SelectText', Format('%.2d', [i + 1]), FSelectTextList[i]);
1668 procedure TSetting.WriteFolderSettingFile();
1672 ini := TMemIniFile.Create(GetFileName());
1674 if ExtractFilePath(Application.ExeName) + 'Log' = NewLogFolder then
1675 ini.DeleteKey('Folder', 'LogFolder')
1677 ini.WriteString('Folder', 'LogFolder', NewLogFolder);
1683 //
\94Â
\8dX
\90V
\97pBoardURL
\82ð
\95Û
\91¶
1684 procedure TSetting.WriteBoardURLSettingFile();
1690 ini := TMemIniFile.Create(GetBoardURLFileName());
1692 oldcount := ini.ReadInteger('URL','count',FBoardURLs.Count);
1693 ini.WriteInteger('URL','count',FBoardURLs.Count);
1694 ini.WriteInteger('URL','selected',BoardURLSelected);
1695 for i := 0 to FBoardURLs.Count -1 do begin
1696 ini.WriteString('URL',IntToStr(i+1),FBoardURLs.Strings[i]);
1698 if oldcount > FBoardURLs.Count then begin
1699 for i := FBoardURLs.Count to oldcount do begin
1700 ini.DeleteKey('URL',IntToStr(i+1));
1710 //
\83\8a\83X
\83g
\83J
\83\89\83\80\83w
\83b
\83_
\81[
1711 function TSetting.GetBBSColumnWidth(index: Integer): Integer;
1713 Result := IfThen(index in [0..Length(FBBSColumnWidth) - 1], FBBSColumnWidth[index], 0);
1716 function TSetting.GetCategoryColumnWidth(index: Integer): Integer;
1718 Result := IfThen(index in [0..Length(FCategoryColumnWidth) - 1], FCategoryColumnWidth[index], 0);
1721 function TSetting.GetBoardColumnWidth(index: Integer): Integer;
1723 Result := IfThen(index in [0..Length(FBoardColumnWidth) - 1], FBoardColumnWidth[index], 0);
1729 procedure TSetting.SetBBSColumnWidth(index: Integer; value: Integer);
1731 if index in [0..Length(FBBSColumnWidth) - 1] then
1732 FBBSColumnWidth[index] := value;
1735 procedure TSetting.SetCategoryColumnWidth(index: Integer; value: Integer);
1737 if index in [0..Length(FCategoryColumnWidth) - 1] then
1738 FCategoryColumnWidth[index] := value;
1741 procedure TSetting.SetBoardColumnWidth(index: Integer; value: Integer);
1743 if index in [0..Length(FBoardColumnWidth) - 1] then
1744 FBoardColumnWidth[index] := value;
1747 function TSetting.GetSoundCount: Integer;
1749 Result := Length(SOUND_NAME);
1752 function TSetting.GetSoundName(Index: Integer): string;
1754 if (Index < GetSoundCount) and (Index >= 0) then
1755 Result := SOUND_NAME[Index].Name
1760 function TSetting.GetSoundViewName(Index: Integer): string;
1762 if (Index < GetSoundCount) and (Index >= 0) then
1763 Result := SOUND_NAME[Index].ViewName
1768 function TSetting.GetSoundFileName(Index: Integer): string;
1770 if (Index < GetSoundCount) and (Index >= 0) then
1771 Result := SOUND_NAME[Index].FileName
1776 procedure TSetting.SetSoundFileName(Index: Integer; value: string);
1778 if (Index < GetSoundCount) and (Index >= 0) then
1779 SOUND_NAME[Index].FileName := value;
1782 function TSetting.FindSoundFileName(Name: string): string;
1786 for i := 0 to GetSoundCount - 1 do begin
1787 if SoundName[i] = Name then begin
1788 Result := SoundFileName[i];
1795 function TSetting.Encrypt(s: string): string;
1797 cryptObj: THogeCryptAuto;
1798 inputStream, outputStream: TStringStream;
1800 inputStream := TStringStream.Create(s);
1801 outputStream := TStringStream.Create('');
1802 cryptObj := THogeCryptAuto.Create;
1805 cryptObj.Encrypt(inputStream, GIKO_ENCRYPT_TEXT, outputStream);
1807 //
\83o
\83C
\83i
\83\8a\82È
\82Ì
\82Å
\95K
\97v
\82É
\89\9e\82¶
\82Ä
\83e
\83L
\83X
\83g
\82É
\95Ï
\8a·
1808 Result := HogeBase64Encode(outputStream.DataString);
1816 function TSetting.Decrypt(s: string): string;
1818 cryptObj: THogeCryptAuto;
1819 inputStream, outputStream: TStringStream;
1822 inputStream := TStringStream.Create(HogeBase64Decode(s));
1827 outputStream := TStringStream.Create('');
1828 cryptObj := THogeCryptAuto.Create;
1831 cryptObj.Decrypt(inputStream, GIKO_ENCRYPT_TEXT, outputStream);
1832 Result := outputStream.DataString;
1840 function TSetting.GetMainCoolSet(Index: Integer): TCoolSet;
1842 if Index in [0..MAIN_COOLBAND_COUNT - 1] then
1843 Result := FMainCoolBar[Index]
1845 Result.FCoolID := -1;
1846 Result.FCoolWidth := -1;
1847 Result.FCoolBreak := False;
1851 function TSetting.GetBoardCoolSet(Index: Integer): TCoolSet;
1853 if Index in [0..LIST_COOLBAND_COUNT - 1] then
1854 Result := FListCoolBar[Index]
1856 Result.FCoolID := -1;
1857 Result.FCoolWidth := -1;
1858 Result.FCoolBreak := False;
1862 function TSetting.GetBrowserCoolSet(Index: Integer): TCoolSet;
1864 if Index in [0..BROWSER_COOLBAND_COUNT - 1] then
1865 Result := FBrowserCoolBar[Index]
1867 Result.FCoolID := -1;
1868 Result.FCoolWidth := -1;
1869 Result.FCoolBreak := False;
1873 procedure TSetting.SetMainCoolSet(Index: Integer; CoolSet: TCoolSet);
1875 if Index in [0..MAIN_COOLBAND_COUNT - 1] then
1876 FMainCoolBar[Index] := CoolSet;
1879 procedure TSetting.SetBoardCoolSet(Index: Integer; CoolSet: TCoolSet);
1881 if Index in [0..LIST_COOLBAND_COUNT - 1] then
1882 FListCoolBar[Index] := CoolSet;
1885 procedure TSetting.SetBrowserCoolSet(Index: Integer; CoolSet: TCoolSet);
1887 if Index in [0..BROWSER_COOLBAND_COUNT - 1] then
1888 FBrowserCoolBar[Index] := CoolSet;
1891 //url.ini
\82ª
\82È
\82¢
\82Æ
\82«
\82É
\90¶
\90¬
\82·
\82é
1892 procedure TSetting.MakeURLIniFile();
1896 ini := TMemIniFile.Create(GetBoardURLFileName());
1898 //
\8dX
\90VURL
\82Ì
\90\94
1899 ini.WriteInteger('URL','count',1);
1900 //
\83f
\83t
\83H
\83\8b\83g
\82Å
\8eg
\97p
\82·
\82é
\82t
\82q
\82k
\82Ì
\83C
\83\93\83f
\83b
\83N
\83X
1901 ini.WriteInteger('URL','selected',1);
1902 //
\88È
\89º
\95K
\97v
\82È
\90\94\82¾
\82¯
\81A
\8dX
\90V
\82t
\82q
\82k
\82ð
\92Ç
\89Á
1903 ini.WriteString('URL','1',DEFAULT_2CH_BOARD_URL1);
1904 //ini.WriteString('URL','2',DEFAULT_2CH_BOARD_URL2);
1911 (*************************************************************************
1912 *
\83{
\81[
\83h
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
1913 *************************************************************************)
1914 function TSetting.GetBoardFileName: string;
1916 Result := GetAppDir + CONFIG_DIR_NAME + '\' + BOARD_FILE_NAME;
1919 (*************************************************************************
1920 *
\83{
\81[
\83h
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
1921 *************************************************************************)
1922 function TSetting.GetCustomBoardFileName: string;
1924 Result := GetAppDir + CONFIG_DIR_NAME + '\' + CUSTOMBOARD_FILE_NAME;
1927 (*************************************************************************
1928 *
\83{
\81[
\83h
\83f
\83B
\83\8c\83N
\83g
\83\8a\8eæ
\93¾
1929 *************************************************************************)
1930 function TSetting.GetBoardDir: string;
1932 Result := GetAppDir + CONFIG_DIR_NAME + '\' + BOARD_DIR_NAME + '\';
1935 (*************************************************************************
1936 *
\83e
\83\93\83|
\83\89\83\8a\83t
\83H
\83\8b\83_
\81[
\96¼
\8eæ
\93¾
1937 *************************************************************************)
1938 function TSetting.GetHtmlTempFileName: string;
1940 Result := TEMP_FOLDER;
1944 (*************************************************************************
1945 *
\8eÀ
\8ds
\83t
\83@
\83C
\83\8b\83t
\83H
\83\8b\83_
\8eæ
\93¾
1946 *************************************************************************)
1947 function TSetting.GetAppDir: string;
1949 Result := ExtractFilePath(Application.ExeName);
1952 (*************************************************************************
1953 *TempHtml
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
1954 *************************************************************************)
1955 function TSetting.GetTempFolder: string;
1957 Result := GetAppDir + TEMP_FOLDER;
1960 (*************************************************************************
1961 *sent.ini
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
1962 *************************************************************************)
1963 function TSetting.GetSentFileName: string;
1965 Result := GetAppDir + SENT_FILE_NAME;
1968 (*************************************************************************
1969 *outbox.ini
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
1970 *************************************************************************)
1971 function TSetting.GetOutBoxFileName: string;
1973 Result := GetAppDir + OUTBOX_FILE_NAME;
1976 (*************************************************************************
1977 *Config
\83t
\83H
\83\8b\83_
\8eæ
\93¾
1978 *************************************************************************)
1979 function TSetting.GetConfigDir: string;
1981 Result := IncludeTrailingPathDelimiter(GetAppDir + CONFIG_DIR_NAME);
1984 function TSetting.GetStyleSheetDir: string;
1986 Result := IncludeTrailingPathDelimiter(GetConfigDir + CSS_DIR_NAME);
1989 function TSetting.GetSkinDir: string;
1991 Result := IncludeTrailingPathDelimiter(GetConfigDir + SKIN_DIR_NAME);
1994 function TSetting.GetSkinHeaderFileName: string;
1996 Result := CSSFileName + SKIN_HEADER_FILE_NAME;
1999 function TSetting.GetSkinFooterFileName: string;
2001 Result := CSSFileName + SKIN_FOOTER_FILE_NAME;
2004 function TSetting.GetSkinNewResFileName: string;
2006 Result := CSSFileName + SKIN_NEWRES_FILE_NAME;
2009 function TSetting.GetSkinResFileName: string;
2011 Result := CSSFileName + SKIN_RES_FILE_NAME;
2014 function TSetting.GetSkinBookmarkFileName: string;
2016 Result := CSSFileName + SKIN_BOOKMARK_FILE_NAME;
2019 function TSetting.GetSkinNewmarkFileName: string;
2021 Result := CSSFileName + SKIN_NEWMARK_FILE_NAME;
2024 function TSetting.GetNGWordsDir: string;
2026 Result := IncludeTrailingPathDelimiter(GetConfigDir + NGWORDs_DIR_NAME);
2029 function TSetting.GetBoardPlugInDir: string;
2031 Result := IncludeTrailingPathDelimiter(GetConfigDir + BOARD_PLUGIN_DIR_NAME);
2034 procedure TSetting.SetUseCSS( value: Boolean );
2038 // 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
2039 //
\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
2042 (Pos( AnsiLowerCase(GetSkinDir), AnsiLowerCase(CSSFileName) ) > 0) and
2043 FileExists( GetSkinHeaderFileName );
2047 procedure TSetting.SetCSSFileName( fileName: string );
2050 FCSSFileName := fileName;
2051 // 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
2052 //
\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
2055 (Pos( AnsiLowerCase(GetSkinDir), AnsiLowerCase(CSSFileName) ) > 0) and
2056 FileExists( GetSkinHeaderFileName );
2060 function TSetting.GetSambaFileName: string;
2062 Result := GetAppDir + SAMBATIME_FILE_NAME;
2064 //
\94Â
\8dX
\90V
\8f\9c\8aO
\83J
\83e
\83S
\83\8a\83\8a\83X
\83g
\95Û
\91¶
\83t
\83@
\83C
\83\8b
2065 function TSetting.GetIgnoreFileName: string;
2067 Result := GetConfigDir + IGNORE_FILE_NAME;
2070 //!
\83}
\83E
\83X
\83W
\83F
\83X
\83`
\83\83\81[
\83t
\83@
\83C
\83\8b\83p
\83X
2071 function TSetting.GetGestureFileName: string;
2073 Result := GetConfigDir + GESTURE_FILE_NAME;
2076 //!
\83X
\83p
\83\80\83t
\83B
\83\8b\83^
\8aw
\8fK
\97\9a\97ð
\83t
\83@
\83C
\83\8b\83p
\83X
2077 function TSetting.GetSpamFilterFileName: string;
2079 Result := GetConfigDir + SPAMFILTER_FILE_NAME;
2082 function TSetting.GetLanguageFileName: string;
2084 Result := GetConfigDir + LANGUAGE_FILE_NAME;
2086 procedure TSetting.WriteLogFolder(AVal : String);
2089 FLogFolderP := IncludeTrailingPathDelimiter(LogFolder);
2091 function TSetting.GetMainKeyFileName: String;
2093 Result := GetConfigDir + KEY_SETTING_FILE_NAME;
2095 function TSetting.GetEditorKeyFileName: String;
2097 Result := GetConfigDir + EKEY_SETTING_FILE_NAME;
2099 function TSetting.GetInputAssistFileName : String;
2101 Result := GetConfigDir + INPUTASSIST_FILE_NAME;
2103 procedure TSetting.SetMoveHistorySize(AVal : Integer);
2105 if (AVal > 0) then begin
2106 FMoveHistorySize := AVal;
2110 \brief
\83v
\83\8d\83L
\83V
\90Ý
\92è
\93Ç
\82Ý
\8d\9e\82Ý
2111 \param memIni ini
\83t
\83@
\83C
\83\8b
2113 procedure TSetting.ReadProxySettings(memIni: TMemIniFile);
2115 READ_SECTION = 'ReadProxy';
2116 WRITE_SECTION= 'WriteProxy';
2117 PROXY_KEY = 'Proxy';
2118 ADDRE_KEY = 'Address';
2121 PASS_KEY = 'Password';
2123 if (memIni <> nil) then begin
2124 FReadProxy := memIni.ReadBool(READ_SECTION, PROXY_KEY, false);
2125 FReadProxyAddress := memIni.ReadString(READ_SECTION, ADDRE_KEY, '');
2126 FReadProxyPort := memIni.ReadInteger(READ_SECTION, PORT_KEY, 0);
2127 FReadProxyUserID := memIni.ReadString(READ_SECTION, UID_KEY, '');
2128 FReadProxyPassword := memIni.ReadString(READ_SECTION, PASS_KEY, '');
2130 FWriteProxy := memIni.ReadBool(WRITE_SECTION, PROXY_KEY, false);
2131 FWriteProxyAddress := memIni.ReadString(WRITE_SECTION, ADDRE_KEY, '');
2132 FWriteProxyPort := memIni.ReadInteger(WRITE_SECTION, PORT_KEY, 0);
2133 FWriteProxyUserID := memIni.ReadString(WRITE_SECTION, UID_KEY, '');
2134 FWriteProxyPassword := memIni.ReadString(WRITE_SECTION, PASS_KEY, '');
2138 \brief
\8ae
\8eí
\83E
\83B
\83\93\83h
\83E
\90Ý
\92è
\93Ç
\82Ý
\8d\9e\82Ý
2139 \param menIni ini
\83t
\83@
\83C
\83\8b
2141 procedure TSetting.ReadWindowSettings(memIni: TMemIniFile);
2143 WINDOW_SECTION = 'Window';
2145 if (memIni <> nil) then begin
2146 FBrowserFontName := memIni.ReadString(WINDOW_SECTION, 'BrowserFontName', '');
2147 FBrowserFontSize := memIni.ReadInteger(WINDOW_SECTION, 'BrowserFontSize', 0);
2148 FBrowserFontBold := memIni.ReadInteger(WINDOW_SECTION, 'BrowserFontBold', 0);
2149 FBrowserFontItalic := memIni.ReadInteger(WINDOW_SECTION, 'BrowserFontItalic', 0);
2150 FBrowserFontColor := memIni.ReadInteger(WINDOW_SECTION, 'BrowserFontColor', -1);
2151 FBrowserBackColor := memIni.ReadInteger(WINDOW_SECTION, 'BrowserBackColor', -1);
2153 FCabinetFontName := memIni.ReadString(WINDOW_SECTION, 'CabinetFontName', DEFAULT_FONT_NAME);
2154 FCabinetFontSize := memIni.ReadInteger(WINDOW_SECTION, 'CabinetFontSize', DEFAULT_FONT_SIZE);
2155 FCabinetFontBold := memIni.ReadBool(WINDOW_SECTION, 'CabinetFontBold', False);
2156 FCabinetFontItalic := memIni.ReadBool(WINDOW_SECTION, 'CabinetFontItalic', False);
2157 FCabinetFontColor := StringToColor(memIni.ReadString(WINDOW_SECTION, 'CabinetFontColor', DEFAULT_FONT_COLOR));
2158 FCabinetBackColor := StringToColor(memIni.ReadString(WINDOW_SECTION, 'CabinetBackColor', DEFAULT_WINDOW_COLOR));
2160 FListFontName := memIni.ReadString(WINDOW_SECTION, 'ListFontName', DEFAULT_FONT_NAME);
2161 FListFontSize := memIni.ReadInteger(WINDOW_SECTION, 'ListFontSize', DEFAULT_FONT_SIZE);
2162 FListFontBold := memIni.ReadBool(WINDOW_SECTION, 'ListFontBold', False);
2163 FListFontItalic := memIni.ReadBool(WINDOW_SECTION, 'ListFontItalic', False);
2164 FListFontColor := StringToColor(memIni.ReadString(WINDOW_SECTION, 'ListFontColor', DEFAULT_FONT_COLOR));
2165 FListBackColor := StringToColor(memIni.ReadString(WINDOW_SECTION, 'ListBackColor', DEFAULT_WINDOW_COLOR));
2166 FUseOddColorOddResNum := memIni.ReadBool(WINDOW_SECTION,'UseOddColor', False);
2167 FOddColor := StringToColor(memIni.ReadString(WINDOW_SECTION, 'OddColor', DEFAULT_WINDOW_COLOR));
2168 FUnFocusedBold := memIni.ReadBool(WINDOW_SECTION,'UnFocusedBold', False);
2170 FEditorFontName := memIni.ReadString(WINDOW_SECTION, 'EditorFontName', DEFAULT_FONT_NAME);
2171 FEditorFontSize := memIni.ReadInteger(WINDOW_SECTION, 'EditorFontSize', DEFAULT_FONT_SIZE);
2172 FEditorFontBold := memIni.ReadBool(WINDOW_SECTION, 'EditorFontBold', False);
2173 FEditorFontItalic := memIni.ReadBool(WINDOW_SECTION, 'EditorFontItalic', False);
2174 FEditorFontColor := StringToColor(memIni.ReadString(WINDOW_SECTION, 'EditorFontColor', DEFAULT_FONT_COLOR));
2175 FEditorBackColor := StringToColor(memIni.ReadString(WINDOW_SECTION, 'EditorBackColor', DEFAULT_WINDOW_COLOR));
2177 FBrowserTabFontName := memIni.ReadString(WINDOW_SECTION, 'BrowserTabFontName', DEFAULT_TAB_FONT_NAME);
2178 FBrowserTabFontSize := memIni.ReadInteger(WINDOW_SECTION, 'BrowserTabFontSize', DEFAULT_TAB_FONT_SIZE);
2179 FBrowserTabFontBold := memIni.ReadBool(WINDOW_SECTION, 'BrowserTabFontBold', False);
2180 FBrowserTabFontItalic := memIni.ReadBool(WINDOW_SECTION, 'BrowserTabFontItalic', False);
2182 FHintFontName := memIni.ReadString(WINDOW_SECTION, 'HintFontName', Screen.HintFont.Name);
2183 FHintFontSize := memIni.ReadInteger(WINDOW_SECTION, 'HintFontSize', Screen.HintFont.Size);
2184 //FHintFontBold := memIni.ReadBool(WINDOW_SECTION, 'HintFontBold', False);
2185 //FHintFontItalic := memIni.ReadBool(WINDOW_SECTION, 'HintFontItalic', False);
2186 FHintFontColor := StringToColor(memIni.ReadString(WINDOW_SECTION, 'HintFontColor', DEFAULT_FONT_COLOR));
2187 FHintBackColor := StringToColor(memIni.ReadString(WINDOW_SECTION, 'HintBackColor', 'clInfoBk'));
2191 \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
2192 \param memIni ini
\83t
\83@
\83C
\83\8b
2194 procedure TSetting.ReadInputHisotrys(memIni: TMemIniFile);
2196 SECTIONS : array[0..2] of string = ('Name', 'Mail', 'SelectText');
2198 wkList : TStringList;
2201 listArray : array[0..2] of TStringList;
2203 if (memIni <> nil) then begin
2204 listArray[0] := FNameList;
2205 listArray[1] := FMailList;
2206 listArray[2] := FSelectTextList;
2207 wkList := TStringList.Create;
2209 for i := 0 to High(listArray) do begin
2210 memIni.ReadSection(SECTIONS[i], wkList);
2211 for j := 0 to wkList.Count -1 do begin
2212 wkStr := memIni.ReadString(SECTIONS[i], wkList[j], '');
2213 if (wkStr <> '') and
2214 (listArray[i].IndexOf(wkStr) = -1) then begin
2215 listArray[i].Add(wkStr);
2225 \breif
\83\8a\83X
\83g
\83J
\83\89\83\80\95\9d\93Ç
\82Ý
\8d\9e\82Ý
2226 \param memIni ini
\83t
\83@
\83C
\83\8b
2228 procedure TSetting.ReadListColumnWidth(memIni: TMemIniFile);
2230 SECTIONS : array[0..2] of string =
2231 ('BBSColumnWidth', 'CategoryColumnWidth', 'BoardColumnWidth');
2232 DEFAULT_BBS_WIDTH: array[0..0] of Integer = (140);
2233 DEFAULT_CATEGORY_WIDTH: array[0..2] of Integer = (150, 80, 130);
2234 DEFAULT_BOARD_WIDTH: array[0..10] of Integer = (350, 60, 60, 60, 60, 60, 80, 130, 130, 130, 60);
2235 MAX_WIDTH: Integer = 2000;
2237 wkList : TStringList;
2240 if (memIni <> nil) then begin
2241 //
\83\8a\83X
\83g
\83J
\83\89\83\80\95\9d
2242 wkList := TStringList.Create;
2244 memIni.ReadSection(SECTIONS[0], wkList);
2245 if Length(FBBSColumnWidth) <> wkList.Count then begin
2246 memIni.EraseSection(SECTIONS[0]);
2248 for i := 0 to High(FBBSColumnWidth) do begin
2249 BBSColumnWidth[i] := memIni.ReadInteger(SECTIONS[0],
2250 'ID' + IntToStr(i), DEFAULT_BBS_WIDTH[i]);
2251 if BBSColumnWidth[i] > MAX_WIDTH then
2252 BBSColumnWidth[i] := DEFAULT_BBS_WIDTH[i];
2254 memIni.ReadSection(SECTIONS[1], wkList);
2255 if Length(FCategoryColumnWidth) <> wkList.Count then begin
2256 memIni.EraseSection(SECTIONS[1]);
2258 for i := 0 to High(FCategoryColumnWidth) do begin
2259 CategoryColumnWidth[i] := memIni.ReadInteger(SECTIONS[1],
2260 'ID' + IntToStr(i), DEFAULT_CATEGORY_WIDTH[i]);
2261 if CategoryColumnWidth[i] > MAX_WIDTH then
2262 CategoryColumnWidth[i] := DEFAULT_CATEGORY_WIDTH[i];
2264 memIni.ReadSection(SECTIONS[2], wkList);
2265 if Length(FBoardColumnWidth) <> wkList.Count then begin
2266 memIni.EraseSection(SECTIONS[2]);
2268 for i := 0 to High(FBoardColumnWidth) do begin
2269 BoardColumnWidth[i] := memIni.ReadInteger(SECTIONS[2],
2270 'ID' + IntToStr(i), DEFAULT_BOARD_WIDTH[i]);
2271 if BoardColumnWidth[i] > MAX_WIDTH then
2272 BoardColumnWidth[i] := DEFAULT_BOARD_WIDTH[i];
2279 //!
\83J
\83e
\83S
\83\8a\83\8a\83X
\83g
\83J
\83\89\83\80\8f\87\8f\98\93Ç
\82Ý
\8d\9e\82Ý
2280 procedure TSetting.ReadOrdColumn(memIni: TMemIniFile);
2282 wkList : TStringList;
2284 i, id, code : Integer;
2286 if (memIni <> nil) then begin
2287 wkList := TStringList.Create;
2289 memIni.ReadSection( 'BBSColumnOrder', wkList );
2290 for i := 0 to wkList.Count - 1 do begin
2291 wkStr := memIni.ReadString( 'BBSColumnOrder', 'ID' + IntToStr( i ), '' );
2292 Val( wkStr, id, code );
2294 FBBSColumnOrder.Add( TGikoBBSColumnID( id ) );
2296 if FBBSColumnOrder.Count = 0 then begin
2297 //
\90Ý
\92è
\82ª
\96³
\82¢
\82Ì
\82Å
\8dì
\90¬
2298 for i := 0 to Integer( High( TGikoBBSColumnID ) ) do
2299 FBBSColumnOrder.Add( TGikoBBSColumnID( i ) );
2302 memIni.ReadSection( 'CategoryColumnOrder', wkList );
2303 for i := 0 to wkList.Count - 1 do begin
2304 wkStr := memIni.ReadString( 'CategoryColumnOrder', 'ID' + IntToStr( i ), '' );
2305 Val( wkStr, id, code );
2307 FCategoryColumnOrder.Add( TGikoCategoryColumnID( id ) );
2309 if FCategoryColumnOrder.Count = 0 then begin
2310 //
\90Ý
\92è
\82ª
\96³
\82¢
\82Ì
\82Å
\8dì
\90¬
2311 for i := 0 to Integer( High( TGikoCategoryColumnID ) ) do
2312 FCategoryColumnOrder.Add( TGikoCategoryColumnID( i ) );
2315 memIni.ReadSection( 'BoardColumnOrder', wkList );
2316 for i := 0 to wkList.Count - 1 do begin
2317 wkStr := memIni.ReadString( 'BoardColumnOrder', 'ID' + IntToStr( i ), '' );
2318 Val( wkStr, id, code );
2320 FBoardColumnOrder.Add( TGikoBoardColumnID( id ) );
2322 if FBoardColumnOrder.Count = 0 then begin
2323 //
\90Ý
\92è
\82ª
\96³
\82¢
\82Ì
\82Å
\8dì
\90¬
2324 for i := 0 to Integer( High( TGikoBoardColumnID ) ) do begin
2325 //
\90¨
\82¢
\82Ì
\83J
\83\89\83\80\82Í
\83f
\83t
\83H
\83\8b\83g
\82Å
\94ñ
\95\
\8e¦
\82É
\82·
\82é
2326 if ( i <> Ord(gbcVigor) ) then begin
2327 FBoardColumnOrder.Add( TGikoBoardColumnID( i ) );