Develop and Download Open Source Software

Browse CVS Repository

Annotation of /gikonavigoeson/gikonavi/Setting.pas

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.57 - (hide annotations) (download) (as text)
Tue Aug 17 06:56:18 2004 UTC (19 years, 8 months ago) by h677
Branch: MAIN
CVS Tags: v1_48_0_533
Changes since 1.56: +1 -4 lines
File MIME type: text/x-pascal
タブの自動保存の設定が保存されない不具合の修正

1 hi_ 1.1 unit Setting;
2    
3     interface
4    
5     uses
6     SysUtils, Classes, Graphics, Forms, Math, IniFiles, UCryptAuto, UBase64,
7     ComCtrls;
8    
9     const
10     MAIN_COOLBAND_COUNT = 4; //?<?ゃ??oolBand????/span>
11     LIST_COOLBAND_COUNT = 2; //??oolBand????/span>
12     BROWSER_COOLBAND_COUNT = 3; //????????oolBand????/span>
13    
14 yoffy 1.14 BOARD_FILE_NAME = 'board.2ch';
15     CUSTOMBOARD_FILE_NAME = 'custom.2ch';
16 yoffy 1.18 BOARD_DIR_NAME = 'Board';
17 yoffy 1.14 KEY_SETTING_FILE_NAME = 'key.ini';
18 yoffy 1.34 EKEY_SETTING_FILE_NAME = 'Ekey.ini';
19 yoffy 1.14 TEMP_FOLDER = 'Temp';
20     OUTBOX_FILE_NAME = 'outbox.ini';
21     SENT_FILE_NAME = 'sent.ini';
22     CONFIG_DIR_NAME = 'config';
23     CSS_DIR_NAME = 'css';
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 yoffy 1.15 NGWORDs_DIR_NAME : String = 'NGwords';
32 yoffy 1.16 BOARD_PLUGIN_DIR_NAME = 'BoardPlugin';
33 yoffy 1.34 SAMBATIME_FILE_NAME : String = 'Samba.ini';
34 h677 1.35 IGNORE_FILE_NAME : String = 'Ignore.txt';
35 h677 1.37 // DOLIB_LOGIN_URL = '/~tora3n2c/futen.cgi';
36 q9_ 1.45 MAX_POPUP_RES : Integer = 10;
37 hi_ 1.1 type
38     TGikoTabPosition = (gtpTop, gtpBottom); // ?帥??篏?臀?/span>
39     TGikoTabAppend = (gtaFirst, gtpLast); // ?帥??菴遵??篏?臀?/span>
40     TGikoTabStyle = (gtsTab, gtsButton, gtsFlat); // ?帥???鴻?帥?ゃ??/span>
41     TGikoListOrientation = (gloHorizontal, gloVertical); // ???鴻?????眼?紙梓綛?/span>
42     TGikoListState = (glsMax, glsNormal, glsMin); // ???鴻???泣?ゃ?榊?倶??
43     // ???????≪????茵?ず篏?臀?/span>
44     TGikoPopupPosition = (gppRightTop, gppTop, gppLeftTop,
45     gppRight, gppCenter, gppLeft,
46     gppRightBottom, gppBottom, gppLeftBottom);
47     //???????ャ?若?泣?ゃ??/span>
48     TGikoPreviewSize = (gpsXLarge, gpsLarge, gpsMedium, gpsSmall, gpsXSmall);
49 yoffy 1.39 TGikoBrowserAutoMaximize = (gbmNone, gbmClick, gbmDoubleClick);
50     // ???????吟????????????紊у???????>散
51 yoffy 1.49 /// ???壕;腓榊??蚊??10 ?? 65535 ????? n ???号?宴????
52     /// 絨?? 201-300 ??????????蚊?????????????醇?с?????????篏? 2 byte ???膣???
53     TGikoResRange = (grrAll, grrSelect, grrKoko, grrNew);
54 hi_ 1.1
55 yoffy 1.55 /// ?鴻??????筝?荀ц;腓榊???/span>
56     TGikoThreadRange = (gtrAll, gtrSelect, gtrLog, gtrNew);
57    
58 hi_ 1.1 //CoolBar荐?????潟?若??
59     TCoolSet = record
60     FCoolID: Integer;
61     FCoolWidth: Integer;
62     FCoolBreak: Boolean;
63     end;
64    
65     TSetting = class(TObject)
66     private
67     //??篆<???????<?泣?ゃ??/span>
68     FRecvBufferSize: Integer;
69     //HTTP1.1篏睡??/span>
70     FProtocol: Boolean;
71     //???????傑・膓?HTTP1.1篏睡??/span>
72     FProxyProtocol: Boolean;
73    
74     //???????件?茯?昭???
75     FReadProxy: Boolean;
76     FReadProxyAddress: string;
77     FReadProxyPort: Integer;
78     FReadProxyUserID: string;
79     FReadProxyPassword: string;
80    
81     //???????件??梧昭???
82     FWriteProxy: Boolean;
83     FWriteProxyAddress: string;
84     FWriteProxyPort: Integer;
85     FWriteProxyUserID: string;
86     FWriteProxyPassword: string;
87    
88     //???c????????
89     FCabinetFontName: string;
90     FCabinetFontSize: Integer;
91     FCabinetFontBold: Boolean;
92     FCabinetFontItalic: Boolean;
93     FCabinetFontColor: TColor;
94     FCabinetBackColor: TColor;
95    
96     //???鴻??
97     FListFontName: string;
98     FListFontSize: Integer;
99     FListFontBold: Boolean;
100     FListFontItalic: Boolean;
101     FListFontColor: TColor;
102     FListBackColor: TColor;
103    
104     //????????/span>
105 yoffy 1.6 FBrowserFontName: string; // ''...default
106     FBrowserFontSize: Integer; // 0...default
107     FBrowserFontBold: Integer; // 0...default, -1...False, 1...True
108     FBrowserFontItalic: Integer; // 筝???????
109 yoffy 1.14 FBrowserFontColor: Integer; // -1...default
110     FBrowserBackColor: Integer; // 筝???????
111 hi_ 1.1
112     //?????c??/span>
113     FEditorFontName: string;
114     FEditorFontSize: Integer;
115     FEditorFontBold: Boolean;
116     FEditorFontItalic: Boolean;
117     FEditorFontColor: TColor;
118     FEditorBackColor: TColor;
119    
120     //?帥???????潟??
121     FBrowserTabFontName: string;
122     FBrowserTabFontSize: Integer;
123     FBrowserTabFontBold: Boolean;
124     FBrowserTabFontItalic: Boolean;
125    
126     //???潟?????c?潟????/span>
127     FHintFontName: string;
128     FHintFontSize: Integer;
129     //FHintFontBold: Boolean;
130     //FHintFontItalic: Boolean;
131     FHintFontColor: TColor;
132     FHintBackColor: TColor;
133    
134     //???c?潟?????泣?ゃ??/span>
135     FWindowTop: Integer;
136     FWindowLeft: Integer;
137     FWindowHeight: Integer;
138     FWindowWidth: Integer;
139     FWindowMax: Boolean;
140     //???鴻?????ャ?若?鴻?帥?ゃ??/span>
141     FListStyle: TViewStyle;
142    
143     //???若?????取;腓?/span>
144     FStdToolBarVisible: Boolean;
145     FAddressBarVisible: Boolean;
146     FLinkBarVisible: Boolean;
147     FListToolBarVisible: Boolean;
148     FListNameBarVisible: Boolean;
149     FBrowserToolBarVisible: Boolean;
150     FBrowserNameBarVisible: Boolean;
151    
152     //???????吟?帥??
153     FBrowserTabVisible: Boolean;
154     FBrowserTabPosition: TGikoTabPosition;
155     FBrowserTabAppend: TGikoTabAppend;
156     FBrowserTabStyle: TGikoTabStyle;
157    
158     //?<???祉?若?吾????/span>
159     FMessageBarVisible: Boolean;
160     FMessegeBarHeight: Integer;
161    
162     //?鴻???若?帥?鴻????/span>
163     FStatusBarVisible: Boolean;
164    
165     //???c????????????祉?泣?ゃ??/span>
166     FCabinetVisible: Boolean;
167     FCabinetWidth: Integer;
168    
169     //???鴻???祉???????吟?泣?ゃ??/span>
170     FListOrientation: TGikoListOrientation;
171     FListHeight: Integer;
172     FListHeightState: TGikoListState;
173     FListWidth: Integer;
174     FListWidthState: TGikoListState;
175     // FListHeightMax: Boolean;
176     // FListWidthMax: Boolean;
177    
178     //??篆∞???????祉?<?若??/span>
179     FNameList: TStringList;
180     FMailList: TStringList;
181    
182     //?????c?帥?若???c?潟?????泣?ゃ??/span>
183     FEditWindowTop: Integer;
184     FEditWindowLeft: Integer;
185     FEditWindowHeight: Integer;
186     FEditWindowWidth: Integer;
187     FEditWindowMax: Boolean;
188 deux 1.20 FEditWindowStay: Boolean;
189     FEditWindowTranslucent: Boolean;
190 hi_ 1.1
191     //???鴻????埈;腓?/span>
192     FListViewNo: Boolean;
193     //CSS茵?ず
194     FUseCSS: Boolean;
195     //CSS???<?ゃ????
196     FCSSFileName: string;
197 yoffy 1.14 // ?鴻???活;腓?筝???????????? ini ???絖???????????)
198     FUseSkin: Boolean;
199 hi_ 1.1 //mail罨?茵?ず
200     FShowMail: Boolean;
201 yoffy 1.49 /// ???壕;腓榊???/span>
202 yoffy 1.51 FResRange : Longint;
203     /// 莎桁???????壕;腓榊??蚊???阪?
204     FResRangeHold : Boolean;
205 yoffy 1.55 /// ?鴻??????筝?荀ц;腓榊???/span>
206     FThreadRange : TGikoThreadRange;
207 yoffy 1.2 //???≪?????c???????鴻???????≪????茵?ず
208 hi_ 1.1 FUnActivePopup: Boolean;
209 yoffy 1.2 //???鴻???????≪???????????若???若????
210     FResPopupHeaderBold: Boolean;
211 hi_ 1.1
212     //???違????????
213     FLogFolder: string;
214     FNewLogFolder: string;
215    
216     //???鴻???????????????若?泣?ゃ??/span>
217     FBBSColumnWidth: array[0..0] of Integer;
218     FCategoryColumnWidth: array[0..3] of Integer;
219 h677 1.25 FBoardColumnWidth: array[0..7] of Integer;
220 hi_ 1.1
221 q9_ 1.46 //?純?若????
222     FBBSSortIndex: Integer;
223     FBBSSortOrder: Boolean;
224     FCategorySortIndex: Integer;
225     FCategorySortOrder: Boolean;
226     FBoardSortIndex: Integer;
227     FBoardSortOrder: Boolean;
228    
229 q9_ 1.53 //Dat?純?<?鴻???純?若????
230     FDatOchiSortIndex: Integer;
231     FDatOchiSortOrder: Boolean;
232    
233 hi_ 1.1 //腟?莨若?炊??絖???
234     FSelectTextList: TStringList;
235    
236     //?推?荀?RL
237 h677 1.11 //FBoardURL2ch: string;
238 yoffy 1.14 FBoardURLs: TStringList;
239     FBoardURLSelected: Integer;
240 hi_ 1.1
241     //???若??D?祉???鴻???若??
242     FUserID: string;
243     FPassword: string;
244     FAutoLogin: Boolean;
245 h677 1.21 FForcedLogin: Boolean;
246 h677 1.36 FDolibURL: string;
247 hi_ 1.1
248     //URL??????????莎桁???≪????/span>
249     FURLApp: Boolean;
250     FURLAppFile: string;
251    
252     //mailto????????????篏?
253     FOpenMailer: Boolean;
254    
255     //???ょ∈茯?
256     FDeleteMsg: Boolean;
257    
258     //CoolBar鐚??<?ゃ?潟?紙?帥?祉???????駈?
259     FMainCoolBar: array[0..MAIN_COOLBAND_COUNT - 1] of TCoolSet;
260 yoffy 1.2 FListCoolBar: array[0..LIST_COOLBAND_COUNT - 1] of TCoolSet;
261 hi_ 1.1 FBrowserCoolBar: array[0..BROWSER_COOLBAND_COUNT - 1] of TCoolSet;
262    
263     //ToolBar Wrapable
264     FListToolBarWrapable: Boolean;
265     FBrowserToolBarWrapable: Boolean;
266    
267     //???????≪????篏?臀?/span>
268     FPopupPosition: TGikoPopupPosition;
269    
270     //?≪?????鴻????/span>
271     FURLDisplay: Boolean;
272     FAddressBarTabStop: Boolean;
273     FLinkAddAddressBar: Boolean;
274     FAddressHistoryCount: Integer;
275    
276     //?糸????????ャ??/span>
277     FPreviewVisible: Boolean;
278     FPreviewSize: TGikoPreviewSize;
279     FPreviewWait: Integer;
280    
281 yoffy 1.39 // ????????/span>
282     FBrowserAutoMaximize: TGikoBrowserAutoMaximize;
283    
284 hi_ 1.1 //?鴻??????筝?荀ф?贋?違?≪?ゃ?潟?活;腓?/span>
285     FListIconVisible: Boolean;
286 q9_ 1.44 //??緇??違?с???????????茵?ず????
287     FNonAcquiredCount: Boolean;
288 hi_ 1.1
289 yoffy 1.51 //?鴻??????筝?荀с??og???????鴻?????????帥?鴻??????ャ??茵?ず??????
290     FCreationTimeLogs: Boolean;
291 h677 1.29 //?鴻??????筝?荀с???鴻???????ャ?ф???ャ???鴻?????????ャ??茵?ず??????
292 q9_ 1.44 FFutureThread: Boolean;
293 h677 1.29
294 hi_ 1.1 //?吾??莨若?炊?????激?恰????篏睡??┃絎?
295     FUseMachineTime: Boolean;
296     FTimeAdjustSec: Integer;
297     FTimeAdjust: Boolean;
298    
299 h677 1.11 //???若????
300     FAbonDeleterlo : Boolean; //&rlo;????????
301     FAbonReplaceul : Boolean; //<ul>?帥?違??<br>?帥?違??舟????????
302 yoffy 1.14 FPopUpAbon : Boolean; //???鴻???????≪???????????若????????/span>
303 h677 1.11 FShowNGLinesNum : Boolean; //荅峨?????鐚?磁???若?????<?ゃ??????違??茵?ず
304     FAddResAnchor : Boolean; //NG???鴻?吾?????鴻?≪?潟???若??菴遵??????
305 h677 1.32 FDeleteSyria : Boolean; //?激???∵??????????膈?
306 h677 1.3
307 h677 1.11 // ?鴻??????腟?莨若???c?若???????
308     FSelectComboBoxWidth : Integer;
309 yoffy 1.5
310 h677 1.11 // ??緇????御?????????????激?с?潟???ゃ?≪???違???帥??
311     FOptionDialogTabIndex: Integer;
312 yoffy 1.8
313 h677 1.11 // ??緇????御???????????c????????
314     FCabinetIndex: Integer;
315 yoffy 1.8
316 yoffy 1.14 //腟?篋?????∈茯????ゃ?≪???違??茵?ず??????
317     FShowDialogForEnd : Boolean;
318 h677 1.38 //???????帥????????????????∈茯????ゃ?≪???違??茵?ず????
319     FShowDialogForAllTabClose: Boolean;
320 h677 1.19 //??緇????号?違???鴻???????????号?違???違???c??????????絽梧?????蚊?????c???蚊???????蚊??篏睡????????
321     FUseOddColorOddResNum: Boolean;
322     FOddColor: TColor;
323 h677 1.13
324 h677 1.33 //Samba24絲丞?罘??純??篏帥????
325     FUseSamba: Boolean;
326 h677 1.36
327 h677 1.38 //???鴻?≪?潟???若???????????????吾?c?潟????????
328     FResAnchorJamp: Boolean;
329    
330 genyakun 1.47 //Tab????篆?絖?
331 genyakun 1.56 FTabAutoLoadSave : Boolean;
332 yoffy 1.40 // ?????c??/span>
333 yoffy 1.41 FSpaceToNBSP : Boolean; ///< ??茹??鴻???若?鴻??Tab ?? &nbsp; ??舟??
334     FAmpToCharRef : Boolean; ///< '&' ?? &amp; ??舟??
335 h677 1.43
336     //???????吟?帥????茵?ず???????鴻???荀с?с?????若?純?????主Щ?????≦??????
337     FSelectInterval : Integer;
338 yoffy 1.40
339 hi_ 1.1 function GetMainCoolSet(Index: Integer): TCoolSet;
340     function GetBoardCoolSet(Index: Integer): TCoolSet;
341     function GetBrowserCoolSet(Index: Integer): TCoolSet;
342     procedure SetMainCoolSet(Index: Integer; CoolSet: TCoolSet);
343     procedure SetBoardCoolSet(Index: Integer; CoolSet: TCoolSet);
344     procedure SetBrowserCoolSet(Index: Integer; CoolSet: TCoolSet);
345    
346     function GetBBSColumnWidth(index: Integer): Integer;
347     function GetCategoryColumnWidth(index: Integer): Integer;
348     function GetBoardColumnWidth(index: Integer): Integer;
349     procedure SetBBSColumnWidth(index: Integer; value: Integer);
350     procedure SetCategoryColumnWidth(index: Integer; value: Integer);
351     procedure SetBoardColumnWidth(index: Integer; value: Integer);
352    
353     function GetSoundName(Index: Integer): string;
354     function GetSoundViewName(Index: Integer): string;
355     function GetSoundFileName(Index: Integer): string;
356     procedure SetSoundFileName(Index: Integer; value: string);
357     function Encrypt(s: string): string;
358     function Decrypt(s: string): string;
359 h677 1.11
360 yoffy 1.14 procedure MakeURLIniFile();
361    
362     procedure SetUseCSS( value: Boolean );
363     procedure SetCSSFileName( fileName: string );
364 hi_ 1.1 protected
365    
366     public
367     constructor Create;
368     destructor Destroy; override;
369     function GetFileName: string;
370 yoffy 1.14 function GetBoardURLFileName: string;
371 hi_ 1.1 procedure ReadSettingFile;
372 yoffy 1.14 procedure ReadBoardURLsFile;
373 hi_ 1.1 procedure WriteSystemSettingFile;
374     procedure WriteWindowSettingFile;
375     procedure WriteNameMailSettingFile;
376     procedure WriteFolderSettingFile();
377 yoffy 1.14 procedure WriteBoardURLSettingFile;
378 hi_ 1.1 function GetSoundCount: Integer;
379     function FindSoundFileName(Name: string): string;
380    
381 yoffy 1.14 function GetBoardFileName: string;
382     function GetCustomBoardFileName: string;
383 yoffy 1.18 function GetBoardDir: string;
384 yoffy 1.14 function GetHtmlTempFileName: string;
385     function GetAppDir: string;
386     function GetTempFolder: string;
387     function GetSentFileName: string;
388     function GetConfigDir: string;
389     function GetSkinDir: string;
390     function GetSkinHeaderFileName: string;
391     function GetSkinFooterFileName: string;
392     function GetSkinResFileName: string;
393     function GetSkinNewResFileName: string;
394     function GetSkinBookmarkFileName: string;
395     function GetSkinNewmarkFileName: string;
396     function GetStyleSheetDir: string;
397     function GetOutBoxFileName: string;
398 yoffy 1.15 function GetNGWordsDir: string;
399 yoffy 1.16 function GetBoardPlugInDir: string;
400 h677 1.35 function GetSambaFileName: string;
401     function GetIgnoreFileName: string;
402 yoffy 1.14
403 hi_ 1.1 //??篆<???????<?泣?ゃ??/span>
404     property RecvBufferSize: Integer read FRecvBufferSize write FRecvBufferSize;
405     //HTTP1.1篏睡??/span>
406     property Protocol: Boolean read FProtocol write FProtocol;
407     //???????傑・膓?HTTP1.1篏睡??/span>
408     property ProxyProtocol: Boolean read FProxyProtocol write FProxyProtocol;
409    
410     property ReadProxy: Boolean read FReadProxy write FReadProxy;
411     property ReadProxyAddress: string read FReadProxyAddress write FReadProxyAddress;
412     property ReadProxyPort: Integer read FReadProxyPort write FReadProxyPort;
413     property ReadProxyUserID: string read FReadProxyUserID write FReadProxyUserID;
414     property ReadProxyPassword: string read FReadProxyPassword write FReadProxyPassword;
415    
416     property WriteProxy: Boolean read FWriteProxy write FWriteProxy;
417     property WriteProxyAddress: string read FWriteProxyAddress write FWriteProxyAddress;
418     property WriteProxyPort: Integer read FWriteProxyPort write FWriteProxyPort;
419     property WriteProxyUserID: string read FWriteProxyUserID write FWriteProxyUserID;
420     property WriteProxyPassword: string read FWriteProxyPassword write FWriteProxyPassword;
421    
422     property CabinetFontName: string read FCabinetFontName write FCabinetFontName;
423     property CabinetFontSize: Integer read FCabinetFontSize write FCabinetFontSize;
424     property CabinetFontBold: Boolean read FCabinetFontBold write FCabinetFontBold;
425     property CabinetFontItalic: Boolean read FCabinetFontItalic write FCabinetFontItalic;
426     property CabinetFontColor: TColor read FCabinetFontColor write FCabinetFontColor;
427     property CabinetBackColor: TColor read FCabinetBackColor write FCabinetBackColor;
428    
429     property ListFontName: string read FListFontName write FListFontName;
430     property ListFontSize: Integer read FListFontSize write FListFontSize;
431     property ListFontBold: Boolean read FListFontBold write FListFontBold;
432     property ListFontItalic: Boolean read FListFontItalic write FListFontItalic;
433     property ListFontColor: TColor read FListFontColor write FListFontColor;
434     property ListBackColor: TColor read FListBackColor write FListBackColor;
435    
436 yoffy 1.6 property BrowserFontName: string read FBrowserFontName write FBrowserFontName;
437     property BrowserFontSize: Integer read FBrowserFontSize write FBrowserFontSize;
438     property BrowserFontBold: Integer read FBrowserFontBold write FBrowserFontBold;
439     property BrowserFontItalic: Integer read FBrowserFontItalic write FBrowserFontItalic;
440     property BrowserFontColor: Integer read FBrowserFontColor write FBrowserFontColor;
441     property BrowserBackColor: Integer read FBrowserBackColor write FBrowserBackColor;
442 hi_ 1.1
443     property EditorFontName: string read FEditorFontName write FEditorFontName;
444     property EditorFontSize: Integer read FEditorFontSize write FEditorFontSize;
445     property EditorFontBold: Boolean read FEditorFontBold write FEditorFontBold;
446     property EditorFontItalic: Boolean read FEditorFontItalic write FEditorFontItalic;
447     property EditorFontColor: TColor read FEditorFontColor write FEditorFontColor;
448     property EditorBackColor: TColor read FEditorBackColor write FEditorBackColor;
449    
450     property BrowserTabFontName: string read FBrowserTabFontName write FBrowserTabFontName;
451     property BrowserTabFontSize: Integer read FBrowserTabFontSize write FBrowserTabFontSize;
452     property BrowserTabFontBold: Boolean read FBrowserTabFontBold write FBrowserTabFontBold;
453     property BrowserTabFontItalic: Boolean read FBrowserTabFontItalic write FBrowserTabFontItalic;
454    
455     property HintFontName: string read FHintFontName write FHintFontName;
456     property HintFontSize: Integer read FHintFontSize write FHintFontSize;
457     //property HintFontBold: Boolean read FHintFontBold write FHintFontBold;
458     //property HintFontItalic: Boolean read FHintFontItalic write FHintFontItalic;
459     property HintFontColor: TColor read FHintFontColor write FHintFontColor;
460     property HintBackColor: TColor read FHintBackColor write FHintBackColor;
461    
462     property WindowTop: Integer read FWindowTop write FWindowTop;
463     property WindowLeft: Integer read FWindowLeft write FWindowLeft;
464     property WindowHeight: Integer read FWindowHeight write FWindowHeight;
465     property WindowWidth: Integer read FWindowWidth write FWindowWidth;
466     property WindowMax: Boolean read FWindowMax write FWindowMax;
467     property ListStyle: TViewStyle read FListStyle write FListStyle;
468    
469     property StdToolBarVisible: Boolean read FStdToolBarVisible write FStdToolBarVisible;
470     property AddressBarVisible: Boolean read FAddressBarVisible write FAddressBarVisible;
471     property LinkBarVisible: Boolean read FLinkBarVisible write FLinkBarVisible;
472     property ListToolBarVisible: Boolean read FListToolBarVisible write FListToolBarVisible;
473     property ListNameBarVisible: Boolean read FListNameBarVisible write FListNameBarVisible;
474     property BrowserToolBarVisible: Boolean read FBrowserToolBarVisible write FBrowserToolBarVisible;
475     property BrowserNameBarVisible: Boolean read FBrowserNameBarVisible write FBrowserNameBarVisible;
476    
477     property BrowserTabVisible: Boolean read FBrowserTabVisible write FBrowserTabVisible;
478     property BrowserTabPosition: TGikoTabPosition read FBrowserTabPosition write FBrowserTabPosition;
479     property BrowserTabAppend: TGikoTabAppend read FBrowserTabAppend write FBrowserTabAppend;
480     property BrowserTabStyle: TGikoTabStyle read FBrowserTabStyle write FBrowserTabStyle;
481    
482     property MessageBarVisible: Boolean read FMessageBarVisible write FMessageBarVisible;
483     property MessegeBarHeight: Integer read FMessegeBarHeight write FMessegeBarHeight;
484    
485     property StatusBarVisible: Boolean read FStatusBarVisible write FStatusBarVisible;
486    
487     property CabinetVisible: Boolean read FCabinetVisible write FCabinetVisible;
488     property CabinetWidth: Integer read FCabinetWidth write FCabinetWidth;
489    
490     property ListOrientation: TGikoListOrientation read FListOrientation write FListOrientation;
491     property ListHeight: Integer read FListHeight write FListHeight;
492     property ListHeightState: TGikoListState read FListHeightState write FListHeightState;
493     property ListWidth: Integer read FListWidth write FListWidth;
494     property ListWidthState: TGikoListState read FListWidthState write FListWidthState;
495     // property ListHeightMax: Boolean read FListHeightMax write FListHeightMax;
496     // property ListWidthMax: Boolean read FListWidthMax write FListWidthMax;
497    
498     property NameList: TStringList read FNameList write FNameList;
499     property MailList: TStringList read FMailList write FMailList;
500     property SelectTextList: TStringList read FSelectTextList write FSelectTextList;
501    
502     property EditWindowTop: Integer read FEditWindowTop write FEditWindowTop;
503     property EditWindowLeft: Integer read FEditWindowLeft write FEditWindowLeft;
504     property EditWindowHeight: Integer read FEditWindowHeight write FEditWindowHeight;
505     property EditWindowWidth: Integer read FEditWindowWidth write FEditWindowWidth;
506     property EditWindowMax: Boolean read FEditWindowMax write FEditWindowMax;
507 deux 1.20 property EditWindowStay: Boolean read FEditWindowStay write FEditWindowStay;
508 h677 1.38 property EditWindowTranslucent: Boolean read FEditWindowTranslucent write FEditWindowTranslucent;
509 hi_ 1.1
510     property ListViewNo: Boolean read FListViewNo write FListViewNo;
511 yoffy 1.14 property UseCSS: Boolean read FUseCSS write SetUseCSS;
512     property CSSFileName: string read FCSSFileName write SetCSSFileName;
513     property UseSkin: Boolean read FUseSkin;
514 hi_ 1.1
515     property ShowMail: Boolean read FShowMail write FShowMail;
516 yoffy 1.49 property ResRange : Longint read FResRange write FResRange;
517 yoffy 1.51 property ResRangeHold : Boolean read FResRangeHold write FResRangeHold;
518 yoffy 1.55 property ThreadRange : TGikoThreadRange read FThreadRange write FThreadRange;
519 hi_ 1.1 property UnActivePopup: Boolean read FUnActivePopup write FUnActivePopup;
520 yoffy 1.2 property ResPopupHeaderBold: Boolean read FResPopupHeaderBold write FResPopupHeaderBold;
521 hi_ 1.1
522     property LogFolder: string read FLogFolder write FLogFolder;
523     property NewLogFolder: string read FNewLogFolder write FNewLogFolder;
524    
525     property BBSColumnWidth[index: Integer]: Integer read GetBBSColumnWidth write SetBBSColumnWidth;
526     property CategoryColumnWidth[index: Integer]: Integer read GetCategoryColumnWidth write SetCategoryColumnWidth;
527     property BoardColumnWidth[index: Integer]: Integer read GetBoardColumnWidth write SetBoardColumnWidth;
528    
529     property SoundName[index: Integer]: string read GetSoundName;
530     property SoundViewName[index: Integer]: string read GetSoundViewName;
531     property SoundFileName[index: Integer]: string read GetSoundFileName write SetSoundFileName;
532    
533 q9_ 1.46 property BBSSortIndex: Integer read FBBSSortIndex write FBBSSortIndex;
534     property BBSSortOrder: Boolean read FBBSSortOrder write FBBSSortOrder;
535     property CategorySortIndex: Integer read FCategorySortIndex write FCategorySortIndex;
536     property CategorySortOrder: Boolean read FCategorySortOrder write FCategorySortOrder;
537     property BoardSortIndex: Integer read FBoardSortIndex write FBoardSortIndex;
538     property BoardSortOrder: Boolean read FBoardSortOrder write FBoardSortOrder;
539    
540 q9_ 1.53 property DatOchiSortIndex: Integer read FDatOchiSortIndex write FDatOchiSortIndex;
541     property DatOchiSortOrder: Boolean read FDatOchiSortOrder write FDatOchiSortOrder;
542    
543 h677 1.11 //property BoardURL2ch: string read FBoardURL2ch write FBoardURL2ch;
544     property BoardURLs: TStringList read FBoardURLs write FBoardURLs;
545 yoffy 1.14 property BoardURLSelected: Integer read FBoardURLSelected write FBoardURLSelected;
546 hi_ 1.1 property UserID: string read FUserID write FUserID;
547     property Password: string read FPassword write FPassword;
548     property AutoLogin: Boolean read FAutoLogin write FAutoLogin;
549 h677 1.38 property ForcedLogin: Boolean read FForcedLogin write FForcedLogin;
550 h677 1.36 property DolibURL: string read FDolibURL write FDolibURL;
551 hi_ 1.1
552     property URLApp: Boolean read FURLApp write FURLApp;
553     property URLAppFile: string read FURLAppFile write FURLAppFile;
554    
555     property OpenMailer: Boolean read FOpenMailer write FOpenMailer;
556    
557     property DeleteMsg: Boolean read FDeleteMsg write FDeleteMsg;
558    
559     property MainCoolSet[Index: Integer]: TCoolSet read GetMainCoolSet write SetMainCoolSet;
560     property ListCoolSet[Index: Integer]: TCoolSet read GetBoardCoolSet write SetBoardCoolSet;
561     property BrowserCoolSet[Index: Integer]: TCoolSet read GetBrowserCoolSet write SetBrowserCoolSet;
562    
563     property ListToolBarWrapable: Boolean read FListToolBarWrapable write FListToolBarWrapable;
564     property BrowserToolBarWrapable: Boolean read FBrowserToolBarWrapable write FBrowserToolBarWrapable;
565    
566     property PopupPosition: TGikoPopupPosition read FPopupPosition write FPopupPosition;
567    
568     property URLDisplay: Boolean read FURLDisplay write FURLDisplay;
569     property AddressBarTabStop: Boolean read FAddressBarTabStop write FAddressBarTabStop;
570     property LinkAddAddressBar: Boolean read FLinkAddAddressBar write FLinkAddAddressBar;
571     property AddressHistoryCount: Integer read FAddressHistoryCount write FAddressHistoryCount;
572    
573     property PreviewVisible: Boolean read FPreviewVisible write FPreviewVisible;
574     property PreviewSize: TGikoPreviewSize read FPreviewSize write FPreviewSize;
575     property PreviewWait: Integer read FPreviewWait write FPreviewWait;
576 yoffy 1.39 property BrowserAutoMaximize: TGikoBrowserAutoMaximize read FBrowserAutoMaximize write FBrowserAutoMaximize;
577 hi_ 1.1
578     property ListIconVisible: Boolean read FListIconVisible write FListIconVisible;
579 q9_ 1.44 property NonAcquiredCount: Boolean read FNonAcquiredCount write FNonAcquiredCount;
580 h677 1.38 property CreationTimeLogs: Boolean read FCreationTimeLogs write FCreationTimeLogs;
581     property FutureThread: Boolean read FFutureThread write FFutureThread;
582 hi_ 1.1
583     property UseMachineTime: Boolean read FUseMachineTime write FUseMachineTime;
584     property TimeAdjustSec: Integer read FTimeAdjustSec write FTimeAdjustSec;
585     property TimeAdjust: Boolean read FTimeAdjust write FTimeAdjust;
586 h677 1.3
587 yoffy 1.14 //???若????
588     property AbonDeleterlo : Boolean read FAbonDeleterlo write FAbonDeleterlo;
589     property AbonReplaceul : Boolean read FAbonReplaceul write FAbonReplaceul;
590     property PopUpAbon : Boolean read FPopUpAbon write FPopUpAbon;
591     property ShowNGLinesNum : Boolean read FShowNGLinesNum write FShowNGLinesNum;
592     property AddResAnchor : Boolean read FAddResAnchor write FAddResAnchor;
593 h677 1.38 property DeleteSyria : Boolean read FDeleteSyria write FDeleteSyria;
594 yoffy 1.14 // ?鴻??????腟?莨若???c?若???????
595     property SelectComboBoxWidth : Integer read FSelectComboBoxWidth write FSelectComboBoxWidth;
596 yoffy 1.8
597 yoffy 1.14 // ??緇????御?????????????激?с?潟???ゃ?≪???違???帥??
598     property OptionDialogTabIndex : Integer read FOptionDialogTabIndex write FOptionDialogTabIndex;
599 yoffy 1.8
600 yoffy 1.14 // ??緇????御???????????c????????
601     property CabinetIndex : Integer read FCabinetIndex write FCabinetIndex;
602 h677 1.13
603 yoffy 1.14 //腟?篋?????∈茯????ゃ?≪???違??茵?ず??????
604     property ShowDialogForEnd : Boolean read FShowDialogForEnd write FShowDialogForEnd;
605 h677 1.38 property ShowDialogForAllTabClose: Boolean read FShowDialogForAllTabClose write FShowDialogForAllTabClose;
606     //??緇????号?違???鴻???????????号?違???違???c??????????絽梧?????蚊?????c???蚊???????蚊??篏睡????????
607     property UseOddColorOddResNum: Boolean read FUseOddColorOddResNum write FUseOddColorOddResNum;
608     property OddColor: TColor read FOddColor write FOddColor;
609 h677 1.36 property UseSamba: Boolean read FUseSamba write FUseSamba;
610 genyakun 1.47 property ResAnchorJamp: Boolean read FResAnchorJamp write FResAnchorJamp;
611 yoffy 1.40
612     // ?????c??/span>
613 yoffy 1.41 property SpaceToNBSP : Boolean read FSpaceToNBSP write FSpaceToNBSP;
614     property AmpToCharRef : Boolean read FAmpToCharRef write FAmpToCharRef;
615 h677 1.43
616     property SelectInterval : Integer read FSelectInterval write FSelectInterval;
617 genyakun 1.47 //Tab篆?絖?
618 genyakun 1.56 property TabAutoLoadSave: Boolean read FTabAutoLoadSave write FTabAutoLoadSave;
619 yoffy 1.40 end;
620 hi_ 1.1
621    
622 h677 1.3
623 hi_ 1.1 implementation
624    
625     type
626     TSoundName = record
627     Name: string;
628     ViewName: string;
629     FileName: string;
630     end;
631    
632     const
633 yoffy 1.14 INI_FILE_NAME: string = 'gikoNavi.ini';
634     BOARD_URL_INI_FILE_NAME: string = 'url.ini';
635     DEFAULT_FONT_NAME: string = '鐚?竺 鐚違?眼?激????#39;;
636     DEFAULT_FONT_SIZE: Integer = 9;
637     DEFAULT_FONT_COLOR: string = 'clWindowText';
638     DEFAULT_WINDOW_COLOR: string = 'clWindow';
639     DEFAULT_TAB_FONT_NAME: string = '鐚?竺 鐚違?眼?激????#39;;
640     DEFAULT_TAB_FONT_SIZE: Integer = 9;
641 h677 1.11 DEFAULT_2CH_BOARD_URL1: string = 'http://www6.ocn.ne.jp/~mirv/2chmenu.html';
642 h677 1.23 DEFAULT_2CH_BOARD_URL2: string = 'http://www.ff.iij4u.or.jp/~ch2/bbsmenu.html';
643 h677 1.22 //http://menu.2ch.net/bbsmenu.html //??????????????罩e????推?荀с??????????
644 hi_ 1.1 //'http://www.2ch.net/newbbsmenu.html';
645 yoffy 1.14 GIKO_ENCRYPT_TEXT: string = 'gikoNaviEncryptText';
646 hi_ 1.1
647     var
648     SOUND_NAME: array[0..4] of TSoundName = (
649 yoffy 1.14 (Name: 'New'; ViewName: '??緇?????'; FileName: ''),
650     (Name: 'NewDiff'; ViewName: '??緇?????(綏???)'; FileName: ''),
651     (Name: 'NoChange'; ViewName: '???贋??#39;; FileName: ''),
652     // (Name: 'RoundEnd'; ViewName: '綏≦??腟?篋?(??緇?????)'; FileName: ''),
653     // (Name: 'RoundNone'; ViewName: '綏≦??腟?篋?(??緇?????)'; FileName: ''),
654     (Name: 'ResEnd'; ViewName: '???拷??篆≦?篋?'; FileName: ''),
655     (Name: 'Error'; ViewName: '??????#39;; FileName: ''));
656 hi_ 1.1
657     //?潟?潟?鴻????????/span>
658     constructor TSetting.Create();
659     begin
660     FNameList := TStringList.Create;
661     FMailList := TStringList.Create;
662     FSelectTextList := TStringList.Create;
663 yoffy 1.14 FBoardURLs := TStringList.Create;
664 hi_ 1.1 FNameList.Duplicates := dupIgnore;
665     FMailList.Duplicates := dupIgnore;
666 yoffy 1.14 FBoardURLs.Duplicates := dupIgnore;
667 hi_ 1.1 FSelectTextList.Duplicates := dupIgnore;
668     ReadSettingFile();
669 yoffy 1.14 ReadBoardURLsFile();
670 hi_ 1.1 end;
671    
672     //???鴻????????/span>
673     destructor TSetting.Destroy();
674     begin
675     inherited;
676     FSelectTextList.Free;
677 yoffy 1.14 FBoardURLs.Free;
678 hi_ 1.1 FMailList.Free;
679     FNameList.Free;
680     end;
681    
682     //?????????<?ゃ??????緇?鐚????刻????<?ゃ????鐚?
683     function TSetting.GetFileName(): string;
684     begin
685     Result := ExtractFilePath(Application.ExeName) + INI_FILE_NAME;
686     end;
687    
688 h677 1.11 //?炊?贋?亥??RL荐?????<?ゃ????鐚????刻????<?ゃ????鐚?
689     function TSetting.GetBoardURLFileName(): string;
690     begin
691     Result := ExtractFilePath(Application.ExeName) + BOARD_URL_INI_FILE_NAME;
692     end;
693    
694 hi_ 1.1 //荐?????<?ゃ???莨?/span>
695     procedure TSetting.ReadSettingFile();
696     const
697     DEFAULT_BBS_WIDTH: array[0..0] of Integer = (140);
698 yoffy 1.27 DEFAULT_CATEGORY_WIDTH: array[0..3] of Integer = (150, 80, 130, 130);
699 q9_ 1.26 DEFAULT_BOARD_WIDTH: array[0..7] of Integer = (350, 60, 60, 60, 60, 80, 130, 130);
700 q9_ 1.30 MAX_WIDTH: Integer = 2000;
701 hi_ 1.1 var
702     ini: TMemIniFile;
703     i: Integer;
704     wkList: TStringList;
705     wkStr: string;
706     Exists: Boolean;
707     s: string;
708     // id: Integer;
709     CoolSet: TCoolSet;
710     begin
711     Exists := FileExists(GetFileName);
712     ini := TMemIniFile.Create(GetFileName);
713     try
714     //??篆<???????<?泣?ゃ??/span>
715     FRecvBufferSize := ini.ReadInteger('HTTP', 'RecvBufferSize', 4096);
716     //HTTP1.1篏睡??/span>
717     FProtocol := ini.ReadBool('HTTP', 'Protocol', True);
718     //???????傑・膓?HTTP1.1篏睡??/span>
719     FProxyProtocol := ini.ReadBool('HTTP', 'ProxyProtocol', False);
720    
721     FReadProxy := ini.ReadBool('ReadProxy', 'Proxy', false);
722     FReadProxyAddress := ini.ReadString('ReadProxy', 'Address', '');
723     FReadProxyPort := ini.ReadInteger('ReadProxy', 'Port', 0);
724     FReadProxyUserID := ini.ReadString('ReadProxy', 'UserID', '');
725     FReadProxyPassword := ini.ReadString('ReadProxy', 'Password', '');
726    
727     FWriteProxy := ini.ReadBool('WriteProxy', 'Proxy', false);
728     FWriteProxyAddress := ini.ReadString('WriteProxy', 'Address', '');
729     FWriteProxyPort := ini.ReadInteger('WriteProxy', 'Port', 0);
730     FWriteProxyUserID := ini.ReadString('WriteProxy', 'UserID', '');
731     FWriteProxyPassword := ini.ReadString('WriteProxy', 'Password', '');
732    
733 yoffy 1.6 FBrowserFontName := ini.ReadString('Window', 'BrowserFontName', '');
734     FBrowserFontSize := ini.ReadInteger('Window', 'BrowserFontSize', 0);
735     FBrowserFontBold := ini.ReadInteger('Window', 'BrowserFontBold', 0);
736     FBrowserFontItalic := ini.ReadInteger('Window', 'BrowserFontItalic', 0);
737     FBrowserFontColor := ini.ReadInteger('Window', 'BrowserFontColor', -1);
738     FBrowserBackColor := ini.ReadInteger('Window', 'BrowserBackColor', -1);
739    
740 hi_ 1.1 FCabinetFontName := ini.ReadString('Window', 'CabinetFontName', DEFAULT_FONT_NAME);
741     FCabinetFontSize := ini.ReadInteger('Window', 'CabinetFontSize', DEFAULT_FONT_SIZE);
742     FCabinetFontBold := ini.ReadBool('Window', 'CabinetFontBold', False);
743     FCabinetFontItalic := ini.ReadBool('Window', 'CabinetFontItalic', False);
744     FCabinetFontColor := StringToColor(ini.ReadString('Window', 'CabinetFontColor', DEFAULT_FONT_COLOR));
745     FCabinetBackColor := StringToColor(ini.ReadString('Window', 'CabinetBackColor', DEFAULT_WINDOW_COLOR));
746    
747     FListFontName := ini.ReadString('Window', 'ListFontName', DEFAULT_FONT_NAME);
748     FListFontSize := ini.ReadInteger('Window', 'ListFontSize', DEFAULT_FONT_SIZE);
749     FListFontBold := ini.ReadBool('Window', 'ListFontBold', False);
750     FListFontItalic := ini.ReadBool('Window', 'ListFontItalic', False);
751     FListFontColor := StringToColor(ini.ReadString('Window', 'ListFontColor', DEFAULT_FONT_COLOR));
752     FListBackColor := StringToColor(ini.ReadString('Window', 'ListBackColor', DEFAULT_WINDOW_COLOR));
753 genyakun 1.48 FUseOddColorOddResNum := ini.ReadBool('Window','UseOddColor', False);
754     FOddColor := StringToColor(ini.ReadString('Window', 'OddColor', DEFAULT_WINDOW_COLOR));
755 hi_ 1.1
756     FEditorFontName := ini.ReadString('Window', 'EditorFontName', DEFAULT_FONT_NAME);
757     FEditorFontSize := ini.ReadInteger('Window', 'EditorFontSize', DEFAULT_FONT_SIZE);
758     FEditorFontBold := ini.ReadBool('Window', 'EditorFontBold', False);
759     FEditorFontItalic := ini.ReadBool('Window', 'EditorFontItalic', False);
760     FEditorFontColor := StringToColor(ini.ReadString('Window', 'EditorFontColor', DEFAULT_FONT_COLOR));
761     FEditorBackColor := StringToColor(ini.ReadString('Window', 'EditorBackColor', DEFAULT_WINDOW_COLOR));
762    
763     FBrowserTabFontName := ini.ReadString('Window', 'BrowserTabFontName', DEFAULT_TAB_FONT_NAME);
764     FBrowserTabFontSize := ini.ReadInteger('Window', 'BrowserTabFontSize', DEFAULT_TAB_FONT_SIZE);
765     FBrowserTabFontBold := ini.ReadBool('Window', 'BrowserTabFontBold', False);
766     FBrowserTabFontItalic := ini.ReadBool('Window', 'BrowserTabFontItalic', False);
767    
768     FHintFontName := ini.ReadString('Window', 'HintFontName', Screen.HintFont.Name);
769     FHintFontSize := ini.ReadInteger('Window', 'HintFontSize', Screen.HintFont.Size);
770     //FHintFontBold := ini.ReadBool('Window', 'HintFontBold', False);
771     //FHintFontItalic := ini.ReadBool('Window', 'HintFontItalic', False);
772     FHintFontColor := StringToColor(ini.ReadString('Window', 'HintFontColor', DEFAULT_FONT_COLOR));
773     FHintBackColor := StringToColor(ini.ReadString('Window', 'HintBackColor', 'clInfoBk'));
774    
775     FWindowTop := ini.ReadInteger('WindowSize', 'Top', -1);
776     FWindowLeft := ini.ReadInteger('WindowSize', 'Left', -1);
777     FWindowHeight := ini.ReadInteger('WindowSize', 'Height', -1);
778     FWindowWidth := ini.ReadInteger('WindowSize', 'Width', -1);
779     FWindowMax := ini.ReadBool('WindowSize', 'Max', false);
780    
781     if FWindowHeight <= 0 then FWindowHeight := 400;
782     if FWindowWidth <= 0 then FWindowWidth := 600;
783    
784     FListStyle := TViewStyle(ini.ReadInteger('ViewStyle', 'ListView', Ord(vsReport)));
785    
786     FEditWindowTop := ini.ReadInteger('EditorWindowSize', 'Top', -1);
787     FEditWindowLeft := ini.ReadInteger('EditorWindowSize', 'Left', -1);
788     FEditWindowHeight := ini.ReadInteger('EditorWindowSize', 'Height', -1);
789     FEditWindowWidth := ini.ReadInteger('EditorWindowSize', 'Width', -1);
790     FEditWindowMax := ini.ReadBool('EditorWindowSize', 'Max', False);
791 deux 1.20 FEditWindowStay := ini.ReadBool('EditorWindowSize', 'Stay', False);
792 genyakun 1.48 FEditWindowTranslucent := ini.ReadBool('EditorWindowSize', 'Translucent', False);
793 hi_ 1.1
794 yoffy 1.14 FOptionDialogTabIndex := ini.ReadInteger('OptionDialog', 'TabIndex', 0);
795 yoffy 1.8
796 hi_ 1.1 //???若??????/span>
797     FStdToolBarVisible := ini.ReadBool('ToolBar', 'StdVisible', True);
798     FAddressBarVisible := ini.ReadBool('ToolBar', 'AddressVisible', True);
799     FLinkBarVisible := ini.ReadBool('ToolBar', 'LinkVisible', True);
800     FListToolBarVisible := ini.ReadBool('ToolBar', 'ListVisible', True);
801     FListNameBarVisible := ini.ReadBool('ToolBar', 'ListNameVisible', True);
802     FBrowserToolBarVisible := ini.ReadBool('ToolBar', 'BrowserVisible', True);
803     FBrowserNameBarVisible := ini.ReadBool('ToolBar', 'BrowserNameVisible', True);
804     //???若??????rapable
805     FListToolBarWrapable := ini.ReadBool('ToolBar', 'ListWrapable', False);
806     FBrowserToolBarWrapable := ini.ReadBool('ToolBar', 'BrowserWrapable', False);
807    
808     FBrowserTabVisible := ini.ReadBool('Tab', 'BrowserTabVisible', True);
809     FBrowserTabPosition := TGikoTabPosition(ini.ReadInteger('Tab', 'BrowserTabPosition', Ord(gtpTop)));
810     FBrowserTabAppend := TGikoTabAppend(ini.ReadInteger('Tab', 'BrowserTabAppend', Ord(gtaFirst)));
811     FBrowserTabStyle := TGikoTabStyle(ini.ReadInteger('Tab', 'BrowserTabStyle', Ord(gtsFlat)));
812    
813     FMessageBarVisible := ini.ReadBool('MessageBar', 'Visible', True);
814     FMessegeBarHeight := ini.ReadInteger('MessageBar', 'Height', 30);
815    
816     FStatusBarVisible := ini.ReadBool('StatusBar', 'Visible', True);
817    
818     FCabinetVisible := ini.ReadBool('Cabinet', 'Visible', True);
819     FCabinetWidth := ini.ReadInteger('Cabinet', 'Width', 200);
820 yoffy 1.14 FCabinetIndex := ini.ReadInteger('Cabinet', 'Index', 0);
821 hi_ 1.1
822     FListOrientation := TGikoListOrientation(ini.ReadInteger('List', 'Orientation', Ord(gloHorizontal)));
823     FListHeight := ini.ReadInteger('List', 'Height', 180);
824     FListHeightState := TGikoListState(ini.ReadInteger('List', 'HeightState', Ord(glsNormal)));
825     FListWidth := ini.ReadInteger('List', 'Width', 180);
826     FListWidthState := TGikoListState(ini.ReadInteger('List', 'WidthState', Ord(glsNormal)));
827     // FListHeightMax := ini.ReadBool('List', 'HeightMax', False);
828     // FListWidthMax := ini.ReadBool('List', 'WidthMax', False);
829    
830     wkList := TStringList.Create;
831     try
832     ini.ReadSection('Name', wkList);
833     for i := 0 to wkList.Count - 1 do begin
834     wkStr := ini.ReadString('Name', wkList[i], '');
835     if (wkStr <> '') and (FNameList.IndexOf(wkStr) = -1) then
836     FNameList.Add(wkStr);
837     end;
838     ini.ReadSection('Mail', wkList);
839     for i := 0 to wkList.Count - 1 do begin
840     wkStr := ini.ReadString('Mail', wkList[i], '');
841     if (wkStr <> '') and (FMailList.IndexOf(wkStr) = -1) then
842     FMailList.Add(wkStr);
843     end;
844     ini.ReadSection('SelectText', wkList);
845     for i := 0 to wkList.Count - 1 do begin
846     wkStr := ini.ReadString('SelectText', wkList[i], '');
847     if (wkStr <> '') and (FSelectTextList.IndexOf(wkStr) = -1) then
848     FSelectTextList.Add(wkStr);
849     end;
850     finally
851     wkList.Free;
852     end;
853    
854     //???鴻????????
855     wkList := TStringList.Create;
856     try
857     ini.ReadSection('BBSColumnWidth', wkList);
858     if Length(FBBSColumnWidth) <> wkList.Count then begin
859     ini.EraseSection('BBSColumnWidth');
860     end;
861     for i := 0 to Length(FBBSColumnWidth) - 1 do begin
862     BBSColumnWidth[i] := ini.ReadInteger('BBSColumnWidth', 'ID' + IntToStr(i), DEFAULT_BBS_WIDTH[i]);
863 q9_ 1.30 if BBSColumnWidth[i] > MAX_WIDTH then
864     BBSColumnWidth[i] := DEFAULT_BBS_WIDTH[i];
865 hi_ 1.1 end;
866     ini.ReadSection('CategoryColumnWidth', wkList);
867     if Length(FCategoryColumnWidth) <> wkList.Count then begin
868     ini.EraseSection('CategoryColumnWidth');
869     end;
870     for i := 0 to Length(FCategoryColumnWidth) - 1 do begin
871     CategoryColumnWidth[i] := ini.ReadInteger('CategoryColumnWidth', 'ID' + IntToStr(i), DEFAULT_CATEGORY_WIDTH[i]);
872 q9_ 1.30 if CategoryColumnWidth[i] > MAX_WIDTH then
873     CategoryColumnWidth[i] := DEFAULT_CATEGORY_WIDTH[i];
874 hi_ 1.1 end;
875     ini.ReadSection('BoardColumnWidth', wkList);
876     if Length(FBoardColumnWidth) <> wkList.Count then begin
877     ini.EraseSection('BoardColumnWidth');
878     end;
879     for i := 0 to Length(FBoardColumnWidth) - 1 do begin
880     BoardColumnWidth[i] := ini.ReadInteger('BoardColumnWidth', 'ID' + IntToStr(i), DEFAULT_BOARD_WIDTH[i]);
881 q9_ 1.30 if BoardColumnWidth[i] > MAX_WIDTH then
882     BoardColumnWidth[i] := DEFAULT_BOARD_WIDTH[i];
883 hi_ 1.1 end;
884     finally
885     wkList.Free;
886     end;
887    
888     //???鴻?????/span>
889     FListViewNo := ini.ReadBool('Function', 'ListViewNo', True);
890     //CSS
891 yoffy 1.17 UseCSS := ini.ReadBool('CSS', 'UseCSS', True);
892 hi_ 1.1 //CSS???<?ゃ????
893 yoffy 1.17 CSSFileName := ini.ReadString('CSS', 'FileName', 'default.css');
894 hi_ 1.1
895     //Mail罨?茵?ず
896     FShowMail := ini.ReadBool('Thread', 'ShowMail', True);
897 yoffy 1.49 // ???壕;腓榊???/span>
898     if ini.ReadBool('Thread', 'OnlyAHundredRes',false) then
899     FResRange := 100 // ?ゃ??荐?????????/span>
900     else
901 yoffy 1.50 FResRange := ini.ReadInteger( 'Thread', 'ResRange', 100 );
902 yoffy 1.51 FResRangeHold := ini.ReadBool( 'Thread', 'ResRangeHold', False );
903 yoffy 1.55 // ?鴻??????筝?荀ц;腓榊???/span>
904     FThreadRange := TGikoThreadRange( ini.ReadInteger('ThreadList', 'ThreadRange', Ord( gtrAll )) );
905 yoffy 1.2 //???≪?????c???????鴻???????≪????茵?ず
906 hi_ 1.1 FUnActivePopup := ini.ReadBool('Thread', 'UnActivePopup', False);
907 yoffy 1.2 //???鴻???????≪???????????若???若????
908     FResPopupHeaderBold := ini.ReadBool('Thread', 'ResPopupHeaderBold', True);
909 hi_ 1.1 //???ょ∈茯?
910     FDeleteMsg := ini.ReadBool('Function', 'LogDeleteMessage', True);
911 yoffy 1.14 //腟?篋?腆肴?
912     FShowDialogForEnd := ini.ReadBool('Function','ShowDialogForEnd',false);
913 h677 1.38 //AllTabClose
914     FShowDialogForAllTabClose := ini.ReadBool('Function','ShowDialogForAllTabClose',false);
915 genyakun 1.48 //Samba
916 h677 1.38 FUseSamba := ini.ReadBool('Function','UseSamba', True);
917     //ResAnchorjamp
918     ResAnchorJamp := ini.ReadBool('Function', 'ResAnchoJamp', True);
919 hi_ 1.1 //???違????????
920     FLogFolder := ini.ReadString('Folder', 'LogFolder', ExtractFilePath(Application.ExeName) + 'Log');
921     NewLogFolder := '';
922    
923     //??RL
924 yoffy 1.14 //茲??亥?脂?蚊?с??????????????BoardURLs????????2003/10/05
925 h677 1.11 //FBoardURL2ch := ini.ReadString('BoardURL', '2ch', DEFAULT_2CH_BOARD_URL);
926 hi_ 1.1
927     //茯?荐主?????若??D?祉???鴻???若??
928     FUserID := ini.ReadString('Attestation', 'UserID', '');
929     FPassword := Decrypt(ini.ReadString('Attestation', 'Password', ''));
930     FAutoLogin := ini.ReadBool('Attestation', 'AutoLogin', False);
931 h677 1.36 FForcedLogin := ini.ReadBool('Attestation', 'FForcedLogin', False);
932 h677 1.37 // FDolibURL := ini.ReadString('Attestation', 'FDolibURL', DOLIB_LOGIN_URL);
933 hi_ 1.1
934     //URL??????????莎桁???≪????/span>
935     FURLApp := ini.ReadBool('URLApp', 'Select', False);
936     FURLAppFile := ini.ReadString('URLApp', 'File', '');
937    
938     //mailto????????????篏?
939     FOpenMailer := ini.ReadBool('Mailto', 'Open', True);
940    
941     //???????≪????篏?臀?/span>
942     FPopupPosition := TGikoPopupPosition(ini.ReadInteger('Browser', 'PopupPosition', Ord(gppLeftBottom)));
943    
944     //?≪?????鴻????/span>
945     FURLDisplay := ini.ReadBool('AddressBar', 'URLDisplay', False);
946     FAddressBarTabStop := ini.ReadBool('AddressBar', 'TabStop', True);
947     FLinkAddAddressBar := ini.ReadBool('AddressBar', 'LinkAdd', False);
948     FAddressHistoryCount := ini.ReadInteger('AddressBar', 'HistoryCount', 100);
949    
950     //?糸????????ャ??/span>
951     FPreviewVisible := ini.ReadBool('Browser', 'PreviewVisible', True);
952     FPreviewSize := TGikoPreviewSize(ini.ReadInteger('Browser', 'PreviewSize', Ord(gpsMedium)));
953     FPreviewWait := ini.ReadInteger('Browser', 'PreviewWait', 500);
954    
955 yoffy 1.39 // ????????/span>
956     FBrowserAutoMaximize := TGikoBrowserAutoMaximize(
957     ini.ReadInteger('Window', 'BrowserAutoMaximize', Ord(gbmDoubleClick)) );
958    
959 hi_ 1.1 //?鴻??????筝?荀ф?贋?違?≪?ゃ?潟??/span>
960     FListIconVisible := ini.ReadBool('ThreadList', 'StateIconVisible', True);
961 q9_ 1.44 FNonAcquiredCount := ini.ReadBool('ThreadList', 'NonAcquiredCount', False);
962     FCreationTimeLogs := ini.ReadBool('ThreadList', 'CreationTimeLogs', True);
963 h677 1.43 FFutureThread := ini.ReadBool('ThreadList', 'FutureThread', True);
964     FSelectInterval := ini.ReadInteger('ThreadList', 'SelectInterval', 110);
965 q9_ 1.46 //?純?若????
966     FBBSSortIndex := ini.ReadInteger('ThreadList', 'BBSSortIndex', 0);
967     FBBSSortOrder := ini.ReadBool('ThreadList', 'BBSSortOrder', False);
968     FCategorySortIndex := ini.ReadInteger('ThreadList', 'CategorySortIndex', 0);
969     FCategorySortOrder := ini.ReadBool('ThreadList', 'CategorySortOrder', False);
970     FBoardSortIndex := ini.ReadInteger('ThreadList', 'BoardSortIndex', 0);
971     FBoardSortOrder := ini.ReadBool('ThreadList', 'BoardSortOrder', False);
972 q9_ 1.53 //Dat?純?<?鴻???純?若????
973     FDatOchiSortIndex := ini.ReadInteger('ThreadList', 'DatOchiSortIndex', -1);
974     FDatOchiSortOrder := ini.ReadBool('ThreadList', 'DatOchiSortOrder', False);
975 hi_ 1.1
976     //?吾??莨若?炊?????激?恰???私戎??┃絎?
977     FUseMachineTime := ini.ReadBool('PostTime', 'UseMachineTime', False);
978     FTimeAdjustSec := ini.ReadInteger('PostTime', 'TimeAdjustSec', 0);
979     FTimeAdjust := ini.ReadBool('PostTime', 'TimeAdjust', True);
980    
981     //?泣???潟??
982     if Exists then begin
983     for i := 0 to GetSoundCount - 1 do begin
984     SoundFileName[i] := ini.ReadString('Sound', SoundName[i], '');
985     if not FileExists(SoundFileName[i]) then
986     SoundFileName[i] := '';
987     end;
988     end else begin
989     s := ExtractFileDir(Application.ExeName) + '\sound\';
990     SoundFileName[0] := s + '??緇?????.wav';
991     SoundFileName[1] := s + '??緇?????(綏???).wav';
992     SoundFileName[2] := s + '???贋??wav';
993     SoundFileName[3] := '';
994     SoundFileName[4] := s + '??????wav';
995     end;
996    
997     //???若??????/span>
998     for i := 0 to MAIN_COOLBAND_COUNT - 1 do begin
999     CoolSet.FCoolID := ini.ReadInteger('MainCoolBar', 'ID' + IntToStr(i), -1);
1000     CoolSet.FCoolWidth := ini.ReadInteger('MainCoolBar', 'Width' + IntToStr(i), -1);
1001     CoolSet.FCoolBreak := ini.ReadBool('MainCoolBar', 'Break' + IntToStr(i), False);
1002     MainCoolSet[i] := CoolSet;
1003     end;
1004 yoffy 1.14 FSelectComboBoxWidth := ini.ReadInteger( 'ListCoolBar', 'SelectWidth', 127 );
1005 hi_ 1.1 for i := 0 to LIST_COOLBAND_COUNT - 1 do begin
1006     CoolSet.FCoolID := ini.ReadInteger('ListCoolBar', 'ID' + IntToStr(i), -1);
1007     CoolSet.FCoolWidth := ini.ReadInteger('ListCoolBar', 'Width' + IntToStr(i), -1);
1008     CoolSet.FCoolBreak := ini.ReadBool('ListCoolBar', 'Break' + IntToStr(i), False);
1009 yoffy 1.2 ListCoolSet[i] := CoolSet;
1010 hi_ 1.1 end;
1011     for i := 0 to BROWSER_COOLBAND_COUNT - 1 do begin
1012     CoolSet.FCoolID := ini.ReadInteger('BrowserCoolBar', 'ID' + IntToStr(i), -1);
1013     CoolSet.FCoolWidth := ini.ReadInteger('BrowserCoolBar', 'Width' + IntToStr(i), -1);
1014     CoolSet.FCoolBreak := ini.ReadBool('BrowserCoolBar', 'Break' + IntToStr(i), False);
1015     BrowserCoolSet[i] := CoolSet;
1016     end;
1017 h677 1.3
1018 yoffy 1.14 //???若????
1019     FAbonDeleterlo := ini.ReadBool('Abon','Deleterlo',false);
1020     FAbonReplaceul := ini.ReadBool('Abon','Replaceul',false);
1021     FPopUpAbon := ini.ReadBool('Abon','Popup',false);
1022     FShowNGLinesNum := ini.ReadBool('Abon','ShowNGLines',false);
1023     FAddResAnchor := ini.ReadBool('Abon','AddResAnchor',false);
1024 genyakun 1.48 FDeleteSyria := ini.ReadBool('Abon','DeleteSyria',false);
1025 yoffy 1.40
1026     // ?????c??/span>
1027     FSpaceToNBSP := ini.ReadBool( 'Editor', 'SpaceToNBSP', True );
1028 yoffy 1.42 FAmpToCharRef := ini.ReadBool( 'Editor', 'AmpToCharRef', False );
1029 h677 1.43
1030 genyakun 1.47 //Tab????篆?絖???茯??粋昭??/span>
1031 genyakun 1.56 FTabAutoLoadSave := ini.ReadBool('TabAuto', 'TabAutoLoadSave', False);
1032 genyakun 1.47
1033 h677 1.43
1034 hi_ 1.1 finally
1035     ini.Free;
1036     end;
1037     end;
1038 h677 1.11 //?炊?贋?亥??RL茯??粋昭??/span>
1039     procedure TSetting.ReadBoardURLsFile();
1040     var
1041     ini: TMemIniFile;
1042 yoffy 1.14 urlNum: Integer;
1043     i : Integer;
1044 h677 1.11 begin
1045 yoffy 1.14 if not FileExists(GetBoardURLFileName()) then
1046     MakeURLIniFile();
1047 h677 1.11 ini := TMemIniFile.Create(GetBoardURLFileName());
1048 yoffy 1.14 try
1049     urlNum := ini.ReadInteger('URL','count',0);
1050     BoardURLSelected := ini.ReadInteger('URL','selected',0);
1051     for i := 0 to urlNum - 1 do begin
1052     FBoardURLs.Append(ini.ReadString('URL',IntToStr(i+1),''));
1053     end;
1054     finally
1055     ini.Free;
1056     end;
1057 hi_ 1.1
1058 h677 1.11 end;
1059 hi_ 1.1 //荐?????<?ゃ???絖?(system)
1060     procedure TSetting.WriteSystemSettingFile();
1061     var
1062     ini: TMemIniFile;
1063     begin
1064     ini := TMemIniFile.Create(GetFileName());
1065     try
1066     //??篆<???????<?泣?ゃ??/span>
1067     ini.WriteInteger('HTTP', 'RecvBufferSize', FRecvBufferSize);
1068     //HTTP1.1篏睡??/span>
1069     ini.WriteBool('HTTP', 'Protocol', FProtocol);
1070     //???????傑・膓?HTTP1.1篏睡??/span>
1071     ini.WriteBool('HTTP', 'ProxyProtocol', FProxyProtocol);
1072    
1073     ini.WriteBool('ReadProxy', 'Proxy', FReadProxy);
1074     ini.WriteString('ReadProxy', 'Address', FReadProxyAddress);
1075     ini.WriteInteger('ReadProxy', 'Port', FReadProxyPort);
1076     ini.WriteString('ReadProxy', 'UserID', FReadProxyUserID);
1077     ini.WriteString('ReadProxy', 'Password', FReadProxyPassword);
1078    
1079     ini.WriteBool('WriteProxy', 'Proxy', FWriteProxy);
1080     ini.WriteString('WriteProxy', 'Address', FWriteProxyAddress);
1081     ini.WriteInteger('WriteProxy', 'Port', FWriteProxyPort);
1082     ini.WriteString('WriteProxy', 'UserID', FWriteProxyUserID);
1083     ini.WriteString('WriteProxy', 'Password', FWriteProxyPassword);
1084    
1085 yoffy 1.6 ini.WriteString('Window', 'BrowserFontName', FBrowserFontName);
1086     ini.WriteInteger('Window', 'BrowserFontSize', FBrowserFontSize);
1087     ini.WriteInteger('Window', 'BrowserFontSize', FBrowserFontSize);
1088     ini.WriteInteger('Window', 'BrowserFontBold', FBrowserFontBold);
1089     ini.WriteInteger('Window', 'BrowserFontItalic', FBrowserFontItalic);
1090     ini.WriteInteger('Window', 'BrowserFontColor', FBrowserFontColor);
1091     ini.WriteInteger('Window', 'BrowserBackColor', FBrowserBackColor);
1092    
1093 hi_ 1.1 ini.WriteString('Window', 'CabinetFontName', FCabinetFontName);
1094     ini.WriteInteger('Window', 'CabinetFontSize', FCabinetFontSize);
1095     ini.WriteString('Window', 'CabinetFontColor', ColorToString(FCabinetFontColor));
1096     ini.WriteString('Window', 'CabinetBackColor', ColorToString(FCabinetBackColor));
1097    
1098     ini.WriteString('Window', 'ListFontName', FListFontName);
1099     ini.WriteInteger('Window', 'ListFontSize', FListFontSize);
1100     ini.WriteString('Window', 'ListFontColor', ColorToString(FListFontColor));
1101     ini.WriteString('Window', 'ListBackColor', ColorToString(FListBackColor));
1102 genyakun 1.48 ini.WriteBool('Window','UseOddColor',FUseOddColorOddResNum);
1103     ini.WriteString('Window', 'OddColor',ColorToString(FOddColor));
1104 hi_ 1.1
1105     ini.WriteString('Window', 'EditorFontName', FEditorFontName);
1106     ini.WriteInteger('Window', 'EditorFontSize', FEditorFontSize);
1107     ini.WriteString('Window', 'EditorFontColor', ColorToString(FEditorFontColor));
1108     ini.WriteString('Window', 'EditorBackColor', ColorToString(FEditorBackColor));
1109    
1110     ini.WriteString('Window', 'BrowserTabFontName', FBrowserTabFontName);
1111     ini.WriteInteger('Window', 'BrowserTabFontSize', FBrowserTabFontSize);
1112     ini.WriteBool('Window', 'BrowserTabFontBold', FBrowserTabFontBold);
1113     ini.WriteBool('Window', 'BrowserTabFontItalic', FBrowserTabFontItalic);
1114    
1115     ini.WriteString('Window', 'HintFontName', FHintFontName);
1116     ini.WriteInteger('Window', 'HintFontSize', FHintFontSize);
1117     ini.WriteString('Window', 'HintFontColor', ColorToString(FHintFontColor));
1118     ini.WriteString('Window', 'HintBackColor', ColorToString(FHintBackColor));
1119    
1120     ini.UpdateFile;
1121     finally
1122     ini.Free;
1123     end;
1124     end;
1125    
1126     //荐?????<?ゃ???絖?(window)
1127     procedure TSetting.WriteWindowSettingFile();
1128     var
1129     i: Integer;
1130     ini: TMemIniFile;
1131     CoolSet: TCoolSet;
1132     begin
1133     ini := TMemIniFile.Create(GetFileName());
1134     try
1135     ini.WriteInteger('WindowSize', 'Top', WindowTop);
1136     ini.WriteInteger('WindowSize', 'Left', WindowLeft);
1137     ini.WriteInteger('WindowSize', 'Height', WindowHeight);
1138     ini.WriteInteger('WindowSize', 'Width', WindowWidth);
1139     ini.WriteBool('WindowSize', 'Max', WindowMax);
1140    
1141     ini.WriteInteger('ViewStyle', 'ListView', Ord(ListStyle));
1142    
1143     ini.WriteInteger('EditorWindowSize', 'Top', EditWindowTop);
1144     ini.WriteInteger('EditorWindowSize', 'Left', EditWindowLeft);
1145     ini.WriteInteger('EditorWindowSize', 'Height', EditWindowHeight);
1146     ini.WriteInteger('EditorWindowSize', 'Width', EditWindowWidth);
1147     ini.WriteBool('EditorWindowSize', 'Max', EditWindowMax);
1148 deux 1.20 ini.WriteBool('EditorWindowSize', 'Stay', EditWindowStay);
1149 yoffy 1.34 ini.WriteBool('EditorWindowSize', 'Translucent', EditWindowTranslucent);
1150 hi_ 1.1
1151 yoffy 1.14 ini.WriteInteger('OptionDialog', 'TabIndex', FOptionDialogTabIndex);
1152 yoffy 1.8
1153 hi_ 1.1 //???若??????/span>
1154     ini.WriteBool('ToolBar', 'StdVisible', FStdToolBarVisible);
1155     ini.WriteBool('ToolBar', 'AddressVisible', FAddressBarVisible);
1156     ini.WriteBool('ToolBar', 'LinkVisible', FLinkBarVisible);
1157     ini.WriteBool('ToolBar', 'ListVisible', FListToolBarVisible);
1158     ini.WriteBool('ToolBar', 'ListNameVisible', FListNameBarVisible);
1159     ini.WriteBool('ToolBar', 'BrowserVisible', FBrowserToolBarVisible);
1160     ini.WriteBool('ToolBar', 'BrowserNameVisible', FBrowserNameBarVisible);
1161     //???若??????rapable
1162     ini.WriteBool('ToolBar', 'ListWrapable', FListToolBarWrapable);
1163     ini.WriteBool('ToolBar', 'BrowserWrapable', FBrowserToolBarWrapable);
1164    
1165     //?帥??
1166     ini.WriteBool('Tab', 'BrowserTabVisible', FBrowserTabVisible);
1167     ini.WriteInteger('Tab', 'BrowserTabPosition', Ord(FBrowserTabPosition));
1168     ini.WriteInteger('Tab', 'BrowserTabAppend', Ord(FBrowserTabAppend));
1169     ini.WriteInteger('Tab', 'BrowserTabStyle', Ord(FBrowserTabStyle));
1170    
1171     //?<???祉?若?吾????/span>
1172     ini.WriteBool('MessageBar', 'Visible', FMessageBarVisible);
1173     ini.WriteInteger('MessageBar', 'Height', FMessegeBarHeight);
1174    
1175     //?鴻???若?帥?鴻????/span>
1176     ini.WriteBool('StatusBar', 'Visible', FStatusBarVisible);
1177    
1178     //???c????????
1179     ini.WriteBool('Cabinet', 'Visible', FCabinetVisible);
1180     ini.WriteInteger('Cabinet', 'Width', FCabinetWidth);
1181 yoffy 1.14 ini.WriteInteger('Cabinet', 'Index', FCabinetIndex);
1182 hi_ 1.1
1183     //???鴻?????泣?ゃ?冴?????贋梓綛?/span>
1184     ini.WriteInteger('List', 'Orientation', Ord(FListOrientation));
1185     ini.WriteInteger('List', 'Height', FListHeight);
1186     ini.WriteInteger('List', 'HeightState', Ord(FListHeightState));
1187     ini.WriteInteger('List', 'Width', FListWidth);
1188     ini.WriteInteger('List', 'WidthState', Ord(FListWidthState));
1189     // ini.WriteBool('List', 'HeightMax', FListHeightMax);
1190     // ini.WriteBool('List', 'WidthMax', FListWidthMax);
1191    
1192    
1193     // ini.WriteInteger('Window', 'BrowserFontSize', BrowserFontSize);
1194    
1195     //???鴻????埈;腓?/span>
1196     ini.WriteBool('Function', 'ListViewNo', FListViewNo);
1197     //CSS篏睡??/span>
1198     ini.WriteBool('CSS', 'UseCSS', FUseCSS);
1199     //CSS???<?ゃ????
1200     ini.WriteString('CSS', 'FileName', FCSSFileName);
1201     //Mail罨?茵?ず
1202     ini.WriteBool('Thread', 'ShowMail', FShowMail);
1203 yoffy 1.49 // ???壕;腓榊???/span>
1204     ini.WriteInteger('Thread', 'ResRange', FResRange);
1205 yoffy 1.51 ini.WriteBool('Thread', 'ResRangeHold', FResRangeHold);
1206 yoffy 1.55 // ?鴻??????筝?荀ц;腓榊???/span>
1207     ini.WriteInteger('ThreadList', 'ThreadRange', Ord( FThreadRange ));
1208 hi_ 1.1 //???医???ょ∈茯?
1209     ini.WriteBool('Function', 'LogDeleteMessage', FDeleteMsg);
1210 yoffy 1.14 //腟?篋?腆肴?
1211     ini.WriteBool('Function','ShowDialogForEnd',FShowDialogForEnd);
1212 h677 1.38 //AllTabClose
1213     ini.WriteBool('Function','ShowDialogForAllTabClose', FShowDialogForAllTabClose);
1214 yoffy 1.34 //Samba
1215     ini.WriteBool('Function','UseSamba', FUseSamba);
1216 h677 1.38 //ResAnchorjamp
1217     ini.WriteBool('Function', 'ResAnchoJamp', ResAnchorJamp);
1218 h677 1.33
1219 hi_ 1.1 //???≪?????c???????????≪????茵?ず
1220     ini.WriteBool('Thread', 'UnActivePopup', FUnActivePopup);
1221 yoffy 1.2 //???鴻???????≪???????????若???若????
1222     ini.WriteBool('Thread', 'ResPopupHeaderBold', FResPopupHeaderBold);
1223 h677 1.11 //ini.WriteString('BoardURL', '2ch', FBoardURL2ch);
1224 hi_ 1.1
1225     //茯?荐主?????若??D?祉???鴻???若??
1226     ini.WriteString('Attestation', 'UserID', FUserID);
1227     ini.WriteString('Attestation', 'Password', Encrypt(FPassword));
1228     ini.WriteBool('Attestation', 'AutoLogin', FAutoLogin);
1229 h677 1.36 ini.WriteBool('Attestation', 'FForcedLogin', FForcedLogin);
1230     ini.WriteString('Attestation', 'FDolibURL', FDolibURL);
1231 hi_ 1.1
1232     //URL??????????莎桁???≪????/span>
1233     ini.WriteBool('URLApp', 'Select', FURLApp);
1234     ini.WriteString('URLApp', 'File', FURLAppFile);
1235    
1236     //mailto????????????篏?
1237     ini.WriteBool('Mailto', 'Open', FOpenMailer);
1238    
1239     //???????≪????篏?臀?/span>
1240     ini.WriteInteger('Browser', 'PopupPosition', Ord(FPopupPosition));
1241    
1242     //?≪?????鴻????/span>
1243     ini.WriteBool('AddressBar', 'URLDisplay', FURLDisplay);
1244     ini.WriteBool('AddressBar', 'TabStop', FAddressBarTabStop);
1245     ini.WriteBool('AddressBar', 'LinkAdd', FLinkAddAddressBar);
1246     ini.WriteInteger('AddressBar', 'HistoryCount', FAddressHistoryCount);
1247    
1248     //?糸????????ャ??/span>
1249     ini.WriteBool('Browser', 'PreviewVisible', FPreviewVisible);
1250     ini.WriteInteger('Browser', 'PreviewSize', Ord(FPreviewSize));
1251     ini.WriteInteger('Browser', 'PreviewWait', FPreviewWait);
1252 yoffy 1.39 ini.WriteInteger('Browser', 'AutoMaximize', Ord( FBrowserAutoMaximize ) );
1253 hi_ 1.1
1254     //?鴻??????筝?荀ф?贋?違?≪?ゃ?潟??/span>
1255     ini.WriteBool('ThreadList', 'StateIconVisible', FListIconVisible);
1256 q9_ 1.44 ini.WriteBool('ThreadList', 'NonAcquiredCount', FNonAcquiredCount);
1257 yoffy 1.34 ini.WriteBool('ThreadList', 'CreationTimeLogs',FCreationTimeLogs);
1258     ini.WriteBool('ThreadList', 'FutureThread', FFutureThread);
1259 q9_ 1.44 ini.WriteInteger('ThreadList', 'SelectInterval', FSelectInterval);
1260 q9_ 1.46 //?純?若????
1261     ini.WriteInteger('ThreadList', 'BBSSortIndex', FBBSSortIndex);
1262     ini.WriteBool('ThreadList', 'BBSSortOrder', FBBSSortOrder);
1263     ini.WriteInteger('ThreadList', 'CategorySortIndex', FCategorySortIndex);
1264     ini.WriteBool('ThreadList', 'CategorySortOrder', FCategorySortOrder);
1265     ini.WriteInteger('ThreadList', 'BoardSortIndex', FBoardSortIndex);
1266     ini.WriteBool('ThreadList', 'BoardSortOrder', FBoardSortOrder);
1267 q9_ 1.53 ini.WriteInteger('ThreadList', 'DatOchiSortIndex', FDatOchiSortIndex);
1268     ini.WriteBool('ThreadList', 'DatOchiSortOrder', FDatOchiSortOrder);
1269 hi_ 1.1
1270     //?吾??莨若?炊?????激?恰???私戎??┃絎?
1271     ini.WriteBool('PostTime', 'UseMachineTime', FUseMachineTime);
1272     ini.WriteInteger('PostTime', 'TimeAdjustSec', FTimeAdjustSec);
1273     ini.WriteBool('PostTime', 'TimeAdjust', FTimeAdjust);
1274    
1275     //???鴻????????
1276     for i := 0 to Length(FBBSColumnWidth) - 1 do begin
1277     ini.WriteInteger('BBSColumnWidth', 'ID' + IntToStr(i), FBBSColumnWidth[i]);
1278     end;
1279     for i := 0 to Length(FCategoryColumnWidth) - 1 do begin
1280     ini.WriteInteger('CategoryColumnWidth', 'ID' + IntToStr(i), FCategoryColumnWidth[i]);
1281     end;
1282     for i := 0 to Length(FBoardColumnWidth) - 1 do begin
1283     ini.WriteInteger('BoardColumnWidth', 'ID' + IntToStr(i), FBoardColumnWidth[i]);
1284     end;
1285    
1286     //?泣???潟??
1287     for i := 0 to GetSoundCount - 1 do begin
1288     if not FileExists(SoundFileName[i]) then
1289     SoundFileName[i] := '';
1290     ini.WriteString('Sound', SoundName[i], SoundFileName[i]);
1291     end;
1292    
1293     //CoolBar
1294     ini.EraseSection('MainCoolBar');
1295     for i := 0 to MAIN_COOLBAND_COUNT - 1 do begin
1296     CoolSet := MainCoolSet[i];
1297     ini.WriteInteger('MainCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1298     ini.WriteInteger('MainCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1299     ini.WriteBool('MainCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1300     end;
1301 yoffy 1.2 ini.EraseSection('ListCoolBar');
1302 yoffy 1.14 ini.WriteInteger( 'ListCoolBar', 'SelectWidth', FSelectComboBoxWidth );
1303 hi_ 1.1 for i := 0 to LIST_COOLBAND_COUNT - 1 do begin
1304     CoolSet := ListCoolSet[i];
1305     ini.WriteInteger('ListCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1306     ini.WriteInteger('ListCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1307     ini.WriteBool('ListCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1308     end;
1309     ini.EraseSection('BrowserCoolBar');
1310     for i := 0 to BROWSER_COOLBAND_COUNT - 1 do begin
1311     CoolSet := BrowserCoolSet[i];
1312     ini.WriteInteger('BrowserCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1313     ini.WriteInteger('BrowserCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1314     ini.WriteBool('BrowserCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1315     end;
1316 h677 1.3
1317 h677 1.9 //???若????
1318     ini.WriteBool('Abon','Deleterlo',FAbonDeleterlo);
1319     ini.WriteBool('Abon','Replaceul',FAbonReplaceul);
1320 yoffy 1.14 ini.WriteBool('Abon','Popup',FPopUpAbon);
1321 h677 1.9 ini.WriteBool('Abon','ShowNGLines',FShowNGLinesNum);
1322     ini.WriteBool('Abon','AddResAnchor',FAddResAnchor);
1323 yoffy 1.40 ini.WriteBool('Abon','DeleteSyria',FDeleteSyria);
1324    
1325     // ?????c??/span>
1326     ini.WriteBool( 'Editor', 'SpaceToNBSP', FSpaceToNBSP );
1327 yoffy 1.41 ini.WriteBool( 'Editor', 'AmpToCharRef', FAmpToCharRef );
1328 hi_ 1.1
1329 h677 1.57 ini.WriteBool('TabAuto', 'TabAutoLoadSave', FTabAutoLoadSave);
1330 genyakun 1.52
1331 hi_ 1.1 ini.UpdateFile;
1332     finally
1333     ini.Free;
1334     end;
1335     end;
1336    
1337     //荐?????<?ゃ???絖?(name & mail)
1338     procedure TSetting.WriteNameMailSettingFile();
1339     var
1340     i: Integer;
1341     ini: TMemIniFile;
1342     begin
1343     ini := TMemIniFile.Create(GetFileName());
1344     try
1345     ini.EraseSection('Name');
1346     ini.EraseSection('Mail');
1347     ini.EraseSection('SelectText');
1348     for i := 0 to FNameList.Count - 1 do begin
1349     ini.WriteString('Name', Format('%.2d', [i + 1]), FNameList[i]);
1350     if i >= 39 then
1351     Break;
1352     end;
1353     for i := 0 to FMailList.Count - 1 do begin
1354     ini.WriteString('Mail', Format('%.2d', [i + 1]), FMailList[i]);
1355     if i >= 39 then
1356     Break;
1357     end;
1358     for i := 0 to FSelectTextList.Count - 1 do begin
1359     ini.WriteString('SelectText', Format('%.2d', [i + 1]), FSelectTextList[i]);
1360     if i >= 39 then
1361     Break;
1362     end;
1363     ini.UpdateFile;
1364     finally
1365     ini.Free;
1366     end;
1367     end;
1368    
1369     procedure TSetting.WriteFolderSettingFile();
1370     var
1371     ini: TMemIniFile;
1372     begin
1373     ini := TMemIniFile.Create(GetFileName());
1374     try
1375     if ExtractFilePath(Application.ExeName) + 'Log' = NewLogFolder then
1376     ini.DeleteKey('Folder', 'LogFolder')
1377     else
1378     ini.WriteString('Folder', 'LogFolder', NewLogFolder);
1379     ini.UpdateFile;
1380     finally
1381     ini.Free;
1382     end;
1383     end;
1384 h677 1.11 //?炊?贋?亥??oardURL??篆?絖?
1385     procedure TSetting.WriteBoardURLSettingFile();
1386     var
1387     ini: TMemIniFile;
1388 yoffy 1.14 i : Integer;
1389     oldcount : Integer;
1390 h677 1.11 begin
1391     ini := TMemIniFile.Create(GetBoardURLFileName());
1392     try
1393 yoffy 1.14 oldcount := ini.ReadInteger('URL','count',FBoardURLs.Count);
1394     ini.WriteInteger('URL','count',FBoardURLs.Count);
1395     ini.WriteInteger('URL','selected',BoardURLSelected);
1396     for i := 0 to FBoardURLs.Count -1 do begin
1397     ini.WriteString('URL',IntToStr(i+1),FBoardURLs.Strings[i]);
1398     end;
1399     if oldcount > FBoardURLs.Count then begin
1400     for i := FBoardURLs.Count to oldcount do begin
1401     ini.DeleteKey('URL',IntToStr(i+1));
1402     end;
1403     end;
1404 h677 1.11 ini.UpdateFile;
1405     finally
1406     ini.Free;
1407     end;
1408     end;
1409 hi_ 1.1
1410 yoffy 1.28 {$R-}
1411 hi_ 1.1 //???鴻????????????????/span>
1412     function TSetting.GetBBSColumnWidth(index: Integer): Integer;
1413     begin
1414     Result := IfThen(index in [0..Length(FBBSColumnWidth) - 1], FBBSColumnWidth[index], 0);
1415     end;
1416    
1417     function TSetting.GetCategoryColumnWidth(index: Integer): Integer;
1418     begin
1419     Result := IfThen(index in [0..Length(FCategoryColumnWidth) - 1], FCategoryColumnWidth[index], 0);
1420     end;
1421    
1422     function TSetting.GetBoardColumnWidth(index: Integer): Integer;
1423     begin
1424     Result := IfThen(index in [0..Length(FBoardColumnWidth) - 1], FBoardColumnWidth[index], 0);
1425     end;
1426 yoffy 1.28 {$IFDEF DEBUG}
1427     {$R+}
1428     {$ENDIF}
1429 hi_ 1.1
1430     procedure TSetting.SetBBSColumnWidth(index: Integer; value: Integer);
1431     begin
1432     if index in [0..Length(FBBSColumnWidth) - 1] then
1433     FBBSColumnWidth[index] := value;
1434     end;
1435    
1436     procedure TSetting.SetCategoryColumnWidth(index: Integer; value: Integer);
1437     begin
1438     if index in [0..Length(FCategoryColumnWidth) - 1] then
1439     FCategoryColumnWidth[index] := value;
1440     end;
1441    
1442     procedure TSetting.SetBoardColumnWidth(index: Integer; value: Integer);
1443     begin
1444     if index in [0..Length(FBoardColumnWidth) - 1] then
1445     FBoardColumnWidth[index] := value;
1446     end;
1447    
1448     function TSetting.GetSoundCount: Integer;
1449     begin
1450     Result := Length(SOUND_NAME);
1451     end;
1452    
1453     function TSetting.GetSoundName(Index: Integer): string;
1454     begin
1455     if (Index < GetSoundCount) and (Index >= 0) then
1456     Result := SOUND_NAME[Index].Name
1457     else
1458     Result := '';
1459     end;
1460    
1461     function TSetting.GetSoundViewName(Index: Integer): string;
1462     begin
1463     if (Index < GetSoundCount) and (Index >= 0) then
1464     Result := SOUND_NAME[Index].ViewName
1465     else
1466     Result := '';
1467     end;
1468    
1469     function TSetting.GetSoundFileName(Index: Integer): string;
1470     begin
1471     if (Index < GetSoundCount) and (Index >= 0) then
1472     Result := SOUND_NAME[Index].FileName
1473     else
1474     Result := '';
1475     end;
1476    
1477     procedure TSetting.SetSoundFileName(Index: Integer; value: string);
1478     begin
1479     if (Index < GetSoundCount) and (Index >= 0) then
1480     SOUND_NAME[Index].FileName := value;
1481     end;
1482    
1483     function TSetting.FindSoundFileName(Name: string): string;
1484     var
1485     i: Integer;
1486     begin
1487     for i := 0 to GetSoundCount - 1 do begin
1488     if SoundName[i] = Name then begin
1489     Result := SoundFileName[i];
1490     Exit;
1491     end;
1492     end;
1493     Result := '';
1494     end;
1495    
1496     function TSetting.Encrypt(s: string): string;
1497     var
1498     cryptObj: THogeCryptAuto;
1499     inputStream, outputStream: TStringStream;
1500     begin
1501     inputStream := TStringStream.Create(s);
1502     outputStream := TStringStream.Create('');
1503     cryptObj := THogeCryptAuto.Create;
1504     try
1505     // ???桁??
1506     cryptObj.Encrypt(inputStream, GIKO_ENCRYPT_TEXT, outputStream);
1507    
1508     // ???ゃ?????????у?荀?????????????鴻???????
1509     Result := HogeBase64Encode(outputStream.DataString);
1510     finally
1511     cryptObj.Free;
1512     outputStream.Free;
1513     inputStream.Free;
1514     end;
1515     end;
1516    
1517     function TSetting.Decrypt(s: string): string;
1518     var
1519     cryptObj: THogeCryptAuto;
1520     inputStream, outputStream: TStringStream;
1521     begin
1522     try
1523     inputStream := TStringStream.Create(HogeBase64Decode(s));
1524     except
1525     Result := '';
1526     Exit;
1527     end;
1528     outputStream := TStringStream.Create('');
1529     cryptObj := THogeCryptAuto.Create;
1530     try
1531     // 緇??/span>
1532     cryptObj.Decrypt(inputStream, GIKO_ENCRYPT_TEXT, outputStream);
1533     Result := outputStream.DataString;
1534     finally
1535     cryptObj.Free;
1536     outputStream.Free;
1537     inputStream.Free;
1538     end;
1539     end;
1540    
1541     function TSetting.GetMainCoolSet(Index: Integer): TCoolSet;
1542     begin
1543     if Index in [0..MAIN_COOLBAND_COUNT - 1] then
1544     Result := FMainCoolBar[Index]
1545     else begin
1546     Result.FCoolID := -1;
1547     Result.FCoolWidth := -1;
1548     Result.FCoolBreak := False;
1549     end;
1550     end;
1551    
1552     function TSetting.GetBoardCoolSet(Index: Integer): TCoolSet;
1553     begin
1554     if Index in [0..LIST_COOLBAND_COUNT - 1] then
1555     Result := FListCoolBar[Index]
1556     else begin
1557     Result.FCoolID := -1;
1558     Result.FCoolWidth := -1;
1559     Result.FCoolBreak := False;
1560     end;
1561     end;
1562    
1563     function TSetting.GetBrowserCoolSet(Index: Integer): TCoolSet;
1564     begin
1565     if Index in [0..BROWSER_COOLBAND_COUNT - 1] then
1566     Result := FBrowserCoolBar[Index]
1567     else begin
1568     Result.FCoolID := -1;
1569     Result.FCoolWidth := -1;
1570     Result.FCoolBreak := False;
1571     end;
1572     end;
1573    
1574     procedure TSetting.SetMainCoolSet(Index: Integer; CoolSet: TCoolSet);
1575     begin
1576     if Index in [0..MAIN_COOLBAND_COUNT - 1] then
1577     FMainCoolBar[Index] := CoolSet;
1578     end;
1579    
1580     procedure TSetting.SetBoardCoolSet(Index: Integer; CoolSet: TCoolSet);
1581     begin
1582     if Index in [0..LIST_COOLBAND_COUNT - 1] then
1583     FListCoolBar[Index] := CoolSet;
1584     end;
1585    
1586     procedure TSetting.SetBrowserCoolSet(Index: Integer; CoolSet: TCoolSet);
1587     begin
1588     if Index in [0..BROWSER_COOLBAND_COUNT - 1] then
1589     FBrowserCoolBar[Index] := CoolSet;
1590     end;
1591    
1592 h677 1.11 //url.ini????????????????????
1593     procedure TSetting.MakeURLIniFile();
1594     var
1595     ini: TMemIniFile;
1596     begin
1597     ini := TMemIniFile.Create(GetBoardURLFileName());
1598     try
1599 yoffy 1.14 ini.WriteInteger('URL','count',2);
1600     ini.WriteInteger('URL','selected',2);
1601     ini.WriteString('URL','1',DEFAULT_2CH_BOARD_URL1);
1602     ini.WriteString('URL','2',DEFAULT_2CH_BOARD_URL2);
1603 h677 1.11 ini.UpdateFile;
1604     finally
1605     ini.Free;
1606     end;
1607 yoffy 1.14 end;
1608    
1609     (*************************************************************************
1610     *???若?????<?ゃ??????緇?鐚????刻????<?ゃ????鐚?
1611     *************************************************************************)
1612     function TSetting.GetBoardFileName: string;
1613     begin
1614     Result := GetAppDir + CONFIG_DIR_NAME + '\' + BOARD_FILE_NAME;
1615     end;
1616    
1617     (*************************************************************************
1618     *???若?????<?ゃ??????緇?鐚????刻????<?ゃ????鐚?
1619     *************************************************************************)
1620     function TSetting.GetCustomBoardFileName: string;
1621     begin
1622     Result := GetAppDir + CONFIG_DIR_NAME + '\' + CUSTOMBOARD_FILE_NAME;
1623 yoffy 1.18 end;
1624    
1625     (*************************************************************************
1626     *???若?????c??????????
1627     *************************************************************************)
1628     function TSetting.GetBoardDir: string;
1629     begin
1630     Result := GetAppDir + CONFIG_DIR_NAME + '\' + BOARD_DIR_NAME + '\';
1631 yoffy 1.14 end;
1632    
1633     (*************************************************************************
1634     *???潟???????????????弱????緇?
1635     *************************************************************************)
1636     function TSetting.GetHtmlTempFileName: string;
1637     begin
1638     Result := TEMP_FOLDER;
1639     end;
1640    
1641    
1642     (*************************************************************************
1643     *絎?茵????<?ゃ????????????緇?
1644     *************************************************************************)
1645     function TSetting.GetAppDir: string;
1646     begin
1647     Result := ExtractFilePath(Application.ExeName);
1648     end;
1649    
1650     (*************************************************************************
1651     *TempHtml???<?ゃ??????緇?鐚????刻????<?ゃ????鐚?
1652     *************************************************************************)
1653     function TSetting.GetTempFolder: string;
1654     begin
1655     Result := GetAppDir + TEMP_FOLDER;
1656     end;
1657    
1658     (*************************************************************************
1659     *sent.ini???<?ゃ??????緇?鐚????刻????<?ゃ????鐚?
1660     *************************************************************************)
1661     function TSetting.GetSentFileName: string;
1662     begin
1663     Result := GetAppDir + SENT_FILE_NAME;
1664     end;
1665    
1666     (*************************************************************************
1667     *outbox.ini???<?ゃ??????緇?鐚????刻????<?ゃ????鐚?
1668     *************************************************************************)
1669     function TSetting.GetOutBoxFileName: string;
1670     begin
1671     Result := GetAppDir + OUTBOX_FILE_NAME;
1672     end;
1673    
1674     (*************************************************************************
1675     *Config??????????緇?
1676     *************************************************************************)
1677     function TSetting.GetConfigDir: string;
1678     begin
1679     Result := IncludeTrailingPathDelimiter(GetAppDir + CONFIG_DIR_NAME);
1680     end;
1681    
1682     function TSetting.GetStyleSheetDir: string;
1683     begin
1684     Result := IncludeTrailingPathDelimiter(GetConfigDir + CSS_DIR_NAME);
1685     end;
1686    
1687     function TSetting.GetSkinDir: string;
1688     begin
1689     Result := IncludeTrailingPathDelimiter(GetConfigDir + SKIN_DIR_NAME);
1690     end;
1691    
1692     function TSetting.GetSkinHeaderFileName: string;
1693     begin
1694     Result := CSSFileName + SKIN_HEADER_FILE_NAME;
1695     end;
1696    
1697     function TSetting.GetSkinFooterFileName: string;
1698     begin
1699     Result := CSSFileName + SKIN_FOOTER_FILE_NAME;
1700     end;
1701    
1702     function TSetting.GetSkinNewResFileName: string;
1703     begin
1704     Result := CSSFileName + SKIN_NEWRES_FILE_NAME;
1705     end;
1706    
1707     function TSetting.GetSkinResFileName: string;
1708     begin
1709     Result := CSSFileName + SKIN_RES_FILE_NAME;
1710     end;
1711    
1712     function TSetting.GetSkinBookmarkFileName: string;
1713     begin
1714     Result := CSSFileName + SKIN_BOOKMARK_FILE_NAME;
1715     end;
1716    
1717     function TSetting.GetSkinNewmarkFileName: string;
1718     begin
1719     Result := CSSFileName + SKIN_NEWMARK_FILE_NAME;
1720 yoffy 1.15 end;
1721    
1722     function TSetting.GetNGWordsDir: string;
1723     begin
1724 yoffy 1.16 Result := IncludeTrailingPathDelimiter(GetConfigDir + NGWORDs_DIR_NAME);
1725     end;
1726    
1727     function TSetting.GetBoardPlugInDir: string;
1728     begin
1729     Result := IncludeTrailingPathDelimiter(GetConfigDir + BOARD_PLUGIN_DIR_NAME);
1730 yoffy 1.14 end;
1731    
1732     procedure TSetting.SetUseCSS( value: Boolean );
1733     begin
1734    
1735     FUseCSS := value;
1736    
1737     FUseSkin :=
1738     UseCSS and
1739     (Pos( GetSkinDir, CSSFileName ) > 0) and
1740     FileExists( GetSkinHeaderFileName );
1741    
1742     end;
1743    
1744     procedure TSetting.SetCSSFileName( fileName: string );
1745     begin
1746    
1747     FCSSFileName := fileName;
1748    
1749     FUseSkin :=
1750     UseCSS and
1751     (Pos( GetSkinDir, CSSFileName ) > 0) and
1752     FileExists( GetSkinHeaderFileName );
1753    
1754 h677 1.11 end;
1755 hi_ 1.1
1756 h677 1.31 function TSetting.GetSambaFileName: string;
1757     begin
1758     Result := GetAppDir + SAMBATIME_FILE_NAME;
1759     end;
1760 h677 1.35 //?炊?贋?育?ゅ??????眼?????鴻??篆?絖????<?ゃ??/span>
1761     function TSetting.GetIgnoreFileName: string;
1762     begin
1763     Result := GetConfigDir + IGNORE_FILE_NAME;
1764     end;
1765    
1766 hi_ 1.1 end.
1767 h677 1.35
1768 hi_ 1.1

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26