Develop and Download Open Source Software

Browse CVS Repository

Contents of /gikonavigoeson/gikonavi/Giko.pas

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


Revision 1.188 - (show annotations) (download) (as text)
Tue Jan 6 13:50:01 2004 UTC (20 years, 3 months ago) by h677
Branch: MAIN
Changes since 1.187: +22 -6 lines
File MIME type: text/x-pascal
タブメニューから巡回に追加するときにその板を開かなくてはならない問題は解消

1 unit Giko;
2
3 interface
4
5 uses
6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
7 OleCtrls, ComCtrls, ExtCtrls, Menus, StdCtrls, MMSystem, DateUtils, Math,
8 {$IF Defined(DELPRO) }
9 SHDocVw,
10 MSHTML,
11 {$ELSE}
12 SHDocVw_TLB,
13 MSHTML_TLB,
14 {$IFEND}
15 IdHTTP, ActiveX, ActnList, ImgList,
16 ToolWin, Buttons, {Clipbrd,} {HTTPApp,} YofUtils, IdComponent,
17 ShellAPI, UrlMon, Tabs, IdGlobal, StrUtils,
18 CommCtrl, IniFiles, Dialogs,
19 GikoSystem, GikoUtil, Setting, BoardGroup, ThreadControl, ItemDownload,
20 Editor, RoundData, RoundName, KeySetting, GikoPanel, Favorite, FavoriteAdd,
21 FavoriteArrange, AddressHistory, Preview, HTMLDocumentEvent, Kotehan,
22 HintWindow, GikoCoolBar, GikoListView, ToolBarSetting, ToolBarUtil,
23 IndividualAbon, Search, ExternalBoardManager, ExternalBoardPlugInMain,
24 StdActns, GikoXMLDoc;
25
26 type
27 TGikoTreeType = (gttNone, gtt2ch, gttHistory, gttFavorite);
28
29 TGikoForm = class(TForm)
30 StatusBar: TStatusBar;
31 MainPanel: TPanel;
32 ClientPanel: TPanel;
33 TreeSplitter: TSplitter;
34 CabinetPanel: TPanel;
35 TreeView: TTreeView;
36 ThreadMainPanel: TPanel;
37 ListSplitter: TSplitter;
38 ViewPanel: TPanel;
39 ListView: TGikoListView;
40 ThreadPanel: TPanel;
41 Browser: TWebBrowser;
42 MessagePanel: TPanel;
43 MessageBar: TPanel;
44 MessageHideButton: TSpeedButton;
45 MessageListView: TListView;
46 MessageSplitter: TSplitter;
47 Panel3: TPanel;
48 SpeedButton1: TSpeedButton;
49 ToolBar1: TToolBar;
50 CabinetSelectToolButton: TToolButton;
51 HistoryToolBar: TToolBar;
52 ToolButton15: TToolButton;
53 ToolButton18: TToolButton;
54 ItemIcon16: TImageList;
55 ItemIcon32: TImageList;
56 HotToobarImageList: TImageList;
57 ToobarImageList: TImageList;
58 ItemImageList: TImageList;
59 ActionList: TActionList;
60 LogDeleteAction: TAction;
61 KidokuAction: TAction;
62 StdToolBarVisibleAction: TAction;
63 SearchAction: TAction;
64 GikoNaviWebPageAction: TAction;
65 AboutAction: TAction;
66 ExitAction: TAction;
67 MsgBarVisibleAction: TAction;
68 StatusBarVisibleAction: TAction;
69 LargeIconAction: TAction;
70 SmallIconAction: TAction;
71 ListIconAction: TAction;
72 DetailIconAction: TAction;
73 CabinetBBSAction: TAction;
74 CabinetHistoryAction: TAction;
75 CabinetVisibleAction: TAction;
76 MidokuAction: TAction;
77 AllSelectAction: TAction;
78 UpFolderAction: TAction;
79 ListNumberVisibleAction: TAction;
80 AllItemAction: TAction;
81 LogItemAction: TAction;
82 NewItemAction: TAction;
83 SelectItemAction: TAction;
84 ShowThreadAction: TAction;
85 StopAction: TAction;
86 MainMenu: TMainMenu;
87 FileMenu: TMenuItem;
88 DeleteMenu: TMenuItem;
89 ExitMenu: TMenuItem;
90 KidokuMenu: TMenuItem;
91 MidokuMenu: TMenuItem;
92 AllSelectMenu: TMenuItem;
93 ViewMenu: TMenuItem;
94 StdToolBarMenu: TMenuItem;
95 CabinetMenu: TMenuItem;
96 H1: TMenuItem;
97 N4: TMenuItem;
98 CabinetVisibleMenu: TMenuItem;
99 MessageMenu: TMenuItem;
100 StatusBarMenu: TMenuItem;
101 MMSep03: TMenuItem;
102 LargeIconMenu: TMenuItem;
103 SmallIconMenu: TMenuItem;
104 ListMenu: TMenuItem;
105 DetailMenu: TMenuItem;
106 ToolMenu: TMenuItem;
107 Find1: TMenuItem;
108 RoundMenu: TMenuItem;
109 MMSep04: TMenuItem;
110 OptionMenu: TMenuItem;
111 HelpMenu: TMenuItem;
112 G1: TMenuItem;
113 N1: TMenuItem;
114 AboutMenu: TMenuItem;
115 IconStyle: TAction;
116 BrowserPopupMenu: TPopupMenu;
117 ShowThreadMenu: TMenuItem;
118 ShowBoardMenu: TMenuItem;
119 ShowBoardAction: TAction;
120 ListIconPopupMenu: TPopupMenu;
121 LargeIconPMenu: TMenuItem;
122 SmallIconPMenu: TMenuItem;
123 ListPMenu: TMenuItem;
124 DetailPMenu: TMenuItem;
125 CabinetCloseAction: TAction;
126 ClosePopupMenu: TPopupMenu;
127 CloseMenu: TMenuItem;
128 OptionAction: TAction;
129 U1: TMenuItem;
130 N3: TMenuItem;
131 B1: TMenuItem;
132 S1: TMenuItem;
133 N2: TMenuItem;
134 A1: TMenuItem;
135 L1: TMenuItem;
136 N5: TMenuItem;
137 S2: TMenuItem;
138 RoundAction: TAction;
139 ListPopupMenu: TPopupMenu;
140 ListRoundPMenu: TMenuItem;
141 ListReservPMenu: TMenuItem;
142 LPMSep01: TMenuItem;
143 ItemRoundPMenu: TMenuItem;
144 LPMSep02: TMenuItem;
145 KidokuPMenu: TMenuItem;
146 MidokuPMenu: TMenuItem;
147 AllSelectPMenu: TMenuItem;
148 UrlCopyPMenu: TMenuItem;
149 LPMSep05: TMenuItem;
150 DeletePMenu: TMenuItem;
151 LPMSep06: TMenuItem;
152 ViewPMenu: TMenuItem;
153 LargeIconLPMenu: TMenuItem;
154 SmallIconLPMenu: TMenuItem;
155 ListLPMenu: TMenuItem;
156 DetailLPMenu: TMenuItem;
157 T1: TMenuItem;
158 B2: TMenuItem;
159 N8: TMenuItem;
160 URLCopyAction: TAction;
161 URLC1: TMenuItem;
162 N9: TMenuItem;
163 N10: TMenuItem;
164 MsgBarCloseAction: TAction;
165 ScrollTopAction: TAction;
166 ScrollLastAction: TAction;
167 ScrollNewAction: TAction;
168 ScrollKokoAction: TAction;
169 EditorAction: TAction;
170 IEAction: TAction;
171 ItemReloadAction: TAction;
172 BrowserMaxAction: TAction;
173 G2: TMenuItem;
174 N11: TMenuItem;
175 T3: TMenuItem;
176 L2: TMenuItem;
177 N12: TMenuItem;
178 K1: TMenuItem;
179 N13: TMenuItem;
180 N14: TMenuItem;
181 R1: TMenuItem;
182 A2: TMenuItem;
183 N15: TMenuItem;
184 SelectListReloadAction: TAction;
185 SelectThreadReloadAction: TAction;
186 SelectTimer: TTimer;
187 KokoPopupMenu: TPopupMenu;
188 KokomadePMenu: TMenuItem;
189 AllPMenu: TMenuItem;
190 MenuItem1: TMenuItem;
191 MenuItem2: TMenuItem;
192 BrowserTabCloseAction: TAction;
193 BrowserTabPopupMenu: TPopupMenu;
194 Close1: TMenuItem;
195 KokomadeAction: TAction;
196 ZenbuAction: TAction;
197 KokoResAction: TAction;
198 SelectItemURLCopyAction: TAction;
199 SelectReservAction: TAction;
200 NotSelectTabCloseAction: TAction;
201 A3: TMenuItem;
202 N16: TMenuItem;
203 A4: TMenuItem;
204 TreePopupMenu: TPopupMenu;
205 TreeSelectThreadPupupMenu: TMenuItem;
206 TreeSelectBoardPupupMenu: TMenuItem;
207 TPMSep01: TMenuItem;
208 TreeSelectURLPupupMenu: TMenuItem;
209 TreeSelectBoradReload: TAction;
210 TreeSelectThreadReload: TAction;
211 TreeSelectURLCopy: TAction;
212 ListToolBarVisibleAction: TAction;
213 BrowserToolBarVisibleAction: TAction;
214 T2: TMenuItem;
215 L3: TMenuItem;
216 B3: TMenuItem;
217 BrowserBottomPanel: TGikoPanel;
218 CabinetSelectPopupMenu: TPopupMenu;
219 H2: TMenuItem;
220 ItemReservPMenu: TMenuItem;
221 RoundNamePopupMenu: TPopupMenu;
222 SelectNewRoundName: TAction;
223 SelectDeleteRound: TAction;
224 NewBoardAction: TAction;
225 N7: TMenuItem;
226 B4: TMenuItem;
227 LoginAction: TAction;
228 L4: TMenuItem;
229 KeySettingAction: TAction;
230 K2: TMenuItem;
231 AllTabCloseAction: TAction;
232 A5: TMenuItem;
233 A6: TMenuItem;
234 C1: TMenuItem;
235 V1: TMenuItem;
236 N19: TMenuItem;
237 D1: TMenuItem;
238 D2: TMenuItem;
239 MessageImageList: TImageList;
240 ProgressBar: TProgressBar;
241 ArrangeAction: TAction;
242 URL1: TMenuItem;
243 NameURLCopyAction: TAction;
244 SelectItemNameURLCopyAction: TAction;
245 NameUrlCopyPMenu: TMenuItem;
246 URLC2: TMenuItem;
247 URLN1: TMenuItem;
248 N21: TMenuItem;
249 URLC3: TMenuItem;
250 URLN2: TMenuItem;
251 N22: TMenuItem;
252 N23: TMenuItem;
253 ListCoolBar: TGikoCoolBar;
254 ListToolBar: TToolBar;
255 ViewNoButton: TToolButton;
256 IconToolButton: TToolButton;
257 UpFolderButton: TToolButton;
258 Sepa01ToolButton: TToolButton;
259 AllItemToolButton: TToolButton;
260 LogItemToolButton: TToolButton;
261 NewItemToolButton: TToolButton;
262 ListDownloadToolButton: TToolButton;
263 ListThreadDownloadToolButton: TToolButton;
264 ToolButton2: TToolButton;
265 ToolButton1: TToolButton;
266 BrowserCoolBar: TGikoCoolBar;
267 BrowserToolBar: TToolBar;
268 BrowserSizeButton: TToolButton;
269 ToolButton3: TToolButton;
270 TopButton: TToolButton;
271 LastBotton: TToolButton;
272 NewButton: TToolButton;
273 KokoButton: TToolButton;
274 ToolButton9: TToolButton;
275 EditorButton: TToolButton;
276 ToolButton11: TToolButton;
277 IEButton: TToolButton;
278 ToolButton5: TToolButton;
279 ItemReloadButton: TToolButton;
280 ListNameToolBar: TToolBar;
281 ListNameLabel: TLabel;
282 FolderImage: TImage;
283 BrowserNameToolBar: TToolBar;
284 ItemBoardImage: TImage;
285 BrowserBoardNameLabel: TLabel;
286 ItemImage: TImage;
287 BrowserNameLabel: TLabel;
288 ActiveLogDeleteAction: TAction;
289 D3: TMenuItem;
290 N25: TMenuItem;
291 N26: TMenuItem;
292 ListNameBarVisibleAction: TAction;
293 D4: TMenuItem;
294 BrowserNameBarVisibleAction: TAction;
295 S3: TMenuItem;
296 R2: TMenuItem;
297 TreeSelectNameURLCopy: TAction;
298 TreeSelectNameURLPupupMenu: TMenuItem;
299 N27: TMenuItem;
300 H3: TMenuItem;
301 PaneInitAction: TAction;
302 I1: TMenuItem;
303 BrowserTabToolBar: TToolBar;
304 BrowserTab: TTabControl;
305 ToolButton7: TToolButton;
306 BrowserMinAction: TAction;
307 About1: TMenuItem;
308 N28: TMenuItem;
309 SelectTextClearAction: TAction;
310 MailTextClearAction: TAction;
311 NameTextClearAction: TAction;
312 S4: TMenuItem;
313 N29: TMenuItem;
314 N30: TMenuItem;
315 LeftmostTabSelectAction: TAction;
316 LeftTabSelectAction: TAction;
317 RightTabSelectAction: TAction;
318 RightmostTabSelectAction: TAction;
319 N31: TMenuItem;
320 L5: TMenuItem;
321 L6: TMenuItem;
322 A7: TMenuItem;
323 R3: TMenuItem;
324 FavoriteMenu: TMenuItem;
325 FavoriteAddAction: TAction;
326 N32: TMenuItem;
327 BoardFavoriteAddMenu: TMenuItem;
328 BoardFavoriteAddAction: TAction;
329 ThreadFavoriteAddAction: TAction;
330 ThreadFavoriteAddMenu: TMenuItem;
331 TreeSelectFavoriteAddAction: TAction;
332 N33: TMenuItem;
333 TreeSelectFavoriteAddPupupMenu: TMenuItem;
334 FavoriteArrangeAction: TAction;
335 FavoriteTreeView: TTreeView;
336 StateIconImageList: TImageList;
337 TopPanel: TPanel;
338 TopRightPanel: TPanel;
339 AnimePanel: TPanel;
340 Animate: TAnimate;
341 TopCoolPanel: TPanel;
342 MainCoolBar: TGikoCoolBar;
343 MenuToolBar: TToolBar;
344 StdToolBar: TToolBar;
345 RoundToolButton: TToolButton;
346 ToolButton6: TToolButton;
347 ToolButton4: TToolButton;
348 ToolButton13: TToolButton;
349 AbortToolButton: TToolButton;
350 LoginToolButton: TToolButton;
351 AddressToolBar: TToolBar;
352 AddressComboBox: TComboBox;
353 MoveToToolButton: TToolButton;
354 MoveToAction: TAction;
355 AddressImageList: TImageList;
356 AddressBarVisibleAction: TAction;
357 AddressToolBarMenu: TMenuItem;
358 T4: TMenuItem;
359 BrowserTabVisibleAction: TAction;
360 Show1: TMenuItem;
361 N34: TMenuItem;
362 BrowserTabTopAction: TAction;
363 BrowserTabBottomAction: TAction;
364 T5: TMenuItem;
365 B5: TMenuItem;
366 N35: TMenuItem;
367 BrowserTabTabStyleAction: TAction;
368 BrowserTabButtonStyleAction: TAction;
369 BrowserTabFlatStyleAction: TAction;
370 A8: TMenuItem;
371 U2: TMenuItem;
372 F1: TMenuItem;
373 PreviewTimer: TTimer;
374 MonazillaWebPageAction: TAction;
375 MonazillaWebPageAction1: TMenuItem;
376 GikoHelpAction: TAction;
377 N36: TMenuItem;
378 H4: TMenuItem;
379 KotehanAction: TAction;
380 K3: TMenuItem;
381 LinkBarVisibleAction: TAction;
382 L7: TMenuItem;
383 N37: TMenuItem;
384 A9: TMenuItem;
385 ChevronPopupMenu: TPopupMenu;
386 BBS2chWebPageAction: TAction;
387 N2N1: TMenuItem;
388 N38: TMenuItem;
389 GikoFolderOpenAction: TAction;
390 F2: TMenuItem;
391 LinkToolBar: TToolBar;
392 a10: TMenuItem;
393 ToolButton8: TToolButton;
394 ToolButton10: TToolButton;
395 ThreadEditorAction: TAction;
396 N39: TMenuItem;
397 T6: TMenuItem;
398 N40: TMenuItem;
399 LinkBarPopupMenu: TPopupMenu;
400 ToolBarSettingAction: TAction;
401 T7: TMenuItem;
402 ToolButton12: TToolButton;
403 ToolButton14: TToolButton;
404 ThreadPopupMenu: TPopupMenu;
405 MenuItem4: TMenuItem;
406 MenuItem5: TMenuItem;
407 MenuItem6: TMenuItem;
408 T8: TMenuItem;
409 NameCopyAction: TAction;
410 BoardIEAction: TAction;
411 URLN3: TMenuItem;
412 SelectItemNameCopyAction: TAction;
413 SelectItemNameCopyAction1: TMenuItem;
414 B6: TMenuItem;
415 T9: TMenuItem;
416 C2: TMenuItem;
417 SelectComboBox: TComboBox;
418 MainCoolBarPopupMenu: TPopupMenu;
419 StdToolBarVisiblePMenu: TMenuItem;
420 AddressToolBarVisiblePMenu: TMenuItem;
421 LinkToolBarVisiblePMenu: TMenuItem;
422 NG1: TMenuItem;
423 NG2: TMenuItem;
424 N43: TMenuItem;
425 N44: TMenuItem;
426 L9: TMenuItem;
427 I3: TMenuItem;
428 N45: TMenuItem;
429 B9: TMenuItem;
430 R5: TMenuItem;
431 T12: TMenuItem;
432 Show3: TMenuItem;
433 N46: TMenuItem;
434 T13: TMenuItem;
435 B10: TMenuItem;
436 N47: TMenuItem;
437 A12: TMenuItem;
438 U4: TMenuItem;
439 F4: TMenuItem;
440 N48: TMenuItem;
441 T14: TMenuItem;
442 SelectItemToolButton: TToolButton;
443 SelectResToolButton: TToolButton;
444 SelectResAction: TAction;
445 ToolButton16: TToolButton;
446 AllResAction: TAction;
447 AllResToolButton: TToolButton;
448 N50: TMenuItem;
449 A11: TMenuItem;
450 S5: TMenuItem;
451 Reload: TMenuItem;
452 GoBack: TMenuItem;
453 GoFoward: TMenuItem;
454 EditAction: TAction;
455 ReloadAction: TAction;
456 GoFowardAction: TAction;
457 GoBackAction: TAction;
458 SelectComboBoxSplitter: TImage;
459 IndividualAbon1: TMenuItem;
460 N41: TMenuItem;
461 IndividualAbon2: TMenuItem;
462 N42: TMenuItem;
463 CancellIndividualAbon: TAction;
464 AntiIndividualAbon: TMenuItem;
465 N49: TMenuItem;
466 N51: TMenuItem;
467 N52: TMenuItem;
468 N53: TMenuItem;
469 SearchBoardName: TMenuItem;
470 N55: TMenuItem;
471 TreeSelectSearchBoardName: TAction;
472 CabinetFavoriteAction: TAction;
473 N54: TMenuItem;
474 A13: TMenuItem;
475 FavoriteTreePopupMenu: TPopupMenu;
476 FavoriteTreeViewRenameAction: TAction;
477 FavoriteTreeRenamePopupMenu: TMenuItem;
478 FavoriteTreeViewNewFolderAction: TAction;
479 FavoriteTreeNewFolderPopupMenu: TMenuItem;
480 N56: TMenuItem;
481 FavoriteTreeViewDeleteAction: TAction;
482 FavoriteTreeDeletePopupMenu: TMenuItem;
483 FavoriteToolBar: TToolBar;
484 ToolButton17: TToolButton;
485 ToolButton19: TToolButton;
486 FavoriteTreeViewBrowseFolderAction: TAction;
487 FavoriteTreeBrowseFolderPopupMenu: TMenuItem;
488 N57: TMenuItem;
489 FavoriteTreeReloadPopupMenu: TMenuItem;
490 N58: TMenuItem;
491 FavoriteTreeURLCopyPopupMenu: TMenuItem;
492 FavoriteTreeNameCopyPopupMenu: TMenuItem;
493 FavoriteTreeLogDeletePopupMenu: TMenuItem;
494 N59: TMenuItem;
495 FavoriteTreeNameURLCopyPopupMenu: TMenuItem;
496 FavoriteTreeViewReloadAction: TAction;
497 FavoriteTreeViewURLCopyAction: TAction;
498 FavoriteTreeViewNameCopyAction: TAction;
499 FavoriteTreeViewNameURLCopyAction: TAction;
500 FavoriteTreeViewLogDeleteAction: TAction;
501 OnlyAHundredRes: TAction;
502 ToolButton20: TToolButton;
503 AHundredResButton: TToolButton;
504 N60: TMenuItem;
505 ExportFavoriteFileAction1: TMenuItem;
506 ExportFavoriteFile: TFileSaveAs;
507 ToolButton21: TToolButton;
508 ToolButton22: TToolButton;
509 ToolButton23: TToolButton;
510 ToolButton24: TToolButton;
511 N6: TMenuItem;
512 N17: TMenuItem;
513 FavoriteTreeViewBrowseBoardAction: TAction;
514 FavoriteTreeViewBrowseThreadAction: TAction;
515 UpBoardAction: TAction;
516 N18: TMenuItem;
517 N20: TMenuItem;
518 N24: TMenuItem;
519 N62: TMenuItem;
520 N61: TMenuItem;
521 N63: TMenuItem;
522 KoreCopy: TAction;
523 N64: TMenuItem;
524 dummy1: TMenuItem;
525 procedure FormCreate(Sender: TObject);
526 procedure FormDestroy(Sender: TObject);
527 procedure CabinetPanelHide(Sender: TObject);
528 procedure FormClose(Sender: TObject; var Action: TCloseAction);
529 procedure TreeViewChange(Sender: TObject; Node: TTreeNode);
530 procedure ListViewData(Sender: TObject; Item: TListItem);
531 procedure ListViewDataFind(Sender: TObject; Find: TItemFind;
532 const FindString: String; const FindPosition: TPoint;
533 FindData: Pointer; StartIndex: Integer; Direction: TSearchDirection;
534 Wrap: Boolean; var Index: Integer);
535 procedure ListViewDataHint(Sender: TObject; StartIndex,
536 EndIndex: Integer);
537 procedure ListViewDataStateChange(Sender: TObject; StartIndex,
538 EndIndex: Integer; OldState, NewState: TItemStates);
539 procedure BrowserStatusTextChange(Sender: TObject;
540 const Text: WideString);
541 procedure BrowserTitleChange(Sender: TObject; const Text: WideString);
542 procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
543 procedure TreeViewChanging(Sender: TObject; Node: TTreeNode;
544 var AllowChange: Boolean);
545 procedure ListViewKeyDown(Sender: TObject; var Key: Word;
546 Shift: TShiftState);
547 procedure ListViewColumnClick(Sender: TObject; Column: TListColumn);
548 procedure MenuToolBarCustomDrawButton(Sender: TToolBar;
549 Button: TToolButton; State: TCustomDrawState;
550 var DefaultDraw: Boolean);
551 procedure BrowserBeforeNavigate2(Sender: TObject;
552 const pDisp: IDispatch; var URL, Flags, TargetFrameName, PostData,
553 Headers: OleVariant; var Cancel: WordBool);
554 procedure ListViewAdvancedCustomDrawItem(Sender: TCustomListView;
555 Item: TListItem; State: TCustomDrawState; Stage: TCustomDrawStage;
556 var DefaultDraw: Boolean);
557 procedure TreeViewCustomDraw(Sender: TCustomTreeView;
558 const ARect: TRect; var DefaultDraw: Boolean);
559 procedure TreeViewCustomDrawItem(Sender: TCustomTreeView;
560 Node: TTreeNode; State: TCustomDrawState; var DefaultDraw: Boolean);
561 procedure TreeViewExpanded(Sender: TObject; Node: TTreeNode);
562 procedure TreeViewDblClick(Sender: TObject);
563 procedure FavoriteTreeViewClick(Sender: TObject);
564 procedure ListViewCustomDraw(Sender: TCustomListView;
565 const ARect: TRect; var DefaultDraw: Boolean);
566 procedure ListViewMouseDown(Sender: TObject; Button: TMouseButton;
567 Shift: TShiftState; X, Y: Integer);
568 procedure TreeViewCollapsed(Sender: TObject; Node: TTreeNode);
569 procedure MessageListViewResize(Sender: TObject);
570 procedure ExitActionExecute(Sender: TObject);
571 procedure AllSelectActionExecute(Sender: TObject);
572 procedure StdToolBarVisibleActionExecute(Sender: TObject);
573 procedure MsgBarVisibleActionExecute(Sender: TObject);
574 procedure StatusBarVisibleActionExecute(Sender: TObject);
575 procedure LargeIconActionExecute(Sender: TObject);
576 procedure SmallIconActionExecute(Sender: TObject);
577 procedure ListIconActionExecute(Sender: TObject);
578 procedure DetailIconActionExecute(Sender: TObject);
579 procedure SearchActionExecute(Sender: TObject);
580 procedure OptionActionExecute(Sender: TObject);
581 procedure GikoNaviWebPageActionExecute(Sender: TObject);
582 procedure AboutActionExecute(Sender: TObject);
583 procedure CabinetHistoryActionExecute(Sender: TObject);
584 procedure CabinetVisible( isVisible : Boolean );
585 procedure CabinetVisibleActionExecute(Sender: TObject);
586 procedure AllItemActionExecute(Sender: TObject);
587 procedure LogItemActionExecute(Sender: TObject);
588 procedure NewItemActionExecute(Sender: TObject);
589 procedure SelectItemActionExecute(Sender: TObject);
590 procedure ListNumberVisibleActionExecute(Sender: TObject);
591 procedure UpFolderActionExecute(Sender: TObject);
592 procedure IconStyleExecute(Sender: TObject);
593 procedure RoundActionExecute(Sender: TObject);
594 procedure StopActionExecute(Sender: TObject);
595 procedure MsgBarCloseActionExecute(Sender: TObject);
596 procedure BrowserMaxActionExecute(Sender: TObject);
597 procedure ScrollTopActionExecute(Sender: TObject);
598 procedure ScrollLastActionExecute(Sender: TObject);
599 procedure ScrollNewActionExecute(Sender: TObject);
600 procedure ScrollKokoActionExecute(Sender: TObject);
601 procedure EditorActionExecute(Sender: TObject);
602 procedure IEActionExecute(Sender: TObject);
603 procedure ShowThreadActionExecute(Sender: TObject);
604 procedure ShowBoardActionExecute(Sender: TObject);
605 procedure URLCopyActionExecute(Sender: TObject);
606 procedure ItemReloadActionExecute(Sender: TObject);
607 procedure SelectListReloadActionExecute(Sender: TObject);
608 procedure SelectThreadReloadActionExecute(Sender: TObject);
609 procedure SelectListReloadActionUpdate(Sender: TObject);
610 procedure AllItemActionUpdate(Sender: TObject);
611 procedure LogItemActionUpdate(Sender: TObject);
612 procedure NewItemActionUpdate(Sender: TObject);
613 procedure SelectItemActionUpdate(Sender: TObject);
614 procedure UpFolderActionUpdate(Sender: TObject);
615 procedure FormResize(Sender: TObject);
616 procedure ScrollTopActionUpdate(Sender: TObject);
617 procedure ScrollLastActionUpdate(Sender: TObject);
618 procedure ScrollNewActionUpdate(Sender: TObject);
619 procedure ScrollKokoActionUpdate(Sender: TObject);
620 procedure EditorActionUpdate(Sender: TObject);
621 procedure IEActionUpdate(Sender: TObject);
622 procedure ShowThreadActionUpdate(Sender: TObject);
623 procedure ShowBoardActionUpdate(Sender: TObject);
624 procedure SelectThreadReloadActionUpdate(Sender: TObject);
625 procedure ListViewSelectItem(Sender: TObject; Item: TListItem;
626 Selected: Boolean);
627 procedure SelectTimerTimer(Sender: TObject);
628 procedure ItemReloadActionUpdate(Sender: TObject);
629 procedure ListViewDblClick(Sender: TObject);
630 procedure LogDeleteActionExecute(Sender: TObject);
631 procedure KokomadeActionExecute(Sender: TObject);
632 procedure ZenbuActionExecute(Sender: TObject);
633 procedure KokoResActionExecute(Sender: TObject);
634 procedure ListPopupMenuPopup(Sender: TObject);
635 procedure SelectItemURLCopyActionExecute(Sender: TObject);
636 procedure SelectItemURLCopyActionUpdate(Sender: TObject);
637 procedure AllSelectActionUpdate(Sender: TObject);
638 procedure LogDeleteActionUpdate(Sender: TObject);
639 procedure BrowserTabCloseActionExecute(Sender: TObject);
640 procedure NotSelectTabCloseActionExecute(Sender: TObject);
641 procedure TreeSelectBoradReloadExecute(Sender: TObject);
642 procedure TreeSelectThreadReloadExecute(Sender: TObject);
643 procedure TreeSelectURLCopyExecute(Sender: TObject);
644 procedure TreePopupMenuPopup(Sender: TObject);
645 procedure ListToolBarVisibleActionExecute(Sender: TObject);
646 procedure BrowserToolBarVisibleActionExecute(Sender: TObject);
647 procedure BrowserNewWindow2(Sender: TObject; var ppDisp: IDispatch;
648 var Cancel: WordBool);
649 procedure ListSplitterCanResize(Sender: TObject; var NewSize: Integer;
650 var Accept: Boolean);
651 procedure ListSplitterMoved(Sender: TObject);
652 procedure BrowserTabChange(Sender: TObject);
653 procedure BrowserTabMouseDown(Sender: TObject; Button: TMouseButton;
654 Shift: TShiftState; X, Y: Integer);
655 procedure BrowserTabDragOver(Sender, Source: TObject; X, Y: Integer;
656 State: TDragState; var Accept: Boolean);
657 procedure BrowserTabDragDrop(Sender, Source: TObject; X, Y: Integer);
658 procedure BrowserTabMouseMove(Sender: TObject; Shift: TShiftState; X,
659 Y: Integer);
660 procedure BrowserDocumentComplete(Sender: TObject;
661 const pDisp: IDispatch; var URL: OleVariant);
662 procedure SelectReservActionUpdate(Sender: TObject);
663 procedure RoundNamePopupMenuPopup(Sender: TObject);
664 procedure SelectNewRoundNameExecute(Sender: TObject);
665 procedure SelectDeleteRoundExecute(Sender: TObject);
666 procedure SelectReservActionExecute(Sender: TObject);
667 procedure NewBoardActionExecute(Sender: TObject);
668 procedure LoginActionExecute(Sender: TObject);
669 procedure KeySettingActionExecute(Sender: TObject);
670 procedure AllTabCloseActionExecute(Sender: TObject);
671 procedure ArrangeActionExecute(Sender: TObject);
672 procedure NameURLCopyActionExecute(Sender: TObject);
673 procedure SelectItemNameURLCopyActionExecute(Sender: TObject);
674 procedure URLCopyActionUpdate(Sender: TObject);
675 procedure NameURLCopyActionUpdate(Sender: TObject);
676 procedure BrowserTabCloseActionUpdate(Sender: TObject);
677 procedure NotSelectTabCloseActionUpdate(Sender: TObject);
678 procedure AllTabCloseActionUpdate(Sender: TObject);
679 procedure SelectItemNameURLCopyActionUpdate(Sender: TObject);
680 procedure ActiveLogDeleteActionExecute(Sender: TObject);
681 procedure ActiveLogDeleteActionUpdate(Sender: TObject);
682 procedure ListNameBarVisibleActionExecute(Sender: TObject);
683 procedure BrowserNameBarVisibleActionExecute(Sender: TObject);
684 procedure TreeSelectNameURLCopyExecute(Sender: TObject);
685 procedure PaneInitActionExecute(Sender: TObject);
686 procedure FormShow(Sender: TObject);
687 procedure BrowserTabToolBarResize(Sender: TObject);
688 procedure BrowserMinActionExecute(Sender: TObject);
689 procedure SelectTextClearActionExecute(Sender: TObject);
690 procedure NameTextClearActionExecute(Sender: TObject);
691 procedure MailTextClearActionExecute(Sender: TObject);
692 procedure LeftmostTabSelectActionExecute(Sender: TObject);
693 procedure LeftTabSelectActionExecute(Sender: TObject);
694 procedure RightTabSelectActionExecute(Sender: TObject);
695 procedure RightmostTabSelectActionExecute(Sender: TObject);
696 procedure LeftmostTabSelectActionUpdate(Sender: TObject);
697 procedure LeftTabSelectActionUpdate(Sender: TObject);
698 procedure RightTabSelectActionUpdate(Sender: TObject);
699 procedure RightmostTabSelectActionUpdate(Sender: TObject);
700 procedure FavoriteMenuClick(Sender: TObject);
701 procedure FavoriteAddActionExecute(Sender: TObject);
702 procedure FavoriteAddActionUpdate(Sender: TObject);
703 procedure BoardFavoriteAddActionExecute(Sender: TObject);
704 procedure BoardFavoriteAddActionUpdate(Sender: TObject);
705 procedure ThreadFavoriteAddActionExecute(Sender: TObject);
706 procedure ThreadFavoriteAddActionUpdate(Sender: TObject);
707 procedure TreeSelectFavoriteAddActionExecute(Sender: TObject);
708 procedure FavoriteArrangeActionExecute(Sender: TObject);
709 procedure MainCoolBarResize(Sender: TObject);
710 procedure MoveToActionExecute(Sender: TObject);
711 procedure AddressToolBarResize(Sender: TObject);
712 procedure AddressComboBoxKeyDown(Sender: TObject; var Key: Word;
713 Shift: TShiftState);
714 procedure AddressBarVisibleActionExecute(Sender: TObject);
715 procedure BrowserEnter(Sender: TObject);
716 procedure FormShortCut(var Msg: TWMKey; var Handled: Boolean);
717 procedure BrowserTabVisibleActionExecute(Sender: TObject);
718 procedure BrowserTabTopActionExecute(Sender: TObject);
719 procedure BrowserTabBottomActionExecute(Sender: TObject);
720 procedure BrowserTabTabStyleActionExecute(Sender: TObject);
721 procedure BrowserTabButtonStyleActionExecute(Sender: TObject);
722 procedure BrowserTabFlatStyleActionExecute(Sender: TObject);
723 procedure PreviewTimerTimer(Sender: TObject);
724 procedure MessageHideButtonClick(Sender: TObject);
725 procedure MonazillaWebPageActionExecute(Sender: TObject);
726 procedure GikoHelpActionExecute(Sender: TObject);
727 procedure ToolButton18Click(Sender: TObject);
728 procedure KotehanActionExecute(Sender: TObject);
729 procedure LinkBarVisibleActionExecute(Sender: TObject);
730 procedure BBS2chWebPageActionExecute(Sender: TObject);
731 procedure GikoFolderOpenActionExecute(Sender: TObject);
732 procedure MainCoolBarBandInfo(Sender: TObject;
733 var BandInfo: PReBarBandInfoA);
734 procedure MainCoolBarChevronClick(Sender: TObject;
735 RebarChevron: PNMRebarChevron);
736 procedure ListCoolBarBandInfo(Sender: TObject;
737 var BandInfo: PReBarBandInfoA);
738 procedure ListCoolBarChevronClick(Sender: TObject;
739 RebarChevron: PNMRebarChevron);
740 procedure BrowserCoolBarBandInfo(Sender: TObject;
741 var BandInfo: PReBarBandInfoA);
742 procedure BrowserCoolBarChevronClick(Sender: TObject;
743 RebarChevron: PNMRebarChevron);
744 procedure ListViewColumnInfo(Sender: TObject; var Column: PLVColumnA);
745 procedure ThreadEditorActionExecute(Sender: TObject);
746 procedure ThreadEditorActionUpdate(Sender: TObject);
747 procedure ToolBarSettingActionExecute(Sender: TObject);
748 procedure NameCopyActionExecute(Sender: TObject);
749 procedure BoardIEActionExecute(Sender: TObject);
750 procedure SelectItemNameCopyActionExecute(Sender: TObject);
751 procedure SelectItemNameCopyActionUpdate(Sender: TObject);
752 procedure BoardIEActionUpdate(Sender: TObject);
753 procedure FormMouseWheel(Sender: TObject; Shift: TShiftState;
754 WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean);
755 procedure NameCopyActionUpdate(Sender: TObject);
756 procedure SelectComboBoxChange(Sender: TObject);
757 procedure SelectComboBoxKeyDown(Sender: TObject; var Key: Word;
758 Shift: TShiftState);
759 procedure SelectComboBoxExit(Sender: TObject);
760 procedure NG1Click(Sender: TObject);
761 procedure SelectResActionExecute(Sender: TObject);
762 procedure SelectResActionUpdate(Sender: TObject);
763 procedure FormKeyUp(Sender: TObject; var Key: Word;
764 Shift: TShiftState);
765 procedure AllResActionExecute(Sender: TObject);
766 procedure AllResActionUpdate(Sender: TObject);
767 procedure ReloadClick(Sender: TObject);
768 procedure GoBackClick(Sender: TObject);
769 procedure GoFowardClick(Sender: TObject);
770 procedure SelectComboBoxSplitterMouseMove(Sender: TObject;
771 Shift: TShiftState; X, Y: Integer);
772 procedure SelectComboBoxSplitterMouseDown(Sender: TObject;
773 Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
774 procedure SelectComboBoxSplitterMouseUp(Sender: TObject;
775 Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
776 procedure StatusBarResize(Sender: TObject);
777 procedure IndividualAbon1Click(Sender: TObject);
778 procedure IndividualAbon2Click(Sender: TObject);
779 procedure N42Click(Sender: TObject);
780 procedure SelectComboBoxEnter(Sender: TObject);
781 procedure AntiIndividualAbonClick(Sender: TObject);
782 procedure N51Click(Sender: TObject);
783 procedure TreeSelectSearchBoardNameExecute(Sender: TObject);
784 procedure CabinetFavoriteActionExecute(Sender: TObject);
785 procedure FavoriteTreeViewDragDrop(Sender, Source: TObject; X,
786 Y: Integer);
787 procedure FavoriteTreeViewDragOver(Sender, Source: TObject; X, Y: Integer; State: TDragState; var Accept: Boolean);
788 procedure FavoriteTreeViewEdited(Sender: TObject; Node: TTreeNode;
789 var S: String);
790 procedure FavoriteTreeViewKeyDown(Sender: TObject; var Key: Word;
791 Shift: TShiftState);
792 procedure FavoriteTreePopupMenuPopup(Sender: TObject);
793 procedure FavoriteTreeViewDeleteActionExecute(Sender: TObject);
794 procedure FavoriteTreeViewRenameActionExecute(Sender: TObject);
795 procedure FavoriteTreeViewNewFolderActionExecute(Sender: TObject);
796 procedure ToolButton19Click(Sender: TObject);
797 procedure FavoriteTreeViewBrowseFolderActionExecute(Sender: TObject);
798 procedure FavoriteTreeViewChange(Sender: TObject; Node: TTreeNode);
799 procedure FavoriteTreeViewDblClick(Sender: TObject);
800 procedure FavoriteTreeViewLogDeleteActionExecute(Sender: TObject);
801 procedure FavoriteTreeViewReloadActionExecute(Sender: TObject);
802 procedure FavoriteTreeViewURLCopyActionExecute(Sender: TObject);
803 procedure FavoriteTreeViewNameCopyActionExecute(Sender: TObject);
804 procedure FavoriteTreeViewNameURLCopyActionExecute(Sender: TObject);
805 procedure LinkToolBarDragDrop(Sender, Source: TObject; X, Y: Integer);
806 procedure BrowserTabMouseUp(Sender: TObject; Button: TMouseButton;
807 Shift: TShiftState; X, Y: Integer);
808 procedure LinkToolBarDragOver(Sender, Source: TObject; X, Y: Integer;
809 State: TDragState; var Accept: Boolean);
810 procedure OnlyAHundredResExecute(Sender: TObject);
811 procedure FavoriteTreeViewEndDrag(Sender, Target: TObject; X,
812 Y: Integer);
813 procedure ListCoolBarContextPopup(Sender: TObject; MousePos: TPoint;
814 var Handled: Boolean);
815 procedure MainCoolBarContextPopup(Sender: TObject; MousePos: TPoint;
816 var Handled: Boolean);
817 procedure BrowserCoolBarContextPopup(Sender: TObject; MousePos: TPoint;
818 var Handled: Boolean);
819 procedure ExportFavoriteFileAccept(Sender: TObject);
820 procedure ExportFavoriteFileBeforeExecute(Sender: TObject);
821 procedure CabinetBBSActionExecute(Sender: TObject);
822 procedure FavoriteTreeViewBrowseThreadActionExecute(Sender: TObject);
823 procedure FavoriteTreeBrowseBoardPopupMenuClick(Sender: TObject);
824 procedure UpBoardActionExecute(Sender: TObject);
825 procedure UpBoardActionUpdate(Sender: TObject);
826 procedure BrowserTabContextPopup(Sender: TObject; MousePos: TPoint;
827 var Handled: Boolean);
828 procedure KoreCopyExecute(Sender: TObject);
829 procedure BrowserTabPopupMenuPopup(Sender: TObject);
830 private
831 { Private 鐃緒申鐃緒申 }
832 //RoundList : TRoundList;
833 FSortIndex: Integer;
834 FSortOrder: Boolean;
835
836 FEnabledCloseButton: Boolean;
837 // ThreadCreate: TThreadCreate;
838
839 FClickNode: TTreeNode;
840 FHttpState: Boolean;
841 FHint: TResPopup;
842 FPreviewBrowser: TPreviewBrowser;
843 FPreviewURL: string;
844
845 FBrowserSizeHeight: Integer;
846 FBrowserSizeWidth: Integer;
847
848 // FFavorite: TFavorite;
849 FBrowserComplete: Boolean;
850 FTabHintIndex: Integer;
851 FListStyle: TViewStyle; //鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申
852 FItemNoVisible: Boolean; //鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃緒申鐃?鐃緒申鐃?
853 FViewType: TGikoViewType; //鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃?鐃?
854 FActiveList: TObject;
855 FActiveContent: TThreadItem; //
856 FActiveBBS : TBBS;
857 FHistoryList: TList; //鐃?鐃?鐃?鐃緒申鐃緒申鐃?鐃?
858 FTreeType: TGikoTreeType;
859 FWorkCount: Integer;
860 FNameCookie: string;
861 FMailCookie: string;
862 // FLastRoundTime: TDateTime;
863 BrowserNullTab: TThreadItem;
864 // DoubleClickOccurred: array [TMouseButton] of Boolean;
865 FDownloadTitle: string; //鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申
866 FDownloadMax: Integer; //鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?
867 FEvent: THTMLDocumentEventSink;//鐃?鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申鐃?
868
869 Fkeynum : Integer; //鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?
870
871 IsDraggingSelectComboBox : Boolean;
872 DraggingSelectComboBoxPosition : TPoint;
873
874 FSearchDialog: TSearchDialog;
875
876 FDropSpaceNode: TTreeNode;
877
878 FDragTime : Cardinal; //鐃緒申鐃緒申鐃?鐃緒申D&D鐃?
879 FDragButton : TToolButton; //鐃緒申鐃緒申鐃?鐃緒申D&D鐃?鐃緒申Drag鐃緒申鐃緒申鐃緒申Button鐃緒申鐃緒申
880 FDragWFirst : Boolean; //WebTab鐃緒申D&D鐃?
881
882 FListViewBackGroundColor : TColor; //ListView鐃緒申BackGroundColor
883 FUseOddResOddColor : Boolean; //鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃緒申
884 FOddColor : TColor; //鐃緒申鐃緒申鐃?
885
886 FSelectResWord : string; // 鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃?
887 procedure SetBoardTreeNode( inBBS : TBBS );
888 function SetCategoryListItem(ABBS2ch: TBBS): Integer;
889 function SetBoardListItem(Category: TCategory): Integer;
890 function SetThreadListItem(Board: TBoard): Integer;
891 // function GetRoundName(index: integer): string;
892
893 procedure DownloadEnd(Sender: TObject; Item: TDownloadItem);
894 procedure DownloadMsg(Sender: TObject; Item: TDownloadItem; Msg: string; Icon: TGikoMessageIcon);
895 procedure WorkBegin(Sender: TObject; AWorkMode: TWorkMode; const AWorkCountMax: Integer; Number: Integer);
896 procedure WorkEnd(Sender: TObject; AWorkMode: TWorkMode; Number: Integer);
897 procedure Work(Sender: TObject; AWorkMode: TWorkMode; const AWorkCount: Integer; Number: Integer);
898
899 procedure SetActiveList(Obj: TObject);
900 procedure ListClick;
901 procedure ListDoubleClick;
902 procedure BrowserMovement(AName: string);
903 procedure SelectListItem(List: TList);
904 // procedure SetProgressValue(Number: Integer; Value: Integer; Max: Integer = -1);
905 procedure DeleteTab(ThreadItem: TThreadItem);
906 function Hook(var Message: TMessage): Boolean;
907 procedure AddRoundNameMenu(MenuItem: TMenuItem);
908 procedure SetSelectItemRound(RoundFlag: Boolean; RoundName: string); overload;
909 procedure SetSelectItemRound(RoundFlag: Boolean; RoundName: string; ParentName: string); overload;
910 procedure SetSelectRoundName(Sender: TObject);
911 function GetCoolBand(CoolBar: TCoolBar; Control: TWinControl): TCoolBand;
912
913 procedure SetMenuFont;
914 // procedure CreateFavMenu(Folder: TFavoriteFolder);
915 procedure CreateFavMenu(Node: TTreeNode; MenuItem: TMenuItem);
916 procedure FavoriteClick(Sender: TObject; ActiveTab: Boolean); overload;
917 procedure FavoriteClick(Sender: TObject); overload;
918 procedure FavoriteDragOver(Sender, Source: TObject; X, Y: Integer; State: TDragState; var Accept: Boolean);
919 procedure SelectTreeNode(Item: TObject; CallEvent: Boolean);
920 function OnDocumentContextMenu(Sender: TObject): WordBool;
921 // function GetThreadText(sBoard: string; sThread: string; StNum, ToNum: Integer; Title, First: Boolean): string;
922 procedure SetResPopupText(ThreadItem : TThreadItem; StNum, ToNum: Integer; Title, First: Boolean);
923 procedure ShowTextPopup;
924 //procedure ShowTextPopup(HintData: THintData);
925 // procedure SetStdToolBar;
926 // function GetAction(ActionName: string): TContainedAction;
927 procedure SetLinkBar;
928 function GetWidthAllToolButton(ToolBar: TToolBar): Integer;
929 procedure MenuBarChevronMenu;
930 procedure LinkBarChevronMenu;
931 procedure ToolBarChevronMenu(ToolBar: TToolBar);
932 procedure ModifySelectList;
933 procedure FavoriteBrowseFolder( node: TTreeNode );
934 procedure LinkToolButtonDragDrop(Sender, Source: TObject; X, Y: Integer);
935 procedure LinkToolButtonOnMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
936 procedure LinkToolButtonOnMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);
937 procedure LinkToolButtonOnMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
938 procedure LinkToolButtonStartDrag(Sender: TObject; var DragObject: TDragObject);
939 function TreeNodeDataFind(Node: TTreeNode; FindPointer: Pointer): TTreeNode;
940 procedure FavoriteMoveTo( SenderNode, SourceNode: TTreeNode );
941 procedure FavoriteAddTo( SenderNode: TTreeNode; Source: TObject );
942 procedure FavoriteDragDrop( SenderNode: TTreeNode; Source: TObject );
943 //
944 procedure BrowserTabClick(Sender: TObject);
945 procedure SetListViewBackGroundColor(value: TColor);
946 procedure BBSMenuItemOnClick( Sender : TObject );
947 //
948 procedure KonoresCopy(Number: Integer; ReplaceTag : Boolean);
949 protected
950 procedure CreateParams(var Params: TCreateParams); override;
951 procedure WndProc(var Message: TMessage); override;
952 procedure WMSetCursor(var Message: TWMSetCursor); message WM_SETCURSOR;
953 procedure WMSettingChange(var Message: TWMWinIniChange); message WM_SETTINGCHANGE;
954 procedure WMCopyData(var Message: TWMCopyData); message WM_COPYDATA;
955 public
956 { Public 鐃緒申鐃緒申 }
957 // FDownload: TDownload;
958 FControlThread: TThreadControl;
959 procedure MoveToURL(URL: string);
960 procedure InsertBrowserTab(ThreadItem: TThreadItem; ActiveTab: Boolean = True);
961 procedure ReloadBBS;
962 function GetHttpState: Boolean;
963 procedure SetEnabledCloseButton(Enabled: Boolean);
964 function GetTreeNode(Data: TObject): TTreeNode;
965 procedure AppFormDeactivate(Sender: TObject);
966 // procedure CabinetPanelVisible(PanelVisible: Boolean);
967 procedure ListViewAllSelect;
968
969 property ListStyle: TViewStyle read FListStyle write FListStyle;
970 property ItemNoVisible: Boolean read FItemNoVisible write FItemNoVisible;
971 property ViewType: TGikoViewType read FViewType write FViewType;
972
973 property NameCookie: string read FNameCookie write FNameCookie;
974 property MailCookie: string read FMailCookie write FMailCookie;
975
976 procedure SetContent(ThreadItem: TThreadItem);
977 function GetActiveContent: TThreadItem;
978 function GetActiveList: TObject;
979
980 property ActiveList: TObject read GetActiveList write SetActiveList;
981 // property LastRoundTime: TDateTime read FLastRoundTime write FLastRoundTime;
982
983 procedure SetListViewType(AViewType: TGikoViewType); overload;
984 procedure SetListViewType(AViewType: TGikoViewType; SelectText: string; KubetsuChk: Boolean); overload;
985 procedure DownloadContent(ThreadItem: TThreadItem);
986 procedure DownloadList(Board: TBoard);
987 procedure PlaySound(SoundEventName: string);
988
989 function AddHistory( FavItem: TFavoriteThreadItem ): Boolean;
990 procedure DeleteHistory( threadItem: TThreadItem );
991 procedure ClearHistory;
992 procedure SaveHistory;
993 procedure LoadHistory;
994 procedure ShowBBSTree( inBBS : TBBS );
995 procedure ShowHistoryTree;
996 procedure SetHistoryTreeNode;
997 // procedure SelectTreeNode(Item: TObject);
998 procedure AddMessageList(ACaption: string; AObject: TObject; Icon: TGikoMessageIcon);
999 procedure SetBrowserTabState;
1000 // property Favorite: TFavorite read FFavorite write FFavorite;
1001 procedure SetToolBarPopup;
1002 procedure ShowFavoriteAddDialog( Item : TObject );
1003 property ListViewBackGroundColor: TColor read FListViewBackGroundColor write SetListViewBackGroundColor;
1004 property UseOddResOddColor : Boolean read FUseOddResOddColor write FUseOddResOddColor;
1005 property OddColor : TColor read FOddColor write FOddColor;
1006
1007 published
1008 property EnabledCloseButton: Boolean read FEnabledCloseButton write SetEnabledCloseButton;
1009 end;
1010
1011 TFavoriteMenuItem = class(TMenuItem)
1012 private
1013 FData : Pointer;
1014 public
1015 property Data: Pointer read FData write FData;
1016 end;
1017
1018 TBBSMenuItem = class(TMenuItem)
1019 private
1020 FData : Pointer;
1021 public
1022 property Data: Pointer read FData write FData;
1023 end;
1024
1025 TLinkToolButton = class(TToolButton)
1026 private
1027 FData : Pointer;
1028 public
1029 property Data: Pointer read FData write FData;
1030 end;
1031
1032 var
1033 GikoForm: TGikoForm;
1034
1035 implementation
1036
1037 uses
1038 About, Option, Round, Splash, Sort, ListSelect,
1039 NewBoard, MojuUtils,Clipbrd;
1040
1041 const
1042 CAPTION_NAME: string = '鐃?鐃?鐃?鐃?';
1043 BLANK_HTML: string = 'about:blank';
1044 SELECTCOMBOBOX_NAME: string = ''; // '鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申';
1045 SELECTCOMBOBOX_COLOR: TColor = clWindow;
1046 //D&D鐃緒申鐃?
1047 DandD_THRESHOLD = 5; //D&D鐃緒申鐃緒申鐃?鐃?pixcel)
1048 //鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申
1049 ITEM_ICON_2CH1 = 0; //2ch鐃?鐃?鐃?鐃緒申
1050 ITEM_ICON_2CH2 = 1; //2ch鐃?鐃?鐃?鐃緒申
1051 ITEM_ICON_CATEGORY1 = 2; //鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申
1052 ITEM_ICON_CATEGORY2 = 3; //鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申
1053 ITEM_ICON_BOARD_NOSUBJECT = 3; //鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申
1054 ITEM_ICON_BOARD1 = 4; //鐃緒申鐃?鐃?鐃?鐃緒申
1055 ITEM_ICON_BOARD2 = 5; //鐃緒申鐃?鐃?鐃?鐃緒申
1056 ITEM_ICON_THREADLOG1 = 6; //鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃?
1057 ITEM_ICON_THREADLOG2 = 7; //鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃?
1058 ITEM_ICON_THREAD1 = 8; //鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃?
1059 ITEM_ICON_THREAD2 = 9; //鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃?
1060 ITEM_ICON_THREADNEW1 = 10; //鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃?
1061 ITEM_ICON_THREADNEW2 = 11; //鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃?
1062 ITEM_ICON_SORT1 = 12; //鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申
1063 ITEM_ICON_SORT2 = 13; //鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申
1064 ITEM_ICON_BOARD_LOG = 17; //鐃?鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申
1065 ITEM_ICON_BOARD_NEW = 18; //鐃?鐃緒申鐃?鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申
1066
1067 //鐃?鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申
1068 TOOL_ICON_HEIGHT_MAX = 16; //鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申
1069 TOOL_ICON_HEIGHT_MIN = 17; //鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申
1070 TOOL_ICON_HEIGHT_NORMAL = 18; //鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃緒申
1071 TOOL_ICON_WIDTH_MAX = 19; //鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申
1072 TOOL_ICON_WIDTH_MIN = 20; //鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申
1073 TOOL_ICON_WIDTH_NORMAL = 21; //鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃緒申
1074
1075 TOOL_ICON_FAV_FOLDER = 30; //鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃?鐃?鐃緒申鐃?鐃?鐃?鐃?鐃緒申
1076 TOOL_ICON_FAV_BOARD = 31; //鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申
1077 TOOL_ICON_FAV_THREAD = 32; //鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃緒申
1078
1079 HTML_FILE_NAME = 'temp_preview.html';
1080
1081 {$R *.DFM}
1082
1083 procedure TGikoForm.CreateParams(var Params: TCreateParams);
1084 begin
1085 inherited;
1086 if FormStyle in [fsNormal, fsStayOnTop] then begin
1087 if BorderStyle in [bsSingle, bsSizeable] then begin
1088 Params.ExStyle := Params.ExStyle or WS_EX_APPWINDOW;
1089 Params.WndParent := 0;
1090 end;
1091 end;
1092 end;
1093
1094 procedure TGikoForm.FormCreate(Sender: TObject);
1095 const
1096 TVS_NOTOOLTIPS = $0080;
1097 var
1098 FileName: string;
1099 Style: DWORD;
1100 msg: string;
1101 i: Integer;
1102 wp: TWindowPlacement;
1103 s: string;
1104 item : TBBSMenuItem;
1105 begin
1106 {$IFDEF DEBUG}
1107 AllocConsole;
1108 Writeln('============================================================');
1109 Writeln(' 鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃? 鐃?鐃緒申鐃?鐃?鐃緒申');
1110 Writeln('');
1111 Writeln(' 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?');
1112 Writeln(' 鐃?鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申');
1113 Writeln('============================================================');
1114 {$ENDIF}
1115 Application.OnDeactivate := AppFormDeactivate;
1116 Self.OnDeactivate := AppFormDeactivate;
1117 Application.HookMainWindow(Hook);
1118
1119 FTreeType := gttNone;
1120
1121 FSearchDialog := nil;
1122
1123 //鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申
1124 Screen.Cursors[5] := LoadCursor(HInstance, 'GIKOHAND');
1125
1126
1127 //鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1128 AddressHistoryDM.ReadHistory(AddressComboBox.Items, GikoSys.Setting.AddressHistoryCount);
1129
1130 // 鐃?鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃?鐃?(ReadBoardFile, LoadHistory 鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申)
1131 InitializeBoardPlugIns;
1132
1133 EnabledCloseButton := True;
1134
1135
1136 //鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申
1137 RoundList := TRoundList.Create;
1138 RoundList.LoadRoundBoardFile;
1139
1140 // 鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申(ReadFavorite 鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申)
1141 GikoSys.ReadBoardFile;
1142
1143 RoundList.LoadRoundThreadFile;
1144
1145 if RoundList.OldFileRead or ( RoundList.Count[grtItem] > 0 ) then
1146 GikoSys.ReadBoardFile;
1147
1148 // SetBoardTreeNode; //鐃?鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申
1149 // 鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申
1150 for i := Length( BBSs ) - 1 downto 0 do begin
1151 try
1152 item := TBBSMenuItem.Create( PopupMenu );
1153 item.Caption := BBSs[ i ].Title;
1154 item.Data := BBSs[ i ];
1155 item.OnClick := BBSMenuItemOnClick;
1156 CabinetSelectPopupMenu.Items.Insert( 0, item );
1157 item := TBBSMenuItem.Create( PopupMenu );
1158 item.Caption := BBSs[ i ].Title;
1159 item.Data := BBSs[ i ];
1160 item.OnClick := BBSMenuItemOnClick;
1161 CabinetMenu.Insert( 0, item );
1162 except
1163 end;
1164 end;
1165
1166
1167 // 鐃?鐃?鐃?鐃緒申鐃緒申鐃?鐃?(LoadHistory 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申)
1168 FHistoryList := TList.Create;
1169
1170 // 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1171 LoadHistory;
1172
1173 //鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1174 // FFavorite := TFavorite.Create(FavoriteTreeView);
1175 FavoriteDM.SetFavTreeView(FavoriteTreeView);
1176 FavoriteDM.ReadFavorite;
1177
1178 //鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申
1179 ListView.ViewStyle := GikoSys.Setting.ListStyle;
1180
1181 //鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃?
1182 // MainCoolBar.Top := 0;
1183 // MainCoolBar.Left := 0;
1184
1185 //鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?
1186 AnimePanel.Top := 0;
1187 AnimePanel.Left := 0;
1188
1189 //鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1190
1191 //鐃?鐃緒申鐃?鐃?鐃?鐃?
1192 CabinetPanel.Width := GikoSys.Setting.CabinetWidth;
1193
1194 //鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?
1195 MsgBarVisibleAction.Checked := GikoSys.Setting.MessageBarVisible;
1196 MsgBarVisibleActionExecute(nil);
1197 MessagePanel.Height := GikoSys.Setting.MessegeBarHeight;
1198
1199 //鐃?鐃?鐃?鐃?鐃?鐃?鐃?
1200 StatusBarVisibleAction.Checked := GikoSys.Setting.StatusBarVisible;
1201 StatusBarVisibleActionExecute(nil);
1202
1203 //鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申
1204 TreeView.Items.BeginUpdate;
1205 FavoriteTreeView.Items.BeginUpdate;
1206 ListView.Items.BeginUpdate;
1207 try
1208 TreeView.Font.Name := GikoSys.Setting.CabinetFontName;
1209 TreeView.Font.Size := GikoSys.Setting.CabinetFontSize;
1210 TreeView.Font.Color := GikoSys.Setting.CabinetFontColor;
1211 TreeView.Color := GikoSys.Setting.CabinetBackColor;
1212
1213 FavoriteTreeView.Font.Name := GikoSys.Setting.CabinetFontName;
1214 FavoriteTreeView.Font.Size := GikoSys.Setting.CabinetFontSize;
1215 FavoriteTreeView.Font.Color := GikoSys.Setting.CabinetFontColor;
1216 FavoriteTreeView.Color := GikoSys.Setting.CabinetBackColor;
1217
1218 ListView.Font.Name := GikoSys.Setting.ListFontName;
1219 ListView.Font.Size := GikoSys.Setting.ListFontSize;
1220 ListView.Font.Color := GikoSys.Setting.ListFontColor;
1221 //ListView.Color := GikoSys.Setting.ListBackColor;
1222 ListViewBackGroundColor := GikoSys.Setting.ListBackColor;
1223 FUseOddResOddColor := GikoSys.Setting.UseOddColorOddResNum;
1224 FOddColor := GikoSys.Setting.OddColor;
1225
1226 finally
1227 TreeView.Items.EndUpdate;
1228 FavoriteTreeView.Items.EndUpdate;
1229 ListView.Items.EndUpdate;
1230 end;
1231 //ViewNoButton.Down := GikoSys.Setting.ListViewNo;
1232 ListNumberVisibleAction.Checked := GikoSys.Setting.ListViewNo;
1233
1234 //鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?
1235 BrowserTab.Font.Name := GikoSys.Setting.BrowserTabFontName;
1236 BrowserTab.Font.Size := GikoSys.Setting.BrowserTabFontSize;
1237 FDragWFirst := false;
1238
1239 // TreeView.TopItem.Expanded := True; //鐃?鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申
1240 // TreeView.Selected := TreeView.Items[0]; //鐃?鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申
1241 SetContent(nil); //鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃?鐃緒申
1242
1243 //鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申
1244 wp.length := sizeof(wp);
1245 wp.rcNormalPosition.Top := GikoSys.Setting.WindowTop;
1246 wp.rcNormalPosition.Left := GikoSys.Setting.WindowLeft;
1247 wp.rcNormalPosition.Bottom := GikoSys.Setting.WindowTop + GikoSys.Setting.WindowHeight;
1248 wp.rcNormalPosition.Right := GikoSys.Setting.WindowLeft + GikoSys.Setting.WindowWidth;
1249 wp.showCmd := SW_HIDE;
1250 SetWindowPlacement(Handle, @wp);
1251
1252 // SetBounds(GikoSys.Setting.WindowLeft, GikoSys.Setting.WindowTop,
1253 // GikoSys.Setting.WindowWidth, GikoSys.Setting.WindowHeight);
1254 if GikoSys.Setting.WindowMax then
1255 WindowState := wsMaximized;
1256
1257 //鐃?鐃?鐃?鐃?鐃緒申
1258 try
1259 FileName := GikoSys.GetAppDir + 'gikoNavi.avi';
1260 if FileExists(FileName) then
1261 Animate.FileName := FileName;
1262 except
1263 end;
1264
1265 //鐃?鐃?鐃?鐃?
1266 FNameCookie := '';
1267 FMailCookie := '';
1268
1269 //鐃?鐃緒申鐃?鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1270 AllItemAction.Checked := True;
1271 AllResAction.Checked := True;
1272
1273 //TreeView鐃緒申鐃緒申鐃緒申鐃?鐃緒申ToolTip鐃緒申鐃緒申鐃?鐃緒申
1274 Style := GetWindowLong(TreeView.Handle, GWL_STYLE);
1275 Style := Style or TVS_NOTOOLTIPS;
1276 SetWindowLong(TreeView.Handle, GWL_STYLE, Style);
1277
1278 // 鐃?鐃緒申鐃?鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1279 TreeView.Align := alClient;
1280 FavoriteTreeView.Align := alClient;
1281 FavoriteTreeView.Visible := False;
1282
1283 //鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申
1284 // FBrowserSizeFlag := False;
1285 // FBrowserSizeHeight := ViewPanel.Height;
1286
1287 FBrowserSizeHeight := GikoSys.Setting.ListHeight;
1288 FBrowserSizeWidth := GikoSys.Setting.ListWidth;
1289
1290 ArrangeAction.Checked := not (GikoSys.Setting.ListOrientation = gloVertical);
1291 ArrangeAction.Execute;
1292
1293 if GikoSys.Setting.ListOrientation = gloHorizontal then begin
1294 case GikoSys.Setting.ListWidthState of
1295 glsMax: begin
1296 ViewPanel.Width := 1;
1297 BrowserMaxAction.ImageIndex := TOOL_ICON_WIDTH_NORMAL;
1298 BrowserMinAction.ImageIndex := TOOL_ICON_WIDTH_MIN;
1299 end;
1300 glsMin: begin
1301 ViewPanel.Width := GikoSys.Setting.ListWidth;
1302 BrowserMaxAction.ImageIndex := TOOL_ICON_WIDTH_MAX;
1303 BrowserMinAction.ImageIndex := TOOL_ICON_WIDTH_NORMAL;
1304 end;
1305 else begin
1306 ViewPanel.Width := GikoSys.Setting.ListWidth;
1307 BrowserMaxAction.ImageIndex := TOOL_ICON_WIDTH_MAX;
1308 BrowserMinAction.ImageIndex := TOOL_ICON_WIDTH_MIN;
1309 end;
1310 end;
1311 end else begin
1312 case GikoSys.Setting.ListHeightState of
1313 glsMax: begin
1314 ViewPanel.Height := 1;
1315 BrowserMaxAction.ImageIndex := TOOL_ICON_HEIGHT_NORMAL;
1316 BrowserMinAction.ImageIndex := TOOL_ICON_HEIGHT_MIN;
1317 end;
1318 glsMin: begin
1319 ViewPanel.Height := GikoSys.Setting.ListHeight;
1320 BrowserMaxAction.ImageIndex := TOOL_ICON_HEIGHT_MAX;
1321 BrowserMinAction.ImageIndex := TOOL_ICON_HEIGHT_NORMAL;
1322 end;
1323 else begin
1324 ViewPanel.Height := GikoSys.Setting.ListHeight;
1325 BrowserMaxAction.ImageIndex := TOOL_ICON_HEIGHT_MAX;
1326 BrowserMinAction.ImageIndex := TOOL_ICON_HEIGHT_MIN;
1327 end;
1328 end;
1329 end;
1330
1331 //鐃?鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申
1332 // ProgressBar.Visible := False;
1333 ProgressBar.Parent := StatusBar;
1334 ProgressBar.Top := 2;
1335 ProgressBar.Left := 0;
1336 ProgressBar.Width := StatusBar.Panels[0].Width;
1337 ProgressBar.Height := StatusBar.Height - 2;
1338 ProgressBar.Position := 0;
1339
1340 //鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃?
1341 FControlThread := TThreadControl.Create(True);
1342 FControlThread.MaxThreadCount := 1;
1343 FControlThread.Resume;
1344 FControlThread.OnDownloadEnd := DownloadEnd;
1345 FControlThread.OnDownloadMsg := DownloadMsg;
1346 FControlThread.OnWork := Work;
1347 FControlThread.OnWorkBegin := WorkBegin;
1348 FControlThread.OnWorkEnd := WorkEnd;
1349 // ProgressPanel.Width := FControlThread.MaxThreadCount * 12;
1350
1351 // 鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1352 SelectComboBox.Items.Assign( GikoSys.Setting.SelectTextList );
1353
1354 //鐃?鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃緒申
1355 SetBrowserTabState;
1356
1357 BrowserBoardNameLabel.Caption := '';
1358 BrowserNameLabel.Caption := '';
1359 FWorkCount := 0;
1360
1361 FTabHintIndex := -1;
1362
1363 //鐃緒申鐃緒申鐃?鐃?鐃?
1364 SetLinkBar;
1365
1366 //鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?
1367 SetMenuFont;
1368
1369 //鐃?鐃?鐃緒申鐃?鐃?Wrapable
1370 ListToolBar.Wrapable := GikoSys.Setting.ListToolBarWrapable;
1371 BrowserToolBar.Wrapable := GikoSys.Setting.BrowserToolBarWrapable;
1372
1373 //鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1374 ReadToolBarSetting(ActionList, StdToolBar);
1375 ReadToolBarSetting(ActionList, ListToolBar);
1376 try
1377 for i := ListToolBar.ControlCount - 1 downto 0 do
1378 begin
1379 if ListToolBar.Controls[ i ].Action = SelectItemAction then
1380 begin
1381 // 鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申
1382 if (i + 1) < ListToolBar.ControlCount then
1383 if ListToolBar.Controls[ i + 1 ] is TToolButton then
1384 if TToolButton( ListToolBar.Controls[ i + 1 ] ).Style = tbsSeparator then
1385 ListToolBar.Controls[ i + 1 ].Visible := False;
1386
1387 // 鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃緒申
1388 ListToolBar.Controls[ i ].Visible := False;
1389 // 鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃緒申
1390 SelectComboBox.Left := ListToolBar.Controls[ i ].Left;
1391 SelectComboBox.Width := GikoSys.Setting.SelectComboBoxWidth;
1392 SelectComboBox.Parent := ListToolBar;
1393 // 鐃?鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃緒申
1394 SelectComboBoxSplitter.Left := SelectComboBox.Left + SelectComboBox.Width;
1395 SelectComboBoxSplitter.Parent := ListToolBar;
1396
1397 break;
1398 end;
1399 end;
1400 except
1401 end;
1402 ReadToolBarSetting(ActionList, BrowserToolBar);
1403 SetToolBarPopup;
1404 OnlyAHundredRes.Checked := GikoSys.Setting.OnlyAHundredRes;
1405 //鐃?鐃?鐃緒申鐃?鐃?鐃?
1406 AddressComboBox.TabStop := GikoSys.Setting.AddressBarTabStop;
1407
1408 //鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申FormShow鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1409
1410 //鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃?鐃?鐃緒申
1411 if not FileExists(GikoSys.GetBoardFileName) then begin
1412 msg := '鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申' + #13#10#13#10
1413 + '鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申' + #13#10
1414 + '鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?';
1415 MsgBox(SplashWindow.Handle, msg, '鐃?鐃?鐃?鐃?', MB_OK or MB_ICONINFORMATION);
1416 NewBoardAction.Execute;
1417 end;
1418
1419 //鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1420 GikoSys.LoadKeySetting(ActionList);
1421
1422 //鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申
1423 // FLastRoundTime := 0;
1424
1425 //ResHint
1426 FHint := TResPopup.Create(Self);
1427
1428 // 鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申
1429 CabinetVisible( False );
1430 if GikoSys.Setting.CabinetVisible then begin
1431 i := CabinetSelectPopupMenu.Items.Count - 1;
1432 if GikoSys.Setting.CabinetIndex = i - 1 then
1433 CabinetHistoryAction.Execute
1434 else if GikoSys.Setting.CabinetIndex = i then
1435 CabinetFavoriteAction.Execute
1436 else begin
1437 if GikoSys.Setting.CabinetIndex < Length( BBSs ) then
1438 ShowBBSTree( BBSs[ GikoSys.Setting.CabinetIndex ] );
1439 CabinetBBSAction.Execute;
1440 end;
1441 end else begin
1442 ShowBBSTree( BBSs[ 0 ] );
1443 end;
1444
1445 //鐃?鐃?鐃?鐃緒申鐃?鐃?鐃緒申
1446 if GikoSys.Setting.AutoLogin then
1447 LoginAction.Execute;
1448
1449 //鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃?
1450 for i := 1 to ParamCount do begin
1451 MoveToURL(ParamStr(i));
1452 end;
1453 // SetStdToolBar;
1454 // SetLinkBar;
1455
1456 s := GikoSys.FAbon.NGwordname;
1457 StatusBar.Panels[2].Text := s;
1458 StatusBar.Panels[2].Width := Max(StatusBar.Canvas.TextWidth(s), 100);
1459 StatusBarResize(Sender);
1460
1461 dummy1.Caption := ItemReservPMenu.Caption;
1462 dummy1.Hint := ItemReservPMenu.Hint;
1463
1464 end;
1465
1466 //
1467 //
1468 //
1469 procedure TGikoForm.FormShow(Sender: TObject);
1470 var
1471 i: Integer;
1472 CoolSet: TCoolSet;
1473 begin
1474 ShowWindow(Application.Handle, SW_HIDE);
1475
1476 //FormCreate鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申FormShow鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1477 //鐃?鐃?鐃緒申鐃?鐃?鐃?鐃緒申
1478 StdToolBarVisibleAction.Checked := GikoSys.Setting.StdToolBarVisible;
1479 StdToolBarVisibleActionExecute( nil );
1480 AddressBarVisibleAction.Checked := GikoSys.Setting.AddressBarVisible;
1481 AddressBarVisibleActionExecute( nil );
1482 LinkBarVisibleAction.Checked := GikoSys.Setting.LinkBarVisible;
1483 LinkBarVisibleActionExecute( nil );
1484 ListToolBarVisibleAction.Checked := GikoSys.Setting.ListToolBarVisible;
1485 ListToolBarVisibleActionExecute( nil );
1486 ListNameBarVisibleAction.Checked := GikoSys.Setting.ListNameBarVisible;
1487 ListNameBarVisibleActionExecute( nil );
1488 BrowserToolBarVisibleAction.Checked := GikoSys.Setting.BrowserToolBarVisible;
1489 BrowserToolBarVisibleActionExecute( nil );
1490 BrowserNameBarVisibleAction.Checked := GikoSys.Setting.BrowserNameBarVisible;
1491 BrowserNameBarVisibleActionExecute( nil );
1492
1493 //鐃?鐃緒申鐃?鐃?鐃?鐃?
1494 BrowserTabVisibleAction.Checked := GikoSys.Setting.BrowserTabVisible;
1495 BrowserTabVisibleActionExecute(nil);
1496
1497 if GikoSys.Setting.BrowserTabPosition = gtpTop then begin
1498 BrowserTabTopAction.Checked := True;
1499 BrowserTabTopActionExecute(nil);
1500 end else begin
1501 BrowserTabBottomAction.Checked := True;
1502 BrowserTabBottomActionExecute(nil);
1503 end;
1504
1505 if GikoSys.Setting.BrowserTabStyle = gtsTab then begin
1506 BrowserTabTabStyleAction.Checked := True;
1507 BrowserTabTabStyleActionExecute(nil);
1508 end else if GikoSys.Setting.BrowserTabStyle = gtsButton then begin
1509 BrowserTabButtonStyleAction.Checked := True;
1510 BrowserTabButtonStyleActionExecute(nil);
1511 end else begin
1512 BrowserTabFlatStyleAction.Checked := True;
1513 BrowserTabFlatStyleActionExecute(nil);
1514 end;
1515
1516
1517 //鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申(Main)
1518 MainCoolBar.Bands.BeginUpdate;
1519 try
1520 for i := 0 to MainCoolBar.Bands.Count - 1 do begin
1521 CoolSet := GikoSys.Setting.MainCoolSet[i];
1522 if (CoolSet.FCoolID = -1) or (CoolSet.FCoolWidth = -1) then
1523 Continue;
1524 MainCoolBar.Bands.FindItemID(CoolSet.FCoolID).Index := i;
1525 MainCoolBar.Bands[i].Break := CoolSet.FCoolBreak;
1526 MainCoolBar.Bands[i].Width := CoolSet.FCoolWidth;
1527 end;
1528 finally
1529 MainCoolBar.Bands.EndUpdate;
1530 end;
1531
1532 //鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申(Board)
1533 ListCoolBar.Bands.BeginUpdate;
1534 try
1535 for i := 0 to ListCoolBar.Bands.Count - 1 do begin
1536 CoolSet := GikoSys.Setting.ListCoolSet[i];
1537 if (CoolSet.FCoolID = -1) or (CoolSet.FCoolWidth = -1) then
1538 Continue;
1539 ListCoolBar.Bands.FindItemID(CoolSet.FCoolID).Index := i;
1540 ListCoolBar.Bands[i].Break := CoolSet.FCoolBreak;
1541 ListCoolBar.Bands[i].Width := CoolSet.FCoolWidth;
1542 end;
1543 finally
1544 ListCoolBar.Bands.EndUpdate;
1545 end;
1546
1547 //鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申(Browser)
1548 BrowserCoolBar.Bands.BeginUpdate;
1549 try
1550 for i := 0 to BrowserCoolBar.Bands.Count - 1 do begin
1551 CoolSet := GikoSys.Setting.BrowserCoolSet[i];
1552 if (CoolSet.FCoolID = -1) or (CoolSet.FCoolWidth = -1) then
1553 Continue;
1554 BrowserCoolBar.Bands.FindItemID(CoolSet.FCoolID).Index := i;
1555 BrowserCoolBar.Bands[i].Break := CoolSet.FCoolBreak;
1556 BrowserCoolBar.Bands[i].Width := CoolSet.FCoolWidth;
1557 end;
1558 finally
1559 BrowserCoolBar.Bands.EndUpdate;
1560 end;
1561
1562 end;
1563 procedure TGikoForm.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
1564 var
1565 i: Integer;
1566 CoolSet: TCoolSet;
1567 wp: TWindowPlacement;
1568 begin
1569 if ( GikoSys.Setting.ShowDialogForEnd ) and
1570 (MessageDlg('鐃?鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?', mtConfirmation,[mbOk, mbCancel], 0) = mrCancel ) then begin
1571 CanClose := false;
1572 Exit;
1573 end else begin
1574 CanClose := True;
1575 end;
1576 // Application.OnDeactivate := nil;
1577 // Self.OnDeactivate := nil;
1578
1579 //column鐃緒申
1580 if GetActiveList is TBBS then begin
1581 for i := 0 to ListView.Columns.Count - 1 do
1582 GikoSys.Setting.BBSColumnWidth[i] := ListView.Column[i].Width;
1583 end else if GetActiveList is TCategory then begin
1584 for i := 0 to ListView.Columns.Count - 1 do
1585 GikoSys.Setting.CategoryColumnWidth[i] := ListView.Column[i].Width;
1586 end else if GetActiveList is TBoard then begin
1587 for i := 0 to ListView.Columns.Count - 1 do
1588 GikoSys.Setting.BoardColumnWidth[i] := ListView.Column[i].Width;
1589 end;
1590
1591 //鐃緒申鐃緒申鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申
1592 wp.length := sizeof(wp);
1593 GetWindowPlacement(Handle, @wp);
1594 GikoSys.Setting.WindowTop := wp.rcNormalPosition.Top;
1595 GikoSys.Setting.WindowLeft := wp.rcNormalPosition.Left;
1596 GikoSys.Setting.WindowHeight := wp.rcNormalPosition.Bottom - wp.rcNormalPosition.Top;
1597 GikoSys.Setting.WindowWidth := wp.rcNormalPosition.Right - wp.rcNormalPosition.Left;
1598 GikoSys.Setting.WindowMax := WindowState = wsMaximized;
1599
1600 GikoSys.Setting.ListStyle := ListView.ViewStyle;
1601 GikoSys.Setting.CabinetVisible := CabinetVisibleAction.Checked;
1602 GikoSys.Setting.CabinetWidth := CabinetPanel.Width;
1603 GikoSys.Setting.ListHeight := FBrowserSizeHeight;
1604 GikoSys.Setting.ListWidth := FBrowserSizeWidth;
1605 if ArrangeAction.Checked then
1606 GikoSys.Setting.ListOrientation := gloVertical
1607 else
1608 GikoSys.Setting.ListOrientation := gloHorizontal;
1609 GikoSys.Setting.MessegeBarHeight := MessagePanel.Height;
1610
1611 //鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申(Main)
1612 for i := 0 to MAIN_COOLBAND_COUNT - 1 do begin
1613 CoolSet.FCoolID := MainCoolBar.Bands[i].ID;
1614 CoolSet.FCoolWidth := MainCoolBar.Bands[i].Width;
1615 CoolSet.FCoolBreak := MainCoolBar.Bands[i].Break;
1616 GikoSys.Setting.MainCoolSet[i] := CoolSet;
1617 end;
1618 //鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申(Board)
1619 for i := 0 to LIST_COOLBAND_COUNT - 1 do begin
1620 CoolSet.FCoolID := ListCoolBar.Bands[i].ID;
1621 CoolSet.FCoolWidth := ListCoolBar.Bands[i].Width;
1622 CoolSet.FCoolBreak := ListCoolBar.Bands[i].Break;
1623 GikoSys.Setting.ListCoolSet[i] := CoolSet;
1624 end;
1625 //鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申(Browser)
1626 for i := 0 to BROWSER_COOLBAND_COUNT - 1 do begin
1627 CoolSet.FCoolID := BrowserCoolBar.Bands[i].ID;
1628 CoolSet.FCoolWidth := BrowserCoolBar.Bands[i].Width;
1629 CoolSet.FCoolBreak := BrowserCoolBar.Bands[i].Break;
1630 GikoSys.Setting.BrowserCoolSet[i] := CoolSet;
1631 end;
1632
1633 GikoSys.Setting.WriteWindowSettingFile;
1634 GikoSys.Setting.WriteNameMailSettingFile;
1635
1636 //鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1637 try
1638 FavoriteDM.WriteFavorite;
1639 except
1640 end;
1641 // Favorite.Free;
1642
1643 try
1644 //鐃?鐃?鐃?鐃緒申鐃?鐃?
1645 NotSelectTabCloseAction.Execute;
1646 if BrowserTab.Tabs.Count >= 1 then begin
1647 DeleteTab(TThreadItem(BrowserTab.Tabs.Objects[0]));
1648 end;
1649 except
1650 end;
1651
1652 //鐃?鐃?鐃?鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申
1653 try
1654 SaveHistory;
1655 except
1656 end;
1657
1658 //鐃?鐃?鐃?鐃緒申鐃緒申鐃?鐃?
1659 try
1660 FHistoryList.Free;
1661 except
1662 end;
1663
1664 //鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申
1665 try
1666 AddressHistoryDM.WriteHistory(AddressComboBox.Items, GikoSys.Setting.AddressHistoryCount);
1667 except
1668 end;
1669
1670 try
1671 FControlThread.Terminate;
1672 except
1673 end;
1674
1675
1676
1677 // FDownload.Free;
1678 try
1679 //SetActiveList(nil);
1680 except
1681 end;
1682
1683 //TreeView鐃?鐃緒申鐃?鐃?BBS2ch.Free鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申XP鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃?
1684 //Sleep(10);
1685 Application.ProcessMessages;
1686 try
1687 TreeView.Items.Clear;
1688 except
1689 end;
1690
1691 try
1692 if FavoriteDM <> nil then
1693 FavoriteDM.Free;
1694 FavoriteDM := nil;
1695 if AddressHistoryDM <> nil then
1696 AddressHistoryDM.Free;
1697 AddressHistoryDM := nil;
1698 except
1699 end;
1700 //鐃緒申鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申&鐃?鐃緒申
1701 try
1702 RoundList.SaveRoundFile;
1703 except
1704 end;
1705
1706 try
1707 RoundList.Clear;
1708 except
1709 end;
1710 try
1711 RoundList.Free;
1712 except
1713 end;
1714
1715 // TBBS 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申 TCategory, TBoard, TThreadItem 鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申
1716 // TBoard, TThreadItem 鐃緒申鐃?鐃?鐃?鐃緒申鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申
1717 // BoardPluteIns 鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申
1718 try
1719 for i := 0 to Length( BBSs ) - 1 do begin
1720 if BBSs[ i ] <> nil then
1721 BBSs[ i ].Free;
1722 BBSs[ i ] := nil;
1723 end;
1724 except
1725 end;
1726
1727 try
1728 for i := 0 to Length( BoardPlugIns ) - 1 do begin
1729 if BoardPlugIns[ i ] <> nil then
1730 BoardPlugIns[ i ].Free;
1731 BoardPlugIns[ i ] := nil;
1732 end;
1733 except
1734 end;
1735
1736 try
1737 for i := CabinetSelectPopupMenu.Items.Count - 1 downto 0 do begin
1738 if CabinetSelectPopupMenu.Items[ i ] is TBBSMenuItem then begin
1739 CabinetSelectPopupMenu.Items[ i ].Free;
1740 CabinetMenu.Items[ i ].Free;
1741 end;
1742 end;
1743 except
1744 end;
1745
1746
1747 try
1748 //Hint鐃?鐃緒申
1749 if FHint <> nil then begin
1750 FHint.ReleaseHandle;
1751 FHint.Free;
1752 FHint := nil;
1753 end;
1754 //Preview鐃?鐃緒申
1755 if TPreviewBrowser <> nil then begin
1756 FPreviewBrowser.Free;
1757 FPreviewBrowser := nil;
1758 end;
1759 except
1760 end;
1761 end;
1762
1763 procedure TGikoForm.FormDestroy(Sender: TObject);
1764 begin
1765 ;
1766 end;
1767
1768 //鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃?
1769 procedure TGikoForm.FormClose(Sender: TObject; var Action: TCloseAction);
1770 begin
1771 // ListCoolBar.WindowProc := nil;
1772 // BrowserCoolBar.WindowProc := nil;
1773 // MainCoolBar.WindowProc := nil;
1774 Application.Terminate;
1775 Action := caFree;
1776 // Application.UnhookMainWindow(Hook);
1777 end;
1778
1779 //鐃?鐃緒申鐃?鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃?鐃?
1780 procedure TGikoForm.CabinetPanelHide(Sender: TObject);
1781 begin
1782 CabinetVisibleAction.Execute;
1783 // CabinetPanelVisible(false);
1784 end;
1785
1786 procedure TGikoForm.ReloadBBS;
1787 var
1788 i : Integer;
1789 item : TBBSMenuItem;
1790 begin
1791 //鐃?鐃?鐃?鐃緒申鐃?鐃?
1792 NotSelectTabCloseAction.Execute;
1793 if BrowserTab.Tabs.Count >= 1 then
1794 DeleteTab(TThreadItem(BrowserTab.Tabs.Objects[0]));
1795 //鐃?鐃?鐃?鐃緒申鐃緒申鐃?鐃?
1796 //FHistoryList.Clear;
1797 //TreeView鐃?鐃緒申鐃?鐃?BBS2ch.Free鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申XP鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃?鐃緒申鐃?
1798 TreeView.Items.Clear;
1799
1800 //BBS鐃?鐃緒申
1801 try
1802 for i := Length( BBSs ) - 1 downto 0 do begin
1803 if BBSs[ i ] <> nil then
1804 BBSs[ i ].Free;
1805 BBSs[ i ] := nil;
1806 end;
1807 except
1808 end;
1809
1810 ActiveList := nil;
1811
1812 FTreeType := gttNone;
1813
1814 GikoSys.ReadBoardFile; //鐃?鐃?鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申
1815 // 鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申
1816 for i := CabinetSelectPopupMenu.Items.Count - 1 downto 0 do begin
1817 try
1818 if CabinetSelectPopupMenu.Items[ i ] is TBBSMenuItem then begin
1819 CabinetSelectPopupMenu.Items[ i ].Free;
1820 CabinetMenu.Items[ i ].Free;
1821 end;
1822 except
1823 end;
1824 end;
1825 // 鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申
1826 for i := Length( BBSs ) - 1 downto 0 do begin
1827 try
1828 item := TBBSMenuItem.Create( PopupMenu );
1829 item.Caption := BBSs[ i ].Title;
1830 item.Data := BBSs[ i ];
1831 item.OnClick := BBSMenuItemOnClick;
1832 CabinetSelectPopupMenu.Items.Insert( 0, item );
1833 item := TBBSMenuItem.Create( PopupMenu );
1834 item.Caption := BBSs[ i ].Title;
1835 item.Data := BBSs[ i ];
1836 item.OnClick := BBSMenuItemOnClick;
1837 CabinetMenu.Insert( 0, item );
1838 except
1839 end;
1840 end;
1841 ShowBBSTree( BBSs[ 0 ] );
1842
1843 // 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1844 SaveHistory;
1845 try
1846 for i := FHistoryList.Count - 1 downto 0 do
1847 TFavoriteThreadItem( FHistoryList[ i ] ).Free;
1848 except
1849 end;
1850 FHistoryList.Clear;
1851 LoadHistory;
1852
1853 //鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
1854 // FFavorite := TFavorite.Create(FavoriteTreeView);
1855 FavoriteTreeView.Items.Clear;
1856 FavoriteDM.SetFavTreeView(FavoriteTreeView);
1857 FavoriteDM.ReadFavorite;
1858 SetLinkBar;
1859
1860 end;
1861
1862 //鐃?鐃?鐃?鐃?鐃緒申鐃?鐃緒申鐃緒申
1863 procedure TGikoForm.SetBoardTreeNode(
1864 inBBS : TBBS
1865 );
1866 var
1867 i, j, k: integer;
1868 Root: TTreeNode;
1869 CategoryNode: TTreeNode;
1870 BoardNode: TTreeNode;
1871 Category: TCategory;
1872 Board: TBoard;
1873 begin
1874 // 鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申
1875 FActiveBBS := inBBS;
1876 TreeView.Items.BeginUpdate;
1877 TreeView.Items.Clear;
1878 try
1879 try
1880 if SplashWindow <> nil then
1881 SplashWindow.ProgressBar.Max := BBSs[ 0 ].Count;
1882 except
1883 end;
1884
1885 Root := TreeView.Items.Add( nil, inBBS.Title );
1886 Root.ImageIndex := ITEM_ICON_2CH1;
1887 Root.SelectedIndex := ITEM_ICON_2CH2;
1888 Root.Data := inBBS;
1889 for i := 0 to inBBS.Count - 1 do begin
1890 Category := TCategory(inBBS.Items[i]);
1891 CategoryNode := TreeView.Items.AddChild(Root, Category.Title);
1892 CategoryNode.Data := Category;
1893 CategoryNode.ImageIndex := ITEM_ICON_CATEGORY1;
1894 CategoryNode.SelectedIndex := ITEM_ICON_CATEGORY2;
1895
1896 for j := 0 to Category.Count - 1 do begin
1897 Board := TBoard(Category.Items[j]);
1898 Board.BeginUpdate;
1899 BoardNode := TreeView.Items.AddChild(CategoryNode, Board.Title);
1900 BoardNode.Data := Board;
1901 //if (Board.LastGetTime = 0) or (Board.LastGetTime = ZERO_DATE) then begin
1902 if not Board.IsLogFile then begin
1903 BoardNode.ImageIndex := ITEM_ICON_BOARD_NOSUBJECT;
1904 BoardNode.SelectedIndex := ITEM_ICON_BOARD_NOSUBJECT;
1905 end else begin
1906 BoardNode.ImageIndex := ITEM_ICON_BOARD1;
1907 BoardNode.SelectedIndex := ITEM_ICON_BOARD2;
1908 for k := 0 to Board.Count - 1 do begin
1909 if Board.Items[ k ].IsLogFile then begin
1910 BoardNode.ImageIndex := ITEM_ICON_BOARD_LOG;
1911 BoardNode.SelectedIndex := ITEM_ICON_BOARD_LOG;
1912
1913 Break;
1914 end;
1915 end;
1916 end;
1917 Board.EndUpdate;
1918 end;
1919
1920 CategoryNode.Expanded := Category.NodeExpand;
1921
1922 if SplashWindow <> nil then begin
1923 SplashWindow.ProgressBar.StepIt;
1924 Application.ProcessMessages;
1925 end;
1926 end;
1927 finally
1928 TreeView.Items.EndUpdate;
1929 end;
1930 end;
1931
1932 function TGikoForm.SetCategoryListItem(ABBS2ch: TBBS): Integer;
1933 const
1934 COLUMN: array[0..0] of string = ('鐃?鐃?鐃?鐃緒申鐃緒申');
1935 var
1936 ListColumn: TListColumn;
1937 i: Integer;
1938 begin
1939 ListView.Items.BeginUpdate;
1940 try
1941 Screen.Cursor := crHourGlass;
1942
1943 ListView.Columns.Clear;
1944 for i := 0 to Length(COLUMN) - 1 do begin
1945 ListColumn := ListView.Columns.Add;
1946 ListColumn.Caption := COLUMN[i];
1947 ListColumn.Width := GikoSys.Setting.BBSColumnWidth[i];
1948 end;
1949
1950 ListView.Items.Count := 0;
1951 ListView.Items.Clear;
1952 ListView.Items.Count := ABBS2ch.Count;
1953
1954 // UpFolderAction.Enabled := False;
1955 // AllItemAction.Enabled := False;
1956 // LogItemAction.Enabled := False;
1957 // NewItemAction.Enabled := False;
1958 // SelectItemAction.Enabled := False;
1959 // ListDownloadToolButton.Enabled := False;
1960 // BoardReservToolButton.Enabled := False;
1961 // ListThreadDownloadToolButton.Enabled := False;
1962
1963 ListNameLabel.Caption := ABBS2ch.Title;
1964 FolderImage.Picture := nil;
1965 ItemIcon16.GetBitmap(1, FolderImage.Picture.Bitmap);
1966
1967 FSortIndex := 0;
1968 FSortOrder := False;
1969 ListViewColumnClick(nil, ListView.Column[0]);
1970
1971 Result := ABBS2ch.Count;
1972 finally
1973 Screen.Cursor := crDefault;
1974 ListView.Items.EndUpdate;
1975 end;
1976 end;
1977
1978 function TGikoForm.SetBoardListItem(Category: TCategory): Integer;
1979 const
1980 COLUMN: array[0..2] of string = ('鐃緒申鐃緒申', '鐃緒申鐃緒申鐃?鐃緒申', '鐃緒申鐃緒申鐃緒申鐃緒申');
1981 var
1982 ListColumn: TListColumn;
1983 i: Integer;
1984 begin
1985 ListView.Items.BeginUpdate;
1986 try
1987 Screen.Cursor := crHourGlass;
1988
1989 ListView.Columns.Clear;
1990 for i := 0 to Length(COLUMN) - 1 do begin
1991 ListColumn := ListView.Columns.Add;
1992 ListColumn.Caption := COLUMN[i];
1993 ListColumn.Width := GikoSys.Setting.CategoryColumnWidth[i];
1994 end;
1995
1996 ListView.Items.Count := 0;
1997 ListView.Items.Clear;
1998 ListView.Items.Count := Category.Count;
1999
2000 // UpFolderAction.Enabled := True;
2001 // AllItemAction.Enabled := False;
2002 // LogItemAction.Enabled := False;
2003 // NewItemAction.Enabled := False;
2004 // SelectItemAction.Enabled := False;
2005 // ListDownloadToolButton.Enabled := False;
2006 // BoardReservToolButton.Enabled := False;
2007 // ListThreadDownloadToolButton.Enabled := False;
2008
2009 ListNameLabel.Caption := Category.Title;
2010 FolderImage.Picture := nil;
2011 ItemIcon16.GetBitmap(3, FolderImage.Picture.Bitmap);
2012
2013 FSortIndex := 0;
2014 FSortOrder := False;
2015 ListViewColumnClick(nil, ListView.Column[0]);
2016
2017 Result := Category.Count;
2018 finally
2019 Screen.Cursor := crDefault;
2020 ListView.Items.EndUpdate;
2021 end;
2022 end;
2023
2024 function TGikoForm.SetThreadListItem(Board: TBoard): Integer;
2025 const
2026 COLUMN: array[0..6] of string = ('鐃?鐃緒申鐃?鐃?鐃緒申', '鐃?鐃?鐃緒申鐃?', '鐃緒申鐃緒申', '鐃?鐃緒申',
2027 '鐃緒申鐃緒申', '鐃緒申鐃緒申鐃?鐃緒申', '鐃緒申鐃緒申鐃緒申鐃緒申');
2028 COLUMN_ALIGNMENT: array[0..6] of TAlignment = (taLeftJustify, taRightJustify,
2029 taRightJustify, taRightJustify,
2030 taRightJustify, taLeftJustify,
2031 taLeftJustify);
2032 //No, 鐃?鐃緒申鐃?鐃?鐃緒申, 鐃?鐃?鐃緒申鐃?, 鐃緒申鐃緒申鐃?鐃緒申, 鐃緒申鐃緒申鐃緒申鐃緒申
2033 var
2034 ListColumn: TListColumn;
2035 i: Integer;
2036 begin
2037 ListView.Items.BeginUpdate;
2038 try
2039 Screen.Cursor := crHourGlass;
2040
2041 // 鐃?鐃緒申鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
2042 // 鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申
2043 if ListView.Columns.Count <> (High( COLUMN ) - Low( COLUMN ) + 1) then
2044 begin
2045 ListView.Columns.Clear;
2046 for i := 0 to Length(COLUMN) - 1 do begin
2047 ListColumn := ListView.Columns.Add;
2048 ListColumn.Caption := COLUMN[i];
2049 ListColumn.Width := GikoSys.Setting.BoardColumnWidth[i];
2050 ListColumn.Alignment := COLUMN_ALIGNMENT[i];
2051 end;
2052 end;
2053
2054 ListView.Items.Count := 0;
2055 ListView.Items.Clear;
2056
2057 case GikoForm.ViewType of
2058 gvtAll: ListView.Items.Count := Board.Count;
2059 gvtLog: ListView.Items.Count := Board.GetLogThreadCount;
2060 gvtNew: ListView.Items.Count := Board.GetNewThreadCount;
2061 gvtUser: ListView.Items.Count := Board.GetUserThreadCount;
2062 end;
2063
2064 ListNameLabel.Caption := Board.Title;
2065 FolderImage.Picture := nil;
2066 ItemIcon16.GetBitmap(5, FolderImage.Picture.Bitmap);
2067
2068 FSortIndex := 0;
2069 FSortOrder := False;
2070 ListViewColumnClick(nil, ListView.Column[0]);
2071
2072 Result := Board.Count;
2073 finally
2074 Screen.Cursor := crDefault;
2075 ListView.Items.EndUpdate;
2076 end;
2077 end;
2078
2079 procedure TGikoForm.TreeViewChange(Sender: TObject; Node: TTreeNode);
2080 var
2081 i: Integer;
2082 begin
2083 if FTreeType = gttHistory then begin
2084 if GetActiveContent <> TFavoriteThreadItem( Node ).Item then
2085 FavoriteClick( Node );
2086 Exit;
2087 end;
2088
2089 ListView.Selected := nil;
2090 ListView.Items.Count := 0;
2091 ListView.Items.Clear;
2092 // ListView.Columns.Clear;
2093
2094 Caption := CAPTION_NAME;
2095 //Application.Title := CAPTION_NAME;
2096
2097
2098 if GetActiveList is TBBS then begin
2099 for i := 0 to ListView.Columns.Count - 1 do
2100 GikoSys.Setting.BBSColumnWidth[i] := ListView.Column[i].Width;
2101 end else if GetActiveList is TCategory then begin
2102 for i := 0 to ListView.Columns.Count - 1 do
2103 GikoSys.Setting.CategoryColumnWidth[i] := ListView.Column[i].Width;
2104 end else if GetActiveList is TBoard then begin
2105 for i := 0 to ListView.Columns.Count - 1 do
2106 GikoSys.Setting.BoardColumnWidth[i] := ListView.Column[i].Width;
2107 end;
2108
2109 if TObject(Node.Data) is TBBS then begin
2110 SetActiveList(Node.data);
2111 end else if TObject(Node.Data) is TCategory then begin
2112 SetActiveList(Node.data);
2113 end else if TObject(Node.Data) is TBoard then begin
2114 if not TBoard(Node.Data).IsThreadDatRead then begin
2115 Screen.Cursor := crHourGlass;
2116 try
2117 GikoSys.ReadSubjectFile(TBoard(Node.Data));
2118 finally
2119 Screen.Cursor := crDefault;
2120 end;
2121 end;
2122 SetActiveList(Node.data);
2123 end;
2124 end;
2125
2126 procedure TGikoForm.ListViewData(Sender: TObject; Item: TListItem);
2127 var
2128 // FileName: string;
2129 // DateTime: TDateTime;
2130 BoardCnt: Integer;
2131 BBS: TBBS;
2132 Category: TCategory;
2133 Board: TBoard;
2134 ThreadItem: TThreadItem;
2135 RepStr: string;
2136 ActivListObj : TObject;
2137 begin
2138 ActivListObj := ActiveList;
2139 if ActivListObj is TBBS then begin
2140 BBS := TBBS(ActivListObj);
2141
2142 ListView.StateImages := nil;
2143
2144 if BBS = nil then Exit;
2145 if BBS.Count <= 0 then Exit;
2146 if Item = nil then Exit;
2147 if Item.Index > BBS.Count then Exit;
2148 if ListView.Items.Count = 0 then Exit;
2149
2150 if not (BBS.Items[Item.index] is TCategory) then Exit;
2151 Category := TCategory(BBS.Items[Item.index]);
2152
2153 if Category = nil then Exit;
2154
2155 if ListNumberVisibleAction.Checked then
2156 Item.Caption := IntToStr(Category.No) + ': ' + Category.Title
2157 else
2158 Item.Caption := Category.Title;
2159
2160 Item.ImageIndex := ITEM_ICON_CATEGORY1;
2161 Item.Data := Category;
2162 end else if ActivListObj is TCategory then begin
2163 Category := TCategory(ActivListObj);
2164
2165 ListView.StateImages := nil;
2166
2167 if Category = nil then Exit;
2168 if Category.Count <= 0 then Exit;
2169 if Item = nil then Exit;
2170 if Item.Index >= Category.Count then Exit;
2171 if ListView.Items.Count = 0 then Exit;
2172
2173 if not (Category.Items[Item.Index] is TBoard) then Exit;
2174 Board := TBoard(Category.Items[Item.Index]);
2175
2176 if Board = nil then Exit;
2177
2178 if ListNumberVisibleAction.Checked then
2179 Item.Caption := IntToStr(Board.No) + ': ' + Board.Title
2180 else
2181 Item.Caption := Board.Title;
2182
2183 if Item.SubItems.Count <> 2 then begin
2184 Item.SubItems.Clear;
2185 Item.SubItems.Add('');
2186 Item.SubItems.Add('');
2187 end;
2188
2189 Item.ImageIndex := ITEM_ICON_BOARD1;
2190
2191 if Board.Round then
2192 Item.SubItems[0] := Board.RoundName // '鐃?鐃緒申'
2193 else
2194 Item.SubItems[0] := '';
2195
2196 if Board.RoundDate = ZERO_DATE then begin
2197 Item.SubItems[1] := '';
2198 end else
2199 Item.SubItems[1] := FormatDateTime('yyyy/mm/dd hh:mm:ss', Board.RoundDate);
2200 Item.Data := Board;
2201 end else if ActivListObj is TBoard then begin
2202 Board := TBoard(ActivListObj);
2203
2204 if GikoSys.Setting.ListIconVisible then
2205 ListView.StateImages := StateIconImageList
2206 else
2207 ListView.StateImages := nil;
2208
2209 case GikoForm.ViewType of
2210 gvtAll: BoardCnt := Board.Count;
2211 gvtLog: BoardCnt := Board.GetLogThreadCount;
2212 gvtNew: BoardCnt := Board.GetNewThreadCount;
2213 gvtUser: BoardCnt := Board.GetUserThreadCount;
2214 else
2215 BoardCnt := 0;
2216 end;
2217
2218 // if Board = nil then Exit;
2219 if BoardCnt <= 0 then Exit;
2220 if Item = nil then Exit;
2221 if Item.Index > BoardCnt then Exit;
2222 if ListView.Items.Count = 0 then Exit;
2223
2224 // if not (Board.Items[Item.Index] is TThreadItem) then Exit;
2225
2226 ThreadItem := nil;
2227 case GikoForm.ViewType of
2228 gvtAll: ThreadItem := TThreadItem(Board.Items[Item.Index]);
2229 gvtLog: ThreadItem := Board.GetLogThread(Item.Index);
2230 gvtNew: ThreadItem := Board.GetNewThread(Item.Index);
2231 gvtUser: ThreadItem := Board.GetUserThread(Item.Index);
2232 end;
2233
2234 if ThreadItem = nil then Exit;
2235
2236 // if ListNumberVisibleAction.Checked then
2237 // RepStr := IntToStr(ThreadItem.No) + ': ' + ThreadItem.Title
2238 // else
2239 RepStr := ThreadItem.Title;
2240 RepStr := CustomStringReplace(RepStr, '&lt;', '<' );
2241 RepStr := CustomStringReplace(RepStr, '&gt;', '>' );
2242 RepStr := CustomStringReplace(RepStr, '&quot;', '"' );
2243 RepStr := CustomStringReplace(RepStr, '&amp', '&' );
2244 //RepStr := StringReplace(RepStr, '鐃緒申鐃?', ',', [rfReplaceAll]);
2245
2246 if Item.SubItems.Count <> 6 then begin
2247 Item.SubItems.Clear;
2248 Item.SubItems.Add('');
2249 Item.SubItems.Add('');
2250 Item.SubItems.Add('');
2251 Item.SubItems.Add('');
2252 Item.SubItems.Add('');
2253 Item.SubItems.Add('');
2254 end;
2255
2256 if ListNumberVisibleAction.Checked then
2257 Item.Caption := IntToStr(ThreadItem.No) + ': ' + RepStr
2258 else
2259 Item.Caption := RepStr;
2260
2261 case ThreadItem.AgeSage of
2262 gasNone: Item.StateIndex := -1;
2263 gasNew: Item.StateIndex := 0;
2264 gasAge: Item.StateIndex := 1;
2265 gasSage: Item.StateIndex := 2;
2266 end;
2267
2268 if ThreadItem.IsLogFile then begin
2269 Item.ImageIndex := ITEM_ICON_THREADLOG1;
2270 Item.SubItems[0] := IntToStr(ThreadItem.AllResCount);
2271 Item.SubItems[1] := IntToStr(ThreadItem.Count);
2272 if ThreadItem.NewResCount = 0 then
2273 Item.SubItems[2] := ''
2274 else
2275 Item.SubItems[2] := IntToStr(ThreadItem.NewResCount);
2276 Item.SubItems[3] := '';
2277 if ThreadItem.Round then
2278 Item.SubItems[4] := ThreadItem.RoundName
2279 else
2280 Item.SubItems[4] := '';
2281 if ThreadItem.RoundDate = ZERO_DATE then begin
2282 Item.SubItems[5] := '';
2283 end else
2284 Item.SubItems[5] := FormatDateTime('yyyy/mm/dd hh:mm:ss', ThreadItem.RoundDate);
2285 if ThreadItem.NewArrival then
2286 Item.ImageIndex := ITEM_ICON_THREADNEW1;
2287 end else begin
2288 Item.ImageIndex := ITEM_ICON_THREAD1;
2289 Item.SubItems[0] := IntToStr(ThreadItem.AllResCount);
2290 Item.SubItems[1] := '';
2291 Item.SubItems[2] := '';
2292 Item.SubItems[3] := '';
2293 Item.SubItems[4] := '';
2294 Item.SubItems[5] := '';
2295 end;
2296 Item.Data := ThreadItem;
2297 end;
2298 end;
2299
2300 procedure TGikoForm.ListViewDataFind(Sender: TObject; Find: TItemFind;
2301 const FindString: String; const FindPosition: TPoint; FindData: Pointer;
2302 StartIndex: Integer; Direction: TSearchDirection; Wrap: Boolean;
2303 var Index: Integer);
2304 begin
2305 //
2306 end;
2307
2308 procedure TGikoForm.ListViewDataHint(Sender: TObject; StartIndex,
2309 EndIndex: Integer);
2310 begin
2311 //
2312 end;
2313
2314 procedure TGikoForm.ListViewDataStateChange(Sender: TObject; StartIndex,
2315 EndIndex: Integer; OldState, NewState: TItemStates);
2316 begin
2317 //
2318 end;
2319
2320 procedure TGikoForm.BrowserStatusTextChange(Sender: TObject; const Text: WideString);
2321 var
2322 p: TPoint;
2323 s: string;
2324 tmp2: string;
2325 URL: string;
2326 ATitle: Boolean;
2327
2328 threadItem : TThreadItem;
2329 board : TBoard;
2330 Protocol, Host, Path, Document, Port, Bookmark: string;
2331
2332 //wkInt: Integer;
2333 wkIntSt: Integer;
2334 wkIntTo: Integer;
2335 ActiveFileName: string;
2336 e: IHTMLElement;
2337 Ext: string;
2338 buf: string;
2339 PathRec: TPathRec;
2340 begin
2341 try
2342 try
2343 if (FActiveContent <> nil) and (Assigned(Browser.Document)) then begin
2344 if LowerCase(OleVariant(IHTMLDocument2(Browser.Document)).charset) <> 'shift_jis' then
2345 OleVariant(IHTMLDocument2(Browser.Document)).charset := 'shift_jis';
2346 end;
2347 except
2348 end;
2349 finally
2350 end;
2351 if PreviewTimer.Enabled then
2352 PreviewTimer.Enabled := False;
2353 Application.CancelHint;
2354 if GetActiveContent <> nil then
2355 ActiveFileName := ChangeFileExt(ExtractFileName(GetActiveContent.FileName), '')
2356 else
2357 ActiveFileName := '';
2358
2359 StatusBar.Panels[1].Text := Text;
2360
2361 if FHint <> nil then begin
2362 FHint.ReleaseHandle;
2363 FHint.ClearAllRes;
2364 end;
2365 if FPreviewBrowser <> nil then
2366 ShowWindow(FPreviewBrowser.Handle, SW_HIDE);
2367
2368 if not GikoSys.Setting.UnActivePopup then
2369 if not GikoForm.Active then
2370 Exit;
2371
2372 //file:///C:/Borland/Projects/gikoNavi/test/read.cgi/qa/990576336/10
2373 //file:///C:/Borland/Projects/gikoNavi/test/read.cgi/qa/990576336/10-15
2374
2375 s := '';
2376 Ext := AnsiLowerCase(ExtractFileExt(Text));
2377 if (Pos('http://', Text) = 1) and (GikoSys.Setting.PreviewVisible) and
2378 ((Ext = '.jpg') or (Ext = '.jpeg') or (Ext = '.gif') or (Ext = '.png')) then begin
2379 if FPreviewBrowser = nil then begin
2380 FPreviewBrowser := TPreviewBrowser.Create(Self);
2381 ShowWindow(FPreviewBrowser.Handle, SW_HIDE);
2382 TOleControl(FPreviewBrowser).Parent := nil;
2383 end;
2384 FPreviewBrowser.Navigate('about:blank');//鐃?鐃緒申鐃緒申鐃?鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃?
2385 FPreviewURL := Text;
2386 PreviewTimer.Interval := GikoSys.Setting.PreviewWait;
2387 PreviewTimer.Enabled := True;
2388 end else if (Pos('about:blank', Text) = 1) or (Pos('http://', Text) = 1) or (Pos('mailto:', Text) = 1) then begin
2389 if Pos('mailto:', Text) = 1 then begin
2390 s := StringReplace(Text, 'mailto:', '', [rfIgnoreCase]);
2391 //鐃?鐃?鐃?鐃?鐃?鐃緒申 鐃?鐃?鐃?3鐃緒申466鐃緒申鐃緒申鐃緒申鐃緒申
2392 GetCursorPos(p);
2393 p.x := p.x - TWebBrowser(Sender).ClientOrigin.x;
2394 p.y := p.y - TWebBrowser(Sender).ClientOrigin.y;
2395 e := IHTMLDocument2(TWebBrowser(Sender).Document).elementFromPoint(p.x, p.y);
2396 if (Assigned(e)) then begin
2397 tmp2 := GikoSys.ZenToHan(e.Get_outerText);
2398 if (GikoSys.IsNumeric(tmp2)) then begin
2399 //鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?
2400 wkIntSt := StrToInt(tmp2);
2401 wkIntTo := StrToInt(tmp2);
2402 //s := GetThreadText(wkBBS, wkKey, wkIntSt, wkIntTo, False, False);
2403 FHint.PopupType := gptThread;
2404 SetResPopupText(GetActiveContent, wkIntSt, wkIntTo, False, False);
2405 end else begin
2406 FHint.PopupType := gptRaw;
2407 FHint.Caption := s;
2408 end;
2409 end;
2410 end else begin
2411 URL := Text;
2412
2413 if Pos('about:blank..', URL) = 1 then begin
2414 threadItem := GetActiveContent;
2415 if AnsiPos('http://jbbs.shitaraba.com/', threadItem.URL) <> 0 then begin
2416 URL := Copy(threadItem.URL, 1, LastDelimiter('/',threadItem.URL));
2417 Gikosys.GetPopupResNumber(Text,PathRec.FSt,PathRec.FTo);
2418 if ( PathRec.FSt <> 0 ) and ( PathRec.FTo <> 0 ) then
2419 buf := IntToStr(PathRec.FSt) + '-' + IntToStr(PathRec.FTo)
2420 else if( PathRec.FSt <> 0 ) then
2421 buf := IntToStr(PathRec.FSt);
2422 end else if AnsiPos('machi.to/bbs/', threadItem.URL) <> 0 then begin
2423 URL := threaditem.URL;
2424 buf := Copy(Text,AnsiPos('&st=',Text),Length(Text)-AnsiPos('&st=',Text) + 1);
2425 end else begin
2426
2427 URL := Copy(threadItem.URL, 1, LastDelimiter('/',threadItem.URL));
2428 buf := Copy(Text,LastDelimiter('/',Text)+1,Length(Text)-LastDelimiter('/',Text));
2429 end;
2430 URL := URL + buf;
2431 end;
2432 PathRec := Gikosys.Parse2chURL2(URL);
2433 Gikosys.GetPopupResNumber(URL,PathRec.FSt,PathRec.FTo);
2434 GikoSys.ParseURI( URL, Protocol, Host, Path, Document, Port, Bookmark );
2435
2436 if PathRec.FDone or (not GikoSys.Is2chHost( Host )) then begin
2437
2438 URL := GikoSys.GetBrowsableThreadURL( URL );
2439 wkIntSt := PathRec.FSt;
2440 wkIntTo := PathRec.FTo;
2441
2442 if (wkIntSt = 0) and (wkIntTo = 0) then begin
2443 wkIntSt := 1;
2444 wkIntTo := 1;
2445 end else if (wkIntSt = 0) and (wkIntTo > 0) then begin
2446 wkIntSt := wkIntTo;
2447 end else if (wkIntSt > 0) and (wkIntTo = 0) then begin
2448 wkIntTo := wkIntSt;
2449 end else if wkIntSt > wkIntTo then begin
2450 //wkInt := wkIntTo;
2451 wkIntTo := wkIntSt;
2452 wkIntSt := wkIntTo;
2453 end;
2454 //if wkIntSt = 0 then
2455 // wkIntSt := 1;
2456 //if wkINtTo = 0 then
2457 // wkIntTo := 1;
2458 //if PathRec.FFirst then
2459 // wkIntSt := 1;
2460 if PathRec.FStBegin then
2461 wkIntSt := 1;
2462 if PathRec.FToEnd then
2463 wkIntTo := 9999;
2464
2465 ATitle := ActiveFileName <> PathRec.FKey;
2466
2467 threadItem := BBSsFindThreadFromURL( URL );
2468
2469 if (threadItem = nil) and GikoSys.Is2chHost( Host ) then begin
2470 board := BBSs[ 0 ].FindBBSID( PathRec.FBBS );
2471 if board <> nil then
2472 threadItem := board.Find( PathRec.FKey + '.dat' );
2473
2474 end;
2475
2476 if threadItem <> nil then begin
2477 //HintData := GetThreadText(PathRec.FBBS, PathRec.FKey, wkIntSt, wkIntTo, ATitle, PathRec.FFirst);
2478 FHint.PopupType := gptThread;
2479 SetResPopupText( threadItem, wkIntSt, wkIntTo, ATitle, PathRec.FFirst );
2480 end;
2481 end;
2482 end;
2483
2484 //if s <> '' then
2485 // ShowTextPopup(s);
2486 if FHint.PopupType = gptRaw then begin
2487 if FHint.Caption <> '' then
2488 ShowTextPopup;
2489 end else begin
2490 if (FHint.ResCount <> 0) or (FHint.Title <> '') then
2491 ShowTextPopup;
2492 end;
2493 end;
2494 end;
2495
2496 procedure TGikoForm.BrowserTitleChange(Sender: TObject;
2497 const Text: WideString);
2498 var
2499 Title: string;
2500 begin
2501 if (Text = BLANK_HTML) or (Text = GikoSys.GetHtmlTempFileName) then
2502 Title := CAPTION_NAME
2503 else
2504 Title := CAPTION_NAME + ' - [' + Text + ']';
2505 Caption := Title;
2506 //Application.Title := Title;
2507 end;
2508
2509 procedure TGikoForm.SetEnabledCloseButton(Enabled: Boolean);
2510 var
2511 SysMenu: HMenu;
2512 //SysMenuApp: HMenu;
2513 begin
2514 FEnabledCloseButton := Enabled;
2515 SysMenu := GetSystemMenu(Handle, False);
2516 //SysMenuApp := GetSystemMenu(Application.Handle, False);
2517
2518 if Enabled then begin
2519 EnableMenuItem(SysMenu, SC_CLOSE, MF_BYCOMMAND or MF_ENABLED);
2520 //EnableMenuItem(SysMenuApp, SC_CLOSE, MF_BYCOMMAND or MF_ENABLED);
2521 end else begin
2522 EnableMenuItem(SysMenu, SC_CLOSE, MF_BYCOMMAND or MF_GRAYED);
2523 //EnableMenuItem(SysMenuApp, SC_CLOSE, MF_BYCOMMAND or MF_GRAYED);
2524 end;
2525
2526 DrawMenuBar(Handle);
2527 //DrawMenuBar(Application.Handle);
2528 end;
2529
2530 procedure TGikoForm.TreeViewChanging(Sender: TObject; Node: TTreeNode;
2531 var AllowChange: Boolean);
2532 begin
2533 if FTreeType = gtt2ch then
2534 FSortIndex := -1;
2535 end;
2536
2537 procedure TGikoForm.ListViewKeyDown(Sender: TObject; var Key: Word;
2538 Shift: TShiftState);
2539 begin
2540 if Key = VK_BACK then begin
2541 // UpFolderButtonClick(Sender);
2542 end else if Key = VK_SPACE then begin
2543 // ListClick;
2544 end else if Key = VK_RETURN then begin
2545 ListDoubleClick;
2546 end;
2547 end;
2548
2549 function TGikoForm.GetHttpState: Boolean;
2550 begin
2551 Result := FHttpState;
2552 end;
2553
2554 procedure TGikoForm.ListViewColumnClick(Sender: TObject;
2555 Column: TListColumn);
2556 var
2557 i: Integer;
2558 wkBBS: TBBS;
2559 wkCategory: TCategory;
2560 wkBoard: TBoard;
2561 begin
2562 if FSortIndex = Column.Index then
2563 FSortOrder := not FSortOrder
2564 else
2565 FSortOrder := False;
2566
2567 for i := 0 to ListView.Columns.Count - 1 do
2568 ListView.Column[i].ImageIndex := -1;
2569 if FSortOrder then
2570 ListView.Column[Column.Index].ImageIndex := ITEM_ICON_SORT1
2571 else
2572 ListView.Column[Column.Index].ImageIndex := ITEM_ICON_SORT2;
2573
2574 Sort.SortNoFlag := ListNumberVisibleAction.Checked;
2575
2576 //if TObject(TreeView.Selected.Data) is TBBS then begin
2577 if TObject( FActiveList ) is TBBS then begin
2578 //wkBBS := TBBS(TreeView.Selected.Data);
2579 wkBBS := TBBS( FActiveList );
2580 Sort.SortOrder := FSortOrder;
2581 Sort.SortIndex := Column.Index;
2582 wkBBS.Sort(CategorySortProc);
2583 ListView.Refresh;
2584 //end else if TObject(TreeView.Selected.Data) is TCategory then begin
2585 end else if TObject( FActiveList ) is TCategory then begin
2586 //wkCategory := TCategory(TreeView.Selected.Data);
2587 wkCategory := TCategory( FActiveList );
2588 Sort.SortOrder := FSortOrder;
2589 Sort.SortIndex := Column.Index;
2590 wkCategory.Sort(BoardSortProc);
2591 ListView.Refresh;
2592 //end else if TObject(TreeView.Selected.Data) is TBoard then begin
2593 end else if TObject( FActiveList ) is TBoard then begin
2594 //wkBoard := TBoard(TreeView.Selected.Data);
2595 wkBoard := TBoard( FActiveList );
2596 Sort.SortOrder := FSortOrder;
2597 Sort.SortIndex := Column.Index;
2598 wkBoard.Sort(ThreadItemSortProc);
2599 ListView.Refresh;
2600 end;
2601 FSortIndex := Column.Index;
2602 end;
2603
2604 procedure TGikoForm.MenuToolBarCustomDrawButton(Sender: TToolBar;
2605 Button: TToolButton; State: TCustomDrawState; var DefaultDraw: Boolean);
2606 var
2607 ARect: TRect;
2608 begin
2609 DefaultDraw := True;
2610 Exit;
2611 DefaultDraw := False;
2612 if (cdsSelected in State) or (cdsHot in State) then begin
2613 Sender.Canvas.Brush.Color := clHighlight;
2614 Sender.Canvas.Font.Color := clHighlightText;
2615 end else begin
2616 Sender.Canvas.Brush.Color := clBtnFace;
2617 Sender.Canvas.Font.Color := clBtnText;
2618 end;
2619 ARect := Rect(Button.Left, Button.Top, Button.Left + Button.Width, Button.Top + Button.Height);
2620 Sender.Canvas.FillRect(ARect);
2621 DrawText(Sender.Canvas.Handle, PChar(Button.Caption), -1, ARect, DT_SINGLELINE or DT_VCENTER or DT_CENTER);
2622 end;
2623
2624 function TGikoForm.GetTreeNode(Data: TObject): TTreeNode;
2625 var
2626 Nodes: TTreeNodes;
2627 i: integer;
2628 begin
2629 Nodes := TreeView.Items;
2630
2631 for i := 0 to Nodes.Count - 1 do begin
2632 if Nodes.Item[i].Data = Data then begin
2633 Result := Nodes.Item[i];
2634 Exit;
2635 end;
2636 end;
2637 Result := nil;
2638 end;
2639
2640 procedure TGikoForm.BrowserBeforeNavigate2(Sender: TObject;
2641 const pDisp: IDispatch; var URL, Flags, TargetFrameName, PostData,
2642 Headers: OleVariant; var Cancel: WordBool);
2643 var
2644 sNo: string;
2645 p: TPoint;
2646 const
2647 kMenuName: string = 'menu:';
2648 begin
2649
2650 if Pos(kMenuName, URL) <> 0 then begin
2651 sNo := Copy( URL, Pos( kMenuName, URL ) + Length( kMenuName ), Length( URL ) );
2652
2653 if not GikoSys.IsNumeric(sNo) then Exit;
2654
2655 Cancel := True;
2656 GetCursorpos(p);
2657 KokoPopupMenu.Tag := StrToInt(sNo);
2658 KokoPopupMenu.Popup(p.x, p.y);
2659 end else if Pos('mailto', LowerCase(URL)) <> 0 then begin
2660 Cancel := not GikoSys.Setting.OpenMailer;
2661 end;
2662
2663 end;
2664
2665 procedure TGikoForm.ListViewAdvancedCustomDrawItem(Sender: TCustomListView;
2666 Item: TListItem; State: TCustomDrawState; Stage: TCustomDrawStage;
2667 var DefaultDraw: Boolean);
2668 var
2669 ThreadItem: TThreadItem;
2670 begin
2671 //
2672 // TListView(Sender).Canvas.Font.Style := [];
2673 if TObject(Item.Data) is TThreadItem then begin
2674 ThreadItem := TThreadItem(Item.Data);
2675 if ( FUseOddResOddColor ) and ( ThreadItem.Count <> 0 ) and ( ThreadItem.AllResCount <> ThreadItem.Count) then begin
2676 ListView.Canvas.Brush.Color := FOddColor;
2677 end else begin
2678 ListView.Canvas.Brush.Color := FListViewBackGroundColor;
2679 end;
2680 // if (ThreadItem.Kokomade <> ThreadItem.Count) and (ThreadItem.IsLogFile) then
2681 if ThreadItem.UnRead then
2682 TListView(Sender).Canvas.Font.Style := [fsBold];
2683 end;
2684 end;
2685
2686 procedure TGikoForm.AppFormDeactivate(Sender: TObject);
2687 begin
2688 if Application.Terminated then
2689 Exit;
2690 if PreviewTimer.Enabled then
2691 PreviewTimer.Enabled := False;
2692 //鐃?鐃?鐃?鐃?鐃?鐃緒申鐃緒申鐃緒申鐃?鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃?鐃緒申鐃?鐃緒申鐃緒申鐃緒申
2693 if FHint <> nil then begin
2694 FHint.ReleaseHandle;
2695 FHint.ClearAllRes;
2696 // FHint.Free;
2697 // FHint := nil;
2698 end;
2699 if FPreviewBrowser <> nil then
2700 ShowWindow(FPreviewBrowser.Handle, SW_HIDE);
2701
2702 end;
2703
2704 procedure TGikoForm.TreeViewCustomDraw(Sender: TCustomTreeView;
2705 const ARect: TRect; var DefaultDraw: Boolean);
2706 var
2707 NodeRect: TRect;
2708 i, j: Integer;
2709 IsBoardNode: Boolean;
2710 Cnt: Integer;
2711 CntText: string;
2712 TextWidth: Integer;
2713 TextRect: TRect;
2714 Board: TBoard;
2715 Category: TCategory;
2716 Bitmap: TBitmap;
2717 NodeWidth: Integer;
2718 begin
2719 DefaultDraw := True;
2720
2721 if FTreeType = gttHistory then Exit;
2722
2723 TreeView.Canvas.Font.Color := clBlue;
2724 IsBoardNode := False;
2725
2726 for i := 0 to TreeView.Items.Count - 1 do begin
2727 Cnt := 0;
2728 if not TreeView.Items[i].IsVisible then
2729 continue;
2730
2731 if TObject(TreeView.Items[i].Data) is TCategory then begin
2732 if TreeView.Items[i].Expanded then
2733 continue;
2734
2735 IsBoardNode := False;
2736 Category := TCategory(TreeView.Items[i].Data);
2737 for j := 0 to Category.Count - 1 do begin
2738 Board := Category.Items[j];
2739 if Board <> nil then begin
2740 if Board.UnRead > 0 then begin
2741 Cnt := 1;
2742 Break;
2743 end;
2744 end;
2745 end;
2746 if Cnt <> 1 then
2747 continue;
2748 end else if TObject(TreeView.Items[i].Data) is TBoard then begin
2749 IsBoardNode := True;
2750 Board := TBoard(TreeView.Items[i].Data);
2751 Cnt := Board.UnRead;
2752 if Cnt <= 0 then
2753 continue;
2754 end else
2755 continue;
2756
2757 Bitmap := TBitmap.Create;
2758 try
2759 Bitmap.Canvas.Font.Assign(TreeView.Canvas.Font);
2760 Bitmap.Canvas.Font.Style := [fsBold];
2761 NodeWidth := Bitmap.Canvas.TextWidth(TreeView.Items[i].Text);
2762 finally
2763 Bitmap.Free;
2764 end;
2765
2766 NodeRect := TreeView.Items[i].DisplayRect(True);
2767
2768 if IsBoardNode then
2769 CntText := '(' + IntToStr(Cnt) + ')'
2770 else if Cnt = 1 then
2771 CntText := '(+)';
2772
2773
2774 TextWidth := TreeView.Canvas.TextWidth(CntText);
2775
2776 TextRect := Rect(NodeRect.Left + NodeWidth + 8,
2777 NodeRect.Top,
2778 NodeRect.Left + NodeWidth + TextWidth + 8,
2779 NodeRect.Bottom);
2780 DrawText(TreeView.Canvas.Handle,
2781 PChar(CntText),
2782 -1,
2783 TextRect,
2784 DT_SINGLELINE or DT_VCENTER);
2785 end;
2786 TreeViewCustomDrawItem(nil, nil, [], DefaultDraw);
2787 end;
2788
2789 procedure TGikoForm.TreeViewCustomDrawItem(Sender: TCustomTreeView;
2790 Node: TTreeNode; State: TCustomDrawState; var DefaultDraw: Boolean);
2791 var
2792 Board: TBoard;
2793 Category: TCategory;
2794 i: Integer;
2795 begin
2796 DefaultDraw := True;
2797
2798 if FTreeType = gttHistory then Exit;
2799
2800 TreeView.Canvas.Font.Style := [];
2801 if Node <> nil then begin
2802 if TObject(Node.Data) is TCategory then begin
2803 Category := TCategory(Node.Data);
2804 for i := 0 to Category.Count - 1 do begin
2805 Board := Category.Items[i];
2806 if Board <> nil then begin
2807 if Board.UnRead > 0 then begin
2808 TreeView.Canvas.Font.Style := [fsBold];
2809 Break;
2810 end;
2811 end;
2812 end;
2813 end else if TObject(Node.Data) is TBoard then begin
2814 Board := TBoard(Node.Data);
2815 if Board.UnRead > 0 then
2816 TreeView.Canvas.Font.Style := [fsBold];
2817 end;
2818 end;
2819 end;
2820
2821 procedure TGikoForm.TreeViewExpanded(Sender: TObject; Node: TTreeNode);
2822 begin
2823 TreeView.Invalidate;
2824
2825 if TObject(Node.Data) is TBBS then begin
2826 TBBS(Node.Data).NodeExpand := True;
2827 end else if TObject(Node.Data) is TCategory then begin
2828 TCategory(Node.Data).NodeExpand := True;
2829 end else if TObject(Node.Data) is TBoard then begin
2830 TBoard(Node.Data).NodeExpand := True;
2831 end;
2832 end;
2833
2834 {procedure TGikoForm.CabinetPanelVisible(PanelVisible: Boolean);
2835 begin
2836 TreeSplitter.Visible := PanelVisible;
2837 CabinetPanel.Visible := PanelVisible;
2838 CabinetToolButton.Down := PanelVisible;
2839 end;}
2840
2841 procedure TGikoForm.ListViewAllSelect;
2842 begin
2843 ListView.SetFocus;
2844 ListView.SelectAll;
2845 end;
2846
2847 procedure TGikoForm.TreeViewDblClick(Sender: TObject);
2848 var
2849 Board: TBoard;
2850 ThreadItem: TThreadItem;
2851 APoint: TPoint;
2852 HitTest: THitTests;
2853 begin
2854 GetCursorPos(APoint);
2855 APoint := TreeView.ScreenToClient(APoint);
2856 HitTest := TreeView.GetHitTestInfoAt(APoint.x, APoint.y);
2857 if not (htOnLabel in HitTest) then Exit;
2858 if TreeView.Selected = nil then Exit;
2859
2860 if FTreeType = gtt2ch then begin
2861 if not (TObject(TreeView.Selected.Data) is TBoard) then Exit;
2862 Board := TBoard(TreeView.Selected.Data);
2863 DownloadList(Board);
2864 end else if FTreeType = gttHistory then begin
2865 if not (TObject(TreeView.Selected.Data) is TFavoriteThreadItem) then Exit;
2866 ThreadItem := TFavoriteThreadItem(TreeView.Selected.Data).Item;
2867 DownloadContent(ThreadItem);
2868 end;
2869 end;
2870
2871 procedure TGikoForm.FavoriteTreeViewClick(Sender: TObject);
2872 begin
2873
2874 FavoriteClick( TObject( FavoriteTreeView.Selected ) );
2875
2876 end;
2877
2878 procedure TGikoForm.DownloadMsg(Sender: TObject; Item: TDownloadItem; Msg: string; Icon: TGikoMessageIcon);
2879 begin
2880 AddMessageList(Msg, nil, Icon);
2881 end;
2882
2883 procedure TGikoForm.DownloadEnd(Sender: TObject; Item: TDownloadItem);
2884 var
2885 ATitle: string;
2886 s: string;
2887 begin
2888 try
2889 if Item.DownType = gdtBoard then
2890 ATitle := Item.Board.Title
2891 else
2892 ATitle := Item.ThreadItem.Title;
2893 if ATitle = '' then
2894 ATitle := '鐃?鐃緒申鐃緒申鐃?鐃緒申鐃?';
2895
2896 if Item.State in [gdsComplete, gdsDiffComplete] then begin
2897 //鐃緒申鐃緒申鐃?鐃緒申
2898 if Item.DownType = gdtBoard then begin
2899 //鐃緒申
2900 Item.SaveListFile;
2901 AddMessageList(ATitle + ' [鐃?鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申鐃緒申]', nil, gmiOK);
2902 if GetActiveList = Item.Board then
2903 SetActiveList(Item.Board);
2904 Item.Board.Modified := True;
2905 Item.Board.IsThreadDatRead := True;
2906 PlaySound('New');
2907 end else if Item.DownType = gdtThread then begin
2908 //鐃?鐃緒申
2909