mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[MSPAINT] Delete globalvar.h and move code to precomp.h
Refactoring. CORE-19094
This commit is contained in:
parent
40bc5bf489
commit
470d86f1e5
2 changed files with 46 additions and 56 deletions
|
@ -1,50 +0,0 @@
|
|||
/*
|
||||
* PROJECT: PAINT for ReactOS
|
||||
* LICENSE: LGPL-2.0-or-later (https://spdx.org/licenses/LGPL-2.0-or-later)
|
||||
* PURPOSE: Declaring global variables for later initialization
|
||||
* COPYRIGHT: Copyright 2015 Benedikt Freisen <b.freisen@gmx.net>
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
/* VARIABLES declared in main.cpp ***********************************/
|
||||
|
||||
extern BOOL g_askBeforeEnlarging;
|
||||
|
||||
extern HINSTANCE g_hinstExe;
|
||||
|
||||
extern WCHAR g_szFileName[MAX_LONG_PATH];
|
||||
extern BOOL g_isAFile;
|
||||
extern BOOL g_imageSaved;
|
||||
extern BOOL g_showGrid;
|
||||
|
||||
extern CMainWindow mainWindow;
|
||||
|
||||
/* VARIABLES declared in dialogs.cpp ********************************/
|
||||
|
||||
extern CMirrorRotateDialog mirrorRotateDialog;
|
||||
extern CAttributesDialog attributesDialog;
|
||||
extern CStretchSkewDialog stretchSkewDialog;
|
||||
extern CFontsDialog fontsDialog;
|
||||
|
||||
/* VARIABLES declared in the other places ***************************/
|
||||
|
||||
extern RegistrySettings registrySettings;
|
||||
extern ImageModel imageModel;
|
||||
extern ToolsModel toolsModel;
|
||||
extern SelectionModel selectionModel;
|
||||
extern PaletteModel paletteModel;
|
||||
|
||||
extern HWND g_hStatusBar;
|
||||
extern float g_xDpi;
|
||||
extern float g_yDpi;
|
||||
extern INT g_fileSize;
|
||||
extern SYSTEMTIME g_fileTime;
|
||||
|
||||
extern CFullscreenWindow fullscreenWindow;
|
||||
extern CMiniatureWindow miniature;
|
||||
extern CToolBox toolBoxContainer;
|
||||
extern CToolSettingsWindow toolSettingsWindow;
|
||||
extern CPaletteWindow paletteWindow;
|
||||
extern CCanvasWindow canvasWindow;
|
||||
extern CTextEditWindow textEditWindow;
|
|
@ -1,5 +1,11 @@
|
|||
#ifndef _MSPAINT_H
|
||||
#define _MSPAINT_H
|
||||
/*
|
||||
* PROJECT: PAINT for ReactOS
|
||||
* LICENSE: LGPL-2.0-or-later (https://spdx.org/licenses/LGPL-2.0-or-later)
|
||||
* PURPOSE: The precompiled header
|
||||
* COPYRIGHT: Copyright 2015 Benedikt Freisen <b.freisen@gmx.net>
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef NDEBUG
|
||||
#undef DBG
|
||||
|
@ -26,7 +32,7 @@
|
|||
#include <shellapi.h>
|
||||
#include <htmlhelp.h>
|
||||
#include <strsafe.h>
|
||||
#include "atlimagedx.h"
|
||||
#include <ui/CWaitCursor.h>
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
|
@ -49,7 +55,41 @@
|
|||
#include "toolsmodel.h"
|
||||
#include "main.h"
|
||||
#include "dialogs.h"
|
||||
#include <ui/CWaitCursor.h>
|
||||
#include "globalvar.h"
|
||||
#include "atlimagedx.h"
|
||||
|
||||
#endif /* _MSPAINT_H */
|
||||
/* GLOBAL VARIABLES *************************************************/
|
||||
|
||||
extern HINSTANCE g_hinstExe;
|
||||
|
||||
extern WCHAR g_szFileName[MAX_LONG_PATH];
|
||||
extern BOOL g_isAFile;
|
||||
extern BOOL g_imageSaved;
|
||||
extern BOOL g_showGrid;
|
||||
extern BOOL g_askBeforeEnlarging;
|
||||
|
||||
extern CMainWindow mainWindow;
|
||||
|
||||
extern CMirrorRotateDialog mirrorRotateDialog;
|
||||
extern CAttributesDialog attributesDialog;
|
||||
extern CStretchSkewDialog stretchSkewDialog;
|
||||
extern CFontsDialog fontsDialog;
|
||||
|
||||
extern RegistrySettings registrySettings;
|
||||
extern ImageModel imageModel;
|
||||
extern ToolsModel toolsModel;
|
||||
extern SelectionModel selectionModel;
|
||||
extern PaletteModel paletteModel;
|
||||
|
||||
extern HWND g_hStatusBar;
|
||||
extern float g_xDpi;
|
||||
extern float g_yDpi;
|
||||
extern INT g_fileSize;
|
||||
extern SYSTEMTIME g_fileTime;
|
||||
|
||||
extern CFullscreenWindow fullscreenWindow;
|
||||
extern CMiniatureWindow miniature;
|
||||
extern CToolBox toolBoxContainer;
|
||||
extern CToolSettingsWindow toolSettingsWindow;
|
||||
extern CPaletteWindow paletteWindow;
|
||||
extern CCanvasWindow canvasWindow;
|
||||
extern CTextEditWindow textEditWindow;
|
||||
|
|
Loading…
Reference in a new issue