tin  2.4.5
About: TIN is a threaded NNTP and spool based UseNet newsreader.
  Fossies Dox: tin-2.4.5.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

options_menu.c File Reference
#include "tin.h"
#include "tincfg.h"
#include "tcurses.h"
Include dependency graph for options_menu.c:

Go to the source code of this file.

Macros

#define option_lines_per_page   (cLINES - INDEX_TOP - 3)
 
#define UPDATE_INT_ATTRIBUTES(option)
 
#define CAO(A, O)   A ## O
 
#define SET_NUM_ATTRIBUTE(option)
 
#define SET_STRING_ATTRIBUTE(opt)
 
#define INITIALIZE_STRING_ATTRIBUTE(option)
 
#define INITIALIZE_NUM_ATTRIBUTE(option)
 

Functions

static enum option_enum get_first_opt (void)
 
static enum option_enum move_cursor (enum option_enum cur_option, t_bool down)
 
static enum option_enum next_option (enum option_enum option, t_bool incl_titles)
 
static enum option_enum opt_scroll_down (enum option_enum option)
 
static enum option_enum opt_scroll_up (enum option_enum option)
 
static enum option_enum prev_option (enum option_enum option, t_bool incl_titles)
 
static enum option_enum set_option_num (int num)
 
static int add_new_scope (void)
 
static int find_scope (const char *scope)
 
static int get_option_num (enum option_enum option)
 
static int move_scope (int curr_pos)
 
static t_bool check_state (enum option_enum option)
 
static t_bool delete_scope (int curr_pos)
 
static t_bool option_is_title (enum option_enum option)
 
static t_bool option_on_page (enum option_enum option)
 
static t_bool rename_scope (struct t_scope *scope)
 
static t_bool scope_is_empty (void)
 
static t_function option_left (void)
 
static t_function option_right (void)
 
static t_function scope_left (void)
 
static t_function scope_right (void)
 
static void build_scope_line (int i)
 
static void do_delete_scope (int curr_pos)
 
static void do_move_scope (int from, int to)
 
static void draw_scope_arrow (void)
 
static void free_scopes_and_attributes (void)
 
static void highlight_option (enum option_enum option)
 
static void initialize_attributes (void)
 
static void print_any_option (enum option_enum option)
 
static void redraw_screen (enum option_enum option)
 
static void repaint_option (enum option_enum option)
 
static void reset_state (enum option_enum option)
 
static void scope_page (enum context level)
 
static void set_first_option_on_screen (enum option_enum last_option)
 
static void set_last_opt (void)
 
static void set_last_option_on_screen (enum option_enum first_option)
 
static void show_config_page (void)
 
static void show_scope_page (void)
 
static void unhighlight_option (enum option_enum option)
 
int option_row (enum option_enum option)
 
t_bool option_is_visible (enum option_enum option)
 
char * fmt_option_prompt (char *dst, size_t len, t_bool editing, enum option_enum option)
 
void refresh_config_page (enum option_enum act_option)
 
void show_menu_help (const char *help_message)
 
void check_score_defaults (void)
 
void config_page (const char *grpname, enum context level)
 

Variables

static enum option_enum first_option_on_screen last_option_on_screen last_opt
 
static t_menu scopemenu = { 0, 0, 0, show_scope_page, draw_scope_arrow, build_scope_line }
 
static struct t_scopecurr_scope = NULL
 

Macro Definition Documentation

◆ CAO

#define CAO (   A,
 
)    A ## O

Definition at line 59 of file options_menu.c.

◆ INITIALIZE_NUM_ATTRIBUTE

#define INITIALIZE_NUM_ATTRIBUTE (   option)
Value:
do { \
if (curr_scope->state->option) \
CAO(tinrc.attrib_, option) = curr_scope->attribute->option; \
CAO(tinrc.attrib_, option) = default_scope->attribute->option; \
} while (0)
struct t_config tinrc
Definition: init.c:191
#define CAO(A, O)
Definition: options_menu.c:59
static struct t_scope * curr_scope
Definition: options_menu.c:126
struct t_attribute * attribute
Definition: tin.h:1763
struct t_attribute_state * state
Definition: tin.h:1764

Definition at line 3544 of file options_menu.c.

