ReactOS  0.4.12-dev-102-g4b7f1e0
globalvar.h
Go to the documentation of this file.
1 /*
2  * PROJECT: PAINT for ReactOS
3  * LICENSE: LGPL
4  * FILE: base/applications/mspaint/globalvar.h
5  * PURPOSE: Declaring global variables for later initialization
6  * PROGRAMMERS: Benedikt Freisen
7  */
8 
9 #pragma once
10 
11 /* VARIABLES declared in main.cpp ***********************************/
12 
13 class RegistrySettings;
15 
16 class ImageModel;
17 extern ImageModel imageModel;
19 
20 extern POINT start;
21 extern POINT last;
22 
23 class ToolsModel;
24 extern ToolsModel toolsModel;
25 
26 class SelectionModel;
28 
29 extern LOGFONT lfTextFont;
30 extern HFONT hfontTextFont;
31 extern LPTSTR textToolText;
32 extern int textToolTextMaxLen;
33 
34 class PaletteModel;
36 
37 extern HWND hStatusBar;
39 extern OPENFILENAME ofn;
40 extern OPENFILENAME sfn;
41 extern HICON hNontranspIcon;
42 extern HICON hTranspIcon;
43 
44 extern HCURSOR hCurFill;
45 extern HCURSOR hCurColor;
46 extern HCURSOR hCurZoom;
47 extern HCURSOR hCurPen;
48 extern HCURSOR hCurAirbrush;
49 
50 extern HWND hToolBtn[16];
51 
53 
54 extern TCHAR filepathname[1000];
55 extern BOOL isAFile;
56 extern int fileSize;
57 extern int fileHPPM;
58 extern int fileVPPM;
59 extern SYSTEMTIME fileTime;
60 
61 extern BOOL showGrid;
62 extern BOOL showMiniature;
63 
64 class CMainWindow;
65 class CFullscreenWindow;
66 class CMiniatureWindow;
67 class CToolBox;
69 class CPaletteWindow;
70 class CScrollboxWindow;
71 class CSelectionWindow;
72 class CImgAreaWindow;
73 class CSizeboxWindow;
74 class CTextEditWindow;
75 
76 extern CMainWindow mainWindow;
95 
96 /* VARIABLES declared in dialogs.cpp ********************************/
97 
99 class CAttributesDialog;
100 class CStretchSkewDialog;
101 
105 
106 /* VARIABLES declared in mouse.cpp **********************************/
107 
108 extern POINT pointStack[256];
109 extern short pointSP;
BOOL isAFile
Definition: main.cpp:53
HCURSOR hCurFill
Definition: main.cpp:42
ToolsModel toolsModel
Definition: main.cpp:18
static HICON
Definition: imagelist.c:84
CToolBox toolBoxContainer
Definition: main.cpp:65
POINT start
Definition: main.cpp:15
int fileSize
Definition: main.cpp:54
CAttributesDialog attributesDialog
Definition: dialogs.cpp:20
LOGFONT lfTextFont
Definition: main.cpp:22
POINT last
Definition: font.c:46
BOOL showGrid
Definition: main.cpp:59
OPENFILENAME ofn
Definition: main.cpp:37
CSizeboxWindow sizeboxRightCenter
Definition: main.cpp:76
SelectionModel selectionModel
Definition: main.cpp:20
HICON HCURSOR
Definition: windef.h:289
BOOL askBeforeEnlarging
Definition: main.cpp:33
CHAR * LPTSTR
Definition: xmlstorage.h:192
HCURSOR hCurPen
Definition: main.cpp:45
CImgAreaWindow imageArea
Definition: main.cpp:71
HICON hNontranspIcon
Definition: main.cpp:39
CSizeboxWindow sizeboxCenterTop
Definition: main.cpp:73
CSizeboxWindow sizeboxRightTop
Definition: main.cpp:74
SYSTEMTIME fileTime
Definition: main.cpp:57
CSizeboxWindow sizeboxCenterBottom
Definition: main.cpp:78
HCURSOR hCurAirbrush
Definition: main.cpp:46
CMiniatureWindow miniature
Definition: main.cpp:64
OPENFILENAME sfn
Definition: eventvwr.c:118
int fileHPPM
Definition: main.cpp:55
CSizeboxWindow sizeboxRightBottom
Definition: main.cpp:79
HCURSOR hCurZoom
Definition: main.cpp:44
char TCHAR
Definition: xmlstorage.h:189
CScrollboxWindow scrlClientWindow
Definition: main.cpp:69
unsigned int BOOL
Definition: ntddk_ex.h:94
CMirrorRotateDialog mirrorRotateDialog
Definition: dialogs.cpp:19
short pointSP
Definition: mouse.cpp:53
HFONT hfontTextFont
Definition: main.cpp:23
CFullscreenWindow fullscreenWindow
Definition: main.cpp:63
HWND hStatusBar
Definition: main.cpp:35
BOOL showMiniature
Definition: main.cpp:60
TCHAR filepathname[1000]
Definition: main.cpp:52
CSizeboxWindow sizeboxLeftCenter
Definition: main.cpp:75
LPTSTR textToolText
Definition: main.cpp:25
ImageModel imageModel
Definition: main.cpp:32
CStretchSkewDialog stretchSkewDialog
Definition: dialogs.cpp:21
CPaletteWindow paletteWindow
Definition: main.cpp:67
HINSTANCE hProgInstance
Definition: main.cpp:50
int textToolTextMaxLen
Definition: main.cpp:26
CSizeboxWindow sizeboxLeftBottom
Definition: main.cpp:77
PaletteModel paletteModel
Definition: main.cpp:28
HICON hTranspIcon
Definition: main.cpp:40
CScrollboxWindow scrollboxWindow
Definition: main.cpp:68
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
CSizeboxWindow sizeboxLeftTop
Definition: main.cpp:72
CTextEditWindow textEditWindow
Definition: main.cpp:80
CHOOSECOLOR choosecolor
Definition: main.cpp:36
RegistrySettings registrySettings
Definition: main.cpp:30
HWND hToolBtn[16]
Definition: main.cpp:48
POINT pointStack[256]
Definition: mouse.cpp:52
HCURSOR hCurColor
Definition: main.cpp:43
int fileVPPM
Definition: main.cpp:56
CToolSettingsWindow toolSettingsWindow
Definition: main.cpp:66
CSelectionWindow selectionWindow
Definition: main.cpp:70
CMainWindow mainWindow
Definition: main.cpp:62