changes from H.G. Muller; version 4.3.14
[xboard.git] / winboard / winboard.h
index 5823b2e..265791a 100644 (file)
@@ -61,13 +61,6 @@ typedef struct {
   HFONT hf;\r
 } MyFont;\r
 \r
-typedef enum { \r
-  SizeTiny, SizeTeeny, SizeDinky, SizePetite, SizeSlim, SizeSmall,\r
-  SizeMediocre, SizeMiddling, SizeAverage, SizeModerate, SizeMedium,\r
-  SizeBulky, SizeLarge, SizeBig, SizeHuge, SizeGiant, SizeColossal,\r
-  SizeTitanic, NUM_SIZES \r
-} BoardSize;\r
-\r
 typedef struct {\r
     COLORREF color;\r
     int effects;\r
@@ -101,7 +94,7 @@ VOID ICSInitScript(VOID);
 BOOL CenterWindow(HWND hwndChild, HWND hwndParent);\r
 VOID ResizeEditPlusButtons(HWND hDlg, HWND hText, int sizeX, int sizeY, int newSizeX, int newSizeY);\r
 VOID PromotionPopup(HWND hwnd);\r
-FILE *OpenFileDialog(HWND hWnd, BOOL write, char *defName, char *defExt, \r
+FILE *OpenFileDialog(HWND hWnd, char *write, char *defName, char *defExt, \r
                     char *nameFilt, char *dlgTitle, UINT *number,\r
                     char fileTitle[MSG_SIZ], char fileName[MSG_SIZ]);\r
 VOID InputEvent(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);\r
@@ -135,7 +128,8 @@ VOID ExitArgError(char *msg, char *badArg);
 #define CONSOLE_FONT 3\r
 #define COMMENT_FONT 4\r
 #define EDITTAGS_FONT 5\r
-#define NUM_FONTS 6\r
+#define MOVEHISTORY_FONT 6\r
+#define NUM_FONTS 7\r
 \r
 /* Positions of some menu items.  Origin is zero and separator lines count. */\r
 /* It's gross that these are needed. */\r
@@ -163,3 +157,18 @@ extern MyFont *font[NUM_SIZES][NUM_FONTS];
 \r
 #define COPY_TMP "wbcopy.tmp"\r
 #define PASTE_TMP "wbpaste.tmp"\r
+\r
+/* [AS] Layout management */\r
+typedef struct {\r
+    Boolean visible;\r
+    int x;\r
+    int y;\r
+    int width;\r
+    int height;\r
+} WindowPlacement;\r
+\r
+VOID InitWindowPlacement( WindowPlacement * wp );\r
+\r
+VOID RestoreWindowPlacement( HWND hWnd, WindowPlacement * wp );\r
+\r
+VOID ReattachAfterMove( LPRECT lprcOldPos, int new_x, int new_y, HWND hWndChild, WindowPlacement * pwpChild );\r