6 SysUtils, Classes, Graphics, Forms, Math, IniFiles, UCryptAuto, UBase64,
10 MAIN_COOLBAND_COUNT = 4; //
\83\81\83C
\83\93CoolBand
\82Ì
\90\94
11 LIST_COOLBAND_COUNT = 2; //
\94ÂCoolBand
\82Ì
\90\94
12 BROWSER_COOLBAND_COUNT = 3; //
\83u
\83\89\83E
\83UCoolBand
\82Ì
\90\94
14 BOARD_FILE_NAME = 'board.2ch';
15 CUSTOMBOARD_FILE_NAME = 'custom.2ch';
16 BOARD_DIR_NAME = 'Board';
17 KEY_SETTING_FILE_NAME = 'key.ini';
18 EKEY_SETTING_FILE_NAME = 'Ekey.ini';
20 OUTBOX_FILE_NAME = 'outbox.ini';
21 SENT_FILE_NAME = 'sent.ini';
22 CONFIG_DIR_NAME = 'config';
24 SKIN_DIR_NAME = 'skin';
25 SKIN_HEADER_FILE_NAME = 'Header.html';
26 SKIN_FOOTER_FILE_NAME = 'Footer.html';
27 SKIN_NEWRES_FILE_NAME = 'NewRes.html';
28 SKIN_RES_FILE_NAME = 'Res.html';
29 SKIN_BOOKMARK_FILE_NAME = 'Bookmark.html';
30 SKIN_NEWMARK_FILE_NAME = 'Newmark.html';
31 NGWORDs_DIR_NAME : String = 'NGwords';
32 BOARD_PLUGIN_DIR_NAME = 'BoardPlugin';
33 SAMBATIME_FILE_NAME : String = 'Samba.ini';
34 IGNORE_FILE_NAME : String = 'Ignore.txt';
35 // DOLIB_LOGIN_URL = '/~tora3n2c/futen.cgi';
36 MAX_POPUP_RES : Integer = 10;
38 TGikoTabPosition = (gtpTop, gtpBottom); //
\83^
\83u
\88Ê
\92u
39 TGikoTabAppend = (gtaFirst, gtpLast); //
\83^
\83u
\92Ç
\89Á
\88Ê
\92u
40 TGikoTabStyle = (gtsTab, gtsButton, gtsFlat); //
\83^
\83u
\83X
\83^
\83C
\83\8b
41 TGikoListOrientation = (gloHorizontal, gloVertical); //
\83\8a\83X
\83g
\90\82\92¼
\81E
\90\85\95½
42 TGikoListState = (glsMax, glsNormal, glsMin); //
\83\8a\83X
\83g
\83T
\83C
\83Y
\8fó
\91Ô
43 //
\83|
\83b
\83v
\83A
\83b
\83v
\95\
\8e¦
\88Ê
\92u
44 TGikoPopupPosition = (gppRightTop, gppTop, gppLeftTop,
45 gppRight, gppCenter, gppLeft,
46 gppRightBottom, gppBottom, gppLeftBottom);
47 //
\83v
\83\8c\83r
\83\85\81[
\83T
\83C
\83Y
48 TGikoPreviewSize = (gpsXLarge, gpsLarge, gpsMedium, gpsSmall, gpsXSmall);
49 TGikoBrowserAutoMaximize = (gbmNone, gbmClick, gbmDoubleClick);
50 //
\83u
\83\89\83E
\83U
\82ð
\8e©
\93®
\93I
\82É
\8dÅ
\91å
\89»
\82·
\82é
\8fð
\8c\8f
51 ///
\83\8c\83X
\95\
\8e¦
\94Í
\88Í
\81B10
\81` 65535
\82Í
\8dÅ
\90V n
\83\8c\83X
\88µ
\82¢
\81B
52 ///
\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
53 TGikoResRange = (grrAll, grrSelect, grrKoko, grrNew);
55 ///
\83X
\83\8c\83b
\83h
\88ê
\97\97\95\
\8e¦
\94Í
\88Í
56 TGikoThreadRange = (gtrAll, gtrSelect, gtrLog, gtrNew);
58 //CoolBar
\90Ý
\92è
\83\8c\83R
\81[
\83h
65 TSetting = class(TObject)
67 //
\8eó
\90M
\83o
\83b
\83t
\83@
\83T
\83C
\83Y
68 FRecvBufferSize: Integer;
71 //
\83v
\83\8d\83L
\83V
\90Ú
\91±HTTP1.1
\8eg
\97p
72 FProxyProtocol: Boolean;
74 //
\83v
\83\8d\83L
\83V
\81i
\93Ç
\8d\9e\97p
\81j
76 FReadProxyAddress: string;
77 FReadProxyPort: Integer;
78 FReadProxyUserID: string;
79 FReadProxyPassword: string;
81 //
\83v
\83\8d\83L
\83V
\81i
\8f\91\8d\9e\97p
\81j
83 FWriteProxyAddress: string;
84 FWriteProxyPort: Integer;
85 FWriteProxyUserID: string;
86 FWriteProxyPassword: string;
88 //
\83L
\83\83\83r
\83l
\83b
\83g
89 FCabinetFontName: string;
90 FCabinetFontSize: Integer;
91 FCabinetFontBold: Boolean;
92 FCabinetFontItalic: Boolean;
93 FCabinetFontColor: TColor;
94 FCabinetBackColor: TColor;
97 FListFontName: string;
98 FListFontSize: Integer;
99 FListFontBold: Boolean;
100 FListFontItalic: Boolean;
101 FListFontColor: TColor;
102 FListBackColor: TColor;
105 FBrowserFontName: string; // ''...default
106 FBrowserFontSize: Integer; // 0...default
107 FBrowserFontBold: Integer; // 0...default, -1...False, 1...True
108 FBrowserFontItalic: Integer; //
\8fã
\82É
\93¯
\82¶
109 FBrowserFontColor: Integer; // -1...default
110 FBrowserBackColor: Integer; //
\8fã
\82É
\93¯
\82¶
113 FEditorFontName: string;
114 FEditorFontSize: Integer;
115 FEditorFontBold: Boolean;
116 FEditorFontItalic: Boolean;
117 FEditorFontColor: TColor;
118 FEditorBackColor: TColor;
120 //
\83^
\83u
\83t
\83H
\83\93\83g
121 FBrowserTabFontName: string;
122 FBrowserTabFontSize: Integer;
123 FBrowserTabFontBold: Boolean;
124 FBrowserTabFontItalic: Boolean;
126 //
\83q
\83\93\83g
\83E
\83B
\83\93\83h
\83E
127 FHintFontName: string;
128 FHintFontSize: Integer;
129 //FHintFontBold: Boolean;
130 //FHintFontItalic: Boolean;
131 FHintFontColor: TColor;
132 FHintBackColor: TColor;
134 //
\83E
\83B
\83\93\83h
\83E
\83T
\83C
\83Y
136 FWindowLeft: Integer;
137 FWindowHeight: Integer;
138 FWindowWidth: Integer;
140 //
\83\8a\83X
\83g
\83r
\83\85\81[
\83X
\83^
\83C
\83\8b
141 FListStyle: TViewStyle;
143 //
\83c
\81[
\83\8b\83o
\81[
\95\
\8e¦
144 FStdToolBarVisible: Boolean;
145 FAddressBarVisible: Boolean;
146 FLinkBarVisible: Boolean;
147 FListToolBarVisible: Boolean;
148 FListNameBarVisible: Boolean;
149 FBrowserToolBarVisible: Boolean;
150 FBrowserNameBarVisible: Boolean;
152 //
\83u
\83\89\83E
\83U
\83^
\83u
153 FBrowserTabVisible: Boolean;
154 FBrowserTabPosition: TGikoTabPosition;
155 FBrowserTabAppend: TGikoTabAppend;
156 FBrowserTabStyle: TGikoTabStyle;
158 //
\83\81\83b
\83Z
\81[
\83W
\83o
\81[
159 FMessageBarVisible: Boolean;
160 FMessegeBarHeight: Integer;
162 //
\83X
\83e
\81[
\83^
\83X
\83o
\81[
163 FStatusBarVisible: Boolean;
165 //
\83L
\83\83\83r
\83l
\83b
\83g
\89Â
\8e\8b\81E
\83T
\83C
\83Y
166 FCabinetVisible: Boolean;
167 FCabinetWidth: Integer;
169 //
\83\8a\83X
\83g
\81E
\83u
\83\89\83E
\83U
\83T
\83C
\83Y
170 FListOrientation: TGikoListOrientation;
171 FListHeight: Integer;
172 FListHeightState: TGikoListState;
174 FListWidthState: TGikoListState;
175 // FListHeightMax: Boolean;
176 // FListWidthMax: Boolean;
178 //
\91\97\90M
\97p
\96¼
\91O
\81E
\83\81\81[
\83\8b
179 FNameList: TStringList;
180 FMailList: TStringList;
182 //
\83G
\83f
\83B
\83^
\81[
\83E
\83B
\83\93\83h
\83E
\83T
\83C
\83Y
183 FEditWindowTop: Integer;
184 FEditWindowLeft: Integer;
185 FEditWindowHeight: Integer;
186 FEditWindowWidth: Integer;
187 FEditWindowMax: Boolean;
188 FEditWindowStay: Boolean;
189 FEditWindowTranslucent: Boolean;
191 //
\83\8a\83X
\83g
\94Ô
\8d\86\95\
\8e¦
192 FListViewNo: Boolean;
195 //CSS
\83t
\83@
\83C
\83\8b\96¼
196 FCSSFileName: string;
197 //
\83X
\83L
\83\93\95\
\8e¦(
\88ê
\8e\9e\93I
\82È
\82à
\82Ì
\82Å ini
\82É
\95Û
\91¶
\82Í
\82³
\82ê
\82È
\82¢)
201 ///
\83\8c\83X
\95\
\8e¦
\94Í
\88Í
203 ///
\8bN
\93®
\8e\9e\83\8c\83X
\95\
\8e¦
\94Í
\88Í
\82Ì
\8cÅ
\92è
204 FResRangeHold : Boolean;
205 ///
\83X
\83\8c\83b
\83h
\88ê
\97\97\95\
\8e¦
\94Í
\88Í
206 FThreadRange : TGikoThreadRange;
207 //
\94ñ
\83A
\83N
\83e
\83B
\83u
\8e\9e\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\95\
\8e¦
208 FUnActivePopup: Boolean;
209 //
\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\83w
\83b
\83_
\81[
\83{
\81[
\83\8b\83h
210 FResPopupHeaderBold: Boolean;
212 //
\83\8d\83O
\83t
\83H
\83\8b\83_
214 FNewLogFolder: string;
216 //
\83\8a\83X
\83g
\83J
\83\89\83\80\83w
\83b
\83_
\81[
\83T
\83C
\83Y
217 FBBSColumnWidth: array[0..0] of Integer;
218 FCategoryColumnWidth: array[0..3] of Integer;
219 FBoardColumnWidth: array[0..7] of Integer;
222 FBBSSortIndex: Integer;
223 FBBSSortOrder: Boolean;
224 FCategorySortIndex: Integer;
225 FCategorySortOrder: Boolean;
226 FBoardSortIndex: Integer;
227 FBoardSortOrder: Boolean;
229 //Dat
\97\8e\82¿
\83X
\83\8c\83\
\81[
\83g
\8f\87
230 FDatOchiSortIndex: Integer;
231 FDatOchiSortOrder: Boolean;
233 //
\8di
\8d\9e\82Ý
\95¶
\8e\9a\97ñ
234 FSelectTextList: TStringList;
237 //FBoardURL2ch: string;
238 FBoardURLs: TStringList;
239 FBoardURLSelected: Integer;
241 //
\83\86\81[
\83UID
\81E
\83p
\83X
\83\8f\81[
\83h
245 FForcedLogin: Boolean;
248 //URL
\83N
\83\8a\83b
\83N
\8e\9e\8bN
\93®
\83A
\83v
\83\8a
252 //mailto
\83N
\83\8a\83b
\83N
\8e\9e\93®
\8dì
253 FOpenMailer: Boolean;
258 //CoolBar
\81i
\83\81\83C
\83\93\81E
\94Â
\81E
\83u
\83\89\83E
\83U
\81j
259 FMainCoolBar: array[0..MAIN_COOLBAND_COUNT - 1] of TCoolSet;
260 FListCoolBar: array[0..LIST_COOLBAND_COUNT - 1] of TCoolSet;
261 FBrowserCoolBar: array[0..BROWSER_COOLBAND_COUNT - 1] of TCoolSet;
264 FListToolBarWrapable: Boolean;
265 FBrowserToolBarWrapable: Boolean;
267 //
\83|
\83b
\83v
\83A
\83b
\83v
\88Ê
\92u
268 FPopupPosition: TGikoPopupPosition;
270 //
\83A
\83h
\83\8c\83X
\83o
\81[
271 FURLDisplay: Boolean;
272 FAddressBarTabStop: Boolean;
273 FLinkAddAddressBar: Boolean;
274 FAddressHistoryCount: Integer;
276 //
\89æ
\91\9c\83v
\83\8c\83r
\83\85\81[
277 FPreviewVisible: Boolean;
278 FPreviewSize: TGikoPreviewSize;
279 FPreviewWait: Integer;
281 //
\83u
\83\89\83E
\83U
282 FBrowserAutoMaximize: TGikoBrowserAutoMaximize;
284 //
\83X
\83\8c\83b
\83h
\88ê
\97\97\8dX
\90V
\83A
\83C
\83R
\83\93\95\
\8e¦
285 FListIconVisible: Boolean;
286 //
\8eæ
\93¾
\90\94\82Å
\82Í
\82È
\82
\96¢
\8eæ
\93¾
\82ð
\95\
\8e¦
\82·
\82é
287 FNonAcquiredCount: Boolean;
289 //
\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©
290 FCreationTimeLogs: Boolean;
291 //
\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¢
292 FFutureThread: Boolean;
294 //
\8f\91\82«
\8d\9e\82Ý
\8e\9e\83}
\83V
\83\93\8e\9e\8aÔ
\8eg
\97p
\90Ý
\92è
295 FUseMachineTime: Boolean;
296 FTimeAdjustSec: Integer;
297 FTimeAdjust: Boolean;
300 FAbonDeleterlo : Boolean; //&rlo;
\82ð
\8dí
\82é
\82©
301 FAbonReplaceul : Boolean; //<ul>
\83^
\83O
\82ð<br>
\83^
\83O
\82É
\92u
\8a·
\82·
\82é
\82©
302 FPopUpAbon : Boolean; //
\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\8e\9e\82Ì
\82 \82Ú
\81`
\82ñ
\97L
\8cø
303 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¦
304 FAddResAnchor : Boolean; //NG
\83\8c\83X
\82Ö
\82Ì
\83\8c\83X
\83A
\83\93\83J
\81[
\82ð
\92Ç
\89Á
\82·
\82é
305 FDeleteSyria : Boolean; //
\83V
\83\8a\83A
\8cê
\83u
\83\89\83N
\83\89\91Î
\8dô
307 //
\83X
\83\8c\83b
\83h
\8di
\8d\9e\83t
\83B
\81[
\83\8b\83h
\82Ì
\95\9d
308 FSelectComboBoxWidth : Integer;
310 //
\8dÅ
\8cã
\82É
\91I
\91ð
\82³
\82ê
\82½
\83I
\83v
\83V
\83\87\83\93\83_
\83C
\83A
\83\8d\83O
\82Ì
\83^
\83u
311 FOptionDialogTabIndex: Integer;
313 //
\8dÅ
\8cã
\82É
\91I
\91ð
\82³
\82ê
\82½
\83L
\83\83\83r
\83l
\83b
\83g
314 FCabinetIndex: Integer;
316 //
\8fI
\97¹
\8e\9e\82É
\8am
\94F
\83_
\83C
\83A
\83\8d\83O
\82ð
\95\
\8e¦
\82·
\82é
\82©
317 FShowDialogForEnd : Boolean;
318 //
\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é
319 FShowDialogForAllTabClose: Boolean;
320 //
\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©
321 FUseOddColorOddResNum: Boolean;
324 //Samba24
\91Î
\8dô
\8b@
\94\
\82ð
\8eg
\82¤
\82©
327 //
\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©
328 FResAnchorJamp: Boolean;
330 //Tab
\8e©
\93®
\95Û
\91¶
331 FTabAutoLoadSave : Boolean;
333 FSpaceToNBSP : Boolean; ///<
\94¼
\8ap
\83X
\83y
\81[
\83X
\81ATab
\82ð
\82É
\92u
\8a·
334 FAmpToCharRef : Boolean; ///< '&'
\82ð &
\82É
\92u
\8a·
336 //
\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Ô
337 FSelectInterval : Integer;
339 function GetMainCoolSet(Index: Integer): TCoolSet;
340 function GetBoardCoolSet(Index: Integer): TCoolSet;
341 function GetBrowserCoolSet(Index: Integer): TCoolSet;
342 procedure SetMainCoolSet(Index: Integer; CoolSet: TCoolSet);
343 procedure SetBoardCoolSet(Index: Integer; CoolSet: TCoolSet);
344 procedure SetBrowserCoolSet(Index: Integer; CoolSet: TCoolSet);
346 function GetBBSColumnWidth(index: Integer): Integer;
347 function GetCategoryColumnWidth(index: Integer): Integer;
348 function GetBoardColumnWidth(index: Integer): Integer;
349 procedure SetBBSColumnWidth(index: Integer; value: Integer);
350 procedure SetCategoryColumnWidth(index: Integer; value: Integer);
351 procedure SetBoardColumnWidth(index: Integer; value: Integer);
353 function GetSoundName(Index: Integer): string;
354 function GetSoundViewName(Index: Integer): string;
355 function GetSoundFileName(Index: Integer): string;
356 procedure SetSoundFileName(Index: Integer; value: string);
357 function Encrypt(s: string): string;
358 function Decrypt(s: string): string;
360 procedure MakeURLIniFile();
362 procedure SetUseCSS( value: Boolean );
363 procedure SetCSSFileName( fileName: string );
368 destructor Destroy; override;
369 function GetFileName: string;
370 function GetBoardURLFileName: string;
371 procedure ReadSettingFile;
372 procedure ReadBoardURLsFile;
373 procedure WriteSystemSettingFile;
374 procedure WriteWindowSettingFile;
375 procedure WriteNameMailSettingFile;
376 procedure WriteFolderSettingFile();
377 procedure WriteBoardURLSettingFile;
378 function GetSoundCount: Integer;
379 function FindSoundFileName(Name: string): string;
381 function GetBoardFileName: string;
382 function GetCustomBoardFileName: string;
383 function GetBoardDir: string;
384 function GetHtmlTempFileName: string;
385 function GetAppDir: string;
386 function GetTempFolder: string;
387 function GetSentFileName: string;
388 function GetConfigDir: string;
389 function GetSkinDir: string;
390 function GetSkinHeaderFileName: string;
391 function GetSkinFooterFileName: string;
392 function GetSkinResFileName: string;
393 function GetSkinNewResFileName: string;
394 function GetSkinBookmarkFileName: string;
395 function GetSkinNewmarkFileName: string;
396 function GetStyleSheetDir: string;
397 function GetOutBoxFileName: string;
398 function GetNGWordsDir: string;
399 function GetBoardPlugInDir: string;
400 function GetSambaFileName: string;
401 function GetIgnoreFileName: string;
403 //
\8eó
\90M
\83o
\83b
\83t
\83@
\83T
\83C
\83Y
404 property RecvBufferSize: Integer read FRecvBufferSize write FRecvBufferSize;
406 property Protocol: Boolean read FProtocol write FProtocol;
407 //
\83v
\83\8d\83L
\83V
\90Ú
\91±HTTP1.1
\8eg
\97p
408 property ProxyProtocol: Boolean read FProxyProtocol write FProxyProtocol;
410 property ReadProxy: Boolean read FReadProxy write FReadProxy;
411 property ReadProxyAddress: string read FReadProxyAddress write FReadProxyAddress;
412 property ReadProxyPort: Integer read FReadProxyPort write FReadProxyPort;
413 property ReadProxyUserID: string read FReadProxyUserID write FReadProxyUserID;
414 property ReadProxyPassword: string read FReadProxyPassword write FReadProxyPassword;
416 property WriteProxy: Boolean read FWriteProxy write FWriteProxy;
417 property WriteProxyAddress: string read FWriteProxyAddress write FWriteProxyAddress;
418 property WriteProxyPort: Integer read FWriteProxyPort write FWriteProxyPort;
419 property WriteProxyUserID: string read FWriteProxyUserID write FWriteProxyUserID;
420 property WriteProxyPassword: string read FWriteProxyPassword write FWriteProxyPassword;
422 property CabinetFontName: string read FCabinetFontName write FCabinetFontName;
423 property CabinetFontSize: Integer read FCabinetFontSize write FCabinetFontSize;
424 property CabinetFontBold: Boolean read FCabinetFontBold write FCabinetFontBold;
425 property CabinetFontItalic: Boolean read FCabinetFontItalic write FCabinetFontItalic;
426 property CabinetFontColor: TColor read FCabinetFontColor write FCabinetFontColor;
427 property CabinetBackColor: TColor read FCabinetBackColor write FCabinetBackColor;
429 property ListFontName: string read FListFontName write FListFontName;
430 property ListFontSize: Integer read FListFontSize write FListFontSize;
431 property ListFontBold: Boolean read FListFontBold write FListFontBold;
432 property ListFontItalic: Boolean read FListFontItalic write FListFontItalic;
433 property ListFontColor: TColor read FListFontColor write FListFontColor;
434 property ListBackColor: TColor read FListBackColor write FListBackColor;
436 property BrowserFontName: string read FBrowserFontName write FBrowserFontName;
437 property BrowserFontSize: Integer read FBrowserFontSize write FBrowserFontSize;
438 property BrowserFontBold: Integer read FBrowserFontBold write FBrowserFontBold;
439 property BrowserFontItalic: Integer read FBrowserFontItalic write FBrowserFontItalic;
440 property BrowserFontColor: Integer read FBrowserFontColor write FBrowserFontColor;
441 property BrowserBackColor: Integer read FBrowserBackColor write FBrowserBackColor;
443 property EditorFontName: string read FEditorFontName write FEditorFontName;
444 property EditorFontSize: Integer read FEditorFontSize write FEditorFontSize;
445 property EditorFontBold: Boolean read FEditorFontBold write FEditorFontBold;
446 property EditorFontItalic: Boolean read FEditorFontItalic write FEditorFontItalic;
447 property EditorFontColor: TColor read FEditorFontColor write FEditorFontColor;
448 property EditorBackColor: TColor read FEditorBackColor write FEditorBackColor;
450 property BrowserTabFontName: string read FBrowserTabFontName write FBrowserTabFontName;
451 property BrowserTabFontSize: Integer read FBrowserTabFontSize write FBrowserTabFontSize;
452 property BrowserTabFontBold: Boolean read FBrowserTabFontBold write FBrowserTabFontBold;
453 property BrowserTabFontItalic: Boolean read FBrowserTabFontItalic write FBrowserTabFontItalic;
455 property HintFontName: string read FHintFontName write FHintFontName;
456 property HintFontSize: Integer read FHintFontSize write FHintFontSize;
457 //property HintFontBold: Boolean read FHintFontBold write FHintFontBold;
458 //property HintFontItalic: Boolean read FHintFontItalic write FHintFontItalic;
459 property HintFontColor: TColor read FHintFontColor write FHintFontColor;
460 property HintBackColor: TColor read FHintBackColor write FHintBackColor;
462 property WindowTop: Integer read FWindowTop write FWindowTop;
463 property WindowLeft: Integer read FWindowLeft write FWindowLeft;
464 property WindowHeight: Integer read FWindowHeight write FWindowHeight;
465 property WindowWidth: Integer read FWindowWidth write FWindowWidth;
466 property WindowMax: Boolean read FWindowMax write FWindowMax;
467 property ListStyle: TViewStyle read FListStyle write FListStyle;
469 property StdToolBarVisible: Boolean read FStdToolBarVisible write FStdToolBarVisible;
470 property AddressBarVisible: Boolean read FAddressBarVisible write FAddressBarVisible;
471 property LinkBarVisible: Boolean read FLinkBarVisible write FLinkBarVisible;
472 property ListToolBarVisible: Boolean read FListToolBarVisible write FListToolBarVisible;
473 property ListNameBarVisible: Boolean read FListNameBarVisible write FListNameBarVisible;
474 property BrowserToolBarVisible: Boolean read FBrowserToolBarVisible write FBrowserToolBarVisible;
475 property BrowserNameBarVisible: Boolean read FBrowserNameBarVisible write FBrowserNameBarVisible;
477 property BrowserTabVisible: Boolean read FBrowserTabVisible write FBrowserTabVisible;
478 property BrowserTabPosition: TGikoTabPosition read FBrowserTabPosition write FBrowserTabPosition;
479 property BrowserTabAppend: TGikoTabAppend read FBrowserTabAppend write FBrowserTabAppend;
480 property BrowserTabStyle: TGikoTabStyle read FBrowserTabStyle write FBrowserTabStyle;
482 property MessageBarVisible: Boolean read FMessageBarVisible write FMessageBarVisible;
483 property MessegeBarHeight: Integer read FMessegeBarHeight write FMessegeBarHeight;
485 property StatusBarVisible: Boolean read FStatusBarVisible write FStatusBarVisible;
487 property CabinetVisible: Boolean read FCabinetVisible write FCabinetVisible;
488 property CabinetWidth: Integer read FCabinetWidth write FCabinetWidth;
490 property ListOrientation: TGikoListOrientation read FListOrientation write FListOrientation;
491 property ListHeight: Integer read FListHeight write FListHeight;
492 property ListHeightState: TGikoListState read FListHeightState write FListHeightState;
493 property ListWidth: Integer read FListWidth write FListWidth;
494 property ListWidthState: TGikoListState read FListWidthState write FListWidthState;
495 // property ListHeightMax: Boolean read FListHeightMax write FListHeightMax;
496 // property ListWidthMax: Boolean read FListWidthMax write FListWidthMax;
498 property NameList: TStringList read FNameList write FNameList;
499 property MailList: TStringList read FMailList write FMailList;
500 property SelectTextList: TStringList read FSelectTextList write FSelectTextList;
502 property EditWindowTop: Integer read FEditWindowTop write FEditWindowTop;
503 property EditWindowLeft: Integer read FEditWindowLeft write FEditWindowLeft;
504 property EditWindowHeight: Integer read FEditWindowHeight write FEditWindowHeight;
505 property EditWindowWidth: Integer read FEditWindowWidth write FEditWindowWidth;
506 property EditWindowMax: Boolean read FEditWindowMax write FEditWindowMax;
507 property EditWindowStay: Boolean read FEditWindowStay write FEditWindowStay;
508 property EditWindowTranslucent: Boolean read FEditWindowTranslucent write FEditWindowTranslucent;
510 property ListViewNo: Boolean read FListViewNo write FListViewNo;
511 property UseCSS: Boolean read FUseCSS write SetUseCSS;
512 property CSSFileName: string read FCSSFileName write SetCSSFileName;
513 property UseSkin: Boolean read FUseSkin;
515 property ShowMail: Boolean read FShowMail write FShowMail;
516 property ResRange : Longint read FResRange write FResRange;
517 property ResRangeHold : Boolean read FResRangeHold write FResRangeHold;
518 property ThreadRange : TGikoThreadRange read FThreadRange write FThreadRange;
519 property UnActivePopup: Boolean read FUnActivePopup write FUnActivePopup;
520 property ResPopupHeaderBold: Boolean read FResPopupHeaderBold write FResPopupHeaderBold;
522 property LogFolder: string read FLogFolder write FLogFolder;
523 property NewLogFolder: string read FNewLogFolder write FNewLogFolder;
525 property BBSColumnWidth[index: Integer]: Integer read GetBBSColumnWidth write SetBBSColumnWidth;
526 property CategoryColumnWidth[index: Integer]: Integer read GetCategoryColumnWidth write SetCategoryColumnWidth;
527 property BoardColumnWidth[index: Integer]: Integer read GetBoardColumnWidth write SetBoardColumnWidth;
529 property SoundName[index: Integer]: string read GetSoundName;
530 property SoundViewName[index: Integer]: string read GetSoundViewName;
531 property SoundFileName[index: Integer]: string read GetSoundFileName write SetSoundFileName;
533 property BBSSortIndex: Integer read FBBSSortIndex write FBBSSortIndex;
534 property BBSSortOrder: Boolean read FBBSSortOrder write FBBSSortOrder;
535 property CategorySortIndex: Integer read FCategorySortIndex write FCategorySortIndex;
536 property CategorySortOrder: Boolean read FCategorySortOrder write FCategorySortOrder;
537 property BoardSortIndex: Integer read FBoardSortIndex write FBoardSortIndex;
538 property BoardSortOrder: Boolean read FBoardSortOrder write FBoardSortOrder;
540 property DatOchiSortIndex: Integer read FDatOchiSortIndex write FDatOchiSortIndex;
541 property DatOchiSortOrder: Boolean read FDatOchiSortOrder write FDatOchiSortOrder;
543 //property BoardURL2ch: string read FBoardURL2ch write FBoardURL2ch;
544 property BoardURLs: TStringList read FBoardURLs write FBoardURLs;
545 property BoardURLSelected: Integer read FBoardURLSelected write FBoardURLSelected;
546 property UserID: string read FUserID write FUserID;
547 property Password: string read FPassword write FPassword;
548 property AutoLogin: Boolean read FAutoLogin write FAutoLogin;
549 property ForcedLogin: Boolean read FForcedLogin write FForcedLogin;
550 property DolibURL: string read FDolibURL write FDolibURL;
552 property URLApp: Boolean read FURLApp write FURLApp;
553 property URLAppFile: string read FURLAppFile write FURLAppFile;
555 property OpenMailer: Boolean read FOpenMailer write FOpenMailer;
557 property DeleteMsg: Boolean read FDeleteMsg write FDeleteMsg;
559 property MainCoolSet[Index: Integer]: TCoolSet read GetMainCoolSet write SetMainCoolSet;
560 property ListCoolSet[Index: Integer]: TCoolSet read GetBoardCoolSet write SetBoardCoolSet;
561 property BrowserCoolSet[Index: Integer]: TCoolSet read GetBrowserCoolSet write SetBrowserCoolSet;
563 property ListToolBarWrapable: Boolean read FListToolBarWrapable write FListToolBarWrapable;
564 property BrowserToolBarWrapable: Boolean read FBrowserToolBarWrapable write FBrowserToolBarWrapable;
566 property PopupPosition: TGikoPopupPosition read FPopupPosition write FPopupPosition;
568 property URLDisplay: Boolean read FURLDisplay write FURLDisplay;
569 property AddressBarTabStop: Boolean read FAddressBarTabStop write FAddressBarTabStop;
570 property LinkAddAddressBar: Boolean read FLinkAddAddressBar write FLinkAddAddressBar;
571 property AddressHistoryCount: Integer read FAddressHistoryCount write FAddressHistoryCount;
573 property PreviewVisible: Boolean read FPreviewVisible write FPreviewVisible;
574 property PreviewSize: TGikoPreviewSize read FPreviewSize write FPreviewSize;
575 property PreviewWait: Integer read FPreviewWait write FPreviewWait;
576 property BrowserAutoMaximize: TGikoBrowserAutoMaximize read FBrowserAutoMaximize write FBrowserAutoMaximize;
578 property ListIconVisible: Boolean read FListIconVisible write FListIconVisible;
579 property NonAcquiredCount: Boolean read FNonAcquiredCount write FNonAcquiredCount;
580 property CreationTimeLogs: Boolean read FCreationTimeLogs write FCreationTimeLogs;
581 property FutureThread: Boolean read FFutureThread write FFutureThread;
583 property UseMachineTime: Boolean read FUseMachineTime write FUseMachineTime;
584 property TimeAdjustSec: Integer read FTimeAdjustSec write FTimeAdjustSec;
585 property TimeAdjust: Boolean read FTimeAdjust write FTimeAdjust;
588 property AbonDeleterlo : Boolean read FAbonDeleterlo write FAbonDeleterlo;
589 property AbonReplaceul : Boolean read FAbonReplaceul write FAbonReplaceul;
590 property PopUpAbon : Boolean read FPopUpAbon write FPopUpAbon;
591 property ShowNGLinesNum : Boolean read FShowNGLinesNum write FShowNGLinesNum;
592 property AddResAnchor : Boolean read FAddResAnchor write FAddResAnchor;
593 property DeleteSyria : Boolean read FDeleteSyria write FDeleteSyria;
594 //
\83X
\83\8c\83b
\83h
\8di
\8d\9e\83t
\83B
\81[
\83\8b\83h
\82Ì
\95\9d
595 property SelectComboBoxWidth : Integer read FSelectComboBoxWidth write FSelectComboBoxWidth;
597 //
\8dÅ
\8cã
\82É
\91I
\91ð
\82³
\82ê
\82½
\83I
\83v
\83V
\83\87\83\93\83_
\83C
\83A
\83\8d\83O
\82Ì
\83^
\83u
598 property OptionDialogTabIndex : Integer read FOptionDialogTabIndex write FOptionDialogTabIndex;
600 //
\8dÅ
\8cã
\82É
\91I
\91ð
\82³
\82ê
\82½
\83L
\83\83\83r
\83l
\83b
\83g
601 property CabinetIndex : Integer read FCabinetIndex write FCabinetIndex;
603 //
\8fI
\97¹
\8e\9e\82É
\8am
\94F
\83_
\83C
\83A
\83\8d\83O
\82ð
\95\
\8e¦
\82·
\82é
\82©
604 property ShowDialogForEnd : Boolean read FShowDialogForEnd write FShowDialogForEnd;
605 property ShowDialogForAllTabClose: Boolean read FShowDialogForAllTabClose write FShowDialogForAllTabClose;
606 //
\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©
607 property UseOddColorOddResNum: Boolean read FUseOddColorOddResNum write FUseOddColorOddResNum;
608 property OddColor: TColor read FOddColor write FOddColor;
609 property UseSamba: Boolean read FUseSamba write FUseSamba;
610 property ResAnchorJamp: Boolean read FResAnchorJamp write FResAnchorJamp;
613 property SpaceToNBSP : Boolean read FSpaceToNBSP write FSpaceToNBSP;
614 property AmpToCharRef : Boolean read FAmpToCharRef write FAmpToCharRef;
616 property SelectInterval : Integer read FSelectInterval write FSelectInterval;
618 property TabAutoLoadSave: Boolean read FTabAutoLoadSave write FTabAutoLoadSave;
633 INI_FILE_NAME: string = 'gikoNavi.ini';
634 BOARD_URL_INI_FILE_NAME: string = 'url.ini';
635 DEFAULT_FONT_NAME: string = '
\82l
\82r
\82o
\83S
\83V
\83b
\83N';
636 DEFAULT_FONT_SIZE: Integer = 9;
637 DEFAULT_FONT_COLOR: string = 'clWindowText';
638 DEFAULT_WINDOW_COLOR: string = 'clWindow';
639 DEFAULT_TAB_FONT_NAME: string = '
\82l
\82r
\82o
\83S
\83V
\83b
\83N';
640 DEFAULT_TAB_FONT_SIZE: Integer = 9;
641 DEFAULT_2CH_BOARD_URL1: string = 'http://www6.ocn.ne.jp/~mirv/2chmenu.html';
642 DEFAULT_2CH_BOARD_URL2: string = 'http://www.ff.iij4u.or.jp/~ch2/bbsmenu.html';
643 //http://menu.2ch.net/bbsmenu.html //
\82à
\82¤
\82·
\82®
\82±
\82ê
\82ª
\90³
\8e®
\82È
\94Â
\88ê
\97\97\82É
\82È
\82é
\82æ
\82¤
644 //'http://www.2ch.net/newbbsmenu.html';
645 GIKO_ENCRYPT_TEXT: string = 'gikoNaviEncryptText';
648 SOUND_NAME: array[0..4] of TSoundName = (
649 (Name: 'New'; ViewName: '
\8eæ
\93¾
\90¬
\8c÷'; FileName: ''),
650 (Name: 'NewDiff'; ViewName: '
\8eæ
\93¾
\90¬
\8c÷(
\8d·
\95ª)'; FileName: ''),
651 (Name: 'NoChange'; ViewName: '
\96¢
\8dX
\90V'; FileName: ''),
652 // (Name: 'RoundEnd'; ViewName: '
\8f\84\89ñ
\8fI
\97¹(
\8eæ
\93¾
\82 \82è)'; FileName: ''),
653 // (Name: 'RoundNone'; ViewName: '
\8f\84\89ñ
\8fI
\97¹(
\8eæ
\93¾
\82È
\82µ)'; FileName: ''),
654 (Name: 'ResEnd'; ViewName: '
\83\8c\83X
\91\97\90M
\8a®
\97¹'; FileName: ''),
655 (Name: 'Error'; ViewName: '
\83G
\83\89\81['; FileName: ''));
657 //
\83R
\83\93\83X
\83g
\83\89\83N
\83^
658 constructor TSetting.Create();
660 FNameList := TStringList.Create;
661 FMailList := TStringList.Create;
662 FSelectTextList := TStringList.Create;
663 FBoardURLs := TStringList.Create;
664 FNameList.Duplicates := dupIgnore;
665 FMailList.Duplicates := dupIgnore;
666 FBoardURLs.Duplicates := dupIgnore;
667 FSelectTextList.Duplicates := dupIgnore;
672 //
\83f
\83X
\83g
\83\89\83N
\83^
673 destructor TSetting.Destroy();
676 FSelectTextList.Free;
682 //
\8f\89\8aú
\89»
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
683 function TSetting.GetFileName(): string;
685 Result := ExtractFilePath(Application.ExeName) + INI_FILE_NAME;
688 //
\94Â
\8dX
\90V
\97pURL
\90Ý
\92è
\83t
\83@
\83C
\83\8b\96¼
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
689 function TSetting.GetBoardURLFileName(): string;
691 Result := ExtractFilePath(Application.ExeName) + BOARD_URL_INI_FILE_NAME;
694 //
\90Ý
\92è
\83t
\83@
\83C
\83\8b\93Ç
\8d\9e
695 procedure TSetting.ReadSettingFile();
697 DEFAULT_BBS_WIDTH: array[0..0] of Integer = (140);
698 DEFAULT_CATEGORY_WIDTH: array[0..3] of Integer = (150, 80, 130, 130);
699 DEFAULT_BOARD_WIDTH: array[0..7] of Integer = (350, 60, 60, 60, 60, 80, 130, 130);
700 MAX_WIDTH: Integer = 2000;
711 Exists := FileExists(GetFileName);
712 ini := TMemIniFile.Create(GetFileName);
714 //
\8eó
\90M
\83o
\83b
\83t
\83@
\83T
\83C
\83Y
715 FRecvBufferSize := ini.ReadInteger('HTTP', 'RecvBufferSize', 4096);
717 FProtocol := ini.ReadBool('HTTP', 'Protocol', True);
718 //
\83v
\83\8d\83L
\83V
\90Ú
\91±HTTP1.1
\8eg
\97p
719 FProxyProtocol := ini.ReadBool('HTTP', 'ProxyProtocol', False);
721 FReadProxy := ini.ReadBool('ReadProxy', 'Proxy', false);
722 FReadProxyAddress := ini.ReadString('ReadProxy', 'Address', '');
723 FReadProxyPort := ini.ReadInteger('ReadProxy', 'Port', 0);
724 FReadProxyUserID := ini.ReadString('ReadProxy', 'UserID', '');
725 FReadProxyPassword := ini.ReadString('ReadProxy', 'Password', '');
727 FWriteProxy := ini.ReadBool('WriteProxy', 'Proxy', false);
728 FWriteProxyAddress := ini.ReadString('WriteProxy', 'Address', '');
729 FWriteProxyPort := ini.ReadInteger('WriteProxy', 'Port', 0);
730 FWriteProxyUserID := ini.ReadString('WriteProxy', 'UserID', '');
731 FWriteProxyPassword := ini.ReadString('WriteProxy', 'Password', '');
733 FBrowserFontName := ini.ReadString('Window', 'BrowserFontName', '');
734 FBrowserFontSize := ini.ReadInteger('Window', 'BrowserFontSize', 0);
735 FBrowserFontBold := ini.ReadInteger('Window', 'BrowserFontBold', 0);
736 FBrowserFontItalic := ini.ReadInteger('Window', 'BrowserFontItalic', 0);
737 FBrowserFontColor := ini.ReadInteger('Window', 'BrowserFontColor', -1);
738 FBrowserBackColor := ini.ReadInteger('Window', 'BrowserBackColor', -1);
740 FCabinetFontName := ini.ReadString('Window', 'CabinetFontName', DEFAULT_FONT_NAME);
741 FCabinetFontSize := ini.ReadInteger('Window', 'CabinetFontSize', DEFAULT_FONT_SIZE);
742 FCabinetFontBold := ini.ReadBool('Window', 'CabinetFontBold', False);
743 FCabinetFontItalic := ini.ReadBool('Window', 'CabinetFontItalic', False);
744 FCabinetFontColor := StringToColor(ini.ReadString('Window', 'CabinetFontColor', DEFAULT_FONT_COLOR));
745 FCabinetBackColor := StringToColor(ini.ReadString('Window', 'CabinetBackColor', DEFAULT_WINDOW_COLOR));
747 FListFontName := ini.ReadString('Window', 'ListFontName', DEFAULT_FONT_NAME);
748 FListFontSize := ini.ReadInteger('Window', 'ListFontSize', DEFAULT_FONT_SIZE);
749 FListFontBold := ini.ReadBool('Window', 'ListFontBold', False);
750 FListFontItalic := ini.ReadBool('Window', 'ListFontItalic', False);
751 FListFontColor := StringToColor(ini.ReadString('Window', 'ListFontColor', DEFAULT_FONT_COLOR));
752 FListBackColor := StringToColor(ini.ReadString('Window', 'ListBackColor', DEFAULT_WINDOW_COLOR));
753 FUseOddColorOddResNum := ini.ReadBool('Window','UseOddColor', False);
754 FOddColor := StringToColor(ini.ReadString('Window', 'OddColor', DEFAULT_WINDOW_COLOR));
756 FEditorFontName := ini.ReadString('Window', 'EditorFontName', DEFAULT_FONT_NAME);
757 FEditorFontSize := ini.ReadInteger('Window', 'EditorFontSize', DEFAULT_FONT_SIZE);
758 FEditorFontBold := ini.ReadBool('Window', 'EditorFontBold', False);
759 FEditorFontItalic := ini.ReadBool('Window', 'EditorFontItalic', False);
760 FEditorFontColor := StringToColor(ini.ReadString('Window', 'EditorFontColor', DEFAULT_FONT_COLOR));
761 FEditorBackColor := StringToColor(ini.ReadString('Window', 'EditorBackColor', DEFAULT_WINDOW_COLOR));
763 FBrowserTabFontName := ini.ReadString('Window', 'BrowserTabFontName', DEFAULT_TAB_FONT_NAME);
764 FBrowserTabFontSize := ini.ReadInteger('Window', 'BrowserTabFontSize', DEFAULT_TAB_FONT_SIZE);
765 FBrowserTabFontBold := ini.ReadBool('Window', 'BrowserTabFontBold', False);
766 FBrowserTabFontItalic := ini.ReadBool('Window', 'BrowserTabFontItalic', False);
768 FHintFontName := ini.ReadString('Window', 'HintFontName', Screen.HintFont.Name);
769 FHintFontSize := ini.ReadInteger('Window', 'HintFontSize', Screen.HintFont.Size);
770 //FHintFontBold := ini.ReadBool('Window', 'HintFontBold', False);
771 //FHintFontItalic := ini.ReadBool('Window', 'HintFontItalic', False);
772 FHintFontColor := StringToColor(ini.ReadString('Window', 'HintFontColor', DEFAULT_FONT_COLOR));
773 FHintBackColor := StringToColor(ini.ReadString('Window', 'HintBackColor', 'clInfoBk'));
775 FWindowTop := ini.ReadInteger('WindowSize', 'Top', -1);
776 FWindowLeft := ini.ReadInteger('WindowSize', 'Left', -1);
777 FWindowHeight := ini.ReadInteger('WindowSize', 'Height', -1);
778 FWindowWidth := ini.ReadInteger('WindowSize', 'Width', -1);
779 FWindowMax := ini.ReadBool('WindowSize', 'Max', false);
781 if FWindowHeight <= 0 then FWindowHeight := 400;
782 if FWindowWidth <= 0 then FWindowWidth := 600;
784 FListStyle := TViewStyle(ini.ReadInteger('ViewStyle', 'ListView', Ord(vsReport)));
786 FEditWindowTop := ini.ReadInteger('EditorWindowSize', 'Top', -1);
787 FEditWindowLeft := ini.ReadInteger('EditorWindowSize', 'Left', -1);
788 FEditWindowHeight := ini.ReadInteger('EditorWindowSize', 'Height', -1);
789 FEditWindowWidth := ini.ReadInteger('EditorWindowSize', 'Width', -1);
790 FEditWindowMax := ini.ReadBool('EditorWindowSize', 'Max', False);
791 FEditWindowStay := ini.ReadBool('EditorWindowSize', 'Stay', False);
792 FEditWindowTranslucent := ini.ReadBool('EditorWindowSize', 'Translucent', False);
794 FOptionDialogTabIndex := ini.ReadInteger('OptionDialog', 'TabIndex', 0);
796 //
\83c
\81[
\83\8b\83o
\81[
797 FStdToolBarVisible := ini.ReadBool('ToolBar', 'StdVisible', True);
798 FAddressBarVisible := ini.ReadBool('ToolBar', 'AddressVisible', True);
799 FLinkBarVisible := ini.ReadBool('ToolBar', 'LinkVisible', True);
800 FListToolBarVisible := ini.ReadBool('ToolBar', 'ListVisible', True);
801 FListNameBarVisible := ini.ReadBool('ToolBar', 'ListNameVisible', True);
802 FBrowserToolBarVisible := ini.ReadBool('ToolBar', 'BrowserVisible', True);
803 FBrowserNameBarVisible := ini.ReadBool('ToolBar', 'BrowserNameVisible', True);
804 //
\83c
\81[
\83\8b\83o
\81[Wrapable
805 FListToolBarWrapable := ini.ReadBool('ToolBar', 'ListWrapable', False);
806 FBrowserToolBarWrapable := ini.ReadBool('ToolBar', 'BrowserWrapable', False);
808 FBrowserTabVisible := ini.ReadBool('Tab', 'BrowserTabVisible', True);
809 FBrowserTabPosition := TGikoTabPosition(ini.ReadInteger('Tab', 'BrowserTabPosition', Ord(gtpTop)));
810 FBrowserTabAppend := TGikoTabAppend(ini.ReadInteger('Tab', 'BrowserTabAppend', Ord(gtaFirst)));
811 FBrowserTabStyle := TGikoTabStyle(ini.ReadInteger('Tab', 'BrowserTabStyle', Ord(gtsFlat)));
813 FMessageBarVisible := ini.ReadBool('MessageBar', 'Visible', True);
814 FMessegeBarHeight := ini.ReadInteger('MessageBar', 'Height', 30);
816 FStatusBarVisible := ini.ReadBool('StatusBar', 'Visible', True);
818 FCabinetVisible := ini.ReadBool('Cabinet', 'Visible', True);
819 FCabinetWidth := ini.ReadInteger('Cabinet', 'Width', 200);
820 FCabinetIndex := ini.ReadInteger('Cabinet', 'Index', 0);
822 FListOrientation := TGikoListOrientation(ini.ReadInteger('List', 'Orientation', Ord(gloHorizontal)));
823 FListHeight := ini.ReadInteger('List', 'Height', 180);
824 FListHeightState := TGikoListState(ini.ReadInteger('List', 'HeightState', Ord(glsNormal)));
825 FListWidth := ini.ReadInteger('List', 'Width', 180);
826 FListWidthState := TGikoListState(ini.ReadInteger('List', 'WidthState', Ord(glsNormal)));
827 // FListHeightMax := ini.ReadBool('List', 'HeightMax', False);
828 // FListWidthMax := ini.ReadBool('List', 'WidthMax', False);
830 wkList := TStringList.Create;
832 ini.ReadSection('Name', wkList);
833 for i := 0 to wkList.Count - 1 do begin
834 wkStr := ini.ReadString('Name', wkList[i], '');
835 if (wkStr <> '') and (FNameList.IndexOf(wkStr) = -1) then
836 FNameList.Add(wkStr);
838 ini.ReadSection('Mail', wkList);
839 for i := 0 to wkList.Count - 1 do begin
840 wkStr := ini.ReadString('Mail', wkList[i], '');
841 if (wkStr <> '') and (FMailList.IndexOf(wkStr) = -1) then
842 FMailList.Add(wkStr);
844 ini.ReadSection('SelectText', wkList);
845 for i := 0 to wkList.Count - 1 do begin
846 wkStr := ini.ReadString('SelectText', wkList[i], '');
847 if (wkStr <> '') and (FSelectTextList.IndexOf(wkStr) = -1) then
848 FSelectTextList.Add(wkStr);
854 //
\83\8a\83X
\83g
\83J
\83\89\83\80
855 wkList := TStringList.Create;
857 ini.ReadSection('BBSColumnWidth', wkList);
858 if Length(FBBSColumnWidth) <> wkList.Count then begin
859 ini.EraseSection('BBSColumnWidth');
861 for i := 0 to Length(FBBSColumnWidth) - 1 do begin
862 BBSColumnWidth[i] := ini.ReadInteger('BBSColumnWidth', 'ID' + IntToStr(i), DEFAULT_BBS_WIDTH[i]);
863 if BBSColumnWidth[i] > MAX_WIDTH then
864 BBSColumnWidth[i] := DEFAULT_BBS_WIDTH[i];
866 ini.ReadSection('CategoryColumnWidth', wkList);
867 if Length(FCategoryColumnWidth) <> wkList.Count then begin
868 ini.EraseSection('CategoryColumnWidth');
870 for i := 0 to Length(FCategoryColumnWidth) - 1 do begin
871 CategoryColumnWidth[i] := ini.ReadInteger('CategoryColumnWidth', 'ID' + IntToStr(i), DEFAULT_CATEGORY_WIDTH[i]);
872 if CategoryColumnWidth[i] > MAX_WIDTH then
873 CategoryColumnWidth[i] := DEFAULT_CATEGORY_WIDTH[i];
875 ini.ReadSection('BoardColumnWidth', wkList);
876 if Length(FBoardColumnWidth) <> wkList.Count then begin
877 ini.EraseSection('BoardColumnWidth');
879 for i := 0 to Length(FBoardColumnWidth) - 1 do begin
880 BoardColumnWidth[i] := ini.ReadInteger('BoardColumnWidth', 'ID' + IntToStr(i), DEFAULT_BOARD_WIDTH[i]);
881 if BoardColumnWidth[i] > MAX_WIDTH then
882 BoardColumnWidth[i] := DEFAULT_BOARD_WIDTH[i];
888 //
\83\8a\83X
\83g
\94Ô
\8d\86
889 FListViewNo := ini.ReadBool('Function', 'ListViewNo', True);
891 UseCSS := ini.ReadBool('CSS', 'UseCSS', True);
892 //CSS
\83t
\83@
\83C
\83\8b\96¼
893 CSSFileName := ini.ReadString('CSS', 'FileName', 'default.css');
896 FShowMail := ini.ReadBool('Thread', 'ShowMail', True);
897 //
\83\8c\83X
\95\
\8e¦
\94Í
\88Í
898 if ini.ReadBool('Thread', 'OnlyAHundredRes',false) then
899 FResRange := 100 //
\8cÃ
\82¢
\90Ý
\92è
\82Ì
\8cÝ
\8a·
\97p
901 FResRange := ini.ReadInteger( 'Thread', 'ResRange', 100 );
902 FResRangeHold := ini.ReadBool( 'Thread', 'ResRangeHold', False );
903 //
\83X
\83\8c\83b
\83h
\88ê
\97\97\95\
\8e¦
\94Í
\88Í
904 FThreadRange := TGikoThreadRange( ini.ReadInteger('ThreadList', 'ThreadRange', Ord( gtrAll )) );
905 //
\94ñ
\83A
\83N
\83e
\83B
\83u
\8e\9e\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\95\
\8e¦
906 FUnActivePopup := ini.ReadBool('Thread', 'UnActivePopup', False);
907 //
\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\83w
\83b
\83_
\81[
\83{
\81[
\83\8b\83h
908 FResPopupHeaderBold := ini.ReadBool('Thread', 'ResPopupHeaderBold', True);
910 FDeleteMsg := ini.ReadBool('Function', 'LogDeleteMessage', True);
912 FShowDialogForEnd := ini.ReadBool('Function','ShowDialogForEnd',false);
914 FShowDialogForAllTabClose := ini.ReadBool('Function','ShowDialogForAllTabClose',false);
916 FUseSamba := ini.ReadBool('Function','UseSamba', True);
918 ResAnchorJamp := ini.ReadBool('Function', 'ResAnchoJamp', True);
919 //
\83\8d\83O
\83t
\83H
\83\8b\83_
920 FLogFolder := ini.ReadString('Folder', 'LogFolder', ExtractFilePath(Application.ExeName) + 'Log');
924 //
\95¡
\90\94\93o
\98^
\82Å
\82«
\82é
\82æ
\82¤
\82É
\82µ
\82ÄFBoardURLs
\82É
\82µ
\82½
\81@2003/10/05
925 //FBoardURL2ch := ini.ReadString('BoardURL', '2ch', DEFAULT_2CH_BOARD_URL);
927 //
\94F
\8fØ
\97p
\83\86\81[
\83UID
\81E
\83p
\83X
\83\8f\81[
\83h
928 FUserID := ini.ReadString('Attestation', 'UserID', '');
929 FPassword := Decrypt(ini.ReadString('Attestation', 'Password', ''));
930 FAutoLogin := ini.ReadBool('Attestation', 'AutoLogin', False);
931 FForcedLogin := ini.ReadBool('Attestation', 'FForcedLogin', False);
932 // FDolibURL := ini.ReadString('Attestation', 'FDolibURL', DOLIB_LOGIN_URL);
934 //URL
\83N
\83\8a\83b
\83N
\8e\9e\8bN
\93®
\83A
\83v
\83\8a
935 FURLApp := ini.ReadBool('URLApp', 'Select', False);
936 FURLAppFile := ini.ReadString('URLApp', 'File', '');
938 //mailto
\83N
\83\8a\83b
\83N
\8e\9e\93®
\8dì
939 FOpenMailer := ini.ReadBool('Mailto', 'Open', True);
941 //
\83|
\83b
\83v
\83A
\83b
\83v
\88Ê
\92u
942 FPopupPosition := TGikoPopupPosition(ini.ReadInteger('Browser', 'PopupPosition', Ord(gppLeftBottom)));
944 //
\83A
\83h
\83\8c\83X
\83o
\81[
945 FURLDisplay := ini.ReadBool('AddressBar', 'URLDisplay', False);
946 FAddressBarTabStop := ini.ReadBool('AddressBar', 'TabStop', True);
947 FLinkAddAddressBar := ini.ReadBool('AddressBar', 'LinkAdd', False);
948 FAddressHistoryCount := ini.ReadInteger('AddressBar', 'HistoryCount', 100);
950 //
\89æ
\91\9c\83v
\83\8c\83r
\83\85\81[
951 FPreviewVisible := ini.ReadBool('Browser', 'PreviewVisible', True);
952 FPreviewSize := TGikoPreviewSize(ini.ReadInteger('Browser', 'PreviewSize', Ord(gpsMedium)));
953 FPreviewWait := ini.ReadInteger('Browser', 'PreviewWait', 500);
955 //
\83u
\83\89\83E
\83U
956 FBrowserAutoMaximize := TGikoBrowserAutoMaximize(
957 ini.ReadInteger('Window', 'BrowserAutoMaximize', Ord(gbmDoubleClick)) );
959 //
\83X
\83\8c\83b
\83h
\88ê
\97\97\8dX
\90V
\83A
\83C
\83R
\83\93
960 FListIconVisible := ini.ReadBool('ThreadList', 'StateIconVisible', True);
961 FNonAcquiredCount := ini.ReadBool('ThreadList', 'NonAcquiredCount', False);
962 FCreationTimeLogs := ini.ReadBool('ThreadList', 'CreationTimeLogs', True);
963 FFutureThread := ini.ReadBool('ThreadList', 'FutureThread', True);
964 FSelectInterval := ini.ReadInteger('ThreadList', 'SelectInterval', 110);
966 FBBSSortIndex := ini.ReadInteger('ThreadList', 'BBSSortIndex', 0);
967 FBBSSortOrder := ini.ReadBool('ThreadList', 'BBSSortOrder', True);
968 FCategorySortIndex := ini.ReadInteger('ThreadList', 'CategorySortIndex', 0);
969 FCategorySortOrder := ini.ReadBool('ThreadList', 'CategorySortOrder', True);
970 FBoardSortIndex := ini.ReadInteger('ThreadList', 'BoardSortIndex', 0);
971 FBoardSortOrder := ini.ReadBool('ThreadList', 'BoardSortOrder', True);
972 //Dat
\97\8e\82¿
\83X
\83\8c\83\
\81[
\83g
\8f\87
973 FDatOchiSortIndex := ini.ReadInteger('ThreadList', 'DatOchiSortIndex', -1);
974 FDatOchiSortOrder := ini.ReadBool('ThreadList', 'DatOchiSortOrder', False);
976 //
\8f\91\82«
\8d\9e\82Ý
\8e\9e\83}
\83V
\83\93\8e\9e\8d\8f\8eg
\97p
\90Ý
\92è
977 FUseMachineTime := ini.ReadBool('PostTime', 'UseMachineTime', False);
978 FTimeAdjustSec := ini.ReadInteger('PostTime', 'TimeAdjustSec', 0);
979 FTimeAdjust := ini.ReadBool('PostTime', 'TimeAdjust', True);
983 for i := 0 to GetSoundCount - 1 do begin
984 SoundFileName[i] := ini.ReadString('Sound', SoundName[i], '');
985 if not FileExists(SoundFileName[i]) then
986 SoundFileName[i] := '';
989 s := ExtractFileDir(Application.ExeName) + '\sound\';
990 SoundFileName[0] := s + '
\8eæ
\93¾
\90¬
\8c÷.wav';
991 SoundFileName[1] := s + '
\8eæ
\93¾
\90¬
\8c÷(
\8d·
\95ª).wav';
992 SoundFileName[2] := s + '
\96¢
\8dX
\90V.wav';
993 SoundFileName[3] := '';
994 SoundFileName[4] := s + '
\83G
\83\89\81[.wav';
997 //
\83N
\81[
\83\8b\83o
\81[
998 for i := 0 to MAIN_COOLBAND_COUNT - 1 do begin
999 CoolSet.FCoolID := ini.ReadInteger('MainCoolBar', 'ID' + IntToStr(i), -1);
1000 CoolSet.FCoolWidth := ini.ReadInteger('MainCoolBar', 'Width' + IntToStr(i), -1);
1001 CoolSet.FCoolBreak := ini.ReadBool('MainCoolBar', 'Break' + IntToStr(i), False);
1002 MainCoolSet[i] := CoolSet;
1004 FSelectComboBoxWidth := ini.ReadInteger( 'ListCoolBar', 'SelectWidth', 127 );
1005 for i := 0 to LIST_COOLBAND_COUNT - 1 do begin
1006 CoolSet.FCoolID := ini.ReadInteger('ListCoolBar', 'ID' + IntToStr(i), -1);
1007 CoolSet.FCoolWidth := ini.ReadInteger('ListCoolBar', 'Width' + IntToStr(i), -1);
1008 CoolSet.FCoolBreak := ini.ReadBool('ListCoolBar', 'Break' + IntToStr(i), False);
1009 ListCoolSet[i] := CoolSet;
1011 for i := 0 to BROWSER_COOLBAND_COUNT - 1 do begin
1012 CoolSet.FCoolID := ini.ReadInteger('BrowserCoolBar', 'ID' + IntToStr(i), -1);
1013 CoolSet.FCoolWidth := ini.ReadInteger('BrowserCoolBar', 'Width' + IntToStr(i), -1);
1014 CoolSet.FCoolBreak := ini.ReadBool('BrowserCoolBar', 'Break' + IntToStr(i), False);
1015 BrowserCoolSet[i] := CoolSet;
1019 FAbonDeleterlo := ini.ReadBool('Abon','Deleterlo',false);
1020 FAbonReplaceul := ini.ReadBool('Abon','Replaceul',false);
1021 FPopUpAbon := ini.ReadBool('Abon','Popup',false);
1022 FShowNGLinesNum := ini.ReadBool('Abon','ShowNGLines',false);
1023 FAddResAnchor := ini.ReadBool('Abon','AddResAnchor',false);
1024 FDeleteSyria := ini.ReadBool('Abon','DeleteSyria',false);
1027 FSpaceToNBSP := ini.ReadBool( 'Editor', 'SpaceToNBSP', True );
1028 FAmpToCharRef := ini.ReadBool( 'Editor', 'AmpToCharRef', False );
1030 //Tab
\8e©
\93®
\95Û
\91¶
\81A
\93Ç
\82Ý
\8d\9e\82Ý
1031 FTabAutoLoadSave := ini.ReadBool('TabAuto', 'TabAutoLoadSave', False);
1038 //
\94Â
\8dX
\90V
\97pURL
\93Ç
\82Ý
\8d\9e\82Ý
1039 procedure TSetting.ReadBoardURLsFile();
1045 if not FileExists(GetBoardURLFileName()) then
1047 ini := TMemIniFile.Create(GetBoardURLFileName());
1049 urlNum := ini.ReadInteger('URL','count',0);
1050 BoardURLSelected := ini.ReadInteger('URL','selected',0);
1051 for i := 0 to urlNum - 1 do begin
1052 FBoardURLs.Append(ini.ReadString('URL',IntToStr(i+1),''));
1059 //
\90Ý
\92è
\83t
\83@
\83C
\83\8b\95Û
\91¶(system)
1060 procedure TSetting.WriteSystemSettingFile();
1064 ini := TMemIniFile.Create(GetFileName());
1066 //
\8eó
\90M
\83o
\83b
\83t
\83@
\83T
\83C
\83Y
1067 ini.WriteInteger('HTTP', 'RecvBufferSize', FRecvBufferSize);
1069 ini.WriteBool('HTTP', 'Protocol', FProtocol);
1070 //
\83v
\83\8d\83L
\83V
\90Ú
\91±HTTP1.1
\8eg
\97p
1071 ini.WriteBool('HTTP', 'ProxyProtocol', FProxyProtocol);
1073 ini.WriteBool('ReadProxy', 'Proxy', FReadProxy);
1074 ini.WriteString('ReadProxy', 'Address', FReadProxyAddress);
1075 ini.WriteInteger('ReadProxy', 'Port', FReadProxyPort);
1076 ini.WriteString('ReadProxy', 'UserID', FReadProxyUserID);
1077 ini.WriteString('ReadProxy', 'Password', FReadProxyPassword);
1079 ini.WriteBool('WriteProxy', 'Proxy', FWriteProxy);
1080 ini.WriteString('WriteProxy', 'Address', FWriteProxyAddress);
1081 ini.WriteInteger('WriteProxy', 'Port', FWriteProxyPort);
1082 ini.WriteString('WriteProxy', 'UserID', FWriteProxyUserID);
1083 ini.WriteString('WriteProxy', 'Password', FWriteProxyPassword);
1085 ini.WriteString('Window', 'BrowserFontName', FBrowserFontName);
1086 ini.WriteInteger('Window', 'BrowserFontSize', FBrowserFontSize);
1087 ini.WriteInteger('Window', 'BrowserFontSize', FBrowserFontSize);
1088 ini.WriteInteger('Window', 'BrowserFontBold', FBrowserFontBold);
1089 ini.WriteInteger('Window', 'BrowserFontItalic', FBrowserFontItalic);
1090 ini.WriteInteger('Window', 'BrowserFontColor', FBrowserFontColor);
1091 ini.WriteInteger('Window', 'BrowserBackColor', FBrowserBackColor);
1093 ini.WriteString('Window', 'CabinetFontName', FCabinetFontName);
1094 ini.WriteInteger('Window', 'CabinetFontSize', FCabinetFontSize);
1095 ini.WriteString('Window', 'CabinetFontColor', ColorToString(FCabinetFontColor));
1096 ini.WriteString('Window', 'CabinetBackColor', ColorToString(FCabinetBackColor));
1098 ini.WriteString('Window', 'ListFontName', FListFontName);
1099 ini.WriteInteger('Window', 'ListFontSize', FListFontSize);
1100 ini.WriteString('Window', 'ListFontColor', ColorToString(FListFontColor));
1101 ini.WriteString('Window', 'ListBackColor', ColorToString(FListBackColor));
1102 ini.WriteBool('Window','UseOddColor',FUseOddColorOddResNum);
1103 ini.WriteString('Window', 'OddColor',ColorToString(FOddColor));
1105 ini.WriteString('Window', 'EditorFontName', FEditorFontName);
1106 ini.WriteInteger('Window', 'EditorFontSize', FEditorFontSize);
1107 ini.WriteString('Window', 'EditorFontColor', ColorToString(FEditorFontColor));
1108 ini.WriteString('Window', 'EditorBackColor', ColorToString(FEditorBackColor));
1110 ini.WriteString('Window', 'BrowserTabFontName', FBrowserTabFontName);
1111 ini.WriteInteger('Window', 'BrowserTabFontSize', FBrowserTabFontSize);
1112 ini.WriteBool('Window', 'BrowserTabFontBold', FBrowserTabFontBold);
1113 ini.WriteBool('Window', 'BrowserTabFontItalic', FBrowserTabFontItalic);
1115 ini.WriteString('Window', 'HintFontName', FHintFontName);
1116 ini.WriteInteger('Window', 'HintFontSize', FHintFontSize);
1117 ini.WriteString('Window', 'HintFontColor', ColorToString(FHintFontColor));
1118 ini.WriteString('Window', 'HintBackColor', ColorToString(FHintBackColor));
1126 //
\90Ý
\92è
\83t
\83@
\83C
\83\8b\95Û
\91¶(window)
1127 procedure TSetting.WriteWindowSettingFile();
1133 ini := TMemIniFile.Create(GetFileName());
1135 ini.WriteInteger('WindowSize', 'Top', WindowTop);
1136 ini.WriteInteger('WindowSize', 'Left', WindowLeft);
1137 ini.WriteInteger('WindowSize', 'Height', WindowHeight);
1138 ini.WriteInteger('WindowSize', 'Width', WindowWidth);
1139 ini.WriteBool('WindowSize', 'Max', WindowMax);
1141 ini.WriteInteger('ViewStyle', 'ListView', Ord(ListStyle));
1143 ini.WriteInteger('EditorWindowSize', 'Top', EditWindowTop);
1144 ini.WriteInteger('EditorWindowSize', 'Left', EditWindowLeft);
1145 ini.WriteInteger('EditorWindowSize', 'Height', EditWindowHeight);
1146 ini.WriteInteger('EditorWindowSize', 'Width', EditWindowWidth);
1147 ini.WriteBool('EditorWindowSize', 'Max', EditWindowMax);
1148 ini.WriteBool('EditorWindowSize', 'Stay', EditWindowStay);
1149 ini.WriteBool('EditorWindowSize', 'Translucent', EditWindowTranslucent);
1151 ini.WriteInteger('OptionDialog', 'TabIndex', FOptionDialogTabIndex);
1153 //
\83c
\81[
\83\8b\83o
\81[
1154 ini.WriteBool('ToolBar', 'StdVisible', FStdToolBarVisible);
1155 ini.WriteBool('ToolBar', 'AddressVisible', FAddressBarVisible);
1156 ini.WriteBool('ToolBar', 'LinkVisible', FLinkBarVisible);
1157 ini.WriteBool('ToolBar', 'ListVisible', FListToolBarVisible);
1158 ini.WriteBool('ToolBar', 'ListNameVisible', FListNameBarVisible);
1159 ini.WriteBool('ToolBar', 'BrowserVisible', FBrowserToolBarVisible);
1160 ini.WriteBool('ToolBar', 'BrowserNameVisible', FBrowserNameBarVisible);
1161 //
\83c
\81[
\83\8b\83o
\81[Wrapable
1162 ini.WriteBool('ToolBar', 'ListWrapable', FListToolBarWrapable);
1163 ini.WriteBool('ToolBar', 'BrowserWrapable', FBrowserToolBarWrapable);
1166 ini.WriteBool('Tab', 'BrowserTabVisible', FBrowserTabVisible);
1167 ini.WriteInteger('Tab', 'BrowserTabPosition', Ord(FBrowserTabPosition));
1168 ini.WriteInteger('Tab', 'BrowserTabAppend', Ord(FBrowserTabAppend));
1169 ini.WriteInteger('Tab', 'BrowserTabStyle', Ord(FBrowserTabStyle));
1171 //
\83\81\83b
\83Z
\81[
\83W
\83o
\81[
1172 ini.WriteBool('MessageBar', 'Visible', FMessageBarVisible);
1173 ini.WriteInteger('MessageBar', 'Height', FMessegeBarHeight);
1175 //
\83X
\83e
\81[
\83^
\83X
\83o
\81[
1176 ini.WriteBool('StatusBar', 'Visible', FStatusBarVisible);
1178 //
\83L
\83\83\83r
\83l
\83b
\83g
1179 ini.WriteBool('Cabinet', 'Visible', FCabinetVisible);
1180 ini.WriteInteger('Cabinet', 'Width', FCabinetWidth);
1181 ini.WriteInteger('Cabinet', 'Index', FCabinetIndex);
1183 //
\83\8a\83X
\83g
\82Ì
\83T
\83C
\83Y
\82Æ
\90\82\92¼
\90\85\95½
1184 ini.WriteInteger('List', 'Orientation', Ord(FListOrientation));
1185 ini.WriteInteger('List', 'Height', FListHeight);
1186 ini.WriteInteger('List', 'HeightState', Ord(FListHeightState));
1187 ini.WriteInteger('List', 'Width', FListWidth);
1188 ini.WriteInteger('List', 'WidthState', Ord(FListWidthState));
1189 // ini.WriteBool('List', 'HeightMax', FListHeightMax);
1190 // ini.WriteBool('List', 'WidthMax', FListWidthMax);
1193 // ini.WriteInteger('Window', 'BrowserFontSize', BrowserFontSize);
1195 //
\83\8a\83X
\83g
\94Ô
\8d\86\95\
\8e¦
1196 ini.WriteBool('Function', 'ListViewNo', FListViewNo);
1198 ini.WriteBool('CSS', 'UseCSS', FUseCSS);
1199 //CSS
\83t
\83@
\83C
\83\8b\96¼
1200 ini.WriteString('CSS', 'FileName', FCSSFileName);
1201 //Mail
\97\93\95\
\8e¦
1202 ini.WriteBool('Thread', 'ShowMail', FShowMail);
1203 //
\83\8c\83X
\95\
\8e¦
\94Í
\88Í
1204 ini.DeleteKey( 'Thread', 'OnlyAHundredRes' ); //
\8cÃ
\82¢
\90Ý
\92è
\82Ì
\8dí
\8f\9c
1205 ini.WriteInteger('Thread', 'ResRange', FResRange);
1206 ini.WriteBool('Thread', 'ResRangeHold', FResRangeHold);
1207 //
\83X
\83\8c\83b
\83h
\88ê
\97\97\95\
\8e¦
\94Í
\88Í
1208 ini.WriteInteger('ThreadList', 'ThreadRange', Ord( FThreadRange ));
1209 //
\83\8d\83O
\8dí
\8f\9c\8am
\94F
1210 ini.WriteBool('Function', 'LogDeleteMessage', FDeleteMsg);
1212 ini.WriteBool('Function','ShowDialogForEnd',FShowDialogForEnd);
1214 ini.WriteBool('Function','ShowDialogForAllTabClose', FShowDialogForAllTabClose);
1216 ini.WriteBool('Function','UseSamba', FUseSamba);
1218 ini.WriteBool('Function', 'ResAnchoJamp', ResAnchorJamp);
1220 //
\94ñ
\83A
\83N
\83e
\83B
\83u
\8e\9e\83|
\83b
\83v
\83A
\83b
\83v
\95\
\8e¦
1221 ini.WriteBool('Thread', 'UnActivePopup', FUnActivePopup);
1222 //
\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\83w
\83b
\83_
\81[
\83{
\81[
\83\8b\83h
1223 ini.WriteBool('Thread', 'ResPopupHeaderBold', FResPopupHeaderBold);
1224 //ini.WriteString('BoardURL', '2ch', FBoardURL2ch);
1226 //
\94F
\8fØ
\97p
\83\86\81[
\83UID
\81E
\83p
\83X
\83\8f\81[
\83h
1227 ini.WriteString('Attestation', 'UserID', FUserID);
1228 ini.WriteString('Attestation', 'Password', Encrypt(FPassword));
1229 ini.WriteBool('Attestation', 'AutoLogin', FAutoLogin);
1230 ini.WriteBool('Attestation', 'FForcedLogin', FForcedLogin);
1231 ini.WriteString('Attestation', 'FDolibURL', FDolibURL);
1233 //URL
\83N
\83\8a\83b
\83N
\8e\9e\8bN
\93®
\83A
\83v
\83\8a
1234 ini.WriteBool('URLApp', 'Select', FURLApp);
1235 ini.WriteString('URLApp', 'File', FURLAppFile);
1237 //mailto
\83N
\83\8a\83b
\83N
\8e\9e\93®
\8dì
1238 ini.WriteBool('Mailto', 'Open', FOpenMailer);
1240 //
\83|
\83b
\83v
\83A
\83b
\83v
\88Ê
\92u
1241 ini.WriteInteger('Browser', 'PopupPosition', Ord(FPopupPosition));
1243 //
\83A
\83h
\83\8c\83X
\83o
\81[
1244 ini.WriteBool('AddressBar', 'URLDisplay', FURLDisplay);
1245 ini.WriteBool('AddressBar', 'TabStop', FAddressBarTabStop);
1246 ini.WriteBool('AddressBar', 'LinkAdd', FLinkAddAddressBar);
1247 ini.WriteInteger('AddressBar', 'HistoryCount', FAddressHistoryCount);
1249 //
\89æ
\91\9c\83v
\83\8c\83r
\83\85\81[
1250 ini.WriteBool('Browser', 'PreviewVisible', FPreviewVisible);
1251 ini.WriteInteger('Browser', 'PreviewSize', Ord(FPreviewSize));
1252 ini.WriteInteger('Browser', 'PreviewWait', FPreviewWait);
1253 ini.WriteInteger('Browser', 'AutoMaximize', Ord( FBrowserAutoMaximize ) );
1255 //
\83X
\83\8c\83b
\83h
\88ê
\97\97\8dX
\90V
\83A
\83C
\83R
\83\93
1256 ini.WriteBool('ThreadList', 'StateIconVisible', FListIconVisible);
1257 ini.WriteBool('ThreadList', 'NonAcquiredCount', FNonAcquiredCount);
1258 ini.WriteBool('ThreadList', 'CreationTimeLogs',FCreationTimeLogs);
1259 ini.WriteBool('ThreadList', 'FutureThread', FFutureThread);
1260 ini.WriteInteger('ThreadList', 'SelectInterval', FSelectInterval);
1261 //
\83\
\81[
\83g
\8f\87
1262 ini.WriteInteger('ThreadList', 'BBSSortIndex', FBBSSortIndex);
1263 ini.WriteBool('ThreadList', 'BBSSortOrder', FBBSSortOrder);
1264 ini.WriteInteger('ThreadList', 'CategorySortIndex', FCategorySortIndex);
1265 ini.WriteBool('ThreadList', 'CategorySortOrder', FCategorySortOrder);
1266 ini.WriteInteger('ThreadList', 'BoardSortIndex', FBoardSortIndex);
1267 ini.WriteBool('ThreadList', 'BoardSortOrder', FBoardSortOrder);
1268 ini.WriteInteger('ThreadList', 'DatOchiSortIndex', FDatOchiSortIndex);
1269 ini.WriteBool('ThreadList', 'DatOchiSortOrder', FDatOchiSortOrder);
1271 //
\8f\91\82«
\8d\9e\82Ý
\8e\9e\83}
\83V
\83\93\8e\9e\8d\8f\8eg
\97p
\90Ý
\92è
1272 ini.WriteBool('PostTime', 'UseMachineTime', FUseMachineTime);
1273 ini.WriteInteger('PostTime', 'TimeAdjustSec', FTimeAdjustSec);
1274 ini.WriteBool('PostTime', 'TimeAdjust', FTimeAdjust);
1276 //
\83\8a\83X
\83g
\83J
\83\89\83\80
1277 for i := 0 to Length(FBBSColumnWidth) - 1 do begin
1278 ini.WriteInteger('BBSColumnWidth', 'ID' + IntToStr(i), FBBSColumnWidth[i]);
1280 for i := 0 to Length(FCategoryColumnWidth) - 1 do begin
1281 ini.WriteInteger('CategoryColumnWidth', 'ID' + IntToStr(i), FCategoryColumnWidth[i]);
1283 for i := 0 to Length(FBoardColumnWidth) - 1 do begin
1284 ini.WriteInteger('BoardColumnWidth', 'ID' + IntToStr(i), FBoardColumnWidth[i]);
1287 //
\83T
\83E
\83\93\83h
1288 for i := 0 to GetSoundCount - 1 do begin
1289 if not FileExists(SoundFileName[i]) then
1290 SoundFileName[i] := '';
1291 ini.WriteString('Sound', SoundName[i], SoundFileName[i]);
1295 ini.EraseSection('MainCoolBar');
1296 for i := 0 to MAIN_COOLBAND_COUNT - 1 do begin
1297 CoolSet := MainCoolSet[i];
1298 ini.WriteInteger('MainCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1299 ini.WriteInteger('MainCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1300 ini.WriteBool('MainCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1302 ini.EraseSection('ListCoolBar');
1303 ini.WriteInteger( 'ListCoolBar', 'SelectWidth', FSelectComboBoxWidth );
1304 for i := 0 to LIST_COOLBAND_COUNT - 1 do begin
1305 CoolSet := ListCoolSet[i];
1306 ini.WriteInteger('ListCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1307 ini.WriteInteger('ListCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1308 ini.WriteBool('ListCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1310 ini.EraseSection('BrowserCoolBar');
1311 for i := 0 to BROWSER_COOLBAND_COUNT - 1 do begin
1312 CoolSet := BrowserCoolSet[i];
1313 ini.WriteInteger('BrowserCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1314 ini.WriteInteger('BrowserCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1315 ini.WriteBool('BrowserCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1319 ini.WriteBool('Abon','Deleterlo',FAbonDeleterlo);
1320 ini.WriteBool('Abon','Replaceul',FAbonReplaceul);
1321 ini.WriteBool('Abon','Popup',FPopUpAbon);
1322 ini.WriteBool('Abon','ShowNGLines',FShowNGLinesNum);
1323 ini.WriteBool('Abon','AddResAnchor',FAddResAnchor);
1324 ini.WriteBool('Abon','DeleteSyria',FDeleteSyria);
1327 ini.WriteBool( 'Editor', 'SpaceToNBSP', FSpaceToNBSP );
1328 ini.WriteBool( 'Editor', 'AmpToCharRef', FAmpToCharRef );
1330 ini.WriteBool('TabAuto', 'TabAutoLoadSave', FTabAutoLoadSave);
1338 //
\90Ý
\92è
\83t
\83@
\83C
\83\8b\95Û
\91¶(name & mail)
1339 procedure TSetting.WriteNameMailSettingFile();
1344 ini := TMemIniFile.Create(GetFileName());
1346 ini.EraseSection('Name');
1347 ini.EraseSection('Mail');
1348 ini.EraseSection('SelectText');
1349 for i := 0 to FNameList.Count - 1 do begin
1350 ini.WriteString('Name', Format('%.2d', [i + 1]), FNameList[i]);
1354 for i := 0 to FMailList.Count - 1 do begin
1355 ini.WriteString('Mail', Format('%.2d', [i + 1]), FMailList[i]);
1359 for i := 0 to FSelectTextList.Count - 1 do begin
1360 ini.WriteString('SelectText', Format('%.2d', [i + 1]), FSelectTextList[i]);
1370 procedure TSetting.WriteFolderSettingFile();
1374 ini := TMemIniFile.Create(GetFileName());
1376 if ExtractFilePath(Application.ExeName) + 'Log' = NewLogFolder then
1377 ini.DeleteKey('Folder', 'LogFolder')
1379 ini.WriteString('Folder', 'LogFolder', NewLogFolder);
1385 //
\94Â
\8dX
\90V
\97pBoardURL
\82ð
\95Û
\91¶
1386 procedure TSetting.WriteBoardURLSettingFile();
1392 ini := TMemIniFile.Create(GetBoardURLFileName());
1394 oldcount := ini.ReadInteger('URL','count',FBoardURLs.Count);
1395 ini.WriteInteger('URL','count',FBoardURLs.Count);
1396 ini.WriteInteger('URL','selected',BoardURLSelected);
1397 for i := 0 to FBoardURLs.Count -1 do begin
1398 ini.WriteString('URL',IntToStr(i+1),FBoardURLs.Strings[i]);
1400 if oldcount > FBoardURLs.Count then begin
1401 for i := FBoardURLs.Count to oldcount do begin
1402 ini.DeleteKey('URL',IntToStr(i+1));
1412 //
\83\8a\83X
\83g
\83J
\83\89\83\80\83w
\83b
\83_
\81[
1413 function TSetting.GetBBSColumnWidth(index: Integer): Integer;
1415 Result := IfThen(index in [0..Length(FBBSColumnWidth) - 1], FBBSColumnWidth[index], 0);
1418 function TSetting.GetCategoryColumnWidth(index: Integer): Integer;
1420 Result := IfThen(index in [0..Length(FCategoryColumnWidth) - 1], FCategoryColumnWidth[index], 0);
1423 function TSetting.GetBoardColumnWidth(index: Integer): Integer;
1425 Result := IfThen(index in [0..Length(FBoardColumnWidth) - 1], FBoardColumnWidth[index], 0);
1431 procedure TSetting.SetBBSColumnWidth(index: Integer; value: Integer);
1433 if index in [0..Length(FBBSColumnWidth) - 1] then
1434 FBBSColumnWidth[index] := value;
1437 procedure TSetting.SetCategoryColumnWidth(index: Integer; value: Integer);
1439 if index in [0..Length(FCategoryColumnWidth) - 1] then
1440 FCategoryColumnWidth[index] := value;
1443 procedure TSetting.SetBoardColumnWidth(index: Integer; value: Integer);
1445 if index in [0..Length(FBoardColumnWidth) - 1] then
1446 FBoardColumnWidth[index] := value;
1449 function TSetting.GetSoundCount: Integer;
1451 Result := Length(SOUND_NAME);
1454 function TSetting.GetSoundName(Index: Integer): string;
1456 if (Index < GetSoundCount) and (Index >= 0) then
1457 Result := SOUND_NAME[Index].Name
1462 function TSetting.GetSoundViewName(Index: Integer): string;
1464 if (Index < GetSoundCount) and (Index >= 0) then
1465 Result := SOUND_NAME[Index].ViewName
1470 function TSetting.GetSoundFileName(Index: Integer): string;
1472 if (Index < GetSoundCount) and (Index >= 0) then
1473 Result := SOUND_NAME[Index].FileName
1478 procedure TSetting.SetSoundFileName(Index: Integer; value: string);
1480 if (Index < GetSoundCount) and (Index >= 0) then
1481 SOUND_NAME[Index].FileName := value;
1484 function TSetting.FindSoundFileName(Name: string): string;
1488 for i := 0 to GetSoundCount - 1 do begin
1489 if SoundName[i] = Name then begin
1490 Result := SoundFileName[i];
1497 function TSetting.Encrypt(s: string): string;
1499 cryptObj: THogeCryptAuto;
1500 inputStream, outputStream: TStringStream;
1502 inputStream := TStringStream.Create(s);
1503 outputStream := TStringStream.Create('');
1504 cryptObj := THogeCryptAuto.Create;
1507 cryptObj.Encrypt(inputStream, GIKO_ENCRYPT_TEXT, outputStream);
1509 //
\83o
\83C
\83i
\83\8a\82È
\82Ì
\82Å
\95K
\97v
\82É
\89\9e\82¶
\82Ä
\83e
\83L
\83X
\83g
\82É
\95Ï
\8a·
1510 Result := HogeBase64Encode(outputStream.DataString);
1518 function TSetting.Decrypt(s: string): string;
1520 cryptObj: THogeCryptAuto;
1521 inputStream, outputStream: TStringStream;
1524 inputStream := TStringStream.Create(HogeBase64Decode(s));
1529 outputStream := TStringStream.Create('');
1530 cryptObj := THogeCryptAuto.Create;
1533 cryptObj.Decrypt(inputStream, GIKO_ENCRYPT_TEXT, outputStream);
1534 Result := outputStream.DataString;
1542 function TSetting.GetMainCoolSet(Index: Integer): TCoolSet;
1544 if Index in [0..MAIN_COOLBAND_COUNT - 1] then
1545 Result := FMainCoolBar[Index]
1547 Result.FCoolID := -1;
1548 Result.FCoolWidth := -1;
1549 Result.FCoolBreak := False;
1553 function TSetting.GetBoardCoolSet(Index: Integer): TCoolSet;
1555 if Index in [0..LIST_COOLBAND_COUNT - 1] then
1556 Result := FListCoolBar[Index]
1558 Result.FCoolID := -1;
1559 Result.FCoolWidth := -1;
1560 Result.FCoolBreak := False;
1564 function TSetting.GetBrowserCoolSet(Index: Integer): TCoolSet;
1566 if Index in [0..BROWSER_COOLBAND_COUNT - 1] then
1567 Result := FBrowserCoolBar[Index]
1569 Result.FCoolID := -1;
1570 Result.FCoolWidth := -1;
1571 Result.FCoolBreak := False;
1575 procedure TSetting.SetMainCoolSet(Index: Integer; CoolSet: TCoolSet);
1577 if Index in [0..MAIN_COOLBAND_COUNT - 1] then
1578 FMainCoolBar[Index] := CoolSet;
1581 procedure TSetting.SetBoardCoolSet(Index: Integer; CoolSet: TCoolSet);
1583 if Index in [0..LIST_COOLBAND_COUNT - 1] then
1584 FListCoolBar[Index] := CoolSet;
1587 procedure TSetting.SetBrowserCoolSet(Index: Integer; CoolSet: TCoolSet);
1589 if Index in [0..BROWSER_COOLBAND_COUNT - 1] then
1590 FBrowserCoolBar[Index] := CoolSet;
1593 //url.ini
\82ª
\82È
\82¢
\82Æ
\82«
\82É
\90¶
\90¬
\82·
\82é
1594 procedure TSetting.MakeURLIniFile();
1598 ini := TMemIniFile.Create(GetBoardURLFileName());
1600 ini.WriteInteger('URL','count',2);
1601 ini.WriteInteger('URL','selected',2);
1602 ini.WriteString('URL','1',DEFAULT_2CH_BOARD_URL1);
1603 ini.WriteString('URL','2',DEFAULT_2CH_BOARD_URL2);
1610 (*************************************************************************
1611 *
\83{
\81[
\83h
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
1612 *************************************************************************)
1613 function TSetting.GetBoardFileName: string;
1615 Result := GetAppDir + CONFIG_DIR_NAME + '\' + BOARD_FILE_NAME;
1618 (*************************************************************************
1619 *
\83{
\81[
\83h
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
1620 *************************************************************************)
1621 function TSetting.GetCustomBoardFileName: string;
1623 Result := GetAppDir + CONFIG_DIR_NAME + '\' + CUSTOMBOARD_FILE_NAME;
1626 (*************************************************************************
1627 *
\83{
\81[
\83h
\83f
\83B
\83\8c\83N
\83g
\83\8a\8eæ
\93¾
1628 *************************************************************************)
1629 function TSetting.GetBoardDir: string;
1631 Result := GetAppDir + CONFIG_DIR_NAME + '\' + BOARD_DIR_NAME + '\';
1634 (*************************************************************************
1635 *
\83e
\83\93\83|
\83\89\83\8a\83t
\83H
\83\8b\83_
\81[
\96¼
\8eæ
\93¾
1636 *************************************************************************)
1637 function TSetting.GetHtmlTempFileName: string;
1639 Result := TEMP_FOLDER;
1643 (*************************************************************************
1644 *
\8eÀ
\8ds
\83t
\83@
\83C
\83\8b\83t
\83H
\83\8b\83_
\8eæ
\93¾
1645 *************************************************************************)
1646 function TSetting.GetAppDir: string;
1648 Result := ExtractFilePath(Application.ExeName);
1651 (*************************************************************************
1652 *TempHtml
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
1653 *************************************************************************)
1654 function TSetting.GetTempFolder: string;
1656 Result := GetAppDir + TEMP_FOLDER;
1659 (*************************************************************************
1660 *sent.ini
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
1661 *************************************************************************)
1662 function TSetting.GetSentFileName: string;
1664 Result := GetAppDir + SENT_FILE_NAME;
1667 (*************************************************************************
1668 *outbox.ini
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
1669 *************************************************************************)
1670 function TSetting.GetOutBoxFileName: string;
1672 Result := GetAppDir + OUTBOX_FILE_NAME;
1675 (*************************************************************************
1676 *Config
\83t
\83H
\83\8b\83_
\8eæ
\93¾
1677 *************************************************************************)
1678 function TSetting.GetConfigDir: string;
1680 Result := IncludeTrailingPathDelimiter(GetAppDir + CONFIG_DIR_NAME);
1683 function TSetting.GetStyleSheetDir: string;
1685 Result := IncludeTrailingPathDelimiter(GetConfigDir + CSS_DIR_NAME);
1688 function TSetting.GetSkinDir: string;
1690 Result := IncludeTrailingPathDelimiter(GetConfigDir + SKIN_DIR_NAME);
1693 function TSetting.GetSkinHeaderFileName: string;
1695 Result := CSSFileName + SKIN_HEADER_FILE_NAME;
1698 function TSetting.GetSkinFooterFileName: string;
1700 Result := CSSFileName + SKIN_FOOTER_FILE_NAME;
1703 function TSetting.GetSkinNewResFileName: string;
1705 Result := CSSFileName + SKIN_NEWRES_FILE_NAME;
1708 function TSetting.GetSkinResFileName: string;
1710 Result := CSSFileName + SKIN_RES_FILE_NAME;
1713 function TSetting.GetSkinBookmarkFileName: string;
1715 Result := CSSFileName + SKIN_BOOKMARK_FILE_NAME;
1718 function TSetting.GetSkinNewmarkFileName: string;
1720 Result := CSSFileName + SKIN_NEWMARK_FILE_NAME;
1723 function TSetting.GetNGWordsDir: string;
1725 Result := IncludeTrailingPathDelimiter(GetConfigDir + NGWORDs_DIR_NAME);
1728 function TSetting.GetBoardPlugInDir: string;
1730 Result := IncludeTrailingPathDelimiter(GetConfigDir + BOARD_PLUGIN_DIR_NAME);
1733 procedure TSetting.SetUseCSS( value: Boolean );
1740 (Pos( GetSkinDir, CSSFileName ) > 0) and
1741 FileExists( GetSkinHeaderFileName );
1745 procedure TSetting.SetCSSFileName( fileName: string );
1748 FCSSFileName := fileName;
1752 (Pos( GetSkinDir, CSSFileName ) > 0) and
1753 FileExists( GetSkinHeaderFileName );
1757 function TSetting.GetSambaFileName: string;
1759 Result := GetAppDir + SAMBATIME_FILE_NAME;
1761 //
\94Â
\8dX
\90V
\8f\9c\8aO
\83J
\83e
\83S
\83\8a\83\8a\83X
\83g
\95Û
\91¶
\83t
\83@
\83C
\83\8b
1762 function TSetting.GetIgnoreFileName: string;
1764 Result := GetConfigDir + IGNORE_FILE_NAME;