Skip to content

Commit

Permalink
Demo updates
Browse files Browse the repository at this point in the history
Since the Neptune was used in recent demos for CES 2016, some offline changes
were made and now they are pushed upstream. Changes:
- new layout for Music application
- unit conversion, metric to imp US
- other UI improvements.

Change-Id: I202eb88c382e840990b988d03e22d3b9f0d67fc1
Reviewed-by: Juergen Bocklage-Ryannel <[email protected]>
  • Loading branch information
Nedim Hadzic authored and Gagi2k committed Feb 18, 2016
1 parent b3f10d1 commit 92bb87e
Show file tree
Hide file tree
Showing 178 changed files with 1,570 additions and 499 deletions.
2 changes: 1 addition & 1 deletion DimAndCsd.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2015 Pelagicore AG
** Copyright (C) 2016 Pelagicore AG
** Contact: http://www.qt.io/ or http://www.pelagicore.com/
**
** This file is part of the Neptune IVI UI.
Expand Down
2 changes: 1 addition & 1 deletion Main1024x768.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2015 Pelagicore AG
** Copyright (C) 2016 Pelagicore AG
** Contact: http://www.qt.io/ or http://www.pelagicore.com/
**
** This file is part of the Neptune IVI UI.
Expand Down
2 changes: 1 addition & 1 deletion Main1280x800.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2015 Pelagicore AG
** Copyright (C) 2016 Pelagicore AG
** Contact: http://www.qt.io/ or http://www.pelagicore.com/
**
** This file is part of the Neptune IVI UI.
Expand Down
2 changes: 1 addition & 1 deletion Main1920x1080.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2015 Pelagicore AG
** Copyright (C) 2016 Pelagicore AG
** Contact: http://www.qt.io/ or http://www.pelagicore.com/
**
** This file is part of the Neptune IVI UI.
Expand Down
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Prerequisite

Qt >= 5.2 (development done with Qt 5.5)
Qt >= 5.5
Unix system

# Folder Structure
Expand All @@ -17,23 +17,27 @@ Unix system

# Build

build datasource qml plugin
* Build datasource qml plugin

$ cd plugins/datasource

$ qmake && make && make install

* Run scripts within the plugins/scripts folder to scan the media on the system

$ cd plugins/datasource
$ qmake && make && make install
# Run entire UI

# Run
$ qmlscene -I modules/ -I am-dummyimports/ DimAndCsd.qml

$ qmlscene -I modules -I am-dummyimports MainXXXX.qml
or with the Application Manager

or
$ appman --recreate-database -c $AM_CONFIG_FILE -c am-config.yaml

$ appman --recreate-database -c $AM_CONFIG_FILE -c am-config.yaml --verbose
where `AM_CONFIG_FILE` is the path to the Application Manager `config.yaml` file (inside the template-opt folder within the Application Manager delivery). The default `config.yaml` points to the `/opt/am` folder. If that folder does not exists, make sure to update the config.yaml settings to the corresponding paths.

where AM_CONFIG_FILE is path to the config.yaml file provided by the Application Manager
# Media

To get the media used within the Music and Movie app, download the zipped file and place the media.db and media folder inside the home folder. The download link: https://seafile.pelagicore.net/f/3713457142/

# Common Terms Used In The Project