◆ INITIALIZE_STRING_ATTRIBUTE

#define INITIALIZE_STRING_ATTRIBUTE (   option)
Value:
do { \
if (curr_scope->state->option) \
snprintf(CAO(tinrc.attrib_, option), sizeof(CAO(tinrc.attrib_, option)), "%s", curr_scope->attribute->option); \
snprintf(CAO(tinrc.attrib_, option), sizeof(CAO(tinrc.attrib_, option)), "%s", BlankIfNull(default_scope->attribute->option)); \
} while (0)
#define snprintf
Definition: tin.h:2432
#define BlankIfNull(p)
Definition: tin.h:2217

Definition at line 3538 of file options_menu.c.

◆ option_lines_per_page

#define option_lines_per_page   (cLINES - INDEX_TOP - 3)

Definition at line 52 of file options_menu.c.

◆ SET_NUM_ATTRIBUTE

#define SET_NUM_ATTRIBUTE (   option)
Value:
do { \
curr_scope->attribute->option = CAO(tinrc.attrib_, option); \
curr_scope->state->option = TRUE; \
changed |= MISC_OPTS; \
} while (0)
#define TRUE
Definition: bool.h:74

Definition at line 60 of file options_menu.c.

◆ SET_STRING_ATTRIBUTE

#define SET_STRING_ATTRIBUTE (   opt)
Value:
do { \
if (!strlen(CAO(tinrc.attrib_, opt))) { \
reset_state(option); \
redraw_screen(option); \
} else { \
FreeIfNeeded(curr_scope->attribute->opt); \
curr_scope->state->opt = TRUE; \
curr_scope->attribute->opt = my_strdup(CAO(tinrc.attrib_, opt)); \
} \
changed |= MISC_OPTS; \
} while (0)
char * my_strdup(const char *str)
Definition: string.c:139

Definition at line 65 of file options_menu.c.

◆ UPDATE_INT_ATTRIBUTES

#define UPDATE_INT_ATTRIBUTES (   option)
Value:
do { \
scopes[0].attribute->option = tinrc.option; \
changed |= MISC_OPTS; \
} while (0)

Definition at line 54 of file options_menu.c.

Function Documentation

◆ add_new_scope()

static int add_new_scope ( void  )
static

Definition at line 2850 of file options_menu.c.

References _, add_scope(), buf, HIST_OTHER, LEN, prompt_default_string(), and txt_scope_enter.

Referenced by scope_page().

◆ build_scope_line()

static void build_scope_line ( int  i)
static

◆ check_score_defaults()

void check_score_defaults ( void  )

◆ check_state()

static t_bool check_state ( enum option_enum  option)
static

Definition at line 3035 of file options_menu.c.

References t_attribute_state::add_posted_to_filter, t_attribute_state::advertising, t_attribute_state::alternative_handling, t_attribute_state::ask_for_metamail, t_attribute_state::auto_cc_bcc, t_attribute_state::auto_list_thread, t_attribute_state::auto_save, t_attribute_state::auto_select, t_attribute_state::batch_save, curr_scope, t_attribute_state::date_format, t_attribute_state::delete_tmp_files, t_attribute_state::editor_format, FALSE, t_attribute_state::fcc, t_attribute_state::followup_to, t_attribute_state::from, t_attribute_state::group_catchup_on_exit, t_attribute_state::group_format, t_attribute_state::mail_8bit_header, t_attribute_state::mail_mime_encoding, t_attribute_state::maildir, t_attribute_state::mailing_list, t_attribute_state::mark_ignore_tags, t_attribute_state::mark_saved_read, t_attribute_state::mime_forward, t_attribute_state::mime_types_to_save, t_attribute_state::news_headers_to_display, t_attribute_state::news_headers_to_not_display, t_attribute_state::news_quote_format, t_attribute_state::organization, t_attribute_state::pos_first_unread, t_attribute_state::post_8bit_header, t_attribute_state::post_mime_encoding, t_attribute_state::post_process_type, t_attribute_state::post_process_view, t_attribute_state::print_header, t_attribute_state::process_only_unread, t_attribute_state::prompt_followupto, t_attribute_state::quick_kill_case, t_attribute_state::quick_kill_expire, t_attribute_state::quick_kill_header, t_attribute_state::quick_kill_scope, t_attribute_state::quick_select_case, t_attribute_state::quick_select_expire, t_attribute_state::quick_select_header, t_attribute_state::quick_select_scope, t_attribute_state::quote_chars, t_attribute_state::savedir, t_attribute_state::savefile, t_attribute_state::show_author, t_attribute_state::show_only_unread_arts, t_attribute_state::show_signatures, t_attribute_state::sigdashes, t_attribute_state::sigfile, t_attribute_state::signature_repost, t_attribute_state::sort_article_type, t_attribute_state::sort_threads_type, t_attribute_state::start_editor_offset, t_scope::state, t_attribute_state::tex2iso_conv, t_attribute_state::thread_articles, t_attribute_state::thread_catchup_on_exit, t_attribute_state::thread_format, t_attribute_state::thread_perc, t_attribute_state::trim_article_body, t_attribute_state::verbatim_handling, t_attribute_state::wrap_on_next_unread, t_attribute_state::x_body, t_attribute_state::x_comment_to, and t_attribute_state::x_headers.

