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