@@ -1,167 +0,0 @@
2− * Copyright 2013 Canonical Ltd.
4− * This program is free software; you can redistribute it and/or modify
5− * it under the terms of the GNU Lesser General Public License as published by
6− * the Free Software Foundation; version 3.
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 Lesser General Public License for more details.
13− * You should have received a copy of the GNU Lesser General Public License
14− * along with this program. If not, see <http://www.gnu.org/licenses/>.
17− * Renato Araujo Oliveira Filho <renato@canonical.com>
18− * Olivier Tilloy <olivier.tilloy@canonical.com>
22−import Ubuntu.Components 0.1
23−import Unity.Indicators 0.1 as Indicators
24−import Unity.Indicators 0.1
29− property string title: ""
31− property string message: ""
33− property bool activateEnabled: true
34− property alias actionButtonText: actionButton.text
36− property bool replyEnabled: true
37− property alias replyMessages: quickreply.messages
38− property alias replyButtonText: quickreply.buttonText
40− expandedHeight: buttons.y + buttons.height + quickreply.height + units.gu(2)
41− heroMessageHeader.titleText.text: title
42− heroMessageHeader.subtitleText.text: message
43− heroMessageHeader.subtitleText.color: "#e8e1d0"
44− heroMessageHeader.bodyText.text: timeFormatter.timeString
45− heroMessageHeader.bodyText.color: "#8f8f88"
48− signal reply(string value)
53− anchors.left: parent.left
54− anchors.leftMargin: units.gu(2)
55− anchors.right: parent.right
56− anchors.rightMargin: units.gu(2)
57− anchors.top: heroMessageHeader.bottom
58− anchors.topMargin: units.gu(1)
64− time: snapDecision.time
65− format: "hh:mm - MMM dd"
71− anchors.left: parent.left
72− anchors.top: parent.top
73− anchors.bottom: parent.bottom
74− width: (parent.width - units.gu(1)) / 2
77− if (quickreply.state === "") {
78− quickreply.state = "expanded";
80− quickreply.state = "";
88− color: enabled ? "#c94212" : "#bababa"
89− anchors.right: parent.right
90− anchors.top: parent.top
91− anchors.bottom: parent.bottom
92− width: (parent.width - units.gu(1)) / 2
93− enabled: snapDecision.activateEnabled
96− snapDecision.activate();
102− when: snapDecision.state === "expanded"
109− transitions: Transition {
113− easing.type: Easing.OutQuad
122− snapDecision.reply(value);
129− topMargin: units.gu(2)
136− replyEnabled: snapDecision.replyEnabled
143− height: expandedHeight
153− transitions: Transition {
155− properties: "opacity,height"
157− easing.type: Easing.OutQuad
164− quickreply.state = "";