Referenced by config_page(), fmt_option_prompt(), and scope_is_empty().

◆ config_page()

void config_page ( const char *  grpname,
enum context  level 
)

Definition at line 921 of file options_menu.c.

References _, add_scope(), arts, assign_attributes_to_groups(), ATTRIB_LEVEL, t_scope::attribute, t_group::attribute, bug_report(), build_news_headers_array(), center_line(), check_score_defaults(), check_state(), clear_note_area(), cLINES, compile_regex(), CONFIG_LEVEL, CONFIG_NO_SAVE, CONFIG_RESET_ATTRIB, CONFIG_SCOPE_MENU, CONFIG_SELECT, CONFIG_TOGGLE_ATTRIB, cPage, curr_group, curr_scope, cvers, t_config::date_format, DEFAULT_DATE_FORMAT, DEFAULT_EXTQUOTE_REGEX, DEFAULT_GROUP_FORMAT, DEFAULT_SELECT_FORMAT, DEFAULT_SLASHES_REGEX, DEFAULT_STARS_REGEX, DEFAULT_STRIP_RE_REGEX, DEFAULT_STRIP_WAS_REGEX, DEFAULT_STROKES_REGEX, DEFAULT_THREAD_FORMAT, DEFAULT_U8_STRIP_WAS_REGEX, DEFAULT_UNDERSCORES_REGEX, DEFAULT_VERBATIM_BEGIN_REGEX, DEFAULT_VERBATIM_END_REGEX, DIGIT_1, DIGIT_2, DIGIT_3, DIGIT_4, DIGIT_5, DIGIT_6, DIGIT_7, DIGIT_8, DIGIT_9, do_delete_scope(), t_config::draw_arrow, t_config::editor_format, regex_cache::extra, FALSE, filter_articles(), t_config::filter_days, filter_file, find_base(), find_scope(), for_each_art, forever, FreeIfNeeded, func, func_to_key(), get_first_opt(), t_scope::global, GLOBAL_BUGREPORT, GLOBAL_FIRST_PAGE, GLOBAL_HELP, GLOBAL_LAST_PAGE, GLOBAL_LINE_DOWN, GLOBAL_LINE_UP, GLOBAL_PAGE_DOWN, GLOBAL_PAGE_UP, GLOBAL_QUIT, GLOBAL_REDRAW_SCREEN, GLOBAL_SCROLL_DOWN, GLOBAL_SCROLL_UP, GLOBAL_SEARCH_REPEAT, GLOBAL_SEARCH_SUBJECT_BACKWARD, GLOBAL_SEARCH_SUBJECT_FORWARD, GLOBAL_SHELL_ESCAPE, GLOBAL_VERSION, t_config::group_format, handle_keypad(), highlight_option(), info_message(), initialize_attributes(), t_config::inverse_okay, IS_LOCAL_CHARSET, t_article::keep_in_base, last_opt, last_search, local_attributes_file, local_config_file, t_config::mail_8bit_header, t_config::mail_mime_encoding, make_threads(), MAXKEYLEN, MIME_ENCODING_7BIT, MIME_ENCODING_8BIT, MIME_ENCODING_QP, t_config::mm_charset, t_config::mm_local_charset, move_cursor(), my_retouch, next_option(), opt_scroll_down(), opt_scroll_up(), option_is_title(), option_left(), option_lines_per_page, option_menu_keys, option_on_page(), option_right(), option_table, PCRE_ANCHORED, PCRE_CASELESS, pgart, t_config::post_8bit_header, t_config::post_mime_encoding, prev_option(), print_any_option(), printascii(), prompt_num(), prompt_option_char(), prompt_option_list(), prompt_option_num(), prompt_option_on_off(), prompt_option_string(), openartinfo::raw, regex_cache::re, read_descriptions(), read_filter_file(), t_config::recent_time, redraw_screen(), repaint_option(), t_config::reread_active_file_secs, reset_state(), resize_article(), scope_is_empty(), scope_page(), scopes, t_config::scroll_lines, search_config(), t_config::select_format, set_first_option_on_screen(), set_last_opt(), set_last_option_on_screen(), set_noteslines(), SET_NUM_ATTRIBUTE, set_option_num(), SET_STRING_ATTRIBUTE, set_xclick_off(), shell_escape(), t_attribute::show_author, show_description, t_config::show_description, show_help_page(), show_menu_help(), t_attribute::show_only_unread_arts, sigfile, slashes_regex, t_config::slashes_regex, stars_regex, t_config::stars_regex, strcasecmp(), STRCPY, strip_re_regex, t_config::strip_re_regex, strip_was_regex, t_config::strip_was_regex, strokes_regex, t_config::strokes_regex, this_resp, t_attribute::thread_articles, t_config::thread_format, t_config::thread_perc, THREAD_PERC_DEFAULT, TIN_EDITOR_FMT_ON, tinrc, TRUE, txt_attrib_menu_com, txt_bad_command, txt_enter_option_num, txt_mime_7bit_charsets, txt_no_prev_search, txt_options_menu, txt_options_menu_com, txt_scope_operation_not_allowed, txt_select_config_file_option, underscores_regex, t_config::underscores_regex, unfilter_articles(), unhighlight_option(), UPDATE_INT_ATTRIBUTES, verbatim_begin_regex, t_config::verbatim_begin_regex, verbatim_end_regex, t_config::verbatim_end_regex, word_highlight, t_config::word_highlight, write_attributes_file(), and write_config_file().

