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';
37 TGikoTabPosition = (gtpTop, gtpBottom); //
\83^
\83u
\88Ê
\92u
38 TGikoTabAppend = (gtaFirst, gtpLast); //
\83^
\83u
\92Ç
\89Á
\88Ê
\92u
39 TGikoTabStyle = (gtsTab, gtsButton, gtsFlat); //
\83^
\83u
\83X
\83^
\83C
\83\8b
40 TGikoListOrientation = (gloHorizontal, gloVertical); //
\83\8a\83X
\83g
\90\82\92¼
\81E
\90\85\95½
41 TGikoListState = (glsMax, glsNormal, glsMin); //
\83\8a\83X
\83g
\83T
\83C
\83Y
\8fó
\91Ô
42 //
\83|
\83b
\83v
\83A
\83b
\83v
\95\
\8e¦
\88Ê
\92u
43 TGikoPopupPosition = (gppRightTop, gppTop, gppLeftTop,
44 gppRight, gppCenter, gppLeft,
45 gppRightBottom, gppBottom, gppLeftBottom);
46 //
\83v
\83\8c\83r
\83\85\81[
\83T
\83C
\83Y
47 TGikoPreviewSize = (gpsXLarge, gpsLarge, gpsMedium, gpsSmall, gpsXSmall);
49 //CoolBar
\90Ý
\92è
\83\8c\83R
\81[
\83h
56 TSetting = class(TObject)
58 //
\8eó
\90M
\83o
\83b
\83t
\83@
\83T
\83C
\83Y
59 FRecvBufferSize: Integer;
62 //
\83v
\83\8d\83L
\83V
\90Ú
\91±HTTP1.1
\8eg
\97p
63 FProxyProtocol: Boolean;
65 //
\83v
\83\8d\83L
\83V
\81i
\93Ç
\8d\9e\97p
\81j
67 FReadProxyAddress: string;
68 FReadProxyPort: Integer;
69 FReadProxyUserID: string;
70 FReadProxyPassword: string;
72 //
\83v
\83\8d\83L
\83V
\81i
\8f\91\8d\9e\97p
\81j
74 FWriteProxyAddress: string;
75 FWriteProxyPort: Integer;
76 FWriteProxyUserID: string;
77 FWriteProxyPassword: string;
79 //
\83L
\83\83\83r
\83l
\83b
\83g
80 FCabinetFontName: string;
81 FCabinetFontSize: Integer;
82 FCabinetFontBold: Boolean;
83 FCabinetFontItalic: Boolean;
84 FCabinetFontColor: TColor;
85 FCabinetBackColor: TColor;
88 FListFontName: string;
89 FListFontSize: Integer;
90 FListFontBold: Boolean;
91 FListFontItalic: Boolean;
92 FListFontColor: TColor;
93 FListBackColor: TColor;
96 FBrowserFontName: string; // ''...default
97 FBrowserFontSize: Integer; // 0...default
98 FBrowserFontBold: Integer; // 0...default, -1...False, 1...True
99 FBrowserFontItalic: Integer; //
\8fã
\82É
\93¯
\82¶
100 FBrowserFontColor: Integer; // -1...default
101 FBrowserBackColor: Integer; //
\8fã
\82É
\93¯
\82¶
104 FEditorFontName: string;
105 FEditorFontSize: Integer;
106 FEditorFontBold: Boolean;
107 FEditorFontItalic: Boolean;
108 FEditorFontColor: TColor;
109 FEditorBackColor: TColor;
111 //
\83^
\83u
\83t
\83H
\83\93\83g
112 FBrowserTabFontName: string;
113 FBrowserTabFontSize: Integer;
114 FBrowserTabFontBold: Boolean;
115 FBrowserTabFontItalic: Boolean;
117 //
\83q
\83\93\83g
\83E
\83B
\83\93\83h
\83E
118 FHintFontName: string;
119 FHintFontSize: Integer;
120 //FHintFontBold: Boolean;
121 //FHintFontItalic: Boolean;
122 FHintFontColor: TColor;
123 FHintBackColor: TColor;
125 //
\83E
\83B
\83\93\83h
\83E
\83T
\83C
\83Y
127 FWindowLeft: Integer;
128 FWindowHeight: Integer;
129 FWindowWidth: Integer;
131 //
\83\8a\83X
\83g
\83r
\83\85\81[
\83X
\83^
\83C
\83\8b
132 FListStyle: TViewStyle;
134 //
\83c
\81[
\83\8b\83o
\81[
\95\
\8e¦
135 FStdToolBarVisible: Boolean;
136 FAddressBarVisible: Boolean;
137 FLinkBarVisible: Boolean;
138 FListToolBarVisible: Boolean;
139 FListNameBarVisible: Boolean;
140 FBrowserToolBarVisible: Boolean;
141 FBrowserNameBarVisible: Boolean;
143 //
\83u
\83\89\83E
\83U
\83^
\83u
144 FBrowserTabVisible: Boolean;
145 FBrowserTabPosition: TGikoTabPosition;
146 FBrowserTabAppend: TGikoTabAppend;
147 FBrowserTabStyle: TGikoTabStyle;
149 //
\83\81\83b
\83Z
\81[
\83W
\83o
\81[
150 FMessageBarVisible: Boolean;
151 FMessegeBarHeight: Integer;
153 //
\83X
\83e
\81[
\83^
\83X
\83o
\81[
154 FStatusBarVisible: Boolean;
156 //
\83L
\83\83\83r
\83l
\83b
\83g
\89Â
\8e\8b\81E
\83T
\83C
\83Y
157 FCabinetVisible: Boolean;
158 FCabinetWidth: Integer;
160 //
\83\8a\83X
\83g
\81E
\83u
\83\89\83E
\83U
\83T
\83C
\83Y
161 FListOrientation: TGikoListOrientation;
162 FListHeight: Integer;
163 FListHeightState: TGikoListState;
165 FListWidthState: TGikoListState;
166 // FListHeightMax: Boolean;
167 // FListWidthMax: Boolean;
169 //
\91\97\90M
\97p
\96¼
\91O
\81E
\83\81\81[
\83\8b
170 FNameList: TStringList;
171 FMailList: TStringList;
173 //
\83G
\83f
\83B
\83^
\81[
\83E
\83B
\83\93\83h
\83E
\83T
\83C
\83Y
174 FEditWindowTop: Integer;
175 FEditWindowLeft: Integer;
176 FEditWindowHeight: Integer;
177 FEditWindowWidth: Integer;
178 FEditWindowMax: Boolean;
179 FEditWindowStay: Boolean;
180 FEditWindowTranslucent: Boolean;
182 //
\83\8a\83X
\83g
\94Ô
\8d\86\95\
\8e¦
183 FListViewNo: Boolean;
186 //CSS
\83t
\83@
\83C
\83\8b\96¼
187 FCSSFileName: string;
188 //
\83X
\83L
\83\93\95\
\8e¦(
\88ê
\8e\9e\93I
\82È
\82à
\82Ì
\82Å ini
\82É
\95Û
\91¶
\82Í
\82³
\82ê
\82È
\82¢)
192 //
\8bN
\93®
\8e\9e\8dÅ
\90V100
\83\8c\83X
\95\
\8e¦
193 FOnlyAHundredRes : Boolean;
194 //
\94ñ
\83A
\83N
\83e
\83B
\83u
\8e\9e\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\95\
\8e¦
195 FUnActivePopup: Boolean;
196 //
\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\83w
\83b
\83_
\81[
\83{
\81[
\83\8b\83h
197 FResPopupHeaderBold: Boolean;
199 //
\83\8d\83O
\83t
\83H
\83\8b\83_
201 FNewLogFolder: string;
203 //
\83\8a\83X
\83g
\83J
\83\89\83\80\83w
\83b
\83_
\81[
\83T
\83C
\83Y
204 FBBSColumnWidth: array[0..0] of Integer;
205 FCategoryColumnWidth: array[0..3] of Integer;
206 FBoardColumnWidth: array[0..7] of Integer;
208 //
\8di
\8d\9e\82Ý
\95¶
\8e\9a\97ñ
209 FSelectTextList: TStringList;
212 //FBoardURL2ch: string;
213 FBoardURLs: TStringList;
214 FBoardURLSelected: Integer;
216 //
\83\86\81[
\83UID
\81E
\83p
\83X
\83\8f\81[
\83h
220 FForcedLogin: Boolean;
223 //URL
\83N
\83\8a\83b
\83N
\8e\9e\8bN
\93®
\83A
\83v
\83\8a
227 //mailto
\83N
\83\8a\83b
\83N
\8e\9e\93®
\8dì
228 FOpenMailer: Boolean;
233 //CoolBar
\81i
\83\81\83C
\83\93\81E
\94Â
\81E
\83u
\83\89\83E
\83U
\81j
234 FMainCoolBar: array[0..MAIN_COOLBAND_COUNT - 1] of TCoolSet;
235 FListCoolBar: array[0..LIST_COOLBAND_COUNT - 1] of TCoolSet;
236 FBrowserCoolBar: array[0..BROWSER_COOLBAND_COUNT - 1] of TCoolSet;
239 FListToolBarWrapable: Boolean;
240 FBrowserToolBarWrapable: Boolean;
242 //
\83|
\83b
\83v
\83A
\83b
\83v
\88Ê
\92u
243 FPopupPosition: TGikoPopupPosition;
245 //
\83A
\83h
\83\8c\83X
\83o
\81[
246 FURLDisplay: Boolean;
247 FAddressBarTabStop: Boolean;
248 FLinkAddAddressBar: Boolean;
249 FAddressHistoryCount: Integer;
251 //
\89æ
\91\9c\83v
\83\8c\83r
\83\85\81[
252 FPreviewVisible: Boolean;
253 FPreviewSize: TGikoPreviewSize;
254 FPreviewWait: Integer;
256 //
\83X
\83\8c\83b
\83h
\88ê
\97\97\8dX
\90V
\83A
\83C
\83R
\83\93\95\
\8e¦
257 FListIconVisible: Boolean;
259 //
\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©
260 FCreationTimeLogs: Boolean;
261 //
\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¢
262 FFutureThread: Boolean;
264 //
\8f\91\82«
\8d\9e\82Ý
\8e\9e\83}
\83V
\83\93\8e\9e\8aÔ
\8eg
\97p
\90Ý
\92è
265 FUseMachineTime: Boolean;
266 FTimeAdjustSec: Integer;
267 FTimeAdjust: Boolean;
270 FAbonDeleterlo : Boolean; //&rlo;
\82ð
\8dí
\82é
\82©
271 FAbonReplaceul : Boolean; //<ul>
\83^
\83O
\82ð<br>
\83^
\83O
\82É
\92u
\8a·
\82·
\82é
\82©
272 FPopUpAbon : Boolean; //
\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\8e\9e\82Ì
\82 \82Ú
\81`
\82ñ
\97L
\8cø
273 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¦
274 FAddResAnchor : Boolean; //NG
\83\8c\83X
\82Ö
\82Ì
\83\8c\83X
\83A
\83\93\83J
\81[
\82ð
\92Ç
\89Á
\82·
\82é
275 FDeleteSyria : Boolean; //
\83V
\83\8a\83A
\8cê
\83u
\83\89\83N
\83\89\91Î
\8dô
277 //
\83X
\83\8c\83b
\83h
\8di
\8d\9e\83t
\83B
\81[
\83\8b\83h
\82Ì
\95\9d
278 FSelectComboBoxWidth : Integer;
280 //
\8dÅ
\8cã
\82É
\91I
\91ð
\82³
\82ê
\82½
\83I
\83v
\83V
\83\87\83\93\83_
\83C
\83A
\83\8d\83O
\82Ì
\83^
\83u
281 FOptionDialogTabIndex: Integer;
283 //
\8dÅ
\8cã
\82É
\91I
\91ð
\82³
\82ê
\82½
\83L
\83\83\83r
\83l
\83b
\83g
284 FCabinetIndex: Integer;
286 //
\8fI
\97¹
\8e\9e\82É
\8am
\94F
\83_
\83C
\83A
\83\8d\83O
\82ð
\95\
\8e¦
\82·
\82é
\82©
287 FShowDialogForEnd : Boolean;
288 //
\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©
289 FUseOddColorOddResNum: Boolean;
292 //Samba24
\91Î
\8dô
\8b@
\94\
\82ð
\8eg
\82¤
\82©
295 function GetMainCoolSet(Index: Integer): TCoolSet;
296 function GetBoardCoolSet(Index: Integer): TCoolSet;
297 function GetBrowserCoolSet(Index: Integer): TCoolSet;
298 procedure SetMainCoolSet(Index: Integer; CoolSet: TCoolSet);
299 procedure SetBoardCoolSet(Index: Integer; CoolSet: TCoolSet);
300 procedure SetBrowserCoolSet(Index: Integer; CoolSet: TCoolSet);
302 function GetBBSColumnWidth(index: Integer): Integer;
303 function GetCategoryColumnWidth(index: Integer): Integer;
304 function GetBoardColumnWidth(index: Integer): Integer;
305 procedure SetBBSColumnWidth(index: Integer; value: Integer);
306 procedure SetCategoryColumnWidth(index: Integer; value: Integer);
307 procedure SetBoardColumnWidth(index: Integer; value: Integer);
309 function GetSoundName(Index: Integer): string;
310 function GetSoundViewName(Index: Integer): string;
311 function GetSoundFileName(Index: Integer): string;
312 procedure SetSoundFileName(Index: Integer; value: string);
313 function Encrypt(s: string): string;
314 function Decrypt(s: string): string;
316 procedure MakeURLIniFile();
318 procedure SetUseCSS( value: Boolean );
319 procedure SetCSSFileName( fileName: string );
324 destructor Destroy; override;
325 function GetFileName: string;
326 function GetBoardURLFileName: string;
327 procedure ReadSettingFile;
328 procedure ReadBoardURLsFile;
329 procedure WriteSystemSettingFile;
330 procedure WriteWindowSettingFile;
331 procedure WriteNameMailSettingFile;
332 procedure WriteFolderSettingFile();
333 procedure WriteBoardURLSettingFile;
334 function GetSoundCount: Integer;
335 function FindSoundFileName(Name: string): string;
337 function GetBoardFileName: string;
338 function GetCustomBoardFileName: string;
339 function GetBoardDir: string;
340 function GetHtmlTempFileName: string;
341 function GetAppDir: string;
342 function GetTempFolder: string;
343 function GetSentFileName: string;
344 function GetConfigDir: string;
345 function GetSkinDir: string;
346 function GetSkinHeaderFileName: string;
347 function GetSkinFooterFileName: string;
348 function GetSkinResFileName: string;
349 function GetSkinNewResFileName: string;
350 function GetSkinBookmarkFileName: string;
351 function GetSkinNewmarkFileName: string;
352 function GetStyleSheetDir: string;
353 function GetOutBoxFileName: string;
354 function GetNGWordsDir: string;
355 function GetBoardPlugInDir: string;
356 function GetSambaFileName: string;
357 function GetIgnoreFileName: string;
359 //
\8eó
\90M
\83o
\83b
\83t
\83@
\83T
\83C
\83Y
360 property RecvBufferSize: Integer read FRecvBufferSize write FRecvBufferSize;
362 property Protocol: Boolean read FProtocol write FProtocol;
363 //
\83v
\83\8d\83L
\83V
\90Ú
\91±HTTP1.1
\8eg
\97p
364 property ProxyProtocol: Boolean read FProxyProtocol write FProxyProtocol;
366 property ReadProxy: Boolean read FReadProxy write FReadProxy;
367 property ReadProxyAddress: string read FReadProxyAddress write FReadProxyAddress;
368 property ReadProxyPort: Integer read FReadProxyPort write FReadProxyPort;
369 property ReadProxyUserID: string read FReadProxyUserID write FReadProxyUserID;
370 property ReadProxyPassword: string read FReadProxyPassword write FReadProxyPassword;
372 property WriteProxy: Boolean read FWriteProxy write FWriteProxy;
373 property WriteProxyAddress: string read FWriteProxyAddress write FWriteProxyAddress;
374 property WriteProxyPort: Integer read FWriteProxyPort write FWriteProxyPort;
375 property WriteProxyUserID: string read FWriteProxyUserID write FWriteProxyUserID;
376 property WriteProxyPassword: string read FWriteProxyPassword write FWriteProxyPassword;
378 property CabinetFontName: string read FCabinetFontName write FCabinetFontName;
379 property CabinetFontSize: Integer read FCabinetFontSize write FCabinetFontSize;
380 property CabinetFontBold: Boolean read FCabinetFontBold write FCabinetFontBold;
381 property CabinetFontItalic: Boolean read FCabinetFontItalic write FCabinetFontItalic;
382 property CabinetFontColor: TColor read FCabinetFontColor write FCabinetFontColor;
383 property CabinetBackColor: TColor read FCabinetBackColor write FCabinetBackColor;
385 property ListFontName: string read FListFontName write FListFontName;
386 property ListFontSize: Integer read FListFontSize write FListFontSize;
387 property ListFontBold: Boolean read FListFontBold write FListFontBold;
388 property ListFontItalic: Boolean read FListFontItalic write FListFontItalic;
389 property ListFontColor: TColor read FListFontColor write FListFontColor;
390 property ListBackColor: TColor read FListBackColor write FListBackColor;
392 property BrowserFontName: string read FBrowserFontName write FBrowserFontName;
393 property BrowserFontSize: Integer read FBrowserFontSize write FBrowserFontSize;
394 property BrowserFontBold: Integer read FBrowserFontBold write FBrowserFontBold;
395 property BrowserFontItalic: Integer read FBrowserFontItalic write FBrowserFontItalic;
396 property BrowserFontColor: Integer read FBrowserFontColor write FBrowserFontColor;
397 property BrowserBackColor: Integer read FBrowserBackColor write FBrowserBackColor;
399 property EditorFontName: string read FEditorFontName write FEditorFontName;
400 property EditorFontSize: Integer read FEditorFontSize write FEditorFontSize;
401 property EditorFontBold: Boolean read FEditorFontBold write FEditorFontBold;
402 property EditorFontItalic: Boolean read FEditorFontItalic write FEditorFontItalic;
403 property EditorFontColor: TColor read FEditorFontColor write FEditorFontColor;
404 property EditorBackColor: TColor read FEditorBackColor write FEditorBackColor;
406 property BrowserTabFontName: string read FBrowserTabFontName write FBrowserTabFontName;
407 property BrowserTabFontSize: Integer read FBrowserTabFontSize write FBrowserTabFontSize;
408 property BrowserTabFontBold: Boolean read FBrowserTabFontBold write FBrowserTabFontBold;
409 property BrowserTabFontItalic: Boolean read FBrowserTabFontItalic write FBrowserTabFontItalic;
411 property HintFontName: string read FHintFontName write FHintFontName;
412 property HintFontSize: Integer read FHintFontSize write FHintFontSize;
413 //property HintFontBold: Boolean read FHintFontBold write FHintFontBold;
414 //property HintFontItalic: Boolean read FHintFontItalic write FHintFontItalic;
415 property HintFontColor: TColor read FHintFontColor write FHintFontColor;
416 property HintBackColor: TColor read FHintBackColor write FHintBackColor;
418 property WindowTop: Integer read FWindowTop write FWindowTop;
419 property WindowLeft: Integer read FWindowLeft write FWindowLeft;
420 property WindowHeight: Integer read FWindowHeight write FWindowHeight;
421 property WindowWidth: Integer read FWindowWidth write FWindowWidth;
422 property WindowMax: Boolean read FWindowMax write FWindowMax;
423 property ListStyle: TViewStyle read FListStyle write FListStyle;
425 property StdToolBarVisible: Boolean read FStdToolBarVisible write FStdToolBarVisible;
426 property AddressBarVisible: Boolean read FAddressBarVisible write FAddressBarVisible;
427 property LinkBarVisible: Boolean read FLinkBarVisible write FLinkBarVisible;
428 property ListToolBarVisible: Boolean read FListToolBarVisible write FListToolBarVisible;
429 property ListNameBarVisible: Boolean read FListNameBarVisible write FListNameBarVisible;
430 property BrowserToolBarVisible: Boolean read FBrowserToolBarVisible write FBrowserToolBarVisible;
431 property BrowserNameBarVisible: Boolean read FBrowserNameBarVisible write FBrowserNameBarVisible;
433 property BrowserTabVisible: Boolean read FBrowserTabVisible write FBrowserTabVisible;
434 property BrowserTabPosition: TGikoTabPosition read FBrowserTabPosition write FBrowserTabPosition;
435 property BrowserTabAppend: TGikoTabAppend read FBrowserTabAppend write FBrowserTabAppend;
436 property BrowserTabStyle: TGikoTabStyle read FBrowserTabStyle write FBrowserTabStyle;
438 property MessageBarVisible: Boolean read FMessageBarVisible write FMessageBarVisible;
439 property MessegeBarHeight: Integer read FMessegeBarHeight write FMessegeBarHeight;
441 property StatusBarVisible: Boolean read FStatusBarVisible write FStatusBarVisible;
443 property CabinetVisible: Boolean read FCabinetVisible write FCabinetVisible;
444 property CabinetWidth: Integer read FCabinetWidth write FCabinetWidth;
446 property ListOrientation: TGikoListOrientation read FListOrientation write FListOrientation;
447 property ListHeight: Integer read FListHeight write FListHeight;
448 property ListHeightState: TGikoListState read FListHeightState write FListHeightState;
449 property ListWidth: Integer read FListWidth write FListWidth;
450 property ListWidthState: TGikoListState read FListWidthState write FListWidthState;
451 // property ListHeightMax: Boolean read FListHeightMax write FListHeightMax;
452 // property ListWidthMax: Boolean read FListWidthMax write FListWidthMax;
454 property NameList: TStringList read FNameList write FNameList;
455 property MailList: TStringList read FMailList write FMailList;
456 property SelectTextList: TStringList read FSelectTextList write FSelectTextList;
458 property EditWindowTop: Integer read FEditWindowTop write FEditWindowTop;
459 property EditWindowLeft: Integer read FEditWindowLeft write FEditWindowLeft;
460 property EditWindowHeight: Integer read FEditWindowHeight write FEditWindowHeight;
461 property EditWindowWidth: Integer read FEditWindowWidth write FEditWindowWidth;
462 property EditWindowMax: Boolean read FEditWindowMax write FEditWindowMax;
463 property EditWindowStay: Boolean read FEditWindowStay write FEditWindowStay;
464 property EditWindowTranslucent: Boolean read FEditWindowTranslucent write FEditWindowTranslucent;
466 property ListViewNo: Boolean read FListViewNo write FListViewNo;
467 property UseCSS: Boolean read FUseCSS write SetUseCSS;
468 property CSSFileName: string read FCSSFileName write SetCSSFileName;
469 property UseSkin: Boolean read FUseSkin;
471 property ShowMail: Boolean read FShowMail write FShowMail;
472 property OnlyAHundredRes : Boolean read FOnlyAHundredRes write FOnlyAHundredRes;
473 property UnActivePopup: Boolean read FUnActivePopup write FUnActivePopup;
474 property ResPopupHeaderBold: Boolean read FResPopupHeaderBold write FResPopupHeaderBold;
476 property LogFolder: string read FLogFolder write FLogFolder;
477 property NewLogFolder: string read FNewLogFolder write FNewLogFolder;
479 property BBSColumnWidth[index: Integer]: Integer read GetBBSColumnWidth write SetBBSColumnWidth;
480 property CategoryColumnWidth[index: Integer]: Integer read GetCategoryColumnWidth write SetCategoryColumnWidth;
481 property BoardColumnWidth[index: Integer]: Integer read GetBoardColumnWidth write SetBoardColumnWidth;
483 property SoundName[index: Integer]: string read GetSoundName;
484 property SoundViewName[index: Integer]: string read GetSoundViewName;
485 property SoundFileName[index: Integer]: string read GetSoundFileName write SetSoundFileName;
487 //property BoardURL2ch: string read FBoardURL2ch write FBoardURL2ch;
488 property BoardURLs: TStringList read FBoardURLs write FBoardURLs;
489 property BoardURLSelected: Integer read FBoardURLSelected write FBoardURLSelected;
490 property UserID: string read FUserID write FUserID;
491 property Password: string read FPassword write FPassword;
492 property AutoLogin: Boolean read FAutoLogin write FAutoLogin;
493 property ForcedLogin: Boolean read FForcedLogin write FForcedLogin;
494 property DolibURL: string read FDolibURL write FDolibURL;
496 property URLApp: Boolean read FURLApp write FURLApp;
497 property URLAppFile: string read FURLAppFile write FURLAppFile;
499 property OpenMailer: Boolean read FOpenMailer write FOpenMailer;
501 property DeleteMsg: Boolean read FDeleteMsg write FDeleteMsg;
503 property MainCoolSet[Index: Integer]: TCoolSet read GetMainCoolSet write SetMainCoolSet;
504 property ListCoolSet[Index: Integer]: TCoolSet read GetBoardCoolSet write SetBoardCoolSet;
505 property BrowserCoolSet[Index: Integer]: TCoolSet read GetBrowserCoolSet write SetBrowserCoolSet;
507 property ListToolBarWrapable: Boolean read FListToolBarWrapable write FListToolBarWrapable;
508 property BrowserToolBarWrapable: Boolean read FBrowserToolBarWrapable write FBrowserToolBarWrapable;
510 property PopupPosition: TGikoPopupPosition read FPopupPosition write FPopupPosition;
512 property URLDisplay: Boolean read FURLDisplay write FURLDisplay;
513 property AddressBarTabStop: Boolean read FAddressBarTabStop write FAddressBarTabStop;
514 property LinkAddAddressBar: Boolean read FLinkAddAddressBar write FLinkAddAddressBar;
515 property AddressHistoryCount: Integer read FAddressHistoryCount write FAddressHistoryCount;
517 property PreviewVisible: Boolean read FPreviewVisible write FPreviewVisible;
518 property PreviewSize: TGikoPreviewSize read FPreviewSize write FPreviewSize;
519 property PreviewWait: Integer read FPreviewWait write FPreviewWait;
521 property ListIconVisible: Boolean read FListIconVisible write FListIconVisible;
522 property CreationTimeLogs: Boolean read FCreationTimeLogs write FCreationTimeLogs;
523 property FutureThread: Boolean read FFutureThread write FFutureThread;
525 property UseMachineTime: Boolean read FUseMachineTime write FUseMachineTime;
526 property TimeAdjustSec: Integer read FTimeAdjustSec write FTimeAdjustSec;
527 property TimeAdjust: Boolean read FTimeAdjust write FTimeAdjust;
530 property AbonDeleterlo : Boolean read FAbonDeleterlo write FAbonDeleterlo;
531 property AbonReplaceul : Boolean read FAbonReplaceul write FAbonReplaceul;
532 property PopUpAbon : Boolean read FPopUpAbon write FPopUpAbon;
533 property ShowNGLinesNum : Boolean read FShowNGLinesNum write FShowNGLinesNum;
534 property AddResAnchor : Boolean read FAddResAnchor write FAddResAnchor;
535 property DeleteSyria : Boolean read FDeleteSyria write FDeleteSyria;
536 //
\83X
\83\8c\83b
\83h
\8di
\8d\9e\83t
\83B
\81[
\83\8b\83h
\82Ì
\95\9d
537 property SelectComboBoxWidth : Integer read FSelectComboBoxWidth write FSelectComboBoxWidth;
539 //
\8dÅ
\8cã
\82É
\91I
\91ð
\82³
\82ê
\82½
\83I
\83v
\83V
\83\87\83\93\83_
\83C
\83A
\83\8d\83O
\82Ì
\83^
\83u
540 property OptionDialogTabIndex : Integer read FOptionDialogTabIndex write FOptionDialogTabIndex;
542 //
\8dÅ
\8cã
\82É
\91I
\91ð
\82³
\82ê
\82½
\83L
\83\83\83r
\83l
\83b
\83g
543 property CabinetIndex : Integer read FCabinetIndex write FCabinetIndex;
545 //
\8fI
\97¹
\8e\9e\82É
\8am
\94F
\83_
\83C
\83A
\83\8d\83O
\82ð
\95\
\8e¦
\82·
\82é
\82©
546 property ShowDialogForEnd : Boolean read FShowDialogForEnd write FShowDialogForEnd;
547 //
\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©
548 property UseOddColorOddResNum: Boolean read FUseOddColorOddResNum write FUseOddColorOddResNum;
549 property OddColor: TColor read FOddColor write FOddColor;
550 property UseSamba: Boolean read FUseSamba write FUseSamba;
566 INI_FILE_NAME: string = 'gikoNavi.ini';
567 BOARD_URL_INI_FILE_NAME: string = 'url.ini';
568 DEFAULT_FONT_NAME: string = '
\82l
\82r
\82o
\83S
\83V
\83b
\83N';
569 DEFAULT_FONT_SIZE: Integer = 9;
570 DEFAULT_FONT_COLOR: string = 'clWindowText';
571 DEFAULT_WINDOW_COLOR: string = 'clWindow';
572 DEFAULT_TAB_FONT_NAME: string = '
\82l
\82r
\82o
\83S
\83V
\83b
\83N';
573 DEFAULT_TAB_FONT_SIZE: Integer = 9;
574 DEFAULT_2CH_BOARD_URL1: string = 'http://www6.ocn.ne.jp/~mirv/2chmenu.html';
575 DEFAULT_2CH_BOARD_URL2: string = 'http://www.ff.iij4u.or.jp/~ch2/bbsmenu.html';
576 //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¤
577 //'http://www.2ch.net/newbbsmenu.html';
578 GIKO_ENCRYPT_TEXT: string = 'gikoNaviEncryptText';
581 SOUND_NAME: array[0..4] of TSoundName = (
582 (Name: 'New'; ViewName: '
\8eæ
\93¾
\90¬
\8c÷'; FileName: ''),
583 (Name: 'NewDiff'; ViewName: '
\8eæ
\93¾
\90¬
\8c÷(
\8d·
\95ª)'; FileName: ''),
584 (Name: 'NoChange'; ViewName: '
\96¢
\8dX
\90V'; FileName: ''),
585 // (Name: 'RoundEnd'; ViewName: '
\8f\84\89ñ
\8fI
\97¹(
\8eæ
\93¾
\82 \82è)'; FileName: ''),
586 // (Name: 'RoundNone'; ViewName: '
\8f\84\89ñ
\8fI
\97¹(
\8eæ
\93¾
\82È
\82µ)'; FileName: ''),
587 (Name: 'ResEnd'; ViewName: '
\83\8c\83X
\91\97\90M
\8a®
\97¹'; FileName: ''),
588 (Name: 'Error'; ViewName: '
\83G
\83\89\81['; FileName: ''));
590 //
\83R
\83\93\83X
\83g
\83\89\83N
\83^
591 constructor TSetting.Create();
593 FNameList := TStringList.Create;
594 FMailList := TStringList.Create;
595 FSelectTextList := TStringList.Create;
596 FBoardURLs := TStringList.Create;
597 FNameList.Duplicates := dupIgnore;
598 FMailList.Duplicates := dupIgnore;
599 FBoardURLs.Duplicates := dupIgnore;
600 FSelectTextList.Duplicates := dupIgnore;
605 //
\83f
\83X
\83g
\83\89\83N
\83^
606 destructor TSetting.Destroy();
609 FSelectTextList.Free;
615 //
\8f\89\8aú
\89»
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
616 function TSetting.GetFileName(): string;
618 Result := ExtractFilePath(Application.ExeName) + INI_FILE_NAME;
621 //
\94Â
\8dX
\90V
\97pURL
\90Ý
\92è
\83t
\83@
\83C
\83\8b\96¼
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
622 function TSetting.GetBoardURLFileName(): string;
624 Result := ExtractFilePath(Application.ExeName) + BOARD_URL_INI_FILE_NAME;
627 //
\90Ý
\92è
\83t
\83@
\83C
\83\8b\93Ç
\8d\9e
628 procedure TSetting.ReadSettingFile();
630 DEFAULT_BBS_WIDTH: array[0..0] of Integer = (140);
631 DEFAULT_CATEGORY_WIDTH: array[0..3] of Integer = (150, 80, 130, 130);
632 DEFAULT_BOARD_WIDTH: array[0..7] of Integer = (350, 60, 60, 60, 60, 80, 130, 130);
633 MAX_WIDTH: Integer = 2000;
644 Exists := FileExists(GetFileName);
645 ini := TMemIniFile.Create(GetFileName);
647 //
\8eó
\90M
\83o
\83b
\83t
\83@
\83T
\83C
\83Y
648 FRecvBufferSize := ini.ReadInteger('HTTP', 'RecvBufferSize', 4096);
650 FProtocol := ini.ReadBool('HTTP', 'Protocol', True);
651 //
\83v
\83\8d\83L
\83V
\90Ú
\91±HTTP1.1
\8eg
\97p
652 FProxyProtocol := ini.ReadBool('HTTP', 'ProxyProtocol', False);
654 FReadProxy := ini.ReadBool('ReadProxy', 'Proxy', false);
655 FReadProxyAddress := ini.ReadString('ReadProxy', 'Address', '');
656 FReadProxyPort := ini.ReadInteger('ReadProxy', 'Port', 0);
657 FReadProxyUserID := ini.ReadString('ReadProxy', 'UserID', '');
658 FReadProxyPassword := ini.ReadString('ReadProxy', 'Password', '');
660 FWriteProxy := ini.ReadBool('WriteProxy', 'Proxy', false);
661 FWriteProxyAddress := ini.ReadString('WriteProxy', 'Address', '');
662 FWriteProxyPort := ini.ReadInteger('WriteProxy', 'Port', 0);
663 FWriteProxyUserID := ini.ReadString('WriteProxy', 'UserID', '');
664 FWriteProxyPassword := ini.ReadString('WriteProxy', 'Password', '');
666 FBrowserFontName := ini.ReadString('Window', 'BrowserFontName', '');
667 FBrowserFontSize := ini.ReadInteger('Window', 'BrowserFontSize', 0);
668 FBrowserFontBold := ini.ReadInteger('Window', 'BrowserFontBold', 0);
669 FBrowserFontItalic := ini.ReadInteger('Window', 'BrowserFontItalic', 0);
670 FBrowserFontColor := ini.ReadInteger('Window', 'BrowserFontColor', -1);
671 FBrowserBackColor := ini.ReadInteger('Window', 'BrowserBackColor', -1);
673 FCabinetFontName := ini.ReadString('Window', 'CabinetFontName', DEFAULT_FONT_NAME);
674 FCabinetFontSize := ini.ReadInteger('Window', 'CabinetFontSize', DEFAULT_FONT_SIZE);
675 FCabinetFontBold := ini.ReadBool('Window', 'CabinetFontBold', False);
676 FCabinetFontItalic := ini.ReadBool('Window', 'CabinetFontItalic', False);
677 FCabinetFontColor := StringToColor(ini.ReadString('Window', 'CabinetFontColor', DEFAULT_FONT_COLOR));
678 FCabinetBackColor := StringToColor(ini.ReadString('Window', 'CabinetBackColor', DEFAULT_WINDOW_COLOR));
680 FListFontName := ini.ReadString('Window', 'ListFontName', DEFAULT_FONT_NAME);
681 FListFontSize := ini.ReadInteger('Window', 'ListFontSize', DEFAULT_FONT_SIZE);
682 FListFontBold := ini.ReadBool('Window', 'ListFontBold', False);
683 FListFontItalic := ini.ReadBool('Window', 'ListFontItalic', False);
684 FListFontColor := StringToColor(ini.ReadString('Window', 'ListFontColor', DEFAULT_FONT_COLOR));
685 FListBackColor := StringToColor(ini.ReadString('Window', 'ListBackColor', DEFAULT_WINDOW_COLOR));
686 FUseOddColorOddResNum := ini.ReadBool('Window','UseOddColor', False);
687 FOddColor := StringToColor(ini.ReadString('Window', 'OddColor', DEFAULT_WINDOW_COLOR));
689 FEditorFontName := ini.ReadString('Window', 'EditorFontName', DEFAULT_FONT_NAME);
690 FEditorFontSize := ini.ReadInteger('Window', 'EditorFontSize', DEFAULT_FONT_SIZE);
691 FEditorFontBold := ini.ReadBool('Window', 'EditorFontBold', False);
692 FEditorFontItalic := ini.ReadBool('Window', 'EditorFontItalic', False);
693 FEditorFontColor := StringToColor(ini.ReadString('Window', 'EditorFontColor', DEFAULT_FONT_COLOR));
694 FEditorBackColor := StringToColor(ini.ReadString('Window', 'EditorBackColor', DEFAULT_WINDOW_COLOR));
696 FBrowserTabFontName := ini.ReadString('Window', 'BrowserTabFontName', DEFAULT_TAB_FONT_NAME);
697 FBrowserTabFontSize := ini.ReadInteger('Window', 'BrowserTabFontSize', DEFAULT_TAB_FONT_SIZE);
698 FBrowserTabFontBold := ini.ReadBool('Window', 'BrowserTabFontBold', False);
699 FBrowserTabFontItalic := ini.ReadBool('Window', 'BrowserTabFontItalic', False);
701 FHintFontName := ini.ReadString('Window', 'HintFontName', Screen.HintFont.Name);
702 FHintFontSize := ini.ReadInteger('Window', 'HintFontSize', Screen.HintFont.Size);
703 //FHintFontBold := ini.ReadBool('Window', 'HintFontBold', False);
704 //FHintFontItalic := ini.ReadBool('Window', 'HintFontItalic', False);
705 FHintFontColor := StringToColor(ini.ReadString('Window', 'HintFontColor', DEFAULT_FONT_COLOR));
706 FHintBackColor := StringToColor(ini.ReadString('Window', 'HintBackColor', 'clInfoBk'));
708 FWindowTop := ini.ReadInteger('WindowSize', 'Top', -1);
709 FWindowLeft := ini.ReadInteger('WindowSize', 'Left', -1);
710 FWindowHeight := ini.ReadInteger('WindowSize', 'Height', -1);
711 FWindowWidth := ini.ReadInteger('WindowSize', 'Width', -1);
712 FWindowMax := ini.ReadBool('WindowSize', 'Max', false);
714 if FWindowHeight <= 0 then FWindowHeight := 400;
715 if FWindowWidth <= 0 then FWindowWidth := 600;
717 FListStyle := TViewStyle(ini.ReadInteger('ViewStyle', 'ListView', Ord(vsReport)));
719 FEditWindowTop := ini.ReadInteger('EditorWindowSize', 'Top', -1);
720 FEditWindowLeft := ini.ReadInteger('EditorWindowSize', 'Left', -1);
721 FEditWindowHeight := ini.ReadInteger('EditorWindowSize', 'Height', -1);
722 FEditWindowWidth := ini.ReadInteger('EditorWindowSize', 'Width', -1);
723 FEditWindowMax := ini.ReadBool('EditorWindowSize', 'Max', False);
724 FEditWindowStay := ini.ReadBool('EditorWindowSize', 'Stay', False);
725 FEditWindowTranslucent := ini.ReadBool('EditorWindowSize', 'Translucent', False);
727 FOptionDialogTabIndex := ini.ReadInteger('OptionDialog', 'TabIndex', 0);
729 //
\83c
\81[
\83\8b\83o
\81[
730 FStdToolBarVisible := ini.ReadBool('ToolBar', 'StdVisible', True);
731 FAddressBarVisible := ini.ReadBool('ToolBar', 'AddressVisible', True);
732 FLinkBarVisible := ini.ReadBool('ToolBar', 'LinkVisible', True);
733 FListToolBarVisible := ini.ReadBool('ToolBar', 'ListVisible', True);
734 FListNameBarVisible := ini.ReadBool('ToolBar', 'ListNameVisible', True);
735 FBrowserToolBarVisible := ini.ReadBool('ToolBar', 'BrowserVisible', True);
736 FBrowserNameBarVisible := ini.ReadBool('ToolBar', 'BrowserNameVisible', True);
737 //
\83c
\81[
\83\8b\83o
\81[Wrapable
738 FListToolBarWrapable := ini.ReadBool('ToolBar', 'ListWrapable', False);
739 FBrowserToolBarWrapable := ini.ReadBool('ToolBar', 'BrowserWrapable', False);
741 FBrowserTabVisible := ini.ReadBool('Tab', 'BrowserTabVisible', True);
742 FBrowserTabPosition := TGikoTabPosition(ini.ReadInteger('Tab', 'BrowserTabPosition', Ord(gtpTop)));
743 FBrowserTabAppend := TGikoTabAppend(ini.ReadInteger('Tab', 'BrowserTabAppend', Ord(gtaFirst)));
744 FBrowserTabStyle := TGikoTabStyle(ini.ReadInteger('Tab', 'BrowserTabStyle', Ord(gtsFlat)));
746 FMessageBarVisible := ini.ReadBool('MessageBar', 'Visible', True);
747 FMessegeBarHeight := ini.ReadInteger('MessageBar', 'Height', 30);
749 FStatusBarVisible := ini.ReadBool('StatusBar', 'Visible', True);
751 FCabinetVisible := ini.ReadBool('Cabinet', 'Visible', True);
752 FCabinetWidth := ini.ReadInteger('Cabinet', 'Width', 200);
753 FCabinetIndex := ini.ReadInteger('Cabinet', 'Index', 0);
755 FListOrientation := TGikoListOrientation(ini.ReadInteger('List', 'Orientation', Ord(gloHorizontal)));
756 FListHeight := ini.ReadInteger('List', 'Height', 180);
757 FListHeightState := TGikoListState(ini.ReadInteger('List', 'HeightState', Ord(glsNormal)));
758 FListWidth := ini.ReadInteger('List', 'Width', 180);
759 FListWidthState := TGikoListState(ini.ReadInteger('List', 'WidthState', Ord(glsNormal)));
760 // FListHeightMax := ini.ReadBool('List', 'HeightMax', False);
761 // FListWidthMax := ini.ReadBool('List', 'WidthMax', False);
763 wkList := TStringList.Create;
765 ini.ReadSection('Name', wkList);
766 for i := 0 to wkList.Count - 1 do begin
767 wkStr := ini.ReadString('Name', wkList[i], '');
768 if (wkStr <> '') and (FNameList.IndexOf(wkStr) = -1) then
769 FNameList.Add(wkStr);
771 ini.ReadSection('Mail', wkList);
772 for i := 0 to wkList.Count - 1 do begin
773 wkStr := ini.ReadString('Mail', wkList[i], '');
774 if (wkStr <> '') and (FMailList.IndexOf(wkStr) = -1) then
775 FMailList.Add(wkStr);
777 ini.ReadSection('SelectText', wkList);
778 for i := 0 to wkList.Count - 1 do begin
779 wkStr := ini.ReadString('SelectText', wkList[i], '');
780 if (wkStr <> '') and (FSelectTextList.IndexOf(wkStr) = -1) then
781 FSelectTextList.Add(wkStr);
787 //
\83\8a\83X
\83g
\83J
\83\89\83\80
788 wkList := TStringList.Create;
790 ini.ReadSection('BBSColumnWidth', wkList);
791 if Length(FBBSColumnWidth) <> wkList.Count then begin
792 ini.EraseSection('BBSColumnWidth');
794 for i := 0 to Length(FBBSColumnWidth) - 1 do begin
795 BBSColumnWidth[i] := ini.ReadInteger('BBSColumnWidth', 'ID' + IntToStr(i), DEFAULT_BBS_WIDTH[i]);
796 if BBSColumnWidth[i] > MAX_WIDTH then
797 BBSColumnWidth[i] := DEFAULT_BBS_WIDTH[i];
799 ini.ReadSection('CategoryColumnWidth', wkList);
800 if Length(FCategoryColumnWidth) <> wkList.Count then begin
801 ini.EraseSection('CategoryColumnWidth');
803 for i := 0 to Length(FCategoryColumnWidth) - 1 do begin
804 CategoryColumnWidth[i] := ini.ReadInteger('CategoryColumnWidth', 'ID' + IntToStr(i), DEFAULT_CATEGORY_WIDTH[i]);
805 if CategoryColumnWidth[i] > MAX_WIDTH then
806 CategoryColumnWidth[i] := DEFAULT_CATEGORY_WIDTH[i];
808 ini.ReadSection('BoardColumnWidth', wkList);
809 if Length(FBoardColumnWidth) <> wkList.Count then begin
810 ini.EraseSection('BoardColumnWidth');
812 for i := 0 to Length(FBoardColumnWidth) - 1 do begin
813 BoardColumnWidth[i] := ini.ReadInteger('BoardColumnWidth', 'ID' + IntToStr(i), DEFAULT_BOARD_WIDTH[i]);
814 if BoardColumnWidth[i] > MAX_WIDTH then
815 BoardColumnWidth[i] := DEFAULT_BOARD_WIDTH[i];
822 //
\83\8a\83X
\83g
\94Ô
\8d\86
823 FListViewNo := ini.ReadBool('Function', 'ListViewNo', True);
825 UseCSS := ini.ReadBool('CSS', 'UseCSS', True);
826 //CSS
\83t
\83@
\83C
\83\8b\96¼
827 CSSFileName := ini.ReadString('CSS', 'FileName', 'default.css');
830 FShowMail := ini.ReadBool('Thread', 'ShowMail', True);
831 //
\8dÅ
\90V100
\83\8c\83X
\95\
\8e¦
832 FOnlyAHundredRes := ini.ReadBool('Thread', 'OnlyAHundredRes',false);
833 //
\94ñ
\83A
\83N
\83e
\83B
\83u
\8e\9e\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\95\
\8e¦
834 FUnActivePopup := ini.ReadBool('Thread', 'UnActivePopup', False);
835 //
\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\83w
\83b
\83_
\81[
\83{
\81[
\83\8b\83h
836 FResPopupHeaderBold := ini.ReadBool('Thread', 'ResPopupHeaderBold', True);
838 FDeleteMsg := ini.ReadBool('Function', 'LogDeleteMessage', True);
840 FShowDialogForEnd := ini.ReadBool('Function','ShowDialogForEnd',false);
842 FUseSamba := ini.ReadBool('Function','UseSamba', True);
843 //
\83\8d\83O
\83t
\83H
\83\8b\83_
844 FLogFolder := ini.ReadString('Folder', 'LogFolder', ExtractFilePath(Application.ExeName) + 'Log');
848 //
\95¡
\90\94\93o
\98^
\82Å
\82«
\82é
\82æ
\82¤
\82É
\82µ
\82ÄFBoardURLs
\82É
\82µ
\82½
\81@2003/10/05
849 //FBoardURL2ch := ini.ReadString('BoardURL', '2ch', DEFAULT_2CH_BOARD_URL);
851 //
\94F
\8fØ
\97p
\83\86\81[
\83UID
\81E
\83p
\83X
\83\8f\81[
\83h
852 FUserID := ini.ReadString('Attestation', 'UserID', '');
853 FPassword := Decrypt(ini.ReadString('Attestation', 'Password', ''));
854 FAutoLogin := ini.ReadBool('Attestation', 'AutoLogin', False);
855 FForcedLogin := ini.ReadBool('Attestation', 'FForcedLogin', False);
856 // FDolibURL := ini.ReadString('Attestation', 'FDolibURL', DOLIB_LOGIN_URL);
858 //URL
\83N
\83\8a\83b
\83N
\8e\9e\8bN
\93®
\83A
\83v
\83\8a
859 FURLApp := ini.ReadBool('URLApp', 'Select', False);
860 FURLAppFile := ini.ReadString('URLApp', 'File', '');
862 //mailto
\83N
\83\8a\83b
\83N
\8e\9e\93®
\8dì
863 FOpenMailer := ini.ReadBool('Mailto', 'Open', True);
865 //
\83|
\83b
\83v
\83A
\83b
\83v
\88Ê
\92u
866 FPopupPosition := TGikoPopupPosition(ini.ReadInteger('Browser', 'PopupPosition', Ord(gppLeftBottom)));
868 //
\83A
\83h
\83\8c\83X
\83o
\81[
869 FURLDisplay := ini.ReadBool('AddressBar', 'URLDisplay', False);
870 FAddressBarTabStop := ini.ReadBool('AddressBar', 'TabStop', True);
871 FLinkAddAddressBar := ini.ReadBool('AddressBar', 'LinkAdd', False);
872 FAddressHistoryCount := ini.ReadInteger('AddressBar', 'HistoryCount', 100);
874 //
\89æ
\91\9c\83v
\83\8c\83r
\83\85\81[
875 FPreviewVisible := ini.ReadBool('Browser', 'PreviewVisible', True);
876 FPreviewSize := TGikoPreviewSize(ini.ReadInteger('Browser', 'PreviewSize', Ord(gpsMedium)));
877 FPreviewWait := ini.ReadInteger('Browser', 'PreviewWait', 500);
879 //
\83X
\83\8c\83b
\83h
\88ê
\97\97\8dX
\90V
\83A
\83C
\83R
\83\93
880 FListIconVisible := ini.ReadBool('ThreadList', 'StateIconVisible', True);
881 FCreationTimeLogs := ini.ReadBool('ThreadList', 'CreationTimeLogs', True);
882 FFutureThread := ini.ReadBool('ThreadList', 'FutureThread', True);
884 //
\8f\91\82«
\8d\9e\82Ý
\8e\9e\83}
\83V
\83\93\8e\9e\8d\8f\8eg
\97p
\90Ý
\92è
885 FUseMachineTime := ini.ReadBool('PostTime', 'UseMachineTime', False);
886 FTimeAdjustSec := ini.ReadInteger('PostTime', 'TimeAdjustSec', 0);
887 FTimeAdjust := ini.ReadBool('PostTime', 'TimeAdjust', True);
891 for i := 0 to GetSoundCount - 1 do begin
892 SoundFileName[i] := ini.ReadString('Sound', SoundName[i], '');
893 if not FileExists(SoundFileName[i]) then
894 SoundFileName[i] := '';
897 s := ExtractFileDir(Application.ExeName) + '\sound\';
898 SoundFileName[0] := s + '
\8eæ
\93¾
\90¬
\8c÷.wav';
899 SoundFileName[1] := s + '
\8eæ
\93¾
\90¬
\8c÷(
\8d·
\95ª).wav';
900 SoundFileName[2] := s + '
\96¢
\8dX
\90V.wav';
901 SoundFileName[3] := '';
902 SoundFileName[4] := s + '
\83G
\83\89\81[.wav';
905 //
\83N
\81[
\83\8b\83o
\81[
906 for i := 0 to MAIN_COOLBAND_COUNT - 1 do begin
907 CoolSet.FCoolID := ini.ReadInteger('MainCoolBar', 'ID' + IntToStr(i), -1);
908 CoolSet.FCoolWidth := ini.ReadInteger('MainCoolBar', 'Width' + IntToStr(i), -1);
909 CoolSet.FCoolBreak := ini.ReadBool('MainCoolBar', 'Break' + IntToStr(i), False);
910 MainCoolSet[i] := CoolSet;
912 FSelectComboBoxWidth := ini.ReadInteger( 'ListCoolBar', 'SelectWidth', 127 );
913 for i := 0 to LIST_COOLBAND_COUNT - 1 do begin
914 CoolSet.FCoolID := ini.ReadInteger('ListCoolBar', 'ID' + IntToStr(i), -1);
915 CoolSet.FCoolWidth := ini.ReadInteger('ListCoolBar', 'Width' + IntToStr(i), -1);
916 CoolSet.FCoolBreak := ini.ReadBool('ListCoolBar', 'Break' + IntToStr(i), False);
917 ListCoolSet[i] := CoolSet;
919 for i := 0 to BROWSER_COOLBAND_COUNT - 1 do begin
920 CoolSet.FCoolID := ini.ReadInteger('BrowserCoolBar', 'ID' + IntToStr(i), -1);
921 CoolSet.FCoolWidth := ini.ReadInteger('BrowserCoolBar', 'Width' + IntToStr(i), -1);
922 CoolSet.FCoolBreak := ini.ReadBool('BrowserCoolBar', 'Break' + IntToStr(i), False);
923 BrowserCoolSet[i] := CoolSet;
927 FAbonDeleterlo := ini.ReadBool('Abon','Deleterlo',false);
928 FAbonReplaceul := ini.ReadBool('Abon','Replaceul',false);
929 FPopUpAbon := ini.ReadBool('Abon','Popup',false);
930 FShowNGLinesNum := ini.ReadBool('Abon','ShowNGLines',false);
931 FAddResAnchor := ini.ReadBool('Abon','AddResAnchor',false);
932 FDeleteSyria := ini.ReadBool('Abon','DeleteSyria',false);
937 //
\94Â
\8dX
\90V
\97pURL
\93Ç
\82Ý
\8d\9e\82Ý
938 procedure TSetting.ReadBoardURLsFile();
944 if not FileExists(GetBoardURLFileName()) then
946 ini := TMemIniFile.Create(GetBoardURLFileName());
948 urlNum := ini.ReadInteger('URL','count',0);
949 BoardURLSelected := ini.ReadInteger('URL','selected',0);
950 for i := 0 to urlNum - 1 do begin
951 FBoardURLs.Append(ini.ReadString('URL',IntToStr(i+1),''));
958 //
\90Ý
\92è
\83t
\83@
\83C
\83\8b\95Û
\91¶(system)
959 procedure TSetting.WriteSystemSettingFile();
963 ini := TMemIniFile.Create(GetFileName());
965 //
\8eó
\90M
\83o
\83b
\83t
\83@
\83T
\83C
\83Y
966 ini.WriteInteger('HTTP', 'RecvBufferSize', FRecvBufferSize);
968 ini.WriteBool('HTTP', 'Protocol', FProtocol);
969 //
\83v
\83\8d\83L
\83V
\90Ú
\91±HTTP1.1
\8eg
\97p
970 ini.WriteBool('HTTP', 'ProxyProtocol', FProxyProtocol);
972 ini.WriteBool('ReadProxy', 'Proxy', FReadProxy);
973 ini.WriteString('ReadProxy', 'Address', FReadProxyAddress);
974 ini.WriteInteger('ReadProxy', 'Port', FReadProxyPort);
975 ini.WriteString('ReadProxy', 'UserID', FReadProxyUserID);
976 ini.WriteString('ReadProxy', 'Password', FReadProxyPassword);
978 ini.WriteBool('WriteProxy', 'Proxy', FWriteProxy);
979 ini.WriteString('WriteProxy', 'Address', FWriteProxyAddress);
980 ini.WriteInteger('WriteProxy', 'Port', FWriteProxyPort);
981 ini.WriteString('WriteProxy', 'UserID', FWriteProxyUserID);
982 ini.WriteString('WriteProxy', 'Password', FWriteProxyPassword);
984 ini.WriteString('Window', 'BrowserFontName', FBrowserFontName);
985 ini.WriteInteger('Window', 'BrowserFontSize', FBrowserFontSize);
986 ini.WriteInteger('Window', 'BrowserFontSize', FBrowserFontSize);
987 ini.WriteInteger('Window', 'BrowserFontBold', FBrowserFontBold);
988 ini.WriteInteger('Window', 'BrowserFontItalic', FBrowserFontItalic);
989 ini.WriteInteger('Window', 'BrowserFontColor', FBrowserFontColor);
990 ini.WriteInteger('Window', 'BrowserBackColor', FBrowserBackColor);
992 ini.WriteString('Window', 'CabinetFontName', FCabinetFontName);
993 ini.WriteInteger('Window', 'CabinetFontSize', FCabinetFontSize);
994 ini.WriteString('Window', 'CabinetFontColor', ColorToString(FCabinetFontColor));
995 ini.WriteString('Window', 'CabinetBackColor', ColorToString(FCabinetBackColor));
997 ini.WriteString('Window', 'ListFontName', FListFontName);
998 ini.WriteInteger('Window', 'ListFontSize', FListFontSize);
999 ini.WriteString('Window', 'ListFontColor', ColorToString(FListFontColor));
1000 ini.WriteString('Window', 'ListBackColor', ColorToString(FListBackColor));
1001 ini.WriteBool('Window','UseOddColor',FUseOddColorOddResNum);
1002 ini.WriteString('Window', 'OddColor',ColorToString(FOddColor));
1004 ini.WriteString('Window', 'EditorFontName', FEditorFontName);
1005 ini.WriteInteger('Window', 'EditorFontSize', FEditorFontSize);
1006 ini.WriteString('Window', 'EditorFontColor', ColorToString(FEditorFontColor));
1007 ini.WriteString('Window', 'EditorBackColor', ColorToString(FEditorBackColor));
1009 ini.WriteString('Window', 'BrowserTabFontName', FBrowserTabFontName);
1010 ini.WriteInteger('Window', 'BrowserTabFontSize', FBrowserTabFontSize);
1011 ini.WriteBool('Window', 'BrowserTabFontBold', FBrowserTabFontBold);
1012 ini.WriteBool('Window', 'BrowserTabFontItalic', FBrowserTabFontItalic);
1014 ini.WriteString('Window', 'HintFontName', FHintFontName);
1015 ini.WriteInteger('Window', 'HintFontSize', FHintFontSize);
1016 ini.WriteString('Window', 'HintFontColor', ColorToString(FHintFontColor));
1017 ini.WriteString('Window', 'HintBackColor', ColorToString(FHintBackColor));
1025 //
\90Ý
\92è
\83t
\83@
\83C
\83\8b\95Û
\91¶(window)
1026 procedure TSetting.WriteWindowSettingFile();
1032 ini := TMemIniFile.Create(GetFileName());
1034 ini.WriteInteger('WindowSize', 'Top', WindowTop);
1035 ini.WriteInteger('WindowSize', 'Left', WindowLeft);
1036 ini.WriteInteger('WindowSize', 'Height', WindowHeight);
1037 ini.WriteInteger('WindowSize', 'Width', WindowWidth);
1038 ini.WriteBool('WindowSize', 'Max', WindowMax);
1040 ini.WriteInteger('ViewStyle', 'ListView', Ord(ListStyle));
1042 ini.WriteInteger('EditorWindowSize', 'Top', EditWindowTop);
1043 ini.WriteInteger('EditorWindowSize', 'Left', EditWindowLeft);
1044 ini.WriteInteger('EditorWindowSize', 'Height', EditWindowHeight);
1045 ini.WriteInteger('EditorWindowSize', 'Width', EditWindowWidth);
1046 ini.WriteBool('EditorWindowSize', 'Max', EditWindowMax);
1047 ini.WriteBool('EditorWindowSize', 'Stay', EditWindowStay);
1048 ini.WriteBool('EditorWindowSize', 'Translucent', EditWindowTranslucent);
1050 ini.WriteInteger('OptionDialog', 'TabIndex', FOptionDialogTabIndex);
1052 //
\83c
\81[
\83\8b\83o
\81[
1053 ini.WriteBool('ToolBar', 'StdVisible', FStdToolBarVisible);
1054 ini.WriteBool('ToolBar', 'AddressVisible', FAddressBarVisible);
1055 ini.WriteBool('ToolBar', 'LinkVisible', FLinkBarVisible);
1056 ini.WriteBool('ToolBar', 'ListVisible', FListToolBarVisible);
1057 ini.WriteBool('ToolBar', 'ListNameVisible', FListNameBarVisible);
1058 ini.WriteBool('ToolBar', 'BrowserVisible', FBrowserToolBarVisible);
1059 ini.WriteBool('ToolBar', 'BrowserNameVisible', FBrowserNameBarVisible);
1060 //
\83c
\81[
\83\8b\83o
\81[Wrapable
1061 ini.WriteBool('ToolBar', 'ListWrapable', FListToolBarWrapable);
1062 ini.WriteBool('ToolBar', 'BrowserWrapable', FBrowserToolBarWrapable);
1065 ini.WriteBool('Tab', 'BrowserTabVisible', FBrowserTabVisible);
1066 ini.WriteInteger('Tab', 'BrowserTabPosition', Ord(FBrowserTabPosition));
1067 ini.WriteInteger('Tab', 'BrowserTabAppend', Ord(FBrowserTabAppend));
1068 ini.WriteInteger('Tab', 'BrowserTabStyle', Ord(FBrowserTabStyle));
1070 //
\83\81\83b
\83Z
\81[
\83W
\83o
\81[
1071 ini.WriteBool('MessageBar', 'Visible', FMessageBarVisible);
1072 ini.WriteInteger('MessageBar', 'Height', FMessegeBarHeight);
1074 //
\83X
\83e
\81[
\83^
\83X
\83o
\81[
1075 ini.WriteBool('StatusBar', 'Visible', FStatusBarVisible);
1077 //
\83L
\83\83\83r
\83l
\83b
\83g
1078 ini.WriteBool('Cabinet', 'Visible', FCabinetVisible);
1079 ini.WriteInteger('Cabinet', 'Width', FCabinetWidth);
1080 ini.WriteInteger('Cabinet', 'Index', FCabinetIndex);
1082 //
\83\8a\83X
\83g
\82Ì
\83T
\83C
\83Y
\82Æ
\90\82\92¼
\90\85\95½
1083 ini.WriteInteger('List', 'Orientation', Ord(FListOrientation));
1084 ini.WriteInteger('List', 'Height', FListHeight);
1085 ini.WriteInteger('List', 'HeightState', Ord(FListHeightState));
1086 ini.WriteInteger('List', 'Width', FListWidth);
1087 ini.WriteInteger('List', 'WidthState', Ord(FListWidthState));
1088 // ini.WriteBool('List', 'HeightMax', FListHeightMax);
1089 // ini.WriteBool('List', 'WidthMax', FListWidthMax);
1092 // ini.WriteInteger('Window', 'BrowserFontSize', BrowserFontSize);
1094 //
\83\8a\83X
\83g
\94Ô
\8d\86\95\
\8e¦
1095 ini.WriteBool('Function', 'ListViewNo', FListViewNo);
1097 ini.WriteBool('CSS', 'UseCSS', FUseCSS);
1098 //CSS
\83t
\83@
\83C
\83\8b\96¼
1099 ini.WriteString('CSS', 'FileName', FCSSFileName);
1100 //Mail
\97\93\95\
\8e¦
1101 ini.WriteBool('Thread', 'ShowMail', FShowMail);
1102 //
\8dÅ
\90V100
\83\8c\83X
\95\
\8e¦
1103 ini.WriteBool('Thread', 'OnlyAHundredRes', FOnlyAHundredRes);
1104 //
\83\8d\83O
\8dí
\8f\9c\8am
\94F
1105 ini.WriteBool('Function', 'LogDeleteMessage', FDeleteMsg);
1107 ini.WriteBool('Function','ShowDialogForEnd',FShowDialogForEnd);
1109 ini.WriteBool('Function','UseSamba', FUseSamba);
1111 //
\94ñ
\83A
\83N
\83e
\83B
\83u
\8e\9e\83|
\83b
\83v
\83A
\83b
\83v
\95\
\8e¦
1112 ini.WriteBool('Thread', 'UnActivePopup', FUnActivePopup);
1113 //
\83\8c\83X
\83|
\83b
\83v
\83A
\83b
\83v
\83w
\83b
\83_
\81[
\83{
\81[
\83\8b\83h
1114 ini.WriteBool('Thread', 'ResPopupHeaderBold', FResPopupHeaderBold);
1115 //ini.WriteString('BoardURL', '2ch', FBoardURL2ch);
1117 //
\94F
\8fØ
\97p
\83\86\81[
\83UID
\81E
\83p
\83X
\83\8f\81[
\83h
1118 ini.WriteString('Attestation', 'UserID', FUserID);
1119 ini.WriteString('Attestation', 'Password', Encrypt(FPassword));
1120 ini.WriteBool('Attestation', 'AutoLogin', FAutoLogin);
1121 ini.WriteBool('Attestation', 'FForcedLogin', FForcedLogin);
1122 ini.WriteString('Attestation', 'FDolibURL', FDolibURL);
1124 //URL
\83N
\83\8a\83b
\83N
\8e\9e\8bN
\93®
\83A
\83v
\83\8a
1125 ini.WriteBool('URLApp', 'Select', FURLApp);
1126 ini.WriteString('URLApp', 'File', FURLAppFile);
1128 //mailto
\83N
\83\8a\83b
\83N
\8e\9e\93®
\8dì
1129 ini.WriteBool('Mailto', 'Open', FOpenMailer);
1131 //
\83|
\83b
\83v
\83A
\83b
\83v
\88Ê
\92u
1132 ini.WriteInteger('Browser', 'PopupPosition', Ord(FPopupPosition));
1134 //
\83A
\83h
\83\8c\83X
\83o
\81[
1135 ini.WriteBool('AddressBar', 'URLDisplay', FURLDisplay);
1136 ini.WriteBool('AddressBar', 'TabStop', FAddressBarTabStop);
1137 ini.WriteBool('AddressBar', 'LinkAdd', FLinkAddAddressBar);
1138 ini.WriteInteger('AddressBar', 'HistoryCount', FAddressHistoryCount);
1140 //
\89æ
\91\9c\83v
\83\8c\83r
\83\85\81[
1141 ini.WriteBool('Browser', 'PreviewVisible', FPreviewVisible);
1142 ini.WriteInteger('Browser', 'PreviewSize', Ord(FPreviewSize));
1143 ini.WriteInteger('Browser', 'PreviewWait', FPreviewWait);
1145 //
\83X
\83\8c\83b
\83h
\88ê
\97\97\8dX
\90V
\83A
\83C
\83R
\83\93
1146 ini.WriteBool('ThreadList', 'StateIconVisible', FListIconVisible);
1147 ini.WriteBool('ThreadList', 'CreationTimeLogs',FCreationTimeLogs);
1148 ini.WriteBool('ThreadList', 'FutureThread', FFutureThread);
1150 //
\8f\91\82«
\8d\9e\82Ý
\8e\9e\83}
\83V
\83\93\8e\9e\8d\8f\8eg
\97p
\90Ý
\92è
1151 ini.WriteBool('PostTime', 'UseMachineTime', FUseMachineTime);
1152 ini.WriteInteger('PostTime', 'TimeAdjustSec', FTimeAdjustSec);
1153 ini.WriteBool('PostTime', 'TimeAdjust', FTimeAdjust);
1155 //
\83\8a\83X
\83g
\83J
\83\89\83\80
1156 for i := 0 to Length(FBBSColumnWidth) - 1 do begin
1157 ini.WriteInteger('BBSColumnWidth', 'ID' + IntToStr(i), FBBSColumnWidth[i]);
1159 for i := 0 to Length(FCategoryColumnWidth) - 1 do begin
1160 ini.WriteInteger('CategoryColumnWidth', 'ID' + IntToStr(i), FCategoryColumnWidth[i]);
1162 for i := 0 to Length(FBoardColumnWidth) - 1 do begin
1163 ini.WriteInteger('BoardColumnWidth', 'ID' + IntToStr(i), FBoardColumnWidth[i]);
1166 //
\83T
\83E
\83\93\83h
1167 for i := 0 to GetSoundCount - 1 do begin
1168 if not FileExists(SoundFileName[i]) then
1169 SoundFileName[i] := '';
1170 ini.WriteString('Sound', SoundName[i], SoundFileName[i]);
1174 ini.EraseSection('MainCoolBar');
1175 for i := 0 to MAIN_COOLBAND_COUNT - 1 do begin
1176 CoolSet := MainCoolSet[i];
1177 ini.WriteInteger('MainCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1178 ini.WriteInteger('MainCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1179 ini.WriteBool('MainCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1181 ini.EraseSection('ListCoolBar');
1182 ini.WriteInteger( 'ListCoolBar', 'SelectWidth', FSelectComboBoxWidth );
1183 for i := 0 to LIST_COOLBAND_COUNT - 1 do begin
1184 CoolSet := ListCoolSet[i];
1185 ini.WriteInteger('ListCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1186 ini.WriteInteger('ListCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1187 ini.WriteBool('ListCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1189 ini.EraseSection('BrowserCoolBar');
1190 for i := 0 to BROWSER_COOLBAND_COUNT - 1 do begin
1191 CoolSet := BrowserCoolSet[i];
1192 ini.WriteInteger('BrowserCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1193 ini.WriteInteger('BrowserCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1194 ini.WriteBool('BrowserCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1198 ini.WriteBool('Abon','Deleterlo',FAbonDeleterlo);
1199 ini.WriteBool('Abon','Replaceul',FAbonReplaceul);
1200 ini.WriteBool('Abon','Popup',FPopUpAbon);
1201 ini.WriteBool('Abon','ShowNGLines',FShowNGLinesNum);
1202 ini.WriteBool('Abon','AddResAnchor',FAddResAnchor);
1203 ini.WriteBool('Abon','DeleteSyria',FDeleteSyria);
1211 //
\90Ý
\92è
\83t
\83@
\83C
\83\8b\95Û
\91¶(name & mail)
1212 procedure TSetting.WriteNameMailSettingFile();
1217 ini := TMemIniFile.Create(GetFileName());
1219 ini.EraseSection('Name');
1220 ini.EraseSection('Mail');
1221 ini.EraseSection('SelectText');
1222 for i := 0 to FNameList.Count - 1 do begin
1223 ini.WriteString('Name', Format('%.2d', [i + 1]), FNameList[i]);
1227 for i := 0 to FMailList.Count - 1 do begin
1228 ini.WriteString('Mail', Format('%.2d', [i + 1]), FMailList[i]);
1232 for i := 0 to FSelectTextList.Count - 1 do begin
1233 ini.WriteString('SelectText', Format('%.2d', [i + 1]), FSelectTextList[i]);
1243 procedure TSetting.WriteFolderSettingFile();
1247 ini := TMemIniFile.Create(GetFileName());
1249 if ExtractFilePath(Application.ExeName) + 'Log' = NewLogFolder then
1250 ini.DeleteKey('Folder', 'LogFolder')
1252 ini.WriteString('Folder', 'LogFolder', NewLogFolder);
1258 //
\94Â
\8dX
\90V
\97pBoardURL
\82ð
\95Û
\91¶
1259 procedure TSetting.WriteBoardURLSettingFile();
1265 ini := TMemIniFile.Create(GetBoardURLFileName());
1267 oldcount := ini.ReadInteger('URL','count',FBoardURLs.Count);
1268 ini.WriteInteger('URL','count',FBoardURLs.Count);
1269 ini.WriteInteger('URL','selected',BoardURLSelected);
1270 for i := 0 to FBoardURLs.Count -1 do begin
1271 ini.WriteString('URL',IntToStr(i+1),FBoardURLs.Strings[i]);
1273 if oldcount > FBoardURLs.Count then begin
1274 for i := FBoardURLs.Count to oldcount do begin
1275 ini.DeleteKey('URL',IntToStr(i+1));
1285 //
\83\8a\83X
\83g
\83J
\83\89\83\80\83w
\83b
\83_
\81[
1286 function TSetting.GetBBSColumnWidth(index: Integer): Integer;
1288 Result := IfThen(index in [0..Length(FBBSColumnWidth) - 1], FBBSColumnWidth[index], 0);
1291 function TSetting.GetCategoryColumnWidth(index: Integer): Integer;
1293 Result := IfThen(index in [0..Length(FCategoryColumnWidth) - 1], FCategoryColumnWidth[index], 0);
1296 function TSetting.GetBoardColumnWidth(index: Integer): Integer;
1298 Result := IfThen(index in [0..Length(FBoardColumnWidth) - 1], FBoardColumnWidth[index], 0);
1304 procedure TSetting.SetBBSColumnWidth(index: Integer; value: Integer);
1306 if index in [0..Length(FBBSColumnWidth) - 1] then
1307 FBBSColumnWidth[index] := value;
1310 procedure TSetting.SetCategoryColumnWidth(index: Integer; value: Integer);
1312 if index in [0..Length(FCategoryColumnWidth) - 1] then
1313 FCategoryColumnWidth[index] := value;
1316 procedure TSetting.SetBoardColumnWidth(index: Integer; value: Integer);
1318 if index in [0..Length(FBoardColumnWidth) - 1] then
1319 FBoardColumnWidth[index] := value;
1322 function TSetting.GetSoundCount: Integer;
1324 Result := Length(SOUND_NAME);
1327 function TSetting.GetSoundName(Index: Integer): string;
1329 if (Index < GetSoundCount) and (Index >= 0) then
1330 Result := SOUND_NAME[Index].Name
1335 function TSetting.GetSoundViewName(Index: Integer): string;
1337 if (Index < GetSoundCount) and (Index >= 0) then
1338 Result := SOUND_NAME[Index].ViewName
1343 function TSetting.GetSoundFileName(Index: Integer): string;
1345 if (Index < GetSoundCount) and (Index >= 0) then
1346 Result := SOUND_NAME[Index].FileName
1351 procedure TSetting.SetSoundFileName(Index: Integer; value: string);
1353 if (Index < GetSoundCount) and (Index >= 0) then
1354 SOUND_NAME[Index].FileName := value;
1357 function TSetting.FindSoundFileName(Name: string): string;
1361 for i := 0 to GetSoundCount - 1 do begin
1362 if SoundName[i] = Name then begin
1363 Result := SoundFileName[i];
1370 function TSetting.Encrypt(s: string): string;
1372 cryptObj: THogeCryptAuto;
1373 inputStream, outputStream: TStringStream;
1375 inputStream := TStringStream.Create(s);
1376 outputStream := TStringStream.Create('');
1377 cryptObj := THogeCryptAuto.Create;
1380 cryptObj.Encrypt(inputStream, GIKO_ENCRYPT_TEXT, outputStream);
1382 //
\83o
\83C
\83i
\83\8a\82È
\82Ì
\82Å
\95K
\97v
\82É
\89\9e\82¶
\82Ä
\83e
\83L
\83X
\83g
\82É
\95Ï
\8a·
1383 Result := HogeBase64Encode(outputStream.DataString);
1391 function TSetting.Decrypt(s: string): string;
1393 cryptObj: THogeCryptAuto;
1394 inputStream, outputStream: TStringStream;
1397 inputStream := TStringStream.Create(HogeBase64Decode(s));
1402 outputStream := TStringStream.Create('');
1403 cryptObj := THogeCryptAuto.Create;
1406 cryptObj.Decrypt(inputStream, GIKO_ENCRYPT_TEXT, outputStream);
1407 Result := outputStream.DataString;
1415 function TSetting.GetMainCoolSet(Index: Integer): TCoolSet;
1417 if Index in [0..MAIN_COOLBAND_COUNT - 1] then
1418 Result := FMainCoolBar[Index]
1420 Result.FCoolID := -1;
1421 Result.FCoolWidth := -1;
1422 Result.FCoolBreak := False;
1426 function TSetting.GetBoardCoolSet(Index: Integer): TCoolSet;
1428 if Index in [0..LIST_COOLBAND_COUNT - 1] then
1429 Result := FListCoolBar[Index]
1431 Result.FCoolID := -1;
1432 Result.FCoolWidth := -1;
1433 Result.FCoolBreak := False;
1437 function TSetting.GetBrowserCoolSet(Index: Integer): TCoolSet;
1439 if Index in [0..BROWSER_COOLBAND_COUNT - 1] then
1440 Result := FBrowserCoolBar[Index]
1442 Result.FCoolID := -1;
1443 Result.FCoolWidth := -1;
1444 Result.FCoolBreak := False;
1448 procedure TSetting.SetMainCoolSet(Index: Integer; CoolSet: TCoolSet);
1450 if Index in [0..MAIN_COOLBAND_COUNT - 1] then
1451 FMainCoolBar[Index] := CoolSet;
1454 procedure TSetting.SetBoardCoolSet(Index: Integer; CoolSet: TCoolSet);
1456 if Index in [0..LIST_COOLBAND_COUNT - 1] then
1457 FListCoolBar[Index] := CoolSet;
1460 procedure TSetting.SetBrowserCoolSet(Index: Integer; CoolSet: TCoolSet);
1462 if Index in [0..BROWSER_COOLBAND_COUNT - 1] then
1463 FBrowserCoolBar[Index] := CoolSet;
1466 //url.ini
\82ª
\82È
\82¢
\82Æ
\82«
\82É
\90¶
\90¬
\82·
\82é
1467 procedure TSetting.MakeURLIniFile();
1471 ini := TMemIniFile.Create(GetBoardURLFileName());
1473 ini.WriteInteger('URL','count',2);
1474 ini.WriteInteger('URL','selected',2);
1475 ini.WriteString('URL','1',DEFAULT_2CH_BOARD_URL1);
1476 ini.WriteString('URL','2',DEFAULT_2CH_BOARD_URL2);
1483 (*************************************************************************
1484 *
\83{
\81[
\83h
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
1485 *************************************************************************)
1486 function TSetting.GetBoardFileName: string;
1488 Result := GetAppDir + CONFIG_DIR_NAME + '\' + BOARD_FILE_NAME;
1491 (*************************************************************************
1492 *
\83{
\81[
\83h
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
1493 *************************************************************************)
1494 function TSetting.GetCustomBoardFileName: string;
1496 Result := GetAppDir + CONFIG_DIR_NAME + '\' + CUSTOMBOARD_FILE_NAME;
1499 (*************************************************************************
1500 *
\83{
\81[
\83h
\83f
\83B
\83\8c\83N
\83g
\83\8a\8eæ
\93¾
1501 *************************************************************************)
1502 function TSetting.GetBoardDir: string;
1504 Result := GetAppDir + CONFIG_DIR_NAME + '\' + BOARD_DIR_NAME + '\';
1507 (*************************************************************************
1508 *
\83e
\83\93\83|
\83\89\83\8a\83t
\83H
\83\8b\83_
\81[
\96¼
\8eæ
\93¾
1509 *************************************************************************)
1510 function TSetting.GetHtmlTempFileName: string;
1512 Result := TEMP_FOLDER;
1516 (*************************************************************************
1517 *
\8eÀ
\8ds
\83t
\83@
\83C
\83\8b\83t
\83H
\83\8b\83_
\8eæ
\93¾
1518 *************************************************************************)
1519 function TSetting.GetAppDir: string;
1521 Result := ExtractFilePath(Application.ExeName);
1524 (*************************************************************************
1525 *TempHtml
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
1526 *************************************************************************)
1527 function TSetting.GetTempFolder: string;
1529 Result := GetAppDir + TEMP_FOLDER;
1532 (*************************************************************************
1533 *sent.ini
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
1534 *************************************************************************)
1535 function TSetting.GetSentFileName: string;
1537 Result := GetAppDir + SENT_FILE_NAME;
1540 (*************************************************************************
1541 *outbox.ini
\83t
\83@
\83C
\83\8b\96¼
\8eæ
\93¾
\81i
\83p
\83X
\81{
\83t
\83@
\83C
\83\8b\96¼
\81j
1542 *************************************************************************)
1543 function TSetting.GetOutBoxFileName: string;
1545 Result := GetAppDir + OUTBOX_FILE_NAME;
1548 (*************************************************************************
1549 *Config
\83t
\83H
\83\8b\83_
\8eæ
\93¾
1550 *************************************************************************)
1551 function TSetting.GetConfigDir: string;
1553 Result := IncludeTrailingPathDelimiter(GetAppDir + CONFIG_DIR_NAME);
1556 function TSetting.GetStyleSheetDir: string;
1558 Result := IncludeTrailingPathDelimiter(GetConfigDir + CSS_DIR_NAME);
1561 function TSetting.GetSkinDir: string;
1563 Result := IncludeTrailingPathDelimiter(GetConfigDir + SKIN_DIR_NAME);
1566 function TSetting.GetSkinHeaderFileName: string;
1568 Result := CSSFileName + SKIN_HEADER_FILE_NAME;
1571 function TSetting.GetSkinFooterFileName: string;
1573 Result := CSSFileName + SKIN_FOOTER_FILE_NAME;
1576 function TSetting.GetSkinNewResFileName: string;
1578 Result := CSSFileName + SKIN_NEWRES_FILE_NAME;
1581 function TSetting.GetSkinResFileName: string;
1583 Result := CSSFileName + SKIN_RES_FILE_NAME;
1586 function TSetting.GetSkinBookmarkFileName: string;
1588 Result := CSSFileName + SKIN_BOOKMARK_FILE_NAME;
1591 function TSetting.GetSkinNewmarkFileName: string;
1593 Result := CSSFileName + SKIN_NEWMARK_FILE_NAME;
1596 function TSetting.GetNGWordsDir: string;
1598 Result := IncludeTrailingPathDelimiter(GetConfigDir + NGWORDs_DIR_NAME);
1601 function TSetting.GetBoardPlugInDir: string;
1603 Result := IncludeTrailingPathDelimiter(GetConfigDir + BOARD_PLUGIN_DIR_NAME);
1606 procedure TSetting.SetUseCSS( value: Boolean );
1613 (Pos( GetSkinDir, CSSFileName ) > 0) and
1614 FileExists( GetSkinHeaderFileName );
1618 procedure TSetting.SetCSSFileName( fileName: string );
1621 FCSSFileName := fileName;
1625 (Pos( GetSkinDir, CSSFileName ) > 0) and
1626 FileExists( GetSkinHeaderFileName );
1630 function TSetting.GetSambaFileName: string;
1632 Result := GetAppDir + SAMBATIME_FILE_NAME;
1634 //
\94Â
\8dX
\90V
\8f\9c\8aO
\83J
\83e
\83S
\83\8a\83\8a\83X
\83g
\95Û
\91¶
\83t
\83@
\83C
\83\8b
1635 function TSetting.GetIgnoreFileName: string;
1637 Result := GetConfigDir + IGNORE_FILE_NAME;