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
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
04021d6fac
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@56358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 12:33:05 +00:00
Vadim Zeitlin
a62e6836ae
added wxConnection::IsTextFormat()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 12:32:06 +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
a8db7a5fc1
disable VC6 warning C4284; put all warning disable pragmas together
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 09:13:16 +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
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
Jaakko Salli
fedaff2f95
Removed unneeded wxPG_INHERITED_PROPFLAGS
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-15 16:13:23 +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
Francesco Montorsi
1a78714d95
enable more wx stuff when using gcc xml
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-14 19:48:50 +00:00
Jaakko Salli
2fd4a52415
wxPGProperty::AddChild() can now be used to add normal child properties (previously it was only used to add private children of derived property classes such as wxFontProperty and wxFlagsProperty). However, to allow backwards compatibility, SetParentalStyle(wxPG_PROP_MISC_PARENT) needs to be called before doing so. Also done: merged property initialization code from PrepareToAddItem() and PrepareSubProperties() to InitAfterAdded().
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-14 17:15:59 +00:00
Robert Roebling
012b4a0790
Correct positioning of wxTextCtrl in wxPropertyGrid for wxMac
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-14 12:32:01 +00:00
Vadim Zeitlin
cc378c2d75
added wxXmlResource::FindXRCIDById() ( #10026 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-14 11:44:10 +00:00
Robert Roebling
7fa920cd39
Also correct wxDList<T>
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-14 09:43:53 +00:00
Vadim Zeitlin
b9f9065e28
fix the bug in insert(end(), value) and added unit test for it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-14 09:04:52 +00:00
Vadim Zeitlin
b547eb0f86
remove default value for the last parameter of insert(it, idx, value) which allowed insert(it, 17) to compile for lists of any type
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-14 08:59:05 +00:00
Vadim Zeitlin
cc0972a251
no real changes, just also rename _Read/_Write() to DoRead/DoWrite() and clean them a little more too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-13 13:24:48 +00:00
Vadim Zeitlin
60ee017274
Cleanup of wxSocket::_Wait():
...
- Rename to DoWait() to avoid symbols starting with underscores.
- Added comments explaining how does it work.
- Remove the pointless timeout manipulations: GSocket::Select() doesn't
use timeout (any more?) anyhow.
Also pass GSOCK_LOST_FLAG to DoWait() from WaitForWrite() for the same reasons
it is done in WaitForRead().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-13 13:00:49 +00:00
Robert Roebling
9861dc94bb
Use native closure buttons under GTK+
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-13 11:21:37 +00:00
Robert Roebling
1b895132c9
Correct spelling, now use Indices
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-13 10:52:38 +00:00
Francesco Montorsi
1de14b4ade
use wxEmptyString instead of wxString() for default values
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-13 08:51:45 +00:00
Robert Roebling
5acb9127c5
Correct spelling and signature of FixIndexesOfChildren
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 18:07:01 +00:00
Vadim Zeitlin
916eabe60e
add wxGenericStaticText ( #9656 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 13:04:00 +00:00
Jaakko Salli
68bcfd2c10
Eliminate (or at least reduce) 64-bit build warnings (as described in wxPG sourceforge bug report #2156069 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 12:23:48 +00:00
Jaakko Salli
4e7a37b4b0
Re-added GetSelectProperty() to wxPropertyGridManager
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 11:29:41 +00:00
Francesco Montorsi
f632e27b3f
group hit-test flags into an enum (like I did in docs); this makes easier to document them, but is also logically the best thing since wxRichTextBuffer::HitTest is documented to return only _one_ of those flags.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56219 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-10 19:13:50 +00:00
Stefan Csomor
c4825ef73a
moving embedding to common API
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-10 19:01:32 +00:00
Jaakko Salli
703ee9f5ec
GetPendingEditedValue() -> GetUncommittedPropertyValue() (more consistent API naming. Eg. there is also CommitChangesFromEditor())
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-10 15:22:08 +00:00
Robert Roebling
236a34ef3e
Fix crash again
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-10 10:02:35 +00:00
Robert Roebling
2571a33fd3
implement GetSizeAvailableForScrollTarget
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-09 19:18:28 +00:00
Francesco Montorsi
22c5cac637
fix typo (missing P2 argument in template)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-09 14:23:06 +00:00
Vadim Zeitlin
fc31181d2c
use wxScopeGuard instead of an explicit try/catch(...)/throw: this suppresses wxUSE_EXCEPTIONS tests and also avoids MSVC unreachable code warnings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-09 11:27:59 +00:00
Vadim Zeitlin
bcffb4d1a9
add 3 parameter scope guard; improve its documentation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-09 11:26:50 +00:00
Jaakko Salli
a57f24f97a
Removed '#ifndef DOXYGEN' sections
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-08 18:19:02 +00:00
Jaakko Salli
9b5bafcf38
Removed dysfunctional wxPGPropery::PrepareValueForDialogEditing(); Replaced its functionality with wxPropertyGrid::GetPendingEditedValue(); Added wxPropertyGrid::PerformValidation() flags so it can be called in generic context.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-08 18:15:10 +00:00