1 /* 2 * dialogs.h: dialogs/user interactions used in pho, an image viewer. 3 * 4 * Copyright 2004 by Akkana Peck. 5 * You are free to use or modify this code under the Gnu Public License. 6 */ 7 8 /* Prompt for an answer. */ 9 extern int Prompt(char* msg, char* yesStr, char* noStr, 10 char* yesChars, char* noChars); 11 12 /* Show or hide the Info dialog. */ 13 extern void ToggleInfo(); 14 extern void UpdateInfoDialog(); 15 16 /* Show or hide the Keywords dialog. Show will also update it; 17 * Hide will update the underlying flags. 18 */ 19 extern void InitKeywords(); 20 extern void ShowKeywordsDialog(); 21 extern void HideKeywordsDialog(); 22 extern void UpdateKeywordsDialog(); 23 extern void RememberKeywords(); 24 extern void NoCurrentKeywords(); /* use when deleting current image */ 25 26 /* A function dialogs must call to stay on top of the image window */ 27 extern void KeepOnTop(GtkWidget* dialog); 28 29 /* Dialogs need to know the ID of the app's current image window, 30 * so they can be transient to it. 31 */ 32 extern GtkWidget *gWin; 33 34 #define IsVisible(dlg) (dlg && dlg->window && (GTK_WIDGET_FLAGS(dlg) & GTK_VISIBLE)) 35 36