~pkunal-parmar/ubuntu-calendar-app/LongPressToCreate

400.1.1 by mihirsoni-123
Added copyright header comments in all the pages
1
/*
400.1.2 by mihirsoni-123
updated copyright year
2
 * Copyright (C) 2013-2014 Canonical Ltd
400.1.1 by mihirsoni-123
Added copyright header comments in all the pages
3
 *
4
 * This file is part of Ubuntu Calendar App
5
 *
6
 * Ubuntu Calendar App is free software: you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License version 3 as
8
 * published by the Free Software Foundation.
9
 *
10
 * Ubuntu Calendar App is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
 */
463.1.1 by Akiva Avraham
Updated library imports to qtquick-2.3
18
import QtQuick 2.3
422.5.1 by Akiva Avraham
Upgraded component library imports
19
import Ubuntu.Components 1.1
20
import Ubuntu.Components.Popups 1.0
264.1.1 by Kunal Parmar
Editing by eventtype
21
22
Dialog {
23
    id: dialogue
24
25
    property var event;
26
27
    signal editEvent(var eventId);
28
29
    title: i18n.tr("Edit Event")
30
499.1.4 by Mihir Soni
Added Translators comments
31
    // TRANSLATORS: argument (%1) refers to an event name.
499.1.3 by Mihir Soni
replaced single quote by double quotes
32
    text: i18n.tr("Edit only this event \"%1\", or all events in the series?").arg(event.displayLabel);
264.1.1 by Kunal Parmar
Editing by eventtype
33
34
    Button {
35
        text: i18n.tr("Edit series")
36
        color: UbuntuColors.orange
37
        onClicked: {
38
            dialogue.editEvent(event.parentId);
39
            PopupUtils.close(dialogue)
40
        }
41
    }
42
43
    Button {
44
        text: i18n.tr("Edit this")
45
        color: UbuntuColors.orange
46
        onClicked: {
47
            dialogue.editEvent(event.itemId);
48
            PopupUtils.close(dialogue)
49
        }
50
    }
51
52
    Button {
53
        text: i18n.tr("Cancel")
54
        onClicked: PopupUtils.close(dialogue)
55
    }
56
}