summaryrefslogtreecommitdiff
path: root/src/examples/elementary/prefs_example_01.epc
blob: 10767cd18baf3e10f2546d50de821d1f0a3c359c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
collection
{
   page
   {
      name: "main";
      version: 1;
      title: "Preferences Widget";
      subtitle: "Example 01";
      widget: "elm/vertical_box";

      items {
         item {
            name: "universe";
            type: INT;
            label: "Ultimate Answer of Life, the Universe and Everything";
            editable: 1;

            int {
               default: 42;
               min: 0;
               max: 150;
            }
         }

         item {
            name: "another int";
            type: INT;
            widget: "elm/spinner";

            int {
               min: 0;
               max: 666;
            }
         }

         item {
            name: "label";
            type: LABEL;
            label: "Just a label...";
         }

         item {
            name: "text";
            type: TEXT;
            editable: 1;

            text {
               placeholder: "This is a text field (:";
               default: "default str.";
               deny: "^[0-9]*$";
            }
         }

         item {
            name: "date";
            type: DATE;
            label: "First EFL Developer Day";

            date {
               default: 2012 11 05;
               min: 1980 11 1;
               max: 2200 12 2;
            }
         }

         item {
            name: "sep";
            type: SEPARATOR;
         }

         item {
            name: "save";
            type: SAVE;
            label: "Save";
         }

         item {
            name: "reset";
            type: RESET;
            label: "Reset";
         }
      }
   }
}