Vladimir Golovnev (Glassez)
5 years ago
13 changed files with 438 additions and 507 deletions
@ -1,176 +1,165 @@ |
|||||||
set(CMAKE_AUTORCC True) |
set(CMAKE_AUTORCC True) |
||||||
set(CMAKE_AUTOUIC True) |
set(CMAKE_AUTOUIC True) |
||||||
|
|
||||||
add_library(qbt_gui_headers INTERFACE) |
add_library(qbt_gui STATIC |
||||||
target_include_directories(qbt_gui_headers INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}) |
# headers |
||||||
|
aboutdialog.h |
||||||
|
addnewtorrentdialog.h |
||||||
|
advancedsettings.h |
||||||
|
autoexpandabledialog.h |
||||||
|
banlistoptionsdialog.h |
||||||
|
categoryfiltermodel.h |
||||||
|
categoryfilterproxymodel.h |
||||||
|
categoryfilterwidget.h |
||||||
|
cookiesdialog.h |
||||||
|
cookiesmodel.h |
||||||
|
deletionconfirmationdialog.h |
||||||
|
downloadfromurldialog.h |
||||||
|
executionlogwidget.h |
||||||
|
fspathedit.h |
||||||
|
hidabletabwidget.h |
||||||
|
ipsubnetwhitelistoptionsdialog.h |
||||||
|
lineedit.h |
||||||
|
mainwindow.h |
||||||
|
optionsdialog.h |
||||||
|
previewlistdelegate.h |
||||||
|
previewselectdialog.h |
||||||
|
private/fspathedit_p.h |
||||||
|
private/tristatewidget.h |
||||||
|
raisedmessagebox.h |
||||||
|
scanfoldersdelegate.h |
||||||
|
shutdownconfirmdialog.h |
||||||
|
speedlimitdialog.h |
||||||
|
statsdialog.h |
||||||
|
statusbar.h |
||||||
|
tagfiltermodel.h |
||||||
|
tagfilterproxymodel.h |
||||||
|
tagfilterwidget.h |
||||||
|
torrentcategorydialog.h |
||||||
|
torrentcontentfiltermodel.h |
||||||
|
torrentcontentmodel.h |
||||||
|
torrentcontentmodelfile.h |
||||||
|
torrentcontentmodelfolder.h |
||||||
|
torrentcontentmodelitem.h |
||||||
|
torrentcontenttreeview.h |
||||||
|
torrentcreatordialog.h |
||||||
|
trackerentriesdialog.h |
||||||
|
transferlistdelegate.h |
||||||
|
transferlistfilterswidget.h |
||||||
|
transferlistmodel.h |
||||||
|
transferlistsortmodel.h |
||||||
|
transferlistwidget.h |
||||||
|
tristateaction.h |
||||||
|
uithememanager.h |
||||||
|
updownratiodialog.h |
||||||
|
utils.h |
||||||
|
|
||||||
|
# sources |
||||||
|
aboutdialog.cpp |
||||||
|
addnewtorrentdialog.cpp |
||||||
|
advancedsettings.cpp |
||||||
|
autoexpandabledialog.cpp |
||||||
|
banlistoptionsdialog.cpp |
||||||
|
categoryfiltermodel.cpp |
||||||
|
categoryfilterproxymodel.cpp |
||||||
|
categoryfilterwidget.cpp |
||||||
|
cookiesdialog.cpp |
||||||
|
cookiesmodel.cpp |
||||||
|
deletionconfirmationdialog.cpp |
||||||
|
downloadfromurldialog.cpp |
||||||
|
executionlogwidget.cpp |
||||||
|
fspathedit.cpp |
||||||
|
hidabletabwidget.cpp |
||||||
|
ipsubnetwhitelistoptionsdialog.cpp |
||||||
|
lineedit.cpp |
||||||
|
mainwindow.cpp |
||||||
|
optionsdialog.cpp |
||||||
|
previewlistdelegate.cpp |
||||||
|
previewselectdialog.cpp |
||||||
|
private/fspathedit_p.cpp |
||||||
|
private/tristatewidget.cpp |
||||||
|
raisedmessagebox.cpp |
||||||
|
scanfoldersdelegate.cpp |
||||||
|
shutdownconfirmdialog.cpp |
||||||
|
speedlimitdialog.cpp |
||||||
|
statsdialog.cpp |
||||||
|
statusbar.cpp |
||||||
|
tagfiltermodel.cpp |
||||||
|
tagfilterproxymodel.cpp |
||||||
|
tagfilterwidget.cpp |
||||||
|
torrentcategorydialog.cpp |
||||||
|
torrentcontentfiltermodel.cpp |
||||||
|
torrentcontentmodel.cpp |
||||||
|
torrentcontentmodelfile.cpp |
||||||
|
torrentcontentmodelfolder.cpp |
||||||
|
torrentcontentmodelitem.cpp |
||||||
|
torrentcontenttreeview.cpp |
||||||
|
torrentcreatordialog.cpp |
||||||
|
trackerentriesdialog.cpp |
||||||
|
transferlistdelegate.cpp |
||||||
|
transferlistfilterswidget.cpp |
||||||
|
transferlistmodel.cpp |
||||||
|
transferlistsortmodel.cpp |
||||||
|
transferlistwidget.cpp |
||||||
|
tristateaction.cpp |
||||||
|
uithememanager.cpp |
||||||
|
updownratiodialog.cpp |
||||||
|
utils.cpp |
||||||
|
|
||||||
|
# forms |
||||||
|
aboutdialog.ui |
||||||
|
addnewtorrentdialog.ui |
||||||
|
autoexpandabledialog.ui |
||||||
|
banlistoptionsdialog.ui |
||||||
|
cookiesdialog.ui |
||||||
|
deletionconfirmationdialog.ui |
||||||
|
downloadfromurldialog.ui |
||||||
|
executionlogwidget.ui |
||||||
|
ipsubnetwhitelistoptionsdialog.ui |
||||||
|
mainwindow.ui |
||||||
|
optionsdialog.ui |
||||||
|
previewselectdialog.ui |
||||||
|
shutdownconfirmdialog.ui |
||||||
|
speedlimitdialog.ui |
||||||
|
statsdialog.ui |
||||||
|
torrentcategorydialog.ui |
||||||
|
torrentcreatordialog.ui |
||||||
|
trackerentriesdialog.ui |
||||||
|
updownratiodialog.ui |
||||||
|
|
||||||
|
# resources |
||||||
|
about.qrc |
||||||
|
) |
||||||
|
|
||||||
|
if (WIN32 OR APPLE) |
||||||
|
target_sources(qbt_gui PRIVATE programupdater.h programupdater.cpp) |
||||||
|
endif() |
||||||
|
|
||||||
|
add_subdirectory(log) |
||||||
add_subdirectory(properties) |
add_subdirectory(properties) |
||||||
add_subdirectory(powermanagement) |
add_subdirectory(powermanagement) |
||||||
add_subdirectory(rss) |
add_subdirectory(rss) |
||||||
add_subdirectory(search) |
add_subdirectory(search) |
||||||
|
|
||||||
add_library(qbt_gui STATIC |
if (UNIX AND Qt5DBus_FOUND) |
||||||
# headers |
add_subdirectory(qtnotify) |
||||||
aboutdialog.h |
target_link_libraries(qbt_gui PRIVATE Qt5::DBus) |
||||||
addnewtorrentdialog.h |
endif() |
||||||
advancedsettings.h |
|
||||||
autoexpandabledialog.h |
|
||||||
banlistoptionsdialog.h |
|
||||||
categoryfiltermodel.h |
|
||||||
categoryfilterproxymodel.h |
|
||||||
categoryfilterwidget.h |
|
||||||
cookiesdialog.h |
|
||||||
cookiesmodel.h |
|
||||||
deletionconfirmationdialog.h |
|
||||||
downloadfromurldialog.h |
|
||||||
executionlogwidget.h |
|
||||||
fspathedit.h |
|
||||||
hidabletabwidget.h |
|
||||||
ipsubnetwhitelistoptionsdialog.h |
|
||||||
lineedit.h |
|
||||||
log/logfiltermodel.h |
|
||||||
log/loglistview.h |
|
||||||
log/logmodel.h |
|
||||||
mainwindow.h |
|
||||||
optionsdialog.h |
|
||||||
previewlistdelegate.h |
|
||||||
previewselectdialog.h |
|
||||||
private/fspathedit_p.h |
|
||||||
private/tristatewidget.h |
|
||||||
raisedmessagebox.h |
|
||||||
scanfoldersdelegate.h |
|
||||||
shutdownconfirmdialog.h |
|
||||||
speedlimitdialog.h |
|
||||||
statsdialog.h |
|
||||||
statusbar.h |
|
||||||
tagfiltermodel.h |
|
||||||
tagfilterproxymodel.h |
|
||||||
tagfilterwidget.h |
|
||||||
torrentcategorydialog.h |
|
||||||
torrentcontentfiltermodel.h |
|
||||||
torrentcontentmodel.h |
|
||||||
torrentcontentmodelfile.h |
|
||||||
torrentcontentmodelfolder.h |
|
||||||
torrentcontentmodelitem.h |
|
||||||
torrentcontenttreeview.h |
|
||||||
torrentcreatordialog.h |
|
||||||
trackerentriesdialog.h |
|
||||||
transferlistdelegate.h |
|
||||||
transferlistfilterswidget.h |
|
||||||
transferlistmodel.h |
|
||||||
transferlistsortmodel.h |
|
||||||
transferlistwidget.h |
|
||||||
tristateaction.h |
|
||||||
uithememanager.h |
|
||||||
updownratiodialog.h |
|
||||||
utils.h |
|
||||||
|
|
||||||
# sources |
|
||||||
aboutdialog.cpp |
|
||||||
addnewtorrentdialog.cpp |
|
||||||
advancedsettings.cpp |
|
||||||
autoexpandabledialog.cpp |
|
||||||
banlistoptionsdialog.cpp |
|
||||||
categoryfiltermodel.cpp |
|
||||||
categoryfilterproxymodel.cpp |
|
||||||
categoryfilterwidget.cpp |
|
||||||
cookiesdialog.cpp |
|
||||||
cookiesmodel.cpp |
|
||||||
deletionconfirmationdialog.cpp |
|
||||||
downloadfromurldialog.cpp |
|
||||||
executionlogwidget.cpp |
|
||||||
fspathedit.cpp |
|
||||||
hidabletabwidget.cpp |
|
||||||
ipsubnetwhitelistoptionsdialog.cpp |
|
||||||
lineedit.cpp |
|
||||||
log/logfiltermodel.cpp |
|
||||||
log/loglistview.cpp |
|
||||||
log/logmodel.cpp |
|
||||||
mainwindow.cpp |
|
||||||
optionsdialog.cpp |
|
||||||
previewlistdelegate.cpp |
|
||||||
previewselectdialog.cpp |
|
||||||
private/fspathedit_p.cpp |
|
||||||
private/tristatewidget.cpp |
|
||||||
raisedmessagebox.cpp |
|
||||||
scanfoldersdelegate.cpp |
|
||||||
shutdownconfirmdialog.cpp |
|
||||||
speedlimitdialog.cpp |
|
||||||
statsdialog.cpp |
|
||||||
statusbar.cpp |
|
||||||
tagfiltermodel.cpp |
|
||||||
tagfilterproxymodel.cpp |
|
||||||
tagfilterwidget.cpp |
|
||||||
torrentcategorydialog.cpp |
|
||||||
torrentcontentfiltermodel.cpp |
|
||||||
torrentcontentmodel.cpp |
|
||||||
torrentcontentmodelfile.cpp |
|
||||||
torrentcontentmodelfolder.cpp |
|
||||||
torrentcontentmodelitem.cpp |
|
||||||
torrentcontenttreeview.cpp |
|
||||||
torrentcreatordialog.cpp |
|
||||||
trackerentriesdialog.cpp |
|
||||||
transferlistdelegate.cpp |
|
||||||
transferlistfilterswidget.cpp |
|
||||||
transferlistmodel.cpp |
|
||||||
transferlistsortmodel.cpp |
|
||||||
transferlistwidget.cpp |
|
||||||
tristateaction.cpp |
|
||||||
uithememanager.cpp |
|
||||||
updownratiodialog.cpp |
|
||||||
utils.cpp |
|
||||||
|
|
||||||
# forms |
|
||||||
aboutdialog.ui |
|
||||||
addnewtorrentdialog.ui |
|
||||||
autoexpandabledialog.ui |
|
||||||
banlistoptionsdialog.ui |
|
||||||
cookiesdialog.ui |
|
||||||
deletionconfirmationdialog.ui |
|
||||||
downloadfromurldialog.ui |
|
||||||
executionlogwidget.ui |
|
||||||
ipsubnetwhitelistoptionsdialog.ui |
|
||||||
mainwindow.ui |
|
||||||
optionsdialog.ui |
|
||||||
previewselectdialog.ui |
|
||||||
shutdownconfirmdialog.ui |
|
||||||
speedlimitdialog.ui |
|
||||||
statsdialog.ui |
|
||||||
torrentcategorydialog.ui |
|
||||||
torrentcreatordialog.ui |
|
||||||
trackerentriesdialog.ui |
|
||||||
updownratiodialog.ui |
|
||||||
) |
|
||||||
|
|
||||||
target_link_libraries(qbt_gui |
target_link_libraries(qbt_gui |
||||||
PRIVATE |
PRIVATE |
||||||
qbt_powermanagement qbt_rss qbt_properties qbt_searchengine |
|
||||||
qbt_base |
qbt_base |
||||||
|
PUBLIC |
||||||
|
Qt5::Gui Qt5::Widgets |
||||||
) |
) |
||||||
|
|
||||||
target_include_directories(qbt_gui |
|
||||||
PRIVATE ../app |
|
||||||
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} |
|
||||||
) |
|
||||||
|
|
||||||
if (UNIX AND Qt5DBus_FOUND) |
|
||||||
add_subdirectory(qtnotify) |
|
||||||
target_link_libraries(qbt_gui PRIVATE qbt_qtnotify) |
|
||||||
endif (UNIX AND Qt5DBus_FOUND) |
|
||||||
|
|
||||||
if (APPLE) |
if (APPLE) |
||||||
target_sources(qbt_gui PRIVATE macutilities.h macutilities.mm) |
target_sources(qbt_gui PRIVATE macutilities.h macutilities.mm) |
||||||
find_package(Qt5 ${requiredQtVersion} REQUIRED COMPONENTS MacExtras) |
find_package(Qt5 ${requiredQtVersion} REQUIRED COMPONENTS MacExtras) |
||||||
target_link_libraries(qbt_gui PRIVATE Qt5::MacExtras objc) |
target_link_libraries(qbt_gui PRIVATE Qt5::MacExtras objc) |
||||||
endif (APPLE) |
endif() |
||||||
|
|
||||||
if (WIN32 OR APPLE) |
|
||||||
target_sources(qbt_gui PRIVATE programupdater.h programupdater.cpp) |
|
||||||
endif (WIN32 OR APPLE) |
|
||||||
|
|
||||||
qbt_target_sources(qBittorrent PRIVATE about.qrc) |
|
||||||
|
|
||||||
if(WIN32) |
if (WIN32) |
||||||
find_package(Qt5 ${requiredQtVersion} REQUIRED COMPONENTS WinExtras) |
find_package(Qt5 ${requiredQtVersion} REQUIRED COMPONENTS WinExtras) |
||||||
target_link_libraries(qbt_gui PRIVATE Qt5::WinExtras) |
target_link_libraries(qbt_gui PRIVATE Qt5::WinExtras PowrProf) |
||||||
endif(WIN32) |
endif() |
||||||
|
@ -0,0 +1,11 @@ |
|||||||
|
target_sources(qbt_gui PRIVATE |
||||||
|
# headers |
||||||
|
logfiltermodel.h |
||||||
|
loglistview.h |
||||||
|
logmodel.h |
||||||
|
|
||||||
|
#sources |
||||||
|
logfiltermodel.cpp |
||||||
|
loglistview.cpp |
||||||
|
logmodel.cpp |
||||||
|
) |
@ -1,23 +1,8 @@ |
|||||||
add_library(qbt_powermanagement STATIC |
target_sources(qbt_gui PRIVATE powermanagement.h powermanagement.cpp) |
||||||
# headers |
|
||||||
powermanagement.h |
|
||||||
|
|
||||||
# sources |
|
||||||
powermanagement.cpp |
|
||||||
) |
|
||||||
|
|
||||||
target_link_libraries(qbt_powermanagement PUBLIC Qt5::Core) |
|
||||||
set_target_properties(qbt_powermanagement PROPERTIES AUTOUIC False AUTORCC False) |
|
||||||
target_include_directories(qbt_powermanagement PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) |
|
||||||
|
|
||||||
if (UNIX AND Qt5DBus_FOUND) |
if (UNIX AND Qt5DBus_FOUND) |
||||||
find_package(X11) |
find_package(X11) |
||||||
if (X11_FOUND) |
if (X11_FOUND) |
||||||
target_sources(qbt_powermanagement PRIVATE powermanagement_x11.h powermanagement_x11.cpp) |
target_sources(qbt_gui PRIVATE powermanagement_x11.h powermanagement_x11.cpp) |
||||||
target_link_libraries(qbt_powermanagement PRIVATE Qt5::DBus) |
endif() |
||||||
endif (X11_FOUND) |
endif() |
||||||
endif (UNIX AND Qt5DBus_FOUND) |
|
||||||
|
|
||||||
if (WIN32) |
|
||||||
target_link_libraries(qbt_powermanagement PRIVATE PowrProf) |
|
||||||
endif (WIN32) |
|
||||||
|
@ -1,52 +1,38 @@ |
|||||||
add_library(qbt_properties STATIC |
target_sources(qbt_gui PRIVATE |
||||||
# headers |
# headers |
||||||
downloadedpiecesbar.h |
downloadedpiecesbar.h |
||||||
peerlistdelegate.h |
peerlistdelegate.h |
||||||
peerlistsortmodel.h |
peerlistsortmodel.h |
||||||
peerlistwidget.h |
peerlistwidget.h |
||||||
peersadditiondialog.h |
peersadditiondialog.h |
||||||
pieceavailabilitybar.h |
pieceavailabilitybar.h |
||||||
piecesbar.h |
piecesbar.h |
||||||
propertieswidget.h |
propertieswidget.h |
||||||
proplistdelegate.h |
proplistdelegate.h |
||||||
proptabbar.h |
proptabbar.h |
||||||
speedplotview.h |
speedplotview.h |
||||||
speedwidget.h |
speedwidget.h |
||||||
trackerlistwidget.h |
trackerlistwidget.h |
||||||
trackersadditiondialog.h |
trackersadditiondialog.h |
||||||
|
|
||||||
# sources |
# sources |
||||||
downloadedpiecesbar.cpp |
downloadedpiecesbar.cpp |
||||||
peerlistdelegate.cpp |
peerlistdelegate.cpp |
||||||
peerlistsortmodel.cpp |
peerlistsortmodel.cpp |
||||||
peerlistwidget.cpp |
peerlistwidget.cpp |
||||||
peersadditiondialog.cpp |
peersadditiondialog.cpp |
||||||
pieceavailabilitybar.cpp |
pieceavailabilitybar.cpp |
||||||
piecesbar.cpp |
piecesbar.cpp |
||||||
propertieswidget.cpp |
propertieswidget.cpp |
||||||
proplistdelegate.cpp |
proplistdelegate.cpp |
||||||
proptabbar.cpp |
proptabbar.cpp |
||||||
speedplotview.cpp |
speedplotview.cpp |
||||||
speedwidget.cpp |
speedwidget.cpp |
||||||
trackerlistwidget.cpp |
trackerlistwidget.cpp |
||||||
trackersadditiondialog.cpp |
trackersadditiondialog.cpp |
||||||
|
|
||||||
# forms |
# forms |
||||||
peersadditiondialog.ui |
peersadditiondialog.ui |
||||||
propertieswidget.ui |
propertieswidget.ui |
||||||
trackersadditiondialog.ui |
trackersadditiondialog.ui |
||||||
) |
|
||||||
|
|
||||||
target_link_libraries(qbt_properties |
|
||||||
PRIVATE |
|
||||||
qbt_gui_headers |
|
||||||
PUBLIC |
|
||||||
qbt_base Qt5::Widgets |
|
||||||
) |
|
||||||
|
|
||||||
target_include_directories(qbt_properties |
|
||||||
PRIVATE |
|
||||||
${CMAKE_CURRENT_BINARY_DIR} |
|
||||||
PUBLIC |
|
||||||
${CMAKE_CURRENT_SOURCE_DIR} |
|
||||||
) |
) |
||||||
|
@ -1,11 +1 @@ |
|||||||
add_library(qbt_qtnotify STATIC |
target_sources(qbt_gui PRIVATE notifications.h notifications.cpp) |
||||||
# headers |
|
||||||
notifications.h |
|
||||||
|
|
||||||
# sources |
|
||||||
notifications.cpp |
|
||||||
) |
|
||||||
|
|
||||||
set_target_properties(qbt_qtnotify PROPERTIES AUTOUIC False AUTORCC False) |
|
||||||
target_link_libraries(qbt_qtnotify PUBLIC Qt5::DBus) |
|
||||||
target_include_directories(qbt_qtnotify PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) |
|
||||||
|
@ -1,27 +1,19 @@ |
|||||||
add_library(qbt_rss STATIC |
target_sources(qbt_gui PRIVATE |
||||||
# headers |
# headers |
||||||
articlelistwidget.h |
articlelistwidget.h |
||||||
automatedrssdownloader.h |
automatedrssdownloader.h |
||||||
feedlistwidget.h |
feedlistwidget.h |
||||||
htmlbrowser.h |
htmlbrowser.h |
||||||
rsswidget.h |
rsswidget.h |
||||||
|
|
||||||
#sources |
#sources |
||||||
articlelistwidget.cpp |
articlelistwidget.cpp |
||||||
automatedrssdownloader.cpp |
automatedrssdownloader.cpp |
||||||
feedlistwidget.cpp |
feedlistwidget.cpp |
||||||
htmlbrowser.cpp |
htmlbrowser.cpp |
||||||
rsswidget.cpp |
rsswidget.cpp |
||||||
|
|
||||||
# forms |
# forms |
||||||
automatedrssdownloader.ui |
automatedrssdownloader.ui |
||||||
rsswidget.ui |
rsswidget.ui |
||||||
) |
|
||||||
|
|
||||||
target_include_directories(qbt_rss PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) |
|
||||||
target_link_libraries(qbt_rss |
|
||||||
PRIVATE |
|
||||||
qbt_gui_headers |
|
||||||
PUBLIC |
|
||||||
qbt_base Qt5::Gui Qt5::Widgets Qt5::Network |
|
||||||
) |
) |
||||||
|
@ -1,33 +1,22 @@ |
|||||||
add_library(qbt_searchengine STATIC |
target_sources(qbt_gui PRIVATE |
||||||
# headers |
# headers |
||||||
pluginselectdialog.h |
pluginselectdialog.h |
||||||
pluginsourcedialog.h |
pluginsourcedialog.h |
||||||
searchjobwidget.h |
searchjobwidget.h |
||||||
searchlistdelegate.h |
searchlistdelegate.h |
||||||
searchsortmodel.h |
searchsortmodel.h |
||||||
searchwidget.h |
searchwidget.h |
||||||
|
|
||||||
# sources |
# sources |
||||||
pluginselectdialog.cpp |
pluginselectdialog.cpp |
||||||
pluginsourcedialog.cpp |
pluginsourcedialog.cpp |
||||||
searchjobwidget.cpp |
searchjobwidget.cpp |
||||||
searchlistdelegate.cpp |
searchlistdelegate.cpp |
||||||
searchsortmodel.cpp |
searchsortmodel.cpp |
||||||
searchwidget.cpp |
searchwidget.cpp |
||||||
|
|
||||||
# forms |
# forms |
||||||
pluginselectdialog.ui |
pluginselectdialog.ui |
||||||
pluginsourcedialog.ui |
pluginsourcedialog.ui |
||||||
searchwidget.ui |
searchwidget.ui |
||||||
) |
|
||||||
|
|
||||||
set(QBT_SEARCHENGINE_RESOURCES |
|
||||||
# search.qrc |
|
||||||
) |
|
||||||
|
|
||||||
target_link_libraries(qbt_searchengine |
|
||||||
PUBLIC |
|
||||||
qbt_base |
|
||||||
PRIVATE |
|
||||||
qbt_gui_headers |
|
||||||
) |
) |
||||||
|
Loading…
Reference in new issue