qBittorrent
|
#include <propertieswidget.h>
Public Types | |
enum | SlideState { REDUCED , VISIBLE } |
Public Slots | |
void | setVisibility (bool visible) |
void | loadTorrentInfos (BitTorrent::Torrent *const torrent) |
void | loadDynamicData () |
void | clear () |
void | readSettings () |
void | saveSettings () |
void | reloadPreferences () |
void | displayFileListHeaderMenu () |
void | openItem (const QModelIndex &index) const |
void | loadTrackers (BitTorrent::Torrent *const torrent) |
Public Member Functions | |
PropertiesWidget (QWidget *parent) | |
~PropertiesWidget () override | |
BitTorrent::Torrent * | getCurrentTorrent () const |
TrackerListWidget * | getTrackerList () const |
PeerListWidget * | getPeerList () const |
QTreeView * | getFilesList () const |
Protected Slots | |
void | updateTorrentInfos (BitTorrent::Torrent *const torrent) |
void | loadUrlSeeds () |
void | askWebSeed () |
void | deleteSelectedUrlSeeds () |
void | copySelectedWebSeedsToClipboard () const |
void | editWebSeed () |
void | displayFilesListMenu (const QPoint &) |
void | displayWebSeedListMenu (const QPoint &) |
void | filteredFilesChanged () |
void | showPiecesDownloaded (bool show) |
void | showPiecesAvailability (bool show) |
void | openSelectedFile () |
Private Slots | |
void | configure () |
void | filterText (const QString &filter) |
void | updateSavePath (BitTorrent::Torrent *const torrent) |
Private Member Functions | |
QPushButton * | getButtonFromIndex (int index) |
void | applyPriorities () |
void | openParentFolder (const QModelIndex &index) const |
QString | getFullPath (const QModelIndex &index) const |
Private Attributes | |
Ui::PropertiesWidget * | m_ui |
BitTorrent::Torrent * | m_torrent |
SlideState | m_state |
TorrentContentFilterModel * | m_propListModel |
PropListDelegate * | m_propListDelegate |
PeerListWidget * | m_peerList |
TrackerListWidget * | m_trackerList |
QWidget * | m_speedWidget = nullptr |
QList< int > | m_slideSizes |
DownloadedPiecesBar * | m_downloadedPieces |
PieceAvailabilityBar * | m_piecesAvailability |
PropTabBar * | m_tabBar |
LineEdit * | m_contentFilterLine |
int | m_handleWidth |
Definition at line 56 of file propertieswidget.h.
|
explicit |
Definition at line 73 of file propertieswidget.cpp.
References Preferences::changed(), configure(), deleteSelectedUrlSeeds(), displayFileListHeaderMenu(), displayFilesListMenu(), displayWebSeedListMenu(), editWebSeed(), filteredFilesChanged(), TorrentContentFilterModel::filteredFilesChanged(), PropListDelegate::filteredFilesChanged(), filterText(), BitTorrent::Session::instance(), Preferences::instance(), UIThemeManager::instance(), loadDynamicData(), m_contentFilterLine, m_downloadedPieces, m_peerList, m_piecesAvailability, m_propListDelegate, m_propListModel, m_state, m_tabBar, m_torrent, m_trackerList, m_ui, TrackerListWidget::moveSelectionDown(), TrackerListWidget::moveSelectionUp(), openItem(), openSelectedFile(), saveSettings(), Utils::Gui::scaledSize(), TorrentContentFilterModel::selectAll(), TorrentContentFilterModel::selectNone(), setVisibility(), Utils::Gui::smallIconSize(), PropTabBar::tabChanged(), BitTorrent::Session::torrentMetadataReceived(), BitTorrent::Session::torrentSavePathChanged(), updateSavePath(), updateTorrentInfos(), PropTabBar::visibilityToggled(), and VISIBLE.
|
override |
|
private |
Definition at line 877 of file propertieswidget.cpp.
References TorrentContentModel::getFilePriorities(), m_propListModel, m_torrent, TorrentContentFilterModel::model(), and BitTorrent::Torrent::prioritizeFiles().
Referenced by displayFilesListMenu(), and filteredFilesChanged().
|
protectedslot |
Definition at line 801 of file propertieswidget.cpp.
References BitTorrent::Torrent::addUrlSeeds(), AutoExpandableDialog::getText(), loadUrlSeeds(), m_torrent, and m_ui.
Referenced by displayWebSeedListMenu().
|
slot |
Definition at line 260 of file propertieswidget.cpp.
References PeerListWidget::clear(), TrackerListWidget::clear(), TorrentContentModel::clear(), DownloadedPiecesBar::clear(), PieceAvailabilityBar::clear(), m_contentFilterLine, m_downloadedPieces, m_peerList, m_piecesAvailability, m_propListModel, m_trackerList, m_ui, and TorrentContentFilterModel::model().
Referenced by loadTorrentInfos().
|
privateslot |
Definition at line 764 of file propertieswidget.cpp.
References Preferences::instance(), m_speedWidget, and m_ui.
Referenced by PropertiesWidget().
|
protectedslot |
Definition at line 839 of file propertieswidget.cpp.
References m_ui.
Referenced by displayWebSeedListMenu().
|
protectedslot |
Definition at line 823 of file propertieswidget.cpp.
References loadUrlSeeds(), m_torrent, m_ui, and BitTorrent::Torrent::removeUrlSeeds().
Referenced by displayWebSeedListMenu(), and PropertiesWidget().
|
slot |
Definition at line 180 of file propertieswidget.cpp.
References m_propListModel, m_ui, and saveSettings().
Referenced by PropertiesWidget().
|
protectedslot |
Definition at line 624 of file propertieswidget.cpp.
References applyPriorities(), UIThemeManager::getIcon(), BitTorrent::High, BitTorrent::Ignored, UIThemeManager::instance(), BitTorrent::Torrent::isSeed(), m_propListModel, m_torrent, m_ui, BitTorrent::Maximum, BitTorrent::Normal, openItem(), openParentFolder(), and PRIORITY.
Referenced by PropertiesWidget().
|
protectedslot |
Definition at line 731 of file propertieswidget.cpp.
References askWebSeed(), copySelectedWebSeedsToClipboard(), deleteSelectedUrlSeeds(), editWebSeed(), UIThemeManager::instance(), m_torrent, and m_ui.
Referenced by PropertiesWidget().
|
protectedslot |
Definition at line 851 of file propertieswidget.cpp.
References BitTorrent::Torrent::addUrlSeeds(), AutoExpandableDialog::getText(), loadUrlSeeds(), m_torrent, m_ui, and BitTorrent::Torrent::removeUrlSeeds().
Referenced by displayWebSeedListMenu(), and PropertiesWidget().
|
protectedslot |
Definition at line 882 of file propertieswidget.cpp.
References applyPriorities(), and m_torrent.
Referenced by PropertiesWidget().
|
privateslot |
Definition at line 888 of file propertieswidget.cpp.
References m_propListModel, m_ui, and Utils::String::wildcardToRegexPattern().
Referenced by PropertiesWidget().
|
private |
BitTorrent::Torrent * PropertiesWidget::getCurrentTorrent | ( | ) | const |
Definition at line 299 of file propertieswidget.cpp.
References m_torrent.
Referenced by TrackerListWidget::askForTrackers(), PeerListWidget::banSelectedPeers(), PropListDelegate::createEditor(), TrackerListWidget::deleteSelectedTrackers(), TrackerListWidget::editSelectedTracker(), TrackerListWidget::loadTrackers(), TrackerListWidget::moveSelectionDown(), TrackerListWidget::moveSelectionUp(), TrackerListWidget::reannounceSelected(), MainWindow::reloadTorrentStats(), PeerListWidget::showPeerListMenu(), TrackerListWidget::showTrackerListMenu(), PeerListWidget::updatePeerCountryResolutionState(), and PeerListWidget::updatePeerHostNameResolutionState().
QTreeView * PropertiesWidget::getFilesList | ( | ) | const |
Definition at line 314 of file propertieswidget.cpp.
References m_ui.
Referenced by MainWindow::loadPreferences().
|
private |
Definition at line 582 of file propertieswidget.cpp.
References BitTorrent::Torrent::actualStorageLocation(), TorrentContentModelItem::COL_NAME, Utils::Fs::expandPath(), BitTorrent::AbstractFileStorage::filePath(), TorrentContentModelItem::FileType, TorrentContentFilterModel::getFileIndex(), TorrentContentFilterModel::itemType(), m_propListModel, m_torrent, and TorrentContentFilterModel::parent().
Referenced by openItem(), and openParentFolder().
PeerListWidget * PropertiesWidget::getPeerList | ( | ) | const |
Definition at line 309 of file propertieswidget.cpp.
References m_peerList.
Referenced by MainWindow::loadPreferences().
TrackerListWidget * PropertiesWidget::getTrackerList | ( | ) | const |
Definition at line 304 of file propertieswidget.cpp.
References m_trackerList.
Referenced by MainWindow::loadPreferences().
|
slot |
Definition at line 416 of file propertieswidget.cpp.
References BitTorrent::Torrent::activeTime(), BitTorrent::Torrent::addedTime(), BitTorrent::Torrent::availableFileFractions(), C_INFINITY, BitTorrent::Torrent::completedTime(), BitTorrent::Torrent::connectionsCount(), BitTorrent::Torrent::connectionsLimit(), BitTorrent::Torrent::distributedCopies(), BitTorrent::Torrent::downloadingPieces(), BitTorrent::Torrent::downloadLimit(), BitTorrent::Torrent::downloadPayloadRate(), BitTorrent::Torrent::eta(), BitTorrent::Torrent::filePriorities(), BitTorrent::Torrent::filesProgress(), PropTabBar::FilesTab, BitTorrent::Torrent::finishedTime(), Utils::Misc::friendlyUnit(), Utils::String::fromDouble(), BitTorrent::Torrent::hasMetadata(), BitTorrent::Torrent::isChecking(), BitTorrent::Torrent::isPaused(), BitTorrent::Torrent::isQueued(), BitTorrent::Torrent::isSeed(), BitTorrent::Torrent::lastSeenComplete(), BitTorrent::Torrent::leechsCount(), PeerListWidget::loadPeers(), TrackerListWidget::loadTrackers(), m_downloadedPieces, m_peerList, m_piecesAvailability, m_propListModel, m_state, m_torrent, m_trackerList, m_ui, PropTabBar::MainTab, MAX_ETA, BitTorrent::Torrent::MAX_RATIO, TorrentContentFilterModel::model(), BitTorrent::Torrent::nextAnnounce(), PropTabBar::PeersTab, BitTorrent::Torrent::pieceAvailability(), BitTorrent::Torrent::pieceLength(), BitTorrent::Torrent::pieces(), BitTorrent::Torrent::piecesCount(), BitTorrent::Torrent::piecesHave(), BitTorrent::Torrent::progress(), BitTorrent::Torrent::realRatio(), BitTorrent::Torrent::seedsCount(), PieceAvailabilityBar::setAvailability(), DownloadedPiecesBar::setProgress(), TorrentContentModel::setupModelData(), showPiecesAvailability(), anonymous_namespace{session.cpp}::toString(), BitTorrent::Torrent::totalDownload(), BitTorrent::Torrent::totalLeechersCount(), BitTorrent::Torrent::totalPayloadDownload(), BitTorrent::Torrent::totalPayloadUpload(), BitTorrent::Torrent::totalSeedsCount(), BitTorrent::Torrent::totalUpload(), PropTabBar::TrackersTab, TorrentContentModel::updateFilesAvailability(), TorrentContentModel::updateFilesPriorities(), TorrentContentModel::updateFilesProgress(), BitTorrent::Torrent::uploadLimit(), BitTorrent::Torrent::uploadPayloadRate(), Utils::Misc::userFriendlyDuration(), VISIBLE, and BitTorrent::Torrent::wastedSize().
Referenced by loadTorrentInfos(), PropertiesWidget(), MainWindow::reloadTorrentStats(), setVisibility(), MainWindow::showEvent(), and MainWindow::tabChanged().
|
slot |
Definition at line 337 of file propertieswidget.cpp.
References clear(), TorrentContentModel::clear(), BitTorrent::Torrent::comment(), BitTorrent::Torrent::creationDate(), BitTorrent::Torrent::creator(), Utils::Misc::friendlyUnit(), BitTorrent::Torrent::hasMetadata(), BitTorrent::Torrent::infoHash(), Digest32< N >::isValid(), loadDynamicData(), loadUrlSeeds(), m_downloadedPieces, m_piecesAvailability, m_propListModel, m_torrent, m_ui, TorrentContentFilterModel::model(), Utils::Misc::parseHtmlLinks(), PiecesBar::setTorrent(), Digest32< N >::toString(), anonymous_namespace{session.cpp}::toString(), BitTorrent::Torrent::totalSize(), updateSavePath(), BitTorrent::InfoHash::v1(), and BitTorrent::InfoHash::v2().
Referenced by MainWindow::MainWindow(), and updateTorrentInfos().
|
slot |
Definition at line 325 of file propertieswidget.cpp.
References TrackerListWidget::loadTrackers(), m_torrent, and m_trackerList.
Referenced by MainWindow::MainWindow().
|
protectedslot |
Definition at line 566 of file propertieswidget.cpp.
References m_torrent, m_ui, and BitTorrent::Torrent::urlSeeds().
Referenced by askWebSeed(), deleteSelectedUrlSeeds(), editWebSeed(), and loadTorrentInfos().
|
slot |
Definition at line 604 of file propertieswidget.cpp.
References BitTorrent::Torrent::flushCache(), getFullPath(), m_torrent, and Utils::Gui::openPath().
Referenced by displayFilesListMenu(), openSelectedFile(), and PropertiesWidget().
|
private |
Definition at line 613 of file propertieswidget.cpp.
References BitTorrent::Torrent::flushCache(), getFullPath(), m_torrent, MacUtils::openFiles(), and Utils::Gui::openFolderSelect().
Referenced by displayFilesListMenu().
|
protectedslot |
Definition at line 756 of file propertieswidget.cpp.
References m_ui, and openItem().
Referenced by PropertiesWidget().
|
slot |
Definition at line 370 of file propertieswidget.cpp.
References Preferences::getPropCurTab(), Preferences::getPropFileListState(), Preferences::getPropSplitterSizes(), Preferences::getPropVisible(), Preferences::instance(), m_slideSizes, m_tabBar, m_ui, PropTabBar::setCurrentIndex(), and setVisibility().
Referenced by MainWindow::MainWindow().
|
slot |
Definition at line 409 of file propertieswidget.cpp.
References m_peerList, PeerListWidget::updatePeerCountryResolutionState(), and PeerListWidget::updatePeerHostNameResolutionState().
Referenced by MainWindow::loadPreferences().
|
slot |
Definition at line 390 of file propertieswidget.cpp.
References PropTabBar::currentIndex(), Preferences::instance(), m_slideSizes, m_state, m_tabBar, m_ui, Preferences::setPropCurTab(), Preferences::setPropFileListState(), Preferences::setPropSplitterSizes(), Preferences::setPropVisible(), and VISIBLE.
Referenced by displayFileListHeaderMenu(), PropertiesWidget(), and MainWindow::writeSettings().
|
slot |
Definition at line 225 of file propertieswidget.cpp.
References loadDynamicData(), m_handleWidth, m_slideSizes, m_state, m_tabBar, m_ui, REDUCED, and VISIBLE.
Referenced by PropertiesWidget(), and readSettings().
|
protectedslot |
Definition at line 207 of file propertieswidget.cpp.
References m_downloadedPieces, m_piecesAvailability, and m_ui.
Referenced by loadDynamicData().
|
protectedslot |
Definition at line 216 of file propertieswidget.cpp.
References m_downloadedPieces, m_piecesAvailability, and m_ui.
|
privateslot |
Definition at line 319 of file propertieswidget.cpp.
References m_torrent, m_ui, BitTorrent::Torrent::savePath(), and Utils::Fs::toNativePath().
Referenced by loadTorrentInfos(), and PropertiesWidget().
|
protectedslot |
Definition at line 331 of file propertieswidget.cpp.
References loadTorrentInfos(), and m_torrent.
Referenced by PropertiesWidget().
|
private |
Definition at line 125 of file propertieswidget.h.
Referenced by clear(), and PropertiesWidget().
|
private |
Definition at line 122 of file propertieswidget.h.
Referenced by clear(), loadDynamicData(), loadTorrentInfos(), PropertiesWidget(), showPiecesAvailability(), and showPiecesDownloaded().
|
private |
Definition at line 126 of file propertieswidget.h.
Referenced by setVisibility().
|
private |
Definition at line 118 of file propertieswidget.h.
Referenced by clear(), getPeerList(), loadDynamicData(), PropertiesWidget(), and reloadPreferences().
|
private |
Definition at line 123 of file propertieswidget.h.
Referenced by clear(), loadDynamicData(), loadTorrentInfos(), PropertiesWidget(), showPiecesAvailability(), and showPiecesDownloaded().
|
private |
Definition at line 117 of file propertieswidget.h.
Referenced by PropertiesWidget().
|
private |
Definition at line 116 of file propertieswidget.h.
Referenced by applyPriorities(), clear(), displayFileListHeaderMenu(), displayFilesListMenu(), filterText(), getFullPath(), loadDynamicData(), loadTorrentInfos(), and PropertiesWidget().
|
private |
Definition at line 121 of file propertieswidget.h.
Referenced by readSettings(), saveSettings(), and setVisibility().
|
private |
Definition at line 120 of file propertieswidget.h.
Referenced by configure().
|
private |
Definition at line 115 of file propertieswidget.h.
Referenced by loadDynamicData(), PropertiesWidget(), saveSettings(), and setVisibility().
|
private |
Definition at line 124 of file propertieswidget.h.
Referenced by PropertiesWidget(), readSettings(), saveSettings(), setVisibility(), and ~PropertiesWidget().
|
private |
Definition at line 114 of file propertieswidget.h.
Referenced by applyPriorities(), askWebSeed(), deleteSelectedUrlSeeds(), displayFilesListMenu(), displayWebSeedListMenu(), editWebSeed(), filteredFilesChanged(), getCurrentTorrent(), getFullPath(), loadDynamicData(), loadTorrentInfos(), loadTrackers(), loadUrlSeeds(), openItem(), openParentFolder(), PropertiesWidget(), updateSavePath(), and updateTorrentInfos().
|
private |
Definition at line 119 of file propertieswidget.h.
Referenced by clear(), getTrackerList(), loadDynamicData(), loadTrackers(), and PropertiesWidget().
|
private |
Definition at line 113 of file propertieswidget.h.
Referenced by askWebSeed(), clear(), configure(), copySelectedWebSeedsToClipboard(), deleteSelectedUrlSeeds(), displayFileListHeaderMenu(), displayFilesListMenu(), displayWebSeedListMenu(), editWebSeed(), filterText(), getFilesList(), loadDynamicData(), loadTorrentInfos(), loadUrlSeeds(), openSelectedFile(), PropertiesWidget(), readSettings(), saveSettings(), setVisibility(), showPiecesAvailability(), showPiecesDownloaded(), updateSavePath(), and ~PropertiesWidget().