parser.c parser.h \
pgntags.c \
uci.c \
- args.h \
+ args.h xboard2.h \
board.c board.h \
draw.c draw.h \
dialogs.c dialogs.h \
#include "common.h"
#include "frontend.h"
#include "backend.h"
+#include "xboard2.h"
#include "moves.h"
#include "board.h"
#include "draw.h"
#include "common.h"
#include "frontend.h"
#include "backend.h"
-#include "xboard.h"
+#include "xboard2.h"
#include "menus.h"
#include "dialogs.h"
#include "gettext.h"
extern char commentTranslations[];
extern char historyTranslations[];
-extern Pixel timerBackgroundPixel;
+//extern Pixel timerBackgroundPixel;
extern int values[];
extern ChessProgramState *currentCps;
extern int dialogError;
void MarkMenu P((char *item, int dlgNr));
int AppendText P((Option *opt, char *s));
void SetColor P((char *colorName, Option *box));
-void ColorChanged P((Widget w, XtPointer data, XEvent *event, Boolean *b));
+//void ColorChanged P((Widget w, XtPointer data, XEvent *event, Boolean *b));
void SetInsertPos P((Option *opt, int pos));
void HardSetFocus P((Option *opt));
void GetWidgetText P((Option *opt, char **buf));
#include <locale.h>
#endif
-
-// [HGM] bitmaps: put before incuding the bitmaps / pixmaps, to know how many piece types there are.
#include "common.h"
#include "backend.h"
static int oldWidth, oldHeight;
static VariantClass oldVariant;
static int oldMono = -1, oldTwoBoards = 0;
- extern Widget formWidget;
- if(!formWidget) return;
+ if(!mainOptions[W_BOARD].handle) return;
if(oldTwoBoards && !twoBoards) PopDown(DummyDlg);
oldTwoBoards = twoBoards;
void CreateGrid P((void));
void CreateGCs P((int redo));
void DelayedDrag P((void));
-void ReadBitmap P((Pixmap *pm, String name, unsigned char bits[],
- u_int wreq, u_int hreq));
-extern XFontStruct *coordFontStruct, *countFontStruct;
-extern Font coordFontID, countFontID;
-extern int xScreen;
extern int lineGap, squareSize;
-extern Pixel lightSquareColor, darkSquareColor, whitePieceColor, blackPieceColor,
- highlightSquareColor, premoveHighlightColor;
// defined in draw.c
void CreateGCs P((int redo));
#include "frontend.h"
#include "backend.h"
#include "dialogs.h"
+#include "menus.h"
#include "engineoutput.h"
#include "gettext.h"
}
void
-EngineOutputProc (Widget w, XEvent *event, String *prms, Cardinal *nprms)
+EngineOutputProc ()
{
if (!PopDown(EngOutDlg)) EngineOutputPopUp();
}
#include "common.h"
#include "backend.h"
#include "xhistory.h"
-#include "xboard.h"
#include "dialogs.h"
#include "gettext.h"
int fdTo, fdFrom;
} ChildProc;
-#define INPUT_SOURCE_BUF_SIZE 8192
-
-typedef struct {
- CPKind kind;
- int fd;
- int lineByLine;
- char *unused;
- InputCallback func;
- XtInputId xid;
- char buf[INPUT_SOURCE_BUF_SIZE];
- VOIDSTAR closure;
-} InputSource;
-
extern char *oldICSInteractionTitle;
char *ExpandPathName P((char *path));
}
}
+#define INPUT_SOURCE_BUF_SIZE 8192
+
+typedef struct {
+ CPKind kind;
+ int fd;
+ int lineByLine;
+ char *unused;
+ InputCallback func;
+ XtInputId xid;
+ char buf[INPUT_SOURCE_BUF_SIZE];
+ VOIDSTAR closure;
+} InputSource;
+
void
DoInputCallback (caddr_t closure, int *source, XtInputId *xid)
{
#include "backendz.h"
#include "moves.h"
#include "xboard.h"
+#include "xboard2.h"
#include "childio.h"
#include "xgamelist.h"
#include "xhistory.h"
#include "xevalgraph.h"
-#include "xedittags.h"
#include "menus.h"
#include "board.h"
#include "dialogs.h"
WindowPlacement wpGameList;
WindowPlacement wpTags;
+#define INPUT_SOURCE_BUF_SIZE 8192
+
+typedef struct {
+ CPKind kind;
+ int fd;
+ int lineByLine;
+ char *unused;
+ InputCallback func;
+ XtInputId xid;
+ char buf[INPUT_SOURCE_BUF_SIZE];
+ VOIDSTAR closure;
+} InputSource;
+
/* This magic number is the number of intermediate frames used
in each half of the animation. For short moves it's reduced
void NewCommentPopup P((char *title, char *text, int index));
void CatchDeleteWindow(Widget w, String procname);
void GenericPopDown P((Widget w, XEvent *event, String *prms, Cardinal *nprms));
-void InitDrawingSizes P((int i, int j));
-void SendToICS P((char *buf));
-void SendToProgram P((char *message, ChessProgramState *cps));
void SetFocus(Widget w, XtPointer data, XEvent *event, Boolean *b); // from xoptions.c
void TypeInProc P((Widget w, XEvent *event, String *prms, Cardinal *nprms));
Widget CreateMenuItem P((Widget menu, char *msg, XtCallbackProc CB, int n));
extern Pixmap xMarkPixmap, wIconPixmap, bIconPixmap;
extern char *layoutName;
extern Pixel timerForegroundPixel, timerBackgroundPixel, dialogColor, buttonColor;
-extern int searchTime;
extern Atom wm_delete_window;
-extern int squareSize, lineGap, defaultLineGap, useImages, useImageSqs;
-extern int startedFromPositionFile;
-extern char *icsTextMenuString;
+extern int useImages, useImageSqs;
extern char ICSInputTranslations[];
extern char *selected_fen_position;
extern GC coordGC;
--- /dev/null
+void SendToProgram P((char *message, ChessProgramState *cps));
+void SendToICS P((char *buf));
+void InitDrawingSizes P((int i, int j));
+
+extern int searchTime;
+extern int squareSize, lineGap, defaultLineGap;
+extern int startedFromPositionFile;
+extern char *icsTextMenuString;
+
#include "common.h"
#include "backend.h"
#include "xboard.h"
+#include "xboard2.h"
#include "dialogs.h"
#include "menus.h"
#include "gettext.h"