C-Menu 0.2.9
A User Interface Toolkit
Loading...
Searching...
No Matches
Init Struct Reference

Gathers runtime information for C-Menu Menu, Form, Pick, and View components, used for passing common data and state during initialization and processing of these componentsi. More...

#include <common.h>

Collaboration diagram for Init:
[legend]

Data Fields

char about_fn [MAXLEN]
int argc
char ** argv
int begx
int begy
char brackets [3]
char chyron_s [MAXLEN]
char cmd [MAXLEN]
char cmd_all [MAXLEN]
int cols
char editor [MAXLEN]
bool f_at_end_remove
bool f_cmd
bool f_cmd_all
bool f_erase_remainder
bool f_help_spec
bool f_ignore_case
bool f_in_spec
bool f_ln
bool f_mapp_data
bool f_mapp_desc
bool f_mapp_help
bool f_mapp_home
bool f_mapp_msrc
bool f_mapp_spec
bool f_mapp_user
bool f_multiple_cmd_args
bool f_out_spec
bool f_provider_cmd
bool f_read_theme
bool f_receiver_cmd
bool f_squeeze
bool f_strip_ansi
bool f_title
char fill_char [4]
Formform
int form_cnt
int h_shift
char help_spec [MAXLEN]
char in_spec [MAXLEN]
int lines
char mapp_data [MAXLEN]
char mapp_help [MAXLEN]
char mapp_home [MAXLEN]
char mapp_msrc [MAXLEN]
char mapp_spec [MAXLEN]
char mapp_theme [MAXLEN]
char mapp_user [MAXLEN]
Menumenu
int menu_cnt
char menuapp [MAXLEN]
char minitrc [MAXLEN]
int optind
char out_spec [MAXLEN]
bool p_view_files
char parent_cmd [MAXLEN]
Pickpick
int pick_cnt
char prompt_str [MAXLEN]
int prompt_type
char provider_cmd [MAXLEN]
char receiver_cmd [MAXLEN]
int select_max
SIOsio
int tab_stop
char title [MAXLEN]
Viewview
int view_cnt

Detailed Description

Gathers runtime information for C-Menu Menu, Form, Pick, and View components, used for passing common data and state during initialization and processing of these componentsi.

Definition at line 112 of file common.h.

Field Documentation

◆ about_fn

char Init::about_fn[MAXLEN]

about information file, e.g. cmenu/.about

Definition at line 174 of file common.h.

◆ argc

int Init::argc

command line arguments count

Definition at line 130 of file common.h.

Referenced by destroy_init(), main(), mapp_initialization(), new_init(), new_pick_view(), new_view(), parse_opt_args(), popup_form(), popup_menu(), and popup_pick().

◆ argv

char** Init::argv

command line arguments vector

Definition at line 131 of file common.h.

Referenced by destroy_init(), main(), new_init(), new_pick_view(), new_view(), parse_opt_args(), popup_form(), popup_menu(), and popup_pick().

◆ begx

◆ begy

◆ brackets

char Init::brackets[3]

Form - left and right enclosing characters

Definition at line 144 of file common.h.

Referenced by mapp_initialization(), new_form(), process_config_file(), and write_config().

◆ chyron_s

char Init::chyron_s[MAXLEN]

chyron string

Definition at line 128 of file common.h.

◆ cmd

char Init::cmd[MAXLEN]

command to execute in foreground, e.g. an editor

Definition at line 122 of file common.h.

Referenced by init_form_files(), init_pick_files(), process_config_file(), write_config(), and zero_opt_args().

◆ cmd_all

char Init::cmd_all[MAXLEN]

View - command to execute at start of program

Definition at line 123 of file common.h.

Referenced by init_view_files(), process_config_file(), write_config(), and zero_opt_args().

◆ cols

◆ editor

char Init::editor[MAXLEN]

default editor

Definition at line 171 of file common.h.

Referenced by mapp_initialization(), process_config_file(), view_cmd_processor(), and write_config().

◆ f_at_end_remove

bool Init::f_at_end_remove

obsolete, unneeded

Definition at line 135 of file common.h.

Referenced by init_view_files(), new_pick_view(), and process_config_file().

◆ f_cmd

bool Init::f_cmd

flag - cmd verified

Definition at line 163 of file common.h.

◆ f_cmd_all

bool Init::f_cmd_all

flag - cmd_all verified

