2009-05-12 14:15:48 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: PAINT for ReactOS
|
|
|
|
* LICENSE: LGPL
|
2009-10-21 15:44:31 +00:00
|
|
|
* FILE: base/applications/paint/globalvar.h
|
2009-05-12 14:15:48 +00:00
|
|
|
* PURPOSE: Declaring global variables for later initialization
|
|
|
|
* PROGRAMMERS: Benedikt Freisen
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* INCLUDES *********************************************************/
|
|
|
|
|
|
|
|
#include <windows.h>
|
2009-10-03 16:33:41 +00:00
|
|
|
#include "definitions.h"
|
2009-05-12 14:15:48 +00:00
|
|
|
|
|
|
|
/* VARIABLES declared in main.c *************************************/
|
|
|
|
|
|
|
|
extern HDC hDrawingDC;
|
|
|
|
extern HDC hSelDC;
|
|
|
|
extern int *bmAddress;
|
|
|
|
extern BITMAPINFO bitmapinfo;
|
|
|
|
extern int imgXRes;
|
|
|
|
extern int imgYRes;
|
|
|
|
|
2009-10-03 16:33:41 +00:00
|
|
|
extern HBITMAP hBms[HISTORYSIZE];
|
2009-05-12 14:15:48 +00:00
|
|
|
extern int currInd;
|
|
|
|
extern int undoSteps;
|
|
|
|
extern int redoSteps;
|
2009-10-03 16:33:41 +00:00
|
|
|
extern BOOL imageSaved;
|
2009-05-12 14:15:48 +00:00
|
|
|
|
|
|
|
extern short startX;
|
|
|
|
extern short startY;
|
|
|
|
extern short lastX;
|
|
|
|
extern short lastY;
|
|
|
|
extern int lineWidth;
|
|
|
|
extern int shapeStyle;
|
|
|
|
extern int brushStyle;
|
|
|
|
extern int activeTool;
|
|
|
|
extern int airBrushWidth;
|
|
|
|
extern int rubberRadius;
|
|
|
|
extern int transpBg;
|
|
|
|
extern int zoom;
|
|
|
|
extern int rectSel_src[4];
|
|
|
|
extern int rectSel_dest[4];
|
|
|
|
extern HWND hSelection;
|
|
|
|
extern HWND hImageArea;
|
|
|
|
extern HBITMAP hSelBm;
|
2010-01-16 23:21:45 +00:00
|
|
|
extern HBITMAP hSelMask;
|
2009-05-12 14:15:48 +00:00
|
|
|
|
|
|
|
extern int palColors[28];
|
2009-10-21 15:44:31 +00:00
|
|
|
|
2009-05-12 14:15:48 +00:00
|
|
|
extern int fgColor;
|
|
|
|
extern int bgColor;
|
2009-10-21 15:44:31 +00:00
|
|
|
|
2009-05-12 14:15:48 +00:00
|
|
|
extern HWND hStatusBar;
|
|
|
|
extern HWND hScrollbox;
|
|
|
|
extern HWND hMainWnd;
|
|
|
|
extern HWND hPalWin;
|
2009-12-27 21:15:08 +00:00
|
|
|
extern HWND hToolBoxContainer;
|
2009-05-12 14:15:48 +00:00
|
|
|
extern HWND hToolSettings;
|
2009-10-21 15:44:31 +00:00
|
|
|
extern HWND hTrackbarZoom;
|
2009-05-12 14:15:48 +00:00
|
|
|
extern CHOOSECOLOR choosecolor;
|
|
|
|
extern OPENFILENAME ofn;
|
|
|
|
extern OPENFILENAME sfn;
|
|
|
|
extern HICON hNontranspIcon;
|
|
|
|
extern HICON hTranspIcon;
|
|
|
|
|
|
|
|
extern HCURSOR hCurFill;
|
|
|
|
extern HCURSOR hCurColor;
|
|
|
|
extern HCURSOR hCurZoom;
|
|
|
|
extern HCURSOR hCurPen;
|
|
|
|
extern HCURSOR hCurAirbrush;
|
|
|
|
|
|
|
|
extern HWND hScrlClient;
|
|
|
|
|
|
|
|
extern HWND hToolBtn[16];
|
|
|
|
|
|
|
|
extern HINSTANCE hProgInstance;
|
|
|
|
|
2009-05-27 17:56:50 +00:00
|
|
|
extern TCHAR filename[256];
|
|
|
|
extern TCHAR filepathname[1000];
|
2009-05-12 14:15:48 +00:00
|
|
|
extern BOOL isAFile;
|
2009-10-18 18:36:46 +00:00
|
|
|
extern int fileSize;
|
|
|
|
extern int fileHPPM;
|
|
|
|
extern int fileVPPM;
|
|
|
|
extern SYSTEMTIME fileTime;
|
2009-07-01 19:24:17 +00:00
|
|
|
|
|
|
|
extern BOOL showGrid;
|
|
|
|
extern BOOL showMiniature;
|
|
|
|
|
|
|
|
extern HWND hwndMiniature;
|
2009-07-02 17:02:37 +00:00
|
|
|
|
|
|
|
extern HWND hSizeboxLeftTop;
|
|
|
|
extern HWND hSizeboxCenterTop;
|
|
|
|
extern HWND hSizeboxRightTop;
|
|
|
|
extern HWND hSizeboxLeftCenter;
|
|
|
|
extern HWND hSizeboxRightCenter;
|
|
|
|
extern HWND hSizeboxLeftBottom;
|
|
|
|
extern HWND hSizeboxCenterBottom;
|
|
|
|
extern HWND hSizeboxRightBottom;
|
2009-07-10 18:21:27 +00:00
|
|
|
|
2009-10-21 15:44:31 +00:00
|
|
|
/* VARIABLES declared in mouse.c ************************************/
|
2009-07-10 18:21:27 +00:00
|
|
|
|
|
|
|
extern POINT pointStack[256];
|
|
|
|
extern short pointSP;
|