]> err.no Git - scalable-opengroupware.org/blob - UI/MailerUI/product.plist
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1097 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          viewsource = {
196             protectedBy = "View";
197             actionClass = "UIxMailSourceView";
198             actionName = "viewSource";
199          };
200          popupview = {
201             protectedBy = "View";
202             pageName    = "UIxMailPopupView";
203          };
204          move = {
205             protectedBy = "View";
206             pageName    = "UIxMailView";
207             actionName  = "move";
208          };
209          delete = {
210             protectedBy = "View";
211             pageName    = "UIxMailView";
212             actionName  = "delete";
213          };
214          trash = {
215             protectedBy = "View";
216             pageName    = "UIxMailView";
217             actionName  = "trash";
218          };
219          junk = {
220             protectedBy = "View";
221             pageName    = "UIxMailView";
222             actionName  = "junk";
223          };
224          edit = {
225             protectedBy = "View";
226             pageName    = "UIxMailEditor";
227          };
228          compose = {
229             protectedBy = "View";
230             actionClass = "UIxMailEditorAction";
231             actionName  = "compose";
232          };
233          reply = {
234             protectedBy = "View";
235             actionClass = "UIxMailReplyAction";
236             actionName  = "reply";
237          };
238          replyall = {
239             protectedBy = "View";
240             actionClass = "UIxMailReplyAction";
241             actionName  = "replyall";
242          };
243          forward = {
244             protectedBy = "View";
245             actionClass = "UIxMailForwardAction";
246             actionName  = "forward";
247          };
248       };
249    };
250
251    SOGoMailAccounts = {
252       slots = {
253          toolbar = {
254             protectedBy = "View";
255             value = "SOGoMailObject.toolbar";
256          };
257       };
258       methods = {
259          view = {
260             protectedBy = "View";
261             pageName    = "UIxMailMainFrame";
262          };
263          compose = {
264             protectedBy = "View";
265             pageName    = "UIxMailMainFrame";
266             actionName  = "compose";
267          };
268          getMail = {
269             protectedBy = "View";
270             pageName    = "UIxMailAccountsView";
271          };
272       };
273    };
274
275    SOGoMailAccount = {
276       slots = {
277          toolbar = {
278             protectedBy = "View";
279             value = "SOGoMailObject.toolbar";
280          };
281       };
282       methods = {
283          compose = {
284             protectedBy = "View";
285             actionClass = "UIxMailEditorAction";
286             actionName  = "compose";
287          };
288          mailboxes = {
289             protectedBy = "View";
290             actionClass = "UIxMailAccountActions";
291             actionName = "listMailboxes";
292          };
293          createFolder = {
294             protectedBy = "View";
295             actionClass = "UIxMailFolderActions";
296             actionName = "createFolder";
297          };
298       };
299    };
300
301    SOGoDraftsFolder = {
302       slots = {
303          toolbar = {
304             protectedBy = "View";
305             value = ( /* the toolbar groups */
306                       ( /* first group */
307                          { link  = "getMail";
308                            image = "tb-mail-getmail-flat-24x24.png";
309                            cssClass = "tbicon_getmail"; label = "Get Mail"; },
310                          {
311                             link     = "#"; // "compose"; // target = "_blank";
312                             isSafe = NO;
313                             onclick  = "return openMessageWindow(null, 'compose');";
314                             image = "tb-mail-write-flat-24x24.png";
315                             cssClass = "tbicon_compose"; label = "Write"; },
316                         )
317                );
318          };
319       };
320       methods = {
321          view = {
322             protectedBy = "View";
323             pageName    = "UIxMailListView";
324          };
325          getMail = {
326             protectedBy = "View";
327             pageName    = "UIxMailListView";
328          };
329          compose = {
330             protectedBy = "View";
331             actionClass = "UIxMailEditorAction";
332             actionName  = "compose";
333          };
334       };
335    };
336
337    SOGoDraftObject = {
338       slots = {
339          toolbar = {
340             protectedBy = "View";
341             value       = "SOGoDraftObject.toolbar";
342          };
343       };
344       methods = {
345          view = { /* somewhat hackish */
346                   protectedBy = "View";
347                   pageName    = "UIxMailEditor";
348          };
349          edit = {
350             protectedBy = "View";
351             pageName    = "UIxMailEditor";
352             actionName  = "edit";
353          };
354          save = {
355             protectedBy = "View";
356             pageName    = "UIxMailEditor";
357             actionName  = "save";
358          };
359          delete = {
360             protectedBy = "View";
361             pageName    = "UIxMailEditor";
362             actionName  = "delete";
363          };
364
365          viewAttachments = {
366             protectedBy = "View";
367             pageName    = "UIxMailEditorAttach";
368             actionName  = "viewAttachments";
369          };
370          attach = {
371             protectedBy = "View";
372             pageName    = "UIxMailEditorAttach";
373             actionName  = "attach";
374          };
375          deleteAttachment = {
376             protectedBy = "View";
377             pageName    = "UIxMailEditorAttach";
378             actionName  = "deleteAttachment";
379          };
380          send = {
381             protectedBy = "View";
382             pageName    = "UIxMailEditor";
383             actionName  = "send";
384          };
385       };
386    };
387
388    /* Sieve */
389
390    /*    SOGoSieveScriptsFolder = {
391       slots = {
392          toolbar = {
393             protectedBy = "View";
394             value = (
395                (
396                {
397                   link  = "getMail";
398                   image = "tb-mail-getmail-flat-24x24.png";
399                   cssClass = "tbicon_getmail"; label = "Get Mail";
400                },
401                   {
402                      link     = "#"; // "compose"; // target = "_blank";
403                      onclick  = "clickedNewFilter(this); return false";
404                      image = "tb-mail-write-flat-24x24.png";
405                      cssClass = "tbicon_compose"; label = "New Filter";
406                   },
407                ),
408                (
409                { link = "#";
410                cssClass = "tbicon_delete"; label = "Delete"; },
411                ),
412                );
413          };
414       };
415       methods = {
416          view = {
417             protectedBy = "View";
418             pageName    = "UIxFilterList";
419          };
420          create = {
421             protectedBy = "View";
422             pageName    = "UIxFilterList";
423             actionName  = "create";
424          };
425       };
426    };
427
428    SOGoSieveScriptObject = {
429       slots = {
430          toolbar = {
431             protectedBy = "View";
432             value = (
433                ( { link  = "#";
434                onclick  = "clickedEditorSave(this);return false;";
435                image = "tb-mail-file-flat-24x24.png";
436                cssClass = "tbicon_save"; label = "Save"; },
437                   { link = "#";
438                     onclick  = "clickedEditorDelete(this);return false;";
439                     image = "tb-mail-delete-flat-24x24.png";
440                     cssClass = "tbicon_delete"; label = "Delete"; },
441                  )
442                );
443          };
444       };
445       methods = {
446          edit = {
447             protectedBy = "View";
448             pageName    = "UIxSieveEditor";
449             actionName  = "edit";
450          };
451          save = {
452             protectedBy = "View";
453             pageName    = "UIxSieveEditor";
454             actionName  = "save";
455          };
456          delete = {
457             protectedBy = "View";
458             pageName    = "UIxSieveEditor";
459             actionName  = "delete";
460          };
461       };
462    }; */
463 };
464 }