Vadim Zeitlin
9437a6abf0
Show assert stack if in the test if possible
...
Make wxAppTraitsBase::GetAssertStackTrace() and reuse it in the assert
handler defined in the test to show more information about the asserts,
especially those failing in worker threads, if possible.
2021-04-07 14:37:16 +02:00
Vadim Zeitlin
e00d5e131b
Use new wxAppTraits::SafeMessageBox() in wxSafeShowMessage()
...
This allows to show message boxes in ports other than wxMSW too by doing
it only when it is safe, i.e. when the GUI is initialized, while still
keeping the old code directly using the native MessageBox() function for
MSW for maximal robustness.
2021-03-07 23:51:54 +01:00
Jeff Bland
26715a1fe0
Fix warning with missing override
2018-05-18 18:49:00 -06:00
Tobias Taschner
c17202c696
Remove extra handling of wxAppTraits::GetStandardPaths() on OS X.
...
Since the removal of carbon in 5ba67c67e4
there is no longer any special handling required.
2016-03-04 15:34:51 +01:00
Dimitri Schoolwerth
1e78bf639e
Add micro version to toolkit version functions
...
Support micro versions in wxAppTraits::GetToolkitVersion and
wxPlatformInfo functions related to toolkit versions.
2016-02-29 10:05:43 +01:00
Tobias Taschner
26a0a24f38
Remove MS-DOS source files.
...
Last work on the MS-DOS files was 10 years ago and it's not a viable platform in 2015 any more.
2015-08-26 21:09:41 +02:00
Vadim Zeitlin
01f9accd19
Remove wxPM, wxWidgets port to OS/2.
...
This port is not used and is not being worked on, so remove it to reduce the
amount of the code which needs to be updated for every global change.
Also remove tests for VisualAge compiler which isn't used since ages.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-05-15 23:56:58 +00:00
Paul Cornett
8b4ae731d3
use wxOVERRIDE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-03-30 00:02:23 +00:00
Vadim Zeitlin
3f66f6a5b3
Remove all lines containing cvs/svn "$Id$" keyword.
...
This keyword is not expanded by Git which means it's not replaced with the
correct revision value in the releases made using git-based scripts and it's
confusing to have lines with unexpanded "$Id$" in the released files. As
expanding them with Git is not that simple (it could be done with git archive
and export-subst attribute) and there are not many benefits in having them in
the first place, just remove all these lines.
If nothing else, this will make an eventual transition to Git simpler.
Closes #14487 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-26 16:02:46 +00:00
Vadim Zeitlin
b51014176a
Don't call setlocale("") on startup by default any longer.
...
This undoes the changes of r44773 because calling setlocale() resulted in C
locale being set differently from C++ locale which was confusing and led to
huge slowdowns in any code using std::stream with at least MinGW. And setting
the C++ locale to be the same, as r72719 tried to do, doesn't seem to be
practical as it results in immediate crashes under OS X and MinGW when used
under XP.
Do provide wxApp::SetCLocale() helper to explicitly do what was previously
done implicitly, even though currently it is a trivial wrapper for setlocale()
and we don't even need to call gtk_set_locale() as it has never done anything
else and is deprecated since GTK+ 2.24.
Closes #14780 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-14 13:46:50 +00:00
Vadim Zeitlin
bd362275b8
Remove Palm OS port.
...
The platform targeted by this port doesn't exist any more and the port never
achieved really working state so remove the code to avoid having to maintain
it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-01-15 01:05:28 +00:00
Vadim Zeitlin
3185abc278
Support delayed destruction in console applications too.\n\nThis only works if there is a running event loop but if there is one, we can have the same kind of problems with non-GUI objects such as sockets in console applications as we have with windows in GUI ones, so we must support this (see #10989 ).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-21 14:16:44 +00:00
Vadim Zeitlin
25f49256ac
return wxStandardPaths, not wxStandardPathsBase, from wxStandardPathsBase::Get() to allow calling platform-specific methods on it if necessary
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-06 23:34:05 +00:00
Vadim Zeitlin
657a8a3598
first round of debug/release merge: introduce wxDEBUG_LEVEL, for now defined as 1 if __WXDEBUG__ is defined, i.e. no real changes; don't use __WXDEBUG__ in the headers to keep debug and release builds ABI-compatible; add functions to customize or disable asserts handling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-21 23:36:37 +00:00
Vadim Zeitlin
51fe4b60ab
Streamline wxSocket code: wxSocketBase now uses wxSocketImpl (previously known
...
as GSocket) which is a base class with various wxSocketImplXXX implementations
provided by different wxSocketManagers.
Share more code between ports (still not finished).
Refactor some code inside wxSocketImpl itself to be less redundant and fixed a
couple of minor bugs in the process.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-28 12:47:07 +00:00
Francesco Montorsi
53a2db124c
substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-26 15:06:00 +00:00
Francesco Montorsi
1f5c66294a
add to GetToolkitVersion() the = NULL default values for the two arguments: they were documented but not actually implemented
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-21 14:21:52 +00:00
Vadim Zeitlin
2804f77d88
more socket cleanup to allow using wxSocket from both wxBase and wxCore (replaces patch 1756260)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-19 16:45:08 +00:00
Paul Cornett
d254213eb2
add MutexGuiEnter/Leave to wxAppTraits, integrate native GTK+ GUI locking
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-17 05:37:00 +00:00
Stefan Csomor
8361bffa4a
mac cleanup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-23 19:16:05 +00:00
Vadim Zeitlin
a187327964
Added wxUSE_CONSOLE_EVENTLOOP and wxUSE_SELECT/EPOLLDISPATCHER guards;
...
put checks for them in the new Unix-specific wx/unix/chkconf.h file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-14 19:06:18 +00:00
Václav Slavík
b5dbe15d0b
added WXDLLIMPEXP_FWD_FOO macros in addition to WXDLLIMPEXP_FOO for use with forward declarations (in preparation for GCC visibility support)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-09 10:09:52 +00:00
Václav Slavík
6ae3ead6f0
always compile at least a minimal version of wxStandardPaths class, it's used too often
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-15 15:21:57 +00:00
Vadim Zeitlin
84281b92d5
added wxAppTraits::CreateConfig() (patch 1721149)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46189 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-24 00:50:54 +00:00
Vadim Zeitlin
2ddff00c92
don't define wxEventLoop class differently in GUI and base, this breaks the
...
ODR and hence results in many problems in practice; instead use wxEventLoopBase
whenever possible and #define wxEventLoop differently in console applications
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-22 02:30:01 +00:00
Vadim Zeitlin
b46b1d59d6
implement event loop for console applications (heavily modified patch 1715735)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-14 23:43:39 +00:00
Vadim Zeitlin
df57f6bea3
compilation fixes for PCH-less build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 22:20:57 +00:00
Vadim Zeitlin
d3a0a0eeab
added wxAppTraits::GetStandardCmdLineOptions() allowing to add the description of the standard toolkit options to the usage message and implement it for wxGTK2 (patch 1703077)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 20:54:07 +00:00
Vadim Zeitlin
c2ca375c56
preparation for allowing to use wxTimer in wxBase (heavily modified patch 1113088):
...
1. Changed wxTimer to use wxTimerImpl
2. Added Unix-specific generic timer implementation
3. Added wxAppTraits::CreateTimerImpl()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-20 01:29:16 +00:00
Vadim Zeitlin
d774f9161c
added wxAppTraits::SetLocale() and call it during wxApp initialization in all ports, not just wxGTK
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-12 01:46:14 +00:00
Robert Roebling
db9febdf41
Actually use new GTK+ native assert dialog.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-24 10:55:26 +00:00
Stefan Neis
21d3d3424b
Corrected includes for wxGTK under OS/2.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-29 17:59:19 +00:00
Robert Roebling
88bbc3329b
Test for KDE and GNOME using session manager vendor.
...
Use it in mime types initialization.
Add wxUSE_DETECT_SM
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-18 21:55:54 +00:00
Vadim Zeitlin
449090b54d
added static wxPlatformInfo::Get() and use it (patch 1549176)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-09 15:58:56 +00:00
Michael Wetherell
9aecec9a94
Add apptrait.h for msdos
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-24 21:18:18 +00:00
Václav Slavík
b98bd6af23
wxPlatformInfo::IsUsingUniversalWidgets() was broken by design, it couldn't work in wxBase shared by 2+ wxCores; fixed by making it non-static and moving its implementation back to wxAppTraits (where its equivalent used to be) and making small API changes implied by that
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-16 17:18:34 +00:00
Vadim Zeitlin
8bb6b2c057
wxPlatformInfo (patch 1532064)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-13 21:00:32 +00:00
Włodzimierz Skiba
532d575bd9
Allow MSW Base be usable in other ports than wxMSW (ie. wxTVision in windows console). Adjustements for limited setup.h (as in wxTV) and minor source cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-10 17:53:19 +00:00
Vadim Zeitlin
07158944d8
added wxUSE_STDPATHS
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-07 22:37:58 +00:00
Włodzimierz Skiba
a809b45d59
Completed sync of BASE_CMN_SRC between PalmOS and bakefiles. Missing features (stdpaths) added and buildable.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-25 09:44:49 +00:00
Vadim Zeitlin
ed62f740a1
added missing virtual dtors to base classes (patch 1150945)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-24 14:33:32 +00:00
Włodzimierz Skiba
4055ed8281
Use __WXPALMOS__ for PalmOS port which fits __WX$(TOOLKIT)__ of bakefiles. Do not depend on MSW macros in PalmOS port. Source cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-20 12:44:22 +00:00
David Elliott
fc480dc16b
Moved wxStandardPathsCF into base library when using CarbonLib or Darwin.
...
Make wxStandardPathsBase::Get() return a wxStandardPathsBase reference.
Implement it using wxAppTraits::GetStandardPaths() which is overridden by
wxMac and wxCocoa GUI libraries to return a reference to a wxStandardPathsCF.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-12 21:21:00 +00:00
Julian Smart
ffecfa5aeb
Committed William Osborne's wxPalmOS port
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-19 13:40:30 +00:00
Włodzimierz Skiba
4629016dfb
Source cleaning: whitespaces, tabs, TRUE/true, FALSE/false.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-08 17:30:19 +00:00
David Elliott
3e1400ac6a
Removed incorrect struct qualifier from GSocketGUIFunctionsTable
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-08 04:48:33 +00:00
Julian Smart
655719367a
Use old licence name
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e
Name and version changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Václav Slavík
321b8029b3
hopefully better description of GetSocketGUIFunctionsTable's purpose
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-02 13:26:59 +00:00
David Elliott
758f1d2e02
Reverting wxAppTraits GSocket patch
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-19 18:40:45 +00:00