Create new Application.AttachmentManager class and move code for saving attachments there from both Application.Controller and MainWindow since aside from needing the latter for dialogs it is independent of both. Create new Components.AttachmentPane widget for diplaying attachents for an email in the ConversationViewer. Update ConversationEmail and ConversationMessage to use these two new classes directly, rather than implementing save management itself or requiring the MainWindow to wire up signals on these classes.
22 lines
622 B
XML
22 lines
622 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<interface>
|
|
<menu id="attachments_menu">
|
|
<section>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_Open</attribute>
|
|
<attribute name="action">cap.open</attribute>
|
|
</item>
|
|
<item>
|
|
<attribute name="label" translatable="yes">_Save</attribute>
|
|
<attribute name="action">cap.save</attribute>
|
|
</item>
|
|
</section>
|
|
<section>
|
|
<item>
|
|
<attribute name="label" translatable="yes">Save _All</attribute>
|
|
<attribute name="action">cap.save-all</attribute>
|
|
</item>
|
|
</section>
|
|
</menu>
|
|
</interface>
|