Main Page   File List   Globals   Related Pages  

gui_dict.h File Reference

the dictionary widget and related functions. More...

Go to the source code of this file.

Functions

GtkWidget * dict_new ()
 Create a dictionoarry widget. More...

GtkWidget * dict_new_from_file (const char *fn, const char *sep)
 Create a new dictionary widget from a file. More...

void dict_add_words (GtkWidget *dict, int wnum, char ***words)
 Adds a dictionary to a CList widget of a dictionary. More...

void dict_add_word (GtkWidget *dict, char **word)
 Adds a word in a dictionary widget. More...

void gui_dict_open_cb ()
 The callback called when Dictionary->Open... More...

void gui_dict_close_cb ()
 Closes the current page in the notebook. More...


Detailed Description

the dictionary widget and related functions.

Definition in file gui_dict.h.


Function Documentation

void dict_add_word GtkWidget *    dict,
char **    word
 

Adds a word in a dictionary widget.

This is only a wrapper script to dict_add_words().

Parameters:
dict  the dictionary widget.
word  the word pair.
See also:
dict_add_words()

Definition at line 173 of file gui_dict.c.

References dict_add_words().

void dict_add_words GtkWidget *    dict,
int    wnum,
char ***    words
 

Adds a dictionary to a CList widget of a dictionary.

Adds the list of word pairs to the given widget. It updates the widget properties: dict_wnum (the number of words), dict_words (list to word pairs). It gets the CList from the dict_clist property of the widget.

Parameters:
dict  the dictionary widget which contains the properties and the CList widget containing the dictionary.
wnum  the number of words to add.
words  the list to word pairs to add.
See also:
dict_new()

Definition at line 149 of file gui_dict.c.

Referenced by dict_add_word(), and dict_new_from_file().

GtkWidget* dict_new  
 

Create a dictionoarry widget.

Returns:
the newly created widget.

Definition at line 100 of file gui_dict.c.

References dict_inpch().

Referenced by dict_new_from_file().

GtkWidget* dict_new_from_file const char *    fn,
const char *    sep
 

Create a new dictionary widget from a file.

Parameters:
fn  file name.
sep  separator used in the file.
Returns:
the new dictionary widget
See also:
dict_new() , dict_get_words() for dictionary file description , dict_add_words()

Definition at line 188 of file gui_dict.c.

References dict_add_words(), dict_get_words(), and dict_new().

Referenced by gui_dict_open2_cb(), and top_window_new().

void gui_dict_close_cb  
 

Closes the current page in the notebook.

See also:
notebook

Definition at line 255 of file gui_dict.c.

void gui_dict_open_cb  
 

The callback called when Dictionary->Open...

is selected. It creates a modal file selection dialog and connects a signal to its OK button to gui_dict_open2_cb() to handle the user request.

See also:
gui_dict_open2_cb()

Definition at line 228 of file gui_dict.c.

References gui_dict_open2_cb().


Generated on Tue Jun 25 12:02:42 2002 for LearnWords by doxygen1.2.15