Lines Matching refs:folder

2  * $XConsortium: folder.c,v 2.44 94/08/29 20:25:49 swick Exp $
27 /* $XFree86: xc/programs/xmh/folder.c,v 1.3 2001/10/28 03:34:38 tsi Exp $ */
29 /* folder.c -- implement buttons relating to folders and other globals. */
43 Toc toc; /* the toc of the selected folder */
44 Toc original_toc; /* the toc of the current folder */
143 /* Open the selected folder in this screen. */
158 PopupError(scrn->parent, "Cannot open selected folder.");
171 /* This action may be invoked from folder menu buttons or from folder
173 * In this case, the action will open a folder only if that folder
174 * was actually selected from a folder button or menu. If the folder
175 * was selected from a folder menu, the menu entry callback procedure,
176 * which changes the selected folder, and is invoked by the "notify"
181 * source widget is a menu button or a folder menu. However, it
183 * the folder menu buttons or the folder menus. In that case, it will
184 * open the currently selected folder.
186 * If given a parameter, it will take it as the name of a folder to
225 /* Make a new scrn displaying the given folder. */
240 PopupError(scrn->parent, "Cannot open selected folder.");
256 /* Create a new folder with the given name. */
285 XtAsprintf(&label, "Cannot create folder \"%s\". Try again.",
315 /* Create a new folder. Requires the user to name the new folder. */
324 PopupPrompt(scrn->parent, "Create folder named:", CreateFolder);
386 /* Display the toc of the folder to be deleted. */
391 * folder to be deleted, and ask for confirmation if they are found.
407 /* Ask the user for confirmation on destroying the folder. */
462 * whose menu field is null. It would be better to share folder menus
478 /* If we've deleted the current folder, show the Initial Folder */
492 /* Delete the selected folder. Requires confirmation! */
505 /* Too hard to clean up xmh when the folder doesn't exist anymore. */
507 "Cannot open selected folder for confirmation to delete.");
511 /* Prevent more than one confirmation popup on the same folder.
512 * TestAndSet returns true if there is a delete pending on this folder.
515 PopupError(scrn->parent, "There is a delete pending on this folder.");
542 /*----- Notes on MenuButtons as folder buttons ---------------------------
544 * I assume that the name of the button is identical to the name of the folder.
582 /* menu entry selection callback for folder menus. */
640 /* When a subfolder and its parent folder have identical names,
663 * Menus are created for folder buttons if the folder has at least one
670 * parent folder. Remaining entries are alphabetized.
699 /* The first entry is always the parent folder */
758 * selects a folder button. A folder button represents a folder
761 * subfolders, this routine will mark the folder as having no
796 * emulate toggle widgets in their function of folder selection.
799 * selected folder.
813 * currently selected folder will be updated if the user has released
870 * With no parameters, the currently selected folder is pushed.
890 /* Pop the stack & take that folder to be the currently selected folder. */
900 const char *folder;
902 if ((folder = Pop(&scrn->folder_stack)) != NULL)
903 SetCurrentFolderName(scrn, folder);
1098 /* don't change any folder or msg state now; this is only
1140 "Commit all changes to %s folder?", toc->foldername);
1183 { /* confirm any uncommitted folder changes */