mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
ee966c4d2d
and their header files necessary to build GoldenDict on 64-bit Intel Macs. Included program icon into application package. Minor code clarification in keyboardstate.cc
37 lines
633 B
C++
37 lines
633 B
C++
#ifndef _DICTMGR_HXX_
|
|
#define _DICTMGR_HXX_
|
|
|
|
#include "hunvisapi.h"
|
|
|
|
#define MAXDICTIONARIES 100
|
|
#define MAXDICTENTRYLEN 1024
|
|
|
|
struct dictentry {
|
|
char * filename;
|
|
char * lang;
|
|
char * region;
|
|
};
|
|
|
|
|
|
class LIBHUNSPELL_DLL_EXPORTED DictMgr
|
|
{
|
|
|
|
int numdict;
|
|
dictentry * pdentry;
|
|
|
|
public:
|
|
|
|
DictMgr(const char * dictpath, const char * etype);
|
|
~DictMgr();
|
|
int get_list(dictentry** ppentry);
|
|
|
|
private:
|
|
int parse_file(const char * dictpath, const char * etype);
|
|
char * mystrsep(char ** stringp, const char delim);
|
|
char * mystrdup(const char * s);
|
|
void mychomp(char * s);
|
|
|
|
};
|
|
|
|
#endif
|