1 /*
2  * Copyright (c) Tony Bybell 2005.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  */
9 
10 #include "globals.h"
11 
12 #ifndef WAVE_TRANSLATE_H
13 #define WAVE_TRANSLATE_H
14 
15 #include <stdio.h>
16 #include <string.h>
17 #include <ctype.h>
18 #include "fgetdynamic.h"
19 #include "debug.h"
20 
21 /*
22  * char splay
23  */
24 typedef struct xl_tree_node xl_Tree;
25 struct xl_tree_node {
26     xl_Tree *left, *right;
27     char *item;
28     char *trans;
29 };
30 
31 
32 #define FILE_FILTER_MAX (128)
33 #define WAVE_TCL_INSTALLED_FILTER "\"TCL_Installed_Filter\""
34 
35 
36 xl_Tree * xl_splay (char *i, xl_Tree * t);
37 xl_Tree * xl_insert(char *i, xl_Tree * t, char *trans);
38 xl_Tree * xl_delete(char *i, xl_Tree * t);
39 
40 
41 void trans_searchbox(char *title);
42 void init_filetrans_data(void);
43 int install_file_filter(int which);
44 
45 void set_current_translate_enums(char *lst);
46 void set_current_translate_file(char *name);
47 
48 #endif
49 
50