summaryrefslogtreecommitdiff
path: root/iup/src/iup_strmessage.h
blob: dbd0374b83ccea6636a3986cf1c585fb35599c22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/** \file
 * \brief Language Dependent String Messages 
 *
 * See Copyright Notice in "iup.h"
 */

 
#ifndef __IUP_STRMESSAGE_H 
#define __IUP_STRMESSAGE_H

#ifdef __cplusplus
extern "C" {
#endif


/** \defgroup strmessage Language Dependent String Messages
 * \par
 * String database that is dependend of the selected language.
 * \par
 * See \ref iup_strmessage.h
 * \ingroup util */

/** Pre-defined dialog to show an error message. Based in IupMessageDlg.
 * Message can be a registered coded message or a commom string.
 * \ingroup strmessage */
void iupStrMessageShowError(Ihandle* parent, const char* message);

/** Returns a common string from a registered coded message.
 * The returned string depends on the global LANGUAGE attribute.
 * \ingroup strmessage */
char* iupStrMessageGet(const char* message);

/* Called from iup_global */
void iupStrMessageUpdateLanguage(const char* language);

/* called only in IupOpen and IupClose */
void iupStrMessageInit(void);
void iupStrMessageFinish(void);


#ifdef __cplusplus
}
#endif

#endif