X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=dialogs.h;h=a8f791ae740eb96f5a632fa776f178aa7fb8f1c1;hb=c0d0ea91773838e5d11c3cd3b407fea251058c34;hp=835b369f4e592ba37e8b2f5d223a7baacbfee247;hpb=dcb381e902c84b25e2a7301c5ba1d9f437503b5b;p=xboard.git diff --git a/dialogs.h b/dialogs.h index 835b369..a8f791a 100644 --- a/dialogs.h +++ b/dialogs.h @@ -81,18 +81,21 @@ typedef enum { // identifier of dialogs done by GenericPopup TransientDlg=0, // transient: grabs mouse events and is destroyed at pop-down (so other dialog can use this ID next time) -CommentDlg, TagsDlg, TextMenuDlg, InputBoxDlg, NoDlg, BrowserDlg, HistoryDlg, // persistent: no grab and reused +CommentDlg, TagsDlg, TextMenuDlg, InputBoxDlg, NoDlg, DummyDlg, HistoryDlg, // persistent: no grab and reused GameListDlg, EngOutDlg, +EvalGraphDlg, PromoDlg, // this and beyond are destroyed at pop-down ErrorDlg, AskDlg, // this and beyond do grab mouse events (and are destroyed) FatalDlg, BoardWindow, +BrowserDlg, NrOfDialogs // dummy for total } DialogClass; typedef Option *PointerCallback(int n, int x, int y); +typedef void ListBoxCallback(int n, int selected); typedef void ButtonCallback(int n); typedef int OKCallback(int n); @@ -104,7 +107,7 @@ extern ChessProgramState *currentCps; extern int dialogError; extern ButtonCallback *comboCallback; -extern WindowPlacement wpComment, wpTags, wpMoveHistory; +extern WindowPlacement wpComment, wpTags, wpMoveHistory, wpMain; extern char *marked[]; extern Boolean shellUp[]; extern Option textOptions[], typeOptions[]; @@ -137,10 +140,16 @@ int ReadScroll P((Option *opt, float *top, float *bottom)); void SetScroll P((Option *opt, float f)); void AddHandler P((Option *opt, int nr)); void SendText P((int n)); +FILE *Browse P((DialogClass dlg, char *label, char *proposed, char *ext, + Boolean pathFlag, char *mode, char **name, FILE **fp)); void InitDrawingParams P(()); // in xboard.c void ErrorPopUp P((char *title, char *text, int modal)); int ShiftKeys P((void)); +void SetClockIcon P((int color)); +void DelayedLoad P((void)); +void DisplayTimerLabel P((Option *opt, char *color, long timer, int highlight)); +Option *BoardPopUp P((int squareSize, int lineGap, void *clockFontThingy)); int SetCurrentComboSelection P((Option *opt)); void BoxAutoPopUp P((char *buf));