Referenced by group_page(), post_loop(), repair_article(), scope_page(), selection_page(), show_page(), and thread_page().

◆ delete_scope()

static t_bool delete_scope ( int  curr_pos)
static

Definition at line 2867 of file options_menu.c.

References _, do_delete_scope(), FALSE, prompt_yn(), TRUE, and txt_scope_delete.

Referenced by scope_page().

◆ do_delete_scope()

static void do_delete_scope ( int  curr_pos)
static

Definition at line 2880 of file options_menu.c.

References do_move_scope(), free_scope(), and num_scope.

Referenced by config_page(), delete_scope(), and scope_page().

◆ do_move_scope()

static void do_move_scope ( int  from,
int  to 
)
static

Definition at line 2969 of file options_menu.c.

References scopes.

Referenced by do_delete_scope(), and move_scope().

◆ draw_scope_arrow()

static void draw_scope_arrow ( void  )
static

◆ find_scope()

static int find_scope ( const char *  scope)
static

Definition at line 2913 of file options_menu.c.

References t_scope::global, num_scope, t_scope::scope, scopes, and strcasecmp().

Referenced by config_page().

◆ fmt_option_prompt()

char* fmt_option_prompt ( char *  dst,
size_t  len,
t_bool  editing,
enum option_enum  option 
)

◆ free_scopes_and_attributes()

static void free_scopes_and_attributes ( void  )
static

◆ get_first_opt()

static enum option_enum get_first_opt ( void  )
static

Definition at line 888 of file options_menu.c.

Referenced by config_page().

◆ get_option_num()

static int get_option_num ( enum option_enum  option)
static

Definition at line 153 of file options_menu.c.

Referenced by fmt_option_prompt().

◆ highlight_option()

static void highlight_option ( enum option_enum  option)
static

◆ initialize_attributes()

static void initialize_attributes ( void  )
static

