1 /*
2  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3  * Copyright (C) 2007 - INRIA - Vincent COUVERT
4  * Copyright (C) 2011 - DIGITEO - Vincent COUVERT
5  *
6  * Copyright (C) 2012 - 2016 - Scilab Enterprises
7  *
8  * This file is hereby licensed under the terms of the GNU GPL v2.0,
9  * pursuant to article 5.3.4 of the CeCILL v.2.1.
10  * This file was originally licensed under the terms of the CeCILL v2.1,
11  * and continues to be available under such terms.
12  * For more information, see the COPYING file which you should have received
13  * along with this program.
14  *
15  */
16 
17 #ifndef __INIT_UIMENU_H__
18 #define __INIT_UIMENU_H__
19 
20 #include <stdlib.h>
21 #include "dynlib_gui.h"
22 #include "returnProperty.h"
23 #include "BOOL.h"
24 
25 /**
26  * Set the parent of a Menu
27  *
28  * @param sciObj the menu object
29  * @param stackPointer adress in stack for the parent
30  * @param valueType type of the parent in stack
31  * @param nbRow number of row of the parent
32  * @param nbCol number of columns of the parent
33  * @return execution status
34  */
35 GUI_IMPEXP int setMenuParent(int iObj, void* pvData, int valueType, int nbRow, int nbCol);
36 
37 /**
38  * Disable/Enable a menu attached to a graphics window or Scilab console
39  *
40  * @param pParentId the parent UID
41  * @param name name of the menu
42  * @param status is TRUE to enable the menu, false else
43  */
44 GUI_IMPEXP void EnableMenu(int iParentId, char *name, BOOL status);
45 
46 /**
47  * Disable/Enable a submenu attached to a graphics window or Scilab console
48  *
49  * @param pParentId the figure UID
50  * @param name name of the menu
51  * @param position the position of the menu in its parent
52  * @param status is TRUE to enable the menu, false else
53  */
54 GUI_IMPEXP void EnableSubMenu(int iParentId, char *name, int position, BOOL status);
55 
56 /**
57  * Delete a menu attached to a graphics window or Scilab console
58  *
59  * @param pParentId the figure UID
60  * @param name name of the menu
61  */
62 GUI_IMPEXP void DeleteMenuWithName(int iParentId, char *name);
63 
64 #endif /* !__INIT_UIMENU_H__ */
65