Skip to content

Commit e86563a

Browse files
refactor: use controler_treeview_torrent_data.pas
Reduce the code size of main.pas to some dedicated class.
1 parent 59d8a2d commit e86563a

File tree

4 files changed

+37
-288
lines changed

4 files changed

+37
-288
lines changed

source/code/main.lfm

Lines changed: 3 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -223,33 +223,6 @@ object FormTrackerModify: TFormTrackerModify
223223
end
224224
object TabSheetTorrentsContents: TTabSheet
225225
Caption = 'Files/Trackers/Info'
226-
ClientHeight = 561
227-
ClientWidth = 1171
228-
object GroupBoxTorrentContents: TGroupBox
229-
Left = 0
230-
Height = 561
231-
Top = 0
232-
Width = 1171
233-
Align = alClient
234-
Caption = 'Show all the files inside the torrents'
235-
ClientHeight = 543
236-
ClientWidth = 1167
237-
TabOrder = 0
238-
object TreeViewFileContents: TTreeView
239-
Left = 0
240-
Height = 543
241-
Top = 0
242-
Width = 1167
243-
Align = alClient
244-
AutoExpand = True
245-
DefaultItemHeight = 16
246-
PopupMenu = PopupMenuTorrentFilesContent
247-
ReadOnly = True
248-
ShowRoot = False
249-
TabOrder = 0
250-
Options = [tvoAutoExpand, tvoAutoItemHeight, tvoHideSelection, tvoKeepCollapsedNodes, tvoReadOnly, tvoShowButtons, tvoShowLines, tvoToolTips, tvoThemedDraw]
251-
end
252-
end
253226
end
254227
end
255228
object SelectDirectoryDialog1: TSelectDirectoryDialog
@@ -392,37 +365,8 @@ object FormTrackerModify: TFormTrackerModify
392365
end
393366
end
394367
end
395-
object PopupMenuTorrentFilesContent: TPopupMenu
396-
left = 632
397-
top = 152
398-
object MenuItemTorrentFilesTreeShowAll: TMenuItem
399-
Tag = -1
400-
Caption = 'Show Everything'
401-
OnClick = MenuItemTorrentFilesTreeShowAllClick
402-
end
403-
object MenuItemTorrentFilesTreeHideAll: TMenuItem
404-
Caption = 'Hide All'
405-
OnClick = MenuItemTorrentFilesTreeHideAllClick
406-
end
407-
object MenuItemTorrentFilesTreeShowFiles: TMenuItem
408-
AutoCheck = True
409-
Caption = 'Show All Files'
410-
Checked = True
411-
OnClick = MenuItemTorrentFilesTreeShowOrHideItemClick
412-
end
413-
object MenuItemTorrentFilesTreeShowTrackers: TMenuItem
414-
Tag = 1
415-
AutoCheck = True
416-
Caption = 'Show All Trackers'
417-
Checked = True
418-
OnClick = MenuItemTorrentFilesTreeShowOrHideItemClick
419-
end
420-
object MenuItemTorrentFilesTreeShowInfo: TMenuItem
421-
Tag = 2
422-
AutoCheck = True
423-
Caption = 'Show All Info'
424-
Checked = True
425-
OnClick = MenuItemTorrentFilesTreeShowOrHideItemClick
426-
end
368+
object MainMenu1: TMainMenu
369+
left = 360
370+
top = 12
427371
end
428372
end

0 commit comments

Comments
 (0)