ギコナビ
Revision | b9c443f9a50e625d70828ef4c842087742d62774 (tree) |
---|---|
Time | 2005-12-28 02:13:04 |
Author | cvs2git <cvs2git> |
Commiter | cvs2git |
This commit was manufactured by cvs2svn to create tag 'v1_51_0_631'.
@@ -967,7 +967,7 @@ begin | ||
967 | 967 | if MsgResult = IDNO then begin |
968 | 968 | Board.SPID := ''; |
969 | 969 | Board.PON := ''; |
970 | - FWork := false; | |
970 | + FWork := false; | |
971 | 971 | EnableMenuItem(SysMenu, SC_CLOSE, MF_BYCOMMAND or MF_ENABLED); |
972 | 972 | DrawMenuBar(Handle); |
973 | 973 | Exit; |
@@ -976,7 +976,7 @@ begin | ||
976 | 976 | end; |
977 | 977 | |
978 | 978 | if ResultType = grtOK then begin |
979 | - if (GikoSys.Setting.UseSamba) and (Timer1.Enabled) then | |
979 | + if GikoSys.Setting.UseSamba then | |
980 | 980 | WriteSambaTime(FHost, Now()); |
981 | 981 | State := gdsComplete; |
982 | 982 | end else if ResultType = grtCookie then begin |
@@ -1045,8 +1045,8 @@ begin | ||
1045 | 1045 | Exit; |
1046 | 1046 | end; |
1047 | 1047 | end else begin |
1048 | - if (GikoSys.Setting.UseSamba) and (Timer1.Enabled) then | |
1049 | - WriteSambaTime(FHost, Now()); | |
1048 | + if GikoSys.Setting.UseSamba then | |
1049 | + WriteSambaTime(FHost, Now()); | |
1050 | 1050 | State := gdsError; |
1051 | 1051 | raise Exception.Create(''); |
1052 | 1052 | end; |
@@ -1,6 +1,6 @@ | ||
1 | 1 | object GikoForm: TGikoForm |
2 | - Left = 363 | |
3 | - Top = 92 | |
2 | + Left = 153 | |
3 | + Top = 68 | |
4 | 4 | HorzScrollBar.Visible = False |
5 | 5 | VertScrollBar.Visible = False |
6 | 6 | AutoScroll = False |
@@ -98,6 +98,7 @@ object GikoForm: TGikoForm | ||
98 | 98 | Height = 167 |
99 | 99 | BorderStyle = bsNone |
100 | 100 | ChangeDelay = 50 |
101 | + DragMode = dmAutomatic | |
101 | 102 | HideSelection = False |
102 | 103 | Images = ItemIcon16 |
103 | 104 | Indent = 19 |
@@ -106,12 +107,16 @@ object GikoForm: TGikoForm | ||
106 | 107 | RightClickSelect = True |
107 | 108 | ShowRoot = False |
108 | 109 | TabOrder = 0 |
110 | + OnClick = TreeViewClick | |
109 | 111 | OnCollapsed = TreeViewCollapsed |
112 | + OnCollapsing = TreeViewCollapsing | |
110 | 113 | OnCustomDraw = TreeViewCustomDraw |
111 | 114 | OnCustomDrawItem = TreeViewCustomDrawItem |
115 | + OnDblClick = TreeViewDblClick | |
116 | + OnExpanding = TreeViewExpanding | |
112 | 117 | OnExpanded = TreeViewExpanded |
113 | 118 | OnKeyDown = TreeViewKeyDown |
114 | - OnMouseDown = TreeViewMouseDown | |
119 | + OnMouseUp = TreeViewMouseUp | |
115 | 120 | end |
116 | 121 | object Panel3: TPanel |
117 | 122 | Left = 0 |
@@ -226,13 +231,18 @@ object GikoForm: TGikoForm | ||
226 | 231 | RightClickSelect = True |
227 | 232 | ShowRoot = False |
228 | 233 | TabOrder = 3 |
234 | + OnClick = FavoriteTreeViewClick | |
235 | + OnCollapsing = FavoriteTreeViewCollapsing | |
236 | + OnDblClick = FavoriteTreeViewDblClick | |
229 | 237 | OnDragDrop = FavoriteTreeViewDragDrop |
230 | 238 | OnDragOver = FavoriteTreeViewDragOver |
231 | 239 | OnEdited = FavoriteTreeViewEdited |
232 | 240 | OnEditing = FavoriteTreeViewEditing |
233 | 241 | OnEndDrag = FavoriteTreeViewEndDrag |
242 | + OnExpanding = FavoriteTreeViewExpanding | |
234 | 243 | OnKeyDown = FavoriteTreeViewKeyDown |
235 | 244 | OnMouseDown = FavoriteTreeViewMouseDown |
245 | + OnMouseUp = FavoriteTreeViewMouseUp | |
236 | 246 | end |
237 | 247 | object FavoriteToolBar: TToolBar |
238 | 248 | Left = 0 |
@@ -358,7 +358,7 @@ type | ||
358 | 358 | N63: TMenuItem; |
359 | 359 | N64: TMenuItem; |
360 | 360 | dummy1: TMenuItem; |
361 | - TreeSelectLogDeletePopupMenu: TMenuItem; | |
361 | + TreeSelectLogDeletePopupMenu: TMenuItem; | |
362 | 362 | N65: TMenuItem; |
363 | 363 | BBSSelectPopupMenu: TPopupMenu; |
364 | 364 | PlugInMenu: TMenuItem; |
@@ -378,7 +378,7 @@ type | ||
378 | 378 | ResRangeKokoPMenuItem: TMenuItem; |
379 | 379 | ResRangeNewPMenuItem: TMenuItem; |
380 | 380 | ResRangeAllPMenuItem: TMenuItem; |
381 | - BrowsBoradHeadAction1: TMenuItem; | |
381 | + BrowsBoradHeadAction1: TMenuItem; | |
382 | 382 | ThreadRangePopupMenu: TPopupMenu; |
383 | 383 | A15: TMenuItem; |
384 | 384 | L8: TMenuItem; |
@@ -398,7 +398,7 @@ type | ||
398 | 398 | N73: TMenuItem; |
399 | 399 | SelectComboBoxPanel: TPanel; |
400 | 400 | SelectComboBoxSplitter: TImage; |
401 | - ToolButton1: TToolButton; | |
401 | + ToolButton1: TToolButton; | |
402 | 402 | N74: TMenuItem; |
403 | 403 | WikiFAQ: TMenuItem; |
404 | 404 | GikoApplicationEvents: TApplicationEvents; |
@@ -423,6 +423,7 @@ type | ||
423 | 423 | procedure TreeViewCustomDrawItem(Sender: TCustomTreeView; |
424 | 424 | Node: TTreeNode; State: TCustomDrawState; var DefaultDraw: Boolean); |
425 | 425 | procedure TreeViewExpanded(Sender: TObject; Node: TTreeNode); |
426 | + procedure TreeViewDblClick(Sender: TObject); | |
426 | 427 | procedure ListViewCustomDraw(Sender: TCustomListView; |
427 | 428 | const ARect: TRect; var DefaultDraw: Boolean); |
428 | 429 | procedure ListViewMouseDown(Sender: TObject; Button: TMouseButton; |
@@ -494,6 +495,7 @@ type | ||
494 | 495 | procedure FavoriteTreeViewKeyDown(Sender: TObject; var Key: Word; |
495 | 496 | Shift: TShiftState); |
496 | 497 | procedure FavoriteTreePopupMenuPopup(Sender: TObject); |
498 | + procedure FavoriteTreeViewDblClick(Sender: TObject); | |
497 | 499 | procedure LinkToolBarDragDrop(Sender, Source: TObject; X, Y: Integer); |
498 | 500 | procedure BrowserTabMouseUp(Sender: TObject; Button: TMouseButton; |
499 | 501 | Shift: TShiftState; X, Y: Integer); |
@@ -512,12 +514,15 @@ type | ||
512 | 514 | var Handled: Boolean); |
513 | 515 | procedure BrowserTabPopupMenuPopup(Sender: TObject); |
514 | 516 | procedure BrowserTabResize(Sender: TObject); |
517 | + procedure TreeViewClick(Sender: TObject); | |
515 | 518 | procedure TreeViewKeyDown(Sender: TObject; var Key: Word; |
516 | 519 | Shift: TShiftState); |
517 | 520 | procedure FavoriteTreeViewMouseDown(Sender: TObject; |
518 | 521 | Button: TMouseButton; Shift: TShiftState; X, Y: Integer); |
519 | 522 | procedure MessagePanelResize(Sender: TObject); |
520 | 523 | procedure OnResized; |
524 | + procedure FavoriteTreeViewMouseUp(Sender: TObject; | |
525 | + Button: TMouseButton; Shift: TShiftState; X, Y: Integer); | |
521 | 526 | procedure SelectTimerTimer(Sender: TObject); |
522 | 527 | procedure ListViewColumnRightClick(Sender: TObject; |
523 | 528 | Column: TListColumn; Point: TPoint); |
@@ -533,16 +538,27 @@ type | ||
533 | 538 | Shift: TShiftState); |
534 | 539 | procedure FavoriteTreeViewEditing(Sender: TObject; Node: TTreeNode; |
535 | 540 | var AllowEdit: Boolean); |
536 | - procedure CabinetCloseSpeedButtonClick(Sender: TObject); | |
541 | + procedure CabinetCloseSpeedButtonClick(Sender: TObject); | |
537 | 542 | procedure FavoriteArrangeToolButtonClick(Sender: TObject); |
538 | 543 | procedure GikoApplicationEventsMessage(var Msg: tagMSG; |
539 | 544 | var Handled: Boolean); |
540 | 545 | procedure GikoApplicationEventsDeactivate(Sender: TObject); |
541 | 546 | procedure GikoApplicationEventsException(Sender: TObject; E: Exception); |
542 | - procedure TreeViewMouseDown(Sender: TObject; Button: TMouseButton; | |
547 | + procedure FavoriteTreeViewClick(Sender: TObject); | |
548 | + procedure FavoriteTreeViewCollapsing(Sender: TObject; Node: TTreeNode; | |
549 | + var AllowCollapse: Boolean); | |
550 | + procedure FavoriteTreeViewExpanding(Sender: TObject; Node: TTreeNode; | |
551 | + var AllowExpansion: Boolean); | |
552 | + procedure TreeViewCollapsing(Sender: TObject; Node: TTreeNode; | |
553 | + var AllowCollapse: Boolean); | |
554 | + procedure TreeViewExpanding(Sender: TObject; Node: TTreeNode; | |
555 | + var AllowExpansion: Boolean); | |
556 | + procedure TreeViewMouseUp(Sender: TObject; Button: TMouseButton; | |
543 | 557 | Shift: TShiftState; X, Y: Integer); |
544 | 558 | private |
545 | 559 | { Private é¾ } |
560 | + FSortIndex: Integer; | |
561 | + FSortOrder: Boolean; | |
546 | 562 | FEnabledCloseButton: Boolean; |
547 | 563 | FClickNode: TTreeNode; |
548 | 564 | FHttpState: Boolean; |
@@ -689,6 +705,8 @@ type | ||
689 | 705 | property ToolBarSettingSender : TToolBarSettingSenderType |
690 | 706 | read FToolBarSettingSender write FToolBarSettingSender; |
691 | 707 | property ScreenCursor : TCursor read GetScreenCursor write SetScreenCursor; |
708 | + property SortIndex: Integer read FSortIndex write FSortIndex; | |
709 | + property SortOrder: Boolean read FSortOrder write FSortOrder; | |
692 | 710 | property ActiveBBS : TBBS read FActiveBBS write FActiveBBS; |
693 | 711 | property WorkCount: Integer read FWorkCount write FWorkCount; |
694 | 712 | procedure SetContent(inThread: TBrowserRecord); |
@@ -1200,7 +1218,6 @@ begin | ||
1200 | 1218 | FavoriteAddToolButton.Caption := 'ÇÁ...'; |
1201 | 1219 | AntiIndivAbonMenuItem.Caption := 'ÂÊ Ú`ñð'; |
1202 | 1220 | |
1203 | - | |
1204 | 1221 | end; |
1205 | 1222 | |
1206 | 1223 | // CoolBar ÌÝèðÏÉÛ¶ |
@@ -1985,35 +2002,27 @@ procedure TGikoForm.ListViewColumnClick(Sender: TObject; | ||
1985 | 2002 | var |
1986 | 2003 | id, idx : Integer; |
1987 | 2004 | orderList : TList; |
1988 | - vSortIndex : Integer; | |
1989 | - vSortOrder : Boolean; | |
1990 | 2005 | begin |
1991 | 2006 | idx := TListViewUtils.ActiveListTrueColumn( Column ).Tag; |
1992 | - if TObject( FActiveList ) is TBBS then begin | |
1993 | - orderList := GikoSys.Setting.BBSColumnOrder; | |
1994 | - vSortIndex := GikoSys.Setting.BBSSortIndex; | |
1995 | - vSortOrder := GikoSys.Setting.BBSSortOrder; | |
1996 | - end else if TObject( FActiveList ) is TCategory then begin | |
1997 | - orderList := GikoSys.Setting.CategoryColumnOrder; | |
1998 | - vSortIndex := GikoSys.Setting.CategorySortIndex; | |
1999 | - vSortOrder := GikoSys.Setting.CategorySortOrder; | |
2000 | - end else if TObject( FActiveList ) is TBoard then begin | |
2001 | - orderList := GikoSys.Setting.BoardColumnOrder; | |
2002 | - vSortIndex := GikoSys.Setting.BoardSortIndex; | |
2003 | - vSortOrder := GikoSys.Setting.BoardSortOrder; | |
2004 | - end else | |
2007 | + | |
2008 | + if TObject( FActiveList ) is TBBS then | |
2009 | + orderList := GikoSys.Setting.BBSColumnOrder | |
2010 | + else if TObject( FActiveList ) is TCategory then | |
2011 | + orderList := GikoSys.Setting.CategoryColumnOrder | |
2012 | + else if TObject( FActiveList ) is TBoard then | |
2013 | + orderList := GikoSys.Setting.BoardColumnOrder | |
2014 | + else | |
2005 | 2015 | Exit; |
2006 | 2016 | |
2007 | 2017 | id := Integer( orderList[ idx ] ); |
2008 | 2018 | |
2009 | - | |
2010 | - if vSortIndex = id then | |
2011 | - vSortOrder := not vSortOrder | |
2019 | + if FSortIndex = id then | |
2020 | + FSortOrder := not FSortOrder | |
2012 | 2021 | else begin |
2013 | - vSortOrder := id = 0; | |
2022 | + FSortOrder := id = 0; | |
2014 | 2023 | end; |
2015 | 2024 | |
2016 | - TListViewUtils.ListViewSort(Sender, ListView, Column, GikoDM.ListNumberVisibleAction.Checked, vSortOrder); | |
2025 | + TListViewUtils.ListViewSort(Sender, ListView, Column, GikoDM.ListNumberVisibleAction.Checked, FSortOrder, FSortIndex ); | |
2017 | 2026 | end; |
2018 | 2027 | |
2019 | 2028 | procedure TGikoForm.MenuToolBarCustomDrawButton(Sender: TToolBar; |
@@ -2212,13 +2221,31 @@ begin | ||
2212 | 2221 | ListView.SetFocus; |
2213 | 2222 | ListView.SelectAll; |
2214 | 2223 | end; |
2224 | +// ************************************************************************* | |
2225 | +//! c[r [Ì_uNbNCxg | |
2226 | +// ************************************************************************* | |
2227 | +procedure TGikoForm.TreeViewDblClick(Sender: TObject); | |
2228 | +var | |
2229 | + pos : TPoint; | |
2230 | + rect: TRect; | |
2231 | +begin | |
2232 | + pos := FMouseDownPos; | |
2233 | + if (FClickNode <> nil) and (FClickNode = TreeView.GetNodeAt(pos.X, pos.Y)) then begin | |
2234 | + //}EXªnodeÌãÉ¢é© | |
2235 | + rect := FClickNode.DisplayRect(true); | |
2236 | + if ((rect.Left <= pos.X) and (rect.Right >= pos.X)) and | |
2237 | + ((rect.Bottom >= pos.Y) and (rect.Top <= pos.Y)) then begin | |
2238 | + TreeDoubleClick( FClickNode ); | |
2239 | + FClickNode := nil; | |
2240 | + end; | |
2241 | + end; | |
2242 | +end; | |
2243 | + | |
2215 | 2244 | procedure TGikoForm.DownloadMsg(Sender: TObject; Item: TDownloadItem; Msg: string; Icon: TGikoMessageIcon); |
2216 | 2245 | begin |
2217 | 2246 | AddMessageList(Msg, nil, Icon); |
2218 | 2247 | end; |
2219 | -// ************************************************************************* | |
2220 | -//! _E[hª®¹µ½Æ«É¶·éCxg | |
2221 | -// ************************************************************************* | |
2248 | + | |
2222 | 2249 | procedure TGikoForm.DownloadEnd(Sender: TObject; Item: TDownloadItem); |
2223 | 2250 | var |
2224 | 2251 | ATitle: string; |
@@ -2244,11 +2271,6 @@ begin | ||
2244 | 2271 | AddMessageList(ATitle + ' ' + GikoSys.GetGikoMessage(gmSureItiran), nil, gmiOK); |
2245 | 2272 | if GetActiveList = Item.Board then begin |
2246 | 2273 | FActiveList := nil; |
2247 | - //©®\[gÌêÂêÌ\[gðNA·é | |
2248 | - if (GikoSys.Setting.AutoSortThreadList) then begin | |
2249 | - GikoSys.Setting.BoardSortIndex := 0; | |
2250 | - GikoSys.Setting.BoardSortOrder := True; | |
2251 | - end; | |
2252 | 2274 | SetActiveList(Item.Board); |
2253 | 2275 | end; |
2254 | 2276 | Item.Board.Modified := True; |
@@ -2524,9 +2546,6 @@ begin | ||
2524 | 2546 | BrowserNullTab := TBrowserRecord.Create; |
2525 | 2547 | BrowserNullTab.Browser := Browser; |
2526 | 2548 | end; |
2527 | - if BrowserNullTab.thread <> ThreadItem then begin | |
2528 | - BrowserNullTab.Movement := ''; | |
2529 | - end; | |
2530 | 2549 | BrowserNullTab.thread := ThreadItem; |
2531 | 2550 | Result := BrowserNullTab; |
2532 | 2551 | BrowserTab.TabIndex := -1; |
@@ -2556,7 +2575,6 @@ begin | ||
2556 | 2575 | idx := BrowserTab.TabIndex; |
2557 | 2576 | if (FActiveContent <> nil) and |
2558 | 2577 | (FActiveContent.Thread <> Thread.Thread) and |
2559 | - (FActiveContent.Browser <> nil) and | |
2560 | 2578 | (Assigned(FActiveContent.Browser.Document)) then begin |
2561 | 2579 | try |
2562 | 2580 | try |
@@ -2728,19 +2746,9 @@ begin | ||
2728 | 2746 | ListView.Selected := nil; |
2729 | 2747 | // ListView.Columns.Clear; |
2730 | 2748 | if (FActiveContent <> nil) and (FActiveContent.Thread <> nil) |
2731 | - and (FActiveContent.Thread.IsLogFile) then begin | |
2732 | - try | |
2733 | - Self.Caption := GikoDataModule.CAPTION_NAME + ' - [' + FActiveContent.Thread.Title + ']' | |
2734 | - except | |
2735 | - on E: Exception do begin | |
2736 | - //XêDLãÈÇÉFActiveContentÌÂThreadª | |
2737 | - //í³êÄ¢éêª éÌű±Ä·é | |
2738 | - ReleaseBrowser(FActiveContent); | |
2739 | - FActiveContent.Thread := nil; | |
2740 | - Self.Caption := GikoDataModule.CAPTION_NAME; | |
2741 | - end; | |
2742 | - end; | |
2743 | - end else | |
2749 | + and (FActiveContent.Thread.IsLogFile) then | |
2750 | + Self.Caption := GikoDataModule.CAPTION_NAME + ' - [' + FActiveContent.Thread.Title + ']' | |
2751 | + else | |
2744 | 2752 | Self.Caption := GikoDataModule.CAPTION_NAME; |
2745 | 2753 | //Application.Title := CAPTION_NAME; |
2746 | 2754 |
@@ -2749,11 +2757,14 @@ begin | ||
2749 | 2757 | Screen.Cursor := crHourGlass; |
2750 | 2758 | try |
2751 | 2759 | if Obj is TBBS then begin |
2752 | - TListViewUtils.SetCategoryListItem(TBBS(obj), ListView, GikoDM.ListNumberVisibleAction.Checked); | |
2760 | + TListViewUtils.SetCategoryListItem(TBBS(obj), ListView, GikoDM.ListNumberVisibleAction.Checked, | |
2761 | + FSortIndex, FSortOrder); | |
2753 | 2762 | end else if Obj is TCategory then begin |
2754 | - TListViewUtils.SetBoardListItem(TCategory(Obj), ListView, GikoDM.ListNumberVisibleAction.Checked); | |
2763 | + TListViewUtils.SetBoardListItem(TCategory(Obj), ListView, GikoDM.ListNumberVisibleAction.Checked, | |
2764 | + FSortIndex, FSortOrder); | |
2755 | 2765 | end else if Obj is TBoard then begin |
2756 | - TListViewUtils.SetThreadListItem(TBoard(Obj), ListView, GikoDM.ListNumberVisibleAction.Checked); | |
2766 | + TListViewUtils.SetThreadListItem(TBoard(Obj), ListView, GikoDM.ListNumberVisibleAction.Checked, | |
2767 | + FSortIndex, FSortOrder); | |
2757 | 2768 | end; |
2758 | 2769 | finally |
2759 | 2770 | Screen.Cursor := crDefault; |
@@ -4431,7 +4442,9 @@ end; | ||
4431 | 4442 | |
4432 | 4443 | procedure TGikoForm.FavoriteClick(Sender: TObject); |
4433 | 4444 | begin |
4445 | + | |
4434 | 4446 | FavoriteClick( Sender, True ); |
4447 | + | |
4435 | 4448 | end; |
4436 | 4449 | |
4437 | 4450 | procedure TGikoForm.FavoriteClick(Sender: TObject; ActiveTab: Boolean); |
@@ -6092,10 +6105,7 @@ begin | ||
6092 | 6105 | FavoriteTreeView.Selected.Expanded := not FavoriteTreeView.Selected.Expanded; |
6093 | 6106 | end; |
6094 | 6107 | VK_SPACE: |
6095 | - begin | |
6096 | - FClickNode := FavoriteTreeView.Selected; | |
6097 | - GikoDM.FavoriteTreeViewReloadActionExecute( Sender ); | |
6098 | - end; | |
6108 | + FavoriteTreeViewDblClick( Sender ); | |
6099 | 6109 | end; |
6100 | 6110 | end else begin |
6101 | 6111 | //ÒWÉESCðµ½çAÒWðI¹µÄA³Ì¶ñÉß· |
@@ -6228,6 +6238,27 @@ begin | ||
6228 | 6238 | end; |
6229 | 6239 | |
6230 | 6240 | end; |
6241 | +// ************************************************************************* | |
6242 | +//! ¨CÉüèc[Ì_uNbNCxg | |
6243 | +// ************************************************************************* | |
6244 | +procedure TGikoForm.FavoriteTreeViewDblClick(Sender: TObject); | |
6245 | +var | |
6246 | + pos : TPoint; | |
6247 | + rect: TRect; | |
6248 | +begin | |
6249 | + //NbNÌIðCxgƯ¶Èç_uNbNÀs | |
6250 | + pos := FMouseDownPos; | |
6251 | + if (FClickNode <> nil) and (FClickNode = FavoriteTreeView.GetNodeAt(pos.X, pos.Y)) then begin | |
6252 | + //}EXªnodeÌãÉ¢é© | |
6253 | + rect := FClickNode.DisplayRect(true); | |
6254 | + if ((rect.Left <= pos.X) and (rect.Right >= pos.X)) and | |
6255 | + ((rect.Bottom >= pos.Y) and (rect.Top <= pos.Y)) then begin | |
6256 | + GikoDM.FavoriteTreeViewReloadActionExecute( Sender ); | |
6257 | + FClickNode := nil; | |
6258 | + end; | |
6259 | + end; | |
6260 | +end; | |
6261 | + | |
6231 | 6262 | function TGikoForm.TreeNodeDataFind(Node: TTreeNode; FindPointer: Pointer): TTreeNode; |
6232 | 6263 | var |
6233 | 6264 | Found: TTreeNode; |
@@ -6658,8 +6689,13 @@ begin | ||
6658 | 6689 | |
6659 | 6690 | end; |
6660 | 6691 | // ************************************************************************* |
6661 | -//! c[r [ÌKeyDownCxg | |
6692 | +//! c[r [ÌNbNCxg | |
6662 | 6693 | // ************************************************************************* |
6694 | +procedure TGikoForm.TreeViewClick(Sender: TObject); | |
6695 | +begin | |
6696 | + FClickNode := TreeView.Selected; | |
6697 | + FMouseDownPos := TreeView.ScreenToClient(Mouse.CursorPos); | |
6698 | +end; | |
6663 | 6699 | procedure TGikoForm.TreeViewKeyDown(Sender: TObject; var Key: Word; |
6664 | 6700 | Shift: TShiftState); |
6665 | 6701 | begin |
@@ -6672,35 +6708,21 @@ begin | ||
6672 | 6708 | TreeView.Selected.Expanded := not TreeView.Selected.Expanded; |
6673 | 6709 | end; |
6674 | 6710 | end; |
6675 | -//! ¨CÉüèÌMouseDownCxg | |
6711 | + | |
6676 | 6712 | procedure TGikoForm.FavoriteTreeViewMouseDown(Sender: TObject; |
6677 | 6713 | Button: TMouseButton; Shift: TShiftState; X, Y: Integer); |
6678 | 6714 | var |
6679 | 6715 | favItem : TTreeNode; |
6680 | 6716 | favThreadItem : TFavoriteThreadItem; |
6681 | - rect: TRect; | |
6682 | 6717 | begin |
6718 | + | |
6683 | 6719 | case Button of |
6684 | - mbLeft: | |
6720 | +{ mbLeft: | |
6685 | 6721 | begin |
6686 | - if not (ssAlt in Shift) and (FavoriteTreeView.Selected <> nil) and | |
6687 | - (FavoriteTreeView.Selected = FavoriteTreeView.GetNodeAt(X, Y)) then begin | |
6688 | - //}EXªnodeÌãÉ¢é© | |
6689 | - rect := FavoriteTreeView.Selected.DisplayRect(true); | |
6690 | - if ((rect.Left <= X) and (rect.Right >= X)) and | |
6691 | - ((rect.Bottom >= Y) and (rect.Top <= Y)) then begin | |
6692 | - if ssDouble in Shift then begin | |
6693 | - FClickNode := FavoriteTreeView.Selected; | |
6694 | - GikoDM.FavoriteTreeViewReloadActionExecute(Sender); | |
6695 | - FClickNode := nil; | |
6696 | - end else begin | |
6697 | - FavoriteClick( | |
6698 | - TObject(FavoriteTreeView.Selected)); | |
6699 | - end; | |
6700 | - end; | |
6701 | - end; | |
6722 | + FMouseDownPos.X := X; | |
6723 | + FMouseDownPos.Y := Y; | |
6702 | 6724 | end; |
6703 | - mbMiddle: | |
6725 | +} mbMiddle: | |
6704 | 6726 | begin |
6705 | 6727 | favItem := FavoriteTreeView.GetNodeAt( X, Y ); |
6706 | 6728 | if favItem = nil then Exit; |
@@ -6760,6 +6782,16 @@ end; | ||
6760 | 6782 | // ************************************************************************* |
6761 | 6783 | //! ¨CÉüèc[Ì}EXAbvCxg |
6762 | 6784 | // ************************************************************************* |
6785 | +procedure TGikoForm.FavoriteTreeViewMouseUp(Sender: TObject; | |
6786 | + Button: TMouseButton; Shift: TShiftState; X, Y: Integer); | |
6787 | +begin | |
6788 | + if (Button = mbLeft) and not (ssDouble in Shift) then begin | |
6789 | + if (FClickNode <> nil) and (FClickNode = FavoriteTreeView.GetNodeAt(X, Y)) then begin | |
6790 | + FavoriteClick( TObject( FClickNode ) ); | |
6791 | + end; | |
6792 | + end; | |
6793 | +end; | |
6794 | + | |
6763 | 6795 | function TGikoForm.WebBrowserClick(Sender: TObject): WordBool; |
6764 | 6796 | var |
6765 | 6797 | p : TPoint; |
@@ -7635,6 +7667,61 @@ begin | ||
7635 | 7667 | end; |
7636 | 7668 | end; |
7637 | 7669 | // ************************************************************************* |
7670 | +//! ¨CÉüèc[ÌNbNCxg | |
7671 | +// ************************************************************************* | |
7672 | +procedure TGikoForm.FavoriteTreeViewClick(Sender: TObject); | |
7673 | +begin | |
7674 | + //»ÝIð³êÄ¢éACeðÛ¶ | |
7675 | + FClickNode := FavoriteTreeView.Selected; | |
7676 | + FMouseDownPos := FavoriteTreeView.ScreenToClient(Mouse.CursorPos); | |
7677 | +end; | |
7678 | +// ************************************************************************* | |
7679 | +//! ¨CÉüèc[ÌACeÌk¬Cxg | |
7680 | +// ************************************************************************* | |
7681 | +procedure TGikoForm.FavoriteTreeViewCollapsing(Sender: TObject; | |
7682 | + Node: TTreeNode; var AllowCollapse: Boolean); | |
7683 | +begin | |
7684 | + //k¬³ê½çÛ¶³êÄ¢éNbNIðACeðNA | |
7685 | + FClickNode := Node; | |
7686 | +end; | |
7687 | +// ************************************************************************* | |
7688 | +//! ¨CÉüèc[ÌACeÌWJCxg | |
7689 | +// ************************************************************************* | |
7690 | +procedure TGikoForm.FavoriteTreeViewExpanding(Sender: TObject; | |
7691 | + Node: TTreeNode; var AllowExpansion: Boolean); | |
7692 | +begin | |
7693 | + //WJ³ê½çÛ¶³êÄ¢éNbNIðACeðNA | |
7694 | + FClickNode := Node; | |
7695 | +end; | |
7696 | +// ************************************************************************* | |
7697 | +//! c[r [ÌACeÌk¬Cxg | |
7698 | +// ************************************************************************* | |
7699 | +procedure TGikoForm.TreeViewCollapsing(Sender: TObject; Node: TTreeNode; | |
7700 | + var AllowCollapse: Boolean); | |
7701 | +begin | |
7702 | + FClickNode := nil; | |
7703 | +end; | |
7704 | +// ************************************************************************* | |
7705 | +//! c[r [ÌACeÌWJCxg | |
7706 | +// ************************************************************************* | |
7707 | +procedure TGikoForm.TreeViewExpanding(Sender: TObject; Node: TTreeNode; | |
7708 | + var AllowExpansion: Boolean); | |
7709 | +begin | |
7710 | + FClickNode := nil; | |
7711 | +end; | |
7712 | +// ************************************************************************* | |
7713 | +//! c[r [Ì}EXAbvCxg | |
7714 | +// ************************************************************************* | |
7715 | +procedure TGikoForm.TreeViewMouseUp(Sender: TObject; Button: TMouseButton; | |
7716 | + Shift: TShiftState; X, Y: Integer); | |
7717 | +begin | |
7718 | + if (Button = mbLeft) and not (ssDouble in Shift) then begin | |
7719 | + if (FClickNode <> nil) and (FClickNode = TreeView.GetNodeAt(X, Y)) then begin | |
7720 | + TreeClick(FClickNode); | |
7721 | + end; | |
7722 | + end; | |
7723 | +end; | |
7724 | +// ************************************************************************* | |
7638 | 7725 | //! _E[hRg[Xbh̶¬ |
7639 | 7726 | // ************************************************************************* |
7640 | 7727 | procedure TGikoForm.CreateControlThread(); |
@@ -7742,32 +7829,6 @@ begin | ||
7742 | 7829 | except |
7743 | 7830 | end; |
7744 | 7831 | end; |
7745 | -//! LrlbgÌ}EX_ECxg | |
7746 | -procedure TGikoForm.TreeViewMouseDown(Sender: TObject; | |
7747 | - Button: TMouseButton; Shift: TShiftState; X, Y: Integer); | |
7748 | -var | |
7749 | - rect : TRect; | |
7750 | -begin | |
7751 | - case Button of | |
7752 | - mbLeft: | |
7753 | - begin | |
7754 | - if (TreeView.Selected <> nil) and | |
7755 | - (TreeView.Selected = TreeView.GetNodeAt(X, Y)) then begin | |
7756 | - //}EXªnodeÌãÉ¢é© | |
7757 | - rect := TreeView.Selected.DisplayRect(true); | |
7758 | - if ((rect.Left <= X) and (rect.Right >= X)) and | |
7759 | - ((rect.Bottom >= Y) and (rect.Top <= Y)) then begin | |
7760 | - // NbNÆ_uNbNðRRÅ»è | |
7761 | - if ssDouble in Shift then begin | |
7762 | - TreeDoubleClick( TreeView.Selected ); | |
7763 | - end else begin | |
7764 | - TreeClick(TreeView.Selected); | |
7765 | - end; | |
7766 | - end; | |
7767 | - end; | |
7768 | - end; | |
7769 | - end; | |
7770 | -end; | |
7771 | 7832 | |
7772 | 7833 | initialization |
7773 | 7834 | OleInitialize(nil); |
@@ -1195,12 +1195,6 @@ object GikoDM: TGikoDM | ||
1195 | 1195 | Hint = #12462#12467#12490#12499'Wiki'#12398'FAQ'#12434#34920#31034#12377#12427 |
1196 | 1196 | OnExecute = WikiFAQWebPageActionExecute |
1197 | 1197 | end |
1198 | - object ThreadSizeCalcForFileAction: TAction | |
1199 | - Category = #12484#12540#12523 | |
1200 | - Caption = #12473#12524#12483#12489#12398#23481#37327#12434#12501#12449#12452#12523#12363#12425#20877#35336#31639#12377#12427 | |
1201 | - Hint = #12473#12524#12483#12489#12398#23481#37327#12434#12501#12449#12452#12523#12363#12425#20877#35336#31639#12377#12427 | |
1202 | - OnExecute = ThreadSizeCalcForFileActionExecute | |
1203 | - end | |
1204 | 1198 | end |
1205 | 1199 | object ToobarImageList: TImageList |
1206 | 1200 | Left = 44 |
@@ -211,7 +211,6 @@ type | ||
211 | 211 | WikiFAQWebPageAction: TAction; |
212 | 212 | ToobarImageList: TImageList; |
213 | 213 | SaveDialog: TSaveDialog; |
214 | - ThreadSizeCalcForFileAction: TAction; | |
215 | 214 | procedure EditNGActionExecute(Sender: TObject); |
216 | 215 | procedure ReloadActionExecute(Sender: TObject); |
217 | 216 | procedure GoFowardActionExecute(Sender: TObject); |
@@ -393,7 +392,6 @@ type | ||
393 | 392 | procedure MidokuActionExecute(Sender: TObject); |
394 | 393 | procedure AllSelectActionExecute(Sender: TObject); |
395 | 394 | procedure AllSelectActionUpdate(Sender: TObject); |
396 | - procedure ThreadSizeCalcForFileActionExecute(Sender: TObject); | |
397 | 395 | private |
398 | 396 | { Private é¾ } |
399 | 397 | procedure ClearResFilter; |
@@ -404,8 +402,6 @@ type | ||
404 | 402 | procedure SetThreadAreaVertical(gls : TGikoListState); |
405 | 403 | procedure SetThreadReadProperty(read: Boolean); |
406 | 404 | procedure SelectThreadSaveToFile(dat: Boolean); |
407 | - function GetSortProperties(List: TObject;var vSortOrder: Boolean): Boolean; | |
408 | - procedure RecalcThreadSize(limit : Integer); | |
409 | 405 | public |
410 | 406 | { Public é¾ } |
411 | 407 | procedure RepaintStatusBar; |
@@ -695,21 +691,26 @@ end; | ||
695 | 691 | // ************************************************************************* |
696 | 692 | procedure TGikoDM.FavoriteTreeViewReloadActionExecute(Sender: TObject); |
697 | 693 | var |
694 | + ThreadItem: TThreadItem; | |
698 | 695 | FavThread: TFavoriteThreadItem; |
696 | + Board: TBoard; | |
699 | 697 | FavBoard: TFavoriteBoardItem; |
700 | 698 | shiftDown: Boolean; |
701 | 699 | begin |
702 | - if (GikoForm.ClickNode = nil) then Exit; | |
700 | + | |
701 | + if GikoForm.ClickNode = nil then Exit; | |
703 | 702 | |
704 | 703 | shiftDown := GetAsyncKeyState(VK_SHIFT) = Smallint($8001); |
705 | 704 | |
706 | 705 | if TObject( GikoForm.ClickNode.Data ) is TFavoriteThreadItem then begin |
707 | 706 | FavThread := TFavoriteThreadItem( GikoForm.ClickNode.Data ); |
708 | - if FavThread.Item <> nil then | |
709 | - GikoForm.DownloadContent(FavThread.Item, shiftDown); | |
707 | + ThreadItem := FavThread.Item; | |
708 | + if ThreadItem <> nil then | |
709 | + GikoForm.DownloadContent(ThreadItem, shiftDown); | |
710 | 710 | end else if TObject( GikoForm.ClickNode.Data ) is TFavoriteBoardItem then begin |
711 | 711 | FavBoard := TFavoriteBoardItem( GikoForm.ClickNode.Data ); |
712 | - GikoForm.DownloadList(FavBoard.Item, shiftDown); | |
712 | + Board := FavBoard.Item; | |
713 | + GikoForm.DownloadList(Board, shiftDown); | |
713 | 714 | end; |
714 | 715 | |
715 | 716 | end; |
@@ -3048,44 +3049,26 @@ begin | ||
3048 | 3049 | |
3049 | 3050 | end; |
3050 | 3051 | // ************************************************************************* |
3051 | -//! XêÌ\¦µÄ¢éàeɵ½ªÁÄA\[gJÌÊuÆûüðæ¾·é | |
3052 | -// ************************************************************************* | |
3053 | -function TGikoDM.GetSortProperties(List: TObject; | |
3054 | - var vSortOrder: Boolean): Boolean; | |
3055 | -begin | |
3056 | - Result := True; | |
3057 | - if (List <> nil) then begin | |
3058 | - if (List is TBBS) then begin | |
3059 | - vSortOrder := GikoSys.Setting.BBSSortOrder; | |
3060 | - end else if (List is TCategory) then begin | |
3061 | - vSortOrder := GikoSys.Setting.CategorySortOrder; | |
3062 | - end else if (List is TBoard) then begin | |
3063 | - vSortOrder := GikoSys.Setting.BoardSortOrder; | |
3064 | - end else begin | |
3065 | - Result := False; | |
3066 | - end; | |
3067 | - end else begin | |
3068 | - Result := False; | |
3069 | - end; | |
3070 | -end; | |
3071 | -// ************************************************************************* | |
3072 | 3052 | //! »ÝÌJð\[g·é |
3073 | 3053 | // ************************************************************************* |
3074 | 3054 | procedure TGikoDM.SortActiveColumnActionExecute(Sender: TObject); |
3075 | 3055 | var |
3076 | 3056 | i : Integer; |
3077 | 3057 | so : boolean; |
3058 | + si : Integer; | |
3078 | 3059 | begin |
3079 | - if GetSortProperties(GikoForm.GetActiveList, so) then begin | |
3080 | - for i := 0 to GikoForm.ListView.Columns.Count - 1 do begin | |
3081 | - if (GikoForm.ListView.Column[ i ].ImageIndex = ITEM_ICON_SORT1) or | |
3082 | - (GikoForm.ListView.Column[ i ].ImageIndex = ITEM_ICON_SORT2) then begin | |
3083 | - so := not so; | |
3084 | - TListViewUtils.ListViewSort(nil, GikoForm.ListView, | |
3085 | - GikoForm.ListView.Column[ i ], ListNumberVisibleAction.Checked, | |
3086 | - so); | |
3087 | - break; | |
3088 | - end; | |
3060 | + for i := 0 to GikoForm.ListView.Columns.Count - 1 do begin | |
3061 | + if (GikoForm.ListView.Column[ i ].ImageIndex = ITEM_ICON_SORT1) or | |
3062 | + (GikoForm.ListView.Column[ i ].ImageIndex = ITEM_ICON_SORT2) then begin | |
3063 | + GikoForm.SortOrder := not GikoForm.SortOrder; | |
3064 | + so := GikoForm.SortOrder; | |
3065 | + si := GikoForm.SortIndex; | |
3066 | + TListViewUtils.ListViewSort(nil, GikoForm.ListView, | |
3067 | + GikoForm.ListView.Column[ i ], ListNumberVisibleAction.Checked, | |
3068 | + so, si ); | |
3069 | + GikoForm.SortIndex := si; | |
3070 | + GikoForm.SortOrder := so; | |
3071 | + break; | |
3089 | 3072 | end; |
3090 | 3073 | end; |
3091 | 3074 | end; |
@@ -3095,6 +3078,8 @@ end; | ||
3095 | 3078 | procedure TGikoDM.SortNextColumnActionExecute(Sender: TObject); |
3096 | 3079 | var |
3097 | 3080 | i, id : Integer; |
3081 | + so : boolean; | |
3082 | + si : Integer; | |
3098 | 3083 | begin |
3099 | 3084 | for i := 0 to GikoForm.ListView.Columns.Count - 1 do begin |
3100 | 3085 | if (GikoForm.ListView.Column[ i ].ImageIndex = ITEM_ICON_SORT1) or |
@@ -3102,9 +3087,14 @@ begin | ||
3102 | 3087 | id := i + 1; |
3103 | 3088 | if id > GikoForm.ListView.Columns.Count - 1 then |
3104 | 3089 | id := 0; |
3090 | + GikoForm.SortOrder := id = 0; | |
3091 | + so := GikoForm.SortOrder; | |
3092 | + si := GikoForm.SortIndex; | |
3105 | 3093 | TListViewUtils.ListViewSort( nil, GikoForm.ListView, |
3106 | 3094 | GikoForm.ListView.Column[ id ], ListNumberVisibleAction.Checked, |
3107 | - id = 0); | |
3095 | + so, si ); | |
3096 | + GikoForm.SortIndex := si; | |
3097 | + GikoForm.SortOrder := so; | |
3108 | 3098 | break; |
3109 | 3099 | end; |
3110 | 3100 | end; |
@@ -3115,6 +3105,8 @@ end; | ||
3115 | 3105 | procedure TGikoDM.SortPrevColumnActionExecute(Sender: TObject); |
3116 | 3106 | var |
3117 | 3107 | i, id : Integer; |
3108 | + so : boolean; | |
3109 | + si : Integer; | |
3118 | 3110 | begin |
3119 | 3111 | for i := 0 to GikoForm.ListView.Columns.Count - 1 do begin |
3120 | 3112 | if (GikoForm.ListView.Column[ i ].ImageIndex = ITEM_ICON_SORT1) or |
@@ -3122,9 +3114,14 @@ begin | ||
3122 | 3114 | id := i - 1; |
3123 | 3115 | if id < 0 then |
3124 | 3116 | id := GikoForm.ListView.Columns.Count - 1; |
3117 | + GikoForm.SortOrder := id = 0; | |
3118 | + so := GikoForm.SortOrder; | |
3119 | + si := GikoForm.SortIndex; | |
3125 | 3120 | TListViewUtils.ListViewSort( nil, GikoForm.ListView, |
3126 | 3121 | GikoForm.ListView.Column[ id ], ListNumberVisibleAction.Checked, |
3127 | - id = 0); | |
3122 | + so, si ); | |
3123 | + GikoForm.SortIndex := si; | |
3124 | + GikoForm.SortOrder := so; | |
3128 | 3125 | break; |
3129 | 3126 | end; |
3130 | 3127 | end; |
@@ -3700,88 +3697,5 @@ begin | ||
3700 | 3697 | AllSelectAction.Enabled := GikoForm.ListView.SelCount > 0; |
3701 | 3698 | end; |
3702 | 3699 | ////////////////////////////////ÒWÜŨµÜ¢///////////////////// |
3703 | -//! XbhÌTCYðÄvZ·é | |
3704 | -procedure TGikoDM.ThreadSizeCalcForFileActionExecute(Sender: TObject); | |
3705 | -const | |
3706 | - RECALC_MES : String = 'XbhÌeÊðt@C©çÄvZµÜ·B'#13#10 + | |
3707 | - '±ÌìAMRir̼Ììð·éÆf[^ªjó³êé°êª èÜ·B' + | |
3708 | - 'ܽ±ÌìÍAñíÉÔª©©éêª èÜ·ªAæ뵢ŷ©H'; | |
3709 | - RECALC_TITLE : String = 'XbhÌeÊðt@C©çÄvZ'; | |
3710 | - LIMIT_SIZE = 1024; | |
3711 | -var | |
3712 | - limitSize : Integer; | |
3713 | - limitStr : String; | |
3714 | -begin | |
3715 | -{ ܸAÔª©©é±Æðx·ébZ[WðoÍ | |
3716 | - ÄvZ·éXbhÌTCYÌèliftHg1024B)ðmF | |
3717 | - vOCðpµÈ¢Æ±ëÅSÄÌOLèXbhðõ | |
3718 | - èlȺÌTCYÌêADATÌt@CTCYÆärA¸êÄ¢êÎA | |
3719 | - DATÌt@CTCYÅXV·é | |
3720 | -} | |
3721 | - if MsgBox(GikoForm.Handle, RECALC_MES, | |
3722 | - RECALC_TITLE, MB_YESNO or MB_ICONWARNING) = ID_YES then begin | |
3723 | - //èlÌmF | |
3724 | - limitSize := LIMIT_SIZE; | |
3725 | - limitStr := IntToStr(limitSize); | |
3726 | - if InputQuery('èlüÍ', 'wèµ½l BȺÌeÊÌXbhÌÝÄvZµÜ·', limitStr) then begin | |
3727 | - limitSize := StrToInt(MojuUtils.ZenToHan(limitStr)); | |
3728 | - if (limitSize < 0) then begin | |
3729 | - ShowMessage('èlÉÍwèūܹñI'); | |
3730 | - ThreadSizeCalcForFileActionExecute(nil); | |
3731 | - end else begin | |
3732 | - RecalcThreadSize(limitSize); | |
3733 | - end; | |
3734 | - end; | |
3735 | - end; | |
3736 | -end; | |
3737 | -//! limitæèàTCY̬³¢XbhÌeÊðDATt@C©çvZ | |
3738 | -procedure TGikoDM.RecalcThreadSize(limit : Integer); | |
3739 | -var | |
3740 | - i, j, tmpSize : Integer; | |
3741 | - Obj : TObject; | |
3742 | - Board : TBoard; | |
3743 | - Thread: TThreadItem; | |
3744 | - dat : TStringList; | |
3745 | -begin | |
3746 | - // ÄvZX^[g@vOCðpµÈ¢Æ±ëðS©éI | |
3747 | - GikoForm.ScreenCursor := crHourGlass; | |
3748 | - try | |
3749 | - GikoForm.ProgressBar.Max := BoardGroups[0].Count; | |
3750 | - for i := 0 to BoardGroups[0].Count - 1 do begin | |
3751 | - Obj := BoardGroups[0].Objects[i]; | |
3752 | - if (Obj <> nil) then begin | |
3753 | - Board := TBoard(Obj); | |
3754 | - if not Board.IsThreadDatRead then begin | |
3755 | - GikoSys.ReadSubjectFile(Board); | |
3756 | - end; | |
3757 | - for j := 0 to Board.Count - 1 do begin | |
3758 | - Thread := Board.Items[j]; | |
3759 | - if (Thread <> nil) and (Thread.IsLogFile) | |
3760 | - and (Thread.Size <= limit) then begin | |
3761 | - dat := TStringList.Create; | |
3762 | - try | |
3763 | - tmpSize := Thread.Size; | |
3764 | - try | |
3765 | - dat.LoadFromFile(Thread.GetThreadFileName); | |
3766 | - tmpSize := Length(dat.Text); | |
3767 | - tmpSize := tmpSize - dat.Count; | |
3768 | - except | |
3769 | - end; | |
3770 | - Thread.Size := tmpSize; | |
3771 | - finally | |
3772 | - dat.Free; | |
3773 | - end; | |
3774 | - end; | |
3775 | - end; | |
3776 | - end; | |
3777 | - GikoForm.ProgressBar.StepBy(1); | |
3778 | - end; | |
3779 | - finally | |
3780 | - GikoForm.ScreenCursor := crDefault; | |
3781 | - end; | |
3782 | - GikoForm.ProgressBar.Position := 0; | |
3783 | - ShowMessage('vZI¹µÜµ½B'); | |
3784 | -end; | |
3785 | - | |
3786 | 3700 | end. |
3787 | 3701 |
@@ -720,7 +720,7 @@ begin | ||
720 | 720 | ThreadItem.RoundDate := ZERO_DATE; |
721 | 721 | ThreadItem.LastModified := ZERO_DATE; |
722 | 722 | ThreadItem.Kokomade := -1; |
723 | - ThreadItem.NewReceive := 0; | |
723 | + ThreadItem.NewReceive := ThreadItem.Count; | |
724 | 724 | ThreadItem.ParentBoard := Board; |
725 | 725 | ThreadItem.IsLogFile := True; |
726 | 726 | ThreadItem.Round := False; |
@@ -900,7 +900,6 @@ begin | ||
900 | 900 | //1sÚðí |
901 | 901 | if SList.Count > 1 then |
902 | 902 | SList.Delete(0); |
903 | - Item.Content := SList.Text; | |
904 | 903 | //üsR[hðCRLF -> LFÆl¦ÄAsª¾¯}CiX |
905 | 904 | Item.ContentLength := Length(SList.Text) - SList.Count; |
906 | 905 | finally |
@@ -19,14 +19,14 @@ type | ||
19 | 19 | {Public é¾} |
20 | 20 | class procedure SetBoardTreeNode(inBBS : TBBS; treeView: TTreeView); |
21 | 21 | class function SetCategoryListItem(ABBS2ch: TBBS; ListView: TListView; |
22 | - NumberVisible: Boolean): Integer; | |
22 | + NumberVisible: Boolean; var vSortIndex: Integer; var vSortOrder: Boolean): Integer; | |
23 | 23 | class procedure ListViewSort(Sender: TObject; ListView: TListView; Column: TListColumn; |
24 | - NumberVisible: Boolean; vSortOrder: Boolean); | |
24 | + NumberVisible: Boolean; var vSortOrder: Boolean; var vSortIndex: Integer); | |
25 | 25 | class function ActiveListTrueColumn( column : TListColumn ) : TListColumn; |
26 | 26 | class function SetBoardListItem(Category: TCategory; ListView: TListView; |
27 | - NumberVisible: Boolean): Integer; | |
27 | + NumberVisible: Boolean; var vSortIndex: Integer; var vSortOrder: Boolean): Integer; | |
28 | 28 | class function SetThreadListItem(Board: TBoard; ListView: TListView; |
29 | - NumberVisible: Boolean): Integer; | |
29 | + NumberVisible: Boolean; var vSortIndex: Integer; var vSortOrder: Boolean): Integer; | |
30 | 30 | class procedure ListViewData(Sender: TObject; Item: TListItem); |
31 | 31 | end; |
32 | 32 |
@@ -141,7 +141,9 @@ end; | ||
141 | 141 | class function TListViewUtils.SetCategoryListItem( |
142 | 142 | ABBS2ch: TBBS; |
143 | 143 | ListView: TListView; |
144 | - NumberVisible: Boolean | |
144 | + NumberVisible: Boolean; | |
145 | + var vSortIndex: Integer; | |
146 | + var vSortOrder: Boolean | |
145 | 147 | ): Integer; |
146 | 148 | var |
147 | 149 | TitleColumn : TListColumn; |
@@ -181,13 +183,12 @@ begin | ||
181 | 183 | GikoForm.FolderImage.Picture := nil; |
182 | 184 | GikoForm.ItemIcon16.GetBitmap(1, GikoForm.FolderImage.Picture.Bitmap); |
183 | 185 | |
186 | + vSortIndex := GikoSys.Setting.BBSSortIndex; | |
187 | + vSortOrder := GikoSys.Setting.BBSSortOrder; | |
184 | 188 | for i := ListView.Columns.Count - 1 downto 0 do begin |
185 | - if (GikoSys.Setting.BBSSortIndex | |
186 | - = Integer(GikoSys.Setting.BBSColumnOrder[ ListView.Column[ i ].Tag ])) then begin | |
187 | - ListViewSort( nil, ListView, ListView.Column[ i ], | |
188 | - NumberVisible, GikoSys.Setting.BBSSortOrder); | |
189 | - Break; | |
190 | - end; | |
189 | + idx := ListView.Column[ i ].Tag; | |
190 | + if vSortIndex = Ord( GikoSys.Setting.BBSColumnOrder[ idx ] ) then | |
191 | + ListViewSort( nil, ListView, ListView.Column[ i ], NumberVisible, vSortOrder, vSortIndex ); | |
191 | 192 | end; |
192 | 193 | |
193 | 194 | Result := ABBS2ch.Count; |
@@ -201,10 +202,11 @@ class procedure TListViewUtils.ListViewSort( | ||
201 | 202 | ListView: TListView; |
202 | 203 | Column: TListColumn; |
203 | 204 | NumberVisible: Boolean; |
204 | - vSortOrder: Boolean | |
205 | + var vSortOrder: Boolean; | |
206 | + var vSortIndex: Integer | |
205 | 207 | ); |
206 | 208 | var |
207 | - i, idx : Integer; | |
209 | + i, id, idx : Integer; | |
208 | 210 | orderList : TList; |
209 | 211 | wkBBS: TBBS; |
210 | 212 | wkCategory: TCategory; |
@@ -215,41 +217,53 @@ begin | ||
215 | 217 | for i := 0 to ListView.Columns.Count - 1 do begin |
216 | 218 | ListView.Column[i].ImageIndex := -1; |
217 | 219 | end; |
218 | - if vSortOrder then | |
220 | + | |
221 | + if SortOrder then | |
219 | 222 | ListView.Column[ idx ].ImageIndex := ITEM_ICON_SORT1 |
220 | 223 | else |
221 | 224 | ListView.Column[ idx ].ImageIndex := ITEM_ICON_SORT2; |
222 | 225 | |
223 | - | |
224 | 226 | Sort.SortNoFlag := NumberVisible; |
225 | 227 | |
228 | + //if TObject(TreeView.Selected.Data) is TBBS then begin | |
226 | 229 | if TObject( GikoForm.ActiveList ) is TBBS then begin |
230 | + //wkBBS := TBBS(TreeView.Selected.Data); | |
227 | 231 | wkBBS := TBBS( GikoForm.ActiveList ); |
228 | 232 | orderList := GikoSys.Setting.BBSColumnOrder; |
233 | + id := Integer( orderList[ idx ] ); | |
229 | 234 | Sort.SortOrder := vSortOrder; |
230 | - Sort.SortIndex := Integer( orderList[ idx ] ); | |
231 | - GikoSys.Setting.BBSSortIndex := Sort.SortIndex; | |
232 | - GikoSys.Setting.BBSSortOrder := Sort.SortOrder; | |
235 | + Sort.SortIndex := id; | |
236 | + GikoSys.Setting.BBSSortIndex := id; | |
237 | + GikoSys.Setting.BBSSortOrder := vSortOrder; | |
233 | 238 | wkBBS.Sort(Sort.CategorySortProc); |
239 | + //end else if TObject(TreeView.Selected.Data) is TCategory then begin | |
234 | 240 | end else if TObject( GikoForm.ActiveList ) is TCategory then begin |
241 | + //wkCategory := TCategory(TreeView.Selected.Data); | |
235 | 242 | wkCategory := TCategory( GikoForm.ActiveList ); |
236 | 243 | orderList := GikoSys.Setting.CategoryColumnOrder; |
244 | + id := Integer( orderList[ idx ] ); | |
237 | 245 | Sort.SortOrder := vSortOrder; |
238 | - Sort.SortIndex := Integer( orderList[ idx ] ); | |
239 | - GikoSys.Setting.CategorySortIndex := Sort.SortIndex; | |
240 | - GikoSys.Setting.CategorySortOrder := Sort.SortOrder; | |
246 | + Sort.SortIndex := id; | |
247 | + GikoSys.Setting.CategorySortIndex := id; | |
248 | + GikoSys.Setting.CategorySortOrder := vSortOrder; | |
241 | 249 | wkCategory.CustomSort(BoardSortProc); |
250 | + //end else if TObject(TreeView.Selected.Data) is TBoard then begin | |
242 | 251 | end else if TObject( GikoForm.ActiveList ) is TBoard then begin |
252 | + //wkBoard := TBoard(TreeView.Selected.Data); | |
243 | 253 | wkBoard := TBoard( GikoForm.ActiveList ); |
244 | 254 | orderList := GikoSys.Setting.BoardColumnOrder; |
255 | + id := Integer( orderList[ idx ] ); | |
245 | 256 | Sort.SortOrder := vSortOrder; |
246 | - Sort.SortIndex := Integer( orderList[ idx ] ); | |
247 | - GikoSys.Setting.BoardSortIndex := Sort.SortIndex; | |
248 | - GikoSys.Setting.BoardSortOrder := Sort.SortOrder; | |
257 | + Sort.SortIndex := id; | |
258 | + GikoSys.Setting.BoardSortIndex := id; | |
259 | + GikoSys.Setting.BoardSortOrder := vSortOrder; | |
249 | 260 | wkBoard.CustomSort(ThreadItemSortProc); |
261 | + end else begin | |
262 | + id := 0; | |
250 | 263 | end; |
251 | 264 | |
252 | 265 | ListView.Refresh; |
266 | + vSortIndex := id; | |
253 | 267 | end; |
254 | 268 | |
255 | 269 | {! |
@@ -259,16 +273,49 @@ Delphi 6 Personal | ||
259 | 273 | ³µ¢Jªn³êÈ¢½ßA³µ¢JÉÏ·µÜ·B |
260 | 274 | } |
261 | 275 | class function TListViewUtils.ActiveListTrueColumn( column : TListColumn ) : TListColumn; |
276 | +{* | |
277 | +var | |
278 | + i, idx : Integer; | |
279 | + orderList : TList; | |
280 | +*} | |
262 | 281 | begin |
282 | + | |
263 | 283 | // ³µÏ··éû@ªª©çÈ¢ÌÅÛ¯ |
264 | 284 | Result := column; |
265 | 285 | Exit; |
286 | +{* | |
287 | + Result := column; | |
288 | + | |
289 | + if TObject( FActiveList ) is TBBS then | |
290 | + orderList := GikoSys.Setting.BBSColumnOrder | |
291 | + else if TObject( FActiveList ) is TCategory then | |
292 | + orderList := GikoSys.Setting.CategoryColumnOrder | |
293 | + else if TObject( FActiveList ) is TBoard then | |
294 | + orderList := GikoSys.Setting.BoardColumnOrder | |
295 | + else | |
296 | + Exit; | |
297 | + | |
298 | + idx := column.Tag; | |
299 | + | |
300 | + for i := 0 to ListView.Columns.Count - 1 do begin | |
301 | + if Integer( orderList[ ListView.Column[ i ].Tag ] ) = 0 then begin | |
302 | + if idx = 0 then | |
303 | + Result := ListView.Column[ i ] | |
304 | + else if idx <= i then | |
305 | + Result := ListView.Column[ idx - 1 ]; | |
306 | + Exit; | |
307 | + end; | |
308 | + end; | |
309 | +*} | |
310 | + | |
266 | 311 | end; |
267 | 312 | //ListViewÉBoardItemðÝè·é |
268 | 313 | class function TListViewUtils.SetBoardListItem( |
269 | 314 | Category: TCategory; |
270 | 315 | ListView: TListView; |
271 | - NumberVisible: Boolean | |
316 | + NumberVisible: Boolean; | |
317 | + var vSortIndex: Integer; | |
318 | + var vSortOrder: Boolean | |
272 | 319 | ): Integer; |
273 | 320 | var |
274 | 321 | TitleColumn : TListColumn; |
@@ -323,13 +370,12 @@ begin | ||
323 | 370 | GikoForm.FolderImage.Picture := nil; |
324 | 371 | GikoForm.ItemIcon16.GetBitmap(3, GikoForm.FolderImage.Picture.Bitmap); |
325 | 372 | |
373 | + vSortIndex := GikoSys.Setting.CategorySortIndex; | |
374 | + vSortOrder := GikoSys.Setting.CategorySortOrder; | |
326 | 375 | for i := ListView.Columns.Count - 1 downto 0 do begin |
327 | - if (GikoSys.Setting.CategorySortIndex = | |
328 | - Integer( GikoSys.Setting.CategoryColumnOrder[ ListView.Columns[i].Tag ] )) then begin | |
329 | - ListViewSort( nil, ListView, ListView.Column[ i ], | |
330 | - NumberVisible, GikoSys.Setting.CategorySortOrder); | |
331 | - Break; | |
332 | - end; | |
376 | + idx := ListView.Column[ i ].Tag; | |
377 | + if vSortIndex = Ord( GikoSys.Setting.CategoryColumnOrder[ idx ] ) then | |
378 | + ListViewSort( nil, ListView, ListView.Column[ i ], NumberVisible, vSortOrder, vSortIndex ); | |
333 | 379 | end; |
334 | 380 | |
335 | 381 | Result := Category.Count; |
@@ -341,7 +387,9 @@ end; | ||
341 | 387 | class function TListViewUtils.SetThreadListItem( |
342 | 388 | Board: TBoard; |
343 | 389 | ListView: TListView; |
344 | - NumberVisible: Boolean | |
390 | + NumberVisible: Boolean; | |
391 | + var vSortIndex: Integer; | |
392 | + var vSortOrder: Boolean | |
345 | 393 | ): Integer; |
346 | 394 | var |
347 | 395 | TitleColumn : TListColumn; |
@@ -416,13 +464,12 @@ begin | ||
416 | 464 | GikoForm.FolderImage.Picture := nil; |
417 | 465 | GikoForm.ItemIcon16.GetBitmap(5, GikoForm.FolderImage.Picture.Bitmap); |
418 | 466 | |
467 | + vSortIndex := GikoSys.Setting.BoardSortIndex; | |
468 | + vSortOrder := GikoSys.Setting.BoardSortOrder; | |
419 | 469 | for i := ListView.Columns.Count - 1 downto 0 do begin |
420 | - if (GikoSys.Setting.BoardSortIndex | |
421 | - = Integer( GikoSys.Setting.BoardColumnOrder[ ListView.Columns[ i ].Tag ] )) then begin | |
422 | - ListViewSort( nil, ListView, ListView.Column[ i ], | |
423 | - NumberVisible, GikoSys.Setting.BoardSortOrder); | |
424 | - Break; | |
425 | - end; | |
470 | + idx := ListView.Column[ i ].Tag; | |
471 | + if vSortIndex = Ord( GikoSys.Setting.BoardColumnOrder[ idx ] ) then | |
472 | + ListViewSort( nil, ListView, ListView.Column[ i ], NumberVisible, vSortOrder, vSortIndex ); | |
426 | 473 | end; |
427 | 474 | |
428 | 475 | Result := Board.Count; |
@@ -36,9 +36,8 @@ type | ||
36 | 36 | { Private é¾ } |
37 | 37 | IgnoreLists : TStringList; |
38 | 38 | FAbort: Boolean; |
39 | - function BoardDownload(const URL: String): TNewBoardItem; | |
40 | - function BoardLoardFromFile(const FilePath: String): String; | |
41 | - function UpdateURL(s: string): boolean; | |
39 | + function BoardDownload: TNewBoardItem; | |
40 | + procedure UpdateURL(s: string); | |
42 | 41 | procedure SetIgnoreCategory(b: boolean); |
43 | 42 | procedure EditIgnoreList(Sender: TObject); |
44 | 43 | procedure UpdateIgnoreList(Sender: TObject); |
@@ -59,24 +58,15 @@ uses Giko, IdHeaderList, MojuUtils, GikoDataModule; | ||
59 | 58 | procedure TNewBoardDialog.UpdateButtonClick(Sender: TObject); |
60 | 59 | var |
61 | 60 | Item: TNewBoardItem; |
62 | - URL : String; | |
63 | - protocol, host, path, document, port, bookmark: String; | |
64 | 61 | begin |
65 | 62 | try |
66 | - MessageMemo.Clear; | |
67 | 63 | GikoSys.Setting.BoardURLSelected := BoardURLComboBox.ItemIndex + 1; |
68 | 64 | FAbort := False; |
69 | 65 | UpdateButton.Enabled := False; |
70 | 66 | StopButton.Enabled := True; |
71 | 67 | CloseButton.Enabled := False; |
72 | 68 | EditIgnoreListsButton.Enabled := False; |
73 | - URL := BoardURLComboBox.Text; | |
74 | - GikoSys.ParseURI(URL, protocol, host, path, document, port, bookmark); | |
75 | - if (protocol = '') then begin | |
76 | - Item.FContent := BoardLoardFromFile(URL); | |
77 | - end else if (AnsiPos('http', protocol) > 0) then begin | |
78 | - Item := BoardDownload(URL); | |
79 | - end; | |
69 | + Item := BoardDownload; | |
80 | 70 | StopButton.Enabled := False; |
81 | 71 | if FAbort then |
82 | 72 | Exit; |
@@ -84,9 +74,8 @@ begin | ||
84 | 74 | GikoDM.TabsSaveAction.Tag := 1; |
85 | 75 | GikoDM.TabsOpenAction.Tag := 1; |
86 | 76 | GikoDM.TabsSaveAction.Execute; |
87 | - if (UpdateURL(Item.FContent)) then begin | |
88 | - GikoForm.ReloadBBS; | |
89 | - end; | |
77 | + UpdateURL(Item.FContent); | |
78 | + GikoForm.ReloadBBS; | |
90 | 79 | GikoDM.TabsSaveAction.Tag := 0; |
91 | 80 | GikoDM.TabsOpenAction.Tag := 0; |
92 | 81 | end else |
@@ -110,12 +99,14 @@ begin | ||
110 | 99 | Close; |
111 | 100 | end; |
112 | 101 | |
113 | -function TNewBoardDialog.BoardDownload(const URL: String): TNewBoardItem; | |
102 | +function TNewBoardDialog.BoardDownload: TNewBoardItem; | |
114 | 103 | var |
104 | + URL: string; | |
115 | 105 | Stream: TMemoryStream; |
116 | 106 | s: string; |
117 | 107 | i: Integer; |
118 | 108 | begin |
109 | + MessageMemo.Clear; | |
119 | 110 | Indy.Request.Clear; |
120 | 111 | Indy.RecvBufferSize := Gikosys.Setting.RecvBufferSize; |
121 | 112 | Indy.ProxyParams.BasicAuthentication := False; |
@@ -141,7 +132,7 @@ begin | ||
141 | 132 | Indy.ProxyParams.ProxyPassword := ''; |
142 | 133 | end; |
143 | 134 | //URL := GikoSys.Setting.BoardURL2ch; |
144 | - //URL := BoardURLComboBox.Text; | |
135 | + URL := BoardURLComboBox.Text; | |
145 | 136 | Indy.Request.UserAgent := GikoSys.GetUserAgent; |
146 | 137 | Indy.Request.Referer := ''; |
147 | 138 | Indy.Request.AcceptEncoding := 'gzip'; |
@@ -196,9 +187,10 @@ begin | ||
196 | 187 | end; |
197 | 188 | end; |
198 | 189 | |
199 | -function TNewBoardDialog.UpdateURL(s: string): boolean; | |
190 | +procedure TNewBoardDialog.UpdateURL(s: string); | |
200 | 191 | var |
201 | 192 | i: Integer; |
193 | +// j: Integer; | |
202 | 194 | idx: Integer; |
203 | 195 | idx1: Integer; |
204 | 196 | idx2: Integer; |
@@ -334,7 +326,6 @@ begin | ||
334 | 326 | oldURLs.Free; |
335 | 327 | newURLs.Free; |
336 | 328 | end; |
337 | - Result := Change; | |
338 | 329 | end; |
339 | 330 | |
340 | 331 | procedure TNewBoardDialog.FormCreate(Sender: TObject); |
@@ -413,21 +404,5 @@ procedure TNewBoardDialog.FormClose(Sender: TObject; | ||
413 | 404 | begin |
414 | 405 | IgnoreLists.Free; |
415 | 406 | end; |
416 | -//! [Jt@Cð[h·é | |
417 | -function TNewBoardDialog.BoardLoardFromFile(const FilePath: String): String; | |
418 | -var | |
419 | - html : TStringList; | |
420 | -begin | |
421 | - Result := ''; | |
422 | - // t@Cª¶ÝµÄ¢é©`FbN | |
423 | - if (FileExists(FilePath)) then begin | |
424 | - html := TStringList.Create(); | |
425 | - try | |
426 | - html.LoadFromFile(FilePath); | |
427 | - Result := html.Text; | |
428 | - finally | |
429 | - html.Free; | |
430 | - end; | |
431 | - end; | |
432 | -end; | |
407 | + | |
433 | 408 | end. |
@@ -61,9 +61,9 @@ object OptionDialog: TOptionDialog | ||
61 | 61 | Top = 4 |
62 | 62 | Width = 509 |
63 | 63 | Height = 389 |
64 | - ActivePage = TabSheet3 | |
64 | + ActivePage = CSSTabSheet | |
65 | 65 | MultiLine = True |
66 | - TabIndex = 3 | |
66 | + TabIndex = 2 | |
67 | 67 | TabOrder = 3 |
68 | 68 | OnChange = OptionTabChange |
69 | 69 | object ConnectSheet: TTabSheet |
@@ -687,7 +687,7 @@ object OptionDialog: TOptionDialog | ||
687 | 687 | Left = 12 |
688 | 688 | Top = 52 |
689 | 689 | Width = 477 |
690 | - Height = 45 | |
690 | + Height = 64 | |
691 | 691 | Caption = #12473#12524#20316#25104#26085#26178#34920#31034#35373#23450 |
692 | 692 | TabOrder = 1 |
693 | 693 | object CreationTimeLogsCheckBox: TCheckBox |
@@ -699,8 +699,8 @@ object OptionDialog: TOptionDialog | ||
699 | 699 | TabOrder = 0 |
700 | 700 | end |
701 | 701 | object FutureThreadCheckBox: TCheckBox |
702 | - Left = 204 | |
703 | - Top = 16 | |
702 | + Left = 12 | |
703 | + Top = 40 | |
704 | 704 | Width = 265 |
705 | 705 | Height = 17 |
706 | 706 | Caption = #26085#20184#12364#26410#26469#12398#12418#12398#12399#34920#31034#12375#12394#12356#65288'492'#12473#12524#31995#65289 |
@@ -709,7 +709,7 @@ object OptionDialog: TOptionDialog | ||
709 | 709 | end |
710 | 710 | object GroupBox5: TGroupBox |
711 | 711 | Left = 12 |
712 | - Top = 105 | |
712 | + Top = 121 | |
713 | 713 | Width = 477 |
714 | 714 | Height = 86 |
715 | 715 | Caption = #12502#12521#12454#12470#12398#26368#22823#21270 |
@@ -737,35 +737,35 @@ object OptionDialog: TOptionDialog | ||
737 | 737 | end |
738 | 738 | object GroupBox17: TGroupBox |
739 | 739 | Left = 12 |
740 | - Top = 196 | |
740 | + Top = 212 | |
741 | 741 | Width = 477 |
742 | - Height = 45 | |
742 | + Height = 63 | |
743 | 743 | Caption = #12502#12521#12454#12470#12479#12502#38750#34920#31034#26178#35373#23450 |
744 | 744 | TabOrder = 3 |
745 | 745 | object SelectIntervalLabel: TLabel |
746 | - Left = 10 | |
747 | - Top = 20 | |
746 | + Left = 13 | |
747 | + Top = 24 | |
748 | 748 | Width = 199 |
749 | 749 | Height = 12 |
750 | 750 | Caption = #12459#12540#12477#12523#12461#12540#12391#12398#31227#21205#26178#12398#28961#21453#24540#26178#38291 |
751 | 751 | end |
752 | 752 | object Label4: TLabel |
753 | - Left = 271 | |
754 | - Top = 20 | |
753 | + Left = 292 | |
754 | + Top = 24 | |
755 | 755 | Width = 29 |
756 | 756 | Height = 12 |
757 | 757 | Caption = #12511#12522#31186 |
758 | 758 | end |
759 | 759 | object Label6: TLabel |
760 | - Left = 305 | |
761 | - Top = 20 | |
760 | + Left = 14 | |
761 | + Top = 40 | |
762 | 762 | Width = 164 |
763 | 763 | Height = 12 |
764 | 764 | Caption = #65288'55'#12511#12522#31186#20197#19978#12395#35373#23450#12375#12390#19979#12373#12356#65289 |
765 | 765 | end |
766 | 766 | object SelectIntervalEdit: TEdit |
767 | - Left = 214 | |
768 | - Top = 16 | |
767 | + Left = 235 | |
768 | + Top = 20 | |
769 | 769 | Width = 49 |
770 | 770 | Height = 20 |
771 | 771 | ImeMode = imClose |
@@ -775,7 +775,7 @@ object OptionDialog: TOptionDialog | ||
775 | 775 | end |
776 | 776 | object GroupBox18: TGroupBox |
777 | 777 | Left = 12 |
778 | - Top = 246 | |
778 | + Top = 278 | |
779 | 779 | Width = 477 |
780 | 780 | Height = 43 |
781 | 781 | Caption = 'dat'#33853#12385#12473#12524#12477#12540#12488#38918 |
@@ -800,29 +800,6 @@ object OptionDialog: TOptionDialog | ||
800 | 800 | #12473#12524#26368#32066#26356#26032#26085#26178#65288#38477#38918#65289) |
801 | 801 | end |
802 | 802 | end |
803 | - object GroupBox20: TGroupBox | |
804 | - Left = 12 | |
805 | - Top = 291 | |
806 | - Width = 477 | |
807 | - Height = 41 | |
808 | - Caption = #12473#12524#12483#12489#19968#35239#12480#12454#12531#12525#12540#12489#24460#12398#21205#20316 | |
809 | - TabOrder = 5 | |
810 | - object Label24: TLabel | |
811 | - Left = 219 | |
812 | - Top = 18 | |
813 | - Width = 142 | |
814 | - Height = 12 | |
815 | - Caption = #65288#12481#12455#12483#12463#12375#12394#12356#22580#21512#28961#20966#29702#65289 | |
816 | - end | |
817 | - object AutoSortCheckBox: TCheckBox | |
818 | - Left = 10 | |
819 | - Top = 16 | |
820 | - Width = 207 | |
821 | - Height = 17 | |
822 | - Caption = #33258#21205#12391#12473#12524#12483#12489#21517#12391#26119#38918#12477#12540#12488#12377#12427 | |
823 | - TabOrder = 0 | |
824 | - end | |
825 | - end | |
826 | 803 | end |
827 | 804 | object ThreadSheet: TTabSheet |
828 | 805 | Caption = #12473#12524#12483#12489#65297 |
@@ -202,9 +202,6 @@ type | ||
202 | 202 | UnFocusedBoldCheckBox: TCheckBox; |
203 | 203 | IgnoreKanaCheckBox: TCheckBox; |
204 | 204 | UseKatjuTypeSkinCheckBox: TCheckBox; |
205 | - GroupBox20: TGroupBox; | |
206 | - AutoSortCheckBox: TCheckBox; | |
207 | - Label24: TLabel; | |
208 | 205 | procedure FormCreate(Sender: TObject); |
209 | 206 | procedure FormDestroy(Sender: TObject); |
210 | 207 | procedure ApplyButtonClick(Sender: TObject); |
@@ -356,7 +353,7 @@ begin | ||
356 | 353 | FClose := False; |
357 | 354 | Exit; |
358 | 355 | end; |
359 | - SetAbonpropertys; | |
356 | + SetAbonpropertys; | |
360 | 357 | SaveSetting; |
361 | 358 | SettingApply; |
362 | 359 |
@@ -824,8 +821,7 @@ begin | ||
824 | 821 | else |
825 | 822 | DatOchiSortCombo.ItemIndex := 0; |
826 | 823 | end; |
827 | - AutoSortCheckBox.Checked := GikoSys.Setting.AutoSortThreadList; | |
828 | - | |
824 | + | |
829 | 825 | // Ú`ñ |
830 | 826 | RloCheckBox.Checked := GikoSys.Setting.AbonDeleterlo; |
831 | 827 | ReplaceulCheckBox.Checked := GikoSys.Setting.AbonReplaceul; |
@@ -1102,7 +1098,6 @@ begin | ||
1102 | 1098 | GikoSys.Setting.DatOchiSortIndex := Ord( gbcLastModified );{gbcLastModified} |
1103 | 1099 | end; |
1104 | 1100 | end; |
1105 | - GikoSys.Setting.AutoSortThreadList := AutoSortCheckBox.Checked; | |
1106 | 1101 | |
1107 | 1102 | GikoSys.Setting.WriteSystemSettingFile; |
1108 | 1103 | GikoSys.Setting.WriteBoardURLSettingFile; |
@@ -420,8 +420,6 @@ type | ||
420 | 420 | //ðÌÅåÛ¶ |
421 | 421 | FMaxRecordCount : Integer; |
422 | 422 | |
423 | - //Xbhêð_E[hãÉ\[g·é© | |
424 | - FAutoSortThreadList : Boolean; | |
425 | 423 | function GetMainCoolSet(Index: Integer): TCoolSet; |
426 | 424 | function GetBoardCoolSet(Index: Integer): TCoolSet; |
427 | 425 | function GetBrowserCoolSet(Index: Integer): TCoolSet; |
@@ -737,8 +735,7 @@ type | ||
737 | 735 | property BeAutoLogin: Boolean read FBeAutoLogin write FBeAutoLogin; |
738 | 736 | property BeLogin: Boolean read FBeLogin write FBeLogin; |
739 | 737 | property MaxRecordCount : Integer read FMaxRecordCount write FMaxRecordCount; |
740 | - //! Xbhê_E[hãÉXbh¼Å¸\[g·é© | |
741 | - property AutoSortThreadList : Boolean read FAutoSortThreadList write FAutoSortThreadList; | |
738 | + | |
742 | 739 | end; |
743 | 740 | |
744 | 741 |
@@ -1256,8 +1253,6 @@ begin | ||
1256 | 1253 | FCategorySortOrder := ini.ReadBool('ThreadList', 'CategorySortOrder', True); |
1257 | 1254 | FBoardSortIndex := ini.ReadInteger('ThreadList', 'BoardSortIndex', 0); |
1258 | 1255 | FBoardSortOrder := ini.ReadBool('ThreadList', 'BoardSortOrder', True); |
1259 | - // DLãÌ©®\[g | |
1260 | - FAutoSortThreadList := ini.ReadBool('ThreadList', 'AutoSort', True); | |
1261 | 1256 | //Dat¿X\[g |
1262 | 1257 | FDatOchiSortIndex := ini.ReadInteger('ThreadList', 'DatOchiSortIndex', -1); |
1263 | 1258 | FDatOchiSortOrder := ini.ReadBool('ThreadList', 'DatOchiSortOrder', False); |
@@ -1592,8 +1587,6 @@ begin | ||
1592 | 1587 | ini.WriteBool('ThreadList', 'BoardSortOrder', FBoardSortOrder); |
1593 | 1588 | ini.WriteInteger('ThreadList', 'DatOchiSortIndex', FDatOchiSortIndex); |
1594 | 1589 | ini.WriteBool('ThreadList', 'DatOchiSortOrder', FDatOchiSortOrder); |
1595 | - // DLãÌ©®\[g | |
1596 | - ini.WriteBool('ThreadList', 'AutoSort', FAutoSortThreadList); | |
1597 | 1590 | |
1598 | 1591 | //«Ý}VgpÝè |
1599 | 1592 | ini.WriteBool('PostTime', 'UseMachineTime', FUseMachineTime); |
@@ -118,10 +118,6 @@ LICENSE | ||
118 | 118 | @Cj [̨CÉüèÌ`æ̬» |
119 | 119 | @Xe[^Xo[É»Ý\¦µÄ¢éXbhÌeÊð\¦·éæ¤Éµ½ |
120 | 120 | @DAT¿µ½XÌeÊðæ¾Å«È¢sïÌC³ |
121 | -@ÂXVÅ[Jt@CðwèÅ«éæ¤ÉÏX | |
122 | -@Xbhê_E[hãÌ\[gðIvV» | |
123 | -@NG[hÉS¼pÐçªÈJ^JiÌá¢ð¯ê·éIvVÌÇÁ | |
124 | -@XÌiÝÅS¼pÐçªÈJ^J^Ìá¢ð³·éæ¤ÉÏX | |
125 | 121 | |
126 | 122 | 2005/10/10 |
127 | 123 | Version ÊÞÀ50 [X3 |