Debian Codegraph @

rc/qml/AlbumViewer/AlbumInternals/AlbumPageLayoutLeftDoubleLandscape.qml

raw
1 /*
2 * Copyright (C) 2011-2015 Canonical Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 3 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * Authors:
17 * Jim Nelson <[email protected]>
18 * Charles Lindsay <[email protected]>
19 */
20
21 import QtQuick 2.9
22
23 /*!
24 */
25 AlbumPageLayout {
26 id: albumPageLayoutLeftDoubleLandscape
27
28 mediaFrames: [ top, bottom ]
29
30 FramePortrait {
31 id: top
32
33 anchors.top: parent.top
34 anchors.bottom: parent.verticalCenter
35 anchors.left: parent.left
36 anchors.right: parent.right
37
38 anchors.topMargin: albumPageLayoutLeftDoubleLandscape.topMargin
39 anchors.bottomMargin: albumPageLayoutLeftDoubleLandscape.insideMargin / 2
40 anchors.leftMargin: albumPageLayoutLeftDoubleLandscape.outerMargin
41 anchors.rightMargin: albumPageLayoutLeftDoubleLandscape.gutterMargin
42
43 mediaSource: (albumPageLayoutLeftDoubleLandscape.mediaSourceList
44 ? albumPageLayoutLeftDoubleLandscape.mediaSourceList[0]
45 : null)
46 load: albumPageLayoutLeftDoubleLandscape.load
47 isPreview: albumPageLayoutLeftDoubleLandscape.isPreview
48 }
49
50 FramePortrait {
51 id: bottom
52
53 anchors.top: parent.verticalCenter
54 anchors.bottom: parent.bottom
55 anchors.left: parent.left
56 anchors.right: parent.right
57
58 anchors.topMargin: albumPageLayoutLeftDoubleLandscape.insideMargin / 2
59 anchors.bottomMargin: albumPageLayoutLeftDoubleLandscape.bottomMargin
60 anchors.leftMargin: albumPageLayoutLeftDoubleLandscape.outerMargin
61 anchors.rightMargin: albumPageLayoutLeftDoubleLandscape.gutterMargin
62
63 mediaSource: (albumPageLayoutLeftDoubleLandscape.mediaSourceList
64 ? albumPageLayoutLeftDoubleLandscape.mediaSourceList[1]
65 : null)
66 load: albumPageLayoutLeftDoubleLandscape.load
67 isPreview: albumPageLayoutLeftDoubleLandscape.isPreview
68 }
69 }