⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exvpromptp.3

📁 speech signal process tools
💻 3
字号:
.\" Copyright (c) 1991 Entropic Research Laboratory, Inc.; All rights reserved.\" @(#)exvpromptp.3	1.2 22 Oct 1991 ERL.ds ]W (c) 1991 Entropic Research Laboratory, Inc..TH EXV_PROMPT_PARAMS 3\-ESPSxu 22 Oct 1991.SH NAME.nfexv_prompt_params \- fill in a parameter file using X-Windows prompting form.fi.SH SYNOPSIS.nf.ft B#include <esps/esps.h>#include <esps/exview.h>extern int debug_level;exv_prompt_params(param_file, flag, check_file, outfile, program, x_pos, y_pos)char *param_file;	int flag;		char *check_file;char *outfile;		char *program;		int x_pos, y_pos;	.ft.fi.SH DESCRIPTION.PP\fIexv_prompt_params\fP provides for the interactive specification of parameter files used by ESPS programs.  .PP\fIexv_prompt_params\fP processes an input parameter file\fIparam_file\fP, and produces an output parameter file \fIoutfile\fP.The definite parameters in \fIparam_file\fP are copied to\fIoutfile\fP.  An X-Windows prompt form is displayed containing items for each of the indefinite parameters in \fIparam_file\fP.  For each item, the prompt string, name, and default value are shown.  Users can change any of the values.  When the "Done" button is pressed, the current set of values are added to\fIoutfile\fP and \fIexv_prompt_params\fP returns.  .PPIF numerical limits are included in \fIparam_file\fP, these limits areenforced by \fIexv_prompt_params\fP.  If string choices are included in\fIparam_file\fP for string items, the interactive display for thatitem consists of mutually-exclusive push-buttons labelled with thestring choices (otherwise, there's just a text entry item).  See\fIread_params\fP (3\-\s-1ESPS\s+1) for details about the\fIparam_file\fP format..PP\fIexv_prompt_params\fP uses \fIread_params\fP (3\-\s-1ESPS\s+1) to readin \fIparam_file\fP.  The parameters \fIflag\fP and \fIcheck_file\fPare passed directly to \fIread_params\fP; thus, if flag isSC_CHECK_FILE, if an ESPS Common file exists, and if Common processingis enabled (see ESPS COMMON, below), then the Common file is processedif \fIcheck_file\fP matches the value of the filename entry in the Commonfile or if \fIcheck_file\fP is NULL.  If a Common file is processed,\fIread_params\fP compares the last modification time of the ESPS Common and\fIparam_file\fP.  The parameter values in the younger of the two filestakes precedence.  Parameter values not occurring in the ESPS Commonfile are read from \fIparam_file\fP.  Note that, in the case ofindefinite assignment ("?=" or "=?" used as the assignment operator inthe parameter file), Common processing will still occur for theassigned default value.  If the value from Common takes precedence, itwill be this value that is shown as the default in the \fIexv_prompt_params\fP .PPIf \fIprogram\fP is not NULL, a "Help" button is included in thedisplay window.  If \fIprogram\fP doesn't contain a pathspecification (i.e., doesn't contain a "/"), it is assumed to name an ESPS program corresponding to \fIparam_file\fP.  In this case, pressing "Help" brings up a window with the output of "eman program"\- see \fIeman\fP (1\-\s-1ESPS\s+1).  If \fIprogram\fP contains a "/", pressing "Help" just brings up the contents of the file\fIprogram\fP.  .PPIf \fIx_pos\fP and \fIy_pos\fP are not zero, they are used to hints tothe window manager for the position the prompt window.  Otherwise, theposition is left to the window manager.  Whether or not the windowmanager follows the hints varies with window managers.  For example, \fIolwm\fP does so by default, but \fItwm\fP will only do so if .nf	UsePPosition "on"   # use program-specified size hints.fiis contained in the user's .twmrc (Otherwise, window placementrequires user-interation.).PPThe display window contains a "Defaults" button which, if pressed, restores all parameter values to the defaults in \fIparam_file\fP orESPS Common.  .PP\fIexv_prompt_params\fP returns 0 if the parameter file was readsuccessfully, the user exited via the "DONE" button, and allparameters were written successfully.  If there was trouble processingthe input parameter file, \fIexv_prompt_params\fP returns 1.  If theuser exits via the "DONE" button but the parameters were not writtensuccessfully, \fIexv_prompt_params\fP returns 2.  If\fIexv_prompt_params\fP exits for other reasons, it returns 3; themost common reasons reasons are inability to create a window in the firstplace, a window-manager quit operation, or an explicit kill signal..SH ESPS COMMON.PPESPS Common processing may be disabled by setting the environment variableUSE_ESPS_COMMON to "off".  The default ESPS Common file is .espscom in the user's home directory.  This may be overidden by settingthe environment variable ESPSCOM to the desired path.  If ESPS_VERBOSEis set to 1 or greater, \fIread_params\fP will report the values of any parameters take from Common. .SH EXAMPLES.PP.SH ERRORS AND DIAGNOSTICS.PPSuitable error messages are printed if the return value is -1.  If \fIdebug_level\fP > 0, various debugging messages are printed.  More details are printed as \fIdebug_level\fP increases (maximum is 3).  .SH FUTURE CHANGES.PP.SH BUGS.PPNone known..SH REFERENCES.PP.SH "SEE ALSO".PP\fIexv_make_text_window\fP (3\-\s-1ESPSxu\s+1), \fIexv_helpfile\fP (3\-\s-1ESPSxu\s+1), \fIexv_make_text_window\fP (3\-\s-1ESPSxu\s+1), \fIexv_bbox\fP (3\-\s-1ESPSxu\s+1),\fIexprompt\fP (1\-\s-1ESPSxu\s+1), \fIexpromptrun\fP (1\-\s-1ESPS\s+1).SH AUTHOR.PPProgram and documentation by John Shore

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -