7 #include <X11/Intrinsic.h>
8 #include <ldb/dbtools.h>
16 #define ZM_MAX_DBT_DIALOG_WIDTH 120
19 #define ZM_CANCEL (-1)
20 #define ZM_BAD_CALL (-2)
40 ZmListSelectionBox (Widget parent,
70 ZmListMultipleSelectionBox (Widget parent,
99 ZmListEnterBox (Widget parent,
116 ZmProjectSelectionBox (Widget parent);
134 ZmDataSelectionBox (Widget parent,
135 const char* project);
153 ZmDataEnterBox (Widget parent,
155 const char* def_nmod);
166 ZmDbtListSelectionBox (Widget parent,
184 ZmDbtFileSelectionBox (Widget parent,
203 ZmDbtFileEnterBox (Widget parent,
218 #define ZM_NEW_DB_ITEM 1
220 ZmDbtItemSelectionBox (Widget parent,
242 #define ZM_CURRENT_DIR ((char*)0)
243 #define ZM_USER_DEFAULTS ((char*)1)
244 #define ZM_PROJECT_LOGS ((char*)2)
245 #define ZM_PROJECT_JOBS ((char*)3)
246 #define ZM_PROJECT_DATA ((char*)4)
247 #define ZM_PROJECT_REPORT ((char*)5)
248 #define ZM_PROJECT_HCOPIES ((char*)6)
249 #define ZM_PROJECT_ARCHIVE ((char*)7)
250 #define ZM_USER_HOME ((char*)8)
251 #define ZM_SYSTEM_ETC ((char*)9)
253 ZmFileSelectionBox (Widget parent,
265 ZmPathSpecToPath (
const char* szPathSpec);
284 ZmDbtNamingBox (Widget parent,
299 ZmPaletteSelectionBox (Widget parent,
300 const char* szDefaultPalette);
309 ZmColorNameSelectionBox (Widget parent,
310 const char* szDefaultColor);
316 ZmDialogSingleSelectionList = 0,
317 ZmDialogMultipleSelectionList
324 ZmPreselectByPos = 0,
326 ZmPreselectByTaggedDbtName
328 } ZmDialogPreselectKind;
331 typedef void (*ZmCustomWidgetProc) (Widget wParent, Widget wTarget);
340 ZmDialogPreselectKind preselect_kind;
343 char *preselect_string;
346 ZmDialogType dialog_type;
349 void *multselect_list;
350 ZmCustomWidgetProc custom_selbox_proc;
355 #define ZmDM_HELP_SECTION (1<<0)
356 #define ZmDM_TITLE_STRING (1<<1)
357 #define ZmDM_RESOURCE_NAME (1<<2)
358 #define ZmDM_PRESELECT_KIND (1<<3)
359 #define ZmDM_PRESELECT_POS (1<<4)
360 #define ZmDM_PRESELECT_TAG (1<<5)
361 #define ZmDM_PRESELECT_STRING (1<<6)
362 #define ZmDM_PRESELECT_DBTNAME (1<<7)
363 #define ZmDM_DIALOG_ID (1<<8)
364 #define ZmDM_DIALOG_TYPE (1<<9)
365 #define ZmDM_MULTSELECT_MAX (1<<10)
366 #define ZmDM_MULTSELECT_NUM (1<<11)
367 #define ZmDM_MULTSELECT_LIST (1<<12)
368 #define ZmDM_CUSTOM_SELBOX_PROC (1<<13)
381 ZmD_PreselectDbtName,
389 } ZmDialogCustomOptionName;
396 void ZmCustomizeDialog (ZmDialogCustomOptionName dco1, ...);
401 void ZmClearCustomOptions ();
405 const char* ZmDialogGetResourceName (
const char* szGivenRes,
406 const char* szDefaultRes);
410 Logic ZmDialogSetupHelp (Widget wSelBox);
413 void ZmDialogSetupTitle (Widget wShell,
414 const char* szGivenTitle,
415 const char* szDefaultTitle);
418 FILE* ZmDialogStateFile (
const char* szDialogId,
422 #ifdef __CustomOptionVariable
425 #define EXTERN extern
Definition: dbnamedefs.h:67
Definition: dialogs.h:334
Definition: dbnamedefs.h:85