GUI display a user-configurable status line. More...
#include "config.h"
#include <stdbool.h>
#include <stdio.h>
#include <sys/types.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "core/lib.h"
#include "status.h"
#include "expando/lib.h"
#include "index/lib.h"
#include "menu/lib.h"
#include "postpone/lib.h"
#include "globals.h"
#include "mutt_mailbox.h"
#include "mutt_thread.h"
#include "muttlib.h"
#include "mview.h"
Go to the source code of this file.
Data Structures | |
struct | MenuStatusLineData |
Data for creating a Menu line. More... | |
Functions | |
void | status_f (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
Status: pathname of the mailbox - Implements ExpandoRenderData::get_string() -. | |
static char * | get_sort_str (char *buf, size_t buflen, enum SortType method) |
Get the sort method as a string. | |
void | status_r (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
Status: Modified/read-only flag - Implements ExpandoRenderData::get_string() -. | |
void | status_D (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
Status: Description of the mailbox - Implements ExpandoRenderData::get_string() -. | |
long | status_M_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags) |
Status: Number of messages - Implements ExpandoRenderData::get_number() -. | |
long | status_m_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags) |
Status: Number of messages in the mailbox - Implements ExpandoRenderData::get_number() -. | |
long | status_n_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags) |
Status: Number of new messages - Implements ExpandoRenderData::get_number() -. | |
long | status_o_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags) |
Status: Number of old messages - Implements ExpandoRenderData::get_number() -. | |
long | status_d_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags) |
Status: Number of deleted messages - Implements ExpandoRenderData::get_number() -. | |
long | status_F_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags) |
Status: Number of flagged messages - Implements ExpandoRenderData::get_number() -. | |
long | status_t_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags) |
Status: Number of tagged messages - Implements ExpandoRenderData::get_number() -. | |
long | status_p_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags) |
Status: Number of postponed messages - Implements ExpandoRenderData::get_number() -. | |
long | status_b_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags) |
Status: Number of mailboxes with new mail - Implements ExpandoRenderData::get_number() -. | |
long | status_l_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags) |
Status: Size of the current mailbox - Implements ExpandoRenderData::get_number() -. | |
void | status_l (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
Status: Size of the current mailbox - Implements ExpandoRenderData::get_string() -. | |
void | status_T (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
Status: Current threading mode - Implements ExpandoRenderData::get_string() -. | |
void | status_s (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
Status: Sorting mode - Implements ExpandoRenderData::get_string() -. | |
void | status_S (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
Status: Aux sorting method - Implements ExpandoRenderData::get_string() -. | |
long | status_P_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags) |
Status: Percentage through index - Implements ExpandoRenderData::get_number() -. | |
void | status_P (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
Status: Percentage through index - Implements ExpandoRenderData::get_string() -. | |
void | status_h (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
Status: Local hostname - Implements ExpandoRenderData::get_string() -. | |
long | status_L_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags) |
Status: Size of the messages - Implements ExpandoRenderData::get_number() -. | |
void | status_L (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
Status: Size of the messages - Implements ExpandoRenderData::get_string() -. | |
long | status_R_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags) |
Status: Number of read messages - Implements ExpandoRenderData::get_number() -. | |
long | status_u_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags) |
Status: Number of unread messages - Implements ExpandoRenderData::get_number() -. | |
void | status_v (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
Status: Version string - Implements ExpandoRenderData::get_string() -. | |
void | status_V (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
Status: Active limit pattern - Implements ExpandoRenderData::get_string() -. | |
void | menu_status_line (struct Buffer *buf, struct IndexSharedData *shared, struct Menu *menu, int max_cols, const struct Expando *exp) |
Create the status line. | |
Variables | |
const struct ExpandoRenderData | StatusRenderData [] |
Callbacks for Status Expandos. | |
GUI display a user-configurable status line.
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 status.c.
|
static |
Get the sort method as a string.
ptr | Buffer pointer |
Definition at line 65 of file status.c.
void menu_status_line | ( | struct Buffer * | buf, |
struct IndexSharedData * | shared, | ||
struct Menu * | menu, | ||
int | max_cols, | ||
const struct Expando * | exp | ||
) |
Create the status line.
[out] | buf | Buffer in which to save string |
[in] | shared | Shared Index data |
[in] | menu | Current menu |
[in] | max_cols | Maximum number of columns to use (-1 means unlimited) |
[in] | exp | Expando |
Definition at line 496 of file status.c.
const struct ExpandoRenderData StatusRenderData |
Callbacks for Status Expandos.