Commit Graph

46086 Commits

Author SHA1 Message Date
Francesco Montorsi
0c14b6c324 fix the incoherence pointed out by ifacecheck between wx docs, that documents usage of the wxFontFamily, wxFontStyle and wxFontWeight enums in wxFont setters and getters, and the actual sources, which use 'int' instead; provided the same backward-compatibility pattern already used for wxBrush,wxPen both against 'int' overloads and against the wxDeprecatedGUIConstants enum values
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-03 17:02:25 +00:00
Jaakko Salli
e2ca659906 Moved Get/SetPropertyText/BackgroundColour() member functions from wxPropertyGrid to wxPropertyGridInterface
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-03 17:02:04 +00:00
Francesco Montorsi
9cc56d1fc0 remaining h* interface header revision
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-03 14:37:14 +00:00
Vadim Zeitlin
f9bb777f88 define wxHAS_CONFIG_TEMPLATE_RW if template wxConfig::Read/Write() are available; use it to exclude the calls to these functions from the test to fix VC6 compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-03 13:36:08 +00:00
Vadim Zeitlin
2f4c5d0077 wx/tls.h belongs to base headers, not core (#10148)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-03 12:47:56 +00:00
Vadim Zeitlin
55d9f029b6 define operator<<(wxLongLong_t) for VC6 whether wxUSE_STD_IOSTREAM is 0 or 1 (fixes test compilation in the latter case)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-03 12:44:07 +00:00
Francesco Montorsi
f21dd16b46 fixed doxygen warnings produced by the ifacecheck fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-03 11:57:07 +00:00
Vadim Zeitlin
097a92e228 blind fix for yet another VC6 compilation error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-03 01:11:59 +00:00
Vadim Zeitlin
527587d347 really fix VC6 compilation of all testsi (without breaking VC9)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-03 00:31:16 +00:00
Vadim Zeitlin
8112fbf0d7 undo the previous change, it's not needed any more now that we overload assertEquals(int,long) too and it broke VC6 compilation again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 22:30:16 +00:00
Francesco Montorsi
23318a5358 declare all NameStr[] strings as const char using the correct WXDLLIMPEXP_DATA_ macros; in the process, change wxPropGrid window classes to take 'const wxString& name' arguments instead of 'const wxChar *name'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 22:16:14 +00:00
Stefan Csomor
74cc3ec18e make sure virtual method isn't inlined away
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 19:13:54 +00:00
Vadim Zeitlin
81d3348a9b replace wx_{const,static,reinterpret}_cast with their standard C++ equivalents
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 02:43:11 +00:00
Vadim Zeitlin
5c33522fca replace wx_{const,static,reinterpret}_cast with their standard C++ equivalents
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 02:39:52 +00:00
Vadim Zeitlin
6fc905e0e1 add yet another overload of assertEquals to fix another compilation error due to using different types inside CPPUNIT_ASSERT_EQUAL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 02:34:12 +00:00
Vadim Zeitlin
e0f7a83ba0 remove tests for bool and {const,static,reinterpret}_cast in configure and wx/defs.h, all supported compilers have them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 02:16:32 +00:00
Vadim Zeitlin
4c1d5d5ae2 remove tests for bool and {const,static,reinterpret}_cast in configure and wx/defs.h, all supported compilers have them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 02:16:09 +00:00
Vadim Zeitlin
94bc35dc33 explicitly cast wxUniCharRef to char inside CPPUNIT_ASSERT_EQUAL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 01:59:34 +00:00
Vadim Zeitlin
2a2361ccc9 added propgrid sources
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 01:58:14 +00:00
Vadim Zeitlin
4e79262f78 resolve the DLL linking problems with MSVC due to use of static variables of template types by replacing them by a non-template unique untypedNullDataPtr
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 01:48:36 +00:00
Vadim Zeitlin
428dca1c5b fix (justified) warnings about potential use of uninitialized variable in wxTCPEventHandler::Client_OnRequest()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 01:43:55 +00:00
Vadim Zeitlin
2e9abe9e35 g++ compilation fix after latest changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 01:11:17 +00:00
Vadim Zeitlin
3896f1cc5f add assertEquals(int,unsigned short) overload to resolve the ambiguity resulting in tests comparing unsigned short with literal integer constants now that we have both assertEqals(int,unsigned int) and assertEquals(int, unsigned long) to satisfy VC6
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 00:52:41 +00:00
Jaakko Salli
7036fd2061 In composed string values, entry for last children was often omitted if it was empty (and possibly unspecified, fixes wxPG sf bug #2197916)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-01 18:40:29 +00:00
Vadim Zeitlin
9ea7a5ddb7 yet another compilation fix, this time for VC9
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-01 18:05:59 +00:00
Jaakko Salli
40bfc77055 It was not possible to set value of unspecified child by editing parent's composite string (fixes wxPG sf bug #2186553)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-01 17:09:34 +00:00
Jaakko Salli
b0f0eda8ce Fix various warnings that only appear for release builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-01 16:49:32 +00:00
Vadim Zeitlin
e79d4945d7 fix another MSVC /Wp64 warning about size_t to int conversion (closes #10140)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-31 23:07:49 +00:00
Jaakko Salli
d7e2b52235 Reworked wxPGCell. It is now reference counted, and therefore much more user friendly, and is used internally as basis for most property colour values instead of separate row text and bg colours.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-31 18:53:37 +00:00
Vadim Zeitlin
42632bcee1 fix MSVC /Wp64 warning about size_t to int conversion (closes #10068)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-31 17:14:12 +00:00
Vadim Zeitlin
08e827d82d fix compilation without wxUSE_FILESYSTEM (closes #10114)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-31 13:07:42 +00:00
Václav Slavík
13e451aee2 wxTLW: don't assert when setting null icons initially (#10138)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-31 10:06:19 +00:00
Václav Slavík
ed7701bd5f fix toolbar buttons so that they don't disappear temporarily when clicked if the event handler causes window update
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-31 09:41:47 +00:00
Paul Cornett
9065953545 make sure update UI handlers are called for accelerators, #10130
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-31 05:25:59 +00:00
Vadim Zeitlin
254cb7348f grid sample doesn't need neither html nor xml library
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-31 02:06:25 +00:00
Bryan Petty
23d291c2d2 Reviewed some g* interface headers.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-31 01:22:58 +00:00
Vadim Zeitlin
fecddbaa5d disable a correct test which VC6 just doesn't want to grok (hopefully last buildbot error?)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-30 23:23:07 +00:00
Vadim Zeitlin
0fbfcdd068 for some reason having int/size_t assertEquals() overload is not always enough for VC6, so provide both unsigned int/long overloads instead and rely on size_t being one of them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-30 23:22:10 +00:00
Vadim Zeitlin
6b583d40a8 fix linking problems due to MSVC implicitly considering template classes specializations used as base classes DLL-exported even though it doesn't actually export them when building the DLL (with or without explicit declspec(dllexport)); also replace wxCharTypeBuffer::NullData with a static function to allow not DLL-exporting this class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-30 23:04:29 +00:00
Vadim Zeitlin
10d256d6c8 attempting to fix VC6 compilation error from buildbot logs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-30 16:54:41 +00:00
Vadim Zeitlin
638205e547 don't use WXDLLIMPEXP_BASE with wx[Sorted]Array_SortFunction, this results in link errors with VC[89] when building a DLL and shouldn't be necessary with any other compilers neither as these classes have only inline methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-30 15:57:18 +00:00
Václav Slavík
b6e2aaace5 must close output file before reading back from it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-30 11:22:31 +00:00
Francesco Montorsi
90a47090c6 set WARN_IF_UNDOCUMENTED to YES; it doesn't introduce new warnings for now but could in future
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-30 11:16:22 +00:00
Francesco Montorsi
335da90299 fix typos
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-30 11:15:08 +00:00
Francesco Montorsi
b4da9d62df modernized
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-30 11:14:46 +00:00
Francesco Montorsi
78e37b46a4 fixed missing semicolons, as reported by check_syntax.sh
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-30 11:11:00 +00:00
Francesco Montorsi
d6d0011db9 added a simple script to detect interface headers with missing semicolons
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-30 11:06:06 +00:00
Francesco Montorsi
37220641e0 typo fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-30 10:53:56 +00:00
Francesco Montorsi
bf505dfce5 fixed the error '& may not appear in macro parameter list' reported by running gcc preprocessor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-30 10:39:54 +00:00
Francesco Montorsi
d7b99b162f fixed the error 'macro parameters must be comma-separated' reported by running gcc preprocessor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-30 10:32:10 +00:00