2006-12-23 16:37:33 +01:00
|
|
|
// Copyright (c) 2006, Rodrigo Braz Monteiro
|
|
|
|
// All rights reserved.
|
|
|
|
//
|
|
|
|
// Redistribution and use in source and binary forms, with or without
|
|
|
|
// modification, are permitted provided that the following conditions are met:
|
|
|
|
//
|
|
|
|
// * Redistributions of source code must retain the above copyright notice,
|
|
|
|
// this list of conditions and the following disclaimer.
|
|
|
|
// * Redistributions in binary form must reproduce the above copyright notice,
|
|
|
|
// this list of conditions and the following disclaimer in the documentation
|
|
|
|
// and/or other materials provided with the distribution.
|
|
|
|
// * Neither the name of the Aegisub Group nor the names of its contributors
|
|
|
|
// may be used to endorse or promote products derived from this software
|
|
|
|
// without specific prior written permission.
|
|
|
|
//
|
|
|
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
|
|
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
|
|
|
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
// POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
//
|
2009-07-29 07:43:02 +02:00
|
|
|
// Aegisub Project http://www.aegisub.org/
|
2006-12-23 16:37:33 +01:00
|
|
|
//
|
2009-07-29 07:43:02 +02:00
|
|
|
// $Id$
|
2006-12-23 16:37:33 +01:00
|
|
|
|
2009-09-10 06:14:28 +02:00
|
|
|
/// @file agi_pre.h
|
2009-07-29 07:43:02 +02:00
|
|
|
/// @brief Precompiled headers include file, including all headers that should be precompiled
|
|
|
|
/// @ingroup main
|
|
|
|
///
|
|
|
|
/// In order to use it, set the project to use this header as precompiled and
|
|
|
|
/// insert it in every source file (under C/C++ -> Advanced -> Force Includes),
|
|
|
|
/// then set stdwx.cpp to generate the precompiled header
|
|
|
|
///
|
|
|
|
/// @note Make sure that you disable use of precompiled headers on md5.c and
|
|
|
|
/// MatroskaParser.c, as well as any possible future .c files.
|
2006-12-23 16:37:33 +01:00
|
|
|
|
2009-09-10 06:14:28 +02:00
|
|
|
// Block msvc from complaining about not using msvc-specific versions for
|
|
|
|
// insecure C functions.
|
2009-09-10 04:52:34 +02:00
|
|
|
#ifdef _CRT_SECURE_NO_WARNINGS
|
|
|
|
#define _CRT_SECURE_NO_WARNINGS_DEFINED
|
|
|
|
#else
|
|
|
|
#define _CRT_SECURE_NO_WARNINGS
|
|
|
|
#endif
|
2006-12-23 16:37:33 +01:00
|
|
|
|
2011-07-27 00:25:10 +02:00
|
|
|
#include "config.h"
|
2009-09-10 04:27:25 +02:00
|
|
|
|
2011-07-27 00:25:10 +02:00
|
|
|
#include "../libaegisub/lagi_pre.h"
|
|
|
|
|
|
|
|
/////////
|
|
|
|
// Setup
|
|
|
|
#define AGI_PRE
|
|
|
|
|
2009-09-10 06:29:04 +02:00
|
|
|
// General headers
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <iconv.h>
|
2010-08-25 21:31:20 +02:00
|
|
|
#include <inttypes.h>
|
2009-09-10 06:29:04 +02:00
|
|
|
#include <locale.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <wchar.h>
|
|
|
|
|
2009-09-10 16:39:39 +02:00
|
|
|
#ifdef _WIN32
|
|
|
|
#include <windows.h>
|
2009-09-11 01:08:38 +02:00
|
|
|
#include <objbase.h>
|
2009-09-10 16:39:39 +02:00
|
|
|
#include <mmsystem.h>
|
2009-09-10 15:06:40 +02:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#include <sys/fcntl.h>
|
|
|
|
#include <sys/mman.h>
|
|
|
|
#include <sys/stat.h>
|
2009-09-10 16:39:39 +02:00
|
|
|
#include <sys/ioctl.h>
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <unistd.h>
|
2009-09-10 06:29:04 +02:00
|
|
|
#endif
|
2008-01-20 07:14:40 +01:00
|
|
|
|
2006-12-23 16:37:33 +01:00
|
|
|
/////////////////////
|
|
|
|
// wxWidgets headers
|
2009-09-10 12:26:50 +02:00
|
|
|
#include <wx/wxprec.h> // Leave this first.
|
2009-09-10 04:27:25 +02:00
|
|
|
|
2009-09-10 12:26:50 +02:00
|
|
|
// Windows
|
|
|
|
#ifdef __WXMSW__
|
|
|
|
#include <wx/msw/registry.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// All platforms.
|
2009-09-10 04:32:55 +02:00
|
|
|
#include <wx/accel.h>
|
|
|
|
#include <wx/app.h>
|
|
|
|
#include <wx/arrstr.h>
|
|
|
|
#include <wx/bitmap.h>
|
|
|
|
#include <wx/bmpbuttn.h>
|
|
|
|
#include <wx/button.h>
|
|
|
|
#include <wx/checkbox.h>
|
|
|
|
#include <wx/checklst.h>
|
|
|
|
#include <wx/choicdlg.h>
|
|
|
|
#include <wx/choice.h>
|
|
|
|
#include <wx/choicebk.h>
|
2009-09-10 04:27:25 +02:00
|
|
|
#include <wx/clipbrd.h>
|
2009-09-10 04:32:55 +02:00
|
|
|
#include <wx/colordlg.h>
|
|
|
|
#include <wx/colour.h>
|
|
|
|
#include <wx/combobox.h>
|
|
|
|
#include <wx/config.h>
|
|
|
|
#include <wx/control.h>
|
2009-09-10 12:26:50 +02:00
|
|
|
#include <wx/dataobj.h>
|
2011-10-28 22:40:43 +02:00
|
|
|
#include <wx/dataview.h>
|
2009-09-10 04:32:55 +02:00
|
|
|
#include <wx/datetime.h>
|
|
|
|
#include <wx/dc.h>
|
2010-12-08 04:36:10 +01:00
|
|
|
#include <wx/dcbuffer.h>
|
2009-09-10 04:32:55 +02:00
|
|
|
#include <wx/dcclient.h>
|
|
|
|
#include <wx/dcmemory.h>
|
|
|
|
#include <wx/dcscreen.h>
|
|
|
|
#include <wx/dialog.h>
|
|
|
|
#include <wx/dir.h>
|
|
|
|
#include <wx/dirdlg.h>
|
|
|
|
#include <wx/display.h>
|
|
|
|
#include <wx/dnd.h>
|
|
|
|
#include <wx/docview.h>
|
|
|
|
#include <wx/dynarray.h>
|
2009-09-10 04:27:25 +02:00
|
|
|
#include <wx/event.h>
|
2006-12-23 16:37:33 +01:00
|
|
|
#include <wx/file.h>
|
|
|
|
#include <wx/filedlg.h>
|
2009-09-10 04:32:55 +02:00
|
|
|
#include <wx/filefn.h>
|
2009-09-10 04:27:25 +02:00
|
|
|
#include <wx/filename.h>
|
2009-09-10 04:32:55 +02:00
|
|
|
#include <wx/filesys.h>
|
|
|
|
#include <wx/font.h>
|
2006-12-23 16:37:33 +01:00
|
|
|
#include <wx/fontdlg.h>
|
2009-09-10 04:32:55 +02:00
|
|
|
#include <wx/fontenum.h>
|
|
|
|
#include <wx/frame.h>
|
|
|
|
#include <wx/fs_inet.h>
|
|
|
|
#include <wx/gauge.h>
|
|
|
|
#include <wx/gbsizer.h>
|
|
|
|
#include <wx/gdicmn.h>
|
2009-09-10 04:27:25 +02:00
|
|
|
#include <wx/glcanvas.h>
|
|
|
|
#include <wx/grid.h>
|
2009-09-10 04:32:55 +02:00
|
|
|
#include <wx/hashmap.h>
|
Merge 3906,r3909,r3910,r3912,r3928,r3931,r3932,r3933,r3935,r3936: merge update checker from 2.1.8, this also needs to be documented for doxygen. closes #1084.
Originally committed to SVN as r4042.
2010-01-26 14:14:05 +01:00
|
|
|
#include <wx/hyperlink.h>
|
2009-09-10 12:26:50 +02:00
|
|
|
#include <wx/icon.h>
|
2009-09-10 04:32:55 +02:00
|
|
|
#include <wx/image.h>
|
|
|
|
#include <wx/intl.h>
|
|
|
|
#include <wx/laywin.h>
|
|
|
|
#include <wx/listbox.h>
|
|
|
|
#include <wx/listctrl.h>
|
|
|
|
#include <wx/log.h>
|
|
|
|
#include <wx/menu.h>
|
|
|
|
#include <wx/menuitem.h>
|
|
|
|
#include <wx/mimetype.h>
|
2006-12-23 16:37:33 +01:00
|
|
|
#include <wx/msgdlg.h>
|
2009-09-10 04:32:55 +02:00
|
|
|
#include <wx/mstream.h>
|
2009-09-10 04:27:25 +02:00
|
|
|
#include <wx/notebook.h>
|
2011-11-06 18:18:20 +01:00
|
|
|
#include <wx/numformatter.h>
|
2009-09-10 04:32:55 +02:00
|
|
|
#include <wx/panel.h>
|
2010-12-08 04:36:10 +01:00
|
|
|
#include <wx/power.h>
|
Merge 3906,r3909,r3910,r3912,r3928,r3931,r3932,r3933,r3935,r3936: merge update checker from 2.1.8, this also needs to be documented for doxygen. closes #1084.
Originally committed to SVN as r4042.
2010-01-26 14:14:05 +01:00
|
|
|
#include <wx/protocol/http.h>
|
2009-09-10 04:32:55 +02:00
|
|
|
#include <wx/radiobox.h>
|
|
|
|
#include <wx/radiobut.h>
|
|
|
|
#include <wx/rawbmp.h>
|
|
|
|
#include <wx/recguard.h>
|
2009-09-10 04:27:25 +02:00
|
|
|
#include <wx/regex.h>
|
|
|
|
#include <wx/sashwin.h>
|
2009-09-10 04:32:55 +02:00
|
|
|
#include <wx/scrolbar.h>
|
|
|
|
#include <wx/settings.h>
|
|
|
|
#include <wx/sizer.h>
|
|
|
|
#include <wx/slider.h>
|
2006-12-23 16:37:33 +01:00
|
|
|
#include <wx/spinctrl.h>
|
2011-11-06 18:18:20 +01:00
|
|
|
#include <wx/srchctrl.h>
|
2009-09-10 04:27:25 +02:00
|
|
|
#include <wx/stackwalk.h>
|
2009-09-10 04:32:55 +02:00
|
|
|
#include <wx/statbmp.h>
|
|
|
|
#include <wx/statbox.h>
|
2009-09-10 04:27:25 +02:00
|
|
|
#include <wx/statline.h>
|
2009-09-10 04:32:55 +02:00
|
|
|
#include <wx/stattext.h>
|
2007-04-22 01:16:38 +02:00
|
|
|
#include <wx/stc/stc.h>
|
2009-09-10 04:32:55 +02:00
|
|
|
#include <wx/stdpaths.h>
|
|
|
|
#include <wx/stopwatch.h>
|
|
|
|
#include <wx/strconv.h>
|
2006-12-24 05:54:35 +01:00
|
|
|
#include <wx/string.h>
|
2009-09-10 04:32:55 +02:00
|
|
|
#include <wx/sysopt.h>
|
|
|
|
#include <wx/textctrl.h>
|
|
|
|
#include <wx/textfile.h>
|
2009-09-10 04:27:25 +02:00
|
|
|
#include <wx/tglbtn.h>
|
2009-09-10 04:32:55 +02:00
|
|
|
#include <wx/thread.h>
|
|
|
|
#include <wx/timer.h>
|
2009-09-10 04:27:25 +02:00
|
|
|
#include <wx/tipdlg.h>
|
|
|
|
#include <wx/tokenzr.h>
|
2009-09-10 04:32:55 +02:00
|
|
|
#include <wx/toolbar.h>
|
|
|
|
#include <wx/treebook.h>
|
|
|
|
#include <wx/txtstrm.h>
|
|
|
|
#include <wx/utils.h>
|
|
|
|
#include <wx/validate.h>
|
|
|
|
#include <wx/valtext.h>
|
2009-09-10 04:27:25 +02:00
|
|
|
#include <wx/wfstream.h>
|
2009-09-10 04:32:55 +02:00
|
|
|
#include <wx/window.h>
|
|
|
|
#include <wx/xml/xml.h>
|
|
|
|
#include <wx/zipstrm.h>
|
2009-09-10 04:27:25 +02:00
|
|
|
|
2007-04-22 04:24:27 +02:00
|
|
|
#ifdef HAVE_APPLE_OPENGL_FRAMEWORK
|
2011-01-11 18:52:17 +01:00
|
|
|
#include <OpenGL/gl.h>
|
2007-04-22 04:24:27 +02:00
|
|
|
#include <OpenGL/glu.h>
|
2010-06-07 09:24:25 +02:00
|
|
|
#include <OpenGL/glext.h>
|
2007-04-22 04:24:27 +02:00
|
|
|
#else
|
2007-01-27 07:15:25 +01:00
|
|
|
#include <GL/gl.h>
|
|
|
|
#include <GL/glu.h>
|
2010-06-07 09:24:25 +02:00
|
|
|
#include "gl/glext.h"
|
2007-04-22 04:24:27 +02:00
|
|
|
#endif
|
2006-12-23 16:37:33 +01:00
|
|
|
|
2011-07-27 00:24:48 +02:00
|
|
|
#ifndef _CRT_SECURE_NO_WARNINGS_DEFINED
|
2009-09-10 04:52:34 +02:00
|
|
|
#undef _CRT_SECURE_NO_WARNINGS
|
|
|
|
#endif
|