]> err.no Git - scalable-opengroupware.org/blob - SOGo/UI/Mailer/product.plist
some progress in the mailer
[scalable-opengroupware.org] / SOGo / UI / Mailer / product.plist
1 {
2   requires = ( MAIN, CommonUI, Mailer );
3
4   publicResources = (
5     "uix.css",
6     "mailer.css",
7     "mailer.js",
8     
9     "lori_32x32.png",
10     
11     "tbtv_account_17x17.gif",
12     "tbtv_drafts_17x17.gif",
13     "tbtv_inbox_17x17.gif",
14     "tbtv_junction2_17x17.gif",
15     "tbtv_junction_17x17.gif",
16     "tbtv_leaf_corner_17x17.gif",
17     "tbtv_line_17x17.gif",
18     "tbtv_minus_17x17.gif",
19     "tbtv_plus_17x17.gif",
20     "tbtv_corner_17x17.gif",
21     "tbtv_corner_minus_17x17.gif",
22     "tbtv_corner_plus_17x17.gif",
23     "tbtv_sent_17x17.gif",
24     "tbtv_trash_17x17.gif",
25     
26     "tbtb_addressbook.png",
27     "tbtb_compose.png",
28     "tbtb_delete.png",
29     "tbtb_deletedoc.png",
30     "tbtb_filetofolder.png",
31     "tbtb_forward.png",
32     "tbtb_getmail.png",
33     "tbtb_next.png",
34     "tbtb_previous.png",
35     "tbtb_print.png",
36     "tbtb_reply.png",
37     "tbtb_replyall.png",
38     "tbtb_search.png",
39     "tbtb_trash.png",
40
41     "tbtb_compose_addressbook_30x30.png",
42     "tbtb_compose_attach_30x30.png",
43     "tbtb_compose_clip_30x30.png",
44     "tbtb_compose_cut_30x30.png",
45     "tbtb_compose_dup_30x30.png",
46     "tbtb_compose_file_30x30.png",
47     "tbtb_compose_lock_30x30.png",
48     "tbtb_compose_quote_30x30.png",
49     "tbtb_compose_send_30x30.png",
50     "tbtb_compose_spell_30x30.png",
51
52     "message-mail.png",
53     "message-mail-read.png",
54
55     "icon_mark_flagged.gif",
56     "icon_mark_read.gif",
57     "icon_mark_unflagged.gif",
58     "icon_mark_unread.gif",
59     "icon_read.gif",
60     "icon_unread.gif",
61
62     "title_attachment_14x14.png",
63     "title_config.png",
64     "title_junk.png",
65     "title_read_14x14.png",
66     "title_thread.png",
67     "title_sortdown_12x12.png",
68     "title_sortup_12x12.png",
69
70     "tbird_073_accountview.png",
71     "tbird_073_compose.png",
72     "tbird_073_mailwelcome.png",
73     "tbird_073_settings.png",
74     "tbird_073_viewer.png",
75   );
76
77   factories = {
78   };
79
80   categories = {
81     SOGoMailFolder = {
82       slots = {
83         toolbar = {
84           protectedBy = "View";
85           value = ( /* the toolbar groups */
86             ( /* first group */
87               {
88                 link  = "getMail";
89                 cssClass = "tbicon_getmail"; label = "Get Mail";
90               },
91               {
92                 link     = "#"; // "compose"; // target = "_blank";
93                 onclick  = "clickedCompose(this);return false;";
94                 cssClass = "tbicon_compose"; label = "Write";
95               },
96             ),
97             ( /* second group */
98               { link = "#"; 
99                 cssClass = "tbicon_reply";    label = "Reply";     },
100               { link = "#"; 
101                 cssClass = "tbicon_replyall"; label = "Reply All"; },
102               { link = "#"; cssClass = "tbicon_forward";  label = "Forward";   },
103             ),
104             ( /* third group */
105               { link = "#"; 
106                 cssClass = "tbicon_delete"; label = "Delete"; },
107               { link = "#"; 
108                 cssClass = "tbicon_junk";   label = "Junk";   },
109             ),
110             ( /* fourth group */
111               { link = "#"; cssClass = "tbicon_print"; label = "Print"; },
112               { link = "#"; cssClass = "tbicon_stop";  label = "Stop";  },
113             ),
114           );
115         };
116       };
117       methods = {
118         view = {
119           protectedBy = "View";
120           pageName    = "UIxMailListView"; 
121         };
122         GET = { /* hack to make it work as the default method */
123           protectedBy = "View";
124           pageName    = "UIxMailListView"; 
125         };
126         
127         markMessageUnread = {
128           protectedBy = "View";
129           pageName    = "UIxMailListView"; 
130           actionName  = "markMessageUnread";
131         };
132         markMessageRead = {
133           protectedBy = "View";
134           pageName    = "UIxMailListView"; 
135           actionName  = "markMessageRead";
136         };
137         getMail = {
138           protectedBy = "View";
139           pageName    = "UIxMailListView"; 
140           actionName  = "getMail";
141         };
142
143         compose = {
144           protectedBy = "View";
145           actionClass = "UIxMailEditorAction"; 
146           actionName  = "compose";
147         };
148       };
149     };
150
151     SOGoMailObject = {
152       slots = {
153         toolbar = {
154           protectedBy = "View";
155           value = ( /* the toolbar groups */
156             ( /* first group */
157               { link  = "getMail";
158                 cssClass = "tbicon_getmail"; label = "Get Mail"; },
159               { link  = "compose"; target = "_blank";
160                 cssClass = "tbicon_compose"; label = "Write"; },
161             ),
162             ( /* second group */
163               { link = "reply"; 
164                 cssClass = "tbicon_reply";    label = "Reply";     },
165               { link = "replyall"; 
166                 cssClass = "tbicon_replyall"; label = "Reply All"; },
167               { link = "forward"; 
168                 cssClass = "tbicon_forward";  label = "Forward";   },
169             ),
170             ( /* third group */
171               { link = "#"; 
172                 cssClass = "tbicon_delete"; label = "Delete"; },
173               { link = "#"; 
174                 cssClass = "tbicon_junk";   label = "Junk";   },
175             ),
176             ( /* fourth group */
177               { link = "#"; cssClass = "tbicon_print"; label = "Print"; },
178               { link = "#"; cssClass = "tbicon_stop";  label = "Stop";  },
179             ),
180           );
181         };
182       };
183       methods = {
184         view = { 
185           protectedBy = "View";
186           pageName    = "UIxMailView"; 
187         };
188
189         getMail = {
190           protectedBy = "View";
191           pageName    = "UIxMailView"; 
192           actionName  = "getMail";
193         };
194
195         delete = { 
196           protectedBy = "View";
197           pageName    = "UIxMailView"; 
198           actionName  = "delete";
199         };
200         junk = { 
201           protectedBy = "View";
202           pageName    = "UIxMailView"; 
203           actionName  = "junk";
204         };
205         edit = { 
206           protectedBy = "View";
207           pageName    = "UIxMailEditor"; 
208         };
209         compose = {
210           protectedBy = "View";
211           actionClass = "UIxMailEditorAction"; 
212           actionName  = "compose";
213         };
214         reply = {
215           protectedBy = "View";
216           actionClass = "UIxMailEditorAction"; 
217           actionName  = "reply";
218         };
219         replyall = {
220           protectedBy = "View";
221           actionClass = "UIxMailEditorAction"; 
222           actionName  = "replyall";
223         };
224         forward = {
225           protectedBy = "View";
226           actionClass = "UIxMailEditorAction"; 
227           actionName  = "forward";
228         };
229       };
230     };
231     
232     SOGoMailAccounts = {
233       slots = {
234         toolbar = {
235           protectedBy = "View";
236           value = ( /* the toolbar groups */
237             ( /* first group */
238               { link  = "getMail";
239                 cssClass = "tbicon_getmail"; label = "Get Mail"; },
240             )
241           );
242         };
243       };
244       methods = {
245         view = {
246           protectedBy = "View";
247           pageName    = "UIxMailAccountsView"; 
248         };
249       };
250     };
251     
252     SOGoMailAccount = {
253       slots = {
254         toolbar = {
255           protectedBy = "View";
256           value = ( /* the toolbar groups */
257             ( /* first group */
258               { link  = "getMail";
259                 cssClass = "tbicon_getmail"; label = "Get Mail"; },
260             )
261           );
262         };
263       };
264       methods = {
265         view = {
266           protectedBy = "View";
267           pageName    = "UIxMailAccountView"; 
268         };
269         addressbook = {
270           protectedBy = "View";
271           pageName    = "UIxMailAddressbook"; 
272         };
273         anais = {
274           protectedBy = "View";
275           pageName    = "UIxMailAddressbook";
276           actionName  = "anais";
277         };
278       };
279     };
280
281     SOGoDraftsFolder = {
282       slots = {
283         toolbar = {
284           protectedBy = "View";
285           value = ( /* the toolbar groups */
286             ( /* first group */
287               { link  = "getMail";
288                 cssClass = "tbicon_getmail"; label = "Get Mail"; },
289               {
290                 link     = "#"; // "compose"; // target = "_blank";
291                 onclick  = "clickedCompose(this);return false;";
292                 cssClass = "tbicon_compose"; label = "Write"; },
293             )
294           );
295         };
296       };
297       methods = {
298         view = {
299           protectedBy = "View";
300           pageName    = "UIxMailListView"; 
301         };
302         compose = {
303           protectedBy = "View";
304           actionClass = "UIxMailEditorAction"; 
305           actionName  = "compose";
306         };
307       };
308     };
309
310     SOGoDraftObject = {
311       slots = {
312         toolbar = {
313           protectedBy = "View";
314           value = ( /* the toolbar groups */
315             ( /* first group */
316               { link  = "#";
317                 onclick  = "clickedEditorSend(this);return false;";
318                 cssClass = "tbicon_send"; label = "Send"; },
319               { link  = "#"; target = "addressbook";
320                 onclick  = "openAddressbook(this);return false;";
321                 cssClass = "tbicon_addressbook"; label = "Addressbook"; },
322               { link  = "#"; target = "anais";
323                 onclick  = "openAnais(this);return false;";
324                 cssClass = "tbicon_addressbook"; label = "Anais"; },
325               { link  = "#"; 
326                 onclick  = "clickedEditorAttach(this);return false;";
327                 cssClass = "tbicon_attach"; label = "Attach"; },
328               { link  = "#"; 
329                 onclick  = "clickedEditorSave(this);return false;";
330                 cssClass = "tbicon_save"; label = "Save"; },
331             )
332           );
333         };
334       };
335       methods = {
336         view = { /* somewhat hackish */
337           protectedBy = "View";
338           pageName    = "UIxMailEditor"; 
339         };
340         edit = {
341           protectedBy = "View";
342           pageName    = "UIxMailEditor"; 
343         };
344         addressbook = {
345           protectedBy = "View";
346           pageName    = "UIxMailAddressbook";
347         };
348         anais = {
349           protectedBy = "View";
350           pageName    = "UIxMailAddressbook";
351           actionName  = "anais";
352         };
353       };
354     };
355   };
356 }