~ubuntu-branches/ubuntu/vivid/ekiga/vivid-proposed

« back to all changes in this revision

Viewing changes to lib/engine/framework/form-builder.h

  • Committer: Bazaar Package Importer
  • Author(s): Kilian Krause
  • Date: 2011-07-17 00:24:50 UTC
  • mfrom: (5.1.5 upstream) (7.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110717002450-ytg3wsrc1ptd3153
Tags: 3.3.1-1
* New upstream release.
 - Required libpt-dev 2.10 and libopal-dev 3.10
* Fix debian/watch to catch new version
* Remove libnotify0.7.patch - included upstream
* Add libboost-dev and libboost-signals-dev to Build-Depends
* debian/rules: Don't install *.la files for new internal shared libs
* Fix Vcs URIs to point to correct desktop/experimental/ekiga tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
/*
3
3
 * Ekiga -- A VoIP and Video-Conferencing application
4
 
 * Copyright (C) 2000-2007 Damien Sandras
 
4
 * Copyright (C) 2000-2009 Damien Sandras <dsandras@seconix.com>
5
5
 
6
6
 * This program is free software; you can  redistribute it and/or modify
7
7
 * it under the terms of the GNU General Public License as published by
90
90
 
91
91
    void boolean (const std::string name,
92
92
                  const std::string description,
93
 
                  bool value);
 
93
                  bool value,
 
94
                  bool advanced = false);
94
95
 
95
96
    void text (const std::string text,
96
97
               const std::string description,
97
 
               const std::string value);
 
98
               const std::string value,
 
99
               const std::string tooltip,
 
100
               bool advanced = false);
98
101
 
99
102
    void private_text (const std::string text,
100
103
                       const std::string description,
101
 
                       const std::string value);
 
104
                       const std::string value,
 
105
                       const std::string tooltip,
 
106
                       bool advanced = false);
102
107
 
103
108
    void multi_text (const std::string text,
104
109
                     const std::string description,
105
 
                     const std::string value);
 
110
                     const std::string value,
 
111
                     bool advanced = false);
106
112
 
107
113
    void single_choice (const std::string name,
108
114
                        const std::string description,
109
115
                        const std::string value,
110
 
                        const std::map<std::string, std::string> choices);
 
116
                        const std::map<std::string, std::string> choices,
 
117
                        bool advanced = false);
111
118
 
112
119
    void multiple_choice (const std::string name,
113
120
                          const std::string description,
114
121
                          const std::set<std::string> values,
115
 
                          const std::map<std::string, std::string> choices);
 
122
                          const std::map<std::string, std::string> choices,
 
123
                          bool advanced = false);
116
124
 
117
125
    void editable_set (const std::string name,
118
126
                       const std::string description,
119
127
                       const std::set<std::string> values,
120
 
                       const std::set<std::string> proposed_values);
 
128
                       const std::set<std::string> proposed_values,
 
129
                       bool advanced = false);
121
130
  private:
122
131
 
123
132
    struct HiddenField
128
137
 
129
138
      const std::string name;
130
139
      const std::string value;
 
140
      bool advanced;
131
141
    };
132
142
 
133
143
    struct BooleanField
134
144
    {
135
145
      BooleanField (const std::string _name,
136
146
                    const std::string _description,
137
 
                    bool _value): name(_name), description(_description),
138
 
                                  value(_value)
 
147
                    bool _value,
 
148
                    bool _advanced): name(_name), description(_description),
 
149
                                     value(_value), advanced(_advanced)
139
150
      {}
140
151
 
141
152
      const std::string name;
142
153
      const std::string description;
143
154
      bool value;
 
155
      bool advanced;
144
156
    };
145
157
 
146
158
    struct TextField
147
159
    {
148
160
      TextField (const std::string _name,
149
161
                 const std::string _description,
150
 
                 const std::string _value): name(_name),
151
 
                                            description(_description),
152
 
                                            value(_value)
 
162
                 const std::string _value,
 
163
                 const std::string _tooltip,
 
164
                 bool _advanced): name(_name),
 
165
                                  description(_description),
 
166
                  value(_value), tooltip (_tooltip), advanced(_advanced)
153
167
      {}
154
168
 
155
169
      const std::string name;
156
170
      const std::string description;
157
171
      const std::string value;
 
172
      const std::string tooltip;
 
173
      bool advanced;
158
174
    };
159
175
 
160
176
    struct MultiTextField
161
177
    {
162
178
      MultiTextField (const std::string _name,
163
179
                      const std::string _description,
164
 
                      const std::string _value): name(_name),
165
 
                                                 description(_description),
166
 
                                                 value(_value)
 
180
                      const std::string _value,
 
181
                      bool _advanced): name(_name),
 
182
                                       description(_description),
 
183
                                       value(_value), advanced(_advanced)
167
184
      {}
168
185
 
169
186
      const std::string name;
170
187
      const std::string description;
171
188
      const std::string value;
 
189
      bool advanced;
172
190
    };
173
191
 
174
192
    struct SingleChoiceField
176
194
      SingleChoiceField (const std::string _name,
177
195
                         const std::string _description,
178
196
                         const std::string _value,
179
 
                         const std::map<std::string, std::string> _choices):
 
197
                         const std::map<std::string, std::string> _choices,
 
198
                         bool _advanced):
180
199
        name(_name), description(_description),
181
 
        value(_value), choices(_choices)
 
200
        value(_value), choices(_choices), advanced(_advanced)
182
201
      {}
183
202
 
184
203
      const std::string name;
185
204
      const std::string description;
186
205
      const std::string value;
187
206
      const std::map<std::string, std::string> choices;
 
207
      bool advanced;
188
208
    };
189
209
 
190
210
 
193
213
      MultipleChoiceField (const std::string _name,
194
214
                           const std::string _description,
195
215
                           const std::set<std::string> _values,
196
 
                           const std::map<std::string, std::string> _choices):
 
216
                           const std::map<std::string, std::string> _choices,
 
217
                           bool _advanced):
197
218
        name(_name), description(_description),
198
 
        values(_values), choices(_choices)
 
219
        values(_values), choices(_choices), advanced(_advanced)
199
220
      {}
200
221
 
201
222
      const std::string name;
202
223
      const std::string description;
203
224
      const std::set<std::string> values;
204
225
      const std::map<std::string, std::string> choices;
 
226
      bool advanced;
205
227
    };
206
228
 
207
229
    struct EditableSetField
209
231
      EditableSetField (const std::string _name,
210
232
                        const std::string _description,
211
233
                        const std::set<std::string> _values,
212
 
                        const std::set<std::string> _proposed_values):
 
234
                        const std::set<std::string> _proposed_values,
 
235
                        bool _advanced):
213
236
        name(_name), description(_description),
214
 
        values(_values), proposed_values(_proposed_values)
 
237
        values(_values), proposed_values(_proposed_values), advanced(_advanced)
215
238
      {}
216
239
 
217
240
      const std::string name;
218
241
      const std::string description;
219
242
      const std::set<std::string> values;
220
243
      const std::set<std::string> proposed_values;
 
244
      bool advanced;
221
245
    };
222
246
 
223
247
    typedef enum {