Expand Down
2 changes: 1 addition & 1 deletion SimuMain.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2015 Pelagicore AG
** Copyright (C) 2016 Pelagicore AG
** Contact: http://www.qt.io/ or http://www.pelagicore.com/
**
** This file is part of the Neptune IVI UI.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2015 Pelagicore AG
** Copyright (C) 2016 Pelagicore AG
** Contact: http://www.qt.io/ or http://www.pelagicore.com/
**
** This file is part of the Neptune IVI UI.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2015 Pelagicore AG
** Copyright (C) 2016 Pelagicore AG
** Contact: http://www.qt.io/ or http://www.pelagicore.com/
**
** This file is part of the Neptune IVI UI.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2015 Pelagicore AG
** Copyright (C) 2016 Pelagicore AG
** Contact: http://www.qt.io/ or http://www.pelagicore.com/
**
** This file is part of the Neptune IVI UI.
Expand Down
2 changes: 1 addition & 1 deletion am-dummyimports/io/qt/ApplicationManager/WindowManager.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2015 Pelagicore AG
** Copyright (C) 2016 Pelagicore AG
** Contact: http://www.qt.io/ or http://www.pelagicore.com/
**
** This file is part of the Neptune IVI UI.
Expand Down
2 changes: 1 addition & 1 deletion apps/NotAvailableYet.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2015 Pelagicore AG
** Copyright (C) 2016 Pelagicore AG
** Contact: http://www.qt.io/ or http://www.pelagicore.com/
**
** This file is part of the Neptune IVI UI.
Expand Down
2 changes: 1 addition & 1 deletion apps/com.pelagicore.browser/Browser.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2015 Pelagicore AG
** Copyright (C) 2016 Pelagicore AG
** Contact: http://www.qt.io/ or http://www.pelagicore.com/
**
** This file is part of the Neptune IVI UI.
Expand Down
2 changes: 1 addition & 1 deletion apps/com.pelagicore.movies/MovieCoverDelegate.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2015 Pelagicore AG
** Copyright (C) 2016 Pelagicore AG
** Contact: http://www.qt.io/ or http://www.pelagicore.com/
**
** This file is part of the Neptune IVI UI.
Expand Down
2 changes: 1 addition & 1 deletion apps/com.pelagicore.movies/MoviePlayer.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2015 Pelagicore AG
** Copyright (C) 2016 Pelagicore AG
** Contact: http://www.qt.io/ or http://www.pelagicore.com/
**
** This file is part of the Neptune IVI UI.
Expand Down
2 changes: 1 addition & 1 deletion apps/com.pelagicore.movies/MovieProvider.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2015 Pelagicore AG
** Copyright (C) 2016 Pelagicore AG
** Contact: http://www.qt.io/ or http://www.pelagicore.com/
**
** This file is part of the Neptune IVI UI.
Expand Down
2 changes: 1 addition & 1 deletion apps/com.pelagicore.movies/MovieTracks.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2015 Pelagicore AG
** Copyright (C) 2016 Pelagicore AG
** Contact: http://www.qt.io/ or http://www.pelagicore.com/
**
** This file is part of the Neptune IVI UI.
Expand Down
2 changes: 1 addition & 1 deletion apps/com.pelagicore.movies/Movies.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2015 Pelagicore AG
** Copyright (C) 2016 Pelagicore AG
** Contact: http://www.qt.io/ or http://www.pelagicore.com/
**
** This file is part of the Neptune IVI UI.
Expand Down
2 changes: 1 addition & 1 deletion apps/com.pelagicore.music/AlbumScreen.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2015 Pelagicore AG
** Copyright (C) 2016 Pelagicore AG
** Contact: http://www.qt.io/ or http://www.pelagicore.com/
**
** This file is part of the Neptune IVI UI.
Expand Down
2 changes: 1 addition & 1 deletion apps/com.pelagicore.music/ClusterWidget.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2015 Pelagicore AG
** Copyright (C) 2016 Pelagicore AG
** Contact: http://www.qt.io/ or http://www.pelagicore.com/
**
** This file is part of the Neptune IVI UI.
Expand Down
2 changes: 1 addition & 1 deletion apps/com.pelagicore.music/CoverItem.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2015 Pelagicore AG
** Copyright (C) 2016 Pelagicore AG
** Contact: http://www.qt.io/ or http://www.pelagicore.com/
**
** This file is part of the Neptune IVI UI.
Expand Down
152 changes: 136 additions & 16 deletions apps/com.pelagicore.music/CurrentTrackScreen.qml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2015 Pelagicore AG
** Copyright (C) 2016 Pelagicore AG
** Contact: http://www.qt.io/ or http://www.pelagicore.com/
**
** This file is part of the Neptune IVI UI.
Expand Down Expand Up @@ -44,13 +44,16 @@ UIScreen {
title: 'Music'

property var track: MusicProvider.currentEntry
property bool libraryVisible: false

signal showAlbums()

ColumnLayout {
width: Style.hspan(14)
id: musicControl
width: Style.hspan(12)
height: Style.vspan(20)
anchors.centerIn: parent
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
spacing: 0
Spacer {}
RowLayout {
Expand All @@ -76,7 +79,7 @@ UIScreen {
width: Style.cellWidth * 6
height: Style.cellHeight * 12

items: MusicProvider.model
items: MusicProvider.nowPlaying.model

currentViewIndex: MusicProvider.currentIndex

Expand Down Expand Up @@ -108,20 +111,40 @@ UIScreen {
}
}
}
Slider {

RowLayout {
anchors.horizontalCenter: parent.horizontalCenter
hspan: 10
value: MusicService.position
minimum: 0.00
maximum: MusicService.duration
vspan: 1
function valueToString() {
return Math.floor(value/60000) + ':' + Math.floor((value/1000)%60)
spacing: 10

Label {
hspan: 1
text: MusicService.currentTime
font.pixelSize: Style.fontSizeS
}
onActiveValueChanged: {
MusicService.seek(activeValue)

Slider {
id: slider
//anchors.horizontalCenter: parent.horizontalCenter
hspan: 9
value: MusicService.position
minimum: 0.00
maximum: MusicService.duration
vspan: 1
function valueToString() {
return Math.floor(value/60000) + ':' + Math.floor((value/1000)%60)
}
onActiveValueChanged: {
MusicService.seek(activeValue)
}
}

Label {
hspan: 1
text: MusicService.durationTime
font.pixelSize: Style.fontSizeS
}
}

RowLayout {
anchors.horizontalCenter: parent.horizontalCenter
spacing: 0
Expand Down Expand Up @@ -175,10 +198,107 @@ UIScreen {
}
}

PlaylistContainer {
onClicked: pathView.currentViewIndex = index
Library {
id: library
x: parent.width
opacity: 0
visible: opacity > 0
onClose: {
root.libraryVisible = false
}
}

UIElement {
id: sourceOption
hspan: 4
vspan: 12
anchors.right: musicControl.left
anchors.rightMargin: 60
anchors.verticalCenter: parent.verticalCenter
anchors.verticalCenterOffset: -60

Column {
spacing: 1
Button {
hspan: 4
vspan: 4
text: "BLUETOOTH"
label.font.pixelSize: Style.fontSizeL
}
Button {
hspan: 4
vspan: 4
text: "USB"
enabled: false
label.font.pixelSize: Style.fontSizeL
}
Button {
hspan: 4
vspan: 4
text: "SPOTIFY"
enabled: false
label.font.pixelSize: Style.fontSizeL
}
}
}

TextTool {
id: libraryButton
hspan: 3
vspan: 5
anchors.left: musicControl.right
anchors.leftMargin: 30
anchors.verticalCenter: parent.verticalCenter
size: 72

name: "music"
text: "LIBRARY"

onClicked: root.libraryVisible = true
}

Component.onCompleted: MusicProvider.selectRandomTracks()

states: State {
name: "libaryMode"; when: root.libraryVisible

PropertyChanges {
target: library
opacity: 1
x: root.width - library.width
}

PropertyChanges {
target: libraryButton
opacity: 0
}

PropertyChanges {
target: sourceOption
opacity: 0
}

AnchorChanges {
target: musicControl
anchors.horizontalCenter: undefined
}

PropertyChanges {
target: musicControl
x: 0
}
}

transitions: Transition {
from: ""; to: "libaryMode"; reversible: true

ParallelAnimation {
NumberAnimation { target: library; properties: "opacity"; duration: 400 }
NumberAnimation { target: library; properties: "x"; duration: 300 }
NumberAnimation { target: libraryButton; properties: "opacity"; duration: 300 }
NumberAnimation { target: sourceOption; properties: "opacity"; duration: 300 }
NumberAnimation { target: musicControl; properties: "x"; duration: 300 }
}
}

}
Loading

0 comments on commit 92bb87e

Please sign in to comment.