~vitimiti/cheetahcs/trunk

« back to all changes in this revision

Viewing changes to app/CheetaHCS.qml

  • Committer: Víctor Matía Rodríguez
  • Date: 2014-11-01 13:45:56 UTC
  • Revision ID: vmatir@gmail.com-20141101134556-7bgvpvbxhyvx3hv9
Added the system to create the configuration file and save it to the
disk. Increased the version to 0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
import QtQuick 2.0
18
18
 
19
19
import Ubuntu.Components 1.1
 
20
import Ubuntu.Components.Popups 1.0
20
21
 
 
22
import "components"
21
23
import "ui"
22
24
 
23
25
import CheetaHCS 0.1
51
53
    property real margins: units.gu(2)
52
54
    property real spacing: units.gu(1)
53
55
 
 
56
    ConfigDialogComponent {
 
57
        id: configDialog
 
58
        objectName: "config_dialog"
 
59
    }
 
60
 
54
61
    CheetaHCS {
55
62
        id: cheetaHCSType
56
63
        objectName: "cheetaHCS_type"
57
64
 
58
65
        onConfigExistsChanged: {
59
 
            /* If it is false:
60
 
             * Dialog that asks for the hospital and primary center you are in.
61
 
             * It will be limited to those centers that use CheetaHCS, since
62
 
             * otherwise it'd be a waste of time for the user trying to make
63
 
             * it work.
64
 
             * Then, set the existence to true and make the web viewers start.
65
 
             */
 
66
            if (configExists !== true)
 
67
                PopupUtils.open(configDialog)
66
68
        }
67
69
    }
68
70