mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2024-05-18 12:02:41 +00:00
Chris Josten
b68da318f2
Previously, Items were displayed in one page, named DetailPage.qml. This page then would load a qml component, based on the page type. It also contained some components common for each detail page, like displaying the name of the item. This construction had as downside that modifying the page properties, adding a pulley menu or basing the page around a SilicaListview was not possible. So I already had created some other pages. The new construction uses a base page, named BaseDetailPage which does set some common properties and handle the loading of the items, so that that part does not have to be duplicated. Displaying the name of an item was a very trivial thing to do, so duplicating that part across files was not a problem. Anyway, the rest of the pages are now seperate, but all have BaseDetailsPage as the root, so they can use the common functionality by that page. Those subpages now can be based around GridViews, Carrousels, have pully menus and so on. To determine to which page to go to, based on the content type, a function named getPageUrl has been added to Utils.js, which takes a content type as argument and gives the page url back.
93 lines
2.9 KiB
Prolog
93 lines
2.9 KiB
Prolog
# NOTICE:
|
|
#
|
|
# Application name defined in TARGET has a corresponding QML filename.
|
|
# If name defined in TARGET is changed, the following needs to be done
|
|
# to match new name:
|
|
# - corresponding QML filename must be changed
|
|
# - desktop icon filename must be changed
|
|
# - desktop filename must be changed
|
|
# - icon definition filename in desktop file must be changed
|
|
# - translation filenames have to be changed
|
|
|
|
# The name of your application
|
|
TARGET = harbour-sailfin
|
|
|
|
QT += multimedia
|
|
|
|
CONFIG += sailfishapp c++11
|
|
|
|
# Help, something keeps eating my quotes and backslashes
|
|
|
|
!defined(SAILFIN_VERSION, var) {
|
|
SAILFIN_VERSION = "(UNKNOWN VERSION)"
|
|
}
|
|
|
|
DEFINES += "SAILFIN_VERSION=\"\\\"$$SAILFIN_VERSION\\\"\""
|
|
|
|
SOURCES += \
|
|
src/credentialmanager.cpp \
|
|
src/harbour-sailfin.cpp \
|
|
src/jellyfinapiclient.cpp \
|
|
src/jellyfinapimodel.cpp \
|
|
src/jellyfindeviceprofile.cpp \
|
|
src/jellyfinmediasource.cpp \
|
|
src/serverdiscoverymodel.cpp
|
|
|
|
DISTFILES += \
|
|
qml/Constants.qml \
|
|
qml/Utils.js \
|
|
qml/components/GlassyBackground.qml \
|
|
qml/components/IconListItem.qml \
|
|
qml/components/LibraryItemDelegate.qml \
|
|
qml/components/MoreSection.qml \
|
|
qml/components/PlainLabel.qml \
|
|
qml/components/PlayToolbar.qml \
|
|
qml/components/RemoteImage.qml \
|
|
qml/components/Shim.qml \
|
|
qml/components/UserGridDelegate.qml \
|
|
qml/components/VideoPlayer.qml \
|
|
qml/components/VideoTrackSelector.qml \
|
|
qml/components/itemdetails/SeasonDetails.qml \
|
|
qml/components/videoplayer/VideoError.qml \
|
|
qml/components/videoplayer/VideoHud.qml \
|
|
qml/cover/CoverPage.qml \
|
|
qml/cover/PosterCover.qml \
|
|
qml/cover/VideoCover.qml \
|
|
qml/pages/LegalPage.qml \
|
|
qml/pages/MainPage.qml \
|
|
qml/pages/AboutPage.qml \
|
|
qml/harbour-sailfin.qml \
|
|
qml/pages/SettingsPage.qml \
|
|
qml/pages/VideoPage.qml \
|
|
qml/pages/itemdetails/BaseDetailPage.qml \
|
|
qml/pages/itemdetails/CollectionPage.qml \
|
|
qml/pages/itemdetails/EpisodePage.qml \
|
|
qml/pages/itemdetails/FilmPage.qml \
|
|
qml/pages/itemdetails/MusicAlbumPage.qml \
|
|
qml/pages/itemdetails/SeasonPage.qml \
|
|
qml/pages/itemdetails/SeriesPage.qml \
|
|
qml/pages/itemdetails/UnsupportedPage.qml \
|
|
qml/pages/setup/AddServerConnectingPage.qml \
|
|
qml/pages/setup/LoginDialog.qml \
|
|
qml/qmldir
|
|
|
|
SAILFISHAPP_ICONS = 86x86 108x108 128x128 172x172
|
|
|
|
# to disable building translations every time, comment out the
|
|
# following CONFIG line
|
|
CONFIG += sailfishapp_i18n
|
|
|
|
# German translation is enabled as an example. If you aren't
|
|
# planning to localize your app, remember to comment out the
|
|
# following TRANSLATIONS line. And also do not forget to
|
|
# modify the localized app name in the the .desktop file.
|
|
# TRANSLATIONS += \
|
|
|
|
HEADERS += \
|
|
src/credentialmanager.h \
|
|
src/jellyfinapiclient.h \
|
|
src/jellyfinapimodel.h \
|
|
src/jellyfindeviceprofile.h \
|
|
src/jellyfinmediasource.h \
|
|
src/serverdiscoverymodel.h
|