X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwinboard.h;h=b3eee24f38f24434c538e27ef6facd73bef302b9;hb=165dd54f68ac49be0b50c3d2e1c5c054decdc5ac;hp=89c50ab31af8ad000cfb59ed7347f47dbfc5fbc6;hpb=4099d0667f611390759e74b42cadf4325ee1f2cd;p=xboard.git diff --git a/winboard/winboard.h b/winboard/winboard.h index 89c50ab..b3eee24 100644 --- a/winboard/winboard.h +++ b/winboard/winboard.h @@ -5,7 +5,7 @@ * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * @@ -85,6 +85,7 @@ typedef struct { typedef struct { char* name; void* data; + int flag; // [HGM] needed to indicate if data was malloc'ed or not } MySound; typedef struct { @@ -105,7 +106,7 @@ VOID InitAppData(LPSTR); VOID InitDrawingColors(VOID); VOID InitDrawingSizes(BoardSize boardSize, int flags); VOID InitMenuChecks(VOID); -VOID ICSInitScript(VOID); +int ICSInitScript(VOID); BOOL CenterWindow(HWND hwndChild, HWND hwndParent); VOID ResizeEditPlusButtons(HWND hDlg, HWND hText, int sizeX, int sizeY, int newSizeX, int newSizeY); VOID PromotionPopup(HWND hwnd); @@ -131,11 +132,14 @@ VOID ParseFontName(char *name, MyFontParams *mfp); void InitComboStrings(HANDLE hwndCombo, char **cd); BOOLEAN MyLoadSound(MySound *ms); BOOLEAN MyPlaySound(MySound *ms); -VOID ExitArgError(char *msg, char *badArg); +VOID ExitArgError(char *msg, char *badArg, Boolean quit); void SaveSettings(char* name); BOOL BrowseForFolder( const char * title, char * path ); VOID TourneyPopup(); VOID LoadEnginePopUp(); +VOID LoadOptionsPopup(HWND hDlg); +VOID InitTextures(); +void ThemeOptionsPopup(HWND hwnd); /* Constants */ @@ -146,7 +150,8 @@ VOID LoadEnginePopUp(); #define COMMENT_FONT 4 #define EDITTAGS_FONT 5 #define MOVEHISTORY_FONT 6 -#define NUM_FONTS 7 +#define GAMELIST_FONT 7 +#define NUM_FONTS 8 /* Positions of some menu items. Origin is zero and separator lines count. */ /* It's gross that these are needed. */ @@ -198,10 +203,8 @@ BOOL GetActualPlacement( HWND hWnd, WindowPlacement * wp ); VOID MoveHistoryPopUp(); VOID MoveHistoryPopDown(); -VOID MoveHistorySet( char movelist[][2*MOVE_LEN], int first, int last, int current, ChessProgramStats_Move * pvInfo ); extern HWND moveHistoryDialog; -VOID EvalGraphSet( int first, int last, int current, ChessProgramStats_Move * pvInfo ); VOID EvalGraphPopUp(); VOID EvalGraphPopDown(); extern HWND evalGraphDialog; @@ -213,3 +216,4 @@ extern HWND gameListDialog; VOID EditTagsProc(void); extern HWND editTagsDialog; +extern int screenWidth, screenHeight;