NeoMutt  2023-11-03-85-g512e01
Teaching an old dog new tricks
No Matches
Go to the documentation of this file.
23#ifndef MUTT_ALIAS_GUI_H
24#define MUTT_ALIAS_GUI_H
26#include <stdbool.h>
27#include "mutt/lib.h"
29struct Alias;
30struct MuttWindow;
37 int num;
39 bool is_searched : 1;
40 bool is_matched : 1;
41 bool is_tagged : 1;
42 bool is_deleted : 1;
43 bool is_visible : 1;
44 struct Alias *alias;
46ARRAY_HEAD(AliasViewArray, struct AliasView);
53 struct AliasViewArray ava;
54 struct AliasList *al;
55 struct ConfigSubset *sub;
56 struct Menu *menu;
57 struct Buffer *query;
58 char *limit;
59 struct MuttWindow *sbar;
60 char *title;
66int alias_array_alias_add (struct AliasViewArray *ava, struct Alias *alias);
67int alias_array_alias_delete (struct AliasViewArray *ava, const struct Alias *alias);
68int alias_array_count_visible(struct AliasViewArray *ava);
70void alias_set_title(struct MuttWindow *sbar, char *menu_name, char *limit);
71int alias_recalc(struct MuttWindow *win);
73#endif /* MUTT_ALIAS_GUI_H */
#define ARRAY_HEAD(name, type)
Define a named struct for arrays of elements of a certain type.
Definition: array.h:46
int alias_config_observer(struct NotifyCallback *nc)
Notification that a Config Variable has changed - Implements observer_t -.
Definition: gui.c:43
int alias_recalc(struct MuttWindow *win)
Recalculate the display of the Alias Window - Implements MuttWindow::recalc() -.
Definition: gui.c:89
int alias_array_count_visible(struct AliasViewArray *ava)
Count number of visible Aliases.
Definition: array.c:95
int alias_array_alias_delete(struct AliasViewArray *ava, const struct Alias *alias)
Delete an Alias from the AliasViewArray.
Definition: array.c:73
void alias_set_title(struct MuttWindow *sbar, char *menu_name, char *limit)
Create a title string for the Menu.
Definition: gui.c:69
int alias_array_alias_add(struct AliasViewArray *ava, struct Alias *alias)
Add an Alias to the AliasViewArray.
Definition: array.c:47
Convenience wrapper for the library headers.
AliasView array wrapper with Pattern information -.
Definition: gui.h:52
char * limit
Limit being used.
Definition: gui.h:58
struct AliasViewArray ava
All Aliases/Queries.
Definition: gui.h:53
struct SearchState * search_state
State of the current search.
Definition: gui.h:61
struct MuttWindow * sbar
Status Bar.
Definition: gui.h:59
struct Menu * menu
Definition: gui.h:56
struct Buffer * query
Query string.
Definition: gui.h:57
char * title
Title for the status bar.
Definition: gui.h:60
struct AliasList * al
Alias data.
Definition: gui.h:54
struct ConfigSubset * sub
Config items.
Definition: gui.h:55
GUI data wrapping an Alias.
Definition: gui.h:36
bool is_visible
Is visible?
Definition: gui.h:43
struct Alias * alias
Definition: gui.h:44
bool is_matched
Search matches this Alias.
Definition: gui.h:40
bool is_deleted
Is it deleted?
Definition: gui.h:42
bool is_tagged
Is it tagged?
Definition: gui.h:41
bool is_searched
Alias has been searched.
Definition: gui.h:39
int num
Index number in list.
Definition: gui.h:37
int orig_seq
Sequence in alias config file.
Definition: gui.h:38
A shortcut for an email address or addresses.
Definition: alias.h:34
String manipulation buffer.
Definition: buffer.h:34
A set of inherited config items.
Definition: subset.h:47
Definition: lib.h:70
Data passed to a notification function.
Definition: observer.h:34
Holds state of a search.
Definition: search_state.h:35