Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

scroll.h File Reference

#include <curses.h>
#include "basetypes.h"

Data Structures

struct  scroll_table
struct  scroll_table_entry

Defines

#define MAX_KEY_LEN   30
#define MAX_DATA_LEN   1024
#define MAX_ENTRY_WINDOW   20000
#define NOHTIND   0
#define TIND   1
#define HIND   2
#define S_NONE   0
#define S_HSCRL   0x001
#define S_IND   0x002
#define S_LINE   0x004
#define S_TSCRL   0x008
#define S_SRCH   0x010
#define S_DESC   0x020
#define S_UFCE   0x040
#define S_NOKEY   0x080
#define S_NOBOX   0x100
#define print_scroll_table_field(key)
#define change_scroll_table_data_len(table_data_len, data)
#define print_fast_horizont_scroll_window(window, fast_scrolling)

Enumerations

enum  { SCROLLUP, SCROLLDOWN, SCROLLHOME, SCROLLEND }
enum  {
  UFCE_START, UFCE_SCROLL, UFCE_LINEUP, UFCE_LINEDOWN,
  UFCE_HOME, UFCE_END, UFCE_SEARCH
}
enum  {
  IS_NONE = 0, IS_ALNUM, IS_ALPHA, IS_ASCII,
  IS_DIGIT, IS_GRAPH, IS_LOWER, IS_PRINT,
  IS_PUNCT, IS_SPACE, IS_UPPER, IS_XDIGIT,
  IS_CNTRL
}

Functions

void init_scroll_table (struct scroll_table *table, int lines, int cols, int begy, int begx, int key_len, char *start_key, char *end_key, int(*usr_func)(struct scroll_table *table, char *key, int smer, char *new_key, char *new_data, int *mode_scr), int s_metod, int mode)
int getch_scroll_table (struct scroll_table *table)
void refresh_scroll_table (struct scroll_table *table)
void hide_scroll_table (struct scroll_table *table)
void unhide_scroll_table (struct scroll_table *table)
void destroy_scroll_table (struct scroll_table *table)
scroll_table_entryadd_scroll_table_entry (struct scroll_table *table, char *key, char *data, int refresh_table, int mode_scr)
scroll_table_entryupdate_scroll_table_entry (struct scroll_table *table, char *key, char *new_key, char *new_data, int repleace_key, int new_entry, int refresh_table, int mode_scr)
void del_scroll_table_entry (struct scroll_table *table, struct scroll_table_entry *entry, int refresh_table)
void flush_scroll_table (struct scroll_table *table, int refresh_table)
void reload_scroll_table (struct scroll_table *table, int refresh_table)
void print_scroll_entry (struct scroll_table *table, struct scroll_table_entry *entry, unsigned int target_row)
char * move_data_position (char *data, int data_len, uint start)
void add_scroll_table_desc (struct scroll_table *table, char *key_desc, char *data_desc)
scroll_table_entryoperate_scroll_table (struct scroll_table *table, int *ch)
void scroll_table_line (struct scroll_table *table, int direction, int refresh_table)
void scroll_table_page (struct scroll_table *table, int direction)
void horizontal_scroll (struct scroll_table *table, int ch)
int search_key_scroll_table (struct scroll_table *table, int ch)
void search_scroll_table (struct scroll_table *table)
scroll_table_entryfind_scroll_table_entry (struct scroll_table *table, int pozition)
int scroll_table_2_txt (struct scroll_table *table, const char *file, int line)
int txt_2_scroll_table (struct scroll_table *table, const char *file, int mode_scr)
void scroll_table_usr_func (struct scroll_table *table, struct scroll_table_entry *entry, int mode, int smer)
void help_scroll (char *file, int lines, int cols)
scroll_table_entryfind_entry_table (struct scroll_table *table, char *key)

Define Documentation

#define change_scroll_table_data_len table_data_len,
data   
 

Value:

{if((signed) strlen(data) > table_data_len) \
         table_data_len = (signed) strlen(data);}

#define HIND   2
 

#define MAX_DATA_LEN   1024
 

#define MAX_ENTRY_WINDOW   20000
 

#define MAX_KEY_LEN   30
 