Definition at line 164 of file common.h.

◆ f_erase_remainder

bool Init::f_erase_remainder

Form - erase remainder of field on enter

Definition at line 141 of file common.h.

Referenced by init_form_files(), mapp_initialization(), process_config_file(), and write_config().

◆ f_help_spec

bool Init::f_help_spec

flag - help_spec verified

Definition at line 166 of file common.h.

Referenced by zero_opt_args().

◆ f_ignore_case

bool Init::f_ignore_case

View - ignore case in search

Definition at line 133 of file common.h.

Referenced by init_view_files(), new_pick_view(), process_config_file(), and write_config().

◆ f_in_spec

bool Init::f_in_spec

in_spec verified

Definition at line 169 of file common.h.

Referenced by zero_opt_args().

◆ f_ln

bool Init::f_ln

View - show line numbers

Definition at line 143 of file common.h.

Referenced by init_view_files(), new_pick_view(), process_config_file(), and write_config().

◆ f_mapp_data

bool Init::f_mapp_data

flag - mapp_data verified

Definition at line 154 of file common.h.

◆ f_mapp_desc

bool Init::f_mapp_desc

flag - mapp_desc verified

Definition at line 160 of file common.h.

Referenced by zero_opt_args().

◆ f_mapp_help

bool Init::f_mapp_help

flag - mapp_help verified

Definition at line 156 of file common.h.

◆ f_mapp_home

bool Init::f_mapp_home

flag - mapp_home verified

Definition at line 153 of file common.h.

◆ f_mapp_msrc

bool Init::f_mapp_msrc

flag - mapp_msrc verified

Definition at line 157 of file common.h.

◆ f_mapp_spec

bool Init::f_mapp_spec

flag - mapp_spec verified

Definition at line 155 of file common.h.

Referenced by init_menu_files(), and zero_opt_args().

◆ f_mapp_user

bool Init::f_mapp_user

flag - mapp_user verified

Definition at line 158 of file common.h.

◆ f_multiple_cmd_args

bool Init::f_multiple_cmd_args

View - put multiple arguments in a single string

Definition at line 139 of file common.h.

Referenced by init_form_files(), init_pick_files(), process_config_file(), and write_config().

◆ f_out_spec

bool Init::f_out_spec

out_spec verified

Definition at line 170 of file common.h.

Referenced by zero_opt_args().

◆ f_provider_cmd

bool Init::f_provider_cmd

flag - provider_cmd verified

Definition at line 161 of file common.h.

Referenced by zero_opt_args().

◆ f_read_theme

bool Init::f_read_theme

Pick - read and process theme

Definition at line 142 of file common.h.

Referenced by init_pick_files(), process_config_file(), and write_config().

◆ f_receiver_cmd

bool Init::f_receiver_cmd

flag - receiver_cmd verified

Definition at line 162 of file common.h.

Referenced by zero_opt_args().

◆ f_squeeze

bool Init::f_squeeze

View - print one line for each group of blank lines

Definition at line 137 of file common.h.

Referenced by init_view_files(), new_pick_view(), process_config_file(), and write_config().

◆ f_strip_ansi

bool Init::f_strip_ansi

strip ansi escape sequences when writing buffer

Definition at line 136 of file common.h.

Referenced by process_config_file(), and write_config().

◆ f_title

bool Init::f_title

flag - title verified

Definition at line 165 of file common.h.

Referenced by zero_opt_args().

◆ fill_char

char Init::fill_char[4]

Form - fill character for fields

Definition at line 145 of file common.h.

Referenced by mapp_initialization(), new_form(), process_config_file(), and write_config().

◆ form

Form* Init::form

◆ form_cnt

int Init::form_cnt

number of form data structures allocated

Definition at line 185 of file common.h.

Referenced by destroy_form(), and new_form().

◆ h_shift

int Init::h_shift

View - horizontal scroll shift width

Definition at line 181 of file common.h.

Referenced by init_view_files(), main(), new_pick_view(), process_config_file(), write_config(), and zero_opt_args().

◆ help_spec

char Init::help_spec[MAXLEN]

help file

Definition at line 176 of file common.h.

Referenced by init_form_files(), init_pick_files(), write_config(), and zero_opt_args().

◆ in_spec

char Init::in_spec[MAXLEN]

input file spec

Definition at line 167 of file common.h.

