2 /** \file selcodepage.h
3 * \brief Header: user %interface for charset %selection
6 #ifndef MC_SELCODEPAGE_H
7 #define MC_SELCODEPAGE_H
9 #include "lib/global.h"
11 int select_charset (int center_y
, int center_x
, int current_charset
, gboolean seldisplay
);
12 gboolean
do_set_codepage (int);
13 gboolean
do_select_codepage (void);
15 /* some results of select_charset() */
16 #define SELECT_CHARSET_CANCEL -2
17 /* select_charset() returns this value if dialog has been canceled */
18 #define SELECT_CHARSET_OTHER_8BIT -1
19 /* select_charset() returns this value if seldisplay == TRUE
20 * and the last item has been selected. Last item is "Other 8 bits" */
21 #define SELECT_CHARSET_NO_TRANSLATE -1
22 /* select_charset() returns this value if seldisplay == FALSE
23 * and the 1st item has been selected. 1st item is "No translation" */
24 /* In other cases select_charset() returns non-negative value
25 * which is number of codepage in codepage list */
27 #endif /* MC_SELCODEPAGE_H */