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.74 - (hide annotations) (download) (as text)
Mon Oct 11 14:38:59 2004 UTC (19 years, 6 months ago) by yoffy
Branch: MAIN
CVS Tags: v1_50_0_557
Changes since 1.73: +18 -4 lines
File MIME type: text/x-pascal
・゙・ヲ・ケ・ク・ァ・ケ・チ・网ホトノイテ。」
build557

1 hi_ 1.1 unit Setting;
2    
3     interface
4    
5     uses
6     SysUtils, Classes, Graphics, Forms, Math, IniFiles, UCryptAuto, UBase64,
7 yoffy 1.74 ComCtrls, GestureModel;
8 hi_ 1.1
9     const
10     MAIN_COOLBAND_COUNT = 4; //繝。繧、繝ウCoolBand縺ョ謨ー
11     LIST_COOLBAND_COUNT = 2; //譚ソCoolBand縺ョ謨ー
12     BROWSER_COOLBAND_COUNT = 3; //繝悶Λ繧ヲ繧カCoolBand縺ョ謨ー
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 yoffy 1.74 GESTURE_FILE_NAME = 'Gestures.ini';
38 hi_ 1.1 type
39     TGikoTabPosition = (gtpTop, gtpBottom); // 繧ソ繝紋ス咲スョ
40     TGikoTabAppend = (gtaFirst, gtpLast); // 繧ソ繝冶ソス蜉?菴咲スョ
41     TGikoTabStyle = (gtsTab, gtsButton, gtsFlat); // 繧ソ繝悶せ繧ソ繧、繝ォ
42     TGikoListOrientation = (gloHorizontal, gloVertical); // 繝ェ繧ケ繝亥桙逶エ繝サ豌エ蟷ウ
43     TGikoListState = (glsMax, glsNormal, glsMin); // 繝ェ繧ケ繝医し繧、繧コ迥カ諷?/span>
44     // 繝昴ャ繝励い繝??陦ィ遉コ菴咲スョ
45     TGikoPopupPosition = (gppRightTop, gppTop, gppLeftTop,
46     gppRight, gppCenter, gppLeft,
47     gppRightBottom, gppBottom, gppLeftBottom);
48     //繝励Ξ繝薙Η繝シ繧オ繧、繧コ
49     TGikoPreviewSize = (gpsXLarge, gpsLarge, gpsMedium, gpsSmall, gpsXSmall);
50 yoffy 1.39 TGikoBrowserAutoMaximize = (gbmNone, gbmClick, gbmDoubleClick);
51     // 繝悶Λ繧ヲ繧カ繧定?蜍慕噪縺ォ譛?螟ァ蛹悶☆繧区擅莉カ
52 yoffy 1.49 /// 繝ャ繧ケ陦ィ遉コ遽?峇縲?0 縲 65535 縺ッ譛?譁ー n 繝ャ繧ケ謇ア縺???/span>
53     /// 蟆?擂 201-300 縺ョ繧医≧縺ェ遽?峇繧呈戟縺溘○繧句庄閭ス諤ァ繧り??∴縺ヲ荳贋ス 2 byte 縺ッ莠育エ???/span>
54     TGikoResRange = (grrAll, grrSelect, grrKoko, grrNew);
55 hi_ 1.1
56 yoffy 1.55 /// 繧ケ繝ャ繝?ラ荳?隕ァ陦ィ遉コ遽?峇
57     TGikoThreadRange = (gtrAll, gtrSelect, gtrLog, gtrNew);
58    
59 yoffy 1.62 /// 繧ォ繝?ざ繝ェ繝ェ繧ケ繝医?繧ォ繝ゥ繝? ID
60     type TGikoBBSColumnID = (gbbscTitle);
61 yoffy 1.63 /// 繧ォ繝?ざ繝ェ繝ェ繧ケ繝医?繧ォ繝ゥ繝?蜷?/span>
62 yoffy 1.65 const GikoBBSColumnCaption : array[0..0] of string =
63 yoffy 1.62 ( '繧ォ繝?ざ繝ェ蜷?#39; );
64 yoffy 1.63 /// 繧ォ繝?ざ繝ェ繝ェ繧ケ繝医き繝ゥ繝?驟榊?
65     type TGikoBBSColumnList = class( TList )
66     private
67     function GetItem( index : integer ) : TGikoBBSColumnID;
68     procedure SetItem( index : integer; value : TGikoBBSColumnID);
69     public
70     constructor Create;
71 yoffy 1.68 destructor Destroy; override;
72 yoffy 1.63 function Add( value : TGikoBBSColumnID ) : Integer;
73 yoffy 1.64 property Items[index : integer]: TGikoBBSColumnID read GetItem write SetItem; default;
74 yoffy 1.63 end;
75 yoffy 1.62 /// 譚ソ繝ェ繧ケ繝医?繧ォ繝ゥ繝? ID
76 yoffy 1.65 type TGikoCategoryColumnID = (gccTitle, gccRoundName, gccLastModified);
77 yoffy 1.62 /// 譚ソ繝ェ繧ケ繝医?繧ォ繝ゥ繝?蜷?/span>
78 yoffy 1.65 const GikoCategoryColumnCaption : array[0..2] of string =
79     ( '譚ソ蜷?#39;, '蟾。蝗樔コ育エ?#39;, '蜿門セ玲律譎?#39; );
80 yoffy 1.63 /// 譚ソ繝ェ繧ケ繝医き繝ゥ繝?驟榊?
81     type TGikoCategoryColumnList = class( TList )
82     private
83     function GetItem( index : integer ) : TGikoCategoryColumnID;
84     procedure SetItem( index : integer; value : TGikoCategoryColumnID);
85     public
86     constructor Create;
87 yoffy 1.68 destructor Destroy; override;
88 yoffy 1.63 function Add( value : TGikoCategoryColumnID ) : Integer;
89 yoffy 1.64 property Items[index : integer]: TGikoCategoryColumnID read GetItem write SetItem; default;
90 yoffy 1.63 end;
91 yoffy 1.62 /// 繧ケ繝ャ繝ェ繧ケ繝医?繧ォ繝ゥ繝? ID
92     type TGikoBoardColumnID = (gbcTitle, gbcAllCount, gbcLocalCount, gbcNonAcqCount,
93 h677 1.70 gbcNewCount, gbcUnReadCount, gbcRoundName, gbcRoundDate, gbcCreated, gbcLastModified );{gbcLastModified,}
94 yoffy 1.62 /// 繧ケ繝ャ繝ェ繧ケ繝医?繧ォ繝ゥ繝?蜷?/span>
95 h677 1.70 const GikoBoardColumnCaption : array[0..9] of string =
96 yoffy 1.62 ( '繧ケ繝ャ繝?ラ蜷?#39;, '繧ォ繧ヲ繝ウ繝?#39;, '蜿門セ?#39;, '譛ェ蜿門セ?#39;, '譁ー逹?',
97 h677 1.70 '譛ェ隱ュ', '蟾。蝗樔コ育エ?#39;, '蜿門セ玲律譎?#39;, '繧ケ繝ャ菴懈?譌・譎?#39;, '譛?邨よ峩譁ー譌・譎?#39; );
98     const GikoBoardColumnAlignment : array[0..9] of TAlignment = (
99 yoffy 1.65 taLeftJustify, taRightJustify, taRightJustify, taRightJustify,
100     taRightJustify, taRightJustify, taLeftJustify, taLeftJustify,
101 h677 1.70 taLeftJustify, taLeftJustify);
102 yoffy 1.63 /// 繧ケ繝ャ繝ェ繧ケ繝医き繝ゥ繝?驟榊?
103     type TGikoBoardColumnList = class( TList )
104     private
105     function GetItem( index : integer ) : TGikoBoardColumnID;
106     procedure SetItem( index : integer; value : TGikoBoardColumnID);
107     public
108     constructor Create;
109 yoffy 1.68 destructor Destroy; override;
110 yoffy 1.63 function Add( value : TGikoBoardColumnID ) : Integer;
111 yoffy 1.64 property Items[index : integer]: TGikoBoardColumnID read GetItem write SetItem; default;
112 yoffy 1.63 end;
113 yoffy 1.62
114     type
115 hi_ 1.1 //CoolBar險ュ螳壹Ξ繧ウ繝シ繝?/span>
116     TCoolSet = record
117     FCoolID: Integer;
118     FCoolWidth: Integer;
119     FCoolBreak: Boolean;
120     end;
121    
122     TSetting = class(TObject)
123     private
124     //蜿嶺ソ。繝舌ャ繝輔ぃ繧オ繧、繧コ
125     FRecvBufferSize: Integer;
126     //HTTP1.1菴ソ逕ィ
127     FProtocol: Boolean;
128     //繝励Ο繧ュ繧キ謗・邯唏TTP1.1菴ソ逕ィ
129     FProxyProtocol: Boolean;
130    
131     //繝励Ο繧ュ繧キ?郁ェュ霎シ逕ィ??/span>
132     FReadProxy: Boolean;
133     FReadProxyAddress: string;
134     FReadProxyPort: Integer;
135     FReadProxyUserID: string;
136     FReadProxyPassword: string;
137    
138     //繝励Ο繧ュ繧キ?域嶌霎シ逕ィ??/span>
139     FWriteProxy: Boolean;
140     FWriteProxyAddress: string;
141     FWriteProxyPort: Integer;
142     FWriteProxyUserID: string;
143     FWriteProxyPassword: string;
144    
145     //繧ュ繝」繝薙ロ繝?ヨ
146     FCabinetFontName: string;
147     FCabinetFontSize: Integer;
148     FCabinetFontBold: Boolean;
149     FCabinetFontItalic: Boolean;
150     FCabinetFontColor: TColor;
151     FCabinetBackColor: TColor;
152    
153     //繝ェ繧ケ繝?/span>
154     FListFontName: string;
155     FListFontSize: Integer;
156     FListFontBold: Boolean;
157     FListFontItalic: Boolean;
158     FListFontColor: TColor;
159     FListBackColor: TColor;
160    
161     //繝悶Λ繧ヲ繧カ
162 yoffy 1.6 FBrowserFontName: string; // ''...default
163     FBrowserFontSize: Integer; // 0...default
164     FBrowserFontBold: Integer; // 0...default, -1...False, 1...True
165     FBrowserFontItalic: Integer; // 荳翫↓蜷後§
166 yoffy 1.14 FBrowserFontColor: Integer; // -1...default
167     FBrowserBackColor: Integer; // 荳翫↓蜷後§
168 hi_ 1.1
169     //繧ィ繝?ぅ繧ソ
170     FEditorFontName: string;
171     FEditorFontSize: Integer;
172     FEditorFontBold: Boolean;
173     FEditorFontItalic: Boolean;
174     FEditorFontColor: TColor;
175     FEditorBackColor: TColor;
176    
177     //繧ソ繝悶ヵ繧ゥ繝ウ繝?/span>
178     FBrowserTabFontName: string;
179     FBrowserTabFontSize: Integer;
180     FBrowserTabFontBold: Boolean;
181     FBrowserTabFontItalic: Boolean;
182    
183     //繝偵Φ繝医え繧」繝ウ繝峨え
184     FHintFontName: string;
185     FHintFontSize: Integer;
186     //FHintFontBold: Boolean;
187     //FHintFontItalic: Boolean;
188     FHintFontColor: TColor;
189     FHintBackColor: TColor;
190    
191     //繧ヲ繧」繝ウ繝峨え繧オ繧、繧コ
192     FWindowTop: Integer;
193     FWindowLeft: Integer;
194     FWindowHeight: Integer;
195     FWindowWidth: Integer;
196     FWindowMax: Boolean;
197     //繝ェ繧ケ繝医ン繝・繝シ繧ケ繧ソ繧、繝ォ
198     FListStyle: TViewStyle;
199    
200     //繝??繝ォ繝舌?陦ィ遉コ
201     FStdToolBarVisible: Boolean;
202     FAddressBarVisible: Boolean;
203     FLinkBarVisible: Boolean;
204     FListToolBarVisible: Boolean;
205     FListNameBarVisible: Boolean;
206     FBrowserToolBarVisible: Boolean;
207     FBrowserNameBarVisible: Boolean;
208    
209     //繝悶Λ繧ヲ繧カ繧ソ繝?/span>
210     FBrowserTabVisible: Boolean;
211     FBrowserTabPosition: TGikoTabPosition;
212     FBrowserTabAppend: TGikoTabAppend;
213     FBrowserTabStyle: TGikoTabStyle;
214    
215     //繝。繝?そ繝シ繧ク繝舌?
216     FMessageBarVisible: Boolean;
217     FMessegeBarHeight: Integer;
218    
219     //繧ケ繝??繧ソ繧ケ繝舌?
220     FStatusBarVisible: Boolean;
221    
222     //繧ュ繝」繝薙ロ繝?ヨ蜿ッ隕悶?繧オ繧、繧コ
223     FCabinetVisible: Boolean;
224     FCabinetWidth: Integer;
225    
226     //繝ェ繧ケ繝医?繝悶Λ繧ヲ繧カ繧オ繧、繧コ
227     FListOrientation: TGikoListOrientation;
228     FListHeight: Integer;
229     FListHeightState: TGikoListState;
230     FListWidth: Integer;
231     FListWidthState: TGikoListState;
232     // FListHeightMax: Boolean;
233     // FListWidthMax: Boolean;
234    
235     //騾∽ソ。逕ィ蜷榊燕繝サ繝。繝シ繝ォ
236     FNameList: TStringList;
237     FMailList: TStringList;
238    
239     //繧ィ繝?ぅ繧ソ繝シ繧ヲ繧」繝ウ繝峨え繧オ繧、繧コ
240     FEditWindowTop: Integer;
241     FEditWindowLeft: Integer;
242     FEditWindowHeight: Integer;
243     FEditWindowWidth: Integer;
244     FEditWindowMax: Boolean;
245 deux 1.20 FEditWindowStay: Boolean;
246     FEditWindowTranslucent: Boolean;
247 hi_ 1.1
248     //繝ェ繧ケ繝育分蜿キ陦ィ遉コ
249     FListViewNo: Boolean;
250     //CSS陦ィ遉コ
251     FUseCSS: Boolean;
252     //CSS繝輔ぃ繧、繝ォ蜷?/span>
253     FCSSFileName: string;
254 yoffy 1.14 // 繧ケ繧ュ繝ウ陦ィ遉コ(荳?譎ら噪縺ェ繧ゅ?縺ァ ini 縺ォ菫晏ュ倥?縺輔l縺ェ縺?
255     FUseSkin: Boolean;
256 hi_ 1.1 //mail谺?。ィ遉コ
257     FShowMail: Boolean;
258 yoffy 1.49 /// 繝ャ繧ケ陦ィ遉コ遽?峇
259 yoffy 1.51 FResRange : Longint;
260     /// 襍キ蜍墓凾繝ャ繧ケ陦ィ遉コ遽?峇縺ョ蝗コ螳?/span>
261     FResRangeHold : Boolean;
262 yoffy 1.55 /// 繧ケ繝ャ繝?ラ荳?隕ァ陦ィ遉コ遽?峇
263     FThreadRange : TGikoThreadRange;
264 yoffy 1.2 //髱槭い繧ッ繝?ぅ繝匁凾繝ャ繧ケ繝昴ャ繝励い繝??陦ィ遉コ
265 hi_ 1.1 FUnActivePopup: Boolean;
266 yoffy 1.2 //繝ャ繧ケ繝昴ャ繝励い繝??繝倥ャ繝?繝シ繝懊?繝ォ繝?/span>
267     FResPopupHeaderBold: Boolean;
268 hi_ 1.1
269     //繝ュ繧ー繝輔か繝ォ繝?
270     FLogFolder: string;
271     FNewLogFolder: string;
272    
273     //繝ェ繧ケ繝医き繝ゥ繝?繝倥ャ繝?繝シ繧オ繧、繧コ
274     FBBSColumnWidth: array[0..0] of Integer;
275 yoffy 1.65 FCategoryColumnWidth: array[0..2] of Integer;
276 h677 1.70 FBoardColumnWidth: array[0..9] of Integer;
277 hi_ 1.1
278 yoffy 1.62 /// 繧ォ繝?ざ繝ェ繝ェ繧ケ繝医き繝ゥ繝?鬆?コ?/span>
279 yoffy 1.63 FBBSColumnOrder : TGikoBBSColumnList;
280 yoffy 1.62 /// 譚ソ繝ェ繧ケ繝医き繝ゥ繝?鬆?コ?/span>
281 yoffy 1.63 FCategoryColumnOrder : TGikoCategoryColumnList;
282 yoffy 1.62 /// 繧ケ繝ャ繝ェ繧ケ繝医き繝ゥ繝?鬆?コ?/span>
283 yoffy 1.63 FBoardColumnOrder : TGikoBoardColumnList;
284 yoffy 1.62
285 q9_ 1.46 //繧ス繝シ繝磯??/span>
286     FBBSSortIndex: Integer;
287     FBBSSortOrder: Boolean;
288     FCategorySortIndex: Integer;
289     FCategorySortOrder: Boolean;
290     FBoardSortIndex: Integer;
291     FBoardSortOrder: Boolean;
292    
293 q9_ 1.53 //Dat關ス縺。繧ケ繝ャ繧ス繝シ繝磯??/span>
294     FDatOchiSortIndex: Integer;
295     FDatOchiSortOrder: Boolean;
296    
297 hi_ 1.1 //邨櫁セシ縺ソ譁?ュ怜?
298     FSelectTextList: TStringList;
299    
300     //譚ソ荳?隕ァURL
301 h677 1.11 //FBoardURL2ch: string;
302 yoffy 1.14 FBoardURLs: TStringList;
303     FBoardURLSelected: Integer;
304 hi_ 1.1
305     //繝ヲ繝シ繧カID繝サ繝代せ繝ッ繝シ繝?/span>
306     FUserID: string;
307     FPassword: string;
308     FAutoLogin: Boolean;
309 h677 1.21 FForcedLogin: Boolean;
310 h677 1.36 FDolibURL: string;
311 hi_ 1.1
312     //URL繧ッ繝ェ繝?け譎りオキ蜍輔い繝励Μ
313     FURLApp: Boolean;
314     FURLAppFile: string;
315    
316     //mailto繧ッ繝ェ繝?け譎ょ虚菴?/span>
317     FOpenMailer: Boolean;
318    
319     //蜑企勁遒コ隱?/span>
320     FDeleteMsg: Boolean;
321    
322     //CoolBar?医Γ繧、繝ウ繝サ譚ソ繝サ繝悶Λ繧ヲ繧カ??/span>
323     FMainCoolBar: array[0..MAIN_COOLBAND_COUNT - 1] of TCoolSet;
324 yoffy 1.2 FListCoolBar: array[0..LIST_COOLBAND_COUNT - 1] of TCoolSet;
325 hi_ 1.1 FBrowserCoolBar: array[0..BROWSER_COOLBAND_COUNT - 1] of TCoolSet;
326    
327     //ToolBar Wrapable
328     FListToolBarWrapable: Boolean;
329     FBrowserToolBarWrapable: Boolean;
330    
331     //繝昴ャ繝励い繝??菴咲スョ
332     FPopupPosition: TGikoPopupPosition;
333    
334     //繧「繝峨Ξ繧ケ繝舌?
335     FURLDisplay: Boolean;
336     FAddressBarTabStop: Boolean;
337     FLinkAddAddressBar: Boolean;
338     FAddressHistoryCount: Integer;
339    
340     //逕サ蜒上?繝ャ繝薙Η繝シ
341     FPreviewVisible: Boolean;
342     FPreviewSize: TGikoPreviewSize;
343     FPreviewWait: Integer;
344    
345 yoffy 1.39 // 繝悶Λ繧ヲ繧カ
346     FBrowserAutoMaximize: TGikoBrowserAutoMaximize;
347    
348 hi_ 1.1 //繧ケ繝ャ繝?ラ荳?隕ァ譖エ譁ー繧「繧、繧ウ繝ウ陦ィ遉コ
349     FListIconVisible: Boolean;
350    
351 yoffy 1.51 //繧ケ繝ャ繝?ラ荳?隕ァ縺ァLog縺ョ縺ゅk繧ケ繝ャ繝?ラ縺ョ縺ソ繧ケ繝ャ菴懈?譌・繧定。ィ遉コ縺吶k縺?/span>
352     FCreationTimeLogs: Boolean;
353 h677 1.29 //繧ケ繝ャ繝?ラ荳?隕ァ縺ョ繧ケ繝ャ逕滓?譌・縺ァ譛ェ譚・縺ョ繧ケ繝ャ縺ョ逕滓?譌・繧定。ィ遉コ縺励↑縺?/span>
354 q9_ 1.44 FFutureThread: Boolean;
355 h677 1.29
356 hi_ 1.1 //譖ク縺崎セシ縺ソ譎ゅ?繧キ繝ウ譎る俣菴ソ逕ィ險ュ螳?/span>
357     FUseMachineTime: Boolean;
358     FTimeAdjustSec: Integer;
359     FTimeAdjust: Boolean;
360    
361 h677 1.11 //縺ゅ⊂縲懊s
362     FAbonDeleterlo : Boolean; //&rlo;繧貞炎繧九°
363     FAbonReplaceul : Boolean; //<ul>繧ソ繧ー繧?lt;br>繧ソ繧ー縺ォ鄂ョ謠帙☆繧九°
364 yoffy 1.14 FPopUpAbon : Boolean; //繝ャ繧ケ繝昴ャ繝励い繝??譎ゅ?縺ゅ⊂縲懊s譛牙柑
365 h677 1.11 FShowNGLinesNum : Boolean; //隧イ蠖薙@縺滂ショ?ァ繝ッ繝シ繝峨ヵ繧。繧、繝ォ縺ョ陦梧焚繧定。ィ遉コ
366     FAddResAnchor : Boolean; //NG繝ャ繧ケ縺ク縺ョ繝ャ繧ケ繧「繝ウ繧ォ繝シ繧定ソス蜉?縺吶k
367 h677 1.32 FDeleteSyria : Boolean; //繧キ繝ェ繧「隱槭ヶ繝ゥ繧ッ繝ゥ蟇セ遲?/span>
368 h677 1.3
369 h677 1.11 // 繧ケ繝ャ繝?ラ邨櫁セシ繝輔ぅ繝シ繝ォ繝峨?蟷?/span>
370     FSelectComboBoxWidth : Integer;
371 yoffy 1.5
372 h677 1.11 // 譛?蠕後↓驕ク謚槭&繧後◆繧ェ繝励す繝ァ繝ウ繝?繧、繧「繝ュ繧ー縺ョ繧ソ繝?/span>
373     FOptionDialogTabIndex: Integer;
374 yoffy 1.8
375 h677 1.11 // 譛?蠕後↓驕ク謚槭&繧後◆繧ュ繝」繝薙ロ繝?ヨ
376     FCabinetIndex: Integer;
377 yoffy 1.8
378 yoffy 1.14 //邨ゆコ?凾縺ォ遒コ隱阪ム繧、繧「繝ュ繧ー繧定。ィ遉コ縺吶k縺?/span>
379     FShowDialogForEnd : Boolean;
380 h677 1.38 //蜈ィ縺ヲ縺ョ繧ソ繝夜哩縺倥k縺ョ縺ィ縺阪↓遒コ隱阪ム繧、繧「繝ュ繧ー繧定。ィ遉コ縺吶k
381     FShowDialogForAllTabClose: Boolean;
382 h677 1.19 //蜿門セ励Ξ繧ケ謨ー縺ィ繧ケ繝ャ繝?ラ縺ョ繝ャ繧ケ謨ー縺檎焚縺ェ縺」縺溘→縺阪↓騾壼クク閭梧勹濶イ縺ィ驕輔▲縺溯牡縺ョ閭梧勹濶イ繧剃スソ逕ィ縺吶k縺?/span>
383     FUseOddColorOddResNum: Boolean;
384     FOddColor: TColor;
385 h677 1.13
386 h677 1.33 //Samba24蟇セ遲匁ゥ溯?繧剃スソ縺?°
387     FUseSamba: Boolean;
388 h677 1.36
389 h677 1.38 //繝ャ繧ケ繧「繝ウ繧ォ繝シ繧偵け繝ェ繝?け縺励※繧ク繝」繝ウ繝励☆繧九°
390     FResAnchorJamp: Boolean;
391    
392 genyakun 1.47 //Tab閾ェ蜍穂ソ晏ュ?/span>
393 genyakun 1.56 FTabAutoLoadSave : Boolean;
394 genyakun 1.71
395     //縺ォ縺。繧?s隱樊。亥?繧オ繝昴?繝域ゥ溯?
396     F2chSupport : Boolean;
397    
398 yoffy 1.40 // 繧ィ繝?ぅ繧ソ
399 yoffy 1.41 FSpaceToNBSP : Boolean; ///< 蜊願ァ偵せ繝壹?繧ケ縲ゝab 繧 &nbsp; 縺ォ鄂ョ謠?/span>
400     FAmpToCharRef : Boolean; ///< '&' 繧 &amp; 縺ォ鄂ョ謠?/span>
401 h677 1.43
402     //繝悶Λ繧ヲ繧カ繧ソ繝夜撼陦ィ遉コ縺ョ譎ゅ?繧ケ繝ャ荳?隕ァ縺ァ縺ョ繧ォ繝シ繧ス繝ォ繧ュ繝シ遘サ蜍輔?辟。蜿榊ソ懈凾髢?/span>
403     FSelectInterval : Integer;
404 h677 1.67
405     //KuroutSettingTab 隧ウ邏ー險ュ螳壹ち繝悶?ActiveTab
406     FKuroutSettingTabIndex: Integer;
407 yoffy 1.74
408     //! 繝槭え繧ケ繧ク繧ァ繧ケ繝√Ε繝シ
409     FGestures : TGestureModel;
410 yoffy 1.40
411 hi_ 1.1 function GetMainCoolSet(Index: Integer): TCoolSet;
412     function GetBoardCoolSet(Index: Integer): TCoolSet;
413     function GetBrowserCoolSet(Index: Integer): TCoolSet;
414     procedure SetMainCoolSet(Index: Integer; CoolSet: TCoolSet);
415     procedure SetBoardCoolSet(Index: Integer; CoolSet: TCoolSet);
416     procedure SetBrowserCoolSet(Index: Integer; CoolSet: TCoolSet);
417    
418     function GetBBSColumnWidth(index: Integer): Integer;
419     function GetCategoryColumnWidth(index: Integer): Integer;
420     function GetBoardColumnWidth(index: Integer): Integer;
421     procedure SetBBSColumnWidth(index: Integer; value: Integer);
422     procedure SetCategoryColumnWidth(index: Integer; value: Integer);
423     procedure SetBoardColumnWidth(index: Integer; value: Integer);
424    
425     function GetSoundName(Index: Integer): string;
426     function GetSoundViewName(Index: Integer): string;
427     function GetSoundFileName(Index: Integer): string;
428     procedure SetSoundFileName(Index: Integer; value: string);
429     function Encrypt(s: string): string;
430     function Decrypt(s: string): string;
431 h677 1.11
432 yoffy 1.14 procedure MakeURLIniFile();
433    
434     procedure SetUseCSS( value: Boolean );
435     procedure SetCSSFileName( fileName: string );
436 hi_ 1.1 protected
437    
438     public
439     constructor Create;
440     destructor Destroy; override;
441     function GetFileName: string;
442 yoffy 1.14 function GetBoardURLFileName: string;
443 hi_ 1.1 procedure ReadSettingFile;
444 yoffy 1.14 procedure ReadBoardURLsFile;
445 hi_ 1.1 procedure WriteSystemSettingFile;
446     procedure WriteWindowSettingFile;
447     procedure WriteNameMailSettingFile;
448     procedure WriteFolderSettingFile();
449 yoffy 1.14 procedure WriteBoardURLSettingFile;
450 hi_ 1.1 function GetSoundCount: Integer;
451     function FindSoundFileName(Name: string): string;
452    
453 yoffy 1.14 function GetBoardFileName: string;
454     function GetCustomBoardFileName: string;
455 yoffy 1.18 function GetBoardDir: string;
456 yoffy 1.14 function GetHtmlTempFileName: string;
457     function GetAppDir: string;
458     function GetTempFolder: string;
459     function GetSentFileName: string;
460     function GetConfigDir: string;
461     function GetSkinDir: string;
462     function GetSkinHeaderFileName: string;
463     function GetSkinFooterFileName: string;
464     function GetSkinResFileName: string;
465     function GetSkinNewResFileName: string;
466     function GetSkinBookmarkFileName: string;
467     function GetSkinNewmarkFileName: string;
468     function GetStyleSheetDir: string;
469     function GetOutBoxFileName: string;
470 yoffy 1.15 function GetNGWordsDir: string;
471 yoffy 1.16 function GetBoardPlugInDir: string;
472 h677 1.35 function GetSambaFileName: string;
473     function GetIgnoreFileName: string;
474 yoffy 1.74 function GetGestureFileName : string;
475 yoffy 1.14
476 hi_ 1.1 //蜿嶺ソ。繝舌ャ繝輔ぃ繧オ繧、繧コ
477     property RecvBufferSize: Integer read FRecvBufferSize write FRecvBufferSize;
478     //HTTP1.1菴ソ逕ィ
479     property Protocol: Boolean read FProtocol write FProtocol;
480     //繝励Ο繧ュ繧キ謗・邯唏TTP1.1菴ソ逕ィ
481     property ProxyProtocol: Boolean read FProxyProtocol write FProxyProtocol;
482    
483     property ReadProxy: Boolean read FReadProxy write FReadProxy;
484     property ReadProxyAddress: string read FReadProxyAddress write FReadProxyAddress;
485     property ReadProxyPort: Integer read FReadProxyPort write FReadProxyPort;
486     property ReadProxyUserID: string read FReadProxyUserID write FReadProxyUserID;
487     property ReadProxyPassword: string read FReadProxyPassword write FReadProxyPassword;
488    
489     property WriteProxy: Boolean read FWriteProxy write FWriteProxy;
490     property WriteProxyAddress: string read FWriteProxyAddress write FWriteProxyAddress;
491     property WriteProxyPort: Integer read FWriteProxyPort write FWriteProxyPort;
492     property WriteProxyUserID: string read FWriteProxyUserID write FWriteProxyUserID;
493     property WriteProxyPassword: string read FWriteProxyPassword write FWriteProxyPassword;
494    
495     property CabinetFontName: string read FCabinetFontName write FCabinetFontName;
496     property CabinetFontSize: Integer read FCabinetFontSize write FCabinetFontSize;
497     property CabinetFontBold: Boolean read FCabinetFontBold write FCabinetFontBold;
498     property CabinetFontItalic: Boolean read FCabinetFontItalic write FCabinetFontItalic;
499     property CabinetFontColor: TColor read FCabinetFontColor write FCabinetFontColor;
500     property CabinetBackColor: TColor read FCabinetBackColor write FCabinetBackColor;
501    
502     property ListFontName: string read FListFontName write FListFontName;
503     property ListFontSize: Integer read FListFontSize write FListFontSize;
504     property ListFontBold: Boolean read FListFontBold write FListFontBold;
505     property ListFontItalic: Boolean read FListFontItalic write FListFontItalic;
506     property ListFontColor: TColor read FListFontColor write FListFontColor;
507     property ListBackColor: TColor read FListBackColor write FListBackColor;
508    
509 yoffy 1.6 property BrowserFontName: string read FBrowserFontName write FBrowserFontName;
510     property BrowserFontSize: Integer read FBrowserFontSize write FBrowserFontSize;
511     property BrowserFontBold: Integer read FBrowserFontBold write FBrowserFontBold;
512     property BrowserFontItalic: Integer read FBrowserFontItalic write FBrowserFontItalic;
513     property BrowserFontColor: Integer read FBrowserFontColor write FBrowserFontColor;
514     property BrowserBackColor: Integer read FBrowserBackColor write FBrowserBackColor;
515 hi_ 1.1
516     property EditorFontName: string read FEditorFontName write FEditorFontName;
517     property EditorFontSize: Integer read FEditorFontSize write FEditorFontSize;
518     property EditorFontBold: Boolean read FEditorFontBold write FEditorFontBold;
519     property EditorFontItalic: Boolean read FEditorFontItalic write FEditorFontItalic;
520     property EditorFontColor: TColor read FEditorFontColor write FEditorFontColor;
521     property EditorBackColor: TColor read FEditorBackColor write FEditorBackColor;
522    
523     property BrowserTabFontName: string read FBrowserTabFontName write FBrowserTabFontName;
524     property BrowserTabFontSize: Integer read FBrowserTabFontSize write FBrowserTabFontSize;
525     property BrowserTabFontBold: Boolean read FBrowserTabFontBold write FBrowserTabFontBold;
526     property BrowserTabFontItalic: Boolean read FBrowserTabFontItalic write FBrowserTabFontItalic;
527    
528     property HintFontName: string read FHintFontName write FHintFontName;
529     property HintFontSize: Integer read FHintFontSize write FHintFontSize;
530     //property HintFontBold: Boolean read FHintFontBold write FHintFontBold;
531     //property HintFontItalic: Boolean read FHintFontItalic write FHintFontItalic;
532     property HintFontColor: TColor read FHintFontColor write FHintFontColor;
533     property HintBackColor: TColor read FHintBackColor write FHintBackColor;
534    
535     property WindowTop: Integer read FWindowTop write FWindowTop;
536     property WindowLeft: Integer read FWindowLeft write FWindowLeft;
537     property WindowHeight: Integer read FWindowHeight write FWindowHeight;
538     property WindowWidth: Integer read FWindowWidth write FWindowWidth;
539     property WindowMax: Boolean read FWindowMax write FWindowMax;
540     property ListStyle: TViewStyle read FListStyle write FListStyle;
541    
542     property StdToolBarVisible: Boolean read FStdToolBarVisible write FStdToolBarVisible;
543     property AddressBarVisible: Boolean read FAddressBarVisible write FAddressBarVisible;
544     property LinkBarVisible: Boolean read FLinkBarVisible write FLinkBarVisible;
545     property ListToolBarVisible: Boolean read FListToolBarVisible write FListToolBarVisible;
546     property ListNameBarVisible: Boolean read FListNameBarVisible write FListNameBarVisible;
547     property BrowserToolBarVisible: Boolean read FBrowserToolBarVisible write FBrowserToolBarVisible;
548     property BrowserNameBarVisible: Boolean read FBrowserNameBarVisible write FBrowserNameBarVisible;
549    
550     property BrowserTabVisible: Boolean read FBrowserTabVisible write FBrowserTabVisible;
551     property BrowserTabPosition: TGikoTabPosition read FBrowserTabPosition write FBrowserTabPosition;
552     property BrowserTabAppend: TGikoTabAppend read FBrowserTabAppend write FBrowserTabAppend;
553     property BrowserTabStyle: TGikoTabStyle read FBrowserTabStyle write FBrowserTabStyle;
554    
555     property MessageBarVisible: Boolean read FMessageBarVisible write FMessageBarVisible;
556     property MessegeBarHeight: Integer read FMessegeBarHeight write FMessegeBarHeight;
557    
558     property StatusBarVisible: Boolean read FStatusBarVisible write FStatusBarVisible;
559    
560     property CabinetVisible: Boolean read FCabinetVisible write FCabinetVisible;
561     property CabinetWidth: Integer read FCabinetWidth write FCabinetWidth;
562    
563     property ListOrientation: TGikoListOrientation read FListOrientation write FListOrientation;
564     property ListHeight: Integer read FListHeight write FListHeight;
565     property ListHeightState: TGikoListState read FListHeightState write FListHeightState;
566     property ListWidth: Integer read FListWidth write FListWidth;
567     property ListWidthState: TGikoListState read FListWidthState write FListWidthState;
568     // property ListHeightMax: Boolean read FListHeightMax write FListHeightMax;
569     // property ListWidthMax: Boolean read FListWidthMax write FListWidthMax;
570    
571     property NameList: TStringList read FNameList write FNameList;
572     property MailList: TStringList read FMailList write FMailList;
573     property SelectTextList: TStringList read FSelectTextList write FSelectTextList;
574    
575     property EditWindowTop: Integer read FEditWindowTop write FEditWindowTop;
576     property EditWindowLeft: Integer read FEditWindowLeft write FEditWindowLeft;
577     property EditWindowHeight: Integer read FEditWindowHeight write FEditWindowHeight;
578     property EditWindowWidth: Integer read FEditWindowWidth write FEditWindowWidth;
579     property EditWindowMax: Boolean read FEditWindowMax write FEditWindowMax;
580 deux 1.20 property EditWindowStay: Boolean read FEditWindowStay write FEditWindowStay;
581 h677 1.38 property EditWindowTranslucent: Boolean read FEditWindowTranslucent write FEditWindowTranslucent;
582 hi_ 1.1
583     property ListViewNo: Boolean read FListViewNo write FListViewNo;
584 yoffy 1.14 property UseCSS: Boolean read FUseCSS write SetUseCSS;
585     property CSSFileName: string read FCSSFileName write SetCSSFileName;
586     property UseSkin: Boolean read FUseSkin;
587 hi_ 1.1
588     property ShowMail: Boolean read FShowMail write FShowMail;
589 yoffy 1.49 property ResRange : Longint read FResRange write FResRange;
590 yoffy 1.51 property ResRangeHold : Boolean read FResRangeHold write FResRangeHold;
591 yoffy 1.55 property ThreadRange : TGikoThreadRange read FThreadRange write FThreadRange;
592 hi_ 1.1 property UnActivePopup: Boolean read FUnActivePopup write FUnActivePopup;
593 yoffy 1.2 property ResPopupHeaderBold: Boolean read FResPopupHeaderBold write FResPopupHeaderBold;
594 hi_ 1.1
595     property LogFolder: string read FLogFolder write FLogFolder;
596     property NewLogFolder: string read FNewLogFolder write FNewLogFolder;
597    
598     property BBSColumnWidth[index: Integer]: Integer read GetBBSColumnWidth write SetBBSColumnWidth;
599     property CategoryColumnWidth[index: Integer]: Integer read GetCategoryColumnWidth write SetCategoryColumnWidth;
600     property BoardColumnWidth[index: Integer]: Integer read GetBoardColumnWidth write SetBoardColumnWidth;
601    
602 yoffy 1.63 property BBSColumnOrder : TGikoBBSColumnList read FBBSColumnOrder write FBBSColumnOrder;
603     property CategoryColumnOrder : TGikoCategoryColumnList read FCategoryColumnOrder write FCategoryColumnOrder;
604     property BoardColumnOrder : TGikoBoardColumnList read FBoardColumnOrder write FBoardColumnOrder;
605 yoffy 1.62
606 hi_ 1.1 property SoundName[index: Integer]: string read GetSoundName;
607     property SoundViewName[index: Integer]: string read GetSoundViewName;
608     property SoundFileName[index: Integer]: string read GetSoundFileName write SetSoundFileName;
609    
610 q9_ 1.46 property BBSSortIndex: Integer read FBBSSortIndex write FBBSSortIndex;
611     property BBSSortOrder: Boolean read FBBSSortOrder write FBBSSortOrder;
612     property CategorySortIndex: Integer read FCategorySortIndex write FCategorySortIndex;
613     property CategorySortOrder: Boolean read FCategorySortOrder write FCategorySortOrder;
614     property BoardSortIndex: Integer read FBoardSortIndex write FBoardSortIndex;
615     property BoardSortOrder: Boolean read FBoardSortOrder write FBoardSortOrder;
616    
617 q9_ 1.53 property DatOchiSortIndex: Integer read FDatOchiSortIndex write FDatOchiSortIndex;
618     property DatOchiSortOrder: Boolean read FDatOchiSortOrder write FDatOchiSortOrder;
619    
620 h677 1.11 //property BoardURL2ch: string read FBoardURL2ch write FBoardURL2ch;
621     property BoardURLs: TStringList read FBoardURLs write FBoardURLs;
622 yoffy 1.14 property BoardURLSelected: Integer read FBoardURLSelected write FBoardURLSelected;
623 hi_ 1.1 property UserID: string read FUserID write FUserID;
624     property Password: string read FPassword write FPassword;
625     property AutoLogin: Boolean read FAutoLogin write FAutoLogin;
626 h677 1.38 property ForcedLogin: Boolean read FForcedLogin write FForcedLogin;
627 h677 1.36 property DolibURL: string read FDolibURL write FDolibURL;
628 hi_ 1.1
629     property URLApp: Boolean read FURLApp write FURLApp;
630     property URLAppFile: string read FURLAppFile write FURLAppFile;
631    
632     property OpenMailer: Boolean read FOpenMailer write FOpenMailer;
633    
634     property DeleteMsg: Boolean read FDeleteMsg write FDeleteMsg;
635    
636     property MainCoolSet[Index: Integer]: TCoolSet read GetMainCoolSet write SetMainCoolSet;
637     property ListCoolSet[Index: Integer]: TCoolSet read GetBoardCoolSet write SetBoardCoolSet;
638     property BrowserCoolSet[Index: Integer]: TCoolSet read GetBrowserCoolSet write SetBrowserCoolSet;
639    
640     property ListToolBarWrapable: Boolean read FListToolBarWrapable write FListToolBarWrapable;
641     property BrowserToolBarWrapable: Boolean read FBrowserToolBarWrapable write FBrowserToolBarWrapable;
642    
643     property PopupPosition: TGikoPopupPosition read FPopupPosition write FPopupPosition;
644    
645     property URLDisplay: Boolean read FURLDisplay write FURLDisplay;
646     property AddressBarTabStop: Boolean read FAddressBarTabStop write FAddressBarTabStop;
647     property LinkAddAddressBar: Boolean read FLinkAddAddressBar write FLinkAddAddressBar;
648     property AddressHistoryCount: Integer read FAddressHistoryCount write FAddressHistoryCount;
649    
650     property PreviewVisible: Boolean read FPreviewVisible write FPreviewVisible;
651     property PreviewSize: TGikoPreviewSize read FPreviewSize write FPreviewSize;
652     property PreviewWait: Integer read FPreviewWait write FPreviewWait;
653 yoffy 1.39 property BrowserAutoMaximize: TGikoBrowserAutoMaximize read FBrowserAutoMaximize write FBrowserAutoMaximize;
654 hi_ 1.1
655     property ListIconVisible: Boolean read FListIconVisible write FListIconVisible;
656 h677 1.38 property CreationTimeLogs: Boolean read FCreationTimeLogs write FCreationTimeLogs;
657     property FutureThread: Boolean read FFutureThread write FFutureThread;
658 hi_ 1.1
659     property UseMachineTime: Boolean read FUseMachineTime write FUseMachineTime;
660     property TimeAdjustSec: Integer read FTimeAdjustSec write FTimeAdjustSec;
661     property TimeAdjust: Boolean read FTimeAdjust write FTimeAdjust;
662 h677 1.3
663 yoffy 1.14 //縺ゅ⊂縲懊s
664     property AbonDeleterlo : Boolean read FAbonDeleterlo write FAbonDeleterlo;
665     property AbonReplaceul : Boolean read FAbonReplaceul write FAbonReplaceul;
666     property PopUpAbon : Boolean read FPopUpAbon write FPopUpAbon;
667     property ShowNGLinesNum : Boolean read FShowNGLinesNum write FShowNGLinesNum;
668     property AddResAnchor : Boolean read FAddResAnchor write FAddResAnchor;
669 h677 1.38 property DeleteSyria : Boolean read FDeleteSyria write FDeleteSyria;
670 yoffy 1.14 // 繧ケ繝ャ繝?ラ邨櫁セシ繝輔ぅ繝シ繝ォ繝峨?蟷?/span>
671     property SelectComboBoxWidth : Integer read FSelectComboBoxWidth write FSelectComboBoxWidth;
672 yoffy 1.8
673 yoffy 1.14 // 譛?蠕後↓驕ク謚槭&繧後◆繧ェ繝励す繝ァ繝ウ繝?繧、繧「繝ュ繧ー縺ョ繧ソ繝?/span>
674     property OptionDialogTabIndex : Integer read FOptionDialogTabIndex write FOptionDialogTabIndex;
675 yoffy 1.8
676 yoffy 1.14 // 譛?蠕後↓驕ク謚槭&繧後◆繧ュ繝」繝薙ロ繝?ヨ
677     property CabinetIndex : Integer read FCabinetIndex write FCabinetIndex;
678 h677 1.13
679 yoffy 1.14 //邨ゆコ?凾縺ォ遒コ隱阪ム繧、繧「繝ュ繧ー繧定。ィ遉コ縺吶k縺?/span>
680     property ShowDialogForEnd : Boolean read FShowDialogForEnd write FShowDialogForEnd;
681 h677 1.38 property ShowDialogForAllTabClose: Boolean read FShowDialogForAllTabClose write FShowDialogForAllTabClose;
682     //蜿門セ励Ξ繧ケ謨ー縺ィ繧ケ繝ャ繝?ラ縺ョ繝ャ繧ケ謨ー縺檎焚縺ェ縺」縺溘→縺阪↓騾壼クク閭梧勹濶イ縺ィ驕輔▲縺溯牡縺ョ閭梧勹濶イ繧剃スソ逕ィ縺吶k縺?/span>
683     property UseOddColorOddResNum: Boolean read FUseOddColorOddResNum write FUseOddColorOddResNum;
684     property OddColor: TColor read FOddColor write FOddColor;
685 h677 1.36 property UseSamba: Boolean read FUseSamba write FUseSamba;
686 genyakun 1.47 property ResAnchorJamp: Boolean read FResAnchorJamp write FResAnchorJamp;
687 yoffy 1.40
688     // 繧ィ繝?ぅ繧ソ
689 yoffy 1.41 property SpaceToNBSP : Boolean read FSpaceToNBSP write FSpaceToNBSP;
690     property AmpToCharRef : Boolean read FAmpToCharRef write FAmpToCharRef;
691 h677 1.43
692     property SelectInterval : Integer read FSelectInterval write FSelectInterval;
693 h677 1.67 //Tab菫晏ュ?/span>
694     property TabAutoLoadSave: Boolean read FTabAutoLoadSave write FTabAutoLoadSave;
695 genyakun 1.71 property GengoSupport : Boolean read F2chSupport write F2chSupport;
696 h677 1.67 property KuroutSettingTabIndex: Integer read FKuroutSettingTabIndex write FKuroutSettingTabIndex;
697 yoffy 1.74 //! 繝槭え繧ケ繧ク繧ァ繧ケ繝√Ε繝シ
698     property Gestures : TGestureModel read FGestures write FGestures;
699 yoffy 1.40 end;
700 hi_ 1.1
701    
702 h677 1.3
703 hi_ 1.1 implementation
704    
705     type
706     TSoundName = record
707     Name: string;
708     ViewName: string;
709     FileName: string;
710     end;
711    
712     const
713 yoffy 1.14 INI_FILE_NAME: string = 'gikoNavi.ini';
714     BOARD_URL_INI_FILE_NAME: string = 'url.ini';
715     DEFAULT_FONT_NAME: string = '?ュ?ウ ?ー繧エ繧キ繝?け';
716     DEFAULT_FONT_SIZE: Integer = 9;
717     DEFAULT_FONT_COLOR: string = 'clWindowText';
718     DEFAULT_WINDOW_COLOR: string = 'clWindow';
719     DEFAULT_TAB_FONT_NAME: string = '?ュ?ウ ?ー繧エ繧キ繝?け';
720     DEFAULT_TAB_FONT_SIZE: Integer = 9;
721 h677 1.11 DEFAULT_2CH_BOARD_URL1: string = 'http://www6.ocn.ne.jp/~mirv/2chmenu.html';
722 h677 1.23 DEFAULT_2CH_BOARD_URL2: string = 'http://www.ff.iij4u.or.jp/~ch2/bbsmenu.html';
723 h677 1.22 //http://menu.2ch.net/bbsmenu.html //繧ゅ≧縺吶$縺薙l縺梧ュ」蠑上↑譚ソ荳?隕ァ縺ォ縺ェ繧九h縺?/span>
724 hi_ 1.1 //'http://www.2ch.net/newbbsmenu.html';
725 yoffy 1.14 GIKO_ENCRYPT_TEXT: string = 'gikoNaviEncryptText';
726 hi_ 1.1
727     var
728     SOUND_NAME: array[0..4] of TSoundName = (
729 yoffy 1.14 (Name: 'New'; ViewName: '蜿門セ玲?蜉?#39;; FileName: ''),
730     (Name: 'NewDiff'; ViewName: '蜿門セ玲?蜉?蟾ョ蛻?'; FileName: ''),
731     (Name: 'NoChange'; ViewName: '譛ェ譖エ譁ー'; FileName: ''),
732     // (Name: 'RoundEnd'; ViewName: '蟾。蝗樒オゆコ?蜿門セ励≠繧?'; FileName: ''),
733     // (Name: 'RoundNone'; ViewName: '蟾。蝗樒オゆコ?蜿門セ励↑縺?'; FileName: ''),
734     (Name: 'ResEnd'; ViewName: '繝ャ繧ケ騾∽ソ。螳御コ?#39;; FileName: ''),
735     (Name: 'Error'; ViewName: '繧ィ繝ゥ繝シ'; FileName: ''));
736 hi_ 1.1
737 yoffy 1.63 constructor TGikoBBSColumnList.Create;
738     begin
739     inherited;
740     end;
741    
742     destructor TGikoBBSColumnList.Destroy;
743     begin
744     inherited;
745     end;
746    
747     function TGikoBBSColumnList.GetItem( index : integer ) : TGikoBBSColumnID;
748     begin
749     Result := TGikoBBSColumnID( inherited Items[ index ] );
750     end;
751    
752     procedure TGikoBBSColumnList.SetItem( index : integer; value : TGikoBBSColumnID);
753     begin
754     inherited Items[ index ] := Pointer( value );
755     end;
756    
757     function TGikoBBSColumnList.Add( value : TGikoBBSColumnID ) : Integer;
758     begin
759     Result := inherited Add( Pointer( value ) );
760     end;
761    
762     constructor TGikoCategoryColumnList.Create;
763     begin
764     inherited;
765     end;
766    
767     destructor TGikoCategoryColumnList.Destroy;
768     begin
769     inherited;
770     end;
771    
772     function TGikoCategoryColumnList.GetItem( index : integer ) : TGikoCategoryColumnID;
773     begin
774     Result := TGikoCategoryColumnID( inherited Items[ index ] );
775     end;
776    
777     procedure TGikoCategoryColumnList.SetItem( index : integer; value : TGikoCategoryColumnID);
778     begin
779     inherited Items[ index ] := Pointer( value );
780     end;
781    
782     function TGikoCategoryColumnList.Add( value : TGikoCategoryColumnID ) : Integer;
783     begin
784     Result := inherited Add( Pointer( value ) );
785     end;
786    
787     constructor TGikoBoardColumnList.Create;
788     begin
789     inherited;
790     end;
791    
792     destructor TGikoBoardColumnList.Destroy;
793     begin
794     inherited;
795     end;
796    
797     function TGikoBoardColumnList.GetItem( index : integer ) : TGikoBoardColumnID;
798     begin
799     Result := TGikoBoardColumnID( inherited Items[ index ] );
800     end;
801    
802     procedure TGikoBoardColumnList.SetItem( index : integer; value : TGikoBoardColumnID);
803     begin
804     inherited Items[ index ] := Pointer( value );
805     end;
806    
807     function TGikoBoardColumnList.Add( value : TGikoBoardColumnID ) : Integer;
808     begin
809     Result := inherited Add( Pointer( value ) );
810     end;
811    
812 hi_ 1.1 //繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ
813     constructor TSetting.Create();
814     begin
815     FNameList := TStringList.Create;
816     FMailList := TStringList.Create;
817     FSelectTextList := TStringList.Create;
818 yoffy 1.14 FBoardURLs := TStringList.Create;
819 yoffy 1.64 FBBSColumnOrder := TGikoBBSColumnList.Create;
820     FCategoryColumnOrder := TGikoCategoryColumnList.Create;
821     FBoardColumnOrder := TGikoBoardColumnList.Create;
822 yoffy 1.74 FGestures := TGestureModel.Create;
823 hi_ 1.1 FNameList.Duplicates := dupIgnore;
824     FMailList.Duplicates := dupIgnore;
825 yoffy 1.14 FBoardURLs.Duplicates := dupIgnore;
826 hi_ 1.1 FSelectTextList.Duplicates := dupIgnore;
827     ReadSettingFile();
828 yoffy 1.14 ReadBoardURLsFile();
829 hi_ 1.1 end;
830    
831     //繝?せ繝医Λ繧ッ繧ソ
832     destructor TSetting.Destroy();
833     begin
834     inherited;
835 yoffy 1.64 FBoardColumnOrder.Free;
836     FCategoryColumnOrder.Free;
837     FBBSColumnOrder.Free;
838 hi_ 1.1 FSelectTextList.Free;
839 yoffy 1.14 FBoardURLs.Free;
840 hi_ 1.1 FMailList.Free;
841     FNameList.Free;
842 yoffy 1.74 FGestures.Free;
843 hi_ 1.1 end;
844    
845     //蛻晄悄蛹悶ヵ繧。繧、繝ォ蜷榊叙蠕暦シ医ヱ繧ケ?九ヵ繧。繧、繝ォ蜷搾シ?/span>
846     function TSetting.GetFileName(): string;
847     begin
848     Result := ExtractFilePath(Application.ExeName) + INI_FILE_NAME;
849     end;
850    
851 h677 1.11 //譚ソ譖エ譁ー逕ィURL險ュ螳壹ヵ繧。繧、繝ォ蜷搾シ医ヱ繧ケ?九ヵ繧。繧、繝ォ蜷搾シ?/span>
852     function TSetting.GetBoardURLFileName(): string;
853     begin
854     Result := ExtractFilePath(Application.ExeName) + BOARD_URL_INI_FILE_NAME;
855     end;
856    
857 hi_ 1.1 //險ュ螳壹ヵ繧。繧、繝ォ隱ュ霎シ
858     procedure TSetting.ReadSettingFile();
859     const
860     DEFAULT_BBS_WIDTH: array[0..0] of Integer = (140);
861 yoffy 1.65 DEFAULT_CATEGORY_WIDTH: array[0..2] of Integer = (150, 80, 130);
862 h677 1.70 DEFAULT_BOARD_WIDTH: array[0..9] of Integer = (350, 60, 60, 60, 60, 60, 80, 130, 130, 130);
863 q9_ 1.30 MAX_WIDTH: Integer = 2000;
864 hi_ 1.1 var
865     ini: TMemIniFile;
866     i: Integer;
867 yoffy 1.64 id, code : Integer;
868 hi_ 1.1 wkList: TStringList;
869     wkStr: string;
870     Exists: Boolean;
871 yoffy 1.63 s: string;
872 hi_ 1.1 // id: Integer;
873     CoolSet: TCoolSet;
874     begin
875     Exists := FileExists(GetFileName);
876     ini := TMemIniFile.Create(GetFileName);
877     try
878     //蜿嶺ソ。繝舌ャ繝輔ぃ繧オ繧、繧コ
879     FRecvBufferSize := ini.ReadInteger('HTTP', 'RecvBufferSize', 4096);
880     //HTTP1.1菴ソ逕ィ
881     FProtocol := ini.ReadBool('HTTP', 'Protocol', True);
882     //繝励Ο繧ュ繧キ謗・邯唏TTP1.1菴ソ逕ィ
883     FProxyProtocol := ini.ReadBool('HTTP', 'ProxyProtocol', False);
884    
885     FReadProxy := ini.ReadBool('ReadProxy', 'Proxy', false);
886     FReadProxyAddress := ini.ReadString('ReadProxy', 'Address', '');
887     FReadProxyPort := ini.ReadInteger('ReadProxy', 'Port', 0);
888     FReadProxyUserID := ini.ReadString('ReadProxy', 'UserID', '');
889     FReadProxyPassword := ini.ReadString('ReadProxy', 'Password', '');
890    
891     FWriteProxy := ini.ReadBool('WriteProxy', 'Proxy', false);
892     FWriteProxyAddress := ini.ReadString('WriteProxy', 'Address', '');
893     FWriteProxyPort := ini.ReadInteger('WriteProxy', 'Port', 0);
894     FWriteProxyUserID := ini.ReadString('WriteProxy', 'UserID', '');
895     FWriteProxyPassword := ini.ReadString('WriteProxy', 'Password', '');
896    
897 yoffy 1.6 FBrowserFontName := ini.ReadString('Window', 'BrowserFontName', '');
898     FBrowserFontSize := ini.ReadInteger('Window', 'BrowserFontSize', 0);
899     FBrowserFontBold := ini.ReadInteger('Window', 'BrowserFontBold', 0);
900     FBrowserFontItalic := ini.ReadInteger('Window', 'BrowserFontItalic', 0);
901     FBrowserFontColor := ini.ReadInteger('Window', 'BrowserFontColor', -1);
902     FBrowserBackColor := ini.ReadInteger('Window', 'BrowserBackColor', -1);
903    
904 hi_ 1.1 FCabinetFontName := ini.ReadString('Window', 'CabinetFontName', DEFAULT_FONT_NAME);
905     FCabinetFontSize := ini.ReadInteger('Window', 'CabinetFontSize', DEFAULT_FONT_SIZE);
906     FCabinetFontBold := ini.ReadBool('Window', 'CabinetFontBold', False);
907     FCabinetFontItalic := ini.ReadBool('Window', 'CabinetFontItalic', False);
908     FCabinetFontColor := StringToColor(ini.ReadString('Window', 'CabinetFontColor', DEFAULT_FONT_COLOR));
909     FCabinetBackColor := StringToColor(ini.ReadString('Window', 'CabinetBackColor', DEFAULT_WINDOW_COLOR));
910    
911     FListFontName := ini.ReadString('Window', 'ListFontName', DEFAULT_FONT_NAME);
912     FListFontSize := ini.ReadInteger('Window', 'ListFontSize', DEFAULT_FONT_SIZE);
913     FListFontBold := ini.ReadBool('Window', 'ListFontBold', False);
914     FListFontItalic := ini.ReadBool('Window', 'ListFontItalic', False);
915     FListFontColor := StringToColor(ini.ReadString('Window', 'ListFontColor', DEFAULT_FONT_COLOR));
916     FListBackColor := StringToColor(ini.ReadString('Window', 'ListBackColor', DEFAULT_WINDOW_COLOR));
917 genyakun 1.48 FUseOddColorOddResNum := ini.ReadBool('Window','UseOddColor', False);
918     FOddColor := StringToColor(ini.ReadString('Window', 'OddColor', DEFAULT_WINDOW_COLOR));
919 hi_ 1.1
920     FEditorFontName := ini.ReadString('Window', 'EditorFontName', DEFAULT_FONT_NAME);
921     FEditorFontSize := ini.ReadInteger('Window', 'EditorFontSize', DEFAULT_FONT_SIZE);
922     FEditorFontBold := ini.ReadBool('Window', 'EditorFontBold', False);
923     FEditorFontItalic := ini.ReadBool('Window', 'EditorFontItalic', False);
924     FEditorFontColor := StringToColor(ini.ReadString('Window', 'EditorFontColor', DEFAULT_FONT_COLOR));
925     FEditorBackColor := StringToColor(ini.ReadString('Window', 'EditorBackColor', DEFAULT_WINDOW_COLOR));
926    
927     FBrowserTabFontName := ini.ReadString('Window', 'BrowserTabFontName', DEFAULT_TAB_FONT_NAME);
928     FBrowserTabFontSize := ini.ReadInteger('Window', 'BrowserTabFontSize', DEFAULT_TAB_FONT_SIZE);
929     FBrowserTabFontBold := ini.ReadBool('Window', 'BrowserTabFontBold', False);
930     FBrowserTabFontItalic := ini.ReadBool('Window', 'BrowserTabFontItalic', False);
931    
932     FHintFontName := ini.ReadString('Window', 'HintFontName', Screen.HintFont.Name);
933     FHintFontSize := ini.ReadInteger('Window', 'HintFontSize', Screen.HintFont.Size);
934     //FHintFontBold := ini.ReadBool('Window', 'HintFontBold', False);
935     //FHintFontItalic := ini.ReadBool('Window', 'HintFontItalic', False);
936     FHintFontColor := StringToColor(ini.ReadString('Window', 'HintFontColor', DEFAULT_FONT_COLOR));
937     FHintBackColor := StringToColor(ini.ReadString('Window', 'HintBackColor', 'clInfoBk'));
938    
939     FWindowTop := ini.ReadInteger('WindowSize', 'Top', -1);
940     FWindowLeft := ini.ReadInteger('WindowSize', 'Left', -1);
941     FWindowHeight := ini.ReadInteger('WindowSize', 'Height', -1);
942     FWindowWidth := ini.ReadInteger('WindowSize', 'Width', -1);
943     FWindowMax := ini.ReadBool('WindowSize', 'Max', false);
944    
945     if FWindowHeight <= 0 then FWindowHeight := 400;
946     if FWindowWidth <= 0 then FWindowWidth := 600;
947    
948     FListStyle := TViewStyle(ini.ReadInteger('ViewStyle', 'ListView', Ord(vsReport)));
949    
950     FEditWindowTop := ini.ReadInteger('EditorWindowSize', 'Top', -1);
951     FEditWindowLeft := ini.ReadInteger('EditorWindowSize', 'Left', -1);
952     FEditWindowHeight := ini.ReadInteger('EditorWindowSize', 'Height', -1);
953     FEditWindowWidth := ini.ReadInteger('EditorWindowSize', 'Width', -1);
954     FEditWindowMax := ini.ReadBool('EditorWindowSize', 'Max', False);
955 deux 1.20 FEditWindowStay := ini.ReadBool('EditorWindowSize', 'Stay', False);
956 genyakun 1.48 FEditWindowTranslucent := ini.ReadBool('EditorWindowSize', 'Translucent', False);
957 hi_ 1.1
958 yoffy 1.14 FOptionDialogTabIndex := ini.ReadInteger('OptionDialog', 'TabIndex', 0);
959 yoffy 1.8
960 hi_ 1.1 //繝??繝ォ繝舌?
961     FStdToolBarVisible := ini.ReadBool('ToolBar', 'StdVisible', True);
962     FAddressBarVisible := ini.ReadBool('ToolBar', 'AddressVisible', True);
963     FLinkBarVisible := ini.ReadBool('ToolBar', 'LinkVisible', True);
964     FListToolBarVisible := ini.ReadBool('ToolBar', 'ListVisible', True);
965     FListNameBarVisible := ini.ReadBool('ToolBar', 'ListNameVisible', True);
966     FBrowserToolBarVisible := ini.ReadBool('ToolBar', 'BrowserVisible', True);
967     FBrowserNameBarVisible := ini.ReadBool('ToolBar', 'BrowserNameVisible', True);
968     //繝??繝ォ繝舌?Wrapable
969     FListToolBarWrapable := ini.ReadBool('ToolBar', 'ListWrapable', False);
970     FBrowserToolBarWrapable := ini.ReadBool('ToolBar', 'BrowserWrapable', False);
971    
972     FBrowserTabVisible := ini.ReadBool('Tab', 'BrowserTabVisible', True);
973     FBrowserTabPosition := TGikoTabPosition(ini.ReadInteger('Tab', 'BrowserTabPosition', Ord(gtpTop)));
974     FBrowserTabAppend := TGikoTabAppend(ini.ReadInteger('Tab', 'BrowserTabAppend', Ord(gtaFirst)));
975     FBrowserTabStyle := TGikoTabStyle(ini.ReadInteger('Tab', 'BrowserTabStyle', Ord(gtsFlat)));
976    
977     FMessageBarVisible := ini.ReadBool('MessageBar', 'Visible', True);
978     FMessegeBarHeight := ini.ReadInteger('MessageBar', 'Height', 30);
979    
980     FStatusBarVisible := ini.ReadBool('StatusBar', 'Visible', True);
981    
982     FCabinetVisible := ini.ReadBool('Cabinet', 'Visible', True);
983     FCabinetWidth := ini.ReadInteger('Cabinet', 'Width', 200);
984 yoffy 1.14 FCabinetIndex := ini.ReadInteger('Cabinet', 'Index', 0);
985 hi_ 1.1
986     FListOrientation := TGikoListOrientation(ini.ReadInteger('List', 'Orientation', Ord(gloHorizontal)));
987     FListHeight := ini.ReadInteger('List', 'Height', 180);
988     FListHeightState := TGikoListState(ini.ReadInteger('List', 'HeightState', Ord(glsNormal)));
989     FListWidth := ini.ReadInteger('List', 'Width', 180);
990     FListWidthState := TGikoListState(ini.ReadInteger('List', 'WidthState', Ord(glsNormal)));
991     // FListHeightMax := ini.ReadBool('List', 'HeightMax', False);
992     // FListWidthMax := ini.ReadBool('List', 'WidthMax', False);
993    
994     wkList := TStringList.Create;
995     try
996     ini.ReadSection('Name', wkList);
997     for i := 0 to wkList.Count - 1 do begin
998     wkStr := ini.ReadString('Name', wkList[i], '');
999     if (wkStr <> '') and (FNameList.IndexOf(wkStr) = -1) then
1000     FNameList.Add(wkStr);
1001     end;
1002     ini.ReadSection('Mail', wkList);
1003     for i := 0 to wkList.Count - 1 do begin
1004     wkStr := ini.ReadString('Mail', wkList[i], '');
1005     if (wkStr <> '') and (FMailList.IndexOf(wkStr) = -1) then
1006     FMailList.Add(wkStr);
1007     end;
1008     ini.ReadSection('SelectText', wkList);
1009     for i := 0 to wkList.Count - 1 do begin
1010     wkStr := ini.ReadString('SelectText', wkList[i], '');
1011     if (wkStr <> '') and (FSelectTextList.IndexOf(wkStr) = -1) then
1012     FSelectTextList.Add(wkStr);
1013     end;
1014     finally
1015     wkList.Free;
1016     end;
1017    
1018 yoffy 1.64 // 繝ェ繧ケ繝医き繝ゥ繝?蟷?/span>
1019 hi_ 1.1 wkList := TStringList.Create;
1020     try
1021     ini.ReadSection('BBSColumnWidth', wkList);
1022     if Length(FBBSColumnWidth) <> wkList.Count then begin
1023     ini.EraseSection('BBSColumnWidth');
1024     end;
1025     for i := 0 to Length(FBBSColumnWidth) - 1 do begin
1026     BBSColumnWidth[i] := ini.ReadInteger('BBSColumnWidth', 'ID' + IntToStr(i), DEFAULT_BBS_WIDTH[i]);
1027 q9_ 1.30 if BBSColumnWidth[i] > MAX_WIDTH then
1028     BBSColumnWidth[i] := DEFAULT_BBS_WIDTH[i];
1029 hi_ 1.1 end;
1030     ini.ReadSection('CategoryColumnWidth', wkList);
1031     if Length(FCategoryColumnWidth) <> wkList.Count then begin
1032     ini.EraseSection('CategoryColumnWidth');
1033     end;
1034     for i := 0 to Length(FCategoryColumnWidth) - 1 do begin
1035     CategoryColumnWidth[i] := ini.ReadInteger('CategoryColumnWidth', 'ID' + IntToStr(i), DEFAULT_CATEGORY_WIDTH[i]);
1036 q9_ 1.30 if CategoryColumnWidth[i] > MAX_WIDTH then
1037     CategoryColumnWidth[i] := DEFAULT_CATEGORY_WIDTH[i];
1038 hi_ 1.1 end;
1039     ini.ReadSection('BoardColumnWidth', wkList);
1040     if Length(FBoardColumnWidth) <> wkList.Count then begin
1041     ini.EraseSection('BoardColumnWidth');
1042     end;
1043     for i := 0 to Length(FBoardColumnWidth) - 1 do begin
1044     BoardColumnWidth[i] := ini.ReadInteger('BoardColumnWidth', 'ID' + IntToStr(i), DEFAULT_BOARD_WIDTH[i]);
1045 q9_ 1.30 if BoardColumnWidth[i] > MAX_WIDTH then
1046     BoardColumnWidth[i] := DEFAULT_BOARD_WIDTH[i];
1047 hi_ 1.1 end;
1048     finally
1049     wkList.Free;
1050     end;
1051    
1052 yoffy 1.64 // 繧ォ繝?ざ繝ェ繝ェ繧ケ繝医き繝ゥ繝?鬆?コ?/span>
1053     wkList := TStringList.Create;
1054     try
1055     ini.ReadSection( 'BBSColumnOrder', wkList );
1056     for i := 0 to wkList.Count - 1 do begin
1057     wkStr := ini.ReadString( 'BBSColumnOrder', 'ID' + IntToStr( i ), '' );
1058     Val( wkStr, id, code );
1059     if code = 0 then
1060     FBBSColumnOrder.Add( TGikoBBSColumnID( id ) );
1061     end;
1062     if FBBSColumnOrder.Count = 0 then begin
1063     // 險ュ螳壹′辟。縺??縺ァ菴懈?
1064     for i := 0 to Integer( High( TGikoBBSColumnID ) ) do
1065     FBBSColumnOrder.Add( TGikoBBSColumnID( i ) );
1066     end;
1067    
1068     ini.ReadSection( 'CategoryColumnOrder', wkList );
1069     for i := 0 to wkList.Count - 1 do begin
1070     wkStr := ini.ReadString( 'CategoryColumnOrder', 'ID' + IntToStr( i ), '' );
1071     Val( wkStr, id, code );
1072     if code = 0 then
1073     FCategoryColumnOrder.Add( TGikoCategoryColumnID( id ) );
1074     end;
1075     if FCategoryColumnOrder.Count = 0 then begin
1076     // 險ュ螳壹′辟。縺??縺ァ菴懈?
1077     for i := 0 to Integer( High( TGikoCategoryColumnID ) ) do
1078     FCategoryColumnOrder.Add( TGikoCategoryColumnID( i ) );
1079     end;
1080    
1081     ini.ReadSection( 'BoardColumnOrder', wkList );
1082     for i := 0 to wkList.Count - 1 do begin
1083     wkStr := ini.ReadString( 'BoardColumnOrder', 'ID' + IntToStr( i ), '' );
1084     Val( wkStr, id, code );
1085     if code = 0 then
1086     FBoardColumnOrder.Add( TGikoBoardColumnID( id ) );
1087     end;
1088     if FBoardColumnOrder.Count = 0 then begin
1089     // 險ュ螳壹′辟。縺??縺ァ菴懈?
1090     for i := 0 to Integer( High( TGikoBoardColumnID ) ) do
1091     FBoardColumnOrder.Add( TGikoBoardColumnID( i ) );
1092     end;
1093     finally
1094     wkList.Free;
1095     end;
1096    
1097 hi_ 1.1 //繝ェ繧ケ繝育分蜿キ
1098     FListViewNo := ini.ReadBool('Function', 'ListViewNo', True);
1099     //CSS
1100 yoffy 1.17 UseCSS := ini.ReadBool('CSS', 'UseCSS', True);
1101 hi_ 1.1 //CSS繝輔ぃ繧、繝ォ蜷?/span>
1102 yoffy 1.17 CSSFileName := ini.ReadString('CSS', 'FileName', 'default.css');
1103 hi_ 1.1
1104     //Mail谺?。ィ遉コ
1105     FShowMail := ini.ReadBool('Thread', 'ShowMail', True);
1106 yoffy 1.49 // 繝ャ繧ケ陦ィ遉コ遽?峇
1107     if ini.ReadBool('Thread', 'OnlyAHundredRes',false) then
1108     FResRange := 100 // 蜿、縺?ィュ螳壹?莠呈鋤逕ィ
1109     else
1110 h677 1.60 FResRange := ini.ReadInteger( 'Thread', 'ResRange', Ord( grrAll ) );
1111 yoffy 1.51 FResRangeHold := ini.ReadBool( 'Thread', 'ResRangeHold', False );
1112 yoffy 1.55 // 繧ケ繝ャ繝?ラ荳?隕ァ陦ィ遉コ遽?峇
1113     FThreadRange := TGikoThreadRange( ini.ReadInteger('ThreadList', 'ThreadRange', Ord( gtrAll )) );
1114 yoffy 1.2 //髱槭い繧ッ繝?ぅ繝匁凾繝ャ繧ケ繝昴ャ繝励い繝??陦ィ遉コ
1115 hi_ 1.1 FUnActivePopup := ini.ReadBool('Thread', 'UnActivePopup', False);
1116 yoffy 1.2 //繝ャ繧ケ繝昴ャ繝励い繝??繝倥ャ繝?繝シ繝懊?繝ォ繝?/span>
1117     FResPopupHeaderBold := ini.ReadBool('Thread', 'ResPopupHeaderBold', True);
1118 hi_ 1.1 //蜑企勁遒コ隱?/span>
1119     FDeleteMsg := ini.ReadBool('Function', 'LogDeleteMessage', True);
1120 yoffy 1.14 //邨ゆコ?「コ隱?/span>
1121     FShowDialogForEnd := ini.ReadBool('Function','ShowDialogForEnd',false);
1122 h677 1.38 //AllTabClose
1123     FShowDialogForAllTabClose := ini.ReadBool('Function','ShowDialogForAllTabClose',false);
1124 genyakun 1.48 //Samba
1125 h677 1.38 FUseSamba := ini.ReadBool('Function','UseSamba', True);
1126     //ResAnchorjamp
1127     ResAnchorJamp := ini.ReadBool('Function', 'ResAnchoJamp', True);
1128 hi_ 1.1 //繝ュ繧ー繝輔か繝ォ繝?
1129     FLogFolder := ini.ReadString('Folder', 'LogFolder', ExtractFilePath(Application.ExeName) + 'Log');
1130     NewLogFolder := '';
1131    
1132     //譚ソURL
1133 yoffy 1.14 //隍?焚逋サ骭イ縺ァ縺阪k繧医≧縺ォ縺励※FBoardURLs縺ォ縺励◆縲?2003/10/05
1134 h677 1.11 //FBoardURL2ch := ini.ReadString('BoardURL', '2ch', DEFAULT_2CH_BOARD_URL);
1135 hi_ 1.1
1136     //隱崎ィシ逕ィ繝ヲ繝シ繧カID繝サ繝代せ繝ッ繝シ繝?/span>
1137     FUserID := ini.ReadString('Attestation', 'UserID', '');
1138     FPassword := Decrypt(ini.ReadString('Attestation', 'Password', ''));
1139     FAutoLogin := ini.ReadBool('Attestation', 'AutoLogin', False);
1140 h677 1.36 FForcedLogin := ini.ReadBool('Attestation', 'FForcedLogin', False);
1141 h677 1.37 // FDolibURL := ini.ReadString('Attestation', 'FDolibURL', DOLIB_LOGIN_URL);
1142 hi_ 1.1
1143     //URL繧ッ繝ェ繝?け譎りオキ蜍輔い繝励Μ
1144     FURLApp := ini.ReadBool('URLApp', 'Select', False);
1145     FURLAppFile := ini.ReadString('URLApp', 'File', '');
1146    
1147     //mailto繧ッ繝ェ繝?け譎ょ虚菴?/span>
1148     FOpenMailer := ini.ReadBool('Mailto', 'Open', True);
1149    
1150     //繝昴ャ繝励い繝??菴咲スョ
1151     FPopupPosition := TGikoPopupPosition(ini.ReadInteger('Browser', 'PopupPosition', Ord(gppLeftBottom)));
1152    
1153     //繧「繝峨Ξ繧ケ繝舌?
1154     FURLDisplay := ini.ReadBool('AddressBar', 'URLDisplay', False);
1155     FAddressBarTabStop := ini.ReadBool('AddressBar', 'TabStop', True);
1156     FLinkAddAddressBar := ini.ReadBool('AddressBar', 'LinkAdd', False);
1157     FAddressHistoryCount := ini.ReadInteger('AddressBar', 'HistoryCount', 100);
1158    
1159     //逕サ蜒上?繝ャ繝薙Η繝シ
1160     FPreviewVisible := ini.ReadBool('Browser', 'PreviewVisible', True);
1161     FPreviewSize := TGikoPreviewSize(ini.ReadInteger('Browser', 'PreviewSize', Ord(gpsMedium)));
1162     FPreviewWait := ini.ReadInteger('Browser', 'PreviewWait', 500);
1163    
1164 yoffy 1.39 // 繝悶Λ繧ヲ繧カ
1165     FBrowserAutoMaximize := TGikoBrowserAutoMaximize(
1166     ini.ReadInteger('Window', 'BrowserAutoMaximize', Ord(gbmDoubleClick)) );
1167    
1168 hi_ 1.1 //繧ケ繝ャ繝?ラ荳?隕ァ譖エ譁ー繧「繧、繧ウ繝ウ
1169     FListIconVisible := ini.ReadBool('ThreadList', 'StateIconVisible', True);
1170 q9_ 1.44 FCreationTimeLogs := ini.ReadBool('ThreadList', 'CreationTimeLogs', True);
1171 h677 1.43 FFutureThread := ini.ReadBool('ThreadList', 'FutureThread', True);
1172     FSelectInterval := ini.ReadInteger('ThreadList', 'SelectInterval', 110);
1173 q9_ 1.46 //繧ス繝シ繝磯??/span>
1174     FBBSSortIndex := ini.ReadInteger('ThreadList', 'BBSSortIndex', 0);
1175 h677 1.59 FBBSSortOrder := ini.ReadBool('ThreadList', 'BBSSortOrder', True);
1176 q9_ 1.46 FCategorySortIndex := ini.ReadInteger('ThreadList', 'CategorySortIndex', 0);
1177 h677 1.59 FCategorySortOrder := ini.ReadBool('ThreadList', 'CategorySortOrder', True);
1178 q9_ 1.46 FBoardSortIndex := ini.ReadInteger('ThreadList', 'BoardSortIndex', 0);
1179 h677 1.59 FBoardSortOrder := ini.ReadBool('ThreadList', 'BoardSortOrder', True);
1180 q9_ 1.53 //Dat關ス縺。繧ケ繝ャ繧ス繝シ繝磯??/span>
1181     FDatOchiSortIndex := ini.ReadInteger('ThreadList', 'DatOchiSortIndex', -1);
1182     FDatOchiSortOrder := ini.ReadBool('ThreadList', 'DatOchiSortOrder', False);
1183 hi_ 1.1
1184     //譖ク縺崎セシ縺ソ譎ゅ?繧キ繝ウ譎ょ綾菴ソ逕ィ險ュ螳?/span>
1185     FUseMachineTime := ini.ReadBool('PostTime', 'UseMachineTime', False);
1186     FTimeAdjustSec := ini.ReadInteger('PostTime', 'TimeAdjustSec', 0);
1187     FTimeAdjust := ini.ReadBool('PostTime', 'TimeAdjust', True);
1188    
1189     //繧オ繧ヲ繝ウ繝?/span>
1190     if Exists then begin
1191     for i := 0 to GetSoundCount - 1 do begin
1192     SoundFileName[i] := ini.ReadString('Sound', SoundName[i], '');
1193     if not FileExists(SoundFileName[i]) then
1194     SoundFileName[i] := '';
1195     end;
1196     end else begin
1197     s := ExtractFileDir(Application.ExeName) + '\sound\';
1198     SoundFileName[0] := s + '蜿門セ玲?蜉?wav';
1199     SoundFileName[1] := s + '蜿門セ玲?蜉?蟾ョ蛻?.wav';
1200     SoundFileName[2] := s + '譛ェ譖エ譁ー.wav';
1201     SoundFileName[3] := '';
1202     SoundFileName[4] := s + '繧ィ繝ゥ繝シ.wav';
1203     end;
1204    
1205     //繧ッ繝シ繝ォ繝舌?
1206     for i := 0 to MAIN_COOLBAND_COUNT - 1 do begin
1207     CoolSet.FCoolID := ini.ReadInteger('MainCoolBar', 'ID' + IntToStr(i), -1);
1208     CoolSet.FCoolWidth := ini.ReadInteger('MainCoolBar', 'Width' + IntToStr(i), -1);
1209     CoolSet.FCoolBreak := ini.ReadBool('MainCoolBar', 'Break' + IntToStr(i), False);
1210     MainCoolSet[i] := CoolSet;
1211     end;
1212 yoffy 1.14 FSelectComboBoxWidth := ini.ReadInteger( 'ListCoolBar', 'SelectWidth', 127 );
1213 hi_ 1.1 for i := 0 to LIST_COOLBAND_COUNT - 1 do begin
1214     CoolSet.FCoolID := ini.ReadInteger('ListCoolBar', 'ID' + IntToStr(i), -1);
1215     CoolSet.FCoolWidth := ini.ReadInteger('ListCoolBar', 'Width' + IntToStr(i), -1);
1216     CoolSet.FCoolBreak := ini.ReadBool('ListCoolBar', 'Break' + IntToStr(i), False);
1217 yoffy 1.2 ListCoolSet[i] := CoolSet;
1218 hi_ 1.1 end;
1219     for i := 0 to BROWSER_COOLBAND_COUNT - 1 do begin
1220     CoolSet.FCoolID := ini.ReadInteger('BrowserCoolBar', 'ID' + IntToStr(i), -1);
1221     CoolSet.FCoolWidth := ini.ReadInteger('BrowserCoolBar', 'Width' + IntToStr(i), -1);
1222     CoolSet.FCoolBreak := ini.ReadBool('BrowserCoolBar', 'Break' + IntToStr(i), False);
1223     BrowserCoolSet[i] := CoolSet;
1224     end;
1225 h677 1.3
1226 yoffy 1.14 //縺ゅ⊂縲懊s
1227     FAbonDeleterlo := ini.ReadBool('Abon','Deleterlo',false);
1228     FAbonReplaceul := ini.ReadBool('Abon','Replaceul',false);
1229     FPopUpAbon := ini.ReadBool('Abon','Popup',false);
1230     FShowNGLinesNum := ini.ReadBool('Abon','ShowNGLines',false);
1231     FAddResAnchor := ini.ReadBool('Abon','AddResAnchor',false);
1232 genyakun 1.48 FDeleteSyria := ini.ReadBool('Abon','DeleteSyria',false);
1233 yoffy 1.40
1234     // 繧ィ繝?ぅ繧ソ
1235 h677 1.73 FSpaceToNBSP := ini.ReadBool( 'Editor', 'SpaceToNBSP', False );
1236 yoffy 1.42 FAmpToCharRef := ini.ReadBool( 'Editor', 'AmpToCharRef', False );
1237 h677 1.43
1238 h677 1.67 //Tab閾ェ蜍穂ソ晏ュ倥?∬ェュ縺ソ霎シ縺ソ
1239     FTabAutoLoadSave := ini.ReadBool('TabAuto', 'TabAutoLoadSave', False);
1240    
1241     FKuroutSettingTabIndex := ini.ReadInteger('OptionDialog', 'KuroutTabIndex' , 0);
1242 genyakun 1.47
1243 hi_ 1.1 finally
1244     ini.Free;
1245     end;
1246     end;
1247 h677 1.11 //譚ソ譖エ譁ー逕ィURL隱ュ縺ソ霎シ縺ソ
1248     procedure TSetting.ReadBoardURLsFile();
1249     var
1250     ini: TMemIniFile;
1251 yoffy 1.14 urlNum: Integer;
1252     i : Integer;
1253 h677 1.11 begin
1254 yoffy 1.14 if not FileExists(GetBoardURLFileName()) then
1255     MakeURLIniFile();
1256 h677 1.11 ini := TMemIniFile.Create(GetBoardURLFileName());
1257 yoffy 1.14 try
1258     urlNum := ini.ReadInteger('URL','count',0);
1259     BoardURLSelected := ini.ReadInteger('URL','selected',0);
1260     for i := 0 to urlNum - 1 do begin
1261     FBoardURLs.Append(ini.ReadString('URL',IntToStr(i+1),''));
1262     end;
1263     finally
1264     ini.Free;
1265     end;
1266 hi_ 1.1
1267 h677 1.11 end;
1268 hi_ 1.1 //險ュ螳壹ヵ繧。繧、繝ォ菫晏ュ?system)
1269     procedure TSetting.WriteSystemSettingFile();
1270     var
1271     ini: TMemIniFile;
1272     begin
1273     ini := TMemIniFile.Create(GetFileName());
1274     try
1275     //蜿嶺ソ。繝舌ャ繝輔ぃ繧オ繧、繧コ
1276     ini.WriteInteger('HTTP', 'RecvBufferSize', FRecvBufferSize);
1277     //HTTP1.1菴ソ逕ィ
1278     ini.WriteBool('HTTP', 'Protocol', FProtocol);
1279     //繝励Ο繧ュ繧キ謗・邯唏TTP1.1菴ソ逕ィ
1280     ini.WriteBool('HTTP', 'ProxyProtocol', FProxyProtocol);
1281    
1282     ini.WriteBool('ReadProxy', 'Proxy', FReadProxy);
1283     ini.WriteString('ReadProxy', 'Address', FReadProxyAddress);
1284     ini.WriteInteger('ReadProxy', 'Port', FReadProxyPort);
1285     ini.WriteString('ReadProxy', 'UserID', FReadProxyUserID);
1286     ini.WriteString('ReadProxy', 'Password', FReadProxyPassword);
1287    
1288     ini.WriteBool('WriteProxy', 'Proxy', FWriteProxy);
1289     ini.WriteString('WriteProxy', 'Address', FWriteProxyAddress);
1290     ini.WriteInteger('WriteProxy', 'Port', FWriteProxyPort);
1291     ini.WriteString('WriteProxy', 'UserID', FWriteProxyUserID);
1292     ini.WriteString('WriteProxy', 'Password', FWriteProxyPassword);
1293    
1294 yoffy 1.6 ini.WriteString('Window', 'BrowserFontName', FBrowserFontName);
1295     ini.WriteInteger('Window', 'BrowserFontSize', FBrowserFontSize);
1296     ini.WriteInteger('Window', 'BrowserFontSize', FBrowserFontSize);
1297     ini.WriteInteger('Window', 'BrowserFontBold', FBrowserFontBold);
1298     ini.WriteInteger('Window', 'BrowserFontItalic', FBrowserFontItalic);
1299     ini.WriteInteger('Window', 'BrowserFontColor', FBrowserFontColor);
1300     ini.WriteInteger('Window', 'BrowserBackColor', FBrowserBackColor);
1301    
1302 hi_ 1.1 ini.WriteString('Window', 'CabinetFontName', FCabinetFontName);
1303     ini.WriteInteger('Window', 'CabinetFontSize', FCabinetFontSize);
1304     ini.WriteString('Window', 'CabinetFontColor', ColorToString(FCabinetFontColor));
1305     ini.WriteString('Window', 'CabinetBackColor', ColorToString(FCabinetBackColor));
1306    
1307     ini.WriteString('Window', 'ListFontName', FListFontName);
1308     ini.WriteInteger('Window', 'ListFontSize', FListFontSize);
1309     ini.WriteString('Window', 'ListFontColor', ColorToString(FListFontColor));
1310     ini.WriteString('Window', 'ListBackColor', ColorToString(FListBackColor));
1311 genyakun 1.48 ini.WriteBool('Window','UseOddColor',FUseOddColorOddResNum);
1312     ini.WriteString('Window', 'OddColor',ColorToString(FOddColor));
1313 hi_ 1.1
1314     ini.WriteString('Window', 'EditorFontName', FEditorFontName);
1315     ini.WriteInteger('Window', 'EditorFontSize', FEditorFontSize);
1316     ini.WriteString('Window', 'EditorFontColor', ColorToString(FEditorFontColor));
1317     ini.WriteString('Window', 'EditorBackColor', ColorToString(FEditorBackColor));
1318    
1319     ini.WriteString('Window', 'BrowserTabFontName', FBrowserTabFontName);
1320     ini.WriteInteger('Window', 'BrowserTabFontSize', FBrowserTabFontSize);
1321     ini.WriteBool('Window', 'BrowserTabFontBold', FBrowserTabFontBold);
1322     ini.WriteBool('Window', 'BrowserTabFontItalic', FBrowserTabFontItalic);
1323    
1324     ini.WriteString('Window', 'HintFontName', FHintFontName);
1325     ini.WriteInteger('Window', 'HintFontSize', FHintFontSize);
1326     ini.WriteString('Window', 'HintFontColor', ColorToString(FHintFontColor));
1327     ini.WriteString('Window', 'HintBackColor', ColorToString(FHintBackColor));
1328    
1329     ini.UpdateFile;
1330     finally
1331     ini.Free;
1332     end;
1333     end;
1334    
1335     //險ュ螳壹ヵ繧。繧、繝ォ菫晏ュ?window)
1336     procedure TSetting.WriteWindowSettingFile();
1337     var
1338     i: Integer;
1339     ini: TMemIniFile;
1340     CoolSet: TCoolSet;
1341 yoffy 1.66 wkList : TStringList;
1342 hi_ 1.1 begin
1343     ini := TMemIniFile.Create(GetFileName());
1344     try
1345     ini.WriteInteger('WindowSize', 'Top', WindowTop);
1346     ini.WriteInteger('WindowSize', 'Left', WindowLeft);
1347     ini.WriteInteger('WindowSize', 'Height', WindowHeight);
1348     ini.WriteInteger('WindowSize', 'Width', WindowWidth);
1349     ini.WriteBool('WindowSize', 'Max', WindowMax);
1350    
1351     ini.WriteInteger('ViewStyle', 'ListView', Ord(ListStyle));
1352    
1353     ini.WriteInteger('EditorWindowSize', 'Top', EditWindowTop);
1354     ini.WriteInteger('EditorWindowSize', 'Left', EditWindowLeft);
1355     ini.WriteInteger('EditorWindowSize', 'Height', EditWindowHeight);
1356     ini.WriteInteger('EditorWindowSize', 'Width', EditWindowWidth);
1357     ini.WriteBool('EditorWindowSize', 'Max', EditWindowMax);
1358 deux 1.20 ini.WriteBool('EditorWindowSize', 'Stay', EditWindowStay);
1359 yoffy 1.34 ini.WriteBool('EditorWindowSize', 'Translucent', EditWindowTranslucent);
1360 hi_ 1.1
1361 yoffy 1.14 ini.WriteInteger('OptionDialog', 'TabIndex', FOptionDialogTabIndex);
1362 yoffy 1.8
1363 hi_ 1.1 //繝??繝ォ繝舌?
1364     ini.WriteBool('ToolBar', 'StdVisible', FStdToolBarVisible);
1365     ini.WriteBool('ToolBar', 'AddressVisible', FAddressBarVisible);
1366     ini.WriteBool('ToolBar', 'LinkVisible', FLinkBarVisible);
1367     ini.WriteBool('ToolBar', 'ListVisible', FListToolBarVisible);
1368     ini.WriteBool('ToolBar', 'ListNameVisible', FListNameBarVisible);
1369     ini.WriteBool('ToolBar', 'BrowserVisible', FBrowserToolBarVisible);
1370     ini.WriteBool('ToolBar', 'BrowserNameVisible', FBrowserNameBarVisible);
1371     //繝??繝ォ繝舌?Wrapable
1372     ini.WriteBool('ToolBar', 'ListWrapable', FListToolBarWrapable);
1373     ini.WriteBool('ToolBar', 'BrowserWrapable', FBrowserToolBarWrapable);
1374    
1375     //繧ソ繝?/span>
1376     ini.WriteBool('Tab', 'BrowserTabVisible', FBrowserTabVisible);
1377     ini.WriteInteger('Tab', 'BrowserTabPosition', Ord(FBrowserTabPosition));
1378     ini.WriteInteger('Tab', 'BrowserTabAppend', Ord(FBrowserTabAppend));
1379     ini.WriteInteger('Tab', 'BrowserTabStyle', Ord(FBrowserTabStyle));
1380    
1381     //繝。繝?そ繝シ繧ク繝舌?
1382     ini.WriteBool('MessageBar', 'Visible', FMessageBarVisible);
1383     ini.WriteInteger('MessageBar', 'Height', FMessegeBarHeight);
1384    
1385     //繧ケ繝??繧ソ繧ケ繝舌?
1386     ini.WriteBool('StatusBar', 'Visible', FStatusBarVisible);
1387    
1388     //繧ュ繝」繝薙ロ繝?ヨ
1389     ini.WriteBool('Cabinet', 'Visible', FCabinetVisible);
1390     ini.WriteInteger('Cabinet', 'Width', FCabinetWidth);
1391 yoffy 1.14 ini.WriteInteger('Cabinet', 'Index', FCabinetIndex);
1392 hi_ 1.1
1393     //繝ェ繧ケ繝医?繧オ繧、繧コ縺ィ蝙ら峩豌エ蟷ウ
1394     ini.WriteInteger('List', 'Orientation', Ord(FListOrientation));
1395     ini.WriteInteger('List', 'Height', FListHeight);
1396     ini.WriteInteger('List', 'HeightState', Ord(FListHeightState));
1397     ini.WriteInteger('List', 'Width', FListWidth);
1398     ini.WriteInteger('List', 'WidthState', Ord(FListWidthState));
1399     // ini.WriteBool('List', 'HeightMax', FListHeightMax);
1400     // ini.WriteBool('List', 'WidthMax', FListWidthMax);
1401    
1402    
1403     // ini.WriteInteger('Window', 'BrowserFontSize', BrowserFontSize);
1404    
1405     //繝ェ繧ケ繝育分蜿キ陦ィ遉コ
1406     ini.WriteBool('Function', 'ListViewNo', FListViewNo);
1407     //CSS菴ソ逕ィ
1408     ini.WriteBool('CSS', 'UseCSS', FUseCSS);
1409     //CSS繝輔ぃ繧、繝ォ蜷?/span>
1410     ini.WriteString('CSS', 'FileName', FCSSFileName);
1411     //Mail谺?。ィ遉コ
1412     ini.WriteBool('Thread', 'ShowMail', FShowMail);
1413 yoffy 1.49 // 繝ャ繧ケ陦ィ遉コ遽?峇
1414 yoffy 1.58 ini.DeleteKey( 'Thread', 'OnlyAHundredRes' ); // 蜿、縺?ィュ螳壹?蜑企勁
1415 yoffy 1.49 ini.WriteInteger('Thread', 'ResRange', FResRange);
1416 yoffy 1.51 ini.WriteBool('Thread', 'ResRangeHold', FResRangeHold);
1417 yoffy 1.55 // 繧ケ繝ャ繝?ラ荳?隕ァ陦ィ遉コ遽?峇
1418     ini.WriteInteger('ThreadList', 'ThreadRange', Ord( FThreadRange ));
1419 hi_ 1.1 //繝ュ繧ー蜑企勁遒コ隱?/span>
1420     ini.WriteBool('Function', 'LogDeleteMessage', FDeleteMsg);
1421 yoffy 1.14 //邨ゆコ?「コ隱?/span>
1422     ini.WriteBool('Function','ShowDialogForEnd',FShowDialogForEnd);
1423 h677 1.38 //AllTabClose
1424     ini.WriteBool('Function','ShowDialogForAllTabClose', FShowDialogForAllTabClose);
1425 yoffy 1.34 //Samba
1426     ini.WriteBool('Function','UseSamba', FUseSamba);
1427 h677 1.38 //ResAnchorjamp
1428     ini.WriteBool('Function', 'ResAnchoJamp', ResAnchorJamp);
1429 h677 1.33
1430 hi_ 1.1 //髱槭い繧ッ繝?ぅ繝匁凾繝昴ャ繝励い繝??陦ィ遉コ
1431     ini.WriteBool('Thread', 'UnActivePopup', FUnActivePopup);
1432 yoffy 1.2 //繝ャ繧ケ繝昴ャ繝励い繝??繝倥ャ繝?繝シ繝懊?繝ォ繝?/span>
1433     ini.WriteBool('Thread', 'ResPopupHeaderBold', FResPopupHeaderBold);
1434 h677 1.11 //ini.WriteString('BoardURL', '2ch', FBoardURL2ch);
1435 hi_ 1.1
1436     //隱崎ィシ逕ィ繝ヲ繝シ繧カID繝サ繝代せ繝ッ繝シ繝?/span>
1437     ini.WriteString('Attestation', 'UserID', FUserID);
1438     ini.WriteString('Attestation', 'Password', Encrypt(FPassword));
1439     ini.WriteBool('Attestation', 'AutoLogin', FAutoLogin);
1440 h677 1.36 ini.WriteBool('Attestation', 'FForcedLogin', FForcedLogin);
1441     ini.WriteString('Attestation', 'FDolibURL', FDolibURL);
1442 hi_ 1.1
1443     //URL繧ッ繝ェ繝?け譎りオキ蜍輔い繝励Μ
1444     ini.WriteBool('URLApp', 'Select', FURLApp);
1445     ini.WriteString('URLApp', 'File', FURLAppFile);
1446    
1447     //mailto繧ッ繝ェ繝?け譎ょ虚菴?/span>
1448     ini.WriteBool('Mailto', 'Open', FOpenMailer);
1449    
1450     //繝昴ャ繝励い繝??菴咲スョ
1451     ini.WriteInteger('Browser', 'PopupPosition', Ord(FPopupPosition));
1452    
1453     //繧「繝峨Ξ繧ケ繝舌?
1454     ini.WriteBool('AddressBar', 'URLDisplay', FURLDisplay);
1455     ini.WriteBool('AddressBar', 'TabStop', FAddressBarTabStop);
1456     ini.WriteBool('AddressBar', 'LinkAdd', FLinkAddAddressBar);
1457     ini.WriteInteger('AddressBar', 'HistoryCount', FAddressHistoryCount);
1458    
1459     //逕サ蜒上?繝ャ繝薙Η繝シ
1460     ini.WriteBool('Browser', 'PreviewVisible', FPreviewVisible);
1461     ini.WriteInteger('Browser', 'PreviewSize', Ord(FPreviewSize));
1462     ini.WriteInteger('Browser', 'PreviewWait', FPreviewWait);
1463 yoffy 1.61
1464     ini.WriteInteger('Window', 'BrowserAutoMaximize', Ord( BrowserAutoMaximize ) );
1465 hi_ 1.1
1466     //繧ケ繝ャ繝?ラ荳?隕ァ譖エ譁ー繧「繧、繧ウ繝ウ
1467     ini.WriteBool('ThreadList', 'StateIconVisible', FListIconVisible);
1468 yoffy 1.34 ini.WriteBool('ThreadList', 'CreationTimeLogs',FCreationTimeLogs);
1469     ini.WriteBool('ThreadList', 'FutureThread', FFutureThread);
1470 q9_ 1.44 ini.WriteInteger('ThreadList', 'SelectInterval', FSelectInterval);
1471 q9_ 1.46 //繧ス繝シ繝磯??/span>
1472     ini.WriteInteger('ThreadList', 'BBSSortIndex', FBBSSortIndex);
1473     ini.WriteBool('ThreadList', 'BBSSortOrder', FBBSSortOrder);
1474     ini.WriteInteger('ThreadList', 'CategorySortIndex', FCategorySortIndex);
1475     ini.WriteBool('ThreadList', 'CategorySortOrder', FCategorySortOrder);
1476     ini.WriteInteger('ThreadList', 'BoardSortIndex', FBoardSortIndex);
1477     ini.WriteBool('ThreadList', 'BoardSortOrder', FBoardSortOrder);
1478 q9_ 1.53 ini.WriteInteger('ThreadList', 'DatOchiSortIndex', FDatOchiSortIndex);
1479     ini.WriteBool('ThreadList', 'DatOchiSortOrder', FDatOchiSortOrder);
1480 hi_ 1.1
1481     //譖ク縺崎セシ縺ソ譎ゅ?繧キ繝ウ譎ょ綾菴ソ逕ィ險ュ螳?/span>
1482     ini.WriteBool('PostTime', 'UseMachineTime', FUseMachineTime);
1483     ini.WriteInteger('PostTime', 'TimeAdjustSec', FTimeAdjustSec);
1484     ini.WriteBool('PostTime', 'TimeAdjust', FTimeAdjust);
1485    
1486 yoffy 1.64 // 繝ェ繧ケ繝医き繝ゥ繝?蟷?/span>
1487 hi_ 1.1 for i := 0 to Length(FBBSColumnWidth) - 1 do begin
1488     ini.WriteInteger('BBSColumnWidth', 'ID' + IntToStr(i), FBBSColumnWidth[i]);
1489     end;
1490     for i := 0 to Length(FCategoryColumnWidth) - 1 do begin
1491     ini.WriteInteger('CategoryColumnWidth', 'ID' + IntToStr(i), FCategoryColumnWidth[i]);
1492     end;
1493     for i := 0 to Length(FBoardColumnWidth) - 1 do begin
1494     ini.WriteInteger('BoardColumnWidth', 'ID' + IntToStr(i), FBoardColumnWidth[i]);
1495     end;
1496    
1497 yoffy 1.66 wkList := TStringList.Create;
1498     try
1499     // 繧ォ繝?ざ繝ェ繝ェ繧ケ繝磯??コ?/span>
1500     ini.ReadSection( 'BBSColumnOrder', wkList );
1501     for i := wkList.Count - 1 downto 0 do
1502     ini.DeleteKey( 'BBSColumnOrder', wkList[ i ] );
1503     for i := 0 to FBBSColumnOrder.Count - 1 do
1504     ini.WriteInteger( 'BBSColumnOrder', 'ID' + IntToStr( i ), Ord( FBBSColumnOrder[ i ] ) );
1505    
1506     // 譚ソ繝ェ繧ケ繝磯??コ?/span>
1507     ini.ReadSection( 'CategoryColumnOrder', wkList );
1508     for i := wkList.Count - 1 downto 0 do
1509     ini.DeleteKey( 'CategoryColumnOrder', wkList[ i ] );
1510     for i := 0 to FCategoryColumnOrder.Count - 1 do
1511     ini.WriteInteger( 'CategoryColumnOrder', 'ID' + IntToStr( i ), Ord( FCategoryColumnOrder[ i ] ) );
1512    
1513     // 繧ケ繝ャ繝ェ繧ケ繝磯??コ?/span>
1514     ini.ReadSection( 'BoardColumnOrder', wkList );
1515     for i := wkList.Count - 1 downto 0 do
1516     ini.DeleteKey( 'BoardColumnOrder', wkList[ i ] );
1517     for i := 0 to FBoardColumnOrder.Count - 1 do
1518     ini.WriteInteger( 'BoardColumnOrder', 'ID' + IntToStr( i ), Ord( FBoardColumnOrder[ i ] ) );
1519     finally
1520     wkList.Free;
1521     end;
1522 yoffy 1.64
1523 hi_ 1.1 //繧オ繧ヲ繝ウ繝?/span>
1524     for i := 0 to GetSoundCount - 1 do begin
1525     if not FileExists(SoundFileName[i]) then
1526     SoundFileName[i] := '';
1527     ini.WriteString('Sound', SoundName[i], SoundFileName[i]);
1528     end;
1529    
1530     //CoolBar
1531     ini.EraseSection('MainCoolBar');
1532     for i := 0 to MAIN_COOLBAND_COUNT - 1 do begin
1533     CoolSet := MainCoolSet[i];
1534     ini.WriteInteger('MainCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1535     ini.WriteInteger('MainCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1536     ini.WriteBool('MainCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1537     end;
1538 yoffy 1.2 ini.EraseSection('ListCoolBar');
1539 yoffy 1.14 ini.WriteInteger( 'ListCoolBar', 'SelectWidth', FSelectComboBoxWidth );
1540 hi_ 1.1 for i := 0 to LIST_COOLBAND_COUNT - 1 do begin
1541     CoolSet := ListCoolSet[i];
1542     ini.WriteInteger('ListCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1543     ini.WriteInteger('ListCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1544     ini.WriteBool('ListCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1545     end;
1546     ini.EraseSection('BrowserCoolBar');
1547     for i := 0 to BROWSER_COOLBAND_COUNT - 1 do begin
1548     CoolSet := BrowserCoolSet[i];
1549     ini.WriteInteger('BrowserCoolBar', 'ID' + IntToStr(i), CoolSet.FCoolID);
1550     ini.WriteInteger('BrowserCoolBar', 'Width' + IntToStr(i), CoolSet.FCoolWidth);
1551     ini.WriteBool('BrowserCoolBar', 'Break' + IntToStr(i), CoolSet.FCoolBreak);
1552     end;
1553 h677 1.3
1554 h677 1.9 //縺ゅ⊂縲懊s
1555     ini.WriteBool('Abon','Deleterlo',FAbonDeleterlo);
1556     ini.WriteBool('Abon','Replaceul',FAbonReplaceul);
1557 yoffy 1.14 ini.WriteBool('Abon','Popup',FPopUpAbon);
1558 h677 1.9 ini.WriteBool('Abon','ShowNGLines',FShowNGLinesNum);
1559     ini.WriteBool('Abon','AddResAnchor',FAddResAnchor);
1560 yoffy 1.40 ini.WriteBool('Abon','DeleteSyria',FDeleteSyria);
1561    
1562     // 繧ィ繝?ぅ繧ソ
1563     ini.WriteBool( 'Editor', 'SpaceToNBSP', FSpaceToNBSP );
1564 yoffy 1.41 ini.WriteBool( 'Editor', 'AmpToCharRef', FAmpToCharRef );
1565 hi_ 1.1
1566 genyakun 1.71 //繧ソ繝冶?蜍穂ソ晏ュ?/span>
1567 h677 1.67 ini.WriteBool('TabAuto', 'TabAutoLoadSave', FTabAutoLoadSave);
1568 genyakun 1.71 //隧ウ邏ー險ュ螳?/span>
1569     ini.WriteInteger('OptionDialog', 'KuroutTabIndex', FKuroutSettingTabIndex);
1570 h677 1.67
1571 genyakun 1.71 //縺ォ縺。繧?s隱樊。亥?讖溯?
1572 yoffy 1.74 ini.WriteBool('2chSupport', 'Support', F2chSupport);
1573 genyakun 1.52
1574 yoffy 1.74 ini.UpdateFile;
1575 hi_ 1.1 finally
1576     ini.Free;
1577     end;
1578     end;
1579    
1580     //險ュ螳壹ヵ繧。繧、繝ォ菫晏ュ?name & mail)
1581     procedure TSetting.WriteNameMailSettingFile();
1582     var
1583     i: Integer;
1584     ini: TMemIniFile;
1585     begin
1586     ini := TMemIniFile.Create(GetFileName());
1587     try
1588     ini.EraseSection('Name');
1589     ini.EraseSection('Mail');
1590     ini.EraseSection('SelectText');
1591     for i := 0 to FNameList.Count - 1 do begin
1592     ini.WriteString('Name', Format('%.2d', [i + 1]), FNameList[i]);
1593     if i >= 39 then
1594     Break;
1595     end;
1596     for i := 0 to FMailList.Count - 1 do begin
1597     ini.WriteString('Mail', Format('%.2d', [i + 1]), FMailList[i]);
1598     if i >= 39 then
1599     Break;
1600     end;
1601     for i := 0 to FSelectTextList.Count - 1 do begin
1602     ini.WriteString('SelectText', Format('%.2d', [i + 1]), FSelectTextList[i]);
1603     if i >= 39 then
1604     Break;
1605     end;
1606     ini.UpdateFile;
1607     finally
1608     ini.Free;
1609     end;
1610     end;
1611    
1612     procedure TSetting.WriteFolderSettingFile();
1613     var
1614     ini: TMemIniFile;
1615     begin
1616     ini := TMemIniFile.Create(GetFileName());
1617     try
1618     if ExtractFilePath(Application.ExeName) + 'Log' = NewLogFolder then
1619     ini.DeleteKey('Folder', 'LogFolder')
1620     else
1621     ini.WriteString('Folder', 'LogFolder', NewLogFolder);
1622     ini.UpdateFile;
1623     finally
1624     ini.Free;
1625     end;
1626     end;
1627 h677 1.11 //譚ソ譖エ譁ー逕ィBoardURL繧剃ソ晏ュ?/span>
1628     procedure TSetting.WriteBoardURLSettingFile();
1629     var
1630     ini: TMemIniFile;
1631 yoffy 1.14 i : Integer;
1632     oldcount : Integer;
1633 h677 1.11 begin
1634     ini := TMemIniFile.Create(GetBoardURLFileName());
1635     try
1636 yoffy 1.14 oldcount := ini.ReadInteger('URL','count',FBoardURLs.Count);
1637     ini.WriteInteger('URL','count',FBoardURLs.Count);
1638     ini.WriteInteger('URL','selected',BoardURLSelected);
1639     for i := 0 to FBoardURLs.Count -1 do begin
1640     ini.WriteString('URL',IntToStr(i+1),FBoardURLs.Strings[i]);
1641     end;
1642     if oldcount > FBoardURLs.Count then begin
1643     for i := FBoardURLs.Count to oldcount do begin
1644     ini.DeleteKey('URL',IntToStr(i+1));
1645     end;
1646     end;
1647 h677 1.11 ini.UpdateFile;
1648     finally
1649     ini.Free;
1650     end;
1651     end;
1652 hi_ 1.1
1653 yoffy 1.28 {$R-}
1654 hi_ 1.1 //繝ェ繧ケ繝医き繝ゥ繝?繝倥ャ繝?繝シ
1655     function TSetting.GetBBSColumnWidth(index: Integer): Integer;
1656     begin
1657     Result := IfThen(index in [0..Length(FBBSColumnWidth) - 1], FBBSColumnWidth[index], 0);
1658     end;
1659    
1660     function TSetting.GetCategoryColumnWidth(index: Integer): Integer;
1661     begin
1662     Result := IfThen(index in [0..Length(FCategoryColumnWidth) - 1], FCategoryColumnWidth[index], 0);
1663     end;
1664    
1665     function TSetting.GetBoardColumnWidth(index: Integer): Integer;
1666     begin
1667     Result := IfThen(index in [0..Length(FBoardColumnWidth) - 1], FBoardColumnWidth[index], 0);
1668     end;
1669 yoffy 1.28 {$IFDEF DEBUG}
1670     {$R+}
1671     {$ENDIF}
1672 hi_ 1.1
1673     procedure TSetting.SetBBSColumnWidth(index: Integer; value: Integer);
1674     begin
1675     if index in [0..Length(FBBSColumnWidth) - 1] then
1676     FBBSColumnWidth[index] := value;
1677     end;
1678    
1679     procedure TSetting.SetCategoryColumnWidth(index: Integer; value: Integer);
1680     begin
1681     if index in [0..Length(FCategoryColumnWidth) - 1] then
1682     FCategoryColumnWidth[index] := value;
1683     end;
1684    
1685     procedure TSetting.SetBoardColumnWidth(index: Integer; value: Integer);
1686     begin
1687     if index in [0..Length(FBoardColumnWidth) - 1] then
1688     FBoardColumnWidth[index] := value;
1689     end;
1690    
1691     function TSetting.GetSoundCount: Integer;
1692     begin
1693     Result := Length(SOUND_NAME);
1694     end;
1695    
1696     function TSetting.GetSoundName(Index: Integer): string;
1697     begin
1698     if (Index < GetSoundCount) and (Index >= 0) then
1699     Result := SOUND_NAME[Index].Name
1700     else
1701     Result := '';
1702     end;
1703    
1704     function TSetting.GetSoundViewName(Index: Integer): string;
1705     begin
1706     if (Index < GetSoundCount) and (Index >= 0) then
1707     Result := SOUND_NAME[Index].ViewName
1708     else
1709     Result := '';
1710     end;
1711    
1712     function TSetting.GetSoundFileName(Index: Integer): string;
1713     begin
1714     if (Index < GetSoundCount) and (Index >= 0) then
1715     Result := SOUND_NAME[Index].FileName
1716     else
1717     Result := '';
1718     end;
1719    
1720     procedure TSetting.SetSoundFileName(Index: Integer; value: string);
1721     begin
1722     if (Index < GetSoundCount) and (Index >= 0) then
1723     SOUND_NAME[Index].FileName := value;
1724     end;
1725    
1726     function TSetting.FindSoundFileName(Name: string): string;
1727     var
1728     i: Integer;
1729     begin
1730     for i := 0 to GetSoundCount - 1 do begin
1731     if SoundName[i] = Name then begin
1732     Result := SoundFileName[i];
1733     Exit;
1734     end;
1735     end;
1736     Result := '';
1737     end;
1738    
1739     function TSetting.Encrypt(s: string): string;
1740     var
1741     cryptObj: THogeCryptAuto;
1742     inputStream, outputStream: TStringStream;
1743     begin
1744     inputStream := TStringStream.Create(s);
1745     outputStream := TStringStream.Create('');
1746     cryptObj := THogeCryptAuto.Create;
1747     try
1748     // 證怜捷蛹?/span>
1749     cryptObj.Encrypt(inputStream, GIKO_ENCRYPT_TEXT, outputStream);
1750    
1751     // 繝舌う繝翫Μ縺ェ縺ョ縺ァ蠢?ヲ√↓蠢懊§縺ヲ繝?く繧ケ繝医↓螟画鋤
1752     Result := HogeBase64Encode(outputStream.DataString);
1753     finally
1754     cryptObj.Free;
1755     outputStream.Free;
1756     inputStream.Free;
1757     end;
1758     end;
1759    
1760     function TSetting.Decrypt(s: string): string;
1761     var
1762     cryptObj: THogeCryptAuto;
1763     inputStream, outputStream: TStringStream;
1764     begin
1765     try
1766     inputStream := TStringStream.Create(HogeBase64Decode(s));
1767     except
1768     Result := '';
1769     Exit;
1770     end;
1771     outputStream := TStringStream.Create('');
1772     cryptObj := THogeCryptAuto.Create;
1773     try
1774     // 蠕ゥ蜿キ
1775     cryptObj.Decrypt(inputStream, GIKO_ENCRYPT_TEXT, outputStream);
1776     Result := outputStream.DataString;
1777     finally
1778     cryptObj.Free;
1779     outputStream.Free;
1780     inputStream.Free;
1781     end;
1782     end;
1783    
1784     function TSetting.GetMainCoolSet(Index: Integer): TCoolSet;
1785     begin
1786     if Index in [0..MAIN_COOLBAND_COUNT - 1] then
1787     Result := FMainCoolBar[Index]
1788     else begin
1789     Result.FCoolID := -1;
1790     Result.FCoolWidth := -1;
1791     Result.FCoolBreak := False;
1792     end;
1793     end;
1794    
1795     function TSetting.GetBoardCoolSet(Index: Integer): TCoolSet;
1796     begin
1797     if Index in [0..LIST_COOLBAND_COUNT - 1] then
1798     Result := FListCoolBar[Index]
1799     else begin
1800     Result.FCoolID := -1;
1801     Result.FCoolWidth := -1;
1802     Result.FCoolBreak := False;
1803     end;
1804     end;
1805    
1806     function TSetting.GetBrowserCoolSet(Index: Integer): TCoolSet;
1807     begin
1808     if Index in [0..BROWSER_COOLBAND_COUNT - 1] then
1809     Result := FBrowserCoolBar[Index]
1810     else begin
1811     Result.FCoolID := -1;
1812     Result.FCoolWidth := -1;
1813     Result.FCoolBreak := False;
1814     end;
1815     end;
1816    
1817     procedure TSetting.SetMainCoolSet(Index: Integer; CoolSet: TCoolSet);
1818     begin
1819     if Index in [0..MAIN_COOLBAND_COUNT - 1] then
1820     FMainCoolBar[Index] := CoolSet;
1821     end;
1822    
1823     procedure TSetting.SetBoardCoolSet(Index: Integer; CoolSet: TCoolSet);
1824     begin
1825     if Index in [0..LIST_COOLBAND_COUNT - 1] then
1826     FListCoolBar[Index] := CoolSet;
1827     end;
1828    
1829     procedure TSetting.SetBrowserCoolSet(Index: Integer; CoolSet: TCoolSet);
1830     begin
1831     if Index in [0..BROWSER_COOLBAND_COUNT - 1] then
1832     FBrowserCoolBar[Index] := CoolSet;
1833     end;
1834    
1835 h677 1.11 //url.ini縺後↑縺?→縺阪↓逕滓?縺吶k
1836     procedure TSetting.MakeURLIniFile();
1837     var
1838     ini: TMemIniFile;
1839     begin
1840     ini := TMemIniFile.Create(GetBoardURLFileName());
1841     try
1842 yoffy 1.14 ini.WriteInteger('URL','count',2);
1843     ini.WriteInteger('URL','selected',2);
1844     ini.WriteString('URL','1',DEFAULT_2CH_BOARD_URL1);
1845     ini.WriteString('URL','2',DEFAULT_2CH_BOARD_URL2);
1846 h677 1.11 ini.UpdateFile;
1847     finally
1848     ini.Free;
1849     end;
1850 yoffy 1.14 end;
1851    
1852     (*************************************************************************
1853     *繝懊?繝峨ヵ繧。繧、繝ォ蜷榊叙蠕暦シ医ヱ繧ケ?九ヵ繧。繧、繝ォ蜷搾シ?/span>
1854     *************************************************************************)
1855     function TSetting.GetBoardFileName: string;
1856     begin
1857     Result := GetAppDir + CONFIG_DIR_NAME + '\' + BOARD_FILE_NAME;
1858     end;
1859    
1860     (*************************************************************************
1861     *繝懊?繝峨ヵ繧。繧、繝ォ蜷榊叙蠕暦シ医ヱ繧ケ?九ヵ繧。繧、繝ォ蜷搾シ?/span>
1862     *************************************************************************)
1863     function TSetting.GetCustomBoardFileName: string;
1864     begin
1865     Result := GetAppDir + CONFIG_DIR_NAME + '\' + CUSTOMBOARD_FILE_NAME;
1866 yoffy 1.18 end;
1867    
1868     (*************************************************************************
1869     *繝懊?繝峨ョ繧」繝ャ繧ッ繝医Μ蜿門セ?/span>
1870     *************************************************************************)
1871     function TSetting.GetBoardDir: string;
1872     begin
1873     Result := GetAppDir + CONFIG_DIR_NAME + '\' + BOARD_DIR_NAME + '\';
1874 yoffy 1.14 end;
1875    
1876     (*************************************************************************
1877     *繝?Φ繝昴Λ繝ェ繝輔か繝ォ繝?繝シ蜷榊叙蠕?/span>
1878     *************************************************************************)
1879     function TSetting.GetHtmlTempFileName: string;
1880     begin
1881     Result := TEMP_FOLDER;
1882     end;
1883    
1884    
1885     (*************************************************************************
1886     *螳溯。後ヵ繧。繧、繝ォ繝輔か繝ォ繝?蜿門セ?/span>
1887     *************************************************************************)
1888     function TSetting.GetAppDir: string;
1889     begin
1890     Result := ExtractFilePath(Application.ExeName);
1891     end;
1892    
1893     (*************************************************************************
1894     *TempHtml繝輔ぃ繧、繝ォ蜷榊叙蠕暦シ医ヱ繧ケ?九ヵ繧。繧、繝ォ蜷搾シ?/span>
1895     *************************************************************************)
1896     function TSetting.GetTempFolder: string;
1897     begin
1898     Result := GetAppDir + TEMP_FOLDER;
1899     end;
1900    
1901     (*************************************************************************
1902     *sent.ini繝輔ぃ繧、繝ォ蜷榊叙蠕暦シ医ヱ繧ケ?九ヵ繧。繧、繝ォ蜷搾シ?/span>
1903     *************************************************************************)
1904     function TSetting.GetSentFileName: string;
1905     begin
1906     Result := GetAppDir + SENT_FILE_NAME;
1907     end;
1908    
1909     (*************************************************************************
1910     *outbox.ini繝輔ぃ繧、繝ォ蜷榊叙蠕暦シ医ヱ繧ケ?九ヵ繧。繧、繝ォ蜷搾シ?/span>
1911     *************************************************************************)
1912     function TSetting.GetOutBoxFileName: string;
1913     begin
1914     Result := GetAppDir + OUTBOX_FILE_NAME;
1915     end;
1916    
1917     (*************************************************************************
1918     *Config繝輔か繝ォ繝?蜿門セ?/span>
1919     *************************************************************************)
1920     function TSetting.GetConfigDir: string;
1921     begin
1922     Result := IncludeTrailingPathDelimiter(GetAppDir + CONFIG_DIR_NAME);
1923     end;
1924    
1925     function TSetting.GetStyleSheetDir: string;
1926     begin
1927     Result := IncludeTrailingPathDelimiter(GetConfigDir + CSS_DIR_NAME);
1928     end;
1929    
1930     function TSetting.GetSkinDir: string;
1931     begin
1932     Result := IncludeTrailingPathDelimiter(GetConfigDir + SKIN_DIR_NAME);
1933     end;
1934    
1935     function TSetting.GetSkinHeaderFileName: string;
1936     begin
1937     Result := CSSFileName + SKIN_HEADER_FILE_NAME;
1938     end;
1939    
1940     function TSetting.GetSkinFooterFileName: string;
1941     begin
1942     Result := CSSFileName + SKIN_FOOTER_FILE_NAME;
1943     end;
1944    
1945     function TSetting.GetSkinNewResFileName: string;
1946     begin
1947     Result := CSSFileName + SKIN_NEWRES_FILE_NAME;
1948     end;
1949    
1950     function TSetting.GetSkinResFileName: string;
1951     begin
1952     Result := CSSFileName + SKIN_RES_FILE_NAME;
1953     end;
1954    
1955     function TSetting.GetSkinBookmarkFileName: string;
1956     begin
1957     Result := CSSFileName + SKIN_BOOKMARK_FILE_NAME;
1958     end;
1959    
1960     function TSetting.GetSkinNewmarkFileName: string;
1961     begin
1962     Result := CSSFileName + SKIN_NEWMARK_FILE_NAME;
1963 yoffy 1.15 end;
1964    
1965     function TSetting.GetNGWordsDir: string;
1966     begin
1967 yoffy 1.16 Result := IncludeTrailingPathDelimiter(GetConfigDir + NGWORDs_DIR_NAME);
1968     end;
1969    
1970     function TSetting.GetBoardPlugInDir: string;
1971     begin
1972     Result := IncludeTrailingPathDelimiter(GetConfigDir + BOARD_PLUGIN_DIR_NAME);
1973 yoffy 1.14 end;
1974    
1975     procedure TSetting.SetUseCSS( value: Boolean );
1976     begin
1977    
1978     FUseCSS := value;
1979    
1980     FUseSkin :=
1981     UseCSS and
1982     (Pos( GetSkinDir, CSSFileName ) > 0) and
1983     FileExists( GetSkinHeaderFileName );
1984    
1985     end;
1986    
1987     procedure TSetting.SetCSSFileName( fileName: string );
1988     begin
1989    
1990     FCSSFileName := fileName;
1991    
1992     FUseSkin :=
1993     UseCSS and
1994     (Pos( GetSkinDir, CSSFileName ) > 0) and
1995     FileExists( GetSkinHeaderFileName );
1996    
1997 h677 1.11 end;
1998 hi_ 1.1
1999 h677 1.31 function TSetting.GetSambaFileName: string;
2000     begin
2001     Result := GetAppDir + SAMBATIME_FILE_NAME;
2002     end;
2003 h677 1.35 //譚ソ譖エ譁ー髯、螟悶き繝?ざ繝ェ繝ェ繧ケ繝井ソ晏ュ倥ヵ繧。繧、繝ォ
2004     function TSetting.GetIgnoreFileName: string;
2005     begin
2006     Result := GetConfigDir + IGNORE_FILE_NAME;
2007     end;
2008    
2009 yoffy 1.74 //! 繝槭え繧ケ繧ク繧ァ繧ケ繝√Ε繝シ繝輔ぃ繧、繝ォ繝代せ
2010     function TSetting.GetGestureFileName: string;
2011     begin
2012     Result := GetConfigDir + GESTURE_FILE_NAME;
2013     end;
2014    
2015 hi_ 1.1 end.
2016 h677 1.35
2017 hi_ 1.1

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