mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-24 20:22:11 +03:00
205fa24e7d
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
31 lines
968 B
C
31 lines
968 B
C
|
|
/** \file selcodepage.h
|
|
* \brief Header: user %interface for charset %selection
|
|
*/
|
|
|
|
#ifndef MC_SELCODEPAGE_H
|
|
#define MC_SELCODEPAGE_H
|
|
|
|
#ifdef HAVE_CHARSET
|
|
|
|
#include "global.h"
|
|
|
|
int select_charset (int delta_x, int delta_y, int current_charset, gboolean seldisplay);
|
|
gboolean do_select_codepage (void);
|
|
|
|
/* some results of select_charset() */
|
|
#define SELECT_CHARSET_CANCEL -2
|
|
/* select_charset() returns this value if dialog has been cenceled */
|
|
#define SELECT_CHARSET_OTHER_8BIT -1
|
|
/* select_charset() returns this value if seldisplay == TRUE
|
|
* and the last item has been selected. Last item is "Other 8 bits" */
|
|
#define SELECT_CHARSET_NO_TRANSLATE -1
|
|
/* select_charset() returns this value if seldisplay == FALSE
|
|
* and the 1st item has been selected. 1st item is "No translation" */
|
|
/* In other cases select_charset() returns non-negative value
|
|
* which is number of codepage in codepage list */
|
|
|
|
#endif /* HAVE_CHARSET */
|
|
|
|
#endif /* MC_SELCODEPAGE_H */
|