Introducing a new way to review your PRs.

Read the announcement

transmission-remote-gui / transgui

🧲 A feature rich cross platform Transmission BitTorrent client. Faster and has more functionality than the built-in web GUI.

View on GitHub

19 documents · Updated Sep 25, 2026

docs / torrent-lists-and-columns

Torrent lists and columns

Torrent lists turn daemon data into a readable view of torrent state, progress, transfer activity, and history. The main list and the detail lists use shared list and grid behavior so an engineer can reason about display, sorting, selection, and layout in one model. This page complements Desktop interface and preferences and Preferences and history.

System model

The list system has two related parts. A variable list holds row data, while a variable grid presents that data with headers, cell formatting, and user actions. The main form connects these parts to the torrent data returned by the daemon; the relevant source is /home/user/repo/main.pas.

Variable data model

A variable list is a row-and-column data store whose cells can hold different kinds of values. It keeps torrent values separate from their visual order, and it also keeps internal row state for selection and other list work. This separation lets the grid change its layout without changing the meaning of a torrent field.

The list supports grouped updates. The main form uses this behavior while it replaces or filters rows so the grid does not redraw for every cell change. It can also sort rows by a raw cell value and find a row by a value in a column.

References: varlist.pas• L47-95 varlist.pas• L227-258 varlist.pas• L366-429

Grid presentation model

A variable grid is the shared table view for torrent rows and detail rows. It maps visible columns to data columns, draws headers and cells, and keeps row selection independent from the data values. A column can therefore be moved or hidden while actions still use the correct torrent field.

The grid supplies common behavior for multi-row selection, keyboard navigation, hints for clipped text, quick search, column sizing, and column moving. Cell owners can add display attributes such as an image, indentation, a check box, or a tree control when a view needs more than plain text. The grid adjusts row height to fit its text or attached image, so state icons remain usable when the image set or display scale changes.

References: vargrid.pas• L43-59 vargrid.pas• L71-95 vargrid.pas• L346-379 vargrid.pas• L437-452 vargrid.pas• L616-620 vargrid.pas• L1036-1041

Torrent list information

The main torrent list gives a compact view of the values that help a user decide what to start, stop, inspect, or manage. The default layout shows the most useful live values first, while less common values start hidden and can be added through column setup.

Torrent columns

The main grid defines stable data columns for identity, progress, state, transfer activity, history, tracker data, queue data, and labels. The visible columns are a view of this wider data set rather than a different data model.

Information groupExamplesUser value
Identity and sizeName, Size, Size left, Size to downloadShows what the torrent is and how much data it uses or still needs.
Progress and stateDone, Status, Priority, PrivateShows completion, current work, priority, and private status.
Swarm and transferSeeds, Peers, Down speed, Up speed, ETA, RatioShows current network activity and expected completion.
HistoryDownloaded, Uploaded, Added on, Completed on, Last activeShows past transfer totals and important times.
Source and queueTracker, Tracker status, Path, Queue position, Seeding timeShows where the torrent works and how it is placed in the daemon queue.
ClassificationLabelsSupports user grouping and label filters.

The form starts with columns such as Name, Size, Done, Status, Seeds, Peers, transfer speeds, ETA, and Ratio. Columns such as tracker details, dates, path, queue data, and private state start hidden so a narrow window remains useful.

References: main.lfm• L83-247 main.pas• L852-945

Row presentation

The row view turns raw daemon values into text and visual cues that are easier to scan. The grid uses the first visible column for the torrent state image, so the image remains visible even after the user changes the column order.

The main list presents values in these forms:

  • Completion appears as a percentage and as a progress bar.
  • Sizes and rates use human-readable byte units. Rates include a per-second suffix.
  • Status and priority use readable, translated labels.
  • Seeds and peers can include total counts when the daemon supplies them.
  • ETA and seeding time use compact time units.
  • Dates use either a date and time or a relative age, based on the interface setting.
  • An unlimited ratio uses an infinity symbol. Missing values stay blank or use a short placeholder when the field must remain visible.

Rows with an error can show an error state image. A torrent that no longer belongs to the current daemon result can be removed from the displayed list, while a row marked as deleted is shown with strike-through text during the relevant update.

