]> err.no Git - scalable-opengroupware.org/blob - UI/MailerUI/product.plist
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1089 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / UI / MailerUI / product.plist
1 { /* -*-javascript-*- */
2 requires = ( MAIN, MainUI, CommonUI, Mailer ); /* , Sieve */
3
4    publicResources = (
5       "uix.css",
6       "mailer.css",
7       "mailer.js",
8       "generic.js",
9       "searchfield.js",
10       "UIxAppointmentEditor.js",
11       "UIxContactEditor.js",
12       "UIxMailToSelection.js",
13
14       "lori_32x32.png",
15
16       "tbtv_account_17x17.gif",
17       "tbtv_drafts_17x17.gif",
18       "tbtv_inbox_17x17.gif",
19       "tbtv_junction2_17x17.gif",
20       "tbtv_junction_17x17.gif",
21       "tbtv_leaf_corner_17x17.gif",
22       "tbtv_line_17x17.gif",
23       "tbtv_minus_17x17.gif",
24       "tbtv_plus_17x17.gif",
25       "tbtv_corner_17x17.gif",
26       "tbtv_corner_minus_17x17.gif",
27       "tbtv_corner_plus_17x17.gif",
28       "tbtv_sent_17x17.gif",
29       "tbtv_trash_17x17.gif",
30
31       "tbtb_addressbook.png",
32       "tbtb_compose.png",
33       "tbtb_delete.png",
34       "tbtb_deletedoc.png",
35       "tbtb_filetofolder.png",
36       "tbtb_forward.png",
37       "tbtb_getmail.png",
38       "tbtb_next.png",
39       "tbtb_previous.png",
40       "tbtb_print.png",
41       "tbtb_reply.png",
42       "tbtb_replyall.png",
43       "tbtb_search.png",
44       "tbtb_trash.png",
45
46       "tbtb_compose_addressbook_30x30.png",
47       "tbtb_compose_attach_30x30.png",
48       "tbtb_compose_clip_30x30.png",
49       "tbtb_compose_cut_30x30.png",
50       "tbtb_compose_dup_30x30.png",
51       "tbtb_compose_file_30x30.png",
52       "tbtb_compose_lock_30x30.png",
53       "tbtb_compose_quote_30x30.png",
54       "tbtb_compose_send_30x30.png",
55       "tbtb_compose_spell_30x30.png",
56
57       "message-mail.png",
58       "message-mail-read.png",
59
60       "icon_mark_flagged.gif",
61       "icon_mark_read.gif",
62       "icon_mark_unflagged.gif",
63       "icon_mark_unread.gif",
64       "icon_read.gif",
65       "icon_unread.gif",
66
67       "title_attachment_14x14.png",
68       "title_config.png",
69       "title_junk.png",
70       "title_read_14x14.png",
71       "title_thread.png",
72       "title_sortdown_12x12.png",
73       "title_sortup_12x12.png",
74       );
75
76 factories = {
77 };
78
79 categories = {
80    SOGoMailFolder = {
81       slots = {
82          toolbar = {
83             protectedBy = "View";
84             value = "SOGoMailObject.toolbar";
85          };
86       };
87       methods = {
88          subscribe = {
89             protectedBy = "<public>";
90             actionClass = "UIxMailFolderActions";
91             actionName = "subscribe";
92          };
93          unsubscribe = {
94             protectedBy = "<public>";
95             actionClass = "UIxMailFolderActions";
96             actionName = "unsubscribe";
97          };
98          view = {
99             protectedBy = "View";
100             pageName    = "UIxMailListView";
101          };
102          ajax = {
103             protectedBy = "View";
104             pageName    = "UIxMailAjaxRequest";
105          };
106          index = {
107             protectedBy = "View";
108             pageName    = "UIxMailListView";
109          };
110          GET = { /* hack to make it work as the default method */
111                  protectedBy = "View";
112                  pageName    = "UIxMailListView";
113          };
114          markMessageUnread = {
115             protectedBy = "View";
116             pageName    = "UIxMailListView";
117             actionName  = "markMessageUnread";
118          };
119          markMessageRead = {
120             protectedBy = "View";
121             pageName    = "UIxMailListView";
122             actionName  = "markMessageRead";
123          };
124          getMail = {
125             protectedBy = "View";
126             pageName    = "UIxMailListView";
127             actionName  = "getMail";
128          };
129          expunge = {
130             protectedBy = "View";
131             pageName    = "UIxMailListView";
132             actionName  = "expunge";
133          };
134          createFolder = {
135             protectedBy = "View";
136             actionClass = "UIxMailFolderActions";
137             actionName = "createFolder";
138          };
139          renameFolder = {
140             protectedBy = "View";
141             actionClass = "UIxMailFolderActions";
142             actionName = "renameFolder";
143          };
144          deleteFolder = {
145             protectedBy = "View";
146             actionClass = "UIxMailFolderActions";
147             actionName = "deleteFolder";
148          };
149          compose = {
150             protectedBy = "View";
151             actionClass = "UIxMailEditorAction";
152             actionName  = "compose";
153          };
154          userRights = {
155             protectedBy = "ReadAcls";
156             pageName    = "UIxMailUserRightsEditor";
157          };
158          saveUserRights = {
159             protectedBy = "SaveAcls";
160             pageName    = "UIxMailUserRightsEditor";
161             actionName  = "saveUserRights";
162          };
163       };
164    };
165
166    SOGoTrashFolder = {
167       /* just a new toolbar, other things come from SOGoMailFolder */
168       slots = {
169          toolbar = {
170             protectedBy = "View";
171             value = "SOGoMailObject.toolbar";
172          };
173       };
174       methods = {
175          emptyTrash = {
176             protectedBy = "View";
177             actionClass = "UIxMailFolderActions";
178             actionName = "emptyTrash";
179          };
180       };
181    };
182
183    SOGoMailObject = {
184       slots = {
185          toolbar = {
186             protectedBy = "View";
187             value = "SOGoMailObject.toolbar";
188          };
189       };
190       methods = {
191          view = {
192             protectedBy = "View";
193             pageName    = "UIxMailView";
194          };
195          popupview = {
196             protectedBy = "View";
197             pageName    = "UIxMailPopupView";
198          };
199          move = {
200             protectedBy = "View";
201             pageName    = "UIxMailView";
202             actionName  = "move";
203          };
204          delete = {
205             protectedBy = "View";
206             pageName    = "UIxMailView";
207             actionName  = "delete";
208          };
209          trash = {
210             protectedBy = "View";
211             pageName    = "UIxMailView";
212             actionName  = "trash";
213          };
214          junk = {
215             protectedBy = "View";
216             pageName    = "UIxMailView";
217             actionName  = "junk";
218          };
219          edit = {
220             protectedBy = "View";
221             pageName    = "UIxMailEditor";
222          };
223          compose = {
224             protectedBy = "View";
225             actionClass = "UIxMailEditorAction";
226             actionName  = "compose";
227          };
228          reply = {
229             protectedBy = "View";
230             actionClass = "UIxMailReplyAction";
231             actionName  = "reply";
232          };
233          replyall = {
234             protectedBy = "View";
235             actionClass = "UIxMailReplyAction";
236             actionName  = "replyall";
237          };
238          forward = {
239             protectedBy = "View";
240             actionClass = "UIxMailForwardAction";
241             actionName  = "forward";
242          };
243       };
244    };
245
246    SOGoMailAccounts = {
247       slots = {
248          toolbar = {
249             protectedBy = "View";
250             value = "SOGoMailObject.toolbar";
251          };
252       };
253       methods = {
254          view = {
255             protectedBy = "View";
256             pageName    = "UIxMailMainFrame";
257          };
258          compose = {
259             protectedBy = "View";
260             pageName    = "UIxMailMainFrame";
261             actionName  = "compose";
262          };
263          getMail = {
264             protectedBy = "View";
265             pageName    = "UIxMailAccountsView";
266          };
267       };
268    };
269
270    SOGoMailAccount = {
271       slots = {
272          toolbar = {
273             protectedBy = "View";
274             value = "SOGoMailObject.toolbar";
275          };
276       };
277       methods = {
278          compose = {
279             protectedBy = "View";
280             actionClass = "UIxMailEditorAction";
281             actionName  = "compose";
282          };
283          mailboxes = {
284             protectedBy = "View";
285             actionClass = "UIxMailAccountActions";
286             actionName = "listMailboxes";
287          };
288          createFolder = {
289             protectedBy = "View";
290             actionClass = "UIxMailFolderActions";
291             actionName = "createFolder";
292          };
293       };
294    };
295
296    SOGoDraftsFolder = {
297       slots = {
298          toolbar = {
299             protectedBy = "View";
300             value = ( /* the toolbar groups */
301                       ( /* first group */
302                          { link  = "getMail";
303                            image = "tb-mail-getmail-flat-24x24.png";
304                            cssClass = "tbicon_getmail"; label = "Get Mail"; },
305                          {
306                             link     = "#"; // "compose"; // target = "_blank";
307                             isSafe = NO;
308                             onclick  = "return openMessageWindow(null, 'compose');";
309                             image = "tb-mail-write-flat-24x24.png";
310                             cssClass = "tbicon_compose"; label = "Write"; },
311                         )
312                );
313          };
314       };
315       methods = {
316          view = {
317             protectedBy = "View";
318             pageName    = "UIxMailListView";
319          };
320          getMail = {
321             protectedBy = "View";
322             pageName    = "UIxMailListView";
323          };
324          compose = {
325             protectedBy = "View";
326             actionClass = "UIxMailEditorAction";
327             actionName  = "compose";
328          };
329       };
330    };
331
332    SOGoDraftObject = {
333       slots = {
334          toolbar = {
335             protectedBy = "View";
336             value       = "SOGoDraftObject.toolbar";
337          };
338       };
339       methods = {
340          view = { /* somewhat hackish */
341                   protectedBy = "View";
342                   pageName    = "UIxMailEditor";
343          };
344          edit = {
345             protectedBy = "View";
346             pageName    = "UIxMailEditor";
347             actionName  = "edit";
348          };
349          save = {
350             protectedBy = "View";
351             pageName    = "UIxMailEditor";
352             actionName  = "save";
353          };
354          delete = {
355             protectedBy = "View";
356             pageName    = "UIxMailEditor";
357             actionName  = "delete";
358          };
359
360          viewAttachments = {
361             protectedBy = "View";
362             pageName    = "UIxMailEditorAttach";
363             actionName  = "viewAttachments";
364          };
365          attach = {
366             protectedBy = "View";
367             pageName    = "UIxMailEditorAttach";
368             actionName  = "attach";
369          };
370          deleteAttachment = {
371             protectedBy = "View";
372             pageName    = "UIxMailEditorAttach";
373             actionName  = "deleteAttachment";
374          };
375          send = {
376             protectedBy = "View";
377             pageName    = "UIxMailEditor";
378             actionName  = "send";
379          };
380       };
381    };
382
383    /* Sieve */
384
385    /*    SOGoSieveScriptsFolder = {
386       slots = {
387          toolbar = {
388             protectedBy = "View";
389             value = (
390                (
391                {
392                   link  = "getMail";
393                   image = "tb-mail-getmail-flat-24x24.png";
394                   cssClass = "tbicon_getmail"; label = "Get Mail";
395                },
396                   {
397                      link     = "#"; // "compose"; // target = "_blank";
398                      onclick  = "clickedNewFilter(this); return false";
399                      image = "tb-mail-write-flat-24x24.png";
400                      cssClass = "tbicon_compose"; label = "New Filter";
401                   },
402                ),
403                (
404                { link = "#";
405                cssClass = "tbicon_delete"; label = "Delete"; },
406                ),
407                );
408          };
409       };
410       methods = {
411          view = {
412             protectedBy = "View";
413             pageName    = "UIxFilterList";
414          };
415          create = {
416             protectedBy = "View";
417             pageName    = "UIxFilterList";
418             actionName  = "create";
419          };
420       };
421    };
422
423    SOGoSieveScriptObject = {
424       slots = {
425          toolbar = {
426             protectedBy = "View";
427             value = (
428                ( { link  = "#";
429                onclick  = "clickedEditorSave(this);return false;";
430                image = "tb-mail-file-flat-24x24.png";
431                cssClass = "tbicon_save"; label = "Save"; },
432                   { link = "#";
433                     onclick  = "clickedEditorDelete(this);return false;";
434                     image = "tb-mail-delete-flat-24x24.png";
435                     cssClass = "tbicon_delete"; label = "Delete"; },
436                  )
437                );
438          };
439       };
440       methods = {
441          edit = {
442             protectedBy = "View";
443             pageName    = "UIxSieveEditor";
444             actionName  = "edit";
445          };
446          save = {
447             protectedBy = "View";
448             pageName    = "UIxSieveEditor";
449             actionName  = "save";
450          };
451          delete = {
452             protectedBy = "View";
453             pageName    = "UIxSieveEditor";
454             actionName  = "delete";
455          };
456       };
457    }; */
458 };
459 }