#ifndef _MUI_H
#define _MUI_H

#define id_no				1
#define id_yes				2

#define id_byte				10
#define id_kbyte			11
#define id_mbyte			12
#define id_gbyte                        13

#define id_reconfig			50
#define id_lng				51
#define id_lngname			52

#define id_dirmking			100
#define id_copying			101
#define id_moveing			102
#define id_deling			103
#define id_empty			104

#define id_mcmenu			1000
#define id_select			1001
#define id_back				1002

#define id_open				1010
#define id_altopen                      1011
#define id_bt 				1013
#define id_natexpl                      1012
#define id_file_m			1020
#define id_chk				1021
#define id_chkall			1022
#define id_invchk			1024
#define id_unchall			1023
#define id_oper_m			1030
#define id_past				1031
#define id_cancel			1037
#define id_copy				1032
#define id_move				1033
#define id_del				1034
#define id_rename			1035
#define id_newdir			1036
#define id_newfile			1038
#define id_prop				1040
#define id_drvinf			1050
#define id_view_m			1090
#define id_sort_m			1080
#define id_sortn			1081
#define id_sorte			1082
#define id_sorts			1083
#define id_sortd			1084
#define id_sortr			1085
#define id_filter			1092
#define id_refresh			1091
#define id_bm_m				1060
#define id_bm				1061
#define id_add				1062
#define id_bml				1063
#define id_misc_m			1070
#define id_settings			1071
#define id_about_m			1072
#define id_keyhelp                      1073
#define id_exit				1100

#define id_name				1500
#define id_fullname			1501
#define id_fullpatch                    1517
#define id_size				1502
#define id_global			1511
#define id_folders			1512
#define id_files			1513
#define id_date				1503
#define id_attr				1504
#define id_readonly			1505
#define id_hidden			1506
#define id_system			1507
#define id_arh				1508
#define id_subdirs			1509
#define id_ncsize			1514
#define id_csize			1515
#define id_cglobal			1516

#define id_pmt_del			3000
#define id_pmt_copy			3001
#define id_pmt_move			3002
#define id_pmt_stop			3003
#define id_pmt_cancel		        3008
#define id_pmt_exists		        3004
#define id_pmt_exit			3005
#define id_pmt_impcs		        3006
#define id_pmt_implg		        3007
#define id_pmt_rodel		        3009

#define id_err_attrset		        4001
#define id_err_makedir		        4002
#define id_err_rename		        4003
#define id_err_delete		        4004
#define id_err_badname_t	        4005
#define id_err_baddrv_t		        4006
#define id_err_resnok		        4007
#define id_err_nofiles		        4008
#define id_err_badname		        4009
#define id_err_badkey		        4010
#define id_err_badformat	        4011
#define id_err_nomemory		        4012
#define id_err_makefile		        4013
#define id_err_ziperr		        4014
#define id_err_search                   4015             

#define id_msg_zreading			5000
#define id_msg_showhid_files	        5001
#define id_msg_showsys_files	        5002
#define id_msg_showhidsys_files 	5003
#define id_msg_showhid_drv		5004

#define id_drv_driver		        6001
#define id_drv_all		        6002
#define id_drv_free		        6003
#define id_drv_percent		        6004
#define id_pos                          6005
#define id_new_file		        6006
#define id_new_folder                   6007

#define id_artist                       6021
#define id_title                        6022
#define id_album                        6023
#define id_year                         6024
#define id_bitrate                      6025
#define id_treak                        6026
#define id_coment                       6027

#define id_ok                           7000
#define id_cncl                         7001

#define id_time                         7002 
#define id_resol                        7003

#define id_viz                          7010
#define id_hid_file                     7011
#define id_sys_file                     7012
#define id_hid_drv                      7013

#define id_do_arch                      8000
#define id_create                       8001
#define id_find                         8002
#define id_arch                         8003
#define id_pass                         8005
#define id_arh_name                     8006
#define id_info                         8007
#define id_support                      8008
#define id_drv_info                     8009
#define id_drv_busy                     8010

#define id_sys_type                     8011  
#define id_hid_type                     8012
#define id_type                         8013
#define id_in                           8014
#define id_met_compres                  8015
#define id_no_compres                   8016
#define id_hi_speed                     8017
#define id_default                      8018
#define id_hi_compress                  8019
#define id_noadd2arh                    8020
#define id_thisdir                      8021
#define id_getff                        8022
#define id_rec                          8023

#define id_wall                         8024
#define id_logo                         8025
#define id_ss                           8026

#define id_call                         8027
#define id_mess                         8028
#define id_alarm                        8029
#define id_org                          8030
#define id_set_ass                      8031
#define id_mcvol                        8032
#define id_mcsearch                     8033

#define id_md5                          8034
#define id_md5_file                     8035
#define id_cmd5                         8036

#define id_corect                       8037
#define id_no_corect                    8038

#define id_ms                           8039
#define id_not_exist                    8040



typedef struct
{
	int id;
	char* df_str;
}MUI_STR;

typedef struct
{
	unsigned short id;
	unsigned short ofs;
}MC_LG;

#define MCLG_hdr mccfg_hdr

