~vitimiti/cheetahcs/trunk

« back to all changes in this revision

Viewing changes to app/components/BadPassesComponent.qml

  • Committer: Víctor Matía Rodríguez
  • Date: 2014-11-02 12:50:00 UTC
  • Revision ID: vmatir@gmail.com-20141102125000-l5n7c6bs3o1yycko
Added the possibility to change the settings. Changed the way the
settings dialog OK button behaves so as to reduce the functions granting
the same functionality. Combined the complaint dialogs to only two files
instead of four. Added several backend functions that all work together
to handle and read the configuration file as needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2014 Víctor Matía Rodríguez.
 
3
 *
 
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.
 
7
 *
 
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.
 
12
 *
 
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/>.
 
15
 */
 
16
 
 
17
import QtQuick 2.0
 
18
 
 
19
import Ubuntu.Components 1.1
 
20
import Ubuntu.Components.Popups 1.0
 
21
 
 
22
Component {
 
23
    id: dialogComponent
 
24
 
 
25
    // The dialog for when the passwords are not the same
 
26
    Dialog {
 
27
        id: dialog
 
28
        objectName: "dialog"
 
29
 
 
30
        title: i18n.tr("Error")
 
31
 
 
32
        text: i18n.tr("Please, make sure the passwords are the <b>same</b>.")
 
33
 
 
34
        Button {
 
35
            id: okBtn
 
36
            objectName: "okBtn"
 
37
 
 
38
            text: i18n.tr("OK")
 
39
            onClicked: PopupUtils.close(dialog)
 
40
        }
 
41
    }
 
42
}