qBittorrent
propertieswidget.h
Go to the documentation of this file.
1
/*
2
* Bittorrent Client using Qt and libtorrent.
3
* Copyright (C) 2006 Christophe Dumez <
[email protected]
>
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
*
19
* In addition, as a special exception, the copyright holders give permission to
20
* link this program with the OpenSSL project's "OpenSSL" library (or with
21
* modified versions of it that use the same license as the "OpenSSL" library),
22
* and distribute the linked executables. You must obey the GNU General Public
23
* License in all respects for all of the code used other than "OpenSSL". If you
24
* modify file(s), you may extend this exception to your version of the file(s),
25
* but you are not obligated to do so. If you do not wish to do so, delete this
26
* exception statement from your version.
27
*/
28
29
#pragma once
30
31
#include <QList>
32
#include <QWidget>
33
34
class
QPushButton;
35
class
QTreeView;
36
37
class
DownloadedPiecesBar
;
38
class
LineEdit
;
39
class
PeerListWidget
;
40
class
PieceAvailabilityBar
;
41
class
PropListDelegate
;
42
class
PropTabBar
;
43
class
TorrentContentFilterModel
;
44
class
TrackerListWidget
;
45
46
namespace
BitTorrent
47
{
48
class
Torrent;
49
}
50
51
namespace
Ui
52
{
53
class
PropertiesWidget
;
54
}
55
56
class
PropertiesWidget
:
public
QWidget
57
{
58
Q_OBJECT
59
Q_DISABLE_COPY_MOVE(
PropertiesWidget
)
60
61
public
:
62
enum
SlideState
63
{
64
REDUCED
,
65
VISIBLE
66
};
67
68
explicit
PropertiesWidget
(QWidget *parent);
69
~PropertiesWidget
()
override
;
70
71
BitTorrent::Torrent
*
getCurrentTorrent
()
const
;
72
TrackerListWidget
*
getTrackerList
()
const
;
73
PeerListWidget
*
getPeerList
()
const
;
74
QTreeView *
getFilesList
()
const
;
75
76
public
slots:
77
void
setVisibility
(
bool
visible);
78
void
loadTorrentInfos
(
BitTorrent::Torrent
*
const
torrent);
79
void
loadDynamicData
();
80
void
clear
();
81
void
readSettings
();
82
void
saveSettings
();
83
void
reloadPreferences
();
84
void
displayFileListHeaderMenu
();
85
void
openItem
(
const
QModelIndex &index)
const
;
86
void
loadTrackers
(
BitTorrent::Torrent
*
const
torrent);
87
88
protected
slots:
89
void
updateTorrentInfos
(
BitTorrent::Torrent
*
const
torrent);
90
void
loadUrlSeeds
();
91
void
askWebSeed
();
92
void
deleteSelectedUrlSeeds
();
93
void
copySelectedWebSeedsToClipboard
()
const
;
94
void
editWebSeed
();
95
void
displayFilesListMenu
(
const
QPoint &);
96
void
displayWebSeedListMenu
(
const
QPoint &);
97
void
filteredFilesChanged
();
98
void
showPiecesDownloaded
(
bool
show);
99
void
showPiecesAvailability
(
bool
show);
100
void
openSelectedFile
();
101
102
private
slots:
103
void
configure
();
104
void
filterText
(
const
QString &filter);
105
void
updateSavePath
(
BitTorrent::Torrent
*
const
torrent);
106
107
private
:
108
QPushButton *
getButtonFromIndex
(
int
index);
109
void
applyPriorities
();
110
void
openParentFolder
(
const
QModelIndex &index)
const
;
111
QString
getFullPath
(
const
QModelIndex &index)
const
;
112
113
Ui::PropertiesWidget *
m_ui
;
114
BitTorrent::Torrent
*
m_torrent
;
115
SlideState
m_state
;
116
TorrentContentFilterModel
*
m_propListModel
;
117
PropListDelegate
*
m_propListDelegate
;
118
PeerListWidget
*
m_peerList
;
119
TrackerListWidget
*
m_trackerList
;
120
QWidget *
m_speedWidget
=
nullptr
;
121
QList<int>
m_slideSizes
;
122
DownloadedPiecesBar
*
m_downloadedPieces
;
123
PieceAvailabilityBar
*
m_piecesAvailability
;
124
PropTabBar
*
m_tabBar
;
125
LineEdit
*
m_contentFilterLine
;
126
int
m_handleWidth
;
127
};
BitTorrent::Torrent
Definition:
torrent.h:102
DownloadedPiecesBar
Definition:
downloadedpiecesbar.h:39
LineEdit
Definition:
lineedit.h:17
PeerListWidget
Definition:
peerlistwidget.h:56
PieceAvailabilityBar
Definition:
pieceavailabilitybar.h:34
PropListDelegate
Definition:
proplistdelegate.h:53
PropTabBar
Definition:
proptabbar.h:36
PropertiesWidget
Definition:
propertieswidget.h:57
PropertiesWidget::m_torrent
BitTorrent::Torrent * m_torrent
Definition:
propertieswidget.h:114
PropertiesWidget::saveSettings
void saveSettings()
Definition:
propertieswidget.cpp:390
PropertiesWidget::openParentFolder
void openParentFolder(const QModelIndex &index) const
Definition:
propertieswidget.cpp:613
PropertiesWidget::m_slideSizes
QList< int > m_slideSizes
Definition:
propertieswidget.h:121
PropertiesWidget::m_downloadedPieces
DownloadedPiecesBar * m_downloadedPieces
Definition:
propertieswidget.h:122
PropertiesWidget::showPiecesAvailability
void showPiecesAvailability(bool show)
Definition:
propertieswidget.cpp:207
PropertiesWidget::getFullPath
QString getFullPath(const QModelIndex &index) const
Definition:
propertieswidget.cpp:582
PropertiesWidget::loadTorrentInfos
void loadTorrentInfos(BitTorrent::Torrent *const torrent)
Definition:
propertieswidget.cpp:337
PropertiesWidget::openSelectedFile
void openSelectedFile()
Definition:
propertieswidget.cpp:756
PropertiesWidget::m_peerList
PeerListWidget * m_peerList
Definition:
propertieswidget.h:118
PropertiesWidget::filteredFilesChanged
void filteredFilesChanged()
Definition:
propertieswidget.cpp:882
PropertiesWidget::displayWebSeedListMenu
void displayWebSeedListMenu(const QPoint &)
Definition:
propertieswidget.cpp:731
PropertiesWidget::readSettings
void readSettings()
Definition:
propertieswidget.cpp:370
PropertiesWidget::m_trackerList
TrackerListWidget * m_trackerList
Definition:
propertieswidget.h:119
PropertiesWidget::configure
void configure()
Definition:
propertieswidget.cpp:764
PropertiesWidget::PropertiesWidget
PropertiesWidget(QWidget *parent)
Definition:
propertieswidget.cpp:73
PropertiesWidget::SlideState
SlideState
Definition:
propertieswidget.h:63
PropertiesWidget::VISIBLE
@ VISIBLE
Definition:
propertieswidget.h:65
PropertiesWidget::REDUCED
@ REDUCED
Definition:
propertieswidget.h:64
PropertiesWidget::reloadPreferences
void reloadPreferences()
Definition:
propertieswidget.cpp:409
PropertiesWidget::getTrackerList
TrackerListWidget * getTrackerList() const
Definition:
propertieswidget.cpp:304
PropertiesWidget::filterText
void filterText(const QString &filter)
Definition:
propertieswidget.cpp:888
PropertiesWidget::getCurrentTorrent
BitTorrent::Torrent * getCurrentTorrent() const
Definition:
propertieswidget.cpp:299
PropertiesWidget::loadTrackers
void loadTrackers(BitTorrent::Torrent *const torrent)
Definition:
propertieswidget.cpp:325
PropertiesWidget::showPiecesDownloaded
void showPiecesDownloaded(bool show)
Definition:
propertieswidget.cpp:216
PropertiesWidget::m_state
SlideState m_state
Definition:
propertieswidget.h:115
PropertiesWidget::clear
void clear()
Definition:
propertieswidget.cpp:260
PropertiesWidget::m_piecesAvailability
PieceAvailabilityBar * m_piecesAvailability
Definition:
propertieswidget.h:123
PropertiesWidget::displayFileListHeaderMenu
void displayFileListHeaderMenu()
Definition:
propertieswidget.cpp:180
PropertiesWidget::m_contentFilterLine
LineEdit * m_contentFilterLine
Definition:
propertieswidget.h:125
PropertiesWidget::editWebSeed
void editWebSeed()
Definition:
propertieswidget.cpp:851
PropertiesWidget::getFilesList
QTreeView * getFilesList() const
Definition:
propertieswidget.cpp:314
PropertiesWidget::m_handleWidth
int m_handleWidth
Definition:
propertieswidget.h:126
PropertiesWidget::openItem
void openItem(const QModelIndex &index) const
Definition:
propertieswidget.cpp:604
PropertiesWidget::setVisibility
void setVisibility(bool visible)
Definition:
propertieswidget.cpp:225
PropertiesWidget::loadUrlSeeds
void loadUrlSeeds()
Definition:
propertieswidget.cpp:566
PropertiesWidget::displayFilesListMenu
void displayFilesListMenu(const QPoint &)
Definition:
propertieswidget.cpp:624
PropertiesWidget::updateTorrentInfos
void updateTorrentInfos(BitTorrent::Torrent *const torrent)
Definition:
propertieswidget.cpp:331
PropertiesWidget::deleteSelectedUrlSeeds
void deleteSelectedUrlSeeds()
Definition:
propertieswidget.cpp:823
PropertiesWidget::loadDynamicData
void loadDynamicData()
Definition:
propertieswidget.cpp:416
PropertiesWidget::m_ui
Ui::PropertiesWidget * m_ui
Definition:
propertieswidget.h:113
PropertiesWidget::m_propListDelegate
PropListDelegate * m_propListDelegate
Definition:
propertieswidget.h:117
PropertiesWidget::updateSavePath
void updateSavePath(BitTorrent::Torrent *const torrent)
Definition:
propertieswidget.cpp:319
PropertiesWidget::getPeerList
PeerListWidget * getPeerList() const
Definition:
propertieswidget.cpp:309
PropertiesWidget::applyPriorities
void applyPriorities()
Definition:
propertieswidget.cpp:877
PropertiesWidget::askWebSeed
void askWebSeed()
Definition:
propertieswidget.cpp:801
PropertiesWidget::~PropertiesWidget
~PropertiesWidget() override
Definition:
propertieswidget.cpp:174
PropertiesWidget::m_speedWidget
QWidget * m_speedWidget
Definition:
propertieswidget.h:120
PropertiesWidget::m_tabBar
PropTabBar * m_tabBar
Definition:
propertieswidget.h:124
PropertiesWidget::copySelectedWebSeedsToClipboard
void copySelectedWebSeedsToClipboard() const
Definition:
propertieswidget.cpp:839
PropertiesWidget::getButtonFromIndex
QPushButton * getButtonFromIndex(int index)
PropertiesWidget::m_propListModel
TorrentContentFilterModel * m_propListModel
Definition:
propertieswidget.h:116
TorrentContentFilterModel
Definition:
torrentcontentfiltermodel.h:39
TrackerListWidget
Definition:
trackerlistwidget.h:42
BitTorrent
Definition:
application.h:62
Ui
Definition:
stacktracedialog.h:35
src
gui
properties
propertieswidget.h
Generated on Wed May 4 2022 08:51:13 for qBittorrent by
1.9.1