File: InitUIMenu.h

package info (click to toggle)
scilab 5.2.2-9
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 334,832 kB
  • ctags: 52,586
  • sloc: xml: 526,945; ansic: 223,590; fortran: 163,080; java: 56,934; cpp: 33,840; tcl: 27,936; sh: 20,397; makefile: 9,908; ml: 9,451; perl: 1,323; cs: 614; lisp: 30
file content (92 lines) | stat: -rw-r--r-- 2,589 bytes parent folder | download | duplicates (2)
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
/*
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 * Copyright (C) 2007 - 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-en.txt
 *
 */

#ifndef __INIT_UIMENU_H__
#define __INIT_UIMENU_H__

#include <stdlib.h>
#include "dynlib_gui.h"
#include "ObjectStructure.h"
#include "returnProperty.h"
#include "BOOL.h"

/**
 * Create a Menu
 *
 * @param sciObj Scilab object for this Menu    
 */
GUI_IMPEXP void InitUIMenu(sciPointObj* sciObj);

/**
 * Set the parent of a Menu
 *
 * @param sciObj the menu object   
 * @param stackPointer adress in stack for the parent
 * @param valueType type of the parent in stack
 * @param nbRow number of row of the parent
 * @param nbCol number of columns of the parent
 * @return execution status
 */
GUI_IMPEXP int setMenuParent(sciPointObj* sciObj, size_t stackPointer, int valueType, int nbRow, int nbCol);

/**
 * Disable/Enable a menu attached to the console
 *
 * @param name name of the menu 
 * @param status is TRUE to enable the menu, false else
 */
GUI_IMPEXP void EnableRootMenu(char *name, BOOL status);

/**
 * Disable/Enable a submenu attached to the console
 *
 * @param name name of the menu 
 * @param position the position of the menu in its parent
 * @param status is TRUE to enable the menu, false else
 */
GUI_IMPEXP void EnableRootSubMenu(char *name, int position, BOOL status);

/**
 * Disable/Enable a menu attached to a graphics window
 *
 * @param figurenum index of the window
 * @param name name of the menu 
 * @param status is TRUE to enable the menu, false else
 */
GUI_IMPEXP void EnableFigureMenu(int figurenum, char *name, BOOL status);

/**
 * Disable/Enable a submenu attached to a graphics window
 *
 * @param figurenum index of the window
 * @param name name of the menu 
 * @param position the position of the menu in its parent
 * @param status is TRUE to enable the menu, false else
 */
GUI_IMPEXP void EnableFigureSubMenu(int figurenum, char *name, int position, BOOL status);

/**
 * Delete a menu attached to the console
 *
 * @param name name of the menu 
 */
GUI_IMPEXP void DeleteRootMenu(char *name);

/**
 * Delete a menu attached to a graphics window
 *
 * @param figurenum index of the window
 * @param name name of the menu 
 */
GUI_IMPEXP void DeleteFigureMenu(int figurenum, char *name);

#endif /* !__INIT_UIMENU_H__ */