2009-02-05 21:28:18 +03:00
|
|
|
|
|
|
|
/** \file selcodepage.h
|
2009-02-06 17:46:15 +03:00
|
|
|
* \brief Header: user %interface for charset %selection
|
2009-02-05 21:28:18 +03:00
|
|
|
*/
|
|
|
|
|
2010-11-10 14:09:42 +03:00
|
|
|
#ifndef MC__SELCODEPAGE_H
|
|
|
|
#define MC__SELCODEPAGE_H
|
2001-05-31 05:27:20 +04:00
|
|
|
|
2010-01-20 18:11:52 +03:00
|
|
|
#include "lib/global.h"
|
2009-06-14 19:05:57 +04:00
|
|
|
|
2010-11-10 14:09:42 +03:00
|
|
|
/*** typedefs(not structures) and defined constants **********************************************/
|
2009-06-14 19:05:57 +04:00
|
|
|
|
|
|
|
/* some results of select_charset() */
|
2010-11-08 13:21:45 +03:00
|
|
|
#define SELECT_CHARSET_CANCEL -2
|
2009-12-02 20:50:48 +03:00
|
|
|
/* select_charset() returns this value if dialog has been canceled */
|
2010-11-08 13:21:45 +03:00
|
|
|
#define SELECT_CHARSET_OTHER_8BIT -1
|
2009-06-14 19:05:57 +04:00
|
|
|
/* select_charset() returns this value if seldisplay == TRUE
|
|
|
|
* and the last item has been selected. Last item is "Other 8 bits" */
|
2010-11-08 13:21:45 +03:00
|
|
|
#define SELECT_CHARSET_NO_TRANSLATE -1
|
2009-06-14 19:05:57 +04:00
|
|
|
/* 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 */
|
|
|
|
|
2010-11-10 14:09:42 +03:00
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
|
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
|
|
|
|
|
|
|
/*** global variables defined in .c file *********************************************************/
|
|
|
|
|
|
|
|
/*** declarations of public functions ************************************************************/
|
|
|
|
|
|
|
|
int select_charset (int center_y, int center_x, int current_charset, gboolean seldisplay);
|
|
|
|
gboolean do_set_codepage (int);
|
|
|
|
gboolean do_select_codepage (void);
|
|
|
|
|
2010-11-22 14:45:18 +03:00
|
|
|
/*** inline functions ****************************************************************************/
|
|
|
|
|
2010-11-10 14:09:42 +03:00
|
|
|
#endif /* MC__SELCODEPAGE_H */
|