[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-cvs] CVS: paragui/include paraconfig.h,1.3.6.13,1.3.6.14 paraco
From: |
Alexander Pipelka <address@hidden> |
Subject: |
[paragui-cvs] CVS: paragui/include paraconfig.h,1.3.6.13,1.3.6.14 paraconfig_win32.h,1.1.1.1.6.7,1.1.1.1.6.8 pgapplication.h,1.3.6.5,1.3.6.6 pglog.h,1.3.6.1,1.3.6.2 pgwidget.h,1.3.6.1,1.3.6.2 |
Date: |
Sun, 30 Mar 2003 11:31:00 -0500 |
Update of /cvsroot/paragui/paragui/include
In directory subversions:/tmp/cvs-serv28134/include
Modified Files:
Tag: devel-1-0
paraconfig.h paraconfig_win32.h pgapplication.h pglog.h
pgwidget.h
Log Message:
- converted wrong CR/LF to LF (UNIX style)
- applied patches from "H. C." <address@hidden>
access functions for PG_Application::enableAppIdleCalls
added functions to set the windowtitle of the log-console
Index: paraconfig.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/paraconfig.h,v
retrieving revision 1.3.6.13
retrieving revision 1.3.6.14
diff -C2 -r1.3.6.13 -r1.3.6.14
*** paraconfig.h 21 Mar 2003 20:04:58 -0000 1.3.6.13
--- paraconfig.h 30 Mar 2003 16:30:57 -0000 1.3.6.14
***************
*** 1,114 ****
! /*
! ParaGUI - crossplatform widgetset
! Copyright (C) 2000,2001,2002 Alexander Pipelka
!
! This library is free software; you can redistribute it and/or
! modify it under the terms of the GNU Library General Public
! License as published by the Free Software Foundation; either
! version 2 of the License, or (at your option) any later version.
!
! This library 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
! Library General Public License for more details.
!
! You should have received a copy of the GNU Library General Public
! License along with this library; if not, write to the Free
! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
!
! Alexander Pipelka
! address@hidden
!
! Last Update: $Author$
! Update Date: $Date$
! Source File: $Source$
! CVS/RCS Revision: $Revision$
! Status: $State$
! */
!
! #ifndef CONFIG_INCLUDED
! #define CONFIG_INCLUDED
!
! #undef PACKAGE
! #undef VERSION
!
! #define PG_VERSIONNUM(X, Y, Z) ((X)*10000 + (Y)*100 + (Z))
!
! #if (defined(WIN32) || defined(__WIN32__)) && (defined(__MINGW32__) ||
defined(_MSC_VER) || defined(__BCPLUSPLUS__) || defined(__MWERKS__))
! #include "paraconfig_win32.h"
! #elif defined(__MACOS__)
! #include "paraconfig_macos.h"
! #else // GNU
! #include "paraconfig_gnu.h"
! #endif // GNU
!
! // STL map / hash_map
!
! #if defined(HAVE_HASH_MAP)
! #define HASH_MAP_INC <hash_map>
! #define MAP_INC <hash_map>
! #define STL_MAP hash_map
! #elif defined(HAVE_EXT_HASH_MAP)
! #define HASH_MAP_INC <ext/hash_map>
! #define MAP_INC <ext/hash_map>
! #if PG_VERSIONNUM(__GNUC__, __GNUC_MINOR__, 0) >= PG_VERSIONNUM(3, 1, 0)
! #define STL_MAP __gnu_cxx::hash_map
! #else
! #define STL_MAP hash_map
! #endif
! #else
! #define MAP_INC <map>
! #define STL_MAP map
! #endif
!
!
! //
! // Modelled after g++ stdc++ v3
! //
! #if defined(EXCEPTIONS_ENABLED) || defined(__EXCEPTIONS)
! #define PG_TRY try
! #define PG_CATCH_ALL catch(...)
! #define PG_THROW(_ex_) throw _ex_
! #define PG_RETHROW throw
! #define PG_NOTHROW throw()
! #define PG_UNWIND(action) catch(...) {action; throw;}
! #define PG_CATCH(_ex_, _name_) catch(_ex_& _name_)
! #else
! #define PG_TRY
! #define PG_CATCH_ALL if (false)
! #define PG_THROW(_ex_)
! #define PG_RETHROW
! #define PG_NOTHROW
! #define PG_UNWIND
! #define PG_CATCH(_ex_, _name_) if (false)
! #endif
!
! //
! // Replacement for strdup
! //
! #ifndef HAVE_STRDUP
! extern "C" {
! char* strdup(const char* s);
! }
! #endif
!
! // Replacement for fnmatch
! #ifndef HAVE_FNMATCH
! extern "C" {
! /* Bits set in the FLAGS argument to `fnmatch'. */
! #define FNM_PATHNAME (1 << 0) /* No wildcard can ever match `/'. */
! #define FNM_NOESCAPE (1 << 1) /* Backslashes don't quote special
chars. */
! #define FNM_PERIOD (1 << 2) /* Leading `.' is matched only
explicitly. */
! #define __FNM_FLAGS (FNM_PATHNAME|FNM_NOESCAPE|FNM_PERIOD)
!
! /* Value returned by `fnmatch' if STRING does not match PATTERN. */
! #define FNM_NOMATCH 1
!
! int fnmatch(const char *, const char *, int);
! }
! #else
! #include <fnmatch.h>
! #endif
!
! #endif // CONFIG_INCLUDED
!
--- 1,114 ----
! /*
! ParaGUI - crossplatform widgetset
! Copyright (C) 2000,2001,2002 Alexander Pipelka
!
! This library is free software; you can redistribute it and/or
! modify it under the terms of the GNU Library General Public
! License as published by the Free Software Foundation; either
! version 2 of the License, or (at your option) any later version.
!
! This library 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
! Library General Public License for more details.
!
! You should have received a copy of the GNU Library General Public
! License along with this library; if not, write to the Free
! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
!
! Alexander Pipelka
! address@hidden
!
! Last Update: $Author$
! Update Date: $Date$
! Source File: $Source$
! CVS/RCS Revision: $Revision$
! Status: $State$
! */
!
! #ifndef CONFIG_INCLUDED
! #define CONFIG_INCLUDED
!
! #undef PACKAGE
! #undef VERSION
!
! #define PG_VERSIONNUM(X, Y, Z) ((X)*10000 + (Y)*100 + (Z))
!
! #if (defined(WIN32) || defined(__WIN32__)) && (defined(__MINGW32__) ||
defined(_MSC_VER) || defined(__BCPLUSPLUS__) || defined(__MWERKS__))
! #include "paraconfig_win32.h"
! #elif defined(__MACOS__)
! #include "paraconfig_macos.h"
! #else // GNU
! #include "paraconfig_gnu.h"
! #endif // GNU
!
! // STL map / hash_map
!
! #if defined(HAVE_HASH_MAP)
! #define HASH_MAP_INC <hash_map>
! #define MAP_INC <hash_map>
! #define STL_MAP hash_map
! #elif defined(HAVE_EXT_HASH_MAP)
! #define HASH_MAP_INC <ext/hash_map>
! #define MAP_INC <ext/hash_map>
! #if PG_VERSIONNUM(__GNUC__, __GNUC_MINOR__, 0) >= PG_VERSIONNUM(3, 1, 0)
! #define STL_MAP __gnu_cxx::hash_map
! #else
! #define STL_MAP hash_map
! #endif
! #else
! #define MAP_INC <map>
! #define STL_MAP map
! #endif
!
!
! //
! // Modelled after g++ stdc++ v3
! //
! #if defined(EXCEPTIONS_ENABLED) || defined(__EXCEPTIONS)
! #define PG_TRY try
! #define PG_CATCH_ALL catch(...)
! #define PG_THROW(_ex_) throw _ex_
! #define PG_RETHROW throw
! #define PG_NOTHROW throw()
! #define PG_UNWIND(action) catch(...) {action; throw;}
! #define PG_CATCH(_ex_, _name_) catch(_ex_& _name_)
! #else
! #define PG_TRY
! #define PG_CATCH_ALL if (false)
! #define PG_THROW(_ex_)
! #define PG_RETHROW
! #define PG_NOTHROW
! #define PG_UNWIND
! #define PG_CATCH(_ex_, _name_) if (false)
! #endif
!
! //
! // Replacement for strdup
! //
! #ifndef HAVE_STRDUP
! extern "C" {
! char* strdup(const char* s);
! }
! #endif
!
! // Replacement for fnmatch
! #ifndef HAVE_FNMATCH
! extern "C" {
! /* Bits set in the FLAGS argument to `fnmatch'. */
! #define FNM_PATHNAME (1 << 0) /* No wildcard can ever match `/'. */
! #define FNM_NOESCAPE (1 << 1) /* Backslashes don't quote special
chars. */
! #define FNM_PERIOD (1 << 2) /* Leading `.' is matched only
explicitly. */
! #define __FNM_FLAGS (FNM_PATHNAME|FNM_NOESCAPE|FNM_PERIOD)
!
! /* Value returned by `fnmatch' if STRING does not match PATTERN. */
! #define FNM_NOMATCH 1
!
! int fnmatch(const char *, const char *, int);
! }
! #else
! #include <fnmatch.h>
! #endif
!
! #endif // CONFIG_INCLUDED
!
Index: paraconfig_win32.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/paraconfig_win32.h,v
retrieving revision 1.1.1.1.6.7
retrieving revision 1.1.1.1.6.8
diff -C2 -r1.1.1.1.6.7 -r1.1.1.1.6.8
*** paraconfig_win32.h 21 Mar 2003 20:04:58 -0000 1.1.1.1.6.7
--- paraconfig_win32.h 30 Mar 2003 16:30:57 -0000 1.1.1.1.6.8
***************
*** 1,64 ****
! #ifndef WIN32_CONFIG_INCLUDED
! #define WIN32_CONFIG_INCLUDED
!
! #ifndef __MINGW32__
! // disable win32 warnings on exporting STL objects
! #pragma warning(disable: 4275)
! #pragma warning(disable: 4251)
! #pragma warning(disable: 4786)
! #pragma warning(disable: 4800)
! #pragma warning(disable: 4091)
!
! // strange thing but it works
! #define PATH_MAX MAX_PATH
! #endif
!
! /* Define if you the the SDL_image library */
! #define HAVE_SDLIMAGE 1
!
! /* Define the default path to the theme files */
! #define PARAGUI_THEMEDIR "./data"
!
! /* Define if you have the fnmatch function. */
! /* #undef HAVE_FNMATCH */
!
! /* Define if you have the strdup function. */
! /* #undef HAVE_STRDUP */
!
! /* Define if you have the strtok function. */
! #define HAVE_STRTOK 1
!
! /* Define if you have the vsnprintf function. */
! /* #undef HAVE_VSNPRINTF */
!
! /* Define if you have the <ext/hash_map> header file. */
! /* #undef HAVE_EXT_HASH_MAP */
!
! /* Define if you have the <hash_map> header file. */
! /* #undef HAVE_HASH_MAP */
!
! /* Define if you have the jpeg library (-ljpeg). */
! #define HAVE_LIBJPEG 1
!
! /* Define if you have the png library (-lpng). */
! #define HAVE_LIBPNG 1
!
! /* Define if you have the tiff library (-ltiff). */
! #define HAVE_LIBTIFF 1
!
! /* Name of package */
! #define PACKAGE "paragui"
!
! /* Version number of package */
! #define VERSION "1.0.4"
!
! // Some stuff needed for Win32
! #ifdef WIN32
! #define WIN32_LEAN_AND_MEAN
! #define VC_EXTRALEAN
! #include <windows.h>
! extern int SDL_RegisterApp(char*, Uint32, void*);
! #undef SendMessage
! #endif // WIN32
!
! #endif // WIN32_CONFIG_INCLUDED
--- 1,64 ----
! #ifndef WIN32_CONFIG_INCLUDED
! #define WIN32_CONFIG_INCLUDED
!
! #ifndef __MINGW32__
! // disable win32 warnings on exporting STL objects
! #pragma warning(disable: 4275)
! #pragma warning(disable: 4251)
! #pragma warning(disable: 4786)
! #pragma warning(disable: 4800)
! #pragma warning(disable: 4091)
!
! // strange thing but it works
! #define PATH_MAX MAX_PATH
! #endif
!
! /* Define if you the the SDL_image library */
! #define HAVE_SDLIMAGE 1
!
! /* Define the default path to the theme files */
! #define PARAGUI_THEMEDIR "./data"
!
! /* Define if you have the fnmatch function. */
! /* #undef HAVE_FNMATCH */
!
! /* Define if you have the strdup function. */
! /* #undef HAVE_STRDUP */
!
! /* Define if you have the strtok function. */
! #define HAVE_STRTOK 1
!
! /* Define if you have the vsnprintf function. */
! /* #undef HAVE_VSNPRINTF */
!
! /* Define if you have the <ext/hash_map> header file. */
! /* #undef HAVE_EXT_HASH_MAP */
!
! /* Define if you have the <hash_map> header file. */
! /* #undef HAVE_HASH_MAP */
!
! /* Define if you have the jpeg library (-ljpeg). */
! #define HAVE_LIBJPEG 1
!
! /* Define if you have the png library (-lpng). */
! #define HAVE_LIBPNG 1
!
! /* Define if you have the tiff library (-ltiff). */
! #define HAVE_LIBTIFF 1
!
! /* Name of package */
! #define PACKAGE "paragui"
!
! /* Version number of package */
! #define VERSION "1.0.4"
!
! // Some stuff needed for Win32
! #ifdef WIN32
! #define WIN32_LEAN_AND_MEAN
! #define VC_EXTRALEAN
! #include <windows.h>
! extern int SDL_RegisterApp(char*, Uint32, void*);
! #undef SendMessage
! #endif // WIN32
!
! #endif // WIN32_CONFIG_INCLUDED
Index: pgapplication.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pgapplication.h,v
retrieving revision 1.3.6.5
retrieving revision 1.3.6.6
diff -C2 -r1.3.6.5 -r1.3.6.6
*** pgapplication.h 4 Jan 2003 21:13:37 -0000 1.3.6.5
--- pgapplication.h 30 Mar 2003 16:30:57 -0000 1.3.6.6
***************
*** 516,519 ****
--- 516,521 ----
static PG_Font* DefaultFont;
+ static bool GetAppIdleCallsEnabled();
+
protected:
Index: pglog.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pglog.h,v
retrieving revision 1.3.6.1
retrieving revision 1.3.6.2
diff -C2 -r1.3.6.1 -r1.3.6.2
*** pglog.h 11 Jul 2002 08:25:57 -0000 1.3.6.1
--- pglog.h 30 Mar 2003 16:30:57 -0000 1.3.6.2
***************
*** 38,41 ****
--- 38,42 ----
#include <stdarg.h>
#include "SDL.h"
+ #include "paragui.h"
//! ParaGUI logging level
***************
*** 83,86 ****
--- 84,88 ----
DECLSPEC void SetConsoleKey(SDLKey key);
DECLSPEC SDLKey GetConsoleKey();
+ DECLSPEC void SetTitle(const char* title, int alignment =
PG_TA_CENTER);
};
Index: pgwidget.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pgwidget.h,v
retrieving revision 1.3.6.1
retrieving revision 1.3.6.2
diff -C2 -r1.3.6.1 -r1.3.6.2
*** pgwidget.h 4 Jan 2003 21:13:38 -0000 1.3.6.1
--- pgwidget.h 30 Mar 2003 16:30:57 -0000 1.3.6.2
***************
*** 801,804 ****
--- 801,806 ----
void QuitModal();
+ bool WillQuitModal();
+
/**
Set the dirty update mode
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-cvs] CVS: paragui/include paraconfig.h,1.3.6.13,1.3.6.14 paraconfig_win32.h,1.1.1.1.6.7,1.1.1.1.6.8 pgapplication.h,1.3.6.5,1.3.6.6 pglog.h,1.3.6.1,1.3.6.2 pgwidget.h,1.3.6.1,1.3.6.2,
Alexander Pipelka <address@hidden> <=
- Prev by Date:
[paragui-cvs] CVS: paragui/test/colorselector main.cpp,1.1.2.3,1.1.2.4
- Next by Date:
[paragui-cvs] CVS: paragui/src/widgets pgdropdown.cpp,1.3,1.3.6.1 pglistboxbaseitem.cpp,1.3.6.4,1.3.6.5pgwidget.cpp,1.4.4.16,1.4.4.17
- Previous by thread:
[paragui-cvs] CVS: paragui/test/colorselector main.cpp,1.1.2.3,1.1.2.4
- Next by thread:
[paragui-cvs] CVS: paragui/src/widgets pgdropdown.cpp,1.3,1.3.6.1 pglistboxbaseitem.cpp,1.3.6.4,1.3.6.5pgwidget.cpp,1.4.4.16,1.4.4.17
- Index(es):