#define mclg_sig (*(int*)"mclg")
#define mclg_ver 2
#define mclg_size MUI_COUNT
#define mclg_offset sizeof(MCLG_hdr)

extern const char mclg_deffile[];
extern const char mclg_ext[];

void SaveMUI(char* filename);
int LoadMUI(char* filename);
void InitMUI();
void FreeMUI();
char* muitxt(int ind);







#define ind_no				0
#define ind_yes				1

#define ind_byte			2
#define ind_kbyte			3
#define ind_mbyte			4

#define ind_reconfig		        5
#define ind_lng				6
#define ind_lngname			7

#define ind_dirmking		        8
#define ind_copying			9
#define ind_moveing			10
#define ind_deling			11

#define ind_mcmenu			12
#define ind_select			13
#define ind_back			14

#define ind_open			15
#define ind_file_m			16
#define ind_chk				17
#define ind_chkall			18
#define ind_invchk			19
#define ind_unchall			20
#define ind_oper_m			21
#define ind_past			22
#define ind_cancel			23
#define ind_copy			24
#define ind_move			25
#define ind_del				26
#define ind_rename			27
#define ind_newdir			28
#define ind_prop			29
#define ind_drvinf			30
#define ind_view_m			31
#define ind_sort_m			32
#define ind_sortn			33
#define ind_sorte			34
#define ind_sorts			35
#define ind_sortd			36
#define ind_sortr			37
#define ind_filter			38
#define ind_refresh			39
#define ind_newfile			40
#define ind_bm_m		   	41
#define ind_bm				42
#define ind_add				43
#define ind_bml				44
#define ind_misc_m			45
#define ind_settings		        46
#define ind_about_m			47
#define ind_exit			48

#define ind_name			49
#define ind_fullname		        50
#define ind_size			51
#define ind_global			52
#define ind_folders			53
#define ind_files			54
#define ind_date			55
#define ind_attr			56
#define ind_readonly		        57
#define ind_hidden			58
#define ind_system			59
#define ind_arh				60
#define ind_subdirs			61
#define ind_ncsize			62
#define ind_csize			63
#define ind_cglobal			64

#define ind_pmt_del			65
#define ind_pmt_copy		        66
#define ind_pmt_move		        67
#define ind_pmt_stop		        68
#define ind_pmt_cancel		        69
#define ind_pmt_exists		        70
#define ind_pmt_exit		        71
#define ind_pmt_impcs		        72
#define ind_pmt_implg		        73
#define ind_pmt_rodel		        74

#define ind_err_attrset		        75
#define ind_err_makedir		        76
#define ind_err_rename		        77
#define ind_err_delete		        78
#define ind_err_badname_t	        79
#define ind_err_baddrv_t	        80
#define ind_err_resnok		        81
#define ind_err_nofiles		        82
#define ind_err_badname		        83
#define ind_err_badkey		        84
#define ind_err_badformat	        85
#define ind_err_nomemory	        86
#define ind_err_makefile	        87
#define ind_err_ziperr		        88

#define ind_msg_zreading		89
#define ind_msg_showhid_files		90
#define ind_msg_showsys_files		91
#define ind_msg_showhidsys_files	92
#define ind_msg_showhid_drv	        93
#define ind_altopen                     94
#define ind_natexpl                     95
#define ind_keyhelp                     96
#define ind_bt                          97
#define ind_empty			98

#define ind_drv_driver		        99
#define ind_drv_all		        100
#define ind_drv_free		        101
#define ind_drv_percent		        102
#define ind_pos                         103
#define ind_fullpatch                   104

#define ind_ok                          105
#define ind_cncl                        106

#define ind_time                        107
#define ind_resol                       108

#define ind_artist                      109
#define ind_title                       110
#define ind_album                       111
#define ind_year                        112
#define ind_bitrate                     113

#define ind_viz                          114
#define ind_hid_file                     115
#define ind_sys_file                     116
#define ind_hid_drv                      117

#define ind_do_arch                      118
#define ind_create                       119
#define ind_find                         120
#define ind_arch                         121
#define ind_pass                         122
#define ind_arh_name                     123
#define ind_info                         124
#define ind_support                      125
#define ind_drv_info                     126
#define ind_drv_busy                     127
#define ind_gbyte                        128
#define ind_err_search                   129 
#define ind_sys_type                     130  
#define ind_hid_type                     131
#define ind_type                         132
#define ind_in                           133
#define ind_met_compres                  134
#define ind_no_compres                   135
#define ind_hi_speed                     136
#define ind_default                      137
#define ind_hi_compress                  138
#define ind_noadd2arh                    139
#define ind_thisdir                      140
#define ind_getff                        141
#define ind_rec                          142

#define ind_wall                         143
#define ind_logo                         144
#define ind_ss                           145

#define ind_call                         146
#define ind_mess                         147
#define ind_alarm                        148
#define ind_org                          149
#define ind_set_ass                      150
#define ind_mcvol                        151
#define ind_mcsearch                     152
#define ind_treak                        153
#define ind_coment                       154

#define ind_md5                          155
#define ind_md5_file                     156
#define ind_cmd5                         157

#define ind_corect                       158
#define ind_no_corect                    159
#define ind_ms                           160
#define ind_not_exist                    161
#endif
