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 243 of file dlg_alias.c.
244{
246 const struct AliasViewArray *ava = &mdata->
ava;
248
250
252
254}
#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 486 of file dlg_attach.c.
487{
490
493
496}
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 1124 of file dlg_browser.c.
1125{
1127 struct BrowserEntryArray *entry = &priv->
state.
entry;
1129 if (S_ISDIR(ff->
mode) ||
1131 {
1133 return 0;
1134 }
1135
1138
1140}
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?
Private state data for the Browser.
struct BrowserState state
State containing list of files/dir/mailboxes.
struct BrowserEntryArray entry
Array of files / dirs / mailboxes.
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.