summaryrefslogtreecommitdiff
path: root/src/examples/elementary/prefs_example_03.epc
blob: a5ccb3e6bd55352da44ecdc583e5834c0b24e618 (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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
collection 
{
   page
   {
      name: "main";
      version: 1;
      title: "Preferences Widget";
      subtitle: "Example 03";
      widget: "elm/vertical_frame";

      items {
         item {
            name: "config";
            type: PAGE;
            source: "configpage";
         }

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

         item {
            name: "swal";
            type: SWALLOW;
         }
      }
   }

   page
   {
      name: "configpage";
      version: 1;
      title: "Preferences";
      widget: "elm/horizontal_box";

      items {
         item {
            name: "options";
            type: PAGE;
            source: "optionspage";
         }

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

         item {
            name: "buttons";
            type: PAGE;
            source: "buttonspage";
         }
      }
   }

   page
   {
      name: "optionspage";
      version: 1;
      title: "Options";
      widget: "elm/vertical_box";

      items {
         item {
            name: "animation";
            type: BOOL;
            persistent: 1;
            label: "Animation";

            bool {
               default: true;
            }
         }

         item {
            name: "animation_time";
            type: FLOAT;
            persistent: 1;
            label: "Animation Time";

            float {
               default: 0.6;
               min: 0.0;
               max: 1.0;
            }
         }
      }
   }

   page
   {
      name: "buttonspage";
      version: 1;
      title: "Actions";
      widget: "elm/vertical_box";

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

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