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