X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=dialogs.h;h=ad483e92aef33fffdc504fd78c90c6be19329c4a;hb=a8b6d76d8c9e384549609d205174963f2a9ab8e7;hp=d77708ba53d184822182d3c62bafbe4c7f1ee45c;hpb=55fdfba16e54a8c9e770124f4a468956b478e90c;p=xboard.git diff --git a/dialogs.h b/dialogs.h index d77708b..ad483e9 100644 --- a/dialogs.h +++ b/dialogs.h @@ -1,7 +1,7 @@ /* * dialogs.h -- shared variables for generic dialog popup of XBoard * - * Copyright 2000, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. + * Copyright 2000, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. * ------------------------------------------------------------------------ * * GNU XBoard is free software: you can redistribute it and/or modify @@ -87,14 +87,14 @@ #define W_WHITE 12 #define W_BLACK 13 #define W_SMALL 15 // title in small layout -#define W_MESSG 16 +#define W_MESSG 16 #define W_BUTTON 17 // button bar #define W_PAUSE 20 #define W_BOARD 24 #define W_MENUW 25 #define W_MENUB 26 #define W_DROP 27 // drop (popup) menu - + 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, ChatDlg, DummyDlg, HistoryDlg, // persistent: no grab and reused @@ -142,6 +142,7 @@ void SetColor P((char *colorName, Option *box)); //void ColorChanged P((Widget w, XtPointer data, XEvent *event, Boolean *b)); void SetInsertPos P((Option *opt, int pos)); void HardSetFocus P((Option *opt)); +void CursorAtEnd P((Option *opt)); void GetWidgetText P((Option *opt, char **buf)); void SetWidgetText P((Option *opt, char *buf, int n)); void GetWidgetState P((Option *opt, int *state)); @@ -151,6 +152,7 @@ void SetDialogTitle P((DialogClass dlg, char *title)); void LoadListBox P((Option *opt, char *emptyText, int n1, int n2)); void HighlightListBoxItem P((Option *opt, int nr)); void HighlightWithScroll P((Option *opt, int sel, int max)); +void ScrollToCursor P((Option *opt, int pos)); int SelectedListBoxItem P((Option *opt)); void BoardFocus P((void)); void FocusOnWidget P((Option *opt, DialogClass dlg)); @@ -189,5 +191,3 @@ void SendString P((char *p)); // in ngamelist.c int GameListClicks P((int direction)); void SetFilter P((void)); - -