GUI display the mailboxes in a side panel. More...
#include <stdbool.h>#include <stdint.h>#include "mutt/lib.h"#include "email/lib.h"#include "core/lib.h"
Include dependency graph for private.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | SbEntry |
| Info about folders in the sidebar. More... | |
| struct | SidebarWindowData |
| Sidebar private Window data -. More... | |
Enumerations | |
| enum | ExpandoDataSidebar { ED_SID_DELETED_COUNT = 1 , ED_SID_DESCRIPTION , ED_SID_FLAGGED , ED_SID_FLAGGED_COUNT , ED_SID_LIMITED_COUNT , ED_SID_MESSAGE_COUNT , ED_SID_NAME , ED_SID_NEW_MAIL , ED_SID_NOTIFY , ED_SID_OLD_COUNT , ED_SID_POLL , ED_SID_READ_COUNT , ED_SID_TAGGED_COUNT , ED_SID_UNREAD_COUNT , ED_SID_UNSEEN_COUNT } |
| Expando UIDs for the Sidebar. More... | |
| enum | DivType { SB_DIV_USER , SB_DIV_ASCII } |
| Source of the sidebar divider character. More... | |
Functions | |
| ARRAY_HEAD (SbEntryArray, struct SbEntry *) | |
| void | sb_add_mailbox (struct SidebarWindowData *wdata, struct Mailbox *m) |
| Add a Mailbox to the Sidebar. | |
| void | sb_remove_mailbox (struct SidebarWindowData *wdata, const struct Mailbox *m) |
| Remove a Mailbox from the Sidebar. | |
| void | sb_set_current_mailbox (struct SidebarWindowData *wdata, struct Mailbox *m) |
| Set the current Mailbox. | |
| struct Mailbox * | sb_get_highlight (struct MuttWindow *win) |
| Get the Mailbox that's highlighted in the sidebar. | |
| enum CommandResult | sb_parse_sidebar_unpin (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
| Parse the 'sidebar_unpin' command - Implements Command::parse() -. | |
| enum CommandResult | sb_parse_sidebar_pin (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
| Parse the 'sidebar_pin' command - Implements Command::parse() -. | |
| bool | sb_next (struct SidebarWindowData *wdata) |
| Find the next unhidden Mailbox. | |
| bool | sb_prev (struct SidebarWindowData *wdata) |
| Find the previous unhidden Mailbox. | |
| int | sb_insertion_window_observer (struct NotifyCallback *nc) |
| Notification that a Window has changed - Implements observer_t -. | |
| void | sb_win_add_observers (struct MuttWindow *win) |
| Add Observers to the Sidebar Window. | |
| void | sb_sort_entries (struct SidebarWindowData *wdata, enum EmailSortType sort) |
| Sort the Sidebar entries. | |
| void | sb_wdata_free (struct MuttWindow *win, void **ptr) |
| Free Sidebar Window data - Implements MuttWindow::wdata_free() -. | |
| struct SidebarWindowData * | sb_wdata_get (struct MuttWindow *win) |
| Get the Sidebar data for this window. | |
| struct SidebarWindowData * | sb_wdata_new (struct MuttWindow *win, struct IndexSharedData *shared) |
| Create new Window data for the Sidebar. | |
| int | sb_recalc (struct MuttWindow *win) |
| Recalculate the Sidebar display - Implements MuttWindow::recalc() -. | |
| int | sb_repaint (struct MuttWindow *win) |
| Repaint the Sidebar display - Implements MuttWindow::repaint() -. | |
Variables | |
| struct ListHead | SidebarPinned |
| List of mailboxes to always display in the sidebar. | |
GUI display the mailboxes in a side panel.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file private.h.
| enum ExpandoDataSidebar |
Expando UIDs for the Sidebar.
Definition at line 56 of file private.h.
| enum DivType |
Source of the sidebar divider character.
| Enumerator | |
|---|---|
| SB_DIV_USER | User configured using $sidebar_divider_char. |
| SB_DIV_ASCII | An ASCII vertical bar (pipe) |
| ARRAY_HEAD | ( | SbEntryArray | , |
| struct SbEntry * | ) |
| void sb_add_mailbox | ( | struct SidebarWindowData * | wdata, |
| struct Mailbox * | m ) |
Add a Mailbox to the Sidebar.
| wdata | Sidebar data |
| m | Mailbox to add |
The Sidebar will be re-sorted, and the indices updated, when sb_recalc() is called.
Definition at line 91 of file sidebar.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void sb_remove_mailbox | ( | struct SidebarWindowData * | wdata, |
| const struct Mailbox * | m ) |
Remove a Mailbox from the Sidebar.
| wdata | Sidebar data |
| m | Mailbox to remove |
Definition at line 128 of file sidebar.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void sb_set_current_mailbox | ( | struct SidebarWindowData * | wdata, |
| struct Mailbox * | m ) |
Set the current Mailbox.
| wdata | Sidebar data |
| m | Mailbox |
Definition at line 181 of file sidebar.c.
Here is the call graph for this function:
Here is the caller graph for this function:| struct Mailbox * sb_get_highlight | ( | struct MuttWindow * | win | ) |
Get the Mailbox that's highlighted in the sidebar.
| win | Sidebar Window |
| ptr | Mailbox |
Definition at line 66 of file sidebar.c.
Here is the call graph for this function:
Here is the caller graph for this function:| bool sb_next | ( | struct SidebarWindowData * | wdata | ) |
Find the next unhidden Mailbox.
| wdata | Sidebar data |
| true | Mailbox found |
Definition at line 47 of file functions.c.
Here is the caller graph for this function:| bool sb_prev | ( | struct SidebarWindowData * | wdata | ) |
Find the previous unhidden Mailbox.
| wdata | Sidebar data |
| true | Mailbox found |
Definition at line 86 of file functions.c.
Here is the caller graph for this function:| void sb_win_add_observers | ( | struct MuttWindow * | win | ) |
Add Observers to the Sidebar Window.
| win | Sidebar Window |
Definition at line 434 of file observer.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void sb_sort_entries | ( | struct SidebarWindowData * | wdata, |
| enum EmailSortType | sort ) |
Sort the Sidebar entries.
| wdata | Sidebar data |
| sort | Sort order, e.g. SB_SORT_PATH |
Sort the wdata->entries array according to the current sort config option $sidebar_sort. This calls qsort to do the work which calls our callback function "cb_qsort_sbe".
Once sorted, the prev/next links will be reconstructed.
Definition at line 161 of file sort.c.
Here is the call graph for this function:
Here is the caller graph for this function:| struct SidebarWindowData * sb_wdata_get | ( | struct MuttWindow * | win | ) |
| struct SidebarWindowData * sb_wdata_new | ( | struct MuttWindow * | win, |
| struct IndexSharedData * | shared ) |