Develop and Download Open Source Software

Browse CVS Repository

Annotation of /gikonavigoeson/gikonavi/Giko.pas

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


Revision 1.452 - (hide annotations) (download) (as text)
Fri Oct 8 15:12:51 2004 UTC (19 years, 6 months ago) by h677
Branch: MAIN
Changes since 1.451: +35 -34 lines
File MIME type: text/x-pascal
個別あぼ〜んに関する不具合の修正

1 hi_ 1.1 unit Giko;
2    
3     interface
4    
5     uses
6     Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
7 yoffy 1.117 OleCtrls, ComCtrls, ExtCtrls, Menus, StdCtrls, MMSystem, DateUtils, Math,
8 hi_ 1.4 {$IF Defined(DELPRO) }
9 yoffy 1.138 SHDocVw,
10 hi_ 1.4 MSHTML,
11     {$ELSE}
12     SHDocVw_TLB,
13     MSHTML_TLB,
14     {$IFEND}
15 h677 1.183 IdHTTP, ActiveX, ActnList, ImgList,
16 h677 1.343 ToolWin, Buttons, {Clipbrd,} {HTTPApp,} YofUtils, IdComponent,
17 h677 1.183 ShellAPI, UrlMon, Tabs, IdGlobal, StrUtils,
18 h677 1.170 CommCtrl, IniFiles, Dialogs,
19 hi_ 1.1 GikoSystem, GikoUtil, Setting, BoardGroup, ThreadControl, ItemDownload,
20     Editor, RoundData, RoundName, KeySetting, GikoPanel, Favorite, FavoriteAdd,
21     FavoriteArrange, AddressHistory, Preview, HTMLDocumentEvent, Kotehan,
22 h677 1.35 HintWindow, GikoCoolBar, GikoListView, ToolBarSetting, ToolBarUtil,
23 h677 1.170 IndividualAbon, Search, ExternalBoardManager, ExternalBoardPlugInMain,
24 genyakun 1.348 StdActns, GikoXMLDoc, Variants, ExtActns,IdTCPConnection, IdBaseComponent,
25     IdTCPClient;
26 hi_ 1.1
27     type
28 yoffy 1.138 TGikoTreeType = (gttNone, gtt2ch, gttHistory, gttFavorite);
29 yoffy 1.258 TToolBarSettingSenderType = (tssNone, tssMain, tssList, tssBrowser);
30 yoffy 1.280 TMinimizeType = (mtNone, mtMinimizing, mtMinimized);
31 yoffy 1.424 TResizeType = (rtNone, rtResizing);
32 hi_ 1.1
33 h677 1.299 TBrowserRecord = class;
34    
35 hi_ 1.1 TGikoForm = class(TForm)
36     StatusBar: TStatusBar;
37     MainPanel: TPanel;
38     ClientPanel: TPanel;
39     TreeSplitter: TSplitter;
40     CabinetPanel: TPanel;
41     TreeView: TTreeView;
42     ThreadMainPanel: TPanel;
43     ListSplitter: TSplitter;
44     ViewPanel: TPanel;
45 yoffy 1.51 ListView: TGikoListView;
46 hi_ 1.1 ThreadPanel: TPanel;
47     MessagePanel: TPanel;
48     MessageBar: TPanel;
49     MessageHideButton: TSpeedButton;
50     MessageListView: TListView;
51     MessageSplitter: TSplitter;
52     Panel3: TPanel;
53     SpeedButton1: TSpeedButton;
54     ToolBar1: TToolBar;
55     CabinetSelectToolButton: TToolButton;
56     HistoryToolBar: TToolBar;
57     ToolButton15: TToolButton;
58     ToolButton18: TToolButton;
59     ItemIcon16: TImageList;
60     ItemIcon32: TImageList;
61 yoffy 1.2 HotToobarImageList: TImageList;
62 yoffy 1.51 ToobarImageList: TImageList;
63 hi_ 1.1 ItemImageList: TImageList;
64 yoffy 1.2 ActionList: TActionList;
65 hi_ 1.1 LogDeleteAction: TAction;
66     KidokuAction: TAction;
67     StdToolBarVisibleAction: TAction;
68     SearchAction: TAction;
69 yoffy 1.51 GikoNaviWebPageAction: TAction;
70 hi_ 1.1 AboutAction: TAction;
71     ExitAction: TAction;
72 yoffy 1.51 MsgBarVisibleAction: TAction;
73 hi_ 1.1 StatusBarVisibleAction: TAction;
74     LargeIconAction: TAction;
75     SmallIconAction: TAction;
76     ListIconAction: TAction;
77 yoffy 1.51 DetailIconAction: TAction;
78 yoffy 1.141 CabinetBBSAction: TAction;
79 hi_ 1.1 CabinetHistoryAction: TAction;
80 yoffy 1.51 CabinetVisibleAction: TAction;
81     MidokuAction: TAction;
82 hi_ 1.1 AllSelectAction: TAction;
83     UpFolderAction: TAction;
84 yoffy 1.51 ListNumberVisibleAction: TAction;
85 hi_ 1.1 AllItemAction: TAction;
86 yoffy 1.51 LogItemAction: TAction;
87     NewItemAction: TAction;
88 hi_ 1.1 SelectItemAction: TAction;
89     ShowThreadAction: TAction;
90     StopAction: TAction;
91     MainMenu: TMainMenu;
92     FileMenu: TMenuItem;
93 yoffy 1.51 DeleteMenu: TMenuItem;
94     ExitMenu: TMenuItem;
95     KidokuMenu: TMenuItem;
96 hi_ 1.1 MidokuMenu: TMenuItem;
97 yoffy 1.51 AllSelectMenu: TMenuItem;
98 hi_ 1.1 ViewMenu: TMenuItem;
99     StdToolBarMenu: TMenuItem;
100     CabinetMenu: TMenuItem;
101 yoffy 1.51 H1: TMenuItem;
102 hi_ 1.1 N4: TMenuItem;
103 yoffy 1.51 CabinetVisibleMenu: TMenuItem;
104 hi_ 1.1 MessageMenu: TMenuItem;
105     StatusBarMenu: TMenuItem;
106     MMSep03: TMenuItem;
107 yoffy 1.51 LargeIconMenu: TMenuItem;
108 hi_ 1.1 SmallIconMenu: TMenuItem;
109     ListMenu: TMenuItem;
110     DetailMenu: TMenuItem;
111 yoffy 1.51 ToolMenu: TMenuItem;
112 hi_ 1.1 Find1: TMenuItem;
113     RoundMenu: TMenuItem;
114     MMSep04: TMenuItem;
115     OptionMenu: TMenuItem;
116     HelpMenu: TMenuItem;
117     G1: TMenuItem;
118 yoffy 1.51 N1: TMenuItem;
119 hi_ 1.1 AboutMenu: TMenuItem;
120 yoffy 1.51 IconStyle: TAction;
121 hi_ 1.1 BrowserPopupMenu: TPopupMenu;
122 yoffy 1.51 ShowThreadMenu: TMenuItem;
123 yoffy 1.2 ShowBoardMenu: TMenuItem;
124 hi_ 1.1 ShowBoardAction: TAction;
125     ListIconPopupMenu: TPopupMenu;
126     LargeIconPMenu: TMenuItem;
127     SmallIconPMenu: TMenuItem;
128     ListPMenu: TMenuItem;
129 yoffy 1.51 DetailPMenu: TMenuItem;
130     CabinetCloseAction: TAction;
131 hi_ 1.1 ClosePopupMenu: TPopupMenu;
132 yoffy 1.51 CloseMenu: TMenuItem;
133     OptionAction: TAction;
134 hi_ 1.1 U1: TMenuItem;
135     N3: TMenuItem;
136     B1: TMenuItem;
137     S1: TMenuItem;
138     N2: TMenuItem;
139     A1: TMenuItem;
140     L1: TMenuItem;
141     N5: TMenuItem;
142     S2: TMenuItem;
143 yoffy 1.51 RoundAction: TAction;
144 hi_ 1.1 ListPopupMenu: TPopupMenu;
145 yoffy 1.51 ListRoundPMenu: TMenuItem;
146 hi_ 1.1 ListReservPMenu: TMenuItem;
147     LPMSep01: TMenuItem;
148 yoffy 1.51 ItemRoundPMenu: TMenuItem;
149 hi_ 1.1 LPMSep02: TMenuItem;
150 yoffy 1.2 KidokuPMenu: TMenuItem;
151 hi_ 1.1 MidokuPMenu: TMenuItem;
152     AllSelectPMenu: TMenuItem;
153     UrlCopyPMenu: TMenuItem;
154     LPMSep05: TMenuItem;
155     DeletePMenu: TMenuItem;
156     LPMSep06: TMenuItem;
157     ViewPMenu: TMenuItem;
158     LargeIconLPMenu: TMenuItem;
159     SmallIconLPMenu: TMenuItem;
160     ListLPMenu: TMenuItem;
161     DetailLPMenu: TMenuItem;
162     T1: TMenuItem;
163     B2: TMenuItem;
164     N8: TMenuItem;
165     URLCopyAction: TAction;
166 yoffy 1.51 URLC1: TMenuItem;
167     N9: TMenuItem;
168 hi_ 1.1 N10: TMenuItem;
169 yoffy 1.51 MsgBarCloseAction: TAction;
170     ScrollTopAction: TAction;
171 hi_ 1.1 ScrollLastAction: TAction;
172     ScrollNewAction: TAction;
173     ScrollKokoAction: TAction;
174 yoffy 1.51 EditorAction: TAction;
175 hi_ 1.1 IEAction: TAction;
176     ItemReloadAction: TAction;
177 yoffy 1.51 BrowserMaxAction: TAction;
178 hi_ 1.1 G2: TMenuItem;
179     N11: TMenuItem;
180     T3: TMenuItem;
181     L2: TMenuItem;
182     N12: TMenuItem;
183     K1: TMenuItem;
184     N13: TMenuItem;
185     N14: TMenuItem;
186     R1: TMenuItem;
187     A2: TMenuItem;
188     N15: TMenuItem;
189 yoffy 1.51 SelectListReloadAction: TAction;
190     SelectThreadReloadAction: TAction;
191 hi_ 1.1 KokoPopupMenu: TPopupMenu;
192     KokomadePMenu: TMenuItem;
193 yoffy 1.2 AllPMenu: TMenuItem;
194 hi_ 1.1 MenuItem1: TMenuItem;
195     MenuItem2: TMenuItem;
196     BrowserTabCloseAction: TAction;
197     BrowserTabPopupMenu: TPopupMenu;
198 yoffy 1.51 Close1: TMenuItem;
199 hi_ 1.1 KokomadeAction: TAction;
200     ZenbuAction: TAction;
201     KokoResAction: TAction;
202     SelectItemURLCopyAction: TAction;
203     SelectReservAction: TAction;
204     NotSelectTabCloseAction: TAction;
205     A3: TMenuItem;
206 yoffy 1.51 N16: TMenuItem;
207 hi_ 1.1 A4: TMenuItem;
208     TreePopupMenu: TPopupMenu;
209     TreeSelectThreadPupupMenu: TMenuItem;
210 yoffy 1.51 TreeSelectBoardPupupMenu: TMenuItem;
211 hi_ 1.1 TPMSep01: TMenuItem;
212     TreeSelectURLPupupMenu: TMenuItem;
213     TreeSelectBoradReload: TAction;
214 yoffy 1.51 TreeSelectThreadReload: TAction;
215 hi_ 1.1 TreeSelectURLCopy: TAction;
216     ListToolBarVisibleAction: TAction;
217     BrowserToolBarVisibleAction: TAction;
218     T2: TMenuItem;
219 yoffy 1.2 L3: TMenuItem;
220 hi_ 1.1 B3: TMenuItem;
221     BrowserBottomPanel: TGikoPanel;
222     CabinetSelectPopupMenu: TPopupMenu;
223     H2: TMenuItem;
224 yoffy 1.51 ItemReservPMenu: TMenuItem;
225     RoundNamePopupMenu: TPopupMenu;
226 hi_ 1.1 SelectNewRoundName: TAction;
227 yoffy 1.51 SelectDeleteRound: TAction;
228     NewBoardAction: TAction;
229 yoffy 1.2 N7: TMenuItem;
230 hi_ 1.1 B4: TMenuItem;
231     LoginAction: TAction;
232     L4: TMenuItem;
233     KeySettingAction: TAction;
234     K2: TMenuItem;
235     AllTabCloseAction: TAction;
236 yoffy 1.51 A5: TMenuItem;
237 hi_ 1.1 A6: TMenuItem;
238 yoffy 1.51 C1: TMenuItem;
239     V1: TMenuItem;
240     N19: TMenuItem;
241 hi_ 1.1 D1: TMenuItem;
242 yoffy 1.51 D2: TMenuItem;
243     MessageImageList: TImageList;
244     ProgressBar: TProgressBar;
245     ArrangeAction: TAction;
246     URL1: TMenuItem;
247     NameURLCopyAction: TAction;
248     SelectItemNameURLCopyAction: TAction;
249 hi_ 1.1 NameUrlCopyPMenu: TMenuItem;
250     URLC2: TMenuItem;
251 yoffy 1.51 URLN1: TMenuItem;
252     N21: TMenuItem;
253     URLC3: TMenuItem;
254 yoffy 1.2 URLN2: TMenuItem;
255 yoffy 1.51 N23: TMenuItem;
256 yoffy 1.2 ListCoolBar: TGikoCoolBar;
257 hi_ 1.1 ListToolBar: TToolBar;
258     ViewNoButton: TToolButton;
259     IconToolButton: TToolButton;
260 yoffy 1.51 UpFolderButton: TToolButton;
261     Sepa01ToolButton: TToolButton;
262 yoffy 1.2 AllItemToolButton: TToolButton;
263 hi_ 1.1 LogItemToolButton: TToolButton;
264     NewItemToolButton: TToolButton;
265 yoffy 1.51 ListDownloadToolButton: TToolButton;
266 hi_ 1.1 ListThreadDownloadToolButton: TToolButton;
267 yoffy 1.51 ToolButton2: TToolButton;
268     ToolButton1: TToolButton;
269 yoffy 1.2 BrowserCoolBar: TGikoCoolBar;
270 hi_ 1.1 BrowserToolBar: TToolBar;
271 yoffy 1.51 BrowserSizeButton: TToolButton;
272 hi_ 1.1 ToolButton3: TToolButton;
273     TopButton: TToolButton;
274 yoffy 1.2 LastBotton: TToolButton;
275     NewButton: TToolButton;
276 yoffy 1.51 KokoButton: TToolButton;
277     ToolButton9: TToolButton;
278 yoffy 1.2 EditorButton: TToolButton;
279 hi_ 1.1 ToolButton11: TToolButton;
280     IEButton: TToolButton;
281 yoffy 1.51 ToolButton5: TToolButton;
282     ItemReloadButton: TToolButton;
283 hi_ 1.1 ListNameToolBar: TToolBar;
284 yoffy 1.51 ListNameLabel: TLabel;
285 hi_ 1.1 FolderImage: TImage;
286     BrowserNameToolBar: TToolBar;
287     ItemBoardImage: TImage;
288     BrowserBoardNameLabel: TLabel;
289 yoffy 1.51 ItemImage: TImage;
290     BrowserNameLabel: TLabel;
291     ActiveLogDeleteAction: TAction;
292     D3: TMenuItem;
293     N25: TMenuItem;
294 hi_ 1.1 N26: TMenuItem;
295     ListNameBarVisibleAction: TAction;
296     D4: TMenuItem;
297     BrowserNameBarVisibleAction: TAction;
298     S3: TMenuItem;
299 yoffy 1.51 R2: TMenuItem;
300     TreeSelectNameURLCopy: TAction;
301     TreeSelectNameURLPupupMenu: TMenuItem;
302     N27: TMenuItem;
303 hi_ 1.1 H3: TMenuItem;
304     PaneInitAction: TAction;
305 yoffy 1.51 I1: TMenuItem;
306     BrowserTabToolBar: TToolBar;
307     BrowserTab: TTabControl;
308 hi_ 1.1 ToolButton7: TToolButton;
309 yoffy 1.2 BrowserMinAction: TAction;
310 yoffy 1.51 About1: TMenuItem;
311     N28: TMenuItem;
312     SelectTextClearAction: TAction;
313     MailTextClearAction: TAction;
314 hi_ 1.1 NameTextClearAction: TAction;
315 yoffy 1.51 S4: TMenuItem;
316 yoffy 1.2 N29: TMenuItem;
317     N30: TMenuItem;
318 hi_ 1.1 LeftmostTabSelectAction: TAction;
319 yoffy 1.51 LeftTabSelectAction: TAction;
320     RightTabSelectAction: TAction;
321     RightmostTabSelectAction: TAction;
322 yoffy 1.2 N31: TMenuItem;
323 hi_ 1.1 L5: TMenuItem;
324 yoffy 1.51 L6: TMenuItem;
325 hi_ 1.1 A7: TMenuItem;
326 yoffy 1.51 R3: TMenuItem;
327 hi_ 1.1 FavoriteMenu: TMenuItem;
328 yoffy 1.51 FavoriteAddAction: TAction;
329     N32: TMenuItem;
330 hi_ 1.1 BoardFavoriteAddMenu: TMenuItem;
331 yoffy 1.2 BoardFavoriteAddAction: TAction;
332 hi_ 1.1 ThreadFavoriteAddAction: TAction;
333     ThreadFavoriteAddMenu: TMenuItem;
334     TreeSelectFavoriteAddAction: TAction;
335 yoffy 1.2 N33: TMenuItem;
336 hi_ 1.1 TreeSelectFavoriteAddPupupMenu: TMenuItem;
337     FavoriteArrangeAction: TAction;
338     FavoriteTreeView: TTreeView;
339 yoffy 1.51 StateIconImageList: TImageList;
340     TopPanel: TPanel;
341     TopRightPanel: TPanel;
342     AnimePanel: TPanel;
343 hi_ 1.1 Animate: TAnimate;
344     TopCoolPanel: TPanel;
345 yoffy 1.51 MainCoolBar: TGikoCoolBar;
346     MenuToolBar: TToolBar;
347     StdToolBar: TToolBar;
348     RoundToolButton: TToolButton;
349     ToolButton6: TToolButton;
350     ToolButton4: TToolButton;
351 hi_ 1.1 ToolButton13: TToolButton;
352     AbortToolButton: TToolButton;
353     LoginToolButton: TToolButton;
354 yoffy 1.51 AddressToolBar: TToolBar;
355     AddressComboBox: TComboBox;
356     MoveToToolButton: TToolButton;
357 yoffy 1.2 MoveToAction: TAction;
358 yoffy 1.51 AddressImageList: TImageList;
359     AddressBarVisibleAction: TAction;
360     AddressToolBarMenu: TMenuItem;
361     T4: TMenuItem;
362 hi_ 1.1 BrowserTabVisibleAction: TAction;
363 yoffy 1.51 Show1: TMenuItem;
364     N34: TMenuItem;
365     BrowserTabTopAction: TAction;
366 yoffy 1.2 BrowserTabBottomAction: TAction;
367 hi_ 1.1 T5: TMenuItem;
368     B5: TMenuItem;
369 yoffy 1.51 N35: TMenuItem;
370     BrowserTabTabStyleAction: TAction;
371     BrowserTabButtonStyleAction: TAction;
372     BrowserTabFlatStyleAction: TAction;
373     A8: TMenuItem;
374     U2: TMenuItem;
375 hi_ 1.1 F1: TMenuItem;
376     PreviewTimer: TTimer;
377 yoffy 1.51 MonazillaWebPageAction: TAction;
378     MonazillaWebPageAction1: TMenuItem;
379 hi_ 1.1 GikoHelpAction: TAction;
380 yoffy 1.51 N36: TMenuItem;
381     H4: TMenuItem;
382     KotehanAction: TAction;
383     K3: TMenuItem;
384     LinkBarVisibleAction: TAction;
385     L7: TMenuItem;
386     N37: TMenuItem;
387     A9: TMenuItem;
388 yoffy 1.2 ChevronPopupMenu: TPopupMenu;
389 yoffy 1.51 BBS2chWebPageAction: TAction;
390 yoffy 1.2 N2N1: TMenuItem;
391 hi_ 1.1 N38: TMenuItem;
392     GikoFolderOpenAction: TAction;
393 yoffy 1.2 F2: TMenuItem;
394 yoffy 1.51 LinkToolBar: TToolBar;
395     a10: TMenuItem;
396     ToolButton8: TToolButton;
397 yoffy 1.2 ToolButton10: TToolButton;
398 yoffy 1.51 ThreadEditorAction: TAction;
399     N39: TMenuItem;
400     T6: TMenuItem;
401     N40: TMenuItem;
402 yoffy 1.2 LinkBarPopupMenu: TPopupMenu;
403 yoffy 1.51 ToolBarSettingAction: TAction;
404     T7: TMenuItem;
405     ToolButton12: TToolButton;
406     ToolButton14: TToolButton;
407     ThreadPopupMenu: TPopupMenu;
408     MenuItem4: TMenuItem;
409     MenuItem5: TMenuItem;
410     MenuItem6: TMenuItem;
411 yoffy 1.2 T8: TMenuItem;
412 yoffy 1.51 NameCopyAction: TAction;
413     BoardIEAction: TAction;
414     URLN3: TMenuItem;
415     SelectItemNameCopyAction: TAction;
416 yoffy 1.2 SelectItemNameCopyAction1: TMenuItem;
417 yoffy 1.51 B6: TMenuItem;
418     T9: TMenuItem;
419     C2: TMenuItem;
420     SelectComboBox: TComboBox;
421     MainCoolBarPopupMenu: TPopupMenu;
422     StdToolBarVisiblePMenu: TMenuItem;
423     AddressToolBarVisiblePMenu: TMenuItem;
424     LinkToolBarVisiblePMenu: TMenuItem;
425     NG1: TMenuItem;
426     NG2: TMenuItem;
427     N43: TMenuItem;
428     N44: TMenuItem;
429     L9: TMenuItem;
430     I3: TMenuItem;
431     N45: TMenuItem;
432     B9: TMenuItem;
433     R5: TMenuItem;
434     T12: TMenuItem;
435     Show3: TMenuItem;
436     N46: TMenuItem;
437     T13: TMenuItem;
438     B10: TMenuItem;
439     N47: TMenuItem;
440     A12: TMenuItem;
441     U4: TMenuItem;
442     F4: TMenuItem;
443     N48: TMenuItem;
444     T14: TMenuItem;
445     SelectItemToolButton: TToolButton;
446     SelectResToolButton: TToolButton;
447     SelectResAction: TAction;
448     ToolButton16: TToolButton;
449     AllResAction: TAction;
450     N50: TMenuItem;
451     A11: TMenuItem;
452     S5: TMenuItem;
453     Reload: TMenuItem;
454     GoBack: TMenuItem;
455     GoFoward: TMenuItem;
456 h677 1.388 EditNGAction: TAction;
457 yoffy 1.51 ReloadAction: TAction;
458     GoFowardAction: TAction;
459     GoBackAction: TAction;
460     SelectComboBoxSplitter: TImage;
461     IndividualAbon1: TMenuItem;
462     N41: TMenuItem;
463     IndividualAbon2: TMenuItem;
464     N42: TMenuItem;
465     CancellIndividualAbon: TAction;
466     AntiIndividualAbon: TMenuItem;
467     N49: TMenuItem;
468     N51: TMenuItem;
469     N52: TMenuItem;
470     N53: TMenuItem;
471     SearchBoardName: TMenuItem;
472 yoffy 1.205 TreeSelectLogDeleteSeparator: TMenuItem;
473 yoffy 1.51 TreeSelectSearchBoardName: TAction;
474 yoffy 1.100 CabinetFavoriteAction: TAction;
475     N54: TMenuItem;
476     A13: TMenuItem;
477     FavoriteTreePopupMenu: TPopupMenu;
478     FavoriteTreeViewRenameAction: TAction;
479     FavoriteTreeRenamePopupMenu: TMenuItem;
480     FavoriteTreeViewNewFolderAction: TAction;
481     FavoriteTreeNewFolderPopupMenu: TMenuItem;
482     N56: TMenuItem;
483     FavoriteTreeViewDeleteAction: TAction;
484     FavoriteTreeDeletePopupMenu: TMenuItem;
485     FavoriteToolBar: TToolBar;
486     ToolButton17: TToolButton;
487     ToolButton19: TToolButton;
488     FavoriteTreeViewBrowseFolderAction: TAction;
489     FavoriteTreeBrowseFolderPopupMenu: TMenuItem;
490     N57: TMenuItem;
491     FavoriteTreeReloadPopupMenu: TMenuItem;
492     N58: TMenuItem;
493     FavoriteTreeURLCopyPopupMenu: TMenuItem;
494     FavoriteTreeNameCopyPopupMenu: TMenuItem;
495     FavoriteTreeLogDeletePopupMenu: TMenuItem;
496     N59: TMenuItem;
497     FavoriteTreeNameURLCopyPopupMenu: TMenuItem;
498     FavoriteTreeViewReloadAction: TAction;
499     FavoriteTreeViewURLCopyAction: TAction;
500     FavoriteTreeViewNameCopyAction: TAction;
501     FavoriteTreeViewNameURLCopyAction: TAction;
502     FavoriteTreeViewLogDeleteAction: TAction;
503 yoffy 1.375 ResRangeAction: TAction;
504 yoffy 1.100 ToolButton20: TToolButton;
505 yoffy 1.375 ResRangeButton: TToolButton;
506 yoffy 1.100 N60: TMenuItem;
507 yoffy 1.107 ExportFavoriteFileAction1: TMenuItem;
508     ExportFavoriteFile: TFileSaveAs;
509 yoffy 1.141 ToolButton21: TToolButton;
510 yoffy 1.322 CabinetBBSToolButton: TToolButton;
511 yoffy 1.141 ToolButton23: TToolButton;
512     ToolButton24: TToolButton;
513 yoffy 1.142 N6: TMenuItem;
514     N17: TMenuItem;
515     FavoriteTreeViewBrowseBoardAction: TAction;
516     FavoriteTreeViewBrowseThreadAction: TAction;
517 yoffy 1.158 UpBoardAction: TAction;
518 h677 1.174 N18: TMenuItem;
519     N20: TMenuItem;
520     N24: TMenuItem;
521     N62: TMenuItem;
522 h677 1.176 N61: TMenuItem;
523 h677 1.183 N63: TMenuItem;
524     KoreCopy: TAction;
525     N64: TMenuItem;
526 h677 1.187 dummy1: TMenuItem;
527 yoffy 1.205 TreeSelectLogDeletePopupMenu: TMenuItem;
528     N65: TMenuItem;
529 yoffy 1.209 BBSSelectPopupMenu: TPopupMenu;
530 yoffy 1.218 PlugInMenu: TMenuItem;
531 h677 1.407 TmpToolBar: TToolBar;
532 yoffy 1.252 TreeSelectNameCopy: TAction;
533     TreeSelectNamePupupMenu: TMenuItem;
534 h677 1.299 BrowserPanel: TPanel;
535 h677 1.315 SetFocusForBrowserAction: TAction;
536     SetFocusForThreadListAction: TAction;
537     SetFocusForCabinetAction: TAction;
538 h677 1.318 FileRun1: TFileRun;
539 h677 1.319 ThreadlistMaxAndFocusAction: TAction;
540     BrowserMaxAndFocusAction: TAction;
541 yoffy 1.322 UpBoardButton: TToolButton;
542 yoffy 1.329 SelectTimer: TTimer;
543 h677 1.340 SelectThreadSave: TMenuItem;
544     SelectItemSaveForHTML: TAction;
545     FileSaveAs1: TFileSaveAs;
546 h677 1.342 N55: TMenuItem;
547 h677 1.343 N66: TMenuItem;
548     dat1: TMenuItem;
549     SelectItemSaveForDat: TAction;
550 h677 1.345 LogFolderOpenAction: TAction;
551 yoffy 1.397 OpenLogFolder: TMenuItem;
552 h677 1.346 Browser: TWebBrowser;
553 genyakun 1.353 TabSave: TMenuItem;
554 h677 1.407 TabOpen: TMenuItem;
555 yoffy 1.397 TabsSaveAction: TAction;
556 h677 1.365 TabsOpenAction: TAction;
557 yoffy 1.375 ResRangePopupMenu: TPopupMenu;
558     N1001: TMenuItem;
559     N501: TMenuItem;
560     N22: TMenuItem;
561 yoffy 1.389 OnlyAHundredResAction: TAction;
562 yoffy 1.375 OnlyNewResAction: TAction;
563     OnlyKokoResAction: TAction;
564 yoffy 1.380 A14: TMenuItem;
565 h677 1.386 BrowsBoradHeadAction: TAction;
566     BrowsBoradHeadAction1: TMenuItem;
567 yoffy 1.390 ThreadRangeAction: TAction;
568     ThreadRangePopupMenu: TPopupMenu;
569     A15: TMenuItem;
570     L8: TMenuItem;
571     N67: TMenuItem;
572     N68: TMenuItem;
573     S6: TMenuItem;
574     N69: TMenuItem;
575     S7: TMenuItem;
576     ThreadRangeButton: TToolButton;
577 h677 1.407 TabAutoSaveAction: TAction;
578 genyakun 1.393 TabAutoLoadAction: TAction;
579 yoffy 1.415 ListColumnPopupMenu: TPopupMenu;
580 h677 1.429 JumpToNumOfResAction: TAction;
581 yoffy 1.432 FavoriteTreeViewCollapseAction: TAction;
582 yoffy 1.251 procedure FormCreate(Sender: TObject);
583 hi_ 1.1 procedure FormDestroy(Sender: TObject);
584     procedure CabinetPanelHide(Sender: TObject);
585     procedure ListViewData(Sender: TObject; Item: TListItem);
586     procedure ListViewDataFind(Sender: TObject; Find: TItemFind;
587     const FindString: String; const FindPosition: TPoint;
588     FindData: Pointer; StartIndex: Integer; Direction: TSearchDirection;
589     Wrap: Boolean; var Index: Integer);
590     procedure ListViewDataHint(Sender: TObject; StartIndex,
591     EndIndex: Integer);
592     procedure ListViewDataStateChange(Sender: TObject; StartIndex,
593     EndIndex: Integer; OldState, NewState: TItemStates);
594     procedure BrowserStatusTextChange(Sender: TObject;
595     const Text: WideString);
596     procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
597     procedure TreeViewChanging(Sender: TObject; Node: TTreeNode;
598     var AllowChange: Boolean);
599     procedure ListViewKeyDown(Sender: TObject; var Key: Word;
600     Shift: TShiftState);
601     procedure ListViewColumnClick(Sender: TObject; Column: TListColumn);
602 q9_ 1.369 procedure ListViewSort(Sender: TObject; Column: TListColumn);
603 hi_ 1.1 procedure MenuToolBarCustomDrawButton(Sender: TToolBar;
604     Button: TToolButton; State: TCustomDrawState;
605     var DefaultDraw: Boolean);
606     procedure BrowserBeforeNavigate2(Sender: TObject;
607     const pDisp: IDispatch; var URL, Flags, TargetFrameName, PostData,
608     Headers: OleVariant; var Cancel: WordBool);
609     procedure ListViewAdvancedCustomDrawItem(Sender: TCustomListView;
610     Item: TListItem; State: TCustomDrawState; Stage: TCustomDrawStage;
611     var DefaultDraw: Boolean);
612     procedure TreeViewCustomDraw(Sender: TCustomTreeView;
613     const ARect: TRect; var DefaultDraw: Boolean);
614     procedure TreeViewCustomDrawItem(Sender: TCustomTreeView;
615     Node: TTreeNode; State: TCustomDrawState; var DefaultDraw: Boolean);
616     procedure TreeViewExpanded(Sender: TObject; Node: TTreeNode);
617     procedure TreeViewDblClick(Sender: TObject);
618     procedure ListViewCustomDraw(Sender: TCustomListView;
619     const ARect: TRect; var DefaultDraw: Boolean);
620     procedure ListViewMouseDown(Sender: TObject; Button: TMouseButton;
621     Shift: TShiftState; X, Y: Integer);
622     procedure TreeViewCollapsed(Sender: TObject; Node: TTreeNode);
623     procedure MessageListViewResize(Sender: TObject);
624     procedure ExitActionExecute(Sender: TObject);
625     procedure AllSelectActionExecute(Sender: TObject);
626     procedure StdToolBarVisibleActionExecute(Sender: TObject);
627     procedure MsgBarVisibleActionExecute(Sender: TObject);
628     procedure StatusBarVisibleActionExecute(Sender: TObject);
629     procedure LargeIconActionExecute(Sender: TObject);
630     procedure SmallIconActionExecute(Sender: TObject);
631     procedure ListIconActionExecute(Sender: TObject);
632     procedure DetailIconActionExecute(Sender: TObject);
633     procedure SearchActionExecute(Sender: TObject);
634     procedure OptionActionExecute(Sender: TObject);
635     procedure GikoNaviWebPageActionExecute(Sender: TObject);
636     procedure AboutActionExecute(Sender: TObject);
637     procedure CabinetHistoryActionExecute(Sender: TObject);
638 yoffy 1.138 procedure CabinetVisible( isVisible : Boolean );
639 hi_ 1.1 procedure CabinetVisibleActionExecute(Sender: TObject);
640     procedure AllItemActionExecute(Sender: TObject);
641     procedure LogItemActionExecute(Sender: TObject);
642     procedure NewItemActionExecute(Sender: TObject);
643     procedure SelectItemActionExecute(Sender: TObject);
644     procedure ListNumberVisibleActionExecute(Sender: TObject);
645     procedure UpFolderActionExecute(Sender: TObject);
646     procedure IconStyleExecute(Sender: TObject);
647     procedure RoundActionExecute(Sender: TObject);
648     procedure StopActionExecute(Sender: TObject);
649     procedure MsgBarCloseActionExecute(Sender: TObject);
650     procedure BrowserMaxActionExecute(Sender: TObject);
651     procedure ScrollTopActionExecute(Sender: TObject);
652     procedure ScrollLastActionExecute(Sender: TObject);
653     procedure ScrollNewActionExecute(Sender: TObject);
654     procedure ScrollKokoActionExecute(Sender: TObject);
655     procedure EditorActionExecute(Sender: TObject);
656     procedure IEActionExecute(Sender: TObject);
657     procedure ShowThreadActionExecute(Sender: TObject);
658     procedure ShowBoardActionExecute(Sender: TObject);
659     procedure URLCopyActionExecute(Sender: TObject);
660     procedure ItemReloadActionExecute(Sender: TObject);
661     procedure SelectListReloadActionExecute(Sender: TObject);
662     procedure SelectThreadReloadActionExecute(Sender: TObject);
663     procedure SelectListReloadActionUpdate(Sender: TObject);
664     procedure AllItemActionUpdate(Sender: TObject);
665     procedure LogItemActionUpdate(Sender: TObject);
666     procedure NewItemActionUpdate(Sender: TObject);
667     procedure SelectItemActionUpdate(Sender: TObject);
668     procedure UpFolderActionUpdate(Sender: TObject);
669     procedure FormResize(Sender: TObject);
670     procedure ScrollTopActionUpdate(Sender: TObject);
671     procedure ScrollLastActionUpdate(Sender: TObject);
672     procedure ScrollNewActionUpdate(Sender: TObject);
673     procedure ScrollKokoActionUpdate(Sender: TObject);
674     procedure EditorActionUpdate(Sender: TObject);
675     procedure IEActionUpdate(Sender: TObject);
676     procedure ShowThreadActionUpdate(Sender: TObject);
677     procedure ShowBoardActionUpdate(Sender: TObject);
678     procedure SelectThreadReloadActionUpdate(Sender: TObject);
679 yoffy 1.51 procedure ItemReloadActionUpdate(Sender: TObject);
680     procedure LogDeleteActionExecute(Sender: TObject);
681 hi_ 1.1 procedure KokomadeActionExecute(Sender: TObject);
682     procedure ZenbuActionExecute(Sender: TObject);
683 yoffy 1.51 procedure KokoResActionExecute(Sender: TObject);
684 hi_ 1.1 procedure ListPopupMenuPopup(Sender: TObject);
685     procedure SelectItemURLCopyActionExecute(Sender: TObject);
686     procedure SelectItemURLCopyActionUpdate(Sender: TObject);
687     procedure AllSelectActionUpdate(Sender: TObject);
688     procedure LogDeleteActionUpdate(Sender: TObject);
689     procedure BrowserTabCloseActionExecute(Sender: TObject);
690     procedure NotSelectTabCloseActionExecute(Sender: TObject);
691     procedure TreeSelectBoradReloadExecute(Sender: TObject);
692     procedure TreeSelectThreadReloadExecute(Sender: TObject);
693     procedure TreeSelectURLCopyExecute(Sender: TObject);
694     procedure TreePopupMenuPopup(Sender: TObject);
695     procedure ListToolBarVisibleActionExecute(Sender: TObject);
696     procedure BrowserToolBarVisibleActionExecute(Sender: TObject);
697     procedure BrowserNewWindow2(Sender: TObject; var ppDisp: IDispatch;
698     var Cancel: WordBool);
699     procedure ListSplitterCanResize(Sender: TObject; var NewSize: Integer;
700     var Accept: Boolean);
701     procedure ListSplitterMoved(Sender: TObject);
702     procedure BrowserTabChange(Sender: TObject);
703     procedure BrowserTabMouseDown(Sender: TObject; Button: TMouseButton;
704     Shift: TShiftState; X, Y: Integer);
705     procedure BrowserTabDragOver(Sender, Source: TObject; X, Y: Integer;
706     State: TDragState; var Accept: Boolean);
707     procedure BrowserTabDragDrop(Sender, Source: TObject; X, Y: Integer);
708     procedure BrowserTabMouseMove(Sender: TObject; Shift: TShiftState; X,
709     Y: Integer);
710     procedure BrowserDocumentComplete(Sender: TObject;
711     const pDisp: IDispatch; var URL: OleVariant);
712     procedure SelectReservActionUpdate(Sender: TObject);
713     procedure RoundNamePopupMenuPopup(Sender: TObject);
714     procedure SelectNewRoundNameExecute(Sender: TObject);
715     procedure SelectDeleteRoundExecute(Sender: TObject);
716     procedure SelectReservActionExecute(Sender: TObject);
717     procedure NewBoardActionExecute(Sender: TObject);
718     procedure LoginActionExecute(Sender: TObject);
719     procedure KeySettingActionExecute(Sender: TObject);
720     procedure AllTabCloseActionExecute(Sender: TObject);
721 yoffy 1.51 procedure ArrangeActionExecute(Sender: TObject);
722     procedure NameURLCopyActionExecute(Sender: TObject);
723     procedure SelectItemNameURLCopyActionExecute(Sender: TObject);
724 hi_ 1.1 procedure URLCopyActionUpdate(Sender: TObject);
725 yoffy 1.2 procedure NameURLCopyActionUpdate(Sender: TObject);
726 hi_ 1.1 procedure BrowserTabCloseActionUpdate(Sender: TObject);
727 yoffy 1.51 procedure NotSelectTabCloseActionUpdate(Sender: TObject);
728 hi_ 1.1 procedure AllTabCloseActionUpdate(Sender: TObject);
729     procedure SelectItemNameURLCopyActionUpdate(Sender: TObject);
730     procedure ActiveLogDeleteActionExecute(Sender: TObject);
731     procedure ActiveLogDeleteActionUpdate(Sender: TObject);
732 yoffy 1.51 procedure ListNameBarVisibleActionExecute(Sender: TObject);
733 hi_ 1.1 procedure BrowserNameBarVisibleActionExecute(Sender: TObject);
734 yoffy 1.51 procedure TreeSelectNameURLCopyExecute(Sender: TObject);
735     procedure PaneInitActionExecute(Sender: TObject);
736 hi_ 1.1 procedure FormShow(Sender: TObject);
737     procedure BrowserTabToolBarResize(Sender: TObject);
738     procedure BrowserMinActionExecute(Sender: TObject);
739 yoffy 1.51 procedure SelectTextClearActionExecute(Sender: TObject);
740 hi_ 1.1 procedure NameTextClearActionExecute(Sender: TObject);
741 yoffy 1.51 procedure MailTextClearActionExecute(Sender: TObject);
742     procedure LeftmostTabSelectActionExecute(Sender: TObject);
743     procedure LeftTabSelectActionExecute(Sender: TObject);
744 hi_ 1.1 procedure RightTabSelectActionExecute(Sender: TObject);
745     procedure RightmostTabSelectActionExecute(Sender: TObject);
746     procedure LeftmostTabSelectActionUpdate(Sender: TObject);
747     procedure LeftTabSelectActionUpdate(Sender: TObject);
748     procedure RightTabSelectActionUpdate(Sender: TObject);
749     procedure RightmostTabSelectActionUpdate(Sender: TObject);
750     procedure FavoriteMenuClick(Sender: TObject);
751     procedure FavoriteAddActionExecute(Sender: TObject);
752     procedure FavoriteAddActionUpdate(Sender: TObject);
753     procedure BoardFavoriteAddActionExecute(Sender: TObject);
754     procedure BoardFavoriteAddActionUpdate(Sender: TObject);
755 yoffy 1.51 procedure ThreadFavoriteAddActionExecute(Sender: TObject);
756 hi_ 1.1 procedure ThreadFavoriteAddActionUpdate(Sender: TObject);
757 yoffy 1.51 procedure TreeSelectFavoriteAddActionExecute(Sender: TObject);
758 yoffy 1.2 procedure FavoriteArrangeActionExecute(Sender: TObject);
759     procedure MainCoolBarResize(Sender: TObject);
760 hi_ 1.1 procedure MoveToActionExecute(Sender: TObject);
761 yoffy 1.2 procedure AddressToolBarResize(Sender: TObject);
762 hi_ 1.1 procedure AddressComboBoxKeyDown(Sender: TObject; var Key: Word;
763     Shift: TShiftState);
764 yoffy 1.51 procedure AddressBarVisibleActionExecute(Sender: TObject);
765 yoffy 1.2 procedure BrowserEnter(Sender: TObject);
766 hi_ 1.1 procedure FormShortCut(var Msg: TWMKey; var Handled: Boolean);
767 yoffy 1.51 procedure BrowserTabVisibleActionExecute(Sender: TObject);
768     procedure BrowserTabTopActionExecute(Sender: TObject);
769     procedure BrowserTabBottomActionExecute(Sender: TObject);
770     procedure BrowserTabTabStyleActionExecute(Sender: TObject);
771 hi_ 1.1 procedure BrowserTabButtonStyleActionExecute(Sender: TObject);
772 yoffy 1.51 procedure BrowserTabFlatStyleActionExecute(Sender: TObject);
773 hi_ 1.1 procedure PreviewTimerTimer(Sender: TObject);
774     procedure MessageHideButtonClick(Sender: TObject);
775     procedure MonazillaWebPageActionExecute(Sender: TObject);
776     procedure GikoHelpActionExecute(Sender: TObject);
777     procedure ToolButton18Click(Sender: TObject);
778     procedure KotehanActionExecute(Sender: TObject);
779 yoffy 1.51 procedure LinkBarVisibleActionExecute(Sender: TObject);
780     procedure BBS2chWebPageActionExecute(Sender: TObject);
781     procedure GikoFolderOpenActionExecute(Sender: TObject);
782 yoffy 1.2 procedure MainCoolBarBandInfo(Sender: TObject;
783     var BandInfo: PReBarBandInfoA);
784     procedure MainCoolBarChevronClick(Sender: TObject;
785 yoffy 1.51 RebarChevron: PNMRebarChevron);
786     procedure ListCoolBarBandInfo(Sender: TObject;
787     var BandInfo: PReBarBandInfoA);
788     procedure ListCoolBarChevronClick(Sender: TObject;
789     RebarChevron: PNMRebarChevron);
790     procedure BrowserCoolBarBandInfo(Sender: TObject;
791     var BandInfo: PReBarBandInfoA);
792 yoffy 1.2 procedure BrowserCoolBarChevronClick(Sender: TObject;
793 yoffy 1.51 RebarChevron: PNMRebarChevron);
794     procedure ListViewColumnInfo(Sender: TObject; var Column: PLVColumnA);
795     procedure ThreadEditorActionExecute(Sender: TObject);
796 yoffy 1.2 procedure ThreadEditorActionUpdate(Sender: TObject);
797 yoffy 1.51 procedure ToolBarSettingActionExecute(Sender: TObject);
798     procedure NameCopyActionExecute(Sender: TObject);
799     procedure BoardIEActionExecute(Sender: TObject);
800     procedure SelectItemNameCopyActionExecute(Sender: TObject);
801 yoffy 1.2 procedure SelectItemNameCopyActionUpdate(Sender: TObject);
802 yoffy 1.51 procedure BoardIEActionUpdate(Sender: TObject);
803     procedure FormMouseWheel(Sender: TObject; Shift: TShiftState;
804     WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean);
805     procedure NameCopyActionUpdate(Sender: TObject);
806     procedure SelectComboBoxChange(Sender: TObject);
807     procedure SelectComboBoxKeyDown(Sender: TObject; var Key: Word;
808     Shift: TShiftState);
809     procedure SelectComboBoxExit(Sender: TObject);
810     procedure SelectResActionExecute(Sender: TObject);
811     procedure SelectResActionUpdate(Sender: TObject);
812     procedure AllResActionExecute(Sender: TObject);
813     procedure AllResActionUpdate(Sender: TObject);
814     procedure ReloadClick(Sender: TObject);
815     procedure GoBackClick(Sender: TObject);
816     procedure GoFowardClick(Sender: TObject);
817     procedure SelectComboBoxSplitterMouseMove(Sender: TObject;
818     Shift: TShiftState; X, Y: Integer);
819     procedure SelectComboBoxSplitterMouseDown(Sender: TObject;
820     Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
821     procedure SelectComboBoxSplitterMouseUp(Sender: TObject;
822     Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
823     procedure StatusBarResize(Sender: TObject);
824     procedure IndividualAbon1Click(Sender: TObject);
825     procedure IndividualAbon2Click(Sender: TObject);
826     procedure N42Click(Sender: TObject);
827     procedure SelectComboBoxEnter(Sender: TObject);
828     procedure AntiIndividualAbonClick(Sender: TObject);
829     procedure N51Click(Sender: TObject);
830     procedure TreeSelectSearchBoardNameExecute(Sender: TObject);
831 yoffy 1.100 procedure CabinetFavoriteActionExecute(Sender: TObject);
832     procedure FavoriteTreeViewDragDrop(Sender, Source: TObject; X,
833     Y: Integer);
834 yoffy 1.71 procedure FavoriteTreeViewDragOver(Sender, Source: TObject; X, Y: Integer; State: TDragState; var Accept: Boolean);
835 yoffy 1.100 procedure FavoriteTreeViewEdited(Sender: TObject; Node: TTreeNode;
836     var S: String);
837     procedure FavoriteTreeViewKeyDown(Sender: TObject; var Key: Word;
838     Shift: TShiftState);
839     procedure FavoriteTreePopupMenuPopup(Sender: TObject);
840     procedure FavoriteTreeViewDeleteActionExecute(Sender: TObject);
841     procedure FavoriteTreeViewRenameActionExecute(Sender: TObject);
842     procedure FavoriteTreeViewNewFolderActionExecute(Sender: TObject);
843     procedure ToolButton19Click(Sender: TObject);
844     procedure FavoriteTreeViewBrowseFolderActionExecute(Sender: TObject);
845     procedure FavoriteTreeViewDblClick(Sender: TObject);
846     procedure FavoriteTreeViewLogDeleteActionExecute(Sender: TObject);
847     procedure FavoriteTreeViewReloadActionExecute(Sender: TObject);
848     procedure FavoriteTreeViewURLCopyActionExecute(Sender: TObject);
849     procedure FavoriteTreeViewNameCopyActionExecute(Sender: TObject);
850     procedure FavoriteTreeViewNameURLCopyActionExecute(Sender: TObject);
851     procedure LinkToolBarDragDrop(Sender, Source: TObject; X, Y: Integer);
852     procedure BrowserTabMouseUp(Sender: TObject; Button: TMouseButton;
853     Shift: TShiftState; X, Y: Integer);
854     procedure LinkToolBarDragOver(Sender, Source: TObject; X, Y: Integer;
855     State: TDragState; var Accept: Boolean);
856 yoffy 1.375 procedure ResRangeActionExecute(Sender: TObject);
857 yoffy 1.100 procedure FavoriteTreeViewEndDrag(Sender, Target: TObject; X,
858     Y: Integer);
859     procedure ListCoolBarContextPopup(Sender: TObject; MousePos: TPoint;
860     var Handled: Boolean);
861     procedure MainCoolBarContextPopup(Sender: TObject; MousePos: TPoint;
862     var Handled: Boolean);
863     procedure BrowserCoolBarContextPopup(Sender: TObject; MousePos: TPoint;
864     var Handled: Boolean);
865 yoffy 1.107 procedure ExportFavoriteFileAccept(Sender: TObject);
866     procedure ExportFavoriteFileBeforeExecute(Sender: TObject);
867 yoffy 1.139 procedure CabinetBBSActionExecute(Sender: TObject);
868 yoffy 1.142 procedure FavoriteTreeViewBrowseThreadActionExecute(Sender: TObject);
869     procedure FavoriteTreeBrowseBoardPopupMenuClick(Sender: TObject);
870 yoffy 1.158 procedure UpBoardActionExecute(Sender: TObject);
871     procedure UpBoardActionUpdate(Sender: TObject);
872 h677 1.174 procedure BrowserTabContextPopup(Sender: TObject; MousePos: TPoint;
873     var Handled: Boolean);
874 h677 1.183 procedure KoreCopyExecute(Sender: TObject);
875 h677 1.187 procedure BrowserTabPopupMenuPopup(Sender: TObject);
876 h677 1.407 procedure MenuToolBarResize(Sender: TObject);
877 yoffy 1.216 procedure StdToolBarResize(Sender: TObject);
878     procedure LinkToolBarResize(Sender: TObject);
879     procedure ListNameToolBarResize(Sender: TObject);
880     procedure ListToolBarResize(Sender: TObject);
881     procedure BrowserNameToolBarResize(Sender: TObject);
882     procedure BrowserToolBarResize(Sender: TObject);
883     procedure BrowserTabResize(Sender: TObject);
884 h677 1.318 procedure TreeViewClick(Sender: TObject);
885 yoffy 1.236 procedure TreeViewKeyDown(Sender: TObject; var Key: Word;
886     Shift: TShiftState);
887 yoffy 1.246 procedure FavoriteTreeViewMouseDown(Sender: TObject;
888 yoffy 1.248 Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
889 yoffy 1.250 procedure MessagePanelResize(Sender: TObject);
890 yoffy 1.276 procedure OnResized;
891 yoffy 1.252 procedure TreeSelectNameCopyExecute(Sender: TObject);
892 yoffy 1.260 procedure FavoriteTreeViewMouseUp(Sender: TObject;
893     Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
894 yoffy 1.375 procedure ResRangeActionUpdate(Sender: TObject);
895 yoffy 1.370 procedure SetFocusForBrowserActionExecute(Sender: TObject);
896     procedure SetFocusForBrowserActionUpdate(Sender: TObject);
897 h677 1.315 procedure SetFocusForThreadListActionExecute(Sender: TObject);
898     procedure SetFocusForCabinetActionExecute(Sender: TObject);
899 h677 1.407 procedure BrowserMaxAndFocusActionExecute(Sender: TObject);
900 h677 1.319 procedure BrowserMaxAndFocusActionUpdate(Sender: TObject);
901     procedure ThreadlistMaxAndFocusActionExecute(Sender: TObject);
902 h677 1.320 procedure ListViewExit(Sender: TObject);
903 h677 1.321 procedure SetFocusForCabinetActionUpdate(Sender: TObject);
904 yoffy 1.327 procedure ListViewSelectItem(Sender: TObject; Item: TListItem;
905     Selected: Boolean);
906 yoffy 1.329 procedure SelectTimerTimer(Sender: TObject);
907 h677 1.340 procedure SelectItemSaveForHTMLExecute(Sender: TObject);
908 h677 1.341 procedure KidokuActionExecute(Sender: TObject);
909     procedure MidokuActionExecute(Sender: TObject);
910 h677 1.343 procedure SelectItemSaveForDatExecute(Sender: TObject);
911 h677 1.345 procedure BrowserPanelCanResize(Sender: TObject; var NewWidth,
912     NewHeight: Integer; var Resize: Boolean);
913     procedure LogFolderOpenActionExecute(Sender: TObject);
914     procedure LogFolderOpenActionUpdate(Sender: TObject);
915 yoffy 1.397 procedure TabsSaveActionExecute(Sender: TObject);
916     procedure TabsOpenActionExecute(Sender: TObject);
917     procedure TabsSaveToFileActionExecute(Sender: TObject);
918 h677 1.365 procedure TabsOpenFromFileActionExecute(Sender: TObject);
919 yoffy 1.389 procedure OnlyAHundredResActionExecute(Sender: TObject);
920 yoffy 1.375 procedure OnlyKokoResActionExecute(Sender: TObject);
921     procedure OnlyNewResActionExecute(Sender: TObject);
922 h677 1.407 procedure BrowsBoradHeadActionExecute(Sender: TObject);
923 h677 1.388 procedure BrowsBoradHeadActionUpdate(Sender: TObject);
924     procedure EditNGActionExecute(Sender: TObject);
925 yoffy 1.390 procedure ThreadRangeActionUpdate(Sender: TObject);
926     procedure ThreadRangeActionExecute(Sender: TObject);
927 yoffy 1.425 procedure TabAutoSaveActionExecute(Sender: TObject);
928 genyakun 1.393 procedure TabAutoLoadActionExecute(Sender: TObject);
929 yoffy 1.425 procedure ListViewColumnRightClick(Sender: TObject;
930 yoffy 1.415 Column: TListColumn; Point: TPoint);
931 h677 1.429 procedure JumpToNumOfResActionExecute(Sender: TObject);
932     procedure JumpToNumOfResActionUpdate(Sender: TObject);
933 yoffy 1.432 procedure FavoriteTreeViewCollapseActionExecute(Sender: TObject);
934 hi_ 1.1 private
935     { Private 鐃緒申鐃緒申 }
936 h677 1.182 //RoundList : TRoundList;
937 hi_ 1.1 FSortIndex: Integer;
938     FSortOrder: Boolean;
939    
940     FEnabledCloseButton: Boolean;
941     // ThreadCreate: TThreadCreate;
942    
943     FClickNode: TTreeNode;
944     FHttpState: Boolean;
945     FHint: TResPopup;
946     FPreviewBrowser: TPreviewBrowser;
947     FPreviewURL: string;
948    
949     FBrowserSizeHeight: Integer;
950     FBrowserSizeWidth: Integer;
951    
952     // FFavorite: TFavorite;
953     FTabHintIndex: Integer;
954     FListStyle: TViewStyle; //鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申
955     FItemNoVisible: Boolean; //鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃緒申鐃?鐃緒申鐃?
956     FViewType: TGikoViewType; //鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃?鐃?
957 yoffy 1.123 FActiveList: TObject;
958 h677 1.299 FActiveContent: TBrowserRecord; //
959 yoffy 1.133 FActiveBBS : TBBS;
960 hi_ 1.1 FHistoryList: TList; //鐃?鐃?鐃?鐃緒申鐃緒申鐃?鐃?
961     FTreeType: TGikoTreeType;
962     FWorkCount: Integer;
963     FNameCookie: string;
964     FMailCookie: string;
965     // FLastRoundTime: TDateTime;
966 h677 1.299 BrowserNullTab: TBrowserRecord;
967 hi_ 1.1 // DoubleClickOccurred: array [TMouseButton] of Boolean;
968     FDownloadTitle: string; //鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申
969     FDownloadMax: Integer; //鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?
970     FEvent: THTMLDocumentEventSink;//鐃?鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申鐃?
971 h677 1.14
972 h677 1.192 // Fkeynum : Integer; //鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?
973 yoffy 1.29
974 yoffy 1.51 IsDraggingSelectComboBox : Boolean;
975     DraggingSelectComboBoxPosition : TPoint;
976 yoffy 1.29
977 yoffy 1.54 FSearchDialog: TSearchDialog;
978 yoffy 1.49
979 yoffy 1.100 FDropSpaceNode: TTreeNode;
980 yoffy 1.74
981 yoffy 1.424 FDragTime : Cardinal; ///< 鐃緒申鐃緒申鐃?鐃緒申D&D鐃?
982     FDragButton : TToolButton; ///< 鐃緒申鐃緒申鐃?鐃緒申D&D鐃?鐃緒申Drag鐃緒申鐃緒申鐃緒申Button鐃緒申鐃緒申
983     FDragWFirst : Boolean; ///< WebTab鐃緒申D&D鐃?
984    
985     FListViewBackGroundColor : TColor; ///< ListView鐃緒申BackGroundColor
986     FUseOddResOddColor : Boolean; ///< 鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃緒申
987     FOddColor : TColor; ///< 鐃緒申鐃緒申鐃?
988    
989     FSelectResWord : string; ///< 鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃?
990     FIsIgnoreResize : TResizeType; ///< 鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
991     FIsMinimize : TMinimizeType; ///< 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
992     FOldFormWidth : Integer; ///< 鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申
993     FToolBarSettingSender : TToolBarSettingSenderType; ///< 鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃緒申鐃?鐃?
994     FMouseDownPos : TPoint; ///< 鐃?鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?
995 h677 1.303 FBrowsers: TList;
996 yoffy 1.424 FResRangeMenuSelect : Longint; ///< ResRangeButton 鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申 (鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申 ResRange 鐃緒申鐃緒申)
997 h677 1.423 FStartUp : Boolean;
998 yoffy 1.427 FIsHandledWheel : Boolean; ///< 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申 WM_MOUSEWHEEL 鐃緒申鐃緒申鐃緒申鐃緒申
999 yoffy 1.123 procedure SetBoardTreeNode( inBBS : TBBS );
1000     function SetCategoryListItem(ABBS2ch: TBBS): Integer;
1001 hi_ 1.1 function SetBoardListItem(Category: TCategory): Integer;
1002     function SetThreadListItem(Board: TBoard): Integer;
1003     // function GetRoundName(index: integer): string;
1004    
1005     procedure DownloadEnd(Sender: TObject; Item: TDownloadItem);
1006     procedure DownloadMsg(Sender: TObject; Item: TDownloadItem; Msg: string; Icon: TGikoMessageIcon);
1007 q9_ 1.233 procedure WorkBegin(Sender: TObject; AWorkMode: TWorkMode; const AWorkCountMax: Integer; Number: Integer; const AWorkTitle: string);
1008 hi_ 1.1 procedure WorkEnd(Sender: TObject; AWorkMode: TWorkMode; Number: Integer);
1009     procedure Work(Sender: TObject; AWorkMode: TWorkMode; const AWorkCount: Integer; Number: Integer);
1010    
1011 h677 1.433
1012 hi_ 1.1 procedure ListClick;
1013 h677 1.295 procedure ListDoubleClick(Shift: TShiftState);
1014 h677 1.299 procedure BrowserMovement(const AName: string); overload;
1015     procedure BrowserMovement(const AName: string; BrowserRecord: TBrowserRecord); overload;
1016 hi_ 1.1 procedure SelectListItem(List: TList);
1017     // procedure SetProgressValue(Number: Integer; Value: Integer; Max: Integer = -1);
1018 h677 1.299 procedure DeleteTab(ThreadItem: TThreadItem); overload;
1019     procedure DeleteTab(BrowserRecord: TBrowserRecord); overload;
1020 hi_ 1.1 function Hook(var Message: TMessage): Boolean;
1021     procedure AddRoundNameMenu(MenuItem: TMenuItem);
1022 h677 1.188 procedure SetSelectItemRound(RoundFlag: Boolean; RoundName: string); overload;
1023 yoffy 1.236 procedure SetSelectItemRound(RoundFlag: Boolean; RoundName: string; ParentName: string); overload;
1024 hi_ 1.1 procedure SetSelectRoundName(Sender: TObject);
1025     function GetCoolBand(CoolBar: TCoolBar; Control: TWinControl): TCoolBand;
1026    
1027     procedure SetMenuFont;
1028     // procedure CreateFavMenu(Folder: TFavoriteFolder);
1029     procedure CreateFavMenu(Node: TTreeNode; MenuItem: TMenuItem);
1030 yoffy 1.62 procedure FavoriteClick(Sender: TObject; ActiveTab: Boolean); overload;
1031     procedure FavoriteClick(Sender: TObject); overload;
1032 yoffy 1.100 procedure FavoriteDragOver(Sender, Source: TObject; X, Y: Integer; State: TDragState; var Accept: Boolean);
1033 yoffy 1.2 procedure SelectTreeNode(Item: TObject; CallEvent: Boolean);
1034 hi_ 1.1 function OnDocumentContextMenu(Sender: TObject): WordBool;
1035     // function GetThreadText(sBoard: string; sThread: string; StNum, ToNum: Integer; Title, First: Boolean): string;
1036 yoffy 1.123 procedure SetResPopupText(ThreadItem : TThreadItem; StNum, ToNum: Integer; Title, First: Boolean);
1037 hi_ 1.1 procedure ShowTextPopup;
1038     //procedure ShowTextPopup(HintData: THintData);
1039 yoffy 1.2 // procedure SetStdToolBar;
1040     // function GetAction(ActionName: string): TContainedAction;
1041 hi_ 1.1 procedure SetLinkBar;
1042     function GetWidthAllToolButton(ToolBar: TToolBar): Integer;
1043 yoffy 1.2 procedure MenuBarChevronMenu;
1044     procedure LinkBarChevronMenu;
1045     procedure ToolBarChevronMenu(ToolBar: TToolBar);
1046 yoffy 1.51 procedure ModifySelectList;
1047 yoffy 1.100 procedure FavoriteBrowseFolder( node: TTreeNode );
1048     procedure LinkToolButtonDragDrop(Sender, Source: TObject; X, Y: Integer);
1049     procedure LinkToolButtonOnMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
1050     procedure LinkToolButtonOnMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);
1051     procedure LinkToolButtonOnMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
1052 yoffy 1.85 procedure LinkToolButtonStartDrag(Sender: TObject; var DragObject: TDragObject);
1053 yoffy 1.72 function TreeNodeDataFind(Node: TTreeNode; FindPointer: Pointer): TTreeNode;
1054 yoffy 1.100 procedure FavoriteMoveTo( SenderNode, SourceNode: TTreeNode );
1055     procedure FavoriteAddTo( SenderNode: TTreeNode; Source: TObject );
1056 yoffy 1.72 procedure FavoriteDragDrop( SenderNode: TTreeNode; Source: TObject );
1057 yoffy 1.236 //
1058 yoffy 1.143 procedure SetListViewBackGroundColor(value: TColor);
1059 yoffy 1.123 procedure BBSMenuItemOnClick( Sender : TObject );
1060 yoffy 1.236 //
1061     procedure KonoresCopy(Number: Integer; ReplaceTag : Boolean);
1062 yoffy 1.424 /// CoolBar 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1063 yoffy 1.216 procedure SaveCoolBarSettings;
1064 yoffy 1.424 /// CoolBar 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1065 yoffy 1.216 procedure LoadCoolBarSettings;
1066 yoffy 1.424 /// 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1067 yoffy 1.276 procedure OnMinimize;
1068 yoffy 1.424 /// 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1069 yoffy 1.248 procedure OnMinimized;
1070 yoffy 1.424 /// CoolBar 鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申
1071 yoffy 1.216 procedure CoolBarResized(Sender: TObject; CoolBar: TCoolBar);
1072 yoffy 1.424 /// TreeView 鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申
1073 yoffy 1.236 procedure TreeClick( Node : TTreeNode );
1074 yoffy 1.424 /// TreeView 鐃緒申鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申
1075 yoffy 1.236 procedure TreeDoubleClick( Node : TTreeNode );
1076 yoffy 1.424 /// 鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1077 yoffy 1.236 procedure HandleAppMessage(var Msg: TMsg; var Handled: Boolean);
1078 yoffy 1.424 /// 鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃?
1079     /// 鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申 True 鐃緒申鐃緒申鐃緒申
1080 yoffy 1.275 function BrowserKeydown(var Msg: TMsg; Key: Word; State:TShiftState) : Boolean;
1081 yoffy 1.424 /// 鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃?鐃? BBS 鐃緒申鐃?鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?
1082 yoffy 1.289 procedure SetBBSMenu;
1083 h677 1.315 function WebBrowserClick(Sender: TObject): WordBool;
1084 h677 1.343 procedure SkinorCSSFilesCopy(path: string);
1085 yoffy 1.424 /// 鐃?鐃?鐃緒申鐃緒申
1086 yoffy 1.397 function GetTabURLs(AStringList: TStringList) : Boolean;
1087 yoffy 1.424 /// 鐃?鐃?鐃緒申鐃緒申
1088 yoffy 1.397 function SaveTabURLs : Boolean;
1089 yoffy 1.424 /// 鐃?鐃?鐃緒申鐃緒申鐃?鐃緒申
1090 yoffy 1.397 function LoadTabURLs : Boolean;
1091 yoffy 1.424 /// 鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1092 yoffy 1.364 procedure ResetBandInfo( bar : TGikoCoolBar; band : TToolBar );
1093 yoffy 1.413 /// ListView 鐃緒申 Column 鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1094     function ActiveListTrueColumn( column : TListColumn ) : TListColumn;
1095 yoffy 1.415 /// ListColumnPopupMenu 鐃?鐃?鐃?鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃?
1096     procedure ListColumnPopupMenuOnClick( Sender : TObject );
1097 hi_ 1.1 protected
1098     procedure CreateParams(var Params: TCreateParams); override;
1099 yoffy 1.2 procedure WndProc(var Message: TMessage); override;
1100 hi_ 1.1 procedure WMSetCursor(var Message: TWMSetCursor); message WM_SETCURSOR;
1101     procedure WMSettingChange(var Message: TWMWinIniChange); message WM_SETTINGCHANGE;
1102     procedure WMCopyData(var Message: TWMCopyData); message WM_COPYDATA;
1103 yoffy 1.216
1104 hi_ 1.1 public
1105     { Public 鐃緒申鐃緒申 }
1106     // FDownload: TDownload;
1107     FControlThread: TThreadControl;
1108 yoffy 1.444 procedure MoveToURL(const inURL: string);
1109     function InsertBrowserTab(
1110     ThreadItem : TThreadItem;
1111     ActiveTab : Boolean = True
1112     ) : TBrowserRecord;
1113 hi_ 1.1 procedure ReloadBBS;
1114     function GetHttpState: Boolean;
1115     procedure SetEnabledCloseButton(Enabled: Boolean);
1116     function GetTreeNode(Data: TObject): TTreeNode;
1117     procedure AppFormDeactivate(Sender: TObject);
1118     // procedure CabinetPanelVisible(PanelVisible: Boolean);
1119     procedure ListViewAllSelect;
1120    
1121     property ListStyle: TViewStyle read FListStyle write FListStyle;
1122     property ItemNoVisible: Boolean read FItemNoVisible write FItemNoVisible;
1123     property ViewType: TGikoViewType read FViewType write FViewType;
1124    
1125     property NameCookie: string read FNameCookie write FNameCookie;
1126     property MailCookie: string read FMailCookie write FMailCookie;
1127    
1128 h677 1.299 procedure SetContent(inThread: TBrowserRecord);
1129 hi_ 1.1 function GetActiveContent: TThreadItem;
1130     function GetActiveList: TObject;
1131    
1132 h677 1.433
1133 hi_ 1.1 // property LastRoundTime: TDateTime read FLastRoundTime write FLastRoundTime;
1134    
1135     procedure SetListViewType(AViewType: TGikoViewType); overload;
1136     procedure SetListViewType(AViewType: TGikoViewType; SelectText: string; KubetsuChk: Boolean); overload;
1137 q9_ 1.294 procedure DownloadContent(ThreadItem: TThreadItem; ForceDownload: Boolean = False);
1138     procedure DownloadList(Board: TBoard; ForceDownload: Boolean = False);
1139 hi_ 1.1 procedure PlaySound(SoundEventName: string);
1140    
1141 yoffy 1.136 function AddHistory( FavItem: TFavoriteThreadItem ): Boolean;
1142     procedure DeleteHistory( threadItem: TThreadItem );
1143 hi_ 1.1 procedure ClearHistory;
1144 yoffy 1.135 procedure SaveHistory;
1145     procedure LoadHistory;
1146 yoffy 1.123 procedure ShowBBSTree( inBBS : TBBS );
1147 yoffy 1.248 procedure ShowBBSTreeOld( inBBS : TBBS );
1148 hi_ 1.1 procedure ShowHistoryTree;
1149     procedure SetHistoryTreeNode;
1150     // procedure SelectTreeNode(Item: TObject);
1151     procedure AddMessageList(ACaption: string; AObject: TObject; Icon: TGikoMessageIcon);
1152     procedure SetBrowserTabState;
1153     // property Favorite: TFavorite read FFavorite write FFavorite;
1154 yoffy 1.2 procedure SetToolBarPopup;
1155 yoffy 1.100 procedure ShowFavoriteAddDialog( Item : TObject );
1156 h677 1.433 procedure FavoritesURLReplace(oldURLs: TStringList; newURLs: TStringList);
1157     procedure RoundListURLReplace(oldURLs: TStringList; newURLs: TStringList);
1158 yoffy 1.143 property ListViewBackGroundColor: TColor read FListViewBackGroundColor write SetListViewBackGroundColor;
1159     property UseOddResOddColor : Boolean read FUseOddResOddColor write FUseOddResOddColor;
1160     property OddColor : TColor read FOddColor write FOddColor;
1161 h677 1.109
1162 yoffy 1.209 function FindToolBarButton( bar : TToolBar; action : TAction ) : TToolButton;
1163 yoffy 1.218 procedure OnPlugInMenuItem( Sender : TObject );
1164 h677 1.433 procedure TabFileURLReplace(oldURLs: TStringList; newURLs: TStringList);
1165     /// ListView 鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申 KuroutSetting鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1166     procedure ActiveListColumnSave;
1167     procedure SetActiveList(Obj: TObject);
1168     property ActiveList: TObject read GetActiveList write SetActiveList;
1169 hi_ 1.1 published
1170     property EnabledCloseButton: Boolean read FEnabledCloseButton write SetEnabledCloseButton;
1171     end;
1172    
1173     TFavoriteMenuItem = class(TMenuItem)
1174     private
1175     FData : Pointer;
1176     public
1177     property Data: Pointer read FData write FData;
1178     end;
1179    
1180 yoffy 1.123 TBBSMenuItem = class(TMenuItem)
1181     private
1182     FData : Pointer;
1183     public
1184     property Data: Pointer read FData write FData;
1185     end;
1186    
1187 hi_ 1.1 TLinkToolButton = class(TToolButton)
1188     private
1189     FData : Pointer;
1190     public
1191     property Data: Pointer read FData write FData;
1192     end;
1193    
1194 h677 1.299 TBrowserRecord = class( TObject )
1195     private
1196     FBrowser : TWebBrowser;
1197 yoffy 1.444 FEvent: THTMLDocumentEventSink; //!< 鐃?鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申鐃?
1198 h677 1.299 FThread : TThreadItem;
1199     FLastSize : Integer;
1200     FRepaint : Boolean;
1201 yoffy 1.444 FMovement : string; //!< 鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?
1202 h677 1.299 public
1203     destructor Destroy; override;
1204     property Browser : TWebBrowser read FBrowser write FBrowser;
1205     property Thread : TThreadItem read FThread write FThread;
1206     property LastSize : Integer read FLastSize write FLastSize;
1207     property Repaint : Boolean read FRepaint write FRepaint;
1208 yoffy 1.444 property Movement : string read FMovement write FMovement;
1209 h677 1.299 end;
1210    
1211 hi_ 1.1 var
1212     GikoForm: TGikoForm;
1213    
1214     implementation
1215    
1216     uses
1217     About, Option, Round, Splash, Sort, ListSelect,
1218 h677 1.183 NewBoard, MojuUtils,Clipbrd;
1219 hi_ 1.1
1220     const
1221     CAPTION_NAME: string = '鐃?鐃?鐃?鐃?';
1222     BLANK_HTML: string = 'about:blank';
1223 yoffy 1.51 SELECTCOMBOBOX_NAME: string = ''; // '鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申';
1224     SELECTCOMBOBOX_COLOR: TColor = clWindow;
1225 yoffy 1.120 //D&D鐃緒申鐃?
1226     DandD_THRESHOLD = 5; //D&D鐃緒申鐃緒申鐃?鐃?pixcel)
1227 yoffy 1.2 //鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申
1228     ITEM_ICON_2CH1 = 0; //2ch鐃?鐃?鐃?鐃緒申
1229     ITEM_ICON_2CH2 = 1; //2ch鐃?鐃?鐃?鐃緒申
1230     ITEM_ICON_CATEGORY1 = 2; //鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申
1231     ITEM_ICON_CATEGORY2 = 3; //鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申
1232 yoffy 1.120 ITEM_ICON_BOARD_NOSUBJECT = 3; //鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申
1233 yoffy 1.2 ITEM_ICON_BOARD1 = 4; //鐃緒申鐃?鐃?鐃?鐃緒申
1234     ITEM_ICON_BOARD2 = 5; //鐃緒申鐃?鐃?鐃?鐃緒申
1235     ITEM_ICON_THREADLOG1 = 6; //鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃?
1236     ITEM_ICON_THREADLOG2 = 7; //鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃?
1237     ITEM_ICON_THREAD1 = 8; //鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃?
1238     ITEM_ICON_THREAD2 = 9; //鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃?
1239     ITEM_ICON_THREADNEW1 = 10; //鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃?
1240     ITEM_ICON_THREADNEW2 = 11; //鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃?
1241     ITEM_ICON_SORT1 = 12; //鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申
1242     ITEM_ICON_SORT2 = 13; //鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申
1243 yoffy 1.120 ITEM_ICON_BOARD_LOG = 17; //鐃?鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申
1244     ITEM_ICON_BOARD_NEW = 18; //鐃?鐃緒申鐃?鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申
1245 yoffy 1.2
1246     //鐃?鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申
1247 yoffy 1.48 TOOL_ICON_HEIGHT_MAX = 16; //鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申
1248     TOOL_ICON_HEIGHT_MIN = 17; //鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申
1249     TOOL_ICON_HEIGHT_NORMAL = 18; //鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃緒申
1250     TOOL_ICON_WIDTH_MAX = 19; //鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申
1251     TOOL_ICON_WIDTH_MIN = 20; //鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申
1252     TOOL_ICON_WIDTH_NORMAL = 21; //鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃緒申
1253    
1254 yoffy 1.51 TOOL_ICON_FAV_FOLDER = 30; //鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃?鐃?鐃緒申鐃?鐃?鐃?鐃?鐃緒申
1255 yoffy 1.100 TOOL_ICON_FAV_BOARD = 31; //鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申
1256 yoffy 1.51 TOOL_ICON_FAV_THREAD = 32; //鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃緒申
1257 hi_ 1.1
1258     HTML_FILE_NAME = 'temp_preview.html';
1259    
1260 yoffy 1.253 WM_XBUTTONDOWN = $020B;
1261     WM_XBUTTONUP = $020C;
1262     WM_XBUTTONDBLCLK = $020D;
1263     XBUTTON1 = $0001;
1264     XBUTTON2 = $0002;
1265 yoffy 1.278 USER_TREECLICK = WM_USER + 2000;
1266     USER_RESIZED = WM_USER + 2001;
1267     USER_MINIMIZED = WM_USER + 2002;
1268     USER_SETLINKBAR = WM_USER + 2003;
1269 yoffy 1.434 USER_DOCUMENTCOMPLETE = WM_USER + 2004; ///< wParam : TWebBrowser
1270 h677 1.340 SELECTTIME_INTERBAL = 110;
1271    
1272     BROWSER_COUNT = 5; //鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申
1273 hi_ 1.1 {$R *.DFM}
1274    
1275     procedure TGikoForm.CreateParams(var Params: TCreateParams);
1276     begin
1277     inherited;
1278     if FormStyle in [fsNormal, fsStayOnTop] then begin
1279     if BorderStyle in [bsSingle, bsSizeable] then begin
1280     Params.ExStyle := Params.ExStyle or WS_EX_APPWINDOW;
1281     Params.WndParent := 0;
1282     end;
1283     end;
1284     end;
1285    
1286     procedure TGikoForm.FormCreate(Sender: TObject);
1287     const
1288     TVS_NOTOOLTIPS = $0080;
1289     var
1290     FileName: string;
1291     Style: DWORD;
1292     msg: string;
1293     i: Integer;
1294     wp: TWindowPlacement;
1295 hi_ 1.32 s: string;
1296 h677 1.303 newbrowser: TWebBrowser;
1297 hi_ 1.1 begin
1298     {$IFDEF DEBUG}
1299     AllocConsole;
1300     Writeln('============================================================');
1301     Writeln(' 鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃? 鐃?鐃緒申鐃?鐃?鐃緒申');
1302     Writeln('');
1303     Writeln(' 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?');
1304     Writeln(' 鐃?鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申');
1305     Writeln('============================================================');
1306     {$ENDIF}
1307 h677 1.423 FStartUp := false;
1308 hi_ 1.1 Application.OnDeactivate := AppFormDeactivate;
1309     Self.OnDeactivate := AppFormDeactivate;
1310     Application.HookMainWindow(Hook);
1311 h677 1.316 Application.OnMessage := HandleAppMessage; //鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃?by鐃?鐃緒申鐃緒申鐃緒申
1312 h677 1.423 // Self.DoubleBuffered := true;
1313 hi_ 1.1 FTreeType := gttNone;
1314    
1315 yoffy 1.51 FSearchDialog := nil;
1316 h677 1.299 BrowserNullTab := TBrowserRecord.Create;
1317     BrowserNullTab.Browser := Browser;
1318 h677 1.316 BrowserNullTab.Browser.Navigate(BLANK_HTML);
1319 h677 1.303 FBrowsers := TList.Create;
1320 h677 1.340 for i := 0 to BROWSER_COUNT -1 do begin
1321 h677 1.345 FBrowsers.Add(TWebBrowser.Create(nil));
1322     newBrowser := FBrowsers[FBrowsers.Count - 1];
1323 h677 1.303 TOleControl(newBrowser).Parent := BrowserPanel;
1324 h677 1.345 newBrowser.Align := alNone;
1325 h677 1.346 newBrowser.Left := 0;
1326     newBrowser.Top := 0;
1327 h677 1.423 newBrowser.StatusBar := false;
1328     newBrowser.MenuBar := false;
1329     newBrowser.AddressBar := false;
1330 h677 1.303 newBrowser.OnDocumentComplete := BrowserDocumentComplete;
1331     newBrowser.OnBeforeNavigate2 := BrowserBeforeNavigate2;
1332     newBrowser.OnEnter := BrowserEnter;
1333     newBrowser.OnNewWindow2 := BrowserNewWindow2;
1334     newBrowser.OnStatusTextChange := BrowserStatusTextChange;
1335 h677 1.306 newBrowser.Navigate(BLANK_HTML);
1336 h677 1.316 ShowWindow(newBrowser.Handle, SW_HIDE);
1337 h677 1.345
1338 h677 1.303 end;
1339 h677 1.316 BrowserNullTab.Browser.BringToFront;
1340     ShowWindow(BrowserNullTab.Browser.Handle, SW_SHOW);
1341 h677 1.303
1342 yoffy 1.216 // 鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1343 yoffy 1.424 FIsIgnoreResize := rtResizing;
1344 yoffy 1.216
1345 hi_ 1.1 //鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申
1346     Screen.Cursors[5] := LoadCursor(HInstance, 'GIKOHAND');
1347    
1348    
1349     //鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1350     AddressHistoryDM.ReadHistory(AddressComboBox.Items, GikoSys.Setting.AddressHistoryCount);
1351    
1352     EnabledCloseButton := True;
1353 h677 1.176
1354 hi_ 1.1 //鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申
1355     ListView.ViewStyle := GikoSys.Setting.ListStyle;
1356    
1357     //鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃?
1358     // MainCoolBar.Top := 0;
1359     // MainCoolBar.Left := 0;
1360    
1361     //鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?
1362     AnimePanel.Top := 0;
1363     AnimePanel.Left := 0;
1364    
1365     //鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1366    
1367     //鐃?鐃緒申鐃?鐃?鐃?鐃?
1368     CabinetPanel.Width := GikoSys.Setting.CabinetWidth;
1369    
1370     //鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?
1371     MsgBarVisibleAction.Checked := GikoSys.Setting.MessageBarVisible;
1372     MsgBarVisibleActionExecute(nil);
1373     MessagePanel.Height := GikoSys.Setting.MessegeBarHeight;
1374    
1375     //鐃?鐃?鐃?鐃?鐃?鐃?鐃?
1376     StatusBarVisibleAction.Checked := GikoSys.Setting.StatusBarVisible;
1377     StatusBarVisibleActionExecute(nil);
1378    
1379     //鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申
1380     TreeView.Items.BeginUpdate;
1381 yoffy 1.100 FavoriteTreeView.Items.BeginUpdate;
1382 hi_ 1.1 ListView.Items.BeginUpdate;
1383     try
1384     TreeView.Font.Name := GikoSys.Setting.CabinetFontName;
1385     TreeView.Font.Size := GikoSys.Setting.CabinetFontSize;
1386     TreeView.Font.Color := GikoSys.Setting.CabinetFontColor;
1387     TreeView.Color := GikoSys.Setting.CabinetBackColor;
1388    
1389 yoffy 1.67 FavoriteTreeView.Font.Name := GikoSys.Setting.CabinetFontName;
1390     FavoriteTreeView.Font.Size := GikoSys.Setting.CabinetFontSize;
1391     FavoriteTreeView.Font.Color := GikoSys.Setting.CabinetFontColor;
1392     FavoriteTreeView.Color := GikoSys.Setting.CabinetBackColor;
1393    
1394 hi_ 1.1 ListView.Font.Name := GikoSys.Setting.ListFontName;
1395     ListView.Font.Size := GikoSys.Setting.ListFontSize;
1396     ListView.Font.Color := GikoSys.Setting.ListFontColor;
1397 yoffy 1.418 ListViewBackGroundColor := clWhite; // 鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1398     ListViewBackGroundColor := GikoSys.Setting.ListBackColor; // 鐃緒申鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃?
1399 yoffy 1.236 FUseOddResOddColor := GikoSys.Setting.UseOddColorOddResNum;
1400     FOddColor := GikoSys.Setting.OddColor;
1401 h677 1.109
1402 hi_ 1.1 finally
1403     TreeView.Items.EndUpdate;
1404 yoffy 1.100 FavoriteTreeView.Items.EndUpdate;
1405 hi_ 1.1 ListView.Items.EndUpdate;
1406     end;
1407     //ViewNoButton.Down := GikoSys.Setting.ListViewNo;
1408     ListNumberVisibleAction.Checked := GikoSys.Setting.ListViewNo;
1409    
1410     //鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?
1411     BrowserTab.Font.Name := GikoSys.Setting.BrowserTabFontName;
1412     BrowserTab.Font.Size := GikoSys.Setting.BrowserTabFontSize;
1413 yoffy 1.133 FDragWFirst := false;
1414 h677 1.299 SetContent(BrowserNullTab); //鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃?鐃緒申
1415 hi_ 1.1 // TreeView.TopItem.Expanded := True; //鐃?鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申
1416     // TreeView.Selected := TreeView.Items[0]; //鐃?鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申
1417 h677 1.299
1418 hi_ 1.1
1419     //鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申
1420     wp.length := sizeof(wp);
1421     wp.rcNormalPosition.Top := GikoSys.Setting.WindowTop;
1422     wp.rcNormalPosition.Left := GikoSys.Setting.WindowLeft;
1423     wp.rcNormalPosition.Bottom := GikoSys.Setting.WindowTop + GikoSys.Setting.WindowHeight;
1424     wp.rcNormalPosition.Right := GikoSys.Setting.WindowLeft + GikoSys.Setting.WindowWidth;
1425     wp.showCmd := SW_HIDE;
1426     SetWindowPlacement(Handle, @wp);
1427    
1428     // SetBounds(GikoSys.Setting.WindowLeft, GikoSys.Setting.WindowTop,
1429     // GikoSys.Setting.WindowWidth, GikoSys.Setting.WindowHeight);
1430     if GikoSys.Setting.WindowMax then
1431 yoffy 1.248 WindowState := wsMaximized;
1432 hi_ 1.1
1433     //鐃?鐃?鐃?鐃?鐃緒申
1434     try
1435     FileName := GikoSys.GetAppDir + 'gikoNavi.avi';
1436     if FileExists(FileName) then
1437     Animate.FileName := FileName;
1438     except
1439     end;
1440    
1441     //鐃?鐃?鐃?鐃?
1442     FNameCookie := '';
1443     FMailCookie := '';
1444    
1445     //鐃?鐃緒申鐃?鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1446     AllItemAction.Checked := True;
1447 yoffy 1.126 AllResAction.Checked := True;
1448 hi_ 1.1
1449     //TreeView鐃緒申鐃緒申鐃緒申鐃?鐃緒申ToolTip鐃緒申鐃緒申鐃?鐃緒申
1450     Style := GetWindowLong(TreeView.Handle, GWL_STYLE);
1451     Style := Style or TVS_NOTOOLTIPS;
1452     SetWindowLong(TreeView.Handle, GWL_STYLE, Style);
1453    
1454     // 鐃?鐃緒申鐃?鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1455     TreeView.Align := alClient;
1456 yoffy 1.57 FavoriteTreeView.Align := alClient;
1457 hi_ 1.1 FavoriteTreeView.Visible := False;
1458    
1459     //鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申
1460     // FBrowserSizeFlag := False;
1461     // FBrowserSizeHeight := ViewPanel.Height;
1462    
1463     FBrowserSizeHeight := GikoSys.Setting.ListHeight;
1464     FBrowserSizeWidth := GikoSys.Setting.ListWidth;
1465    
1466 yoffy 1.420 // 鐃?鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃?鐃?(ReadBoardFile, LoadHistory 鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申)
1467     InitializeBoardPlugIns;
1468    
1469     //鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申
1470     RoundList := TRoundList.Create;
1471     RoundList.LoadRoundBoardFile;
1472    
1473     // 鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申(ReadFavorite 鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申)
1474     GikoSys.ListBoardFile;
1475    
1476     RoundList.LoadRoundThreadFile;
1477    
1478     if RoundList.OldFileRead or ( RoundList.Count[grtItem] > 0 ) then
1479     GikoSys.ListBoardFile;
1480    
1481     // 鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申
1482     SetBBSMenu;
1483    
1484     // 鐃?鐃?鐃?鐃緒申鐃緒申鐃?鐃?(LoadHistory 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申)
1485     FHistoryList := TList.Create;
1486    
1487     // 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1488     LoadHistory;
1489    
1490     //鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1491     // FFavorite := TFavorite.Create(FavoriteTreeView);
1492     FavoriteDM.SetFavTreeView(FavoriteTreeView);
1493     FavoriteDM.ReadFavorite;
1494    
1495 hi_ 1.1 ArrangeAction.Checked := not (GikoSys.Setting.ListOrientation = gloVertical);
1496     ArrangeAction.Execute;
1497    
1498     if GikoSys.Setting.ListOrientation = gloHorizontal then begin
1499     case GikoSys.Setting.ListWidthState of
1500     glsMax: begin
1501     ViewPanel.Width := 1;
1502 yoffy 1.2 BrowserMaxAction.ImageIndex := TOOL_ICON_WIDTH_NORMAL;
1503     BrowserMinAction.ImageIndex := TOOL_ICON_WIDTH_MIN;
1504 hi_ 1.1 end;
1505     glsMin: begin
1506     ViewPanel.Width := GikoSys.Setting.ListWidth;
1507 yoffy 1.2 BrowserMaxAction.ImageIndex := TOOL_ICON_WIDTH_MAX;
1508     BrowserMinAction.ImageIndex := TOOL_ICON_WIDTH_NORMAL;
1509 hi_ 1.1 end;
1510     else begin
1511     ViewPanel.Width := GikoSys.Setting.ListWidth;
1512 yoffy 1.2 BrowserMaxAction.ImageIndex := TOOL_ICON_WIDTH_MAX;
1513     BrowserMinAction.ImageIndex := TOOL_ICON_WIDTH_MIN;
1514 hi_ 1.1 end;
1515     end;
1516     end else begin
1517     case GikoSys.Setting.ListHeightState of
1518     glsMax: begin
1519     ViewPanel.Height := 1;
1520 yoffy 1.2 BrowserMaxAction.ImageIndex := TOOL_ICON_HEIGHT_NORMAL;
1521     BrowserMinAction.ImageIndex := TOOL_ICON_HEIGHT_MIN;
1522 hi_ 1.1 end;
1523     glsMin: begin
1524     ViewPanel.Height := GikoSys.Setting.ListHeight;
1525 yoffy 1.2 BrowserMaxAction.ImageIndex := TOOL_ICON_HEIGHT_MAX;
1526     BrowserMinAction.ImageIndex := TOOL_ICON_HEIGHT_NORMAL;
1527 hi_ 1.1 end;
1528     else begin
1529     ViewPanel.Height := GikoSys.Setting.ListHeight;
1530 yoffy 1.2 BrowserMaxAction.ImageIndex := TOOL_ICON_HEIGHT_MAX;
1531     BrowserMinAction.ImageIndex := TOOL_ICON_HEIGHT_MIN;
1532 hi_ 1.1 end;
1533     end;
1534     end;
1535    
1536     //鐃?鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申
1537     // ProgressBar.Visible := False;
1538     ProgressBar.Parent := StatusBar;
1539     ProgressBar.Top := 2;
1540     ProgressBar.Left := 0;
1541     ProgressBar.Width := StatusBar.Panels[0].Width;
1542     ProgressBar.Height := StatusBar.Height - 2;
1543     ProgressBar.Position := 0;
1544    
1545     //鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?
1546     FControlThread := TThreadControl.Create(True);
1547     FControlThread.MaxThreadCount := 1;
1548     FControlThread.Resume;
1549     FControlThread.OnDownloadEnd := DownloadEnd;
1550     FControlThread.OnDownloadMsg := DownloadMsg;
1551     FControlThread.OnWork := Work;
1552     FControlThread.OnWorkBegin := WorkBegin;
1553     FControlThread.OnWorkEnd := WorkEnd;
1554     // ProgressPanel.Width := FControlThread.MaxThreadCount * 12;
1555    
1556 yoffy 1.51 // 鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1557     SelectComboBox.Items.Assign( GikoSys.Setting.SelectTextList );
1558 yoffy 1.2
1559 hi_ 1.1 //鐃?鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃緒申
1560     SetBrowserTabState;
1561    
1562     BrowserBoardNameLabel.Caption := '';
1563     BrowserNameLabel.Caption := '';
1564     FWorkCount := 0;
1565    
1566     FTabHintIndex := -1;
1567    
1568     //鐃緒申鐃緒申鐃?鐃?鐃?
1569     SetLinkBar;
1570    
1571     //鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?
1572     SetMenuFont;
1573    
1574     //鐃?鐃?鐃緒申鐃?鐃?Wrapable
1575     ListToolBar.Wrapable := GikoSys.Setting.ListToolBarWrapable;
1576     BrowserToolBar.Wrapable := GikoSys.Setting.BrowserToolBarWrapable;
1577    
1578 yoffy 1.236 KeepDefaultToolButton(StdToolBar, TmpToolBar);
1579     KeepDefaultToolButton(ListToolBar, TmpToolBar);
1580     KeepDefaultToolButton(BrowserToolBar, TmpToolBar);
1581 h677 1.234
1582 yoffy 1.236 MakeDefaultINIFile();
1583 yoffy 1.2 //鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1584     ReadToolBarSetting(ActionList, StdToolBar);
1585     ReadToolBarSetting(ActionList, ListToolBar);
1586 yoffy 1.51 try
1587     for i := ListToolBar.ControlCount - 1 downto 0 do
1588     begin
1589     if ListToolBar.Controls[ i ].Action = SelectItemAction then
1590     begin
1591     // 鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申
1592     if (i + 1) < ListToolBar.ControlCount then
1593     if ListToolBar.Controls[ i + 1 ] is TToolButton then
1594     if TToolButton( ListToolBar.Controls[ i + 1 ] ).Style = tbsSeparator then
1595     ListToolBar.Controls[ i + 1 ].Visible := False;
1596    
1597     // 鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃緒申
1598     ListToolBar.Controls[ i ].Visible := False;
1599     // 鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃緒申
1600 yoffy 1.239 SelectComboBox.Parent := ListToolBar;
1601 yoffy 1.51 SelectComboBox.Left := ListToolBar.Controls[ i ].Left;
1602     SelectComboBox.Width := GikoSys.Setting.SelectComboBoxWidth;
1603     // 鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃緒申
1604 yoffy 1.239 SelectComboBoxSplitter.Parent := ListToolBar;
1605 yoffy 1.51 SelectComboBoxSplitter.Left := SelectComboBox.Left + SelectComboBox.Width;
1606    
1607     break;
1608     end;
1609     end;
1610     except
1611     end;
1612 yoffy 1.2 ReadToolBarSetting(ActionList, BrowserToolBar);
1613     SetToolBarPopup;
1614 yoffy 1.375
1615     // 鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申
1616 yoffy 1.383 FResRangeMenuSelect := GikoSys.ResRange;
1617 yoffy 1.375 case GikoSys.ResRange of
1618     Ord( grrAll ):
1619     begin
1620     AllResAction.Execute;
1621     end;
1622     Ord( grrSelect ):
1623     begin
1624 yoffy 1.383 SelectComboBox.Text := SelectComboBox.Items[ 1 ];
1625 yoffy 1.375 SelectResAction.Checked := True;
1626     end;
1627     else
1628     // ResRangeAction.Execute;
1629     case FResRangeMenuSelect of
1630     Ord( grrKoko ): OnlyKokoResAction.Checked := True;
1631     Ord( grrNew ): OnlyNewResAction.Checked := True;
1632 yoffy 1.389 100: OnlyAHundredResAction.Checked := True;
1633 yoffy 1.375 end;
1634     end;
1635    
1636 yoffy 1.390 // 鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申
1637     // ThreadRangeAction.Execute;
1638     case GikoSys.Setting.ThreadRange of
1639     gtrAll:
1640     begin
1641     AllItemAction.Checked := True;
1642     ViewType := gvtAll;
1643     end;
1644     gtrLog:
1645     begin
1646     LogItemAction.Checked := True;
1647     ViewType := gvtLog;
1648     end;
1649     gtrNew:
1650     begin
1651     NewItemAction.Checked := True;
1652     ViewType := gvtNew;
1653     end;
1654     end;
1655    
1656 hi_ 1.1 //鐃?鐃?鐃緒申鐃?鐃?鐃?
1657     AddressComboBox.TabStop := GikoSys.Setting.AddressBarTabStop;
1658    
1659 yoffy 1.2 //鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申FormShow鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1660    
1661     //鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申
1662     if not FileExists(GikoSys.GetBoardFileName) then begin
1663     msg := '鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申' + #13#10#13#10
1664     + '鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申' + #13#10
1665     + '鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?';
1666     MsgBox(SplashWindow.Handle, msg, '鐃?鐃?鐃?鐃?', MB_OK or MB_ICONINFORMATION);
1667     NewBoardAction.Execute;
1668     end;
1669    
1670     //鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1671     GikoSys.LoadKeySetting(ActionList);
1672    
1673     //鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申
1674     // FLastRoundTime := 0;
1675    
1676     //ResHint
1677     FHint := TResPopup.Create(Self);
1678    
1679 yoffy 1.100 // 鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申
1680 h677 1.299 CabinetVisible( False );
1681 yoffy 1.141 if GikoSys.Setting.CabinetVisible then begin
1682     i := CabinetSelectPopupMenu.Items.Count - 1;
1683     if GikoSys.Setting.CabinetIndex = i - 1 then
1684     CabinetHistoryAction.Execute
1685     else if GikoSys.Setting.CabinetIndex = i then
1686     CabinetFavoriteAction.Execute
1687     else begin
1688     if GikoSys.Setting.CabinetIndex < Length( BBSs ) then
1689     ShowBBSTree( BBSs[ GikoSys.Setting.CabinetIndex ] );
1690 yoffy 1.265 // 鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申 2
1691 yoffy 1.424 FIsIgnoreResize := rtResizing;
1692 yoffy 1.141 CabinetBBSAction.Execute;
1693     end;
1694     end else begin
1695 yoffy 1.248 ShowBBSTreeOld( BBSs[ 0 ] );
1696     PostMessage( Handle, USER_TREECLICK, 0, 0 );
1697 yoffy 1.141 end;
1698 yoffy 1.67
1699 yoffy 1.265 // 鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申 3
1700 yoffy 1.424 FIsIgnoreResize := rtResizing;
1701 yoffy 1.248
1702 yoffy 1.2 //鐃?鐃?鐃?鐃緒申鐃?鐃?鐃緒申
1703     if GikoSys.Setting.AutoLogin then
1704     LoginAction.Execute;
1705    
1706     //鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃?
1707     for i := 1 to ParamCount do begin
1708     MoveToURL(ParamStr(i));
1709     end;
1710     // SetStdToolBar;
1711     // SetLinkBar;
1712 h677 1.22
1713 hi_ 1.32 s := GikoSys.FAbon.NGwordname;
1714     StatusBar.Panels[2].Text := s;
1715     StatusBar.Panels[2].Width := Max(StatusBar.Canvas.TextWidth(s), 100);
1716     StatusBarResize(Sender);
1717 h677 1.187
1718 yoffy 1.236 dummy1.Caption := ItemReservPMenu.Caption;
1719     dummy1.Hint := ItemReservPMenu.Hint;
1720 yoffy 1.216
1721 yoffy 1.236 //Samba24鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃?
1722     GikoSys.SambaFileExists();
1723 h677 1.299
1724 genyakun 1.439 //鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃?鐃緒申
1725 yoffy 1.2 end;
1726    
1727 yoffy 1.216 // CoolBar 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1728     procedure TGikoForm.SaveCoolBarSettings;
1729 yoffy 1.2 var
1730 yoffy 1.216 i : Integer;
1731     CoolSet : TCoolSet;
1732 yoffy 1.2 begin
1733    
1734 yoffy 1.424 if IsIconic( Handle ) or (FIsIgnoreResize <> rtNone) then
1735 yoffy 1.216 Exit;
1736 yoffy 1.2
1737 yoffy 1.216 //鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申(Main)
1738     for i := 0 to MAIN_COOLBAND_COUNT - 1 do begin
1739     CoolSet.FCoolID := MainCoolBar.Bands[i].ID;
1740     CoolSet.FCoolWidth := MainCoolBar.Bands[i].Width;
1741     CoolSet.FCoolBreak := MainCoolBar.Bands[i].Break;
1742     GikoSys.Setting.MainCoolSet[i] := CoolSet;
1743     end;
1744     //鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申(Board)
1745     for i := 0 to LIST_COOLBAND_COUNT - 1 do begin
1746     CoolSet.FCoolID := ListCoolBar.Bands[i].ID;
1747     CoolSet.FCoolWidth := ListCoolBar.Bands[i].Width;
1748     CoolSet.FCoolBreak := ListCoolBar.Bands[i].Break;
1749     GikoSys.Setting.ListCoolSet[i] := CoolSet;
1750     end;
1751     //鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申(Browser)
1752     for i := 0 to BROWSER_COOLBAND_COUNT - 1 do begin
1753     CoolSet.FCoolID := BrowserCoolBar.Bands[i].ID;
1754     CoolSet.FCoolWidth := BrowserCoolBar.Bands[i].Width;
1755     CoolSet.FCoolBreak := BrowserCoolBar.Bands[i].Break;
1756     GikoSys.Setting.BrowserCoolSet[i] := CoolSet;
1757 yoffy 1.2 end;
1758    
1759 yoffy 1.216 end;
1760 yoffy 1.2
1761 yoffy 1.216 // CoolBar 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1762     procedure TGikoForm.LoadCoolBarSettings;
1763     var
1764     i : Integer;
1765     CoolSet : TCoolSet;
1766     begin
1767 yoffy 1.2
1768 hi_ 1.1 //鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申(Main)
1769     MainCoolBar.Bands.BeginUpdate;
1770     try
1771 yoffy 1.216 // for i := 0 to MainCoolBar.Bands.Count - 1 do begin
1772     for i := MAIN_COOLBAND_COUNT - 1 downto 0 do begin
1773 hi_ 1.1 CoolSet := GikoSys.Setting.MainCoolSet[i];
1774 yoffy 1.263 if (CoolSet.FCoolID = -1) or (CoolSet.FCoolWidth = -1) then begin
1775 yoffy 1.424 FIsIgnoreResize := rtNone;
1776 yoffy 1.263 SaveCoolBarSettings;
1777     Exit;
1778     end;
1779 hi_ 1.1 MainCoolBar.Bands.FindItemID(CoolSet.FCoolID).Index := i;
1780     MainCoolBar.Bands[i].Break := CoolSet.FCoolBreak;
1781 yoffy 1.264 MainCoolBar.Bands[i].Width := CoolSet.FCoolWidth;
1782 hi_ 1.1 end;
1783     finally
1784     MainCoolBar.Bands.EndUpdate;
1785     end;
1786    
1787     //鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申(Board)
1788     ListCoolBar.Bands.BeginUpdate;
1789     try
1790 yoffy 1.216 // for i := 0 to ListCoolBar.Bands.Count - 1 do begin
1791     for i := LIST_COOLBAND_COUNT - 1 downto 0 do begin
1792 hi_ 1.1 CoolSet := GikoSys.Setting.ListCoolSet[i];
1793 yoffy 1.263 if (CoolSet.FCoolID = -1) or (CoolSet.FCoolWidth = -1) then begin
1794 yoffy 1.424 FIsIgnoreResize := rtNone;
1795 yoffy 1.263 SaveCoolBarSettings;
1796     Exit;
1797     end;
1798 hi_ 1.1 ListCoolBar.Bands.FindItemID(CoolSet.FCoolID).Index := i;
1799     ListCoolBar.Bands[i].Break := CoolSet.FCoolBreak;
1800     ListCoolBar.Bands[i].Width := CoolSet.FCoolWidth;
1801     end;
1802     finally
1803     ListCoolBar.Bands.EndUpdate;
1804     end;
1805    
1806     //鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申(Browser)
1807     BrowserCoolBar.Bands.BeginUpdate;
1808     try
1809 yoffy 1.216 // for i := 0 to BrowserCoolBar.Bands.Count - 1 do begin
1810     for i := BROWSER_COOLBAND_COUNT - 1 downto 0 do begin
1811 hi_ 1.1 CoolSet := GikoSys.Setting.BrowserCoolSet[i];
1812 yoffy 1.263 if (CoolSet.FCoolID = -1) or (CoolSet.FCoolWidth = -1) then begin
1813 yoffy 1.424 FIsIgnoreResize := rtNone;
1814 yoffy 1.263 SaveCoolBarSettings;
1815     Exit;
1816     end;
1817 hi_ 1.1 BrowserCoolBar.Bands.FindItemID(CoolSet.FCoolID).Index := i;
1818     BrowserCoolBar.Bands[i].Break := CoolSet.FCoolBreak;
1819     BrowserCoolBar.Bands[i].Width := CoolSet.FCoolWidth;
1820     end;
1821     finally
1822     BrowserCoolBar.Bands.EndUpdate;
1823     end;
1824    
1825     end;
1826 yoffy 1.216
1827     //
1828     //
1829     //
1830     procedure TGikoForm.FormShow(Sender: TObject);
1831     begin
1832 h677 1.423 if not FStartUp then begin
1833     ShowWindow(Application.Handle, SW_HIDE);
1834    
1835     //FormCreate鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申FormShow鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1836     //鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申
1837     StdToolBarVisibleAction.Checked := GikoSys.Setting.StdToolBarVisible;
1838     StdToolBarVisibleActionExecute( nil );
1839     AddressBarVisibleAction.Checked := GikoSys.Setting.AddressBarVisible;
1840     AddressBarVisibleActionExecute( nil );
1841     LinkBarVisibleAction.Checked := GikoSys.Setting.LinkBarVisible;
1842     LinkBarVisibleActionExecute( nil );
1843     ListToolBarVisibleAction.Checked := GikoSys.Setting.ListToolBarVisible;
1844     ListToolBarVisibleActionExecute( nil );
1845     ListNameBarVisibleAction.Checked := GikoSys.Setting.ListNameBarVisible;
1846     ListNameBarVisibleActionExecute( nil );
1847     BrowserToolBarVisibleAction.Checked := GikoSys.Setting.BrowserToolBarVisible;
1848     BrowserToolBarVisibleActionExecute( nil );
1849     BrowserNameBarVisibleAction.Checked := GikoSys.Setting.BrowserNameBarVisible;
1850     BrowserNameBarVisibleActionExecute( nil );
1851    
1852     //鐃?鐃緒申鐃?鐃?鐃?鐃?
1853     BrowserTabVisibleAction.Checked := GikoSys.Setting.BrowserTabVisible;
1854     BrowserTabVisibleActionExecute(nil);
1855 yoffy 1.216
1856 h677 1.423 if GikoSys.Setting.BrowserTabPosition = gtpTop then begin
1857     BrowserTabTopAction.Checked := True;
1858     BrowserTabTopActionExecute(nil);
1859     end else begin
1860     BrowserTabBottomAction.Checked := True;
1861     BrowserTabBottomActionExecute(nil);
1862     end;
1863    
1864     if GikoSys.Setting.BrowserTabStyle = gtsTab then begin
1865     BrowserTabTabStyleAction.Checked := True;
1866     BrowserTabTabStyleActionExecute(nil);
1867     end else if GikoSys.Setting.BrowserTabStyle = gtsButton then begin
1868     BrowserTabButtonStyleAction.Checked := True;
1869     BrowserTabButtonStyleActionExecute(nil);
1870     end else begin
1871     BrowserTabFlatStyleAction.Checked := True;
1872     BrowserTabFlatStyleActionExecute(nil);
1873     end;
1874 yoffy 1.216
1875 h677 1.423 // ListView 鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?
1876 yoffy 1.425 // ListView.FullDrag := True;
1877 yoffy 1.408
1878 h677 1.423 // CoolBar 鐃緒申鐃緒申
1879     LoadCoolBarSettings;
1880 yoffy 1.265
1881 yoffy 1.424 FIsIgnoreResize := rtNone;
1882 genyakun 1.382
1883 h677 1.423 //TabAutoLoad
1884     //FormCrete鐃緒申鐃緒申鐃緒申鐃緒申鐃?
1885     if GikoSys.Setting.TabAutoLoadSave then begin
1886     TabAutoLoadAction.Execute;
1887     end;
1888 genyakun 1.439 //鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?
1889     if GikoSys.Setting.GengoSupport then begin
1890 genyakun 1.440 //鐃?鐃緒申鐃?
1891     //Test鐃緒申鐃緒申
1892     end;
1893 genyakun 1.439
1894 h677 1.423 FStartUp := true;
1895 yoffy 1.397 end;
1896 yoffy 1.239 end;
1897 yoffy 1.216
1898 hi_ 1.1 procedure TGikoForm.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
1899     begin
1900 yoffy 1.331 // if GikoForm.WindowState <> wsMinimized then
1901     // SaveCoolBarSettings;
1902 yoffy 1.236 if ( GikoSys.Setting.ShowDialogForEnd ) and
1903     (MessageDlg('鐃?鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?', mtConfirmation,[mbOk, mbCancel], 0) = mrCancel ) then begin
1904     CanClose := false;
1905     Exit;
1906     end else begin
1907     CanClose := True;
1908 yoffy 1.398 if GikoSys.Setting.TabAutoLoadSave then begin
1909     TabAutoSaveAction.Execute;
1910     end;
1911 yoffy 1.236 end;
1912 h677 1.241 //Application.HookMainWindow(Hook);
1913     Application.UnhookMainWindow(Hook);
1914     Application.Terminate;
1915     end;
1916    
1917     procedure TGikoForm.FormDestroy(Sender: TObject);
1918     var
1919 yoffy 1.376 i : Integer;
1920 h677 1.241 // CoolSet: TCoolSet;
1921 yoffy 1.376 wp : TWindowPlacement;
1922     tmpBool : Boolean;
1923 h677 1.241 begin
1924 h677 1.181 // Application.OnDeactivate := nil;
1925     // Self.OnDeactivate := nil;
1926 yoffy 1.236 try
1927 yoffy 1.410 ActiveListColumnSave;
1928 yoffy 1.236 except
1929     end;
1930     try
1931 h677 1.234 //鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申
1932     wp.length := sizeof(wp);
1933     GetWindowPlacement(Handle, @wp);
1934     GikoSys.Setting.WindowTop := wp.rcNormalPosition.Top;
1935     GikoSys.Setting.WindowLeft := wp.rcNormalPosition.Left;
1936     GikoSys.Setting.WindowHeight := wp.rcNormalPosition.Bottom - wp.rcNormalPosition.Top;
1937     GikoSys.Setting.WindowWidth := wp.rcNormalPosition.Right - wp.rcNormalPosition.Left;
1938     GikoSys.Setting.WindowMax := WindowState = wsMaximized;
1939    
1940     GikoSys.Setting.ListStyle := ListView.ViewStyle;
1941     GikoSys.Setting.CabinetVisible := CabinetVisibleAction.Checked;
1942     GikoSys.Setting.CabinetWidth := CabinetPanel.Width;
1943     GikoSys.Setting.ListHeight := FBrowserSizeHeight;
1944     GikoSys.Setting.ListWidth := FBrowserSizeWidth;
1945     if ArrangeAction.Checked then
1946     GikoSys.Setting.ListOrientation := gloVertical
1947     else
1948     GikoSys.Setting.ListOrientation := gloHorizontal;
1949     GikoSys.Setting.MessegeBarHeight := MessagePanel.Height;
1950 yoffy 1.236 except
1951 yoffy 1.2 end;
1952 yoffy 1.378
1953     try
1954     // 鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申
1955     if not GikoSys.Setting.ResRangeHold then
1956 yoffy 1.380 GikoSys.Setting.ResRange := FResRangeMenuSelect;
1957 yoffy 1.378 except
1958     end;
1959    
1960     // 鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申 CoolBar 鐃緒申鐃緒申
1961 yoffy 1.216 // 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1962 yoffy 1.263 {
1963     // 鐃緒申FormDestroy鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃?2004/04/09鐃?
1964 yoffy 1.216 // CoolBar 鐃緒申鐃緒申
1965 h677 1.262 if GikoForm.WindowState <> wsMinimized then
1966     SaveCoolBarSettings;
1967 yoffy 1.263 }
1968 yoffy 1.236 try
1969 h677 1.234 GikoSys.Setting.WriteWindowSettingFile;
1970     GikoSys.Setting.WriteNameMailSettingFile;
1971 yoffy 1.236 except
1972     end;
1973 yoffy 1.2
1974     //鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1975 hi_ 1.1 try
1976 yoffy 1.236 //FavoriteDM鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申
1977 yoffy 1.2 FavoriteDM.WriteFavorite;
1978 yoffy 1.236 FavoriteDM.Clear;
1979 hi_ 1.1 except
1980     end;
1981    
1982     try
1983     //鐃?鐃?鐃?鐃緒申鐃?鐃?
1984 h677 1.321 tmpBool := GikoSys.Setting.ShowDialogForAllTabClose;
1985     GikoSys.Setting.ShowDialogForAllTabClose := false;
1986     AllTabCloseAction.Execute;
1987     GikoSys.Setting.ShowDialogForAllTabClose := tmpBool;
1988 h677 1.299 except
1989     end;
1990 h677 1.321 try
1991     LockWindowUpdate(Self.Handle);
1992     for i := FBrowsers.Count - 1 downto 0 do begin
1993     TWebBrowser(FBrowsers[i]).Free;
1994     end;
1995     FBrowsers.Clear;
1996     FBrowsers.Capacity := 0;
1997     finally
1998     FBrowsers.Free;
1999 h677 1.303 end;
2000 h677 1.299 try
2001     if BrowserNullTab <> nil then begin
2002     BrowserNullTab.Browser := nil; {*BrowserNullTab鐃緒申Browser鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃?
2003     *鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申Free鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?
2004     *}
2005     BrowserNullTab.Free;
2006 hi_ 1.1 end;
2007     except
2008     end;
2009 h677 1.321 LockWindowUpdate(0);
2010 h677 1.224 try
2011 yoffy 1.236 TreeView.Items.BeginUpdate;
2012 yoffy 1.380 TreeView.Items.GetFirstNode.Free;
2013 yoffy 1.236 TreeView.Items.Clear;
2014     TreeView.Items.EndUpdate;
2015 h677 1.224 except
2016     end;
2017 h677 1.230
2018 hi_ 1.1 //鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申
2019     try
2020 yoffy 1.236 //AddressHistoryDM鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃?
2021 hi_ 1.1 AddressHistoryDM.WriteHistory(AddressComboBox.Items, GikoSys.Setting.AddressHistoryCount);
2022     except
2023     end;
2024    
2025 h677 1.234 //鐃?鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申
2026 hi_ 1.1 try
2027 h677 1.234 SaveHistory;
2028 hi_ 1.1 except
2029     end;
2030 yoffy 1.236 try
2031     try
2032     ClearHistory;
2033     except
2034     end;
2035     finally
2036     FHistoryList.Free;
2037     end;
2038 h677 1.221
2039 h677 1.182 //鐃緒申鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申&鐃?鐃緒申
2040     try
2041     RoundList.SaveRoundFile;
2042     except
2043     end;
2044 yoffy 1.236 try
2045 h677 1.234 try
2046 yoffy 1.236 RoundList.Clear;
2047 h677 1.234 except
2048     end;
2049 yoffy 1.236 finally
2050     RoundList.Free;
2051     end;
2052 h677 1.182
2053 yoffy 1.236 try
2054 h677 1.234 try
2055     FControlThread.Terminate;
2056 yoffy 1.236 FControlThread.WaitFor;
2057 h677 1.234 except
2058 h677 1.219 end;
2059 yoffy 1.236 finally
2060     FControlThread.Free;
2061     end;
2062 h677 1.230
2063 yoffy 1.155 // TBBS 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申 TCategory, TBoard, TThreadItem 鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申
2064     // TBoard, TThreadItem 鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申
2065     // BoardPluteIns 鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申
2066 yoffy 1.126 try
2067 h677 1.220 for i := Length( BBSs ) - 1 downto 0 do begin
2068 h677 1.153 if BBSs[ i ] <> nil then
2069     BBSs[ i ].Free;
2070     BBSs[ i ] := nil;
2071     end;
2072     except
2073     end;
2074 yoffy 1.155
2075 h677 1.153 try
2076 h677 1.220 for i := Length( BoardPlugIns ) - 1 downto 0 do begin
2077 yoffy 1.126 if BoardPlugIns[ i ] <> nil then
2078     BoardPlugIns[ i ].Free;
2079     BoardPlugIns[ i ] := nil;
2080     end;
2081     except
2082     end;
2083 yoffy 1.124
2084 h677 1.234 try
2085 yoffy 1.236 if FEvent <> nil then
2086     FEvent.Free;
2087 h677 1.181
2088 yoffy 1.2 //Hint鐃?鐃緒申
2089     if FHint <> nil then begin
2090     FHint.ReleaseHandle;
2091     FHint.Free;
2092     FHint := nil;
2093     end;
2094     //Preview鐃?鐃緒申
2095     if TPreviewBrowser <> nil then begin
2096     FPreviewBrowser.Free;
2097     FPreviewBrowser := nil;
2098     end;
2099     except
2100     end;
2101 h677 1.230
2102 hi_ 1.1 end;
2103    
2104     //鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃?
2105     procedure TGikoForm.CabinetPanelHide(Sender: TObject);
2106     begin
2107     CabinetVisibleAction.Execute;
2108     // CabinetPanelVisible(false);
2109     end;
2110    
2111 yoffy 1.289 // 鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃?鐃? BBS 鐃緒申鐃?鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?
2112     procedure TGikoForm.SetBBSMenu;
2113 yoffy 1.123 var
2114     i : Integer;
2115 yoffy 1.149 item : TBBSMenuItem;
2116 hi_ 1.1 begin
2117    
2118 yoffy 1.148 // 鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申
2119     for i := CabinetSelectPopupMenu.Items.Count - 1 downto 0 do begin
2120     try
2121     if CabinetSelectPopupMenu.Items[ i ] is TBBSMenuItem then begin
2122 yoffy 1.155 CabinetSelectPopupMenu.Items[ i ].Free;
2123     CabinetMenu.Items[ i ].Free;
2124 yoffy 1.289 BBSSelectPopupMenu.Items[ i ].Free;
2125 yoffy 1.148 end;
2126     except
2127     end;
2128     end;
2129 yoffy 1.289
2130     // 鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申
2131 yoffy 1.148 for i := Length( BBSs ) - 1 downto 0 do begin
2132     try
2133     item := TBBSMenuItem.Create( PopupMenu );
2134     item.Caption := BBSs[ i ].Title;
2135     item.Data := BBSs[ i ];
2136     item.OnClick := BBSMenuItemOnClick;
2137     CabinetSelectPopupMenu.Items.Insert( 0, item );
2138     item := TBBSMenuItem.Create( PopupMenu );
2139     item.Caption := BBSs[ i ].Title;
2140     item.Data := BBSs[ i ];
2141     item.OnClick := BBSMenuItemOnClick;
2142     CabinetMenu.Insert( 0, item );
2143 yoffy 1.289 item := TBBSMenuItem.Create( PopupMenu );
2144     item.Caption := BBSs[ i ].Title;
2145     item.Data := BBSs[ i ];
2146     item.OnClick := BBSMenuItemOnClick;
2147     BBSSelectPopupMenu.Items.Insert( 0, Item );
2148 yoffy 1.148 except
2149     end;
2150     end;
2151 yoffy 1.289
2152     end;
2153    
2154     procedure TGikoForm.ReloadBBS;
2155     var
2156     i : Integer;
2157 h677 1.321 tmpBool: Boolean;
2158 yoffy 1.289 begin
2159     //鐃?鐃?鐃?鐃緒申鐃?鐃?
2160 h677 1.321 tmpBool := GikoSys.Setting.ShowDialogForAllTabClose;
2161     GikoSys.Setting.ShowDialogForAllTabClose := false;
2162 h677 1.320 AllTabCloseAction.Execute;
2163 h677 1.321 GikoSys.Setting.ShowDialogForAllTabClose := tmpBool;
2164    
2165 h677 1.320 SetContent(BrowserNullTab);
2166 yoffy 1.289 //TreeView鐃?鐃緒申鐃?鐃?BBS2ch.Free鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申XP鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃?
2167     TreeView.Items.Clear;
2168    
2169     //BBS鐃?鐃緒申
2170     try
2171     for i := Length( BBSs ) - 1 downto 0 do begin
2172     if BBSs[ i ] <> nil then
2173     BBSs[ i ].Free;
2174     BBSs[ i ] := nil;
2175     end;
2176     except
2177     end;
2178    
2179     ActiveList := nil;
2180    
2181     FTreeType := gttNone;
2182    
2183     GikoSys.ListBoardFile; //鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申
2184    
2185     // BBS 鐃緒申鐃?鐃緒申鐃?鐃緒申鐃?鐃?
2186     SetBBSMenu;
2187    
2188 yoffy 1.123 ShowBBSTree( BBSs[ 0 ] );
2189 yoffy 1.143
2190     // 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
2191 yoffy 1.146 SaveHistory;
2192 yoffy 1.272 ClearHistory;
2193 yoffy 1.143 LoadHistory;
2194    
2195     //鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
2196 yoffy 1.287 FavoriteDM.WriteFavorite;
2197 yoffy 1.272 FavoriteDM.Clear;
2198 yoffy 1.143 FavoriteDM.ReadFavorite;
2199 yoffy 1.279
2200 yoffy 1.143 SetLinkBar;
2201    
2202 hi_ 1.1 end;
2203    
2204     //鐃?鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申
2205 yoffy 1.123 procedure TGikoForm.SetBoardTreeNode(
2206     inBBS : TBBS
2207     );
2208 hi_ 1.1 var
2209 yoffy 1.120 i, j, k: integer;
2210 hi_ 1.1 Root: TTreeNode;
2211     CategoryNode: TTreeNode;
2212     BoardNode: TTreeNode;
2213     Category: TCategory;
2214     Board: TBoard;
2215     begin
2216 yoffy 1.112 // 鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申
2217 yoffy 1.133 FActiveBBS := inBBS;
2218 hi_ 1.1 TreeView.Items.BeginUpdate;
2219     TreeView.Items.Clear;
2220     try
2221 q9_ 1.385 if not inBBS.IsBoardFileRead then
2222     GikoSys.ReadBoardFile( inBBS );
2223 yoffy 1.123 try
2224     if SplashWindow <> nil then
2225 yoffy 1.210 SplashWindow.ProgressBar.Max := inBBS.Count;
2226 yoffy 1.123 except
2227     end;
2228    
2229 q9_ 1.385 // 鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃?鐃?鐃?
2230     if ( GikoSys.Setting.BBSSortIndex <> 0 ) or ( GikoSys.Setting.BBSSortOrder <> true ) then begin
2231     Sort.SortOrder := true;
2232     Sort.SortIndex := 0;
2233     Sort.SortNoFlag := true;
2234     inBBS.Sort(CategorySortProc);
2235     end;
2236    
2237<