References: main.pas• L1067-1089 main.pas• L3223-3373 main.pas• L4577-4643 main.pas• L4722-4729

List interactions

The grid provides the common interaction layer, while the main form assigns torrent meaning to those actions. Selection drives commands and the detail pane, and the active column layout does not change which torrent is selected.

Selection and navigation

The torrent grid supports single-row focus and multi-row selection. Control-click and shift-click extend or change the selection, and keyboard movement can clear a selection when the user starts a new navigation action. Commands use the selected torrent IDs rather than the displayed row positions.

Selecting a torrent updates the detail pane for that torrent. If the current selection disappears after a refresh or filter change, the list keeps the nearest usable row in view. The filter pane and the main grid also support keyboard access through the status filter shortcuts.

The grid also keeps partial mouse-wheel input until it forms a complete scroll step. Normal wheel input moves through rows, while Ctrl-wheel moves across columns. This keeps list navigation consistent with high-resolution input and with wide layouts.

References: vargrid.pas• L388-447 vargrid.pas• L796-876 vargrid.pas• L891-952 vargrid.pas• L1211-1263 main.pas• L4645-4681 main.pas• L4534-4563

Clicking a torrent header selects that column for sorting. Clicking the same header changes between ascending and descending order, and the header shows the active direction. The sort uses the underlying value rather than the formatted text, so numeric and date columns keep useful order.

Seeds and peers use total-count fields when available for sorting. Typing while the grid has focus performs a quick search in torrent names and selects the first matching row. The main search box performs a broader list refresh that combines name search with the active status, path, label, or tracker filter.

References: vargrid.pas• L945-964 vargrid.pas• L1296-1319 vargrid.pas• L546-569 main.pas• L4742-4760 main.pas• L4782-4788 main.pas• L6472-6504

In-place changes

The name cell can enter edit mode when the rename action targets the torrent grid. The main form sends the rename to the daemon first, then updates the row and clears dependent file data only after the rename succeeds.

A double-click on a finished torrent tries to open its local file or folder. If that is not possible, the same action opens torrent properties. Check boxes and tree buttons use the same grid event model in other list views, which keeps file and torrent actions consistent. A checkbox action can apply to the selected rows, then notify the owning view after the group is complete, so a file-selection change can be sent as one user action.

References: vargrid.pas• L1081-1093 vargrid.pas• L1166-1195 vargrid.pas• L1364-1382 main.pas• L4683-4720 main.pas• L4774-4780

Column configuration

Column configuration changes the user's view without changing the torrent's identity or the daemon's state. The configuration applies to the focused list and controls visibility, order, width, and sort state.

Column setup workflow

The Columns setup action opens a checklist for the focused torrent, file, peer, or tracker grid. The user can check columns to show them and use Up or Down to set their order. The dialog rejects a layout with no visible column.

The change is applied as one grid update. If the user hides the active sort column, the view moves sorting to its protected first data column when that fallback is available. A newly shown column receives a usable width when its old width was too small.

The following diagram shows how a layout change moves from the user action to the refreshed torrent view.

flowchart LR
    A[Columns setup] --> B[Choose visibility and order]
    B --> C[Apply grid layout]
    C --> D[Rebuild requested torrent fields]
    D --> E[Refresh daemon data]
    E --> F[Format and draw rows]

References: colsetup.pas• L45-66 colsetup.pas• L72-121 colsetup.pas• L126-188 main.pas• L3925-3955

Layout persistence

The application loads list layouts when the main window starts and saves them before it closes. Each saved column uses its stable ID, width, visual position, and visibility. The saved sort column and sort direction are stored with the same list section.

The layout is saved separately for the torrent, file, peer, and tracker lists. Loading matches saved IDs to the current columns, so a changed visual order does not make a cell point to a different field. A missing saved entry leaves the current default in place.

References: main.pas• L1784-1788 main.pas• L3148-3155 main.pas• L5775-5819

Data request coupling

Visible torrent columns also influence which optional torrent fields the application asks the daemon to return. After a torrent layout change, the main form builds a field list from visible columns and refreshes the data. Label grouping adds label data even when the Labels column is not visible because the filter pane still needs it.

