Debian Codegraph @

rc/qml/AlbumViewer/AlbumInternals/AlbumPageLayoutRightDoubleLandscape.qml

raw
1 /*
2 * Copyright (C) 2012-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 * Charles Lindsay <[email protected]>
18 */
19
20 import QtQuick 2.9
21
22 /*!
23 */
24 AlbumPageLayout {
25 id: albumPageLayoutLeftDoubleLandscape
26
27 mediaFrames: [ top, bottom ]
28
29 FramePortrait {
30 id: top
31
32 anchors.top: parent.top
33 anchors.bottom: parent.verticalCenter
34 anchors.left: parent.left
35 anchors.right: parent.right
36
37 anchors.topMargin: albumPageLayoutLeftDoubleLandscape.topMargin
38 anchors.bottomMargin: albumPageLayoutLeftDoubleLandscape.insideMargin / 2
39 anchors.leftMargin: albumPageLayoutLeftDoubleLandscape.gutterMargin
40 anchors.rightMargin: albumPageLayoutLeftDoubleLandscape.outerMargin
41
42 mediaSource: (albumPageLayoutLeftDoubleLandscape.mediaSourceList
43 ? albumPageLayoutLeftDoubleLandscape.mediaSourceList[0]
44 : null)
45 load: albumPageLayoutLeftDoubleLandscape.load
46 isPreview: albumPageLayoutLeftDoubleLandscape.isPreview
47 }
48
49 FramePortrait {
50 id: bottom
51
52 anchors.top: parent.verticalCenter
53 anchors.bottom: parent.bottom
54 anchors.left: parent.left
55 anchors.right: parent.right
56
57 anchors.topMargin: albumPageLayoutLeftDoubleLandscape.insideMargin / 2
58 anchors.bottomMargin: albumPageLayoutLeftDoubleLandscape.bottomMargin
59 anchors.leftMargin: albumPageLayoutLeftDoubleLandscape.gutterMargin
60 anchors.rightMargin: albumPageLayoutLeftDoubleLandscape.outerMargin
61
62 mediaSource: (albumPageLayoutLeftDoubleLandscape.mediaSourceList
63 ? albumPageLayoutLeftDoubleLandscape.mediaSourceList[1]
64 : null)
65 load: albumPageLayoutLeftDoubleLandscape.load
66 isPreview: albumPageLayoutLeftDoubleLandscape.isPreview
67 }
68 }