Index: doc-rnd/gpmi/packages/actions_ref.html =================================================================== --- doc-rnd/gpmi/packages/actions_ref.html (revision 789) +++ doc-rnd/gpmi/packages/actions_ref.html (revision 790) @@ -6,9 +6,9 @@
Events do not have return value. The first argument is always the even id +
Events do not have return value. The first argument is always the even id. Event handlers defined in scripts get all event arguments converted to string (types below are informational).
- The following functions are registered in script context.
- The following functions are registered in script context.
- ACTE_action(int event_id, char* name, int argc, int x, int y)
+ ACTE_action(int event_id, const char* name, int argc, int x, int y)
Generated when an action registered by the script is executed.
Arguments:
@@ -25,7 +25,7 @@
argv[]: arguments the gui was initialized with - unaccessible for the scripts.
- ACTE_unload(int event_id, char* conffile)
+ ACTE_unload(int event_id, const char* conffile)
Generated right before unloading a script to give the script a chance
to clean up.
@@ -37,7 +37,7 @@
int action_register(char* name, char* need_xy, char* description, char* syntax)
+ int action_register(const char* name, const char* need_xy, const char* description, const char* syntax)
Register an action in PCB - when the action is executed, event
ACTE_action is generated with the action name.
@@ -52,12 +52,12 @@
- char* action_arg(int argn)
+ const char* action_arg(int argn)
extract the (argn)th event argument for the current action (makes sense only in an ACTE_action event handler
- int action(char* cmdline)
+ int action(const char* cmdline)
call an existing action using PCB syntax (e.g. foo(1, 2, 3))
Returns non-zero on error; generally returns value of the action
@@ -64,7 +64,7 @@
(which is also non-zero on error).
- void create_menu(char* path, char* action, char* mnemonic, char* hotkey, char* tooltip)
+ void create_menu(const char* path, const char* action, const char* mnemonic, const char* hotkey, const char* tooltip)
Create a new menu or submenu at path. Missing parents are created
automatically with empty action, mnemonic, hotkey and tooltip.
Index: doc-rnd/gpmi/packages/dialogs_ref.html
===================================================================
--- doc-rnd/gpmi/packages/dialogs_ref.html (revision 789)
+++ doc-rnd/gpmi/packages/dialogs_ref.html (revision 790)
@@ -24,12 +24,12 @@
void dialog_log(char* msg)
+ void dialog_log(const char* msg)
Append a msg to the log (log window and/or stderr).
- int dialog_confirm(char* msg, char* ok, char* cancel)
+ int dialog_confirm(const char* msg, const char* ok, const char* cancel)
Ask the user for confirmation (usually using a popup). Returns 0 for
cancel and 1 for ok.
@@ -42,7 +42,7 @@
those buttons.
- void dialog_report(char* title, char* msg)
+ void dialog_report(const char* title, const char* msg)
Pop up a report dialog.
Arguments:
@@ -50,7 +50,7 @@
msg: message
- char* dialog_prompt(char* msg, char* default_)
+ char* dialog_prompt(const char* msg, const char* default_)
Ask the user to input a string (usually in a popup).
Arguments:
@@ -59,7 +59,7 @@
Returns the answer.
- char* dialog_fileselect(char* title, char* descr, char* default_file_, char* default_ext, char* history_tag, flags)
+ char* dialog_fileselect(const char* title, const char* descr, char* default_file_, char* default_ext, const char* history_tag, dialog_fileselect_t flags)
Pops up a file selection dialog.
Arguments:
@@ -77,7 +77,7 @@
Audible beep
- int dialog_progress(int so_far, int total, char* message)
+ int dialog_progress(int so_far, int total, const char* message)
Request the GUI hid to draw a progress bar.
Arguments:
@@ -89,7 +89,7 @@
- int dialog_attribute(* hid, char* title, char* descr)
+ int dialog_attribute(hid_t* hid, const char* title, const char* descr)
Pop up an attribute dialog; content (widgets) of the dialog box are coming
from hid (see the hid package).