Definition at line 3552 of file options_menu.c.

References INITIALIZE_NUM_ATTRIBUTE, INITIALIZE_STRING_ATTRIBUTE, scopes, and sigfile.

Referenced by config_page().

◆ move_cursor()

static enum option_enum move_cursor ( enum option_enum  cur_option,
t_bool  down 
)
static

Definition at line 521 of file options_menu.c.

Referenced by config_page().

◆ move_scope()

static int move_scope ( int  curr_pos)
static

◆ next_option()

static enum option_enum next_option ( enum option_enum  option,
t_bool  incl_titles 
)
static

Definition at line 521 of file options_menu.c.

Referenced by config_page(), set_last_option_on_screen(), and set_option_num().

◆ opt_scroll_down()

static enum option_enum opt_scroll_down ( enum option_enum  option)
static

Definition at line 521 of file options_menu.c.

Referenced by config_page().

◆ opt_scroll_up()

static enum option_enum opt_scroll_up ( enum option_enum  option)
static

Definition at line 521 of file options_menu.c.

Referenced by config_page().

◆ option_is_title()

static t_bool option_is_title ( enum option_enum  option)
static

Definition at line 369 of file options_menu.c.

References option_table, and t_option::var_type.

Referenced by config_page(), fmt_option_prompt(), and scope_is_empty().

◆ option_is_visible()

t_bool option_is_visible ( enum option_enum  option)

◆ option_left()

static t_function option_left ( void  )
static

Definition at line 869 of file options_menu.c.

References GLOBAL_QUIT.

Referenced by config_page().

◆ option_on_page()

static t_bool option_on_page ( enum option_enum  option)
static

Definition at line 380 of file options_menu.c.

Referenced by config_page(), refresh_config_page(), and repaint_option().

◆ option_right()

static t_function option_right ( void  )
static

Definition at line 877 of file options_menu.c.

References CONFIG_SELECT.

Referenced by config_page().

◆ option_row()

◆ prev_option()

static enum option_enum prev_option ( enum option_enum  option,
t_bool  incl_titles 
)
static

Definition at line 521 of file options_menu.c.

Referenced by config_page(), and set_first_option_on_screen().

◆ print_any_option()

◆ redraw_screen()

static void redraw_screen ( enum option_enum  option)
static

Definition at line 803 of file options_menu.c.

References highlight_option(), and show_config_page().

Referenced by config_page(), and refresh_config_page().

◆ refresh_config_page()

void refresh_config_page ( enum option_enum  act_option)

◆ rename_scope()

static t_bool rename_scope ( struct t_scope scope)
static

◆ repaint_option()

static void repaint_option ( enum option_enum  option)
static

Definition at line 521 of file options_menu.c.

References option_on_page(), and print_any_option().

Referenced by config_page().

◆ reset_state()

static void reset_state ( enum option_enum  option)
static

Definition at line 3203 of file options_menu.c.

