Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions | Variables
nconf.h File Reference
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <locale.h>
#include <curses.h>
#include <menu.h>
#include <panel.h>
#include <form.h>
#include <stdio.h>
#include <time.h>
#include <sys/time.h>
#include "ncurses.h"

Go to the source code of this file.

Macros

#define max(a, b)
 
#define min(a, b)
 

Enumerations

enum  attributes_t {
  NORMAL = 1, MAIN_HEADING, MAIN_MENU_BOX, MAIN_MENU_FORE,
  MAIN_MENU_BACK, MAIN_MENU_GREY, MAIN_MENU_HEADING, SCROLLWIN_TEXT,
  SCROLLWIN_HEADING, SCROLLWIN_BOX, DIALOG_TEXT, DIALOG_MENU_FORE,
  DIALOG_MENU_BACK, DIALOG_BOX, INPUT_BOX, INPUT_HEADING,
  INPUT_TEXT, INPUT_FIELD, FUNCTION_TEXT, FUNCTION_HIGHLIGHT,
  ATTR_MAX
}
 
enum  function_key {
  F_HELP = 1, F_SYMBOL = 2, F_INSTS = 3, F_CONF = 4,
  F_BACK = 5, F_SAVE = 6, F_LOAD = 7, F_SEARCH = 8,
  F_EXIT = 9
}
 

Functions

void set_colors (void)
 
void print_in_middle (WINDOW *win, int starty, int startx, int width, const char *string, chtype color)
 
int get_line_length (const char *line)
 
int get_line_no (const char *text)
 
const charget_line (const char *text, int line_no)
 
void fill_window (WINDOW *win, const char *text)
 
int btn_dialog (WINDOW *main_window, const char *msg, int btn_num,...)
 
int dialog_inputbox (WINDOW *main_window, const char *title, const char *prompt, const char *init, char **resultp, int *result_len)
 
void refresh_all_windows (WINDOW *main_window)
 
void show_scroll_win (WINDOW *main_window, const char *title, const char *text)
 

Variables

attributes_t attributes []
 

Macro Definition Documentation

#define max (   a,
  b 
)
Value:
({\
typeof(a) _a = a;\
typeof(b) _b = b;\
_a > _b ? _a : _b; })

Definition at line 29 of file nconf.h.

#define min (   a,
  b 
)
Value:
({\
typeof(a) _a = a;\
typeof(b) _b = b;\
_a < _b ? _a : _b; })

Definition at line 34 of file nconf.h.

Enumeration Type Documentation

Enumerator:
NORMAL 
MAIN_HEADING 
MAIN_MENU_BOX 
MAIN_MENU_FORE 
MAIN_MENU_BACK 
MAIN_MENU_GREY 
MAIN_MENU_HEADING 
SCROLLWIN_TEXT 
SCROLLWIN_HEADING 
SCROLLWIN_BOX 
DIALOG_TEXT 
DIALOG_MENU_FORE 
DIALOG_MENU_BACK 
DIALOG_BOX 
INPUT_BOX 
INPUT_HEADING 
INPUT_TEXT 
INPUT_FIELD 
FUNCTION_TEXT 
FUNCTION_HIGHLIGHT 
ATTR_MAX 

Definition at line 39 of file nconf.h.

Enumerator:
F_HELP 
F_SYMBOL 
F_INSTS 
F_CONF 
F_BACK 
F_SAVE 
F_LOAD 
F_SEARCH 
F_EXIT 

Definition at line 64 of file nconf.h.

Function Documentation

int btn_dialog ( WINDOW main_window,
const char msg,
int  btn_num,
  ... 
)

Definition at line 241 of file nconf.gui.c.

int dialog_inputbox ( WINDOW main_window,
const char title,
const char prompt,
const char init,
char **  resultp,
int result_len 
)

Definition at line 357 of file nconf.gui.c.

void fill_window ( WINDOW win,
const char text 
)

Definition at line 214 of file nconf.gui.c.

const char* get_line ( const char text,
int  line_no 
)

Definition at line 189 of file nconf.gui.c.

int get_line_length ( const char line)

Definition at line 203 of file nconf.gui.c.

int get_line_no ( const char text)

Definition at line 175 of file nconf.gui.c.

void print_in_middle ( WINDOW win,
int  starty,
int  startx,
int  width,
const char string,
chtype  color 
)

Definition at line 147 of file nconf.gui.c.

void refresh_all_windows ( WINDOW main_window)

Definition at line 534 of file nconf.gui.c.

void set_colors ( void  )

Definition at line 132 of file nconf.gui.c.

void show_scroll_win ( WINDOW main_window,
const char title,
const char text 
)

Definition at line 542 of file nconf.gui.c.

Variable Documentation

attributes_t attributes[]

Definition at line 107 of file efi.h.