[Gcblue-commits] gcb_wx/src/scriptinterface tcSimPythonInterface.cpp,1.11,1.12
Status: Alpha
Brought to you by:
ddcforge
From: <ddc...@us...> - 2004-02-15 19:54:53
|
Update of /cvsroot/gcblue/gcb_wx/src/scriptinterface In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8158/src/scriptinterface Modified Files: tcSimPythonInterface.cpp Log Message: Index: tcSimPythonInterface.cpp =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/src/scriptinterface/tcSimPythonInterface.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** tcSimPythonInterface.cpp 29 Jan 2004 00:05:26 -0000 1.11 --- tcSimPythonInterface.cpp 15 Feb 2004 19:47:22 -0000 1.12 *************** *** 46,49 **** --- 46,54 ---- namespace ScriptInterface { + /** + * Adds a menu item with command string + * @param caption caption for menu item + * @param command command string for item + */ void tcMenuInterface::AddItem(std::string caption, std::string command) { *************** *** 51,54 **** --- 56,65 ---- mpMenu->AddItem(caption, command); } + /** + * Adds a menu item with command string and command parameter + * @param caption caption for menu item + * @param command command string for item + * @param param integer command parameter + */ void tcMenuInterface::AddItemWithParam(std::string caption, std::string command, int param) { *************** *** 56,59 **** --- 67,76 ---- mpMenu->AddItem(caption, command, param); } + /** + * Adds a menu item that gets a coordinate or target from the user via a mouse click + * @param caption caption for menu item + * @param callback script to call after user data is obtained + * @param input type of user data: "Heading", "Target", or "Datum" + */ void tcMenuInterface::AddItemUI(std::string caption, std::string callback, std::string input) { *************** *** 61,64 **** --- 78,88 ---- } + /** + * Adds a menu item that gets a coordinate or target from the user via a mouse click + * @param caption caption for menu item + * @param callback script to call after user data is obtained + * @param input type of user data: "Heading", "Target", or "Datum" + * @param param integer callback parameter for additional information + */ void tcMenuInterface::AddItemUIWithParam(std::string caption, std::string callback, std::string input, int param) *************** *** 74,77 **** --- 98,104 ---- } + /** + * Begin a submenu in current menu + */ void tcMenuInterface::BeginSubMenu(void) { if (mpMenu == NULL) {return;} *************** *** 79,82 **** --- 106,112 ---- } + /** + * Clear menu + */ void tcMenuInterface::Clear(void) { if (mpMenu == NULL) {return;} *************** *** 84,87 **** --- 114,120 ---- } + /** + * End submenu in current menu + */ void tcMenuInterface::EndSubMenu(void) { if (mpMenu == NULL) {return;} |