Tag some menu items.
More...
|
static int | alias_tag (struct Menu *menu, int sel, int act) |
| Tag some aliases - Implements Menu::tag() -.
|
|
static int | query_tag (struct Menu *menu, int sel, int act) |
| Tag an entry in the Query Menu - Implements Menu::tag() -.
|
|
static int | attach_tag (struct Menu *menu, int sel, int act) |
| Tag an attachment - Implements Menu::tag() -.
|
|
static int | file_tag (struct Menu *menu, int sel, int act) |
| Tag an entry in the menu - Implements Menu::tag() -.
|
|
static int | compose_attach_tag (struct Menu *menu, int sel, int act) |
| Tag an attachment - Implements Menu::tag() -.
|
|
Tag some menu items.
- Parameters
-
menu | Menu to tag |
sel | Current selection |
act | Action: 0 untag, 1 tag, -1 toggle |
- Return values
-
num | Net change in number of tagged attachments |
◆ alias_tag()
static int alias_tag |
( |
struct Menu * |
menu, |
|
|
int |
sel, |
|
|
int |
act |
|
) |
| |
|
static |
Tag some aliases - Implements Menu::tag() -.
Definition at line 242 of file dlg_alias.c.
243{
245 const struct AliasViewArray *ava = &mdata->
ava;
247
249
251
253}
#define ARRAY_GET(head, idx)
Return the element at index.
GUI data wrapping an Alias.
bool is_tagged
Is it tagged?
◆ query_tag()
static int query_tag |
( |
struct Menu * |
menu, |
|
|
int |
sel, |
|
|
int |
act |
|
) |
| |
|
static |
◆ attach_tag()
static int attach_tag |
( |
struct Menu * |
menu, |
|
|
int |
sel, |
|
|
int |
act |
|
) |
| |
|
static |
Tag an attachment - Implements Menu::tag() -.
Definition at line 485 of file dlg_attach.c.
486{
489
492
495}
struct AttachPtr ** idx
Array of attachments.
short * v2r
Mapping from virtual to real attachment.
Private state data for Attachments.
struct Menu * menu
Current Menu.
struct AttachCtx * actx
List of all Attachments.
struct Body * body
Attachment.
bool tagged
This attachment is tagged.
◆ file_tag()
static int file_tag |
( |
struct Menu * |
menu, |
|
|
int |
sel, |
|
|
int |
act |
|
) |
| |
|
static |
Tag an entry in the menu - Implements Menu::tag() -.
Definition at line 1133 of file dlg_browser.c.
1134{
1135 struct BrowserEntryArray *entry = menu->
mdata;
1137 if (S_ISDIR(ff->
mode) ||
1139 {
1141 return 0;
1142 }
1143
1146
1148}
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
struct Buffer LastDir
Browser: previous selected directory.
bool link_is_dir(const char *folder, const char *path)
Does this symlink point to a directory?
Browser entry representing a folder/dir.
char * name
Name of file/dir/mailbox.
bool tagged
Folder is tagged.
mode_t mode
File permissions.
◆ compose_attach_tag()
static int compose_attach_tag |
( |
struct Menu * |
menu, |
|
|
int |
sel, |
|
|
int |
act |
|
) |
| |
|
static |
Tag an attachment - Implements Menu::tag() -.
Definition at line 201 of file attach.c.
202{
207
210}
Data to fill the Compose Attach Window.
struct Menu * menu
Menu displaying the attachments.
struct AttachCtx * actx
Set of attachments.