References t_attribute::add_posted_to_filter, t_attribute_state::add_posted_to_filter, t_attribute::advertising, t_attribute_state::advertising, t_attribute::alternative_handling, t_attribute_state::alternative_handling, t_attribute::ask_for_metamail, t_attribute_state::ask_for_metamail, t_config::attrib_add_posted_to_filter, t_config::attrib_advertising, t_config::attrib_alternative_handling, t_config::attrib_ask_for_metamail, t_config::attrib_auto_cc_bcc, t_config::attrib_auto_list_thread, t_config::attrib_auto_save, t_config::attrib_auto_select, t_config::attrib_batch_save, t_config::attrib_date_format, t_config::attrib_delete_tmp_files, t_config::attrib_editor_format, t_config::attrib_fcc, t_config::attrib_followup_to, t_config::attrib_from, t_config::attrib_group_catchup_on_exit, t_config::attrib_group_format, t_config::attrib_mail_8bit_header, t_config::attrib_mail_mime_encoding, t_config::attrib_maildir, t_config::attrib_mailing_list, t_config::attrib_mark_ignore_tags, t_config::attrib_mark_saved_read, t_config::attrib_mime_forward, t_config::attrib_mime_types_to_save, t_config::attrib_news_headers_to_display, t_config::attrib_news_headers_to_not_display, t_config::attrib_news_quote_format, t_config::attrib_organization, t_config::attrib_pos_first_unread, t_config::attrib_post_8bit_header, t_config::attrib_post_mime_encoding, t_config::attrib_post_process_type, t_config::attrib_post_process_view, t_config::attrib_print_header, t_config::attrib_process_only_unread, t_config::attrib_prompt_followupto, t_config::attrib_quick_kill_case, t_config::attrib_quick_kill_expire, t_config::attrib_quick_kill_header, t_config::attrib_quick_kill_scope, t_config::attrib_quick_select_case, t_config::attrib_quick_select_expire, t_config::attrib_quick_select_header, t_config::attrib_quick_select_scope, t_config::attrib_quote_chars, t_config::attrib_savedir, t_config::attrib_savefile, t_config::attrib_show_author, t_config::attrib_show_only_unread_arts, t_config::attrib_show_signatures, t_config::attrib_sigdashes, t_config::attrib_sigfile, t_config::attrib_signature_repost, t_config::attrib_sort_article_type, t_config::attrib_sort_threads_type, t_config::attrib_start_editor_offset, t_config::attrib_tex2iso_conv, t_config::attrib_thread_articles, t_config::attrib_thread_catchup_on_exit, t_config::attrib_thread_format, t_config::attrib_thread_perc, t_config::attrib_trim_article_body, t_config::attrib_verbatim_handling, t_config::attrib_wrap_on_next_unread, t_config::attrib_x_body, t_config::attrib_x_comment_to, t_config::attrib_x_headers, t_scope::attribute, t_attribute::auto_cc_bcc, t_attribute_state::auto_cc_bcc, t_attribute::auto_list_thread, t_attribute_state::auto_list_thread, t_attribute::auto_save, t_attribute_state::auto_save, t_attribute::auto_select, t_attribute_state::auto_select, t_attribute::batch_save, t_attribute_state::batch_save, BlankIfNull, build_news_headers_array(), curr_scope, t_attribute::date_format, t_attribute_state::date_format, t_attribute::delete_tmp_files, t_attribute_state::delete_tmp_files, t_attribute::editor_format, t_attribute_state::editor_format, FALSE, t_attribute::fcc, t_attribute_state::fcc, t_attribute::followup_to, t_attribute_state::followup_to, FreeAndNull, t_attribute::from, t_attribute_state::from, t_attribute::group_catchup_on_exit, t_attribute_state::group_catchup_on_exit, t_attribute::group_format, t_attribute_state::group_format, t_attribute::mail_8bit_header, t_attribute_state::mail_8bit_header, t_attribute::mail_mime_encoding, t_attribute_state::mail_mime_encoding, t_attribute::maildir, t_attribute_state::maildir, t_attribute::mailing_list, t_attribute_state::mailing_list, t_attribute::mark_ignore_tags, t_attribute_state::mark_ignore_tags, t_attribute::mark_saved_read, t_attribute_state::mark_saved_read, t_attribute::mime_forward, t_attribute_state::mime_forward, t_attribute::mime_types_to_save, t_attribute_state::mime_types_to_save, t_attribute::news_headers_to_display, t_attribute_state::news_headers_to_display, t_attribute::news_headers_to_not_display, t_attribute_state::news_headers_to_not_display, t_attribute::news_quote_format, t_attribute_state::news_quote_format, t_attribute::organization, t_attribute_state::organization, t_attribute::pos_first_unread, t_attribute_state::pos_first_unread, t_attribute::post_8bit_header, t_attribute_state::post_8bit_header, t_attribute::post_mime_encoding, t_attribute_state::post_mime_encoding, t_attribute::post_process_type, t_attribute_state::post_process_type, t_attribute::post_process_view, t_attribute_state::post_process_view, t_attribute::print_header, t_attribute_state::print_header, t_attribute::process_only_unread, t_attribute_state::process_only_unread, t_attribute::prompt_followupto, t_attribute_state::prompt_followupto, t_attribute::quick_kill_case, t_attribute_state::quick_kill_case, t_attribute::quick_kill_expire, t_attribute_state::quick_kill_expire, t_attribute::quick_kill_header, t_attribute_state::quick_kill_header, t_attribute::quick_kill_scope, t_attribute_state::quick_kill_scope, t_attribute::quick_select_case, t_attribute_state::quick_select_case, t_attribute::quick_select_expire, t_attribute_state::quick_select_expire, t_attribute::quick_select_header, t_attribute_state::quick_select_header, t_attribute::quick_select_scope, t_attribute_state::quick_select_scope, t_attribute::quote_chars, t_attribute_state::quote_chars, t_attribute::savedir, t_attribute_state::savedir, t_attribute::savefile, t_attribute_state::savefile, scopes, t_attribute::show_author, t_attribute_state::show_author, t_attribute::show_only_unread_arts, t_attribute_state::show_only_unread_arts, t_attribute::show_signatures, t_attribute_state::show_signatures, t_attribute::sigdashes, t_attribute_state::sigdashes, t_attribute::sigfile, t_attribute_state::sigfile, t_attribute::signature_repost, t_attribute_state::signature_repost, snprintf, t_attribute::sort_article_type, t_attribute_state::sort_article_type, t_attribute::sort_threads_type, t_attribute_state::sort_threads_type, t_attribute::start_editor_offset, t_attribute_state::start_editor_offset, t_scope::state, t_attribute::tex2iso_conv, t_attribute_state::tex2iso_conv, t_attribute::thread_articles, t_attribute_state::thread_articles, t_attribute::thread_catchup_on_exit, t_attribute_state::thread_catchup_on_exit, t_attribute::thread_format, t_attribute_state::thread_format, t_attribute::thread_perc, t_attribute_state::thread_perc, tinrc, t_attribute::trim_article_body, t_attribute_state::trim_article_body, TRUE, t_attribute::verbatim_handling, t_attribute_state::verbatim_handling, t_attribute::wrap_on_next_unread, t_attribute_state::wrap_on_next_unread, t_attribute::x_body, t_attribute_state::x_body, t_attribute::x_comment_to, t_attribute_state::x_comment_to, t_attribute::x_headers, and t_attribute_state::x_headers.

