Index: trunk/doc-rnd/gpmi/packages/actions_ref.html =================================================================== --- trunk/doc-rnd/gpmi/packages/actions_ref.html (revision 784) +++ trunk/doc-rnd/gpmi/packages/actions_ref.html (revision 785) @@ -51,6 +51,11 @@ Returns 0 on success. + +

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)

Index: trunk/doc-rnd/gpmi/packages/dialogs_ref.html
===================================================================
--- trunk/doc-rnd/gpmi/packages/dialogs_ref.html	(revision 784)
+++ trunk/doc-rnd/gpmi/packages/dialogs_ref.html	(revision 785)
@@ -4,9 +4,21 @@
 

Reference manual for package dialogs

Automatically generated from dialogs.h -

Events

+

Enums

-

Events do not have return value. The first argument is always the even id +

Enum values should be passed on as strings. + +

dialog_fileselect_e

+
+ Filter on what files a file select dialog should list 
+
+ +
value meaning +
FS_NONE none of the below +
FS_READ when the selected file will be read, not written (HID_FILESELECT_READ) +
FS_NOT_EXIST the function calling hid->fileselect will deal with the case when the selected file already exists. If not given, then the gui will prompt with an "overwrite?" prompt. Only used when writing. (HID_FILESELECT_MAY_NOT_EXIST) +
FS_TEMPLATE the call is supposed to return a file template (for gerber output for example) instead of an actual file. Only used when writing. (HID_FILESELECT_IS_TEMPLATE) +

Functions

@@ -37,6 +49,28 @@ title: title of the window msg: message
+ +

char* dialog_prompt(char* msg, char* default_)

+
+ Ask the user to input a string (usually in a popup).
+   Arguments:
+     msg: message or question text
+     default_: default answer (this may be filled in on start)
+   Returns the answer. 
+
+
+

char* dialog_fileselect(char* title, char* descr, char* default_file_, char* default_ext, char* history_tag, flags)

+
+ Pops up a file selection dialog.
+   Arguments:
+     title: window title
+     descr: description
+     default_file_
+     default_ext: default file name extension
+     history_tag
+     flags: one or more flags (see below)
+   Returns the selected file or NULL (empty). 
+

void dialog_beep(void)