X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwinboard.h;h=163fb63d09b19a935777c9926fdedc6d53e1115f;hb=a84055fab56abd3cb232692e6d7f24d122f74497;hp=af8c3f98fad2b62cf5d0a0e39234a83a9ff5fc3d;hpb=d5c36d4669c2f625af7c280c5a4ebdc4ba284e95;p=xboard.git diff --git a/winboard/winboard.h b/winboard/winboard.h index af8c3f9..163fb63 100644 --- a/winboard/winboard.h +++ b/winboard/winboard.h @@ -121,8 +121,6 @@ VOID ChangeBoardSize(BoardSize newSize); BOOL APIENTRY MyCreateFont(HWND hwnd, MyFont *font); VOID ErrorPopDown(VOID); VOID EnsureOnScreen(int *x, int *y, int minX, int minY); -typedef char GetFunc(void *getClosure); -VOID ParseArgs(GetFunc get, void *cl); HBITMAP DoLoadBitmap(HINSTANCE hinst, char *piece, int squareSize, char *suffix); COLORREF ParseColorName(char *name); @@ -134,6 +132,7 @@ void InitComboStrings(HANDLE hwndCombo, char **cd); BOOLEAN MyLoadSound(MySound *ms); BOOLEAN MyPlaySound(MySound *ms); VOID ExitArgError(char *msg, char *badArg); +void SaveSettings(char* name); /* Constants */ @@ -183,18 +182,9 @@ extern BoardSize boardSize; typedef enum { W_Main, W_Console, W_Comment, W_Tags, W_GameList, - W_MoveHist, W_EngineOut, W_GameList, NUM_WINDOWS + W_MoveHist, W_EngineOut, NUM_WINDOWS } WindowID; -/* [AS] Layout management */ -typedef struct { - Boolean visible; - int x; - int y; - int width; - int height; -} WindowPlacement; - extern WindowPlacement placementTab[NUM_WINDOWS]; extern HWND hwndTab[NUM_WINDOWS]; // this remains pure front-end. @@ -204,28 +194,16 @@ VOID ReattachAfterMove( LPRECT lprcOldPos, int new_x, int new_y, HWND hWndChild, VOID ReattachAfterSize( LPRECT lprcOldPos, int new_w, int new_h, HWND hWndChild, WindowPlacement * pwpChild ); BOOL GetActualPlacement( HWND hWnd, WindowPlacement * wp ); -extern WindowPlacement wpEngineOutput; -extern WindowPlacement wpEvalGraph; -extern WindowPlacement wpMoveHistory; -extern WindowPlacement wpGameList; -extern WindowPlacement wpTags; - VOID MoveHistoryPopUp(); VOID MoveHistoryPopDown(); VOID MoveHistorySet( char movelist[][2*MOVE_LEN], int first, int last, int current, ChessProgramStats_Move * pvInfo ); -BOOL MoveHistoryIsUp(); extern HWND moveHistoryDialog; VOID EvalGraphSet( int first, int last, int current, ChessProgramStats_Move * pvInfo ); VOID EvalGraphPopUp(); VOID EvalGraphPopDown(); -Boolean EvalGraphIsUp(); extern HWND evalGraphDialog; -VOID EngineOutputPopUp(); -VOID EngineOutputPopDown(); -BOOL EngineOutputIsUp(); -VOID EngineOutputUpdate( FrontEndProgramStats * stats ); extern HWND engineOutputDialog; VOID ShowGameListProc(void);