2
* Copyright (C) 2013 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 version 3 as
6
* published by the Free Software Foundation.
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 Ubuntu.Components 0.1
21
The actions for the toolbar for the event and photos view
25
/// The selection state item to use for enable / disable the select mode
26
property SelectionState selection: null
28
/// Emittedt when the camera action was triggered
33
objectName: "selectButton"
34
text: i18n.tr("Select")
35
iconSource: Qt.resolvedUrl("../../img/select.png")
36
enabled: root.selection !== null
37
onTriggered: root.selection.inSelectionMode = true;
41
objectName: "importButton"
43
text: i18n.tr("Import")
44
iconSource: Qt.resolvedUrl("../../img/import-image.png")
50
objectName: "cameraButton"
51
text: i18n.tr("Camera")
52
visible: !APP.desktopMode
53
iconSource: Qt.resolvedUrl("../../img/camera.png")
54
onTriggered: Qt.openUrlExternally("appid://com.ubuntu.camera/camera/current-user-version")