~josephjamesmills/u2t/trunk

« back to all changes in this revision

Viewing changes to shell/3rdparty/confluence/r720/components/Sheet.qml

  • Committer: josephjamesmills at gmail
  • Date: 2012-12-17 20:10:44 UTC
  • Revision ID: josephjamesmills@gmail.com-20121217201044-n5y9o203r1a5brjv
* /shell/3rdparty: rmemoved qtmediahub stuff and old binary for qmltemplets
* debian/contol: adding deps for testing and also chaning version of libnux
* Removed all Build git and bzr folders 
* shell/launcher/* changed locations and styling of pips and showMenu
* Fixing debian control file
* Fixed some of the shortcuts stuff
* reworte and gave keyboard to metalens and systemsettings dash pages
* addded 3rd party folder to place all thrid party code in to try to keep u2d clean
* Pluged in the Hud for Unity2dconfigurations.formFactor == "TV"
* made a simple mockup of how to change gsettings from the dash
* Added dependencys to (almost all) to debian control
* added a option for fomrFactor == "Tablet"
* Need to add more desktop files to install with package or make into metapackage
modified:
  data/com.canonical.Unity2d.gschema.xml
  debian/changelog
  debian/control
  debian/unity-2d-common.postinst
  debian/unity-2d-common.postrm
  debian/unity-2d-common.triggers
  debian/unity-2d-shell.install.in
  libunity-2d-private/src/unity-2d-private.pc.cmake
  po/unity-2d.pot
  shell/3rdparty/ITV/ITV.qml
  shell/3rdparty/softwarefake/FlicableWebView.qml
  shell/3rdparty/softwarefake/Softwarecenter.qml
  shell/3rdparty/webbrowser/webbrowser.qml
  shell/DashLoader.qml
  shell/HudLoader.qml
  shell/Shell.qml
  shell/app/shelldeclarativeview.cpp
  shell/app/shellmanager.cpp
  shell/common/VideoInfo.qml
  shell/common/utils.js
  shell/dash/Dash.qml
  shell/dash/FilterRatings.qml
  shell/dash/ListViewWithScrollbar.qml
  shell/dash/RendererCoverFlow.qml
  shell/dash/previews/FanArtBackgroundMovie.qml
  shell/dash/previews/FlipableTvBanner.qml
  shell/dash/previews/Previews.qml
  shell/hud/Hud.qml
  shell/hud/ResultItem.qml
  shell/indicators/DashIndicators.qml
  shell/indicators/DashSystemIndicator.qml
  shell/indicators/DashWifiIndicator.qml
  shell/indicators/SystemIndicator.qml
  shell/indicators/Systemdropdown.qml
  shell/indicators/WifiIndicator.qml
  shell/launcher/GridLauncher.qml
  shell/launcher/Launcher.qml
  shell/launcher/LauncherItem.qml
  shell/launcher/LauncherList.qml
  shell/launcher/LauncherLoader.qml
  shell/launcher/ListViewDragAndDrop.qml
  shell/launcher/SimpleLauncher.qml
  shell/launcher/SimpleLauncherItem.qml
  shell/systeminfo/SettingsMangerParser.qml
  shell/systeminfo/Systemsettings.qml
  shell/systeminfo/UserSettings.qml
  spread/Window.qml
  spread/Workspaces.qml

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/** This file is part of Qt Media Hub**
2
 
 
3
 
Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).*
4
 
All rights reserved.
5
 
 
6
 
Contact:  Nokia Corporation qmh-development@qt-project.org
7
 
 
8
 
You may use this file under the terms of the BSD license
9
 
as follows:
10
 
 
11
 
Redistribution and use in source and binary forms, with or
12
 
without modification, are permitted provided that the following
13
 
conditions are met:
14
 
* Redistributions of source code must retain the above copyright
15
 
notice, this list of conditions and the following disclaimer.
16
 
 
17
 
* Redistributions in binary form must reproduce the above copyright
18
 
notice, this list of conditions and the following disclaimer in the
19
 
documentation and/or other materials provided with the distribution.
20
 
 
21
 
* Neither the name of Nokia Corporation and its Subsidiary(-ies)
22
 
nor the names of its contributors may be used to endorse or promote
23
 
products derived from this software without specific prior
24
 
written permission.
25
 
 
26
 
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27
 
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28
 
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
29
 
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
30
 
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
31
 
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
32
 
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33
 
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34
 
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
35
 
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36
 
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
37
 
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. **/
38
 
 
39
 
import QtQuick 1.1
40
 
 
41
 
FocusScope {
42
 
    id: root
43
 
 
44
 
    property alias title : titleBarText.text
45
 
    default property alias content : content.children
46
 
 
47
 
    signal opened()
48
 
    signal closed()
49
 
 
50
 
    x: confluence.width
51
 
    y: 0
52
 
    width: 600 // arbitrary default
53
 
    height: confluence.height
54
 
    z: 10
55
 
 
56
 
    function open() {
57
 
        x = confluence.width - width
58
 
        root.opened()
59
 
    }
60
 
 
61
 
    function close() {
62
 
        x = confluence.width
63
 
        root.closed()
64
 
    }
65
 
 
66
 
    Behavior on x {
67
 
        NumberAnimation { }
68
 
    }
69
 
 
70
 
    BorderImage {
71
 
        id: panel
72
 
        source: themeResourcePath + "/media/DialogBack.png"
73
 
        border { top: 5; left: 5; bottom: 5; right: 5; }
74
 
        anchors.fill: parent
75
 
    }
76
 
 
77
 
    Text {
78
 
        id: titleBarText
79
 
        anchors.top: panel.top
80
 
        anchors.right: panel.right
81
 
        anchors.left: panel.left
82
 
        anchors.topMargin: panel.border.top + 40
83
 
        anchors.rightMargin: 20
84
 
        color: "white"
85
 
        text: "Default dialog title"
86
 
        font.bold: true
87
 
        font.pointSize: 20
88
 
        horizontalAlignment: Text.AlignRight
89
 
    }
90
 
 
91
 
    Item {
92
 
        id: content
93
 
        clip: true
94
 
        anchors.top: titleBarText.bottom
95
 
        anchors.bottom: panel.bottom
96
 
        anchors.left: panel.left;
97
 
        anchors.right: panel.right
98
 
        anchors.topMargin: panel.border.top + 20
99
 
        anchors.leftMargin : panel.border.left
100
 
        anchors.bottomMargin : panel.border.bottom + 15
101
 
        anchors.rightMargin : panel.border.right
102
 
    }
103
 
 
104
 
    MouseArea {
105
 
        parent: confluence
106
 
        anchors.fill: parent
107
 
    }
108
 
 
109
 
    Image {
110
 
        id: closeButton
111
 
        source: themeResourcePath + "/media/" + (closeButtonMouseArea.pressed ? "DialogCloseButton-focus.png" : "DialogCloseButton.png")
112
 
        anchors.top: panel.top
113
 
        anchors.left: panel.left
114
 
        anchors.leftMargin: panel.border.left + 15 
115
 
        anchors.topMargin: panel.border.top + 5
116
 
        MouseArea {
117
 
            id: closeButtonMouseArea
118
 
            anchors.fill: parent;
119
 
 
120
 
            onClicked: root.close();
121
 
        }
122
 
    }
123
 
 
124
 
    Keys.onPressed: {
125
 
        root.close()
126
 
        event.accepted = true
127
 
    }
128
 
}
129