Referenced by init_form_files(), init_pick_files(), write_config(), and zero_opt_args().

◆ lines

◆ mapp_data

char Init::mapp_data[MAXLEN]

data directory

Definition at line 147 of file common.h.

Referenced by init_form_files(), init_pick_files(), mapp_initialization(), process_config_file(), and write_config().

◆ mapp_help

◆ mapp_home

char Init::mapp_home[MAXLEN]

◆ mapp_msrc

char Init::mapp_msrc[MAXLEN]

source directory

Definition at line 149 of file common.h.

Referenced by init_form_files(), init_menu_files(), mapp_initialization(), process_config_file(), and write_config().

◆ mapp_spec

char Init::mapp_spec[MAXLEN]

description file

Definition at line 175 of file common.h.

Referenced by init_form_files(), mapp_initialization(), process_config_file(), write_config(), and zero_opt_args().

◆ mapp_theme

char Init::mapp_theme[MAXLEN]

default theme file

Definition at line 151 of file common.h.

Referenced by mapp_initialization(), process_config_file(), process_config_files(), read_theme(), and write_config().

◆ mapp_user

char Init::mapp_user[MAXLEN]

user directory

Definition at line 150 of file common.h.

Referenced by mapp_initialization(), process_config_file(), and write_config().

◆ menu

Menu* Init::menu

menu data structure

Definition at line 182 of file common.h.

Referenced by destroy_init(), destroy_menu(), menu_cmd_processor(), menu_engine(), new_menu(), parse_menu_description(), and popup_menu().

◆ menu_cnt

int Init::menu_cnt

number of menu data structures allocated

Definition at line 183 of file common.h.

Referenced by destroy_menu(), and new_menu().

◆ menuapp

char Init::menuapp[MAXLEN]

main configuration file, e.g. cmenu/.minitrc

Definition at line 172 of file common.h.

◆ minitrc

char Init::minitrc[MAXLEN]

main configuration file, e.g. cmenu/.minitrc

Definition at line 173 of file common.h.

Referenced by mapp_initialization(), process_config_file(), and process_config_files().

◆ optind

int Init::optind

getopt pointer to non-option arguments in argv

Definition at line 132 of file common.h.

◆ out_spec

char Init::out_spec[MAXLEN]

output file spec

Definition at line 168 of file common.h.

Referenced by init_form_files(), init_pick_files(), write_config(), and zero_opt_args().

◆ p_view_files

bool Init::p_view_files

Pick - View Pick Files

Definition at line 134 of file common.h.

Referenced by init_pick_files(), process_config_file(), write_config(), and zero_opt_args().

◆ parent_cmd

char Init::parent_cmd[MAXLEN]

command to be executed by parent

Definition at line 124 of file common.h.

Referenced by process_config_file(), write_config(), and zero_opt_args().

◆ pick

◆ pick_cnt

int Init::pick_cnt

number of pick data structures allocated

Definition at line 187 of file common.h.

Referenced by destroy_pick(), and new_pick().

◆ prompt_str

char Init::prompt_str[MAXLEN]

prompt string for chyron

Definition at line 125 of file common.h.

◆ prompt_type

int Init::prompt_type

View - prompt type for chyron, e.g. 0=short, 1=long, 2=none

Definition at line 126 of file common.h.

◆ provider_cmd

char Init::provider_cmd[MAXLEN]

command provides input

Definition at line 120 of file common.h.

Referenced by init_form_files(), init_pick_files(), init_view_files(), process_config_file(), write_config(), and zero_opt_args().

◆ receiver_cmd

char Init::receiver_cmd[MAXLEN]

command receives output

Definition at line 121 of file common.h.

Referenced by init_form_files(), init_pick_files(), init_view_files(), process_config_file(), write_config(), and zero_opt_args().

◆ select_max

int Init::select_max

Pick maximum number of selections

Definition at line 178 of file common.h.

Referenced by init_pick_files(), process_config_file(), and write_config().

◆ sio

◆ tab_stop

int Init::tab_stop

View - number of spapaces per tab

Definition at line 180 of file common.h.

Referenced by init_view_files(), new_pick_view(), process_config_file(), and write_config().

◆ title

◆ view

◆ view_cnt

int Init::view_cnt

number of view data structures allocated

Definition at line 189 of file common.h.

Referenced by destroy_view(), and new_view().


The documentation for this struct was generated from the following file: