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
52 //CoolBar
\90Ý
\92è
\83\8c\83R
\81[
\83h
59 TSetting = class(TObject)
61 //
\8eó
\90M
\83o
\83b
\83t
\83@
\83T
\83C
\83Y
62 FRecvBufferSize: Integer;
65 //
\83v
\83\8d\83L
\83V
\90Ú
\91±HTTP1.1
\8eg
\97p
66 FProxyProtocol: Boolean;
68 //
\83v
\83\8d\83L
\83V
\81i
\93Ç
\8d\9e\97p
\81j
70 FReadProxyAddress: string;
71 FReadProxyPort: Integer;
72 FReadProxyUserID: string;
73 FReadProxyPassword: string;
75 //
\83v
\83\8d\83L
\83V
\81i
\8f\91\8d\9e\97p
\81j
77 FWriteProxyAddress: string;
78 FWriteProxyPort: Integer;
79 FWriteProxyUserID: string;
80 FWriteProxyPassword: string;
82 //
\83L
\83\83\83r
\83l
\83b
\83g
83 FCabinetFontName: string;
84 FCabinetFontSize: Integer;
85 FCabinetFontBold: Boolean;
86 FCabinetFontItalic: Boolean;
87 FCabinetFontColor: TColor;
88 FCabinetBackColor: TColor;
91 FListFontName: string;
92 FListFontSize: Integer;
93 FListFontBold: Boolean;
94 FListFontItalic: Boolean;
95 FListFontColor: TColor;
96 FListBackColor: TColor;
99 FBrowserFontName: string; // ''...default
100 FBrowserFontSize: Integer; // 0...default
101 FBrowserFontBold: Integer; // 0...default, -1...False, 1...True
102 FBrowserFontItalic: Integer; //
\8fã
\82É
\93¯
\82¶
103 FBrowserFontColor: Integer; // -1...default
104 FBrowserBackColor: Integer; //
\8fã
\82É
\93¯
\82¶
107 FEditorFontName: string;
108 FEditorFontSize: Integer;
109 FEditorFontBold: Boolean;
110 FEditorFontItalic: Boolean;
111 FEditorFontColor: TColor;
112 FEditorBackColor: TColor;
114 //
\83^
\83u
\83t
\83H
\83\93\83g
115 FBrowserTabFontName: string;
116 FBrowserTabFontSize: Integer;
117 FBrowserTabFontBold: Boolean;
118 FBrowserTabFontItalic: Boolean;
120 //
\83q
\83\93\83g
\83E
\83B
\83\93\83h
\83E
121 FHintFontName: string;
122 FHintFontSize: Integer;
123 //FHintFontBold: Boolean;
124 //FHintFontItalic: Boolean;
125 FHintFontColor: TColor;
126 FHintBackColor: TColor;
128 //
\83E
\83B
\83\93\83h
\83E
\83T
\83C
\83Y
130 FWindowLeft: Integer;
131 FWindowHeight: Integer;
132 FWindowWidth: Integer;
134 //
\83\8a\83X
\83g
\83r
\83\85\81[
\83X
\83^
\83C
\83\8b
135 FListStyle: TViewStyle;
137 //
\83c
\81[
\83\8b\83o
\81[
\95\
\8e¦
138 FStdToolBarVisible: Boolean;
139 FAddressBarVisible: Boolean;
140 FLinkBarVisible: Boolean;
141 FListToolBarVisible: Boolean;
142 FListNameBarVisible: Boolean;
143 FBrowserToolBarVisible: Boolean;
144 FBrowserNameBarVisible: Boolean;
146 //
\83u
\83\89\83E
\83U
\83^
\83u
147 FBrowserTabVisible: Boolean;
148 FBrowserTabPosition: TGikoTabPosition;
149 FBrowserTabAppend: TGikoTabAppend;
150 FBrowserTabStyle: TGikoTabStyle;
152 //
\83\81\83b
\83Z
\81[
\83W
\83o
\81[
153 FMessageBarVisible: Boolean;
154 FMessegeBarHeight: Integer;
156 //
\83X
\83e
\81[
\83^
\83X
\83o
\81[
157 FStatusBarVisible: Boolean;
159 //
\83L
\83\83\83r
\83l
\83b
\83g
\89Â
\8e\8b\81E
\83T
\83C
\83Y
160 FCabinetVisible: Boolean;
161 FCabinetWidth: Integer;
163 //
\83\8a\83X
\83g
\81E
\83u
\83\89\83E
\83U
\83T
\83C
\83Y
164 FListOrientation: TGikoListOrientation;
165 FListHeight: Integer;
166 FListHeightState: TGikoListState;
168 FListWidthState: TGikoListState;
169 // FListHeightMax: Boolean;
170 // FListWidthMax: Boolean;
172 //
\91\97\90M
\97p
\96¼
\91O
\81E
\83\81\81[
\83\8b
173 FNameList: TStringList;
174 FMailList: TStringList;
176 //
\83G
\83f
\83B
\83^
\81[
\83E
\83B
\83\93\83h
\83E
\83T
\83C
\83Y
177 FEditWindowTop: Integer;
178 FEditWindowLeft: Integer;
179 FEditWindowHeight: Integer;
180 FEditWindowWidth: Integer;
181 FEditWindowMax: Boolean;
182 FEditWindowStay: Boolean;
183 FEditWindowTranslucent: Boolean;
185 //
\83\8a\83X
\83g
\94Ô
\8d\86\95\
\8e¦
186 FListViewNo: Boolean;
189 //CSS
\83t
\83@
\83C
\83\8b\96¼
190 FCSSFileName: string;
191 //
\83X
\83L
\83\93\95\
\8e¦(
\88ê
\8e\9e\93I
\82È
\82à
\82Ì
\82Å ini
\82É
\95Û
\91¶
\82Í
\82³
\82ê
\82È
\82¢)
195 //
\8bN
\93®
\8e\9e\8dÅ
\90V100
\83\8c\83X
\95\
\8e¦
196 FOnlyAHundredRes : Boolean;
197 //
\94ñ
\83A
\83N
\83e
\83B
\83u
\8e\9e\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\95\
\8e¦
198 FUnActivePopup: Boolean;
199 //
\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\83w
\83b
\83_
\81[
\83{
\81[
\83\8b\83h
200 FResPopupHeaderBold: Boolean;
202 //
\83\8d\83O
\83t
\83H
\83\8b\83_
204 FNewLogFolder: string;
206 //
\83\8a\83X
\83g
\83J
\83\89\83\80\83w
\83b
\83_
\81[
\83T
\83C
\83Y
207 FBBSColumnWidth: array[0..0] of Integer;
208 FCategoryColumnWidth: array[0..3] of Integer;
209 FBoardColumnWidth: array[0..7] of Integer;
212 FBBSSortIndex: Integer;
213 FBBSSortOrder: Boolean;
214 FCategorySortIndex: Integer;
215 FCategorySortOrder: Boolean;
216 FBoardSortIndex: Integer;
217 FBoardSortOrder: Boolean;
219 //
\8di
\8d\9e\82Ý
\95¶
\8e\9a\97ñ
220 FSelectTextList: TStringList;
223 //FBoardURL2ch: string;
224 FBoardURLs: TStringList;
225 FBoardURLSelected: Integer;
227 //
\83\86\81[
\83UID
\81E
\83p
\83X
\83\8f\81[
\83h
231 FForcedLogin: Boolean;
234 //URL
\83N
\83\8a\83b
\83N
\8e\9e\8bN
\93®
\83A
\83v
\83\8a
238 //mailto
\83N
\83\8a\83b
\83N
\8e\9e\93®
\8dì
239 FOpenMailer: Boolean;
244 //CoolBar
\81i
\83\81\83C
\83\93\81E
\94Â
\81E
\83u
\83\89\83E
\83U
\81j
245 FMainCoolBar: array[0..MAIN_COOLBAND_COUNT - 1] of TCoolSet;
246 FListCoolBar: array[0..LIST_COOLBAND_COUNT - 1] of TCoolSet;
247 FBrowserCoolBar: array[0..BROWSER_COOLBAND_COUNT - 1] of TCoolSet;
250 FListToolBarWrapable: Boolean;
251 FBrowserToolBarWrapable: Boolean;
253 //
\83|
\83b
\83v
\83A
\83b
\83v
\88Ê
\92u
254 FPopupPosition: TGikoPopupPosition;
256 //
\83A
\83h
\83\8c\83X
\83o
\81[
257 FURLDisplay: Boolean;
258 FAddressBarTabStop: Boolean;
259 FLinkAddAddressBar: Boolean;
260 FAddressHistoryCount: Integer;
262 //
\89æ
\91\9c\83v
\83\8c\83r
\83\85\81[
263 FPreviewVisible: Boolean;
264 FPreviewSize: TGikoPreviewSize;
265 FPreviewWait: Integer;
267 //
\83u
\83\89\83E
\83U
268 FBrowserAutoMaximize: TGikoBrowserAutoMaximize;
270 //
\83X
\83\8c\83b
\83h
\88ê
\97\97\8dX
\90V
\83A
\83C
\83R
\83\93\95\
\8e¦
271 FListIconVisible: Boolean;
272 //
\8eæ
\93¾
\90\94\82Å
\82Í
\82È
\82
\96¢
\8eæ
\93¾
\82ð
\95\
\8e¦
\82·
\82é
273 FNonAcquiredCount: Boolean;
275 //
\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©
276 FCreationTimeLogs: Boolean;
277 //
\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¢
278 FFutureThread: Boolean;
280 //
\8f\91\82«
\8d\9e\82Ý
\8e\9e\83}
\83V
\83\93\8e\9e\8aÔ
\8eg
\97p
\90Ý
\92è
281 FUseMachineTime: Boolean;
282 FTimeAdjustSec: Integer;
283 FTimeAdjust: Boolean;
286 FAbonDeleterlo : Boolean; //&rlo;
\82ð
\8dí
\82é
\82©
287 FAbonReplaceul : Boolean; //<ul>
\83^
\83O
\82ð<br>
\83^
\83O
\82É
\92u
\8a·
\82·
\82é
\82©
288 FPopUpAbon : Boolean; //
\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\8e\9e\82Ì
\82 \82Ú
\81`
\82ñ
\97L
\8cø
289 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¦
290 FAddResAnchor : Boolean; //NG
\83\8c\83X
\82Ö
\82Ì
\83\8c\83X
\83A
\83\93\83J
\81[
\82ð
\92Ç
\89Á
\82·
\82é
291 FDeleteSyria : Boolean; //
\83V
\83\8a\83A
\8cê
\83u
\83\89\83N
\83\89\91Î
\8dô
293 //
\83X
\83\8c\83b
\83h
\8di
\8d\9e\83t
\83B
\81[
\83\8b\83h
\82Ì
\95\9d
294 FSelectComboBoxWidth : Integer;
296 //
\8dÅ
\8cã
\82É
\91I
\91ð
\82³
\82ê
\82½
\83I
\83v
\83V
\83\87\83\93\83_
\83C
\83A
\83\8d\83O
\82Ì
\83^
\83u
297 FOptionDialogTabIndex: Integer;
299 //
\8dÅ
\8cã
\82É
\91I
\91ð
\82³
\82ê
\82½
\83L
\83\83\83r
\83l
\83b
\83g
300 FCabinetIndex: Integer;
302 //
\8fI
\97¹
\8e\9e\82É
\8am
\94F
\83_
\83C
\83A
\83\8d\83O
\82ð
\95\
\8e¦
\82·
\82é
\82©
303 FShowDialogForEnd : Boolean;
304 //
\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é
305 FShowDialogForAllTabClose: Boolean;
306 //
\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©
307 FUseOddColorOddResNum: Boolean;
310 //Samba24
\91Î
\8dô
\8b@
\94\
\82ð
\8eg
\82¤
\82©
313 //
\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©
314 FResAnchorJamp: Boolean;
316 //Tab
\8e©
\93®
\95Û
\91¶
317 FTabAutoSave: Boolean;
318 FTabAutoLoad: Boolean;
320 FSpaceToNBSP : Boolean; ///<
\94¼
\8ap
\83X
\83y
\81[
\83X
\81ATab
\82ð
\82É
\92u
\8a·
321 FAmpToCharRef : Boolean; ///< '&'
\82ð &
\82É
\92u
\8a·
323 //
\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Ô
324 FSelectInterval : Integer;
326 function GetMainCoolSet(Index: Integer): TCoolSet;
327 function GetBoardCoolSet(Index: Integer): TCoolSet;
328 function GetBrowserCoolSet(Index: Integer): TCoolSet;
329 procedure SetMainCoolSet(Index: Integer; CoolSet: TCoolSet);
330 procedure SetBoardCoolSet(Index: Integer; CoolSet: TCoolSet);
331 procedure SetBrowserCoolSet(Index: Integer; CoolSet: TCoolSet);
333 function GetBBSColumnWidth(index: Integer): Integer;
334 function GetCategoryColumnWidth(index: Integer): Integer;
335 function GetBoardColumnWidth(index: Integer): Integer;
336 procedure SetBBSColumnWidth(index: Integer; value: Integer);
337 procedure SetCategoryColumnWidth(index: Integer; value: Integer);
338 procedure SetBoardColumnWidth(index: Integer; value: Integer);
340 function GetSoundName(Index: Integer): string;
341 function GetSoundViewName(Index: Integer): string;
342 function GetSoundFileName(Index: Integer): string;
343 procedure SetSoundFileName(Index: Integer; value: string);
344 function Encrypt(s: string): string;
345 function Decrypt(s: string): string;
347 procedure MakeURLIniFile();
349 procedure SetUseCSS( value: Boolean );
350 procedure SetCSSFileName( fileName: string );
355 destructor Destroy; override;
356 function GetFileName: string;
357 function GetBoardURLFileName: string;
358 procedure ReadSettingFile;
359 procedure ReadBoardURLsFile;
360 procedure WriteSystemSettingFile;
361 procedure WriteWindowSettingFile;
362 procedure WriteNameMailSettingFile;
363 procedure WriteFolderSettingFile();
364 procedure WriteBoardURLSettingFile;
365 function GetSoundCount: Integer;
366 function FindSoundFileName(Name: string): string;
368 function GetBoardFileName: string;
369 function GetCustomBoardFileName: string;
370 function GetBoardDir: string;
371 function GetHtmlTempFileName: string;
372 function GetAppDir: string;
373 function GetTempFolder: string;
374 function GetSentFileName: string;
375 function GetConfigDir: string;
376 function GetSkinDir: string;
377 function GetSkinHeaderFileName: string;
378 function GetSkinFooterFileName: string;
379 function GetSkinResFileName: string;
380 function GetSkinNewResFileName: string;
381 function GetSkinBookmarkFileName: string;
382 function GetSkinNewmarkFileName: string;
383 function GetStyleSheetDir: string;
384 function GetOutBoxFileName: string;
385 function GetNGWordsDir: string;
386 function GetBoardPlugInDir: string;
387 function GetSambaFileName: string;
388 function GetIgnoreFileName: string;
390 //
\8eó
\90M
\83o
\83b
\83t
\83@
\83T
\83C
\83Y
391 property RecvBufferSize: Integer read FRecvBufferSize write FRecvBufferSize;
393 property Protocol: Boolean read FProtocol write FProtocol;
394 //
\83v
\83\8d\83L
\83V
\90Ú
\91±HTTP1.1
\8eg
\97p
395 property ProxyProtocol: Boolean read FProxyProtocol write FProxyProtocol;
397 property ReadProxy: Boolean read FReadProxy write FReadProxy;
398 property ReadProxyAddress: string read FReadProxyAddress write FReadProxyAddress;
399 property ReadProxyPort: Integer read FReadProxyPort write FReadProxyPort;
400 property ReadProxyUserID: string read FReadProxyUserID write FReadProxyUserID;
401 property ReadProxyPassword: string read FReadProxyPassword write FReadProxyPassword;
403 property WriteProxy: Boolean read FWriteProxy write FWriteProxy;
404 property WriteProxyAddress: string read FWriteProxyAddress write FWriteProxyAddress;
405 property WriteProxyPort: Integer read FWriteProxyPort write FWriteProxyPort;
406 property WriteProxyUserID: string read FWriteProxyUserID write FWriteProxyUserID;
407 property WriteProxyPassword: string read FWriteProxyPassword write FWriteProxyPassword;
409 property CabinetFontName: string read FCabinetFontName write FCabinetFontName;
410 property CabinetFontSize: Integer read FCabinetFontSize write FCabinetFontSize;
411 property CabinetFontBold: Boolean read FCabinetFontBold write FCabinetFontBold;
412 property CabinetFontItalic: Boolean read FCabinetFontItalic write FCabinetFontItalic;
413 property CabinetFontColor: TColor read FCabinetFontColor write FCabinetFontColor;
414 property CabinetBackColor: TColor read FCabinetBackColor write FCabinetBackColor;
416 property ListFontName: string read FListFontName write FListFontName;
417 property ListFontSize: Integer read FListFontSize write FListFontSize;
418 property ListFontBold: Boolean read FListFontBold write FListFontBold;
419 property ListFontItalic: Boolean read FListFontItalic write FListFontItalic;
420 property ListFontColor: TColor read FListFontColor write FListFontColor;
421 property ListBackColor: TColor read FListBackColor write FListBackColor;
423 property BrowserFontName: string read FBrowserFontName write FBrowserFontName;
424 property BrowserFontSize: Integer read FBrowserFontSize write FBrowserFontSize;
425 property BrowserFontBold: Integer read FBrowserFontBold write FBrowserFontBold;
426 property BrowserFontItalic: Integer read FBrowserFontItalic write FBrowserFontItalic;
427 property BrowserFontColor: Integer read FBrowserFontColor write FBrowserFontColor;
428 property BrowserBackColor: Integer read FBrowserBackColor write FBrowserBackColor;
430 property EditorFontName: string read FEditorFontName write FEditorFontName;
431 property EditorFontSize: Integer read FEditorFontSize write FEditorFontSize;
432 property EditorFontBold: Boolean read FEditorFontBold write FEditorFontBold;
433 property EditorFontItalic: Boolean read FEditorFontItalic write FEditorFontItalic;
434 property EditorFontColor: TColor read FEditorFontColor write FEditorFontColor;
435 property EditorBackColor: TColor read FEditorBackColor write FEditorBackColor;
437 property BrowserTabFontName: string read FBrowserTabFontName write FBrowserTabFontName;
438 property BrowserTabFontSize: Integer read FBrowserTabFontSize write FBrowserTabFontSize;
439 property BrowserTabFontBold: Boolean read FBrowserTabFontBold write FBrowserTabFontBold;
440 property BrowserTabFontItalic: Boolean read FBrowserTabFontItalic write FBrowserTabFontItalic;
442 property HintFontName: string read FHintFontName write FHintFontName;
443 property HintFontSize: Integer read FHintFontSize write FHintFontSize;
444 //property HintFontBold: Boolean read FHintFontBold write FHintFontBold;
445 //property HintFontItalic: Boolean read FHintFontItalic write FHintFontItalic;
446 property HintFontColor: TColor read FHintFontColor write FHintFontColor;
447 property HintBackColor: TColor read FHintBackColor write FHintBackColor;
449 property WindowTop: Integer read FWindowTop write FWindowTop;
450 property WindowLeft: Integer read FWindowLeft write FWindowLeft;
451 property WindowHeight: Integer read FWindowHeight write FWindowHeight;
452 property WindowWidth: Integer read FWindowWidth write FWindowWidth;
453 property WindowMax: Boolean read FWindowMax write FWindowMax;
454 property ListStyle: TViewStyle read FListStyle write FListStyle;
456 property StdToolBarVisible: Boolean read FStdToolBarVisible write FStdToolBarVisible;
457 property AddressBarVisible: Boolean read FAddressBarVisible write FAddressBarVisible;
458 property LinkBarVisible: Boolean read FLinkBarVisible write FLinkBarVisible;
459 property ListToolBarVisible: Boolean read FListToolBarVisible write FListToolBarVisible;
460 property ListNameBarVisible: Boolean read FListNameBarVisible write FListNameBarVisible;
461 property BrowserToolBarVisible: Boolean read FBrowserToolBarVisible write FBrowserToolBarVisible;
462 property BrowserNameBarVisible: Boolean read FBrowserNameBarVisible write FBrowserNameBarVisible;
464 property BrowserTabVisible: Boolean read FBrowserTabVisible write FBrowserTabVisible;
465 property BrowserTabPosition: TGikoTabPosition read FBrowserTabPosition write FBrowserTabPosition;
466 property BrowserTabAppend: TGikoTabAppend read FBrowserTabAppend write FBrowserTabAppend;
467 property BrowserTabStyle: TGikoTabStyle read FBrowserTabStyle write FBrowserTabStyle;
469 property MessageBarVisible: Boolean read FMessageBarVisible write FMessageBarVisible;
470 property MessegeBarHeight: Integer read FMessegeBarHeight write FMessegeBarHeight;
472 property StatusBarVisible: Boolean read FStatusBarVisible write FStatusBarVisible;
474 property CabinetVisible: Boolean read FCabinetVisible write FCabinetVisible;
475 property CabinetWidth: Integer read FCabinetWidth write FCabinetWidth;
477 property ListOrientation: TGikoListOrientation read FListOrientation write FListOrientation;
478 property ListHeight: Integer read FListHeight write FListHeight;
479 property ListHeightState: TGikoListState read FListHeightState write FListHeightState;
480 property ListWidth: Integer read FListWidth write FListWidth;
481 property ListWidthState: TGikoListState read FListWidthState write FListWidthState;
482 // property ListHeightMax: Boolean read FListHeightMax write FListHeightMax;
483 // property ListWidthMax: Boolean read FListWidthMax write FListWidthMax;
485 property NameList: TStringList read FNameList write FNameList;
486 property MailList: TStringList read FMailList write FMailList;
487 property SelectTextList: TStringList read FSelectTextList write FSelectTextList;
489 property EditWindowTop: Integer read FEditWindowTop write FEditWindowTop;
490 property EditWindowLeft: Integer read FEditWindowLeft write FEditWindowLeft;
491 property EditWindowHeight: Integer read FEditWindowHeight write FEditWindowHeight;
492 property EditWindowWidth: Integer read FEditWindowWidth write FEditWindowWidth;
493 property EditWindowMax: Boolean read FEditWindowMax write FEditWindowMax;
494 property EditWindowStay: Boolean read FEditWindowStay write FEditWindowStay;
495 property EditWindowTranslucent: Boolean read FEditWindowTranslucent write FEditWindowTranslucent;
497 property ListViewNo: Boolean read FListViewNo write FListViewNo;
498 property UseCSS: Boolean read FUseCSS write SetUseCSS;
499 property CSSFileName: string read FCSSFileName write SetCSSFileName;
500 property UseSkin: Boolean read FUseSkin;
502 property ShowMail: Boolean read FShowMail write FShowMail;
503 property OnlyAHundredRes : Boolean read FOnlyAHundredRes write FOnlyAHundredRes;
504 property UnActivePopup: Boolean read FUnActivePopup write FUnActivePopup;
505 property ResPopupHeaderBold: Boolean read FResPopupHeaderBold write FResPopupHeaderBold;
507 property LogFolder: string read FLogFolder write FLogFolder;
508 property NewLogFolder: string read FNewLogFolder write FNewLogFolder;
510 property BBSColumnWidth[index: Integer]: Integer read GetBBSColumnWidth write SetBBSColumnWidth;
511 property CategoryColumnWidth[index: Integer]: Integer read GetCategoryColumnWidth write SetCategoryColumnWidth;
512 property BoardColumnWidth[index: Integer]: Integer read GetBoardColumnWidth write SetBoardColumnWidth;
514 property SoundName[index: Integer]: string read GetSoundName;
515 property SoundViewName[index: Integer]: string read GetSoundViewName;
516 property SoundFileName[index: Integer]: string read GetSoundFileName write SetSoundFileName;
518 property BBSSortIndex: Integer read FBBSSortIndex write FBBSSortIndex;
519 property BBSSortOrder: Boolean read FBBSSortOrder write FBBSSortOrder;
520 property CategorySortIndex: Integer read FCategorySortIndex write FCategorySortIndex;
521 property CategorySortOrder: Boolean read FCategorySortOrder write FCategorySortOrder;
522 property BoardSortIndex: Integer read FBoardSortIndex write FBoardSortIndex;
523 property BoardSortOrder: Boolean read FBoardSortOrder write FBoardSortOrder;
525 //property BoardURL2ch: string read FBoardURL2ch write FBoardURL2ch;
526 property BoardURLs: TStringList read FBoardURLs write FBoardURLs;
527 property BoardURLSelected: Integer read FBoardURLSelected write FBoardURLSelected;
528 property UserID: string read FUserID write FUserID;
529 property Password: string read FPassword write FPassword;
530 property AutoLogin: Boolean read FAutoLogin write FAutoLogin;
531 property ForcedLogin: Boolean read FForcedLogin write FForcedLogin;
532 property DolibURL: string read FDolibURL write FDolibURL;
534 property URLApp: Boolean read FURLApp write FURLApp;
535 property URLAppFile: string read FURLAppFile write FURLAppFile;
537 property OpenMailer: Boolean read FOpenMailer write FOpenMailer;
539 property DeleteMsg: Boolean read FDeleteMsg write FDeleteMsg;
541 property MainCoolSet[Index: Integer]: TCoolSet read GetMainCoolSet write SetMainCoolSet;
542 property ListCoolSet[Index: Integer]: TCoolSet read GetBoardCoolSet write SetBoardCoolSet;
543 property BrowserCoolSet[Index: Integer]: TCoolSet read GetBrowserCoolSet write SetBrowserCoolSet;
545 property ListToolBarWrapable: Boolean read FListToolBarWrapable write FListToolBarWrapable;
546 property BrowserToolBarWrapable: Boolean read FBrowserToolBarWrapable write FBrowserToolBarWrapable;
548 property PopupPosition: TGikoPopupPosition read FPopupPosition write FPopupPosition;
550 property URLDisplay: Boolean read FURLDisplay write FURLDisplay;
551 property AddressBarTabStop: Boolean read FAddressBarTabStop write FAddressBarTabStop;
552 property LinkAddAddressBar: Boolean read FLinkAddAddressBar write FLinkAddAddressBar;
553 property AddressHistoryCount: Integer read FAddressHistoryCount write FAddressHistoryCount;
555 property PreviewVisible: Boolean read FPreviewVisible write FPreviewVisible;
556 property PreviewSize: TGikoPreviewSize read FPreviewSize write FPreviewSize;
557 property PreviewWait: Integer read FPreviewWait write FPreviewWait;
558 property BrowserAutoMaximize: TGikoBrowserAutoMaximize read FBrowserAutoMaximize write FBrowserAutoMaximize;
560 property ListIconVisible: Boolean read FListIconVisible write FListIconVisible;
561 property NonAcquiredCount: Boolean read FNonAcquiredCount write FNonAcquiredCount;
562 property CreationTimeLogs: Boolean read FCreationTimeLogs write FCreationTimeLogs;
563 property FutureThread: Boolean read FFutureThread write FFutureThread;
565 property UseMachineTime: Boolean read FUseMachineTime write FUseMachineTime;
566 property TimeAdjustSec: Integer read FTimeAdjustSec write FTimeAdjustSec;
567 property TimeAdjust: Boolean read FTimeAdjust write FTimeAdjust;
570 property AbonDeleterlo : Boolean read FAbonDeleterlo write FAbonDeleterlo;
571 property AbonReplaceul : Boolean read FAbonReplaceul write FAbonReplaceul;
572 property PopUpAbon : Boolean read FPopUpAbon write FPopUpAbon;
573 property ShowNGLinesNum : Boolean read FShowNGLinesNum write FShowNGLinesNum;
574 property AddResAnchor : Boolean read FAddResAnchor write FAddResAnchor;
575 property DeleteSyria : Boolean read FDeleteSyria write FDeleteSyria;
576 //
\83X
\83\8c\83b
\83h
\8di
\8d\9e\83t
\83B
\81[
\83\8b\83h
\82Ì
\95\9d
577 property SelectComboBoxWidth : Integer read FSelectComboBoxWidth write FSelectComboBoxWidth;
579 //
\8dÅ
\8cã
\82É
\91I
\91ð
\82³
\82ê
\82½
\83I
\83v
\83V
\83\87\83\93\83_
\83C
\83A
\83\8d\83O
\82Ì
\83^
\83u
580 property OptionDialogTabIndex : Integer read FOptionDialogTabIndex write FOptionDialogTabIndex;
582 //
\8dÅ
\8cã
\82É
\91I
\91ð
\82³
\82ê
\82½
\83L
\83\83\83r
\83l
\83b
\83g
583 property CabinetIndex : Integer read FCabinetIndex write FCabinetIndex;
585 //
\8fI
\97¹
\8e\9e\82É
\8am
\94F
\83_
\83C
\83A
\83\8d\83O
\82ð
\95\
\8e¦
\82·
\82é
\82©
586 property ShowDialogForEnd : Boolean read FShowDialogForEnd write FShowDialogForEnd;
587 property ShowDialogForAllTabClose: Boolean read FShowDialogForAllTabClose write FShowDialogForAllTabClose;
588 //
\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©
589 property UseOddColorOddResNum: Boolean read FUseOddColorOddResNum write FUseOddColorOddResNum;
590 property OddColor: TColor read FOddColor write FOddColor;
591 property UseSamba: Boolean read FUseSamba write FUseSamba;
592 property ResAnchorJamp: Boolean read FResAnchorJamp write FResAnchorJamp;
595 property SpaceToNBSP : Boolean read FSpaceToNBSP write FSpaceToNBSP;
596 property AmpToCharRef : Boolean read FAmpToCharRef write FAmpToCharRef;
598 property SelectInterval : Integer read FSelectInterval write FSelectInterval;
600 property TabAutoSave: Boolean read FTabAutoSave write FTabAutoSave;
601 property TabAutoLoad: Boolean read FTabAutoLoad write FTabAutoLoad;
616 INI_FILE_NAME: string = 'gikoNavi.ini';
617 BOARD_URL_INI_FILE_NAME: string = 'url.ini';
618 DEFAULT_FONT_NAME: string = '
\82l
\82r
\82o
\83S
\83V
\83b
\83N';
619 DEFAULT_FONT_SIZE: Integer = 9;
620 DEFAULT_FONT_COLOR: string = 'clWindowText';
621 DEFAULT_WINDOW_COLOR: string = 'clWindow';
622 DEFAULT_TAB_FONT_NAME: string = '
\82l
\82r
\82o
\83S
\83V
\83b
\83N';
623 DEFAULT_TAB_FONT_SIZE: Integer = 9;
624 DEFAULT_2CH_BOARD_URL1: string = 'http://www6.ocn.ne.jp/~mirv/2chmenu.html';
625 DEFAULT_2CH_BOARD_URL2: string = 'http://www.ff.iij4u.or.jp/~ch2/bbsmenu.html';
626 //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¤
627 //'http://www.2ch.net/newbbsmenu.html';
628 GIKO_ENCRYPT_TEXT: string = 'gikoNaviEncryptText';
631 SOUND_NAME: array[0..4] of TSoundName = (
632 (Name: 'New'; ViewName: '
\8eæ
\93¾
\90¬
\8c÷'; FileName: ''),
633 (Name: 'NewDiff'; ViewName: '
\8eæ
\93¾
\90¬
\8c÷(
\8d·
\95ª)'; FileName: ''),
634 (Name: 'NoChange'; ViewName: '
\96¢
\8dX
\90V'; FileName: ''),
635 // (Name: 'RoundEnd'; ViewName: '
\8f\84\89ñ
\8fI
\97¹(
\8eæ
\93¾
\82 \82è)'; FileName: ''),
636 // (Name: 'RoundNone'; ViewName: '
\8f\84\89ñ
\8fI
\97¹(
\8eæ
\93¾
\82È
\82µ)'; FileName: ''),
637 (Name: 'ResEnd'; ViewName: '
\83\8c\83X
\91\97\90M
\8a®
\97¹'; FileName: ''),
638 (Name: 'Error'; ViewName: '
\83G
\83\89\81['; FileName: ''));
640 //
\83R
\83\93\83X
\83g
\83\89\83N
\83^
641 constructor TSetting.Create();
643 FNameList := TStringList.Create;
644 FMailList := TStringList.Create;
645 FSelectTextList := TStringList.Create;
646 FBoardURLs := TStringList.Create;
647 FNameList.Duplicates := dupIgnore;
648 FMailList.Duplicates := dupIgnore;
649 FBoardURLs.Duplicates := dupIgnore;
650 FSelectTextList.Duplicates := dupIgnore;
655 //
\83f
\83X
\83g
\83\89\83N
\83^
656 destructor TSetting.Destroy();
659 FSelectTextList.Free;
665 //
\8f\89\8aú
\89»
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
666 function TSetting.GetFileName(): string;
668 Result := ExtractFilePath(Application.ExeName) + INI_FILE_NAME;
671 //
\94Â
\8dX
\90V
\97pURL
\90Ý
\92è
\83t
\83@
\83C
\83\8b\96¼
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
672 function TSetting.GetBoardURLFileName(): string;
674 Result := ExtractFilePath(Application.ExeName) + BOARD_URL_INI_FILE_NAME;
677 //
\90Ý
\92è
\83t
\83@
\83C
\83\8b\93Ç
\8d\9e
678 procedure TSetting.ReadSettingFile();
680 DEFAULT_BBS_WIDTH: array[0..0] of Integer = (140);
681 DEFAULT_CATEGORY_WIDTH: array[0..3] of Integer = (150, 80, 130, 130);
682 DEFAULT_BOARD_WIDTH: array[0..7] of Integer = (350, 60, 60, 60, 60, 80, 130, 130);
683 MAX_WIDTH: Integer = 2000;
694 Exists := FileExists(GetFileName);
695 ini := TMemIniFile.Create(GetFileName);
697 //
\8eó
\90M
\83o
\83b
\83t
\83@
\83T
\83C
\83Y
698 FRecvBufferSize := ini.ReadInteger('HTTP', 'RecvBufferSize', 4096);
700 FProtocol := ini.ReadBool('HTTP', 'Protocol', True);
701 //
\83v
\83\8d\83L
\83V
\90Ú
\91±HTTP1.1
\8eg
\97p
702 FProxyProtocol := ini.ReadBool('HTTP', 'ProxyProtocol', False);
704 FReadProxy := ini.ReadBool('ReadProxy', 'Proxy', false);
705 FReadProxyAddress := ini.ReadString('ReadProxy', 'Address', '');
706 FReadProxyPort := ini.ReadInteger('ReadProxy', 'Port', 0);
707 FReadProxyUserID := ini.ReadString('ReadProxy', 'UserID', '');
708 FReadProxyPassword := ini.ReadString('ReadProxy', 'Password', '');
710 FWriteProxy := ini.ReadBool('WriteProxy', 'Proxy', false);
711 FWriteProxyAddress := ini.ReadString('WriteProxy', 'Address', '');
712 FWriteProxyPort := ini.ReadInteger('WriteProxy', 'Port', 0);
713 FWriteProxyUserID := ini.ReadString('WriteProxy', 'UserID', '');
714 FWriteProxyPassword := ini.ReadString('WriteProxy', 'Password', '');
716 FBrowserFontName := ini.ReadString('Window', 'BrowserFontName', '');
717 FBrowserFontSize := ini.ReadInteger('Window', 'BrowserFontSize', 0);
718 FBrowserFontBold := ini.ReadInteger('Window', 'BrowserFontBold', 0);
719 FBrowserFontItalic := ini.ReadInteger('Window', 'BrowserFontItalic', 0);
720 FBrowserFontColor := ini.ReadInteger('Window', 'BrowserFontColor', -1);
721 FBrowserBackColor := ini.ReadInteger('Window', 'BrowserBackColor', -1);
723 FCabinetFontName := ini.ReadString('Window', 'CabinetFontName', DEFAULT_FONT_NAME);
724 FCabinetFontSize := ini.ReadInteger('Window', 'CabinetFontSize', DEFAULT_FONT_SIZE);
725 FCabinetFontBold := ini.ReadBool('Window', 'CabinetFontBold', False);
726 FCabinetFontItalic := ini.ReadBool('Window', 'CabinetFontItalic', False);
727 FCabinetFontColor := StringToColor(ini.ReadString('Window', 'CabinetFontColor', DEFAULT_FONT_COLOR));
728 FCabinetBackColor := StringToColor(ini.ReadString('Window', 'CabinetBackColor', DEFAULT_WINDOW_COLOR));
730 FListFontName := ini.ReadString('Window', 'ListFontName', DEFAULT_FONT_NAME);
731 FListFontSize := ini.ReadInteger('Window', 'ListFontSize', DEFAULT_FONT_SIZE);
732 FListFontBold := ini.ReadBool('Window', 'ListFontBold', False);
733 FListFontItalic := ini.ReadBool('Window', 'ListFontItalic', False);
734 FListFontColor := StringToColor(ini.ReadString('Window', 'ListFontColor', DEFAULT_FONT_COLOR));
735 FListBackColor := StringToColor(ini.ReadString('Window', 'ListBackColor', DEFAULT_WINDOW_COLOR));
736 FUseOddColorOddResNum := ini.ReadBool('Window','UseOddColor', False);
737 FOddColor := StringToColor(ini.ReadString('Window', 'OddColor', DEFAULT_WINDOW_COLOR));
739 FEditorFontName := ini.ReadString('Window', 'EditorFontName', DEFAULT_FONT_NAME);
740 FEditorFontSize := ini.ReadInteger('Window', 'EditorFontSize', DEFAULT_FONT_SIZE);
741 FEditorFontBold := ini.ReadBool('Window', 'EditorFontBold', False);
742 FEditorFontItalic := ini.ReadBool('Window', 'EditorFontItalic', False);
743 FEditorFontColor := StringToColor(ini.ReadString('Window', 'EditorFontColor', DEFAULT_FONT_COLOR));
744 FEditorBackColor := StringToColor(ini.ReadString('Window', 'EditorBackColor', DEFAULT_WINDOW_COLOR));
746 FBrowserTabFontName := ini.ReadString('Window', 'BrowserTabFontName', DEFAULT_TAB_FONT_NAME);
747 FBrowserTabFontSize := ini.ReadInteger('Window', 'BrowserTabFontSize', DEFAULT_TAB_FONT_SIZE);
748 FBrowserTabFontBold := ini.ReadBool('Window', 'BrowserTabFontBold', False);
749 FBrowserTabFontItalic := ini.ReadBool('Window', 'BrowserTabFontItalic', False);
751 FHintFontName := ini.ReadString('Window', 'HintFontName', Screen.HintFont.Name);
752 FHintFontSize := ini.ReadInteger('Window', 'HintFontSize', Screen.HintFont.Size);
753 //FHintFontBold := ini.ReadBool('Window', 'HintFontBold', False);
754 //FHintFontItalic := ini.ReadBool('Window', 'HintFontItalic', False);
755 FHintFontColor := StringToColor(ini.ReadString('Window', 'HintFontColor', DEFAULT_FONT_COLOR));
756 FHintBackColor := StringToColor(ini.ReadString('Window', 'HintBackColor', 'clInfoBk'));
758 FWindowTop := ini.ReadInteger('WindowSize', 'Top', -1);
759 FWindowLeft := ini.ReadInteger('WindowSize', 'Left', -1);
760 FWindowHeight := ini.ReadInteger('WindowSize', 'Height', -1);
761 FWindowWidth := ini.ReadInteger('WindowSize', 'Width', -1);
762 FWindowMax := ini.ReadBool('WindowSize', 'Max', false);
764 if FWindowHeight <= 0 then FWindowHeight := 400;
765 if FWindowWidth <= 0 then FWindowWidth := 600;
767 FListStyle := TViewStyle(ini.ReadInteger('ViewStyle', 'ListView', Ord(vsReport)));
769 FEditWindowTop := ini.ReadInteger('EditorWindowSize', 'Top', -1);
770 FEditWindowLeft := ini.ReadInteger('EditorWindowSize', 'Left', -1);
771 FEditWindowHeight := ini.ReadInteger('EditorWindowSize', 'Height', -1);
772 FEditWindowWidth := ini.ReadInteger('EditorWindowSize', 'Width', -1);
773 FEditWindowMax := ini.ReadBool('EditorWindowSize', 'Max', False);
774 FEditWindowStay := ini.ReadBool('EditorWindowSize', 'Stay', False);
775 FEditWindowTranslucent := ini.ReadBool('EditorWindowSize', 'Translucent', False);
777 FOptionDialogTabIndex := ini.ReadInteger('OptionDialog', 'TabIndex', 0);
779 //
\83c
\81[
\83\8b\83o
\81[
780 FStdToolBarVisible := ini.ReadBool('ToolBar', 'StdVisible', True);
781 FAddressBarVisible := ini.ReadBool('ToolBar', 'AddressVisible', True);
782 FLinkBarVisible := ini.ReadBool('ToolBar', 'LinkVisible', True);
783 FListToolBarVisible := ini.ReadBool('ToolBar', 'ListVisible', True);
784 FListNameBarVisible := ini.ReadBool('ToolBar', 'ListNameVisible', True);
785 FBrowserToolBarVisible := ini.ReadBool('ToolBar', 'BrowserVisible', True);
786 FBrowserNameBarVisible := ini.ReadBool('ToolBar', 'BrowserNameVisible', True);
787 //
\83c
\81[
\83\8b\83o
\81[Wrapable
788 FListToolBarWrapable := ini.ReadBool('ToolBar', 'ListWrapable', False);
789 FBrowserToolBarWrapable := ini.ReadBool('ToolBar', 'BrowserWrapable', False);
791 FBrowserTabVisible := ini.ReadBool('Tab', 'BrowserTabVisible', True);
792 FBrowserTabPosition := TGikoTabPosition(ini.ReadInteger('Tab', 'BrowserTabPosition', Ord(gtpTop)));
793 FBrowserTabAppend := TGikoTabAppend(ini.ReadInteger('Tab', 'BrowserTabAppend', Ord(gtaFirst)));
794 FBrowserTabStyle := TGikoTabStyle(ini.ReadInteger('Tab', 'BrowserTabStyle', Ord(gtsFlat)));
796 FMessageBarVisible := ini.ReadBool('MessageBar', 'Visible', True);
797 FMessegeBarHeight := ini.ReadInteger('MessageBar', 'Height', 30);
799 FStatusBarVisible := ini.ReadBool('StatusBar', 'Visible', True);
801 FCabinetVisible := ini.ReadBool('Cabinet', 'Visible', True);
802 FCabinetWidth := ini.ReadInteger('Cabinet', 'Width', 200);
803 FCabinetIndex := ini.ReadInteger('Cabinet', 'Index', 0);
805 FListOrientation := TGikoListOrientation(ini.ReadInteger('List', 'Orientation', Ord(gloHorizontal)));
806 FListHeight := ini.ReadInteger('List', 'Height', 180);
807 FListHeightState := TGikoListState(ini.ReadInteger('List', 'HeightState', Ord(glsNormal)));
808 FListWidth := ini.ReadInteger('List', 'Width', 180);
809 FListWidthState := TGikoListState(ini.ReadInteger('List', 'WidthState', Ord(glsNormal)));
810 // FListHeightMax := ini.ReadBool('List', 'HeightMax', False);
811 // FListWidthMax := ini.ReadBool('List', 'WidthMax', False);
813 wkList := TStringList.Create;
815 ini.ReadSection('Name', wkList);
816 for i := 0 to wkList.Count - 1 do begin
817 wkStr := ini.ReadString('Name', wkList[i], '');
818 if (wkStr <> '') and (FNameList.IndexOf(wkStr) = -1) then
819 FNameList.Add(wkStr);
821 ini.ReadSection('Mail', wkList);
822 for i := 0 to wkList.Count - 1 do begin
823 wkStr := ini.ReadString('Mail', wkList[i], '');
824 if (wkStr <> '') and (FMailList.IndexOf(wkStr) = -1) then
825 FMailList.Add(wkStr);
827 ini.ReadSection('SelectText', wkList);
828 for i := 0 to wkList.Count - 1 do begin
829 wkStr := ini.ReadString('SelectText', wkList[i], '');
830 if (wkStr <> '') and (FSelectTextList.IndexOf(wkStr) = -1) then
831 FSelectTextList.Add(wkStr);
837 //
\83\8a\83X
\83g
\83J
\83\89\83\80
838 wkList := TStringList.Create;
840 ini.ReadSection('BBSColumnWidth', wkList);
841 if Length(FBBSColumnWidth) <> wkList.Count then begin
842 ini.EraseSection('BBSColumnWidth');
844 for i := 0 to Length(FBBSColumnWidth) - 1 do begin
845 BBSColumnWidth[i] := ini.ReadInteger('BBSColumnWidth', 'ID' + IntToStr(i), DEFAULT_BBS_WIDTH[i]);
846 if BBSColumnWidth[i] > MAX_WIDTH then
847 BBSColumnWidth[i] := DEFAULT_BBS_WIDTH[i];
849 ini.ReadSection('CategoryColumnWidth', wkList);
850 if Length(FCategoryColumnWidth) <> wkList.Count then begin
851 ini.EraseSection('CategoryColumnWidth');
853 for i := 0 to Length(FCategoryColumnWidth) - 1 do begin
854 CategoryColumnWidth[i] := ini.ReadInteger('CategoryColumnWidth', 'ID' + IntToStr(i), DEFAULT_CATEGORY_WIDTH[i]);
855 if CategoryColumnWidth[i] > MAX_WIDTH then
856 CategoryColumnWidth[i] := DEFAULT_CATEGORY_WIDTH[i];
858 ini.ReadSection('BoardColumnWidth', wkList);
859 if Length(FBoardColumnWidth) <> wkList.Count then begin
860 ini.EraseSection('BoardColumnWidth');
862 for i := 0 to Length(FBoardColumnWidth) - 1 do begin
863 BoardColumnWidth[i] := ini.ReadInteger('BoardColumnWidth', 'ID' + IntToStr(i), DEFAULT_BOARD_WIDTH[i]);
864 if BoardColumnWidth[i] > MAX_WIDTH then
865 BoardColumnWidth[i] := DEFAULT_BOARD_WIDTH[i];
871 //
\83\8a\83X
\83g
\94Ô
\8d\86
872 FListViewNo := ini.ReadBool('Function', 'ListViewNo', True);
874 UseCSS := ini.ReadBool('CSS', 'UseCSS', True);
875 //CSS
\83t
\83@
\83C
\83\8b\96¼
876 CSSFileName := ini.ReadString('CSS', 'FileName', 'default.css');
879 FShowMail := ini.ReadBool('Thread', 'ShowMail', True);
880 //
\8dÅ
\90V100
\83\8c\83X
\95\
\8e¦
881 FOnlyAHundredRes := ini.ReadBool('Thread', 'OnlyAHundredRes',false);
882 //
\94ñ
\83A
\83N
\83e
\83B
\83u
\8e\9e\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\95\
\8e¦
883 FUnActivePopup := ini.ReadBool('Thread', 'UnActivePopup', False);
884 //
\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\83w
\83b
\83_
\81[
\83{
\81[
\83\8b\83h
885 FResPopupHeaderBold := ini.ReadBool('Thread', 'ResPopupHeaderBold', True);
887 FDeleteMsg := ini.ReadBool('Function', 'LogDeleteMessage', True);
889 FShowDialogForEnd := ini.ReadBool('Function','ShowDialogForEnd',false);
891 FShowDialogForAllTabClose := ini.ReadBool('Function','ShowDialogForAllTabClose',false);
893 FUseSamba := ini.ReadBool('Function','UseSamba', True);
895 ResAnchorJamp := ini.ReadBool('Function', 'ResAnchoJamp', True);
896 //
\83\8d\83O
\83t
\83H
\83\8b\83_
897 FLogFolder := ini.ReadString('Folder', 'LogFolder', ExtractFilePath(Application.ExeName) + 'Log');
901 //
\95¡
\90\94\93o
\98^
\82Å
\82«
\82é
\82æ
\82¤
\82É
\82µ
\82ÄFBoardURLs
\82É
\82µ
\82½
\81@2003/10/05
902 //FBoardURL2ch := ini.ReadString('BoardURL', '2ch', DEFAULT_2CH_BOARD_URL);
904 //
\94F
\8fØ
\97p
\83\86\81[
\83UID
\81E
\83p
\83X
\83\8f\81[
\83h
905 FUserID := ini.ReadString('Attestation', 'UserID', '');
906 FPassword := Decrypt(ini.ReadString('Attestation', 'Password', ''));
907 FAutoLogin := ini.ReadBool('Attestation', 'AutoLogin', False);
908 FForcedLogin := ini.ReadBool('Attestation', 'FForcedLogin', False);
909 // FDolibURL := ini.ReadString('Attestation', 'FDolibURL', DOLIB_LOGIN_URL);
911 //URL
\83N
\83\8a\83b
\83N
\8e\9e\8bN
\93®
\83A
\83v
\83\8a
912 FURLApp := ini.ReadBool('URLApp', 'Select', False);
913 FURLAppFile := ini.ReadString('URLApp', 'File', '');
915 //mailto
\83N
\83\8a\83b
\83N
\8e\9e\93®
\8dì
916 FOpenMailer := ini.ReadBool('Mailto', 'Open', True);
918 //
\83|
\83b
\83v
\83A
\83b
\83v
\88Ê
\92u
919 FPopupPosition := TGikoPopupPosition(ini.ReadInteger('Browser', 'PopupPosition', Ord(gppLeftBottom)));
921 //
\83A
\83h
\83\8c\83X
\83o
\81[
922 FURLDisplay := ini.ReadBool('AddressBar', 'URLDisplay', False);
923 FAddressBarTabStop := ini.ReadBool('AddressBar', 'TabStop', True);
924 FLinkAddAddressBar := ini.ReadBool('AddressBar', 'LinkAdd', False);
925 FAddressHistoryCount := ini.ReadInteger('AddressBar', 'HistoryCount', 100);
927 //
\89æ
\91\9c\83v
\83\8c\83r
\83\85\81[
928 FPreviewVisible := ini.ReadBool('Browser', 'PreviewVisible', True);
929 FPreviewSize := TGikoPreviewSize(ini.ReadInteger('Browser', 'PreviewSize', Ord(gpsMedium)));
930 FPreviewWait := ini.ReadInteger('Browser', 'PreviewWait', 500);
932 //
\83u
\83\89\83E
\83U
933 FBrowserAutoMaximize := TGikoBrowserAutoMaximize(
934 ini.ReadInteger('Window', 'BrowserAutoMaximize', Ord(gbmDoubleClick)) );
936 //
\83X
\83\8c\83b
\83h
\88ê
\97\97\8dX
\90V
\83A
\83C
\83R
\83\93
937 FListIconVisible := ini.ReadBool('ThreadList', 'StateIconVisible', True);
938 FNonAcquiredCount := ini.ReadBool('ThreadList', 'NonAcquiredCount', False);
939 FCreationTimeLogs := ini.ReadBool('ThreadList', 'CreationTimeLogs', True);
940 FFutureThread := ini.ReadBool('ThreadList', 'FutureThread', True);
941 FSelectInterval := ini.ReadInteger('ThreadList', 'SelectInterval', 110);
943 FBBSSortIndex := ini.ReadInteger('ThreadList', 'BBSSortIndex', 0);
944 FBBSSortOrder := ini.ReadBool('ThreadList', 'BBSSortOrder', False);
945 FCategorySortIndex := ini.ReadInteger('ThreadList', 'CategorySortIndex', 0);
946 FCategorySortOrder := ini.ReadBool('ThreadList', 'CategorySortOrder', False);
947 FBoardSortIndex := ini.ReadInteger('ThreadList', 'BoardSortIndex', 0);
948 FBoardSortOrder := ini.ReadBool('ThreadList', 'BoardSortOrder', False);
950 //
\8f\91\82«
\8d\9e\82Ý
\8e\9e\83}
\83V
\83\93\8e\9e\8d\8f\8eg
\97p
\90Ý
\92è
951 FUseMachineTime := ini.ReadBool('PostTime', 'UseMachineTime', False);
952 FTimeAdjustSec := ini.ReadInteger('PostTime', 'TimeAdjustSec', 0);
953 FTimeAdjust := ini.ReadBool('PostTime', 'TimeAdjust', True);
957 for i := 0 to GetSoundCount - 1 do begin
958 SoundFileName[i] := ini.ReadString('Sound', SoundName[i], '');
959 if not FileExists(SoundFileName[i]) then
960 SoundFileName[i] := '';
963 s := ExtractFileDir(Application.ExeName) + '\sound\';
964 SoundFileName[0] := s + '
\8eæ
\93¾
\90¬
\8c÷.wav';
965 SoundFileName[1] := s + '
\8eæ
\93¾
\90¬
\8c÷(
\8d·
\95ª).wav';
966 SoundFileName[2] := s + '
\96¢
\8dX
\90V.wav';
967 SoundFileName[3] := '';
968 SoundFileName[4] := s + '
\83G
\83\89\81[.wav';
971 //
\83N
\81[
\83\8b\83o
\81[
972 for i := 0 to MAIN_COOLBAND_COUNT - 1 do begin
973 CoolSet.FCoolID := ini.ReadInteger('MainCoolBar', 'ID' + IntToStr(i), -1);
974 CoolSet.FCoolWidth := ini.ReadInteger('MainCoolBar', 'Width' + IntToStr(i), -1);
975 CoolSet.FCoolBreak := ini.ReadBool('MainCoolBar', 'Break' + IntToStr(i), False);
976 MainCoolSet[i] := CoolSet;
978 FSelectComboBoxWidth := ini.ReadInteger( 'ListCoolBar', 'SelectWidth', 127 );
979 for i := 0 to LIST_COOLBAND_COUNT - 1 do begin
980 CoolSet.FCoolID := ini.ReadInteger('ListCoolBar', 'ID' + IntToStr(i), -1);
981 CoolSet.FCoolWidth := ini.ReadInteger('ListCoolBar', 'Width' + IntToStr(i), -1);
982 CoolSet.FCoolBreak := ini.ReadBool('ListCoolBar', 'Break' + IntToStr(i), False);
983 ListCoolSet[i] := CoolSet;
985 for i := 0 to BROWSER_COOLBAND_COUNT - 1 do begin
986 CoolSet.FCoolID := ini.ReadInteger('BrowserCoolBar', 'ID' + IntToStr(i), -1);
987 CoolSet.FCoolWidth := ini.ReadInteger('BrowserCoolBar', 'Width' + IntToStr(i), -1);
988 CoolSet.FCoolBreak := ini.ReadBool('BrowserCoolBar', 'Break' + IntToStr(i), False);
989 BrowserCoolSet[i] := CoolSet;
993 FAbonDeleterlo := ini.ReadBool('Abon','Deleterlo',false);
994 FAbonReplaceul := ini.ReadBool('Abon','Replaceul',false);
995 FPopUpAbon := ini.ReadBool('Abon','Popup',false);
996 FShowNGLinesNum := ini.ReadBool('Abon','ShowNGLines',false);
997 FAddResAnchor := ini.ReadBool('Abon','AddResAnchor',false);
998 FDeleteSyria := ini.ReadBool('Abon','DeleteSyria',false);
1001 FSpaceToNBSP := ini.ReadBool( 'Editor', 'SpaceToNBSP', True );
1002 FAmpToCharRef := ini.ReadBool( 'Editor', 'AmpToCharRef', False );
1004 //Tab
\8e©
\93®
\95Û
\91¶
\81A
\93Ç
\82Ý
\8d\9e\82Ý
1005 FTabAutoSave := ini.ReadBool('TabAuto', 'TabAutoSave', False);
1006 FTabAutoLoad := ini.ReadBool('TabAuto', 'TabAutoLoad', False);
1013 //
\94Â
\8dX
\90V
\97pURL
\93Ç
\82Ý
\8d\9e\82Ý
1014 procedure TSetting.ReadBoardURLsFile();
1020 if not FileExists(GetBoardURLFileName()) then
1022 ini := TMemIniFile.Create(GetBoardURLFileName());
1024 urlNum := ini.ReadInteger('URL','count',0);
1025 BoardURLSelected := ini.ReadInteger('URL','selected',0);
1026 for i := 0 to urlNum - 1 do begin
1027 FBoardURLs.Append(ini.ReadString('URL',IntToStr(i+1),''));
1034 //
\90Ý
\92è
\83t
\83@
\83C
\83\8b\95Û
\91¶(system)
1035 procedure TSetting.WriteSystemSettingFile();
1039 ini := TMemIniFile.Create(GetFileName());
1041 //
\8eó
\90M
\83o
\83b
\83t
\83@
\83T
\83C
\83Y
1042 ini.WriteInteger('HTTP', 'RecvBufferSize', FRecvBufferSize);
1044 ini.WriteBool('HTTP', 'Protocol', FProtocol);
1045 //
\83v
\83\8d\83L
\83V
\90Ú
\91±HTTP1.1
\8eg
\97p
1046 ini.WriteBool('HTTP', 'ProxyProtocol', FProxyProtocol);
1048 ini.WriteBool('ReadProxy', 'Proxy', FReadProxy);
1049 ini.WriteString('ReadProxy', 'Address', FReadProxyAddress);
1050 ini.WriteInteger('ReadProxy', 'Port', FReadProxyPort);
1051 ini.WriteString('ReadProxy', 'UserID', FReadProxyUserID);
1052 ini.WriteString('ReadProxy', 'Password', FReadProxyPassword);
1054 ini.WriteBool('WriteProxy', 'Proxy', FWriteProxy);
1055 ini.WriteString('WriteProxy', 'Address', FWriteProxyAddress);
1056 ini.WriteInteger('WriteProxy', 'Port', FWriteProxyPort);
1057 ini.WriteString('WriteProxy', 'UserID', FWriteProxyUserID);
1058 ini.WriteString('WriteProxy', 'Password', FWriteProxyPassword);
1060 ini.WriteString('Window', 'BrowserFontName', FBrowserFontName);
1061 ini.WriteInteger('Window', 'BrowserFontSize', FBrowserFontSize);
1062 ini.WriteInteger('Window', 'BrowserFontSize', FBrowserFontSize);
1063 ini.WriteInteger('Window', 'BrowserFontBold', FBrowserFontBold);
1064 ini.WriteInteger('Window', 'BrowserFontItalic', FBrowserFontItalic);
1065 ini.WriteInteger('Window', 'BrowserFontColor', FBrowserFontColor);
1066 ini.WriteInteger('Window', 'BrowserBackColor', FBrowserBackColor);
1068 ini.WriteString('Window', 'CabinetFontName', FCabinetFontName);
1069 ini.WriteInteger('Window', 'CabinetFontSize', FCabinetFontSize);
1070 ini.WriteString('Window', 'CabinetFontColor', ColorToString(FCabinetFontColor));
1071 ini.WriteString('Window', 'CabinetBackColor', ColorToString(FCabinetBackColor));
1073 ini.WriteString('Window', 'ListFontName', FListFontName);
1074 ini.WriteInteger('Window', 'ListFontSize', FListFontSize);
1075 ini.WriteString('Window', 'ListFontColor', ColorToString(FListFontColor));
1076 ini.WriteString('Window', 'ListBackColor', ColorToString(FListBackColor));
1077 ini.WriteBool('Window','UseOddColor',FUseOddColorOddResNum);
1078 ini.WriteString('Window', 'OddColor',ColorToString(FOddColor));
1080 ini.WriteString('Window', 'EditorFontName', FEditorFontName);
1081 ini.WriteInteger('Window', 'EditorFontSize', FEditorFontSize);
1082 ini.WriteString('Window', 'EditorFontColor', ColorToString(FEditorFontColor));
1083 ini.WriteString('Window', 'EditorBackColor', ColorToString(FEditorBackColor));
1085 ini.WriteString('Window', 'BrowserTabFontName', FBrowserTabFontName);
1086 ini.WriteInteger('Window', 'BrowserTabFontSize', FBrowserTabFontSize);
1087 ini.WriteBool('Window', 'BrowserTabFontBold', FBrowserTabFontBold);
1088 ini.WriteBool('Window', 'BrowserTabFontItalic', FBrowserTabFontItalic);
1090 ini.WriteString('Window', 'HintFontName', FHintFontName);
1091 ini.WriteInteger('Window', 'HintFontSize', FHintFontSize);
1092 ini.WriteString('Window', 'HintFontColor', ColorToString(FHintFontColor));
1093 ini.WriteString('Window', 'HintBackColor', ColorToString(FHintBackColor));
1095 //
\8e©
\93®
\95Û
\91¶¥
\95\9c\8c³
1096 ini.WriteBool('TabAuto', 'TabAutoLoad', FTabAutoLoad);
1097 ini.WriteBool('TabAuto', 'TabAutoSave', FTabAutoLoad);
1105 //
\90Ý
\92è
\83t
\83@
\83C
\83\8b\95Û
\91¶(window)
1106 procedure TSetting.WriteWindowSettingFile();
1112 ini := TMemIniFile.Create(GetFileName());
1114 ini.WriteInteger('WindowSize', 'Top', WindowTop);
1115 ini.WriteInteger('WindowSize', 'Left', WindowLeft);
1116 ini.WriteInteger('WindowSize', 'Height', WindowHeight);
1117 ini.WriteInteger('WindowSize', 'Width', WindowWidth);
1118 ini.WriteBool('WindowSize', 'Max', WindowMax);
1120 ini.WriteInteger('ViewStyle', 'ListView', Ord(ListStyle));
1122 ini.WriteInteger('EditorWindowSize', 'Top', EditWindowTop);
1123 ini.WriteInteger('EditorWindowSize', 'Left', EditWindowLeft);
1124 ini.WriteInteger('EditorWindowSize', 'Height', EditWindowHeight);
1125 ini.WriteInteger('EditorWindowSize', 'Width', EditWindowWidth);
1126 ini.WriteBool('EditorWindowSize', 'Max', EditWindowMax);
1127 ini.WriteBool('EditorWindowSize', 'Stay', EditWindowStay);
1128 ini.WriteBool('EditorWindowSize', 'Translucent', EditWindowTranslucent);
1130 ini.WriteInteger('OptionDialog', 'TabIndex', FOptionDialogTabIndex);
1132 //
\83c
\81[
\83\8b\83o
\81[
1133 ini.WriteBool('ToolBar', 'StdVisible', FStdToolBarVisible);
1134 ini.WriteBool('ToolBar', 'AddressVisible', FAddressBarVisible);
1135 ini.WriteBool('ToolBar', 'LinkVisible', FLinkBarVisible);
1136 ini.WriteBool('ToolBar', 'ListVisible', FListToolBarVisible);
1137 ini.WriteBool('ToolBar', 'ListNameVisible', FListNameBarVisible);
1138 ini.WriteBool('ToolBar', 'BrowserVisible', FBrowserToolBarVisible);
1139 ini.WriteBool('ToolBar', 'BrowserNameVisible', FBrowserNameBarVisible);
1140 //
\83c
\81[
\83\8b\83o
\81[Wrapable
1141 ini.WriteBool('ToolBar', 'ListWrapable', FListToolBarWrapable);
1142 ini.WriteBool('ToolBar', 'BrowserWrapable', FBrowserToolBarWrapable);
1145 ini.WriteBool('Tab', 'BrowserTabVisible', FBrowserTabVisible);
1146 ini.WriteInteger('Tab', 'BrowserTabPosition', Ord(FBrowserTabPosition));
1147 ini.WriteInteger('Tab', 'BrowserTabAppend', Ord(FBrowserTabAppend));
1148 ini.WriteInteger('Tab', 'BrowserTabStyle', Ord(FBrowserTabStyle));
1150 //
\83\81\83b
\83Z
\81[
\83W
\83o
\81[
1151 ini.WriteBool('MessageBar', 'Visible', FMessageBarVisible);
1152 ini.WriteInteger('MessageBar', 'Height', FMessegeBarHeight);
1154 //
\83X
\83e
\81[
\83^
\83X
\83o
\81[
1155 ini.WriteBool('StatusBar', 'Visible', FStatusBarVisible);
1157 //
\83L
\83\83\83r
\83l
\83b
\83g
1158 ini.WriteBool('Cabinet', 'Visible', FCabinetVisible);
1159 ini.WriteInteger('Cabinet', 'Width', FCabinetWidth);
1160 ini.WriteInteger('Cabinet', 'Index', FCabinetIndex);
1162 //
\83\8a\83X
\83g
\82Ì
\83T
\83C
\83Y
\82Æ
\90\82\92¼
\90\85\95½
1163 ini.WriteInteger('List', 'Orientation', Ord(FListOrientation));
1164 ini.WriteInteger('List', 'Height', FListHeight);
1165 ini.WriteInteger('List', 'HeightState', Ord(FListHeightState));
1166 ini.WriteInteger('List', 'Width', FListWidth);
1167 ini.WriteInteger('List', 'WidthState', Ord(FListWidthState));
1168 // ini.WriteBool('List', 'HeightMax', FListHeightMax);
1169 // ini.WriteBool('List', 'WidthMax', FListWidthMax);
1172 // ini.WriteInteger('Window', 'BrowserFontSize', BrowserFontSize);
1174 //
\83\8a\83X
\83g
\94Ô
\8d\86\95\
\8e¦
1175 ini.WriteBool('Function', 'ListViewNo', FListViewNo);
1177 ini.WriteBool('CSS', 'UseCSS', FUseCSS);
1178 //CSS
\83t
\83@
\83C
\83\8b\96¼
1179 ini.WriteString('CSS', 'FileName', FCSSFileName);
1180 //Mail
\97\93\95\
\8e¦
1181 ini.WriteBool('Thread', 'ShowMail', FShowMail);
1182 //
\8dÅ
\90V100
\83\8c\83X
\95\
\8e¦
1183 ini.WriteBool('Thread', 'OnlyAHundredRes', FOnlyAHundredRes);
1184 //
\83\8d\83O
\8dí
\8f\9c\8am
\94F
1185 ini.WriteBool('Function', 'LogDeleteMessage', FDeleteMsg);
1187 ini.WriteBool('Function','ShowDialogForEnd',FShowDialogForEnd);
1189 ini.WriteBool('Function','ShowDialogForAllTabClose', FShowDialogForAllTabClose);
1191 ini.WriteBool('Function','UseSamba', FUseSamba);
1193 ini.WriteBool('Function', 'ResAnchoJamp', ResAnchorJamp);
1195 //
\94ñ
\83A
\83N
\83e
\83B
\83u
\8e\9e\83|
\83b
\83v
\83A
\83b
\83v
\95\
\8e¦
1196 ini.WriteBool('Thread', 'UnActivePopup', FUnActivePopup);
1197 //
\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\83w
\83b
\83_
\81[
\83{
\81[
\83\8b\83h
1198 ini.WriteBool('Thread', 'ResPopupHeaderBold', FResPopupHeaderBold);
1199 //ini.WriteString('BoardURL', '2ch', FBoardURL2ch);
1201 //
\94F
\8fØ
\97p
\83\86\81[
\83UID
\81E
\83p
\83X
\83\8f\81[
\83h
1202 ini.WriteString('Attestation', 'UserID', FUserID);
1203 ini.WriteString('Attestation', 'Password', Encrypt(FPassword));
1204 ini.WriteBool('Attestation', 'AutoLogin', FAutoLogin);
1205 ini.WriteBool('Attestation', 'FForcedLogin', FForcedLogin);
1206 ini.WriteString('Attestation', 'FDolibURL', FDolibURL);
1208 //URL
\83N
\83\8a\83b
\83N
\8e\9e\8bN
\93®
\83A
\83v
\83\8a
1209 ini.WriteBool('URLApp', 'Select', FURLApp);
1210 ini.WriteString('URLApp', 'File', FURLAppFile);
1212 //mailto
\83N
\83\8a\83b
\83N
\8e\9e\93®
\8dì
1213 ini.WriteBool('Mailto', 'Open', FOpenMailer);
1215 //
\83|
\83b
\83v
\83A
\83b
\83v
\88Ê
\92u
1216 ini.WriteInteger('Browser', 'PopupPosition', Ord(FPopupPosition));
1218 //
\83A
\83h
\83\8c\83X
\83o
\81[
1219 ini.WriteBool('AddressBar', 'URLDisplay', FURLDisplay);
1220 ini.WriteBool('AddressBar', 'TabStop', FAddressBarTabStop);
1221 ini.WriteBool('AddressBar', 'LinkAdd', FLinkAddAddressBar);
1222 ini.WriteInteger('AddressBar', 'HistoryCount', FAddressHistoryCount);
1224 //
\89æ
\91\9c\83v
\83\8c\83r
\83\85\81[
1225 ini.WriteBool('Browser', 'PreviewVisible', FPreviewVisible);
1226 ini.WriteInteger('Browser', 'PreviewSize', Ord(FPreviewSize));
1227 ini.WriteInteger('Browser', 'PreviewWait', FPreviewWait);
1228 ini.WriteInteger('Browser', 'AutoMaximize', Ord( FBrowserAutoMaximize ) );
1230 //
\83X
\83\8c\83b
\83h
\88ê
\97\97\8dX
\90V
\83A
\83C
\83R
\83\93
1231 ini.WriteBool('ThreadList', 'StateIconVisible', FListIconVisible);
1232 ini.WriteBool('ThreadList', 'NonAcquiredCount', FNonAcquiredCount);
1233 ini.WriteBool('ThreadList', 'CreationTimeLogs',FCreationTimeLogs);
1234 ini.WriteBool('ThreadList', 'FutureThread', FFutureThread);
1235 ini.WriteInteger('ThreadList', 'SelectInterval', FSelectInterval);
1236 //
\83\
\81[
\83g
\8f\87
1237 ini.WriteInteger('ThreadList', 'BBSSortIndex', FBBSSortIndex);
1238 ini.WriteBool('ThreadList', 'BBSSortOrder', FBBSSortOrder);
1239 ini.WriteInteger('ThreadList', 'CategorySortIndex', FCategorySortIndex);
1240 ini.WriteBool('ThreadList', 'CategorySortOrder', FCategorySortOrder);
1241 ini.WriteInteger('ThreadList', 'BoardSortIndex', FBoardSortIndex);
1242 ini.WriteBool('ThreadList', 'BoardSortOrder', FBoardSortOrder);
1244 //
\8f\91\82«
\8d\9e\82Ý
\8e\9e\83}
\83V
\83\93\8e\9e\8d\8f\8eg
\97p
\90Ý
\92è
1245 ini.WriteBool('PostTime', 'UseMachineTime', FUseMachineTime);
1246 ini.WriteInteger('PostTime', 'TimeAdjustSec', FTimeAdjustSec);
1247 ini.WriteBool('PostTime', 'TimeAdjust', FTimeAdjust);
1249 //
\83\8a\83X
\83g
\83J
\83\89\83\80
1250 for i := 0 to Length(FBBSColumnWidth) - 1 do begin
1251 ini.WriteInteger('BBSColumnWidth', 'ID' + IntToStr(i), FBBSColumnWidth[i]);
1253 for i := 0 to Length(FCategoryColumnWidth) - 1 do begin
1254 ini.WriteInteger('CategoryColumnWidth', 'ID' + IntToStr(i), FCategoryColumnWidth[i]);
1256 for i := 0 to Length(FBoardColumnWidth) - 1 do begin
1257 ini.WriteInteger('BoardColumnWidth', 'ID' + IntToStr(i), FBoardColumnWidth[i]);
1260 //
\83T
\83E
\83\93\83h
1261 for i := 0 to GetSoundCount - 1 do begin
1262 if not FileExists(SoundFileName[i]) then
1263 SoundFileName[i] := '';
1264 ini.WriteString('Sound', SoundName[i], SoundFileName[i]);
1268 ini.EraseSection('MainCoolBar');
1269 for i := 0 to MAIN_COOLBAND_COUNT - 1 do begin
1270 CoolSet := MainCoolSet[i];
1271 ini.WriteInteger('MainCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1272 ini.WriteInteger('MainCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1273 ini.WriteBool('MainCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1275 ini.EraseSection('ListCoolBar');
1276 ini.WriteInteger( 'ListCoolBar', 'SelectWidth', FSelectComboBoxWidth );
1277 for i := 0 to LIST_COOLBAND_COUNT - 1 do begin
1278 CoolSet := ListCoolSet[i];
1279 ini.WriteInteger('ListCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1280 ini.WriteInteger('ListCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1281 ini.WriteBool('ListCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1283 ini.EraseSection('BrowserCoolBar');
1284 for i := 0 to BROWSER_COOLBAND_COUNT - 1 do begin
1285 CoolSet := BrowserCoolSet[i];
1286 ini.WriteInteger('BrowserCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1287 ini.WriteInteger('BrowserCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1288 ini.WriteBool('BrowserCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1292 ini.WriteBool('Abon','Deleterlo',FAbonDeleterlo);
1293 ini.WriteBool('Abon','Replaceul',FAbonReplaceul);
1294 ini.WriteBool('Abon','Popup',FPopUpAbon);
1295 ini.WriteBool('Abon','ShowNGLines',FShowNGLinesNum);
1296 ini.WriteBool('Abon','AddResAnchor',FAddResAnchor);
1297 ini.WriteBool('Abon','DeleteSyria',FDeleteSyria);
1300 ini.WriteBool( 'Editor', 'SpaceToNBSP', FSpaceToNBSP );
1301 ini.WriteBool( 'Editor', 'AmpToCharRef', FAmpToCharRef );
1309 //
\90Ý
\92è
\83t
\83@
\83C
\83\8b\95Û
\91¶(name & mail)
1310 procedure TSetting.WriteNameMailSettingFile();
1315 ini := TMemIniFile.Create(GetFileName());
1317 ini.EraseSection('Name');
1318 ini.EraseSection('Mail');
1319 ini.EraseSection('SelectText');
1320 for i := 0 to FNameList.Count - 1 do begin
1321 ini.WriteString('Name', Format('%.2d', [i + 1]), FNameList[i]);
1325 for i := 0 to FMailList.Count - 1 do begin
1326 ini.WriteString('Mail', Format('%.2d', [i + 1]), FMailList[i]);
1330 for i := 0 to FSelectTextList.Count - 1 do begin
1331 ini.WriteString('SelectText', Format('%.2d', [i + 1]), FSelectTextList[i]);
1341 procedure TSetting.WriteFolderSettingFile();
1345 ini := TMemIniFile.Create(GetFileName());
1347 if ExtractFilePath(Application.ExeName) + 'Log' = NewLogFolder then
1348 ini.DeleteKey('Folder', 'LogFolder')
1350 ini.WriteString('Folder', 'LogFolder', NewLogFolder);
1356 //
\94Â
\8dX
\90V
\97pBoardURL
\82ð
\95Û
\91¶
1357 procedure TSetting.WriteBoardURLSettingFile();
1363 ini := TMemIniFile.Create(GetBoardURLFileName());
1365 oldcount := ini.ReadInteger('URL','count',FBoardURLs.Count);
1366 ini.WriteInteger('URL','count',FBoardURLs.Count);
1367 ini.WriteInteger('URL','selected',BoardURLSelected);
1368 for i := 0 to FBoardURLs.Count -1 do begin
1369 ini.WriteString('URL',IntToStr(i+1),FBoardURLs.Strings[i]);
1371 if oldcount > FBoardURLs.Count then begin
1372 for i := FBoardURLs.Count to oldcount do begin
1373 ini.DeleteKey('URL',IntToStr(i+1));
1383 //
\83\8a\83X
\83g
\83J
\83\89\83\80\83w
\83b
\83_
\81[
1384 function TSetting.GetBBSColumnWidth(index: Integer): Integer;
1386 Result := IfThen(index in [0..Length(FBBSColumnWidth) - 1], FBBSColumnWidth[index], 0);
1389 function TSetting.GetCategoryColumnWidth(index: Integer): Integer;
1391 Result := IfThen(index in [0..Length(FCategoryColumnWidth) - 1], FCategoryColumnWidth[index], 0);
1394 function TSetting.GetBoardColumnWidth(index: Integer): Integer;
1396 Result := IfThen(index in [0..Length(FBoardColumnWidth) - 1], FBoardColumnWidth[index], 0);
1402 procedure TSetting.SetBBSColumnWidth(index: Integer; value: Integer);
1404 if index in [0..Length(FBBSColumnWidth) - 1] then
1405 FBBSColumnWidth[index] := value;
1408 procedure TSetting.SetCategoryColumnWidth(index: Integer; value: Integer);
1410 if index in [0..Length(FCategoryColumnWidth) - 1] then
1411 FCategoryColumnWidth[index] := value;
1414 procedure TSetting.SetBoardColumnWidth(index: Integer; value: Integer);
1416 if index in [0..Length(FBoardColumnWidth) - 1] then
1417 FBoardColumnWidth[index] := value;
1420 function TSetting.GetSoundCount: Integer;
1422 Result := Length(SOUND_NAME);
1425 function TSetting.GetSoundName(Index: Integer): string;
1427 if (Index < GetSoundCount) and (Index >= 0) then
1428 Result := SOUND_NAME[Index].Name
1433 function TSetting.GetSoundViewName(Index: Integer): string;
1435 if (Index < GetSoundCount) and (Index >= 0) then
1436 Result := SOUND_NAME[Index].ViewName
1441 function TSetting.GetSoundFileName(Index: Integer): string;
1443 if (Index < GetSoundCount) and (Index >= 0) then
1444 Result := SOUND_NAME[Index].FileName
1449 procedure TSetting.SetSoundFileName(Index: Integer; value: string);
1451 if (Index < GetSoundCount) and (Index >= 0) then
1452 SOUND_NAME[Index].FileName := value;
1455 function TSetting.FindSoundFileName(Name: string): string;
1459 for i := 0 to GetSoundCount - 1 do begin
1460 if SoundName[i] = Name then begin
1461 Result := SoundFileName[i];
1468 function TSetting.Encrypt(s: string): string;
1470 cryptObj: THogeCryptAuto;
1471 inputStream, outputStream: TStringStream;
1473 inputStream := TStringStream.Create(s);
1474 outputStream := TStringStream.Create('');
1475 cryptObj := THogeCryptAuto.Create;
1478 cryptObj.Encrypt(inputStream, GIKO_ENCRYPT_TEXT, outputStream);
1480 //
\83o
\83C
\83i
\83\8a\82È
\82Ì
\82Å
\95K
\97v
\82É
\89\9e\82¶
\82Ä
\83e
\83L
\83X
\83g
\82É
\95Ï
\8a·
1481 Result := HogeBase64Encode(outputStream.DataString);
1489 function TSetting.Decrypt(s: string): string;
1491 cryptObj: THogeCryptAuto;
1492 inputStream, outputStream: TStringStream;
1495 inputStream := TStringStream.Create(HogeBase64Decode(s));
1500 outputStream := TStringStream.Create('');
1501 cryptObj := THogeCryptAuto.Create;
1504 cryptObj.Decrypt(inputStream, GIKO_ENCRYPT_TEXT, outputStream);
1505 Result := outputStream.DataString;
1513 function TSetting.GetMainCoolSet(Index: Integer): TCoolSet;
1515 if Index in [0..MAIN_COOLBAND_COUNT - 1] then
1516 Result := FMainCoolBar[Index]
1518 Result.FCoolID := -1;
1519 Result.FCoolWidth := -1;
1520 Result.FCoolBreak := False;
1524 function TSetting.GetBoardCoolSet(Index: Integer): TCoolSet;
1526 if Index in [0..LIST_COOLBAND_COUNT - 1] then
1527 Result := FListCoolBar[Index]
1529 Result.FCoolID := -1;
1530 Result.FCoolWidth := -1;
1531 Result.FCoolBreak := False;
1535 function TSetting.GetBrowserCoolSet(Index: Integer): TCoolSet;
1537 if Index in [0..BROWSER_COOLBAND_COUNT - 1] then
1538 Result := FBrowserCoolBar[Index]
1540 Result.FCoolID := -1;
1541 Result.FCoolWidth := -1;
1542 Result.FCoolBreak := False;
1546 procedure TSetting.SetMainCoolSet(Index: Integer; CoolSet: TCoolSet);
1548 if Index in [0..MAIN_COOLBAND_COUNT - 1] then
1549 FMainCoolBar[Index] := CoolSet;
1552 procedure TSetting.SetBoardCoolSet(Index: Integer; CoolSet: TCoolSet);
1554 if Index in [0..LIST_COOLBAND_COUNT - 1] then
1555 FListCoolBar[Index] := CoolSet;
1558 procedure TSetting.SetBrowserCoolSet(Index: Integer; CoolSet: TCoolSet);
1560 if Index in [0..BROWSER_COOLBAND_COUNT - 1] then
1561 FBrowserCoolBar[Index] := CoolSet;
1564 //url.ini
\82ª
\82È
\82¢
\82Æ
\82«
\82É
\90¶
\90¬
\82·
\82é
1565 procedure TSetting.MakeURLIniFile();
1569 ini := TMemIniFile.Create(GetBoardURLFileName());
1571 ini.WriteInteger('URL','count',2);
1572 ini.WriteInteger('URL','selected',2);
1573 ini.WriteString('URL','1',DEFAULT_2CH_BOARD_URL1);
1574 ini.WriteString('URL','2',DEFAULT_2CH_BOARD_URL2);
1581 (*************************************************************************
1582 *
\83{
\81[
\83h
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
1583 *************************************************************************)
1584 function TSetting.GetBoardFileName: string;
1586 Result := GetAppDir + CONFIG_DIR_NAME + '\' + BOARD_FILE_NAME;
1589 (*************************************************************************
1590 *
\83{
\81[
\83h
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
1591 *************************************************************************)
1592 function TSetting.GetCustomBoardFileName: string;
1594 Result := GetAppDir + CONFIG_DIR_NAME + '\' + CUSTOMBOARD_FILE_NAME;
1597 (*************************************************************************
1598 *
\83{
\81[
\83h
\83f
\83B
\83\8c\83N
\83g
\83\8a\8eæ
\93¾
1599 *************************************************************************)
1600 function TSetting.GetBoardDir: string;
1602 Result := GetAppDir + CONFIG_DIR_NAME + '\' + BOARD_DIR_NAME + '\';
1605 (*************************************************************************
1606 *
\83e
\83\93\83|
\83\89\83\8a\83t
\83H
\83\8b\83_
\81[
\96¼
\8eæ
\93¾
1607 *************************************************************************)
1608 function TSetting.GetHtmlTempFileName: string;
1610 Result := TEMP_FOLDER;
1614 (*************************************************************************
1615 *
\8eÀ
\8ds
\83t
\83@
\83C
\83\8b\83t
\83H
\83\8b\83_
\8eæ
\93¾
1616 *************************************************************************)
1617 function TSetting.GetAppDir: string;
1619 Result := ExtractFilePath(Application.ExeName);
1622 (*************************************************************************
1623 *TempHtml
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
1624 *************************************************************************)
1625 function TSetting.GetTempFolder: string;
1627 Result := GetAppDir + TEMP_FOLDER;
1630 (*************************************************************************
1631 *sent.ini
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
1632 *************************************************************************)
1633 function TSetting.GetSentFileName: string;
1635 Result := GetAppDir + SENT_FILE_NAME;
1638 (*************************************************************************
1639 *outbox.ini
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
1640 *************************************************************************)
1641 function TSetting.GetOutBoxFileName: string;
1643 Result := GetAppDir + OUTBOX_FILE_NAME;
1646 (*************************************************************************
1647 *Config
\83t
\83H
\83\8b\83_
\8eæ
\93¾
1648 *************************************************************************)
1649 function TSetting.GetConfigDir: string;
1651 Result := IncludeTrailingPathDelimiter(GetAppDir + CONFIG_DIR_NAME);
1654 function TSetting.GetStyleSheetDir: string;
1656 Result := IncludeTrailingPathDelimiter(GetConfigDir + CSS_DIR_NAME);
1659 function TSetting.GetSkinDir: string;
1661 Result := IncludeTrailingPathDelimiter(GetConfigDir + SKIN_DIR_NAME);
1664 function TSetting.GetSkinHeaderFileName: string;
1666 Result := CSSFileName + SKIN_HEADER_FILE_NAME;
1669 function TSetting.GetSkinFooterFileName: string;
1671 Result := CSSFileName + SKIN_FOOTER_FILE_NAME;
1674 function TSetting.GetSkinNewResFileName: string;
1676 Result := CSSFileName + SKIN_NEWRES_FILE_NAME;
1679 function TSetting.GetSkinResFileName: string;
1681 Result := CSSFileName + SKIN_RES_FILE_NAME;
1684 function TSetting.GetSkinBookmarkFileName: string;
1686 Result := CSSFileName + SKIN_BOOKMARK_FILE_NAME;
1689 function TSetting.GetSkinNewmarkFileName: string;
1691 Result := CSSFileName + SKIN_NEWMARK_FILE_NAME;
1694 function TSetting.GetNGWordsDir: string;
1696 Result := IncludeTrailingPathDelimiter(GetConfigDir + NGWORDs_DIR_NAME);
1699 function TSetting.GetBoardPlugInDir: string;
1701 Result := IncludeTrailingPathDelimiter(GetConfigDir + BOARD_PLUGIN_DIR_NAME);
1704 procedure TSetting.SetUseCSS( value: Boolean );
1711 (Pos( GetSkinDir, CSSFileName ) > 0) and
1712 FileExists( GetSkinHeaderFileName );
1716 procedure TSetting.SetCSSFileName( fileName: string );
1719 FCSSFileName := fileName;
1723 (Pos( GetSkinDir, CSSFileName ) > 0) and
1724 FileExists( GetSkinHeaderFileName );
1728 function TSetting.GetSambaFileName: string;
1730 Result := GetAppDir + SAMBATIME_FILE_NAME;
1732 //
\94Â
\8dX
\90V
\8f\9c\8aO
\83J
\83e
\83S
\83\8a\83\8a\83X
\83g
\95Û
\91¶
\83t
\83@
\83C
\83\8b
1733 function TSetting.GetIgnoreFileName: string;
1735 Result := GetConfigDir + IGNORE_FILE_NAME;