Vadim Zeitlin
85d98dfe88
fix wxXPMDataHandler silently broken by long->wxBitmapType change
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-04 01:42:33 +00:00
Francesco Montorsi
394fd6e2f2
build fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-03 18:50:41 +00:00
Francesco Montorsi
9817be8a86
build fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-03 18:24:05 +00:00
Francesco Montorsi
1fdb23edd6
build fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-03 18:15:03 +00:00
Vadim Zeitlin
57c6f0fe5f
don't crash trying to draw buttons with invalid bitmaps (the real fix would be to avoid adding them to the toolbar in the first place, of course...)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-03 17:24:51 +00:00
Vadim Zeitlin
6f23f80b72
fix (harmless) unused variable warning
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-03 17:10:21 +00:00
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
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
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
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
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
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
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
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
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
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
Václav Slavík
55ad60c94c
wxHTML: don't include extra whitespace in table cells
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-30 07:24:36 +00:00
Vadim Zeitlin
22a9029e23
VC6 compilation fix after last change (thanks buildbot)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-30 00:32:24 +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
838dd956a4
fix assert when adding an entry to an already full file history ( closes #10118 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-29 16:04:06 +00:00
Jouk Jansen
958b430ac7
Update OpenVMS compile support (problem cairo logical)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-29 07:53:45 +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
Václav Slavík
9e570f836b
fixed interpretation of line breaks in <pre> to conform to the spec ( #10120 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-28 10:04:36 +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
438febca6e
don't sleep too long to avoid missing the timers; added a simple test for timer events processing in console apps
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-27 22:04:42 +00:00
Vadim Zeitlin
ae3b14872b
don't save the initial selection if it's invalid in CBN_DROPDOWN (refixes #8474 without breaking #9995 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-27 18:47:07 +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
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
e3cb990e68
Set cursor to <from> in wxTextCtrk::SetSelection
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-27 14:29:16 +00:00
Robert Roebling
5edfb38495
Disable focus out events during menu popup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-27 14:19:18 +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
4e10de45a6
rename ca@valencian description to "Valencian (Southern Catalan)" at translators request
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-25 15:48:52 +00:00
Vadim Zeitlin
90523bdb22
fix a couple of typos pointed out by a translator
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-23 14:53:01 +00:00
Robert Roebling
bf7160a83e
Ticket #10108 (bitmap from wxImage depth regression)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56487 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-22 16:58:51 +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
b50e81c696
Added workaround for wxGTK tab traversal problem
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-21 14:35:17 +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
Paul Cornett
e253521dda
fix for assert failure when first paint event occurs before first idle event, #10085
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-20 16:50:20 +00:00
Robert Roebling
4ee5edc799
Fix wxListCtrl::Insert() bug reported by Riccardo Cohen
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56468 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-20 11:33:58 +00:00
Vadim Zeitlin
53b849eadf
use wxRegKey::QueryDefaultValue() explicitly to fix DMC compilation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-20 11:08:05 +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
f1430ac766
slightly better error reporting (could still be improved)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-20 10:43:17 +00:00
Vadim Zeitlin
bd8b65be3d
2006 version of Borland compiler still doesn't grok operator?: involving wxStrings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-20 10:31:29 +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
107b52ed17
avoid an unnecessary and unused (resulting in release build warning) variable in GetMimeTypeFromExt()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-20 09:57:34 +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
Vadim Zeitlin
419875a6f5
use renderer for drawing the item background on ports other than GTK2 and Mac too (why not?)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-20 08:58:52 +00:00
Vadim Zeitlin
d8defde6b0
remove unused abits variable from DoLoadDib()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-20 08:51:30 +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
Jaakko Salli
c904964610
Fixed wxSystemColourProperty::ValueToString(). It now once again properly formats custom colour selection as (R, G, B) when displayed.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-19 11:16:29 +00:00
Jaakko Salli
2cbd2892e7
Connect wxEVT_KEY_DOWN for both editor controls
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-18 16:32:59 +00:00
Jaakko Salli
4d11369db6
Do not skip key events so eagerly
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-18 16:09:48 +00:00
Stefan Csomor
b4afc5ec37
adapting to API change from GetContentAreaInset to GetContentArea, fixes #10071
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-18 16:09:33 +00:00
Jaakko Salli
b47d6bc416
Forgot event.Skip()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-18 15:27:58 +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
Robert Roebling
4b230a33c5
Allow create of 24-bit bitmap, use Pixbuf when not a 24-bit visual
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-18 14:32:56 +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
157a8f7002
handle error in GetDataSize()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-17 13:54:05 +00:00
Jouk Jansen
a343ac03ce
OpenVMS compile support update for wxX11
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-17 12:47:13 +00:00
Vadim Zeitlin
878c265b94
significantly optimize wxCSConv::To/FromWChar(NULL) performance by simply using a bigger temporary buffer
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-17 12:25:47 +00:00
Vadim Zeitlin
51725fc0c2
reverted the change of r56246 and keep the old behaviour of MB2WC/WC2MB; document it even more clearly and correct code using these functions incorrectly
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-17 11:31:22 +00:00
Paul Cornett
d45a01e049
pass window parameter to wxSystemSettings::GetMetric() so wxGTK can get the value right more often
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-17 04:36:25 +00:00
Paul Cornett
53357e241e
partial support for border metrics of non-TLW
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-17 04:36:09 +00:00
Robin Dunn
5ac526c40c
Assert that a mode style *is* set, not that one isn't set.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 22:37:58 +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
Robert Roebling
33a1719a95
Dont't finish any editing if there is no control
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 21:32:26 +00:00
Robert Roebling
45bd6199eb
Remove accidentally commited debug code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 19:20:37 +00:00
Robert Roebling
c016394bc2
Make wxMac wxSpinCtrl emit killfocus events
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 19:19:48 +00:00
Václav Slavík
0f278d7763
assert in wxTopLevelWindowMSW::SetIcon[s]() if none of the provided icons has required size
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 19:13:32 +00:00
Václav Slavík
7abd9a0331
wxArtProvider cleanup: added artmsw.cpp accidentally missing from r56372
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 19:10:55 +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
Robert Roebling
3f407e4ff7
Fudge offset no longer required
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 18:05:44 +00:00
Jaakko Salli
102c9a42e8
Fixed broken wxMultiChoiceProperty::ValueToString()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 17:36:07 +00:00
Jaakko Salli
1425eca550
Added virtual wxPGProperty::ValueToString(). In derived property classes, now it must be implemented instead of GetValueAsString (assertion failure is raised at run-time if you fail to do so). This change is needed to properly support wxEVT_PG_CHANGING for nested composite string properties. wxPGProperty::GenerateComposedValue() partially updated to support this.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 17:19:50 +00:00
Vadim Zeitlin
0bde39ffac
Dispatch() must dispatch the real events and not only the pending ones accumulated in wxApp
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 12:32:39 +00:00
Vadim Zeitlin
5a557d1ea0
made Dispatch() return bool indicating whether we processed any events inside it or if the timeout expired
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 12:31:30 +00:00
Vadim Zeitlin
c139dda12a
no changes, just removed _T()s and unnecessary wxUnusedVar()s
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 12:07:35 +00:00
Václav Slavík
352cd79f63
reverted broken changes from r56345 and r56349
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 08:15:56 +00:00
Paul Cornett
e261c9e2af
simplify code by using wxGTKPrivate::GetButtonWidget()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 03:57:39 +00:00
Václav Slavík
ca5bf83bda
compilation fix for older glib versions after r56345
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-15 21:10:56 +00:00
Vadim Zeitlin
f8cba58b84
reset deferred position/size if the window was moved immediately ( #10073 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-15 21:03:40 +00:00
Václav Slavík
01603d4396
don't use deprecated gtk_object_sink(), replace it with g_object_ref_sink()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-15 19:14:46 +00:00
Václav Slavík
fde87a8276
no need to iterate over all special icon names after a match was found, there won't be another one
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-15 18:49:47 +00:00
Jaakko Salli
174b59acee
Remove old workarounds to get cut, copy, and paste working in embedded wxTextCtrl
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-15 16:07:26 +00:00
Václav Slavík
7f8f381c0f
fixed wxHtmlWindow::SelectionToText() to correctly insert newlines after single-cell paragraphs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-15 15:43:45 +00:00
Julian Smart
8c9e72f982
Fixed problem with Croation input due to confusion of WXK_... values and character values.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-15 14:39:04 +00:00
Vadim Zeitlin
d45242a64a
base new timer expiration time on current time, not on the previous expiration time
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56327 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-15 11:39:04 +00:00
Robert Roebling
13ab7561df
Mention why fudgefactor for wxODBC position under wxMac is required
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-15 08:37:15 +00:00