2 * Copyright (C) 2015 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU 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 General Public License for more details.
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/>.
18 import QtQuick.Layouts 1.1
19 import Ubuntu.Components 1.3
20 import Ubuntu.Components.ListItems 1.3
21 import Ubuntu.Components.Popups 1.3
25 objectName: "modeSwitchWarningDialog"
27 property alias model: appRepeater.model
32 text: i18n.tr("Apps may have unsaved data:")
42 Layout.preferredHeight: units.gu(2)
43 Layout.preferredWidth: units.gu(2)
45 sourceSize.width: width
46 sourceSize.height: height
49 Layout.fillWidth: true
57 text: i18n.tr("Re-dock, save your work and close these apps to continue.")
58 wrapMode: Text.WordWrap
63 text: i18n.tr("Or force close now (unsaved data will be lost).")
64 wrapMode: Text.WordWrap
72 objectName: "reconnectLabel"
73 Layout.fillWidth: true
74 property bool clicked: false
75 property string notClickedText: i18n.tr("OK, I will reconnect")
76 property string clickedText: i18n.tr("Reconnect now!")
77 text: clicked ? clickedText : notClickedText
82 onClicked: parent.clicked = true;
87 objectName: "forceCloseButton"
88 text: i18n.tr("Close all")
89 color: UbuntuColors.red