This link means a display change can affect data freshness. A new column needs a stable data index, a remote field mapping when required, and a row formatter that can handle missing or unsupported values.

References: main.pas• L941-945 main.pas• L2128-2133 main.pas• L3223-3245 main.pas• L6161-6169 main.pas• L6257-6409

Detail list views

The information pane uses the same grid rules for files, peers, and trackers. These lists show data for the selected torrent and have their own columns and saved layouts, while their cell formatters add view-specific meaning such as file progress, peer country images, or tracker status.

Files peers and trackers

The Files list presents the torrent's file tree with size, completion, percent, and priority. The Peers list presents host, port, country, client, flags, completion, and transfer rates. The Trackers list presents tracker name, status, update time, and seed count.

These views reuse column moving, sizing, sorting, selection, and persistence. Their actions remain tied to the selected torrent and to the data column behind each visible column.

References: main.lfm• L886-1029 main.pas• L1784-1788 main.pas• L4802-4843 main.pas• L4910-4960

Filter pane relationship

The filter pane is a narrow grid that turns torrent state into selectable filters. Its fixed status rows show counts for all torrents, downloading, completed, active, inactive, stopped, error, and waiting states. Dynamic rows can represent a path, label, or tracker value.

Choosing a filter causes the next torrent refresh to discard rows that do not match it. The main search text is applied after these filters, so the visible list is the intersection of the selected filter and the name search rather than a separate result set.

References: main.lfm• L47-81 main.pas• L4845-4886 main.pas• L6133-6151 main.pas• L6437-6504

Change checklist

When these files or sections are changed, remember to consider these:

  • A new or renamed torrent column must stay aligned across the grid definition, stable index constants, remote field map, row population, and cell formatter.
  • A change to column IDs must preserve saved-layout matching or include a path for old layout data.
  • A change to label grouping must keep label retrieval, label display, dynamic filter rows, and name filtering in agreement.
  • A change to sort behavior must keep the raw sort value separate from the formatted value shown in the cell.
  • A field that can be absent for an older daemon or incomplete metadata must have a blank or placeholder display path.
  • A hidden active sort column must still have a defined fallback when column setup applies a new layout.
  • A change to grid images or display scaling must recalculate row height without making hidden rows visible.
  • A change to wheel input must preserve partial high-resolution deltas and keep Ctrl-wheel separate from normal vertical scrolling.
  • A grouped checkbox action must notify its owning view only after all selected-row changes are applied.

Important failure modes

TriggerConsequenceGuard
The user clears every column in the setup dialog.The view would have no usable header or data area.The dialog refuses to accept a layout with no visible column.
A visible column has no matching remote field or the daemon does not return the field.The column is blank or shows a placeholder.Keep optional-field checks and display fallbacks with the column's data path.
A saved layout refers to a changed or reused column ID.A restart can apply an old width or visibility state to the wrong field.Treat column IDs as stable identities.
A visible torrent field is added without updating the request field map.The grid can ask for no data for that field and show stale or empty values.Update the field map and refresh path with the column.
The active sort column is hidden without a fallback.Sorting can become unclear or point to a column the user cannot see.Move sorting to the protected first data column when the layout changes.
Row height is recalculated without retaining hidden-row state.Filtered or suppressed rows can reappear after an image or scale change.Reapply hidden row heights after the default height changes.
High-resolution wheel input is handled as a full step on every event.The list can scroll too far or fail to move smoothly.Accumulate wheel deltas and consume complete vertical or horizontal steps.
A multi-row checkbox action reports completion before all rows change.The file view or daemon request can reflect only part of the user's selection.Use the post-checkbox notification after the selected rows are processed.

Key files

FileWhy to read it
main.pasConnects daemon torrent data to the main grid, formats row values, applies filters, handles sorting and search, and loads or saves layouts.
main.lfmDefines the default torrent columns and the file, peer, tracker, and filter grid views.
varlist.pasDefines the row-and-column data model and its update, sort, and lookup behavior.
vargrid.pasDefines shared grid behavior for display, selection, search, sorting, editing, column mapping, scaled row sizing, and smooth wheel navigation.
colsetup.pasDefines the user flow for showing, hiding, and reordering columns.