NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN
gui.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_ALIAS_GUI_H
24 #define MUTT_ALIAS_GUI_H
25 
26 #include <stdbool.h>
27 #include "mutt/lib.h"
28 
29 struct Alias;
30 struct MuttWindow;
31 
35 struct AliasView
36 {
37  int num;
38  int orig_seq;
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;
45 };
46 
47 ARRAY_HEAD(AliasViewArray, struct AliasView);
48 
53 {
54  char *str;
55  struct AliasViewArray ava;
56  struct ConfigSubset *sub;
57 };
58 
60 
61 int alias_array_alias_add (struct AliasViewArray *ava, struct Alias *alias);
62 int alias_array_alias_delete (struct AliasViewArray *ava, struct Alias *alias);
63 int alias_array_count_visible(struct AliasViewArray *ava);
64 
65 void alias_set_title(struct MuttWindow *sbar, char *menu_name, char *limit);
66 int alias_recalc(struct MuttWindow *win);
67 
68 #endif /* MUTT_ALIAS_GUI_H */
A shortcut for an email address or addresses.
Definition: alias.h:33
Data passed to a notification function.
Definition: observer.h:39
void alias_set_title(struct MuttWindow *sbar, char *menu_name, char *limit)
Create a title string for the Menu.
Definition: gui.c:67
AliasView array wrapper with Pattern information -.
Definition: gui.h:52
int alias_array_alias_delete(struct AliasViewArray *ava, struct Alias *alias)
Delete an Alias from the AliasViewArray.
Definition: array.c:69
bool is_matched
Search matches this Alias.
Definition: gui.h:40
GUI data wrapping an Alias.
Definition: gui.h:35
int alias_array_alias_add(struct AliasViewArray *ava, struct Alias *alias)
Add an Alias to the AliasViewArray.
Definition: array.c:45
char * str
String representing the limit being used.
Definition: gui.h:54
bool is_visible
Is visible?
Definition: gui.h:43
A set of inherited config items.
Definition: subset.h:46
struct Alias * alias
Alias.
Definition: gui.h:44
bool is_searched
Alias has been searched.
Definition: gui.h:39
int alias_array_count_visible(struct AliasViewArray *ava)
Count number of visible Aliases.
Definition: array.c:91
bool is_tagged
Is it tagged?
Definition: gui.h:41
struct ConfigSubset * sub
Config items.
Definition: gui.h:56
int orig_seq
Sequence in alias config file.
Definition: gui.h:38
ARRAY_HEAD(AliasViewArray, struct AliasView)
int alias_config_observer(struct NotifyCallback *nc)
Notification that a Config Variable has changed - Implements observer_t.
Definition: gui.c:43
Convenience wrapper for the library headers.
int num
Index number in list.
Definition: gui.h:37
bool is_deleted
Is it deleted?
Definition: gui.h:42
int alias_recalc(struct MuttWindow *win)
Recalculate the display of the Alias Window - Implements MuttWindow::recalc() -.
Definition: gui.c:87