summaryrefslogtreecommitdiff
path: root/modules/gui/includes/InitUIMenu.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gui/includes/InitUIMenu.h')
-rwxr-xr-xmodules/gui/includes/InitUIMenu.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/modules/gui/includes/InitUIMenu.h b/modules/gui/includes/InitUIMenu.h
new file mode 100755
index 000000000..1231f2f23
--- /dev/null
+++ b/modules/gui/includes/InitUIMenu.h
@@ -0,0 +1,61 @@
+/*
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ * Copyright (C) 2007 - INRIA - Vincent COUVERT
+ * Copyright (C) 2011 - DIGITEO - 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
+ *
+ */
+
+#ifndef __INIT_UIMENU_H__
+#define __INIT_UIMENU_H__
+
+#include <stdlib.h>
+#include "dynlib_gui.h"
+#include "returnProperty.h"
+#include "BOOL.h"
+
+/**
+ * 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(int iObj, void* pvData, int valueType, int nbRow, int nbCol);
+
+/**
+ * Disable/Enable a menu attached to a graphics window or Scilab console
+ *
+ * @param pParentId the parent UID
+ * @param name name of the menu
+ * @param status is TRUE to enable the menu, false else
+ */
+GUI_IMPEXP void EnableMenu(int iParentId, char *name, BOOL status);
+
+/**
+ * Disable/Enable a submenu attached to a graphics window or Scilab console
+ *
+ * @param pParentId the figure UID
+ * @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 EnableSubMenu(int iParentId, char *name, int position, BOOL status);
+
+/**
+ * Delete a menu attached to a graphics window or Scilab console
+ *
+ * @param pParentId the figure UID
+ * @param name name of the menu
+ */
+GUI_IMPEXP void DeleteMenuWithName(int iParentId, char *name);
+
+#endif /* !__INIT_UIMENU_H__ */