Split file src/keybind.[ch] to lib/keybind.[ch] and src/keybind-defaults.[ch].
[midnight-commander.git] / src / selcodepage.h
blob188b6cc1b27d75fe7519462f0515cd05164c98cd
2 /** \file selcodepage.h
3 * \brief Header: user %interface for charset %selection
4 */
6 #ifndef MC__SELCODEPAGE_H
7 #define MC__SELCODEPAGE_H
9 #include "lib/global.h"
11 /*** typedefs(not structures) and defined constants **********************************************/
13 /* some results of select_charset() */
14 #define SELECT_CHARSET_CANCEL -2
15 /* select_charset() returns this value if dialog has been canceled */
16 #define SELECT_CHARSET_OTHER_8BIT -1
17 /* select_charset() returns this value if seldisplay == TRUE
18 * and the last item has been selected. Last item is "Other 8 bits" */
19 #define SELECT_CHARSET_NO_TRANSLATE -1
20 /* select_charset() returns this value if seldisplay == FALSE
21 * and the 1st item has been selected. 1st item is "No translation" */
22 /* In other cases select_charset() returns non-negative value
23 * which is number of codepage in codepage list */
25 /*** enums ***************************************************************************************/
27 /*** structures declarations (and typedefs of structures)*****************************************/
29 /*** global variables defined in .c file *********************************************************/
31 /*** declarations of public functions ************************************************************/
33 /*** inline functions ****************************************************************************/
35 int select_charset (int center_y, int center_x, int current_charset, gboolean seldisplay);
36 gboolean do_set_codepage (int);
37 gboolean do_select_codepage (void);
39 #endif /* MC__SELCODEPAGE_H */