forked from neomutt/neomutt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
116 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
* @file | ||
* GUI display the mailboxes in a side panel | ||
* | ||
* @authors | ||
* Copyright (C) 2021 Richard Russon <[email protected]> | ||
* | ||
* @copyright | ||
* This program is free software: you can redistribute it and/or modify it under | ||
* the terms of the GNU General Public License as published by the Free Software | ||
* Foundation, either version 2 of the License, or (at your option) any later | ||
* version. | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | ||
* details. | ||
* | ||
* You should have received a copy of the GNU General Public License along with | ||
* this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/** | ||
* @page lib_attach Attach | ||
* | ||
* Attachment handling | ||
* | ||
* | File | Description | | ||
* | :------------------- | :-------------------------- | | ||
* | attach/attachments.c | @subpage attach_attachments | | ||
* | attach/dlg_attach.c | @subpage attach_dialog | | ||
* | attach/mutt_attach.c | @subpage attach_mutt_attach | | ||
* | attach/recvattach.c | @subpage attach_recvattach | | ||
*/ | ||
|
||
#ifndef MUTT_ATTACH_LIB_H | ||
#define MUTT_ATTACH_LIB_H | ||
|
||
// IWYU pragma: begin_exports | ||
#include "attachments.h" | ||
#include "mutt_attach.h" | ||
#include "recvattach.h" | ||
// IWYU pragma: end_exports | ||
|
||
#endif /* MUTT_ATTACH_LIB_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/** | ||
* @file | ||
* Attachment Selection Dialog | ||
* Attachment code | ||
* | ||
* @authors | ||
* Copyright (C) 1996-2000,2002,2007,2010 Michael R. Elkins <[email protected]> | ||
|
@@ -22,50 +22,9 @@ | |
*/ | ||
|
||
/** | ||
* @page neo_recvattach Attachment Selection Dialog | ||
* @page attach_recvattach Attachment code | ||
* | ||
* ## Overview | ||
* | ||
* The Attachment Selection Dialog lets the user select an email attachment. | ||
* | ||
* This is a @ref gui_simple | ||
* | ||
* ## Windows | ||
* | ||
* | Name | Type | See Also | | ||
* | :-------------------------- | :------------ | :---------------------- | | ||
* | Attachment Selection Dialog | WT_DLG_ATTACH | dlg_select_attachment() | | ||
* | ||
* **Parent** | ||
* - @ref gui_dialog | ||
* | ||
* **Children** | ||
* - See: @ref gui_simple | ||
* | ||
* ## Data | ||
* - #Menu | ||
* - #Menu::mdata | ||
* - #AttachCtx | ||
* | ||
* The @ref gui_simple holds a Menu. The Attachment Selection Dialog stores | ||
* its data (#AttachCtx) in Menu::mdata. | ||
* | ||
* ## Events | ||
* | ||
* Once constructed, it is controlled by the following events: | ||
* | ||
* | Event Type | Handler | | ||
* | :---------- | :----------------------- | | ||
* | #NT_CONFIG | attach_config_observer() | | ||
* | #NT_WINDOW | attach_window_observer() | | ||
* | ||
* The Attachment Selection Dialog doesn't have any specific colours, so it | ||
* doesn't need to support #NT_COLOR. | ||
* | ||
* The Attachment Selection Dialog does not implement MuttWindow::recalc() or | ||
* MuttWindow::repaint(). | ||
* | ||
* Some other events are handled by the @ref gui_simple. | ||
* Attachment code | ||
*/ | ||
|
||
#include "config.h" | ||
|
@@ -953,7 +912,7 @@ void mutt_print_attachment_list(struct AttachCtx *actx, FILE *fp, bool tag, stru | |
* @param e Email | ||
*/ | ||
void recvattach_edit_content_type(struct ConfigSubset *sub, struct AttachCtx *actx, | ||
struct Menu *menu, struct Email *e) | ||
struct Menu *menu, struct Email *e) | ||
{ | ||
struct AttachPtr *cur_att = current_attachment(actx, menu); | ||
if (!mutt_edit_content_type(e, cur_att->body, cur_att->fp)) | ||
|
@@ -1210,7 +1169,7 @@ void mutt_attach_init(struct AttachCtx *actx) | |
* @param init If true, create a new Attachments context | ||
*/ | ||
void mutt_update_recvattach_menu(struct ConfigSubset *sub, struct AttachCtx *actx, | ||
struct Menu *menu, bool init) | ||
struct Menu *menu, bool init) | ||
{ | ||
if (init) | ||
{ | ||
|
@@ -1229,4 +1188,3 @@ void mutt_update_recvattach_menu(struct ConfigSubset *sub, struct AttachCtx *act | |
menu_set_index(menu, menu->max - 1); | ||
menu_queue_redraw(menu, MENU_REDRAW_INDEX); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.