]> err.no Git - scalable-opengroupware.org/blob - UI/MailerUI/product.plist
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1131 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / UI / MailerUI / product.plist
1 { /* -*-javascript-*- */
2 requires = ( MAIN, MainUI, CommonUI, Mailer, MailPartViewers ); /* , 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          quotas = {
99             protectedBy = "View";
100             actionClass = "UIxMailFolderActions";
101             actionName = "quotas";
102          };
103          view = {
104             protectedBy = "View";
105             pageName    = "UIxMailListView";
106          };
107          ajax = {
108             protectedBy = "View";
109             pageName    = "UIxMailAjaxRequest";
110          };
111          index = {
112             protectedBy = "View";
113             pageName    = "UIxMailListView";
114          };
115          GET = { /* hack to make it work as the default method */
116                  protectedBy = "View";
117                  pageName    = "UIxMailListView";
118          };
119          markMessageUnread = {
120             protectedBy = "View";
121             pageName    = "UIxMailListView";
122             actionName  = "markMessageUnread";
123          };
124          markMessageRead = {
125             protectedBy = "View";
126             pageName    = "UIxMailListView";
127             actionName  = "markMessageRead";
128          };
129          getMail = {
130             protectedBy = "View";
131             pageName    = "UIxMailListView";
132             actionName  = "getMail";
133          };
134          expunge = {
135             protectedBy = "View";
136             pageName    = "UIxMailListView";
137             actionName  = "expunge";
138          };
139          createFolder = {
140             protectedBy = "View";
141             actionClass = "UIxMailFolderActions";
142             actionName = "createFolder";
143          };
144          renameFolder = {
145             protectedBy = "View";
146             actionClass = "UIxMailFolderActions";
147             actionName = "renameFolder";
148          };
149          deleteFolder = {
150             protectedBy = "View";
151             actionClass = "UIxMailFolderActions";
152             actionName = "deleteFolder";
153          };
154          compose = {
155             protectedBy = "View";
156             actionClass = "UIxMailEditorAction";
157             actionName  = "compose";
158          };
159          userRights = {
160             protectedBy = "ReadAcls";
161             pageName    = "UIxMailUserRightsEditor";
162          };
163          saveUserRights = {
164             protectedBy = "SaveAcls";
165             pageName    = "UIxMailUserRightsEditor";
166             actionName  = "saveUserRights";
167          };
168       };
169    };
170
171    SOGoTrashFolder = {
172       /* just a new toolbar, other things come from SOGoMailFolder */
173       slots = {
174          toolbar = {
175             protectedBy = "View";
176             value = "SOGoMailObject.toolbar";
177          };
178       };
179       methods = {
180          emptyTrash = {
181             protectedBy = "View";
182             actionClass = "UIxMailFolderActions";
183             actionName = "emptyTrash";
184          };
185       };
186    };
187
188    SOGoMailObject = {
189       slots = {
190          toolbar = {
191             protectedBy = "View";
192             value = "SOGoMailObject.toolbar";
193          };
194       };
195       methods = {
196          view = {
197             protectedBy = "View";
198             pageName    = "UIxMailView";
199          };
200          viewsource = {
201             protectedBy = "View";
202             actionClass = "UIxMailSourceView";
203             actionName = "viewSource";
204          };
205          popupview = {
206             protectedBy = "View";
207             pageName    = "UIxMailPopupView";
208          };
209          move = {
210             protectedBy = "View";
211             pageName    = "UIxMailView";
212             actionName  = "move";
213          };
214          delete = {
215             protectedBy = "View";
216             pageName    = "UIxMailView";
217             actionName  = "delete";
218          };
219          trash = {
220             protectedBy = "View";
221             pageName    = "UIxMailView";
222             actionName  = "trash";
223          };
224          junk = {
225             protectedBy = "View";
226             pageName    = "UIxMailView";
227             actionName  = "junk";
228          };
229          edit = {
230             protectedBy = "View";
231             pageName    = "UIxMailEditor";
232          };
233          compose = {
234             protectedBy = "View";
235             actionClass = "UIxMailEditorAction";
236             actionName  = "compose";
237          };
238          reply = {
239             protectedBy = "View";
240             actionClass = "UIxMailReplyAction";
241             actionName  = "reply";
242          };
243          replyall = {
244             protectedBy = "View";
245             actionClass = "UIxMailReplyAction";
246             actionName  = "replyall";
247          };
248          forward = {
249             protectedBy = "View";
250             actionClass = "UIxMailForwardAction";
251             actionName  = "forward";
252          };
253       };
254    };
255
256    SOGoMailAccounts = {
257       slots = {
258          toolbar = {
259             protectedBy = "View";
260             value = "SOGoMailObject.toolbar";
261          };
262       };
263       methods = {
264          view = {
265             protectedBy = "View";
266             pageName    = "UIxMailMainFrame";
267          };
268          compose = {
269             protectedBy = "View";
270             pageName    = "UIxMailMainFrame";
271             actionName  = "compose";
272          };
273          getMail = {
274             protectedBy = "View";
275             pageName    = "UIxMailAccountsView";
276          };
277       };
278    };
279
280    SOGoMailAccount = {
281       slots = {
282          toolbar = {
283             protectedBy = "View";
284             value = "SOGoMailObject.toolbar";
285          };
286       };
287       methods = {
288          compose = {
289             protectedBy = "View";
290             actionClass = "UIxMailEditorAction";
291             actionName  = "compose";
292          };
293          mailboxes = {
294             protectedBy = "View";
295             actionClass = "UIxMailAccountActions";
296             actionName = "listMailboxes";
297          };
298          createFolder = {
299             protectedBy = "View";
300             actionClass = "UIxMailFolderActions";
301             actionName = "createFolder";
302          };
303       };
304    };
305
306    SOGoDraftsFolder = {
307       slots = {
308          toolbar = {
309             protectedBy = "View";
310             value = ( /* the toolbar groups */
311                       ( /* first group */
312                          { link  = "getMail";
313                            image = "tb-mail-getmail-flat-24x24.png";
314                            cssClass = "tbicon_getmail"; label = "Get Mail"; },
315                          {
316                             link     = "#"; // "compose"; // target = "_blank";
317                             isSafe = NO;
318                             onclick  = "return openMessageWindow(null, 'compose');";
319                             image = "tb-mail-write-flat-24x24.png";
320                             cssClass = "tbicon_compose"; label = "Write"; },
321                         )
322                );
323          };
324       };
325       methods = {
326          view = {
327             protectedBy = "View";
328             pageName    = "UIxMailListView";
329          };
330          getMail = {
331             protectedBy = "View";
332             pageName    = "UIxMailListView";
333          };
334          compose = {
335             protectedBy = "View";
336             actionClass = "UIxMailEditorAction";
337             actionName  = "compose";
338          };
339       };
340    };
341
342    SOGoDraftObject = {
343       slots = {
344          toolbar = {
345             protectedBy = "View";
346             value       = "SOGoDraftObject.toolbar";
347          };
348       };
349       methods = {
350          view = { /* somewhat hackish */
351             protectedBy = "View";
352             pageName    = "UIxMailView";
353          };
354          edit = {
355             protectedBy = "View";
356             pageName    = "UIxMailEditor";
357          };
358          save = {
359             protectedBy = "View";
360             pageName    = "UIxMailEditor";
361             actionName  = "save";
362          };
363          delete = {
364             protectedBy = "View";
365             pageName    = "UIxMailEditor";
366             actionName  = "delete";
367          };
368
369          viewAttachments = {
370             protectedBy = "View";
371             pageName    = "UIxMailEditorAttach";
372             actionName  = "viewAttachments";
373          };
374          attach = {
375             protectedBy = "View";
376             pageName    = "UIxMailEditorAttach";
377             actionName  = "attach";
378          };
379          deleteAttachment = {
380             protectedBy = "View";
381             pageName    = "UIxMailEditorAttach";
382             actionName  = "deleteAttachment";
383          };
384          send = {
385             protectedBy = "View";
386             pageName    = "UIxMailEditor";
387             actionName  = "send";
388          };
389       };
390    };
391
392    /* Sieve */
393
394    /*    SOGoSieveScriptsFolder = {
395       slots = {
396          toolbar = {
397             protectedBy = "View";
398             value = (
399                (
400                {
401                   link  = "getMail";
402                   image = "tb-mail-getmail-flat-24x24.png";
403                   cssClass = "tbicon_getmail"; label = "Get Mail";
404                },
405                   {
406                      link     = "#"; // "compose"; // target = "_blank";
407                      onclick  = "clickedNewFilter(this); return false";
408                      image = "tb-mail-write-flat-24x24.png";
409                      cssClass = "tbicon_compose"; label = "New Filter";
410                   },
411                ),
412                (
413                { link = "#";
414                cssClass = "tbicon_delete"; label = "Delete"; },
415                ),
416                );
417          };
418       };
419       methods = {
420          view = {
421             protectedBy = "View";
422             pageName    = "UIxFilterList";
423          };
424          create = {
425             protectedBy = "View";
426             pageName    = "UIxFilterList";
427             actionName  = "create";
428          };
429       };
430    };
431
432    SOGoSieveScriptObject = {
433       slots = {
434          toolbar = {
435             protectedBy = "View";
436             value = (
437                ( { link  = "#";
438                onclick  = "clickedEditorSave(this);return false;";
439                image = "tb-mail-file-flat-24x24.png";
440                cssClass = "tbicon_save"; label = "Save"; },
441                   { link = "#";
442                     onclick  = "clickedEditorDelete(this);return false;";
443                     image = "tb-mail-delete-flat-24x24.png";
444                     cssClass = "tbicon_delete"; label = "Delete"; },
445                  )
446                );
447          };
448       };
449       methods = {
450          edit = {
451             protectedBy = "View";
452             pageName    = "UIxSieveEditor";
453             actionName  = "edit";
454          };
455          save = {
456             protectedBy = "View";
457             pageName    = "UIxSieveEditor";
458             actionName  = "save";
459          };
460          delete = {
461             protectedBy = "View";
462             pageName    = "UIxSieveEditor";
463             actionName  = "delete";
464          };
465       };
466    }; */
467 };
468 }