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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
#ifndef __CALLMESSAGEBOX_H__
#define __CALLMESSAGEBOX_H__
/*
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) 2008 - INRIA - Vincent COUVERT
*
* This file must be used under the terms of the CeCILL.
* This source file is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
*
*/
#include "BOOL.h"
/**
* Create a new MessageBox
*
* @param void
* @return the ID of the created MessageBox
*/
int createMessageBox(void);
/**
* Set the title of the MessageBox
*
* @param ID the ID of the MessageBox
* @param title the title to set
*/
void setMessageBoxTitle(int ID, char * title);
/**
* Set the message of the MessageBox
*
* @param ID the ID of the MessageBox
* @param message the message to set
*/
void setMessageBoxMessage(int ID, char * message);
/**
* Set the message of the MessageBox (multi-line)
*
* @param ID the ID of the MessageBox
* @param message the message to set
* @param nbLines number of lines in message
*/
void setMessageBoxMultiLineMessage(int ID, char **message, int nbLines);
/**
* Display the MessageBox and Wait for a user action
*
* @param ID the ID of the MessageBox
*/
void messageBoxDisplayAndWait(int ID);
/**
* Get the index of the selected button
*
* @param ID the ID of the MessageBox
* @return the index of the selected button
*/
int getMessageBoxSelectedButton(int ID);
/**
* Set the indices of the default selected buttons (x_choices)
*
* @param ID the ID of the MessageBox
* @param indices the indices of the default selected buttons
* @param nbIndices the number of indices
*/
void setMessageBoxDefaultSelectedButtons(int ID, int* indices, int nbIndices);
/**
* Get the indices of the user selected buttons (x_choices)
*
* @param ID the ID of the MessageBox
* @return the indices of the user selected buttons
*/
int* getMessageBoxUserSelectedButtons(int ID);
/**
* Set the labels of the buttons
*
* @param ID the ID of the MessageBox
* @param labels the labels of the buttons
* @param nbLabels the number of labels in labels parameter
*/
void setMessageBoxButtonsLabels(int ID, char** labels, int nbLabels);
/**
* Set the initial value of the editable text zone of the MessageBox
*
* @param ID the ID of the MessageBox
* @param value the value
* @param nbLines the number of lines in value parameter
*/
void setMessageBoxInitialValue(int ID, char** value, int nbLines);
/**
* Get the value of the editable text zone of the MessageBox
*
* @param ID the ID of the MessageBox
* @return the value
*/
char ** getMessageBoxValue(int ID);
/**
* Get the value size of the editable text zone of the MessageBox
*
* @param ID the ID of the MessageBox
* @return the value size
*/
int getMessageBoxValueSize(int ID);
/**
* Set the items of the listbox of the MessageBox
*
* @param ID the ID of the MessageBox
* @param items the items to set
* @param nbItems the number of items
*/
void setMessageBoxListBoxItems(int ID, char** items, int nbItems);
/**
* Get the selected item in the listbox of the MessageBox
*
* @param ID the ID of the MessageBox
* @return the selected item index (0 if canceled)
*/
int getMessageBoxSelectedItem(int ID);
/**
* Set the name of the lines labels in the editable zone in the MessageBox
*
* @param ID the ID of the MessageBox
* @param labels the labels
* @param nbItems the number of labels
*/
void setMessageBoxLineLabels(int ID, char** labels, int nbLabels);
/**
* Set the name of the columns labels in the editable zone in the MessageBox
*
* @param ID the ID of the MessageBox
* @param labels the labels
* @param nbItems the number of labels
*/
void setMessageBoxColumnLabels(int ID, char** labels, int nbLabels);
/**
* Set the default values of a multi-value editable zone in the MessageBox
*
* @param ID the ID of the MessageBox
* @param values the values
* @param nbItems the number of values
*/
void setMessageBoxDefaultInput(int ID, char** values, int nbValues);
/**
* Set a MessageBox modal or not
*
* @param ID the ID of the MessageBox
* @param status TRUE to set the MessageBox modal and FALSE else
*/
void setMessageBoxModal(int ID, BOOL status);
/**
* Set the MessageBox icon
*
* @param ID the ID of the MessageBox
* @param name the name of the icon
*/
void setMessageBoxIcon(int ID, char *name);
#endif /* !__CALLMESSAGEBOX_H__ */
|