Referenced by config_page().

◆ scope_is_empty()

static t_bool scope_is_empty ( void  )
static

Definition at line 3017 of file options_menu.c.

References check_state(), FALSE, last_opt, option_is_title(), option_is_visible(), and TRUE.

Referenced by config_page(), and scope_page().

◆ scope_left()

static t_function scope_left ( void  )
static

Definition at line 2587 of file options_menu.c.

References GLOBAL_QUIT.

Referenced by scope_page().

◆ scope_page()

◆ scope_right()

static t_function scope_right ( void  )
static

Definition at line 2595 of file options_menu.c.

References SCOPE_SELECT.

Referenced by scope_page().

◆ set_first_option_on_screen()

static void set_first_option_on_screen ( enum option_enum  last_option)
static

Definition at line 714 of file options_menu.c.

References prev_option(), set_last_option_on_screen(), and TRUE.

Referenced by config_page(), and refresh_config_page().

◆ set_last_opt()

static void set_last_opt ( void  )
static

Definition at line 888 of file options_menu.c.

References last_opt, and option_is_visible().

Referenced by config_page().

◆ set_last_option_on_screen()

static void set_last_option_on_screen ( enum option_enum  first_option)
static

◆ set_option_num()

static enum option_enum set_option_num ( int  num)
static

Definition at line 153 of file options_menu.c.

References FALSE, last_opt, and next_option().

Referenced by config_page().

◆ show_config_page()

◆ show_menu_help()

void show_menu_help ( const char *  help_message)

◆ show_scope_page()

◆ unhighlight_option()

static void unhighlight_option ( enum option_enum  option)
static

Definition at line 761 of file options_menu.c.

References clear_message(), t_menu::curr, currmenu, erase_arrow(), INDEX_TOP, and option_row().

Referenced by config_page().

Variable Documentation

◆ curr_scope

◆ last_opt

enum option_enum first_option_on_screen last_option_on_screen last_opt
static

◆ scopemenu

t_menu scopemenu = { 0, 0, 0, show_scope_page, draw_scope_arrow, build_scope_line }
static

Definition at line 125 of file options_menu.c.

Referenced by draw_scope_arrow(), scope_page(), and show_scope_page().