From 60b4ba00fcfa8102a050bc7d5e131d08b85e9dc6 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 1 Aug 2015 16:32:19 +0000 Subject: splashscreen: common project git-svn-id: http://svn.miranda-ng.org/main/trunk@14779 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SplashScreen/src/bitmap_funcs.cpp | 2 +- plugins/SplashScreen/src/headers.h | 82 ------------------------------- plugins/SplashScreen/src/main.cpp | 2 +- plugins/SplashScreen/src/options.cpp | 2 +- plugins/SplashScreen/src/services.cpp | 2 +- plugins/SplashScreen/src/splash.cpp | 2 +- plugins/SplashScreen/src/stdafx.cpp | 18 ------- plugins/SplashScreen/src/stdafx.cxx | 18 +++++++ plugins/SplashScreen/src/stdafx.h | 82 +++++++++++++++++++++++++++++++ 9 files changed, 105 insertions(+), 105 deletions(-) delete mode 100644 plugins/SplashScreen/src/headers.h delete mode 100644 plugins/SplashScreen/src/stdafx.cpp create mode 100644 plugins/SplashScreen/src/stdafx.cxx create mode 100644 plugins/SplashScreen/src/stdafx.h (limited to 'plugins/SplashScreen/src') diff --git a/plugins/SplashScreen/src/bitmap_funcs.cpp b/plugins/SplashScreen/src/bitmap_funcs.cpp index e75395e838..5359adc3d2 100644 --- a/plugins/SplashScreen/src/bitmap_funcs.cpp +++ b/plugins/SplashScreen/src/bitmap_funcs.cpp @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "headers.h" +#include "stdafx.h" MyBitmap::MyBitmap() { diff --git a/plugins/SplashScreen/src/headers.h b/plugins/SplashScreen/src/headers.h deleted file mode 100644 index 070026efa2..0000000000 --- a/plugins/SplashScreen/src/headers.h +++ /dev/null @@ -1,82 +0,0 @@ -/* - Splash Screen Plugin for Miranda NG (www.miranda-ng.org) - (c) 2004-2007 nullbie, (c) 2005-2007 Thief - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -*/ - -#ifndef HEADERS_H -#define HEADERS_H - -#define _CRT_SECURE_NO_DEPRECATE - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -#include - -#include "version.h" -#include "resource.h" -#include "bitmap_funcs.h" - -#ifdef _DEBUG - #include - #include - #include "debug.h" -#endif - -// Internal defines -#define SPLASH_CLASS "MirandaSplash" -#define MODNAME "SplashScreen" -#define WM_LOADED (WM_USER + 10) - -struct SPLASHOPTS -{ - byte active; - byte playsnd; - byte fadein; - byte fadeout; - byte inheritGS; //??? - byte random; - byte showversion; - int showtime; - int fosteps; - int fisteps; -}; - -extern HWND hwndSplash; -extern SPLASHOPTS options; -extern TCHAR szSplashFile[MAX_PATH], szSoundFile[MAX_PATH], szPrefix[128]; -extern TCHAR *szMirDir; -extern char szVersion[MAX_PATH]; -extern BOOL bserviceinvoked, bmodulesloaded, png2dibavail; -extern HINSTANCE hInst; - -extern int OptInit(WPARAM wParam, LPARAM lParam); -extern BOOL ShowSplash(BOOL bpreview); -extern VOID ReadDbConfig(); -extern INT_PTR ShowSplashService(WPARAM wparam,LPARAM lparam); - -#endif //HEADERS_H diff --git a/plugins/SplashScreen/src/main.cpp b/plugins/SplashScreen/src/main.cpp index 26e362ab92..4f7007a5ab 100644 --- a/plugins/SplashScreen/src/main.cpp +++ b/plugins/SplashScreen/src/main.cpp @@ -17,7 +17,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "headers.h" +#include "stdafx.h" CLIST_INTERFACE *pcli; HINSTANCE hInst = 0; diff --git a/plugins/SplashScreen/src/options.cpp b/plugins/SplashScreen/src/options.cpp index 5771ec58de..95a3f09e75 100644 --- a/plugins/SplashScreen/src/options.cpp +++ b/plugins/SplashScreen/src/options.cpp @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "headers.h" +#include "stdafx.h" TCHAR szPath2Spash[MAX_PATH], szSoundFilePath[MAX_PATH]; diff --git a/plugins/SplashScreen/src/services.cpp b/plugins/SplashScreen/src/services.cpp index beecc04357..6e3497cb6d 100644 --- a/plugins/SplashScreen/src/services.cpp +++ b/plugins/SplashScreen/src/services.cpp @@ -17,7 +17,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "headers.h" +#include "stdafx.h" INT_PTR ShowSplashService(WPARAM wparam, LPARAM lparam) { diff --git a/plugins/SplashScreen/src/splash.cpp b/plugins/SplashScreen/src/splash.cpp index cfbb7b88b4..df0f3367e9 100644 --- a/plugins/SplashScreen/src/splash.cpp +++ b/plugins/SplashScreen/src/splash.cpp @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "headers.h" +#include "stdafx.h" BOOL bpreviewruns; MyBitmap *SplashBmp, *tmpBmp; diff --git a/plugins/SplashScreen/src/stdafx.cpp b/plugins/SplashScreen/src/stdafx.cpp deleted file mode 100644 index 7e0216078c..0000000000 --- a/plugins/SplashScreen/src/stdafx.cpp +++ /dev/null @@ -1,18 +0,0 @@ -/* -Copyright (C) 2012-15 Miranda NG project (http://miranda-ng.org) - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation version 2 -of the License. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ - -#include "headers.h" \ No newline at end of file diff --git a/plugins/SplashScreen/src/stdafx.cxx b/plugins/SplashScreen/src/stdafx.cxx new file mode 100644 index 0000000000..6fb37564b7 --- /dev/null +++ b/plugins/SplashScreen/src/stdafx.cxx @@ -0,0 +1,18 @@ +/* +Copyright (C) 2012-15 Miranda NG project (http://miranda-ng.org) + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation version 2 +of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ + +#include "stdafx.h" \ No newline at end of file diff --git a/plugins/SplashScreen/src/stdafx.h b/plugins/SplashScreen/src/stdafx.h new file mode 100644 index 0000000000..070026efa2 --- /dev/null +++ b/plugins/SplashScreen/src/stdafx.h @@ -0,0 +1,82 @@ +/* + Splash Screen Plugin for Miranda NG (www.miranda-ng.org) + (c) 2004-2007 nullbie, (c) 2005-2007 Thief + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ + +#ifndef HEADERS_H +#define HEADERS_H + +#define _CRT_SECURE_NO_DEPRECATE + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "version.h" +#include "resource.h" +#include "bitmap_funcs.h" + +#ifdef _DEBUG + #include + #include + #include "debug.h" +#endif + +// Internal defines +#define SPLASH_CLASS "MirandaSplash" +#define MODNAME "SplashScreen" +#define WM_LOADED (WM_USER + 10) + +struct SPLASHOPTS +{ + byte active; + byte playsnd; + byte fadein; + byte fadeout; + byte inheritGS; //??? + byte random; + byte showversion; + int showtime; + int fosteps; + int fisteps; +}; + +extern HWND hwndSplash; +extern SPLASHOPTS options; +extern TCHAR szSplashFile[MAX_PATH], szSoundFile[MAX_PATH], szPrefix[128]; +extern TCHAR *szMirDir; +extern char szVersion[MAX_PATH]; +extern BOOL bserviceinvoked, bmodulesloaded, png2dibavail; +extern HINSTANCE hInst; + +extern int OptInit(WPARAM wParam, LPARAM lParam); +extern BOOL ShowSplash(BOOL bpreview); +extern VOID ReadDbConfig(); +extern INT_PTR ShowSplashService(WPARAM wparam,LPARAM lparam); + +#endif //HEADERS_H -- cgit v1.2.3