#define NOHTIND   0
 

#define print_fast_horizont_scroll_window window,
fast_scrolling   
 

Value:

{mvwprintw(window, 0, 0, "%s",  \
         (fast_scrolling == TRUE) ? "Fast" : "Slow");}

#define print_scroll_table_field key   
 

Value:

printfield_char (key, "", table->leny - 1, 1, \
                         table->key_len, T_CHAR, table->borderwin)

#define S_DESC   0x020
 

#define S_HSCRL   0x001
 

#define S_IND   0x002
 

#define S_LINE   0x004
 

#define S_NOBOX   0x100
 

#define S_NOKEY   0x080
 

#define S_NONE   0
 

#define S_SRCH   0x010
 

#define S_TSCRL   0x008
 

#define S_UFCE   0x040
 

#define TIND   1
 


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
SCROLLUP 
SCROLLDOWN 
SCROLLHOME 
SCROLLEND 

anonymous enum
 

Enumeration values:
UFCE_START 
UFCE_SCROLL 
UFCE_LINEUP 
UFCE_LINEDOWN 
UFCE_HOME 
UFCE_END 
UFCE_SEARCH 

anonymous enum
 

Enumeration values:
IS_NONE 
IS_ALNUM 
IS_ALPHA 
IS_ASCII 
IS_DIGIT 
IS_GRAPH 
IS_LOWER 
IS_PRINT 
IS_PUNCT 
IS_SPACE 
IS_UPPER 
IS_XDIGIT 
IS_CNTRL 


Function Documentation

void add_scroll_table_desc struct scroll_table   table,
char *    key_desc,
char *    data_desc
 

struct scroll_table_entry* add_scroll_table_entry struct scroll_table   table,
char *    key,
char *    data,
int    refresh_table,
int    mode_scr
 

void del_scroll_table_entry struct scroll_table   table,
struct scroll_table_entry   entry,
int    refresh_table
 

void destroy_scroll_table struct scroll_table   table
 

struct scroll_table_entry* find_entry_table struct scroll_table   table,
char *    key
 

struct scroll_table_entry* find_scroll_table_entry struct scroll_table   table,
int    pozition
 

void flush_scroll_table struct scroll_table   table,
int    refresh_table
 

int getch_scroll_table struct scroll_table   table
 

void help_scroll char *    file,
int    lines,
int    cols
 

void hide_scroll_table struct scroll_table   table
 

void horizontal_scroll struct scroll_table   table,
int    ch
 

void init_scroll_table struct scroll_table   table,
int    lines,
int    cols,
int    begy,
int    begx,
int    key_len,
char *    start_key,
char *    end_key,
int(*    usr_func)(struct scroll_table *table, char *key, int smer, char *new_key, char *new_data, int *mode_scr),
int    s_metod,
int    mode
 

char* move_data_position char *    data,
int    data_len,
uint    start
 

struct scroll_table_entry* operate_scroll_table struct scroll_table   table,
int *    ch
 

void print_scroll_entry struct scroll_table   table,
struct scroll_table_entry   entry,
unsigned int    target_row
 

void refresh_scroll_table struct scroll_table   table
 

void reload_scroll_table struct scroll_table   table,
int    refresh_table
 

int scroll_table_2_txt struct scroll_table   table,
const char *    file,
int    line
 

void scroll_table_line struct scroll_table   table,
int    direction,
int    refresh_table
 

void scroll_table_page struct scroll_table   table,
int    direction
 

void scroll_table_usr_func struct scroll_table   table,
struct scroll_table_entry   entry,
int    mode,
int    smer
 

int search_key_scroll_table struct scroll_table   table,
int    ch
 

void search_scroll_table struct scroll_table   table
 

int txt_2_scroll_table struct scroll_table   table,
const char *    file,
int    mode_scr
 

void unhide_scroll_table struct scroll_table   table
 

struct scroll_table_entry* update_scroll_table_entry struct scroll_table   table,
char *    key,
char *    new_key,
char *    new_data,
int    repleace_key,
int    new_entry,
int    refresh_table,
int    mode_scr
 


Generated on Wed Apr 2 06:51:17 2003 for TFCC by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001