Commit Graph

12330 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Francesco Montorsi
b56d1061bb enable all compat symbols when using gccxml
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-29 18:58:43 +00:00
Francesco Montorsi
18e9c453ef s/FALSE/false
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-29 18:58:21 +00:00
Vadim Zeitlin
8aea37a9df use buffered streams to reduce the number of TCP packets used per IPC command from up to 7 to 1 for reasonably sized payloads, this dramatically (by 150 times for the IPC benchmark on a LAN) increases performance; also centralize all the streams used in a single wxIPCSocketStreams class and allocate only it on the heap instead of doing it for all of the streams
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-29 16:45:55 +00:00
Vadim Zeitlin
f42c1512dd provide ctors allowing to specify the non-default buffer size for buffered streams and wxStreamBuffer itself
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-29 16:42:45 +00:00
Vadim Zeitlin
de56f24082 added wxDocument::AlreadySaved() and use it in OnUpdateFileSave() to ensure that the "Save" menu item is enabled for new documents, even although they're not modified yet (otherwise the standard Ctrl-S key doesn't work in this case which is pretty annoying)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-29 16:23:25 +00:00
Vadim Zeitlin
d7b3a73d07 document wxDocument::GetDocumentSaved()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-29 16:15:03 +00:00
Francesco Montorsi
56454c1513 fixed a missing ampersand
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-28 15:34:46 +00:00
Francesco Montorsi
a805142d93 move wxVListBoxNameStr into vlbox.cpp source file (as for all other wxWidgets *NameStr
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-28 15:03:37 +00:00
Francesco Montorsi
303c6f20d2 make IsKindOf() taking a const wxClassInfo* instead of a wxClassInfo*, just like the homonym method in wxClassInfo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-28 14:54:40 +00:00
Vadim Zeitlin
7e73fb9c99 no real changes, just reformat before starting really modifying
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-28 00:02:38 +00:00
Vadim Zeitlin
9eb2347dc3 disable workaround for lack of alpha support in native static bitmap control for WinCE, apparently it breaks the display (#10093)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-27 18:15:19 +00:00
Jaakko Salli
c724444f7e Added similar assignment operator as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-27 16:50:45 +00:00
Jaakko Salli
1d882226f5 Added wxPropertyGridConstIterator(const wxPropertyGridIterator&) copy ctor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-27 16:47:35 +00:00
Vadim Zeitlin
e7d3d27dce fix handling of errors in wxConditionInternal::Wait() and WaitTimeout() (#10111)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-27 16:46:43 +00:00
Jaakko Salli
cfcc02a8a4 Removed dummy wxFont == operator implementation (IIRC was needed to compile with some old version of wx)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-27 16:26:46 +00:00
Robert Roebling
36a845fe5b Added method to disable focus_out handling temporarily
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-27 14:02:54 +00:00
Vadim Zeitlin
074574b4a6 compilation fix for operator=() with DMC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-22 23:14:48 +00:00
Jaakko Salli
78f2d746a0 Merged wxBaseEnumPropertyClass (intermediate property class with obsolete purpose) to wxEnumPropertyClass
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-22 15:23:07 +00:00
Robert Roebling
788432e343 Correct TAB handling for generic wxDataViewCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-21 19:10:25 +00:00
Jaakko Salli
98c0463399 Removed deprecated functions wxPGChoices::HasValue(), HasValues()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-21 15:17:06 +00:00
Jaakko Salli
f275b5dbfd User should no longer be able to modify disabled or read only child properties by editing their parent (wxPG sf bug #2181860)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-20 17:01:17 +00:00
Jouk Jansen
e3c80a1dd9 gtk1.x has less native functions than gtk2.x
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-20 14:12:40 +00:00
Vadim Zeitlin
dd639a4f27 a couple of more left over Borland unused variable/code warnings fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-20 10:52:17 +00:00
Vadim Zeitlin
e822d1bd5f fix more Borland release build warnings about unused variable/code without effect
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-20 10:30:49 +00:00
Vadim Zeitlin
3232da9d90 work around Borland compilation errors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-20 09:00:19 +00:00
Vadim Zeitlin
ddc7f0c975 fix virtual function hiding warnings introduced to changing wxSockAddress argument of Connect() to be passed by const reference
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-20 08:59:45 +00:00
Stefan Neis
ac10ea91c9 Compilation fix for gcc-4 and newer.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-20 06:55:10 +00:00
Stefan Neis
3b644e9889 Compilation fix for gcc-4 and newer.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-19 12:34:13 +00:00
Jaakko Salli
404b9c623a Changed argument of wxPropertyGrid::OnCustomEditorEvent() from wxCommandEvent to wxEvent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-19 11:48:49 +00:00
Jaakko Salli
9bc1121429 In wxPropertyGridManager, alphabetic mode is now sorted even if wxPG_AUTO_SORT flag is absent (fixes wxPG sf bug #2162053)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56437 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-19 11:29:36 +00:00
Vadim Zeitlin
deb0c40261 remove extraneous returns
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56434 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-19 10:16:47 +00:00
Jaakko Salli
68f9e025b9 Simplistic tab support is now default (tab focuses editor if unfocused, otherwise goes out of grid), no longer recognizes wxTAB_TRAVERSAL, unified key handling code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-18 15:11:44 +00:00
Vadim Zeitlin
5eda3bcdad remove assert from GetSizeAvailableForScrollTarget
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56420 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-18 13:50:10 +00:00
Jaakko Salli
c82a80e81f wxPGProperty::GenerateComposedValue() -> protected DoGenerateComposedValue(), added simple public GenerateComposedValue()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-17 16:46:38 +00:00
Vadim Zeitlin
bce49490f6 compilation fix for include wx/generic/stattextg.h before/without including wx/stattext.h in PCH-less wxUniv build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-17 12:02:47 +00:00
Robert Roebling
724852daae Enable intercepting ENTER in wxSpinCtrl under wxMac by using wxTE_PROCESS_ENTER
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 22:18:04 +00:00
Václav Slavík
13f0cfee4d forgot to commit toplevel.h as part of r56374
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 20:20:52 +00:00
Václav Slavík
a158acac6d Cleaned up wxArtProvider:
1. Move platform-specific code for both GetSizeHint() and GetBitmap()
   into platform-specific files.
2. Introduced GetNativeSizeHint() to make native sizes better accessible,
   without having to understand weird GetSizeHint() semantics.
3. Fixed GetNativeSizeHint() to return sensible values in non-GTK ports;
   it returns wxDefaultSize if it can't make a good guess instead of
   returning arbitrary value.
4. Use 16x16 icons on MSW instead of 16x15: it works and is more
   'natural' size.



git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 19:07:42 +00:00