NeoMutt  2024-04-25-97-g7d2481
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
gui.h
Go to the documentation of this file.
1
25#ifndef MUTT_ALIAS_GUI_H
26#define MUTT_ALIAS_GUI_H
27
28#include <stdbool.h>
29#include "mutt/lib.h"
30
31struct Alias;
32struct MuttWindow;
33
38{
39 int num;
41 bool is_searched : 1;
42 bool is_matched : 1;
43 bool is_tagged : 1;
44 bool is_deleted : 1;
45 bool is_visible : 1;
46 struct Alias *alias;
47};
48ARRAY_HEAD(AliasViewArray, struct AliasView);
49
54{
55 struct AliasViewArray ava;
56 struct AliasList *al;
57 struct ConfigSubset *sub;
58 struct Menu *menu;
59 struct Buffer *query;
60 char *limit;
61 struct MuttWindow *sbar;
62 char *title;
64};
65
72{
80};
81
83
84int alias_array_alias_add (struct AliasViewArray *ava, struct Alias *alias);
85int alias_array_alias_delete (struct AliasViewArray *ava, const struct Alias *alias);
86int alias_array_count_visible(struct AliasViewArray *ava);
87
88void alias_set_title(struct MuttWindow *sbar, char *menu_name, char *limit);
89int alias_recalc(struct MuttWindow *win);
90
91#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:47
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
ExpandoDataAlias
Expando UIDs for Aliases.
Definition: gui.h:72
@ ED_ALI_FLAGS
Alias.flags.
Definition: gui.h:75
@ ED_ALI_NUMBER
AliasView.num.
Definition: gui.h:77
@ ED_ALI_NAME
Alias.name.
Definition: gui.h:76
@ ED_ALI_ADDRESS
Alias.addr.
Definition: gui.h:73
@ ED_ALI_COMMENT
Alias.comment.
Definition: gui.h:74
@ ED_ALI_TAGGED
AliasView.tagged.
Definition: gui.h:78
@ ED_ALI_TAGS
Alias.tags.
Definition: gui.h:79
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:54
char * limit
Limit being used.
Definition: gui.h:60
struct AliasViewArray ava
All Aliases/Queries.
Definition: gui.h:55
struct SearchState * search_state
State of the current search.
Definition: gui.h:63
struct MuttWindow * sbar
Status Bar.
Definition: gui.h:61
struct Menu * menu
Menu.
Definition: gui.h:58
struct Buffer * query
Query string.
Definition: gui.h:59
char * title
Title for the status bar.
Definition: gui.h:62
struct AliasList * al
Alias data.
Definition: gui.h:56
struct ConfigSubset * sub
Config items.
Definition: gui.h:57
GUI data wrapping an Alias.
Definition: gui.h:38
bool is_visible
Is visible?
Definition: gui.h:45
struct Alias * alias
Alias.
Definition: gui.h:46
bool is_matched
Search matches this Alias.
Definition: gui.h:42
bool is_deleted
Is it deleted?
Definition: gui.h:44
bool is_tagged
Is it tagged?
Definition: gui.h:43
bool is_searched
Alias has been searched.
Definition: gui.h:41
int num
Index number in list.
Definition: gui.h:39
int orig_seq
Sequence in alias config file.
Definition: gui.h:40
A shortcut for an email address or addresses.
Definition: alias.h:35
String manipulation buffer.
Definition: buffer.h:36
A set of inherited config items.
Definition: subset.h:47
Definition: lib.h:79
Data passed to a notification function.
Definition: observer.h:34
Holds state of a search.
Definition: search_state.h:36