Commit Graph

50169 Commits

Author SHA1 Message Date
Václav Slavík
b5c4f0dfd9 compilation fix for wxUSE_IMAGE=0 caseinclude/wx/iconbndl.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-15 11:24:50 +00:00
Václav Slavík
bdf14bff10 PCH compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-15 11:24:17 +00:00
Vadim Zeitlin
f03c22f9b3 Avoid painting generic wxDataViewCtrl if it has no columns.
The code in wxDataViewMainWindow::OnPaint() relied on having at least the
first column and didn't work for a completely empty control. Just don't paint
it at all in this case as it's unnecessary anyhow.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-14 19:17:12 +00:00
Jaakko Salli
46fa86f720 Make wxPG_EX_MULTIPLE_SELECTION behave more like a Windows list box (regarding Ctrl and Shift keys)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-14 16:13:21 +00:00
Jaakko Salli
5ff9067686 Determine better whether the property editor needs to be refreshed in wxPGProperty::SetValue()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-14 15:33:50 +00:00
Jaakko Salli
b5aaf62e97 'Set to Unspecified' -> 'Set Value to Unspecified'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-14 15:18:52 +00:00
Jaakko Salli
cae41346c9 Set correct m_state in wxPGCheckBoxEditor::SetValueToUnspecified()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-14 15:17:02 +00:00
Jaakko Salli
269619bfbd Always refresh the editor when setting property value to unspecified.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-14 15:15:35 +00:00
Jaakko Salli
5900bb7c5f Fixed unspecified property value rendering for various editor types (including check box)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-14 15:12:29 +00:00
Vadim Zeitlin
5851e64078 Restore correct access to wxGenericStaticText::Set{Font,Label}.
Accessibility of these methods was accidentally changed to protected in r62821
and this broke wxUniv compilation, make them public again.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-14 12:41:55 +00:00
Vadim Zeitlin
03773e400b Remove unnecessary Mac-specific TOOLKIT_LOWERCASE setting.
TOOLKIT is never set to "MAC" at all (it is one of OSX_{CARBON,COCOA,IPHONE})
so it is not necessary to test for it. And for the other cases the special
logic for OS X ports was the same as the general case so it seems to be
unnecessary as well.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-13 12:52:59 +00:00
Vadim Zeitlin
80aa2a2f06 Add --with-[osx_]iphone switch to configure.
This is another Mac (wxUSE_MAC is defined) port with TOOLKIT=OSX_IPHONE.

Also use this port by default for arm-apple-darwin platforms.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-13 12:52:53 +00:00
Vadim Zeitlin
06a0867994 Test for sw_vers availability before calling it in configure.
There is no sw_vers when cross-compiling, just assume 10.4 system in this
case and point the user to --with-macosx-version-min which can be used to
override this.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-13 12:52:47 +00:00
Vadim Zeitlin
f10f4c8785 Rename --with-cocoa configure switch to --with-old_cocoa to avoid confusion.
Change --with-cocoa to be synonym for --with-osx_cocoa, add --with-carbon as a
synonym for --with-osx_carbon for consistency and --with-osx as a synonym for
--with-mac.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-13 12:52:42 +00:00
Jaakko Salli
f525476870 Added wxPropertyGridManager header support; Refactored wxPropertyGrid DoSetSplitterPosition() code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-13 12:00:04 +00:00
Stefan Csomor
9804064630 rearranging contentview, adding toolbar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-12 14:01:28 +00:00
Stefan Csomor
de7cb655ae rearranging contentview, adding toolbar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-12 13:40:24 +00:00
Jaakko Salli
00b4dbd74e wxHeaderColumnBase -> wxHeaderColumn; Fixed UpdateColumnWidthToFit() sample code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-12 12:24:28 +00:00
Jaakko Salli
70708ad282 On Windows, force read-only property editor wxTextCtrl to have 'white' background (for now...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-12 10:10:15 +00:00
Jaakko Salli
9d136b8b50 Added a proper log frame to the propgrid sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-12 09:59:20 +00:00
Jaakko Salli
5405bfb439 Generate wxPropertyGrid splitter (column divider) events: wxEVT_PG_COL_BEGIN_DRAG, wxEVT_PG_COL_DRAGGING, wxEVT_PG_COL_END_DRAG
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-12 09:38:10 +00:00
Jaakko Salli
9dac189e72 Fixed incorrect use of RemoveAt() in wxPropertyGridPageState::SetColumnCount() (fixes #11539)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-11 15:50:04 +00:00
Vadim Zeitlin
cc26010927 Add support for stretchable spaces to wxToolBar.
Stretchable spaces consume all extra toolbar space not allocated to the fixed
size items. They can in particular be used to right-align (some) toolbar tools.

Add and document the new API, change the sample to show it and implement it
for MSW, GTK and OS X/Cocoa.

Also refactor MSW background erasing/repainting code to avoid duplicated calls
to DrawThemeBackground(), call it from a new helper MSWEraseRect() function.

Note that we may want to add support for "invisible" separators, IOW
non-stretchable spaces. This could be easily done for MSW after the changes in
this commit and is supported natively by GTK+ and Cocoa so implementing this
would be trivial if there is any interest.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-10 03:04:19 +00:00
Vadim Zeitlin
0b83552acf Rename gtk{,1}/tbargtk.{h,cpp} to toolbar.{h,cpp}.
We don't use crptknm$port.cpp naming convention even for MSW any more and
there is really no reason to continue to do it for just this one file in
wxGTK.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-10 03:04:07 +00:00
Vadim Zeitlin
563f85a956 Set correct toolbar width in wxMSW wxFrame.
The hack introduced in r22410 artificially set wrong size for toolbar under
MSW. This completely breaks any calculations that can be done using it (e.g.
to find the space available for the stretchable part of the toolbar) and is
completely and utterly unexpected.

Revert it, toolbar flicker must be dealt in another way if it is still a
problem.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-10 02:59:16 +00:00
Vadim Zeitlin
a7daf7ea0e No changes, just refactor wxToolBarToolBase ctors.
Add the usual Init() function for common initialization.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-10 02:59:11 +00:00
Vadim Zeitlin
2600776164 No changes, just slightly simplify the tool insertion code.
Added a helper DoInsertNewTool() function to avoid code duplication and ensure
that we never forget to delete a new tool if inserting it into the toolbar
failed.

Also explicitly document that the tool passed to the public InsertTool() is
not owned by the toolbar and so must be deleted by the caller if its insertion
failed.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-10 02:59:02 +00:00
Peter Cawley
960615f410 Rewrote wxRibbonPage realisation and layout code to avoid setting the position and size of panels multiple times.
Fixed memory leak in wxRibbonToolBar::Realize().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-09 18:48:41 +00:00
Vadim Zeitlin
021efd6510 Avoid outputting the assert message twice in non-GUI code.
As we always log the assert message in ::ShowAssertDialog() itself there is no
need to log it again in wxAppTraitsBase::ShowAssertDialog().

Also show the "please wait while generating stack trace information" in
wxAppTraitsBase::GetAssertStackTrace() itself instead of doing it in both
places which call it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-09 14:59:26 +00:00
Vadim Zeitlin
61c18e1a3d Don't limit the number of stack frames in GTK assert dialog to 20.
This dialog uses a scrollbar to keep its vertical size reasonable in any case
so there is absolutely no danger of making it too tall even if we show more
frames in it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-09 14:59:13 +00:00
Vadim Zeitlin
2d8e0096cd Better handling for asserts in non-main threads.
Don't call wxTrap() when an assert in a non-main thread fails. As asserts are
now always enabled by default, this is not a good idea. Instead just show the
full details about the assert failure using wxMessageOutputDebug under the
platforms without MT-safe message box function (i.e. everything but MSW
currently).

Add a possibility to test an assert happening in non-main thread to the except
sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-09 14:59:08 +00:00
Vadim Zeitlin
5ceb93670c No real changes, just remove __WXDEBUG__ tests.
These tests are unnecessary now because asserts are almost always enabled. We
could test for wxDEBUG_LEVEL but the code still compiles even if it's defined
as 0 so there doesn't seem to be any need for it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-09 14:59:01 +00:00
Vadim Zeitlin
5cd3213b65 Override OnAssertFailure() and not deprecated OnAssert() in except sample.
Also make the overridden version more interesting instead of just calling the
base class method from it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-09 14:58:56 +00:00
Vadim Zeitlin
156c705738 Document that wxTrap() now traps [almost] always.
Don't mention the words "release mode" as there is no such thing now, instead
refer to wxDEBUG_LEVEL explicitly.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-09 13:45:41 +00:00
Vadim Zeitlin
40ff272990 Explicitly link the SDK application example with user32.lib.
As this sample uses GUI Windows functions, it requires this library.

Not sure why it isn't added by bakefile automatically for app-type==gui
target.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-09 13:31:46 +00:00
Vadim Zeitlin
54a3120e95 STL build compilation fix.
Explicitly cast wxWindowBase pointer to wxWindow before passing it to
wxWindowList::Find().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-09 13:27:53 +00:00
Stefan Csomor
c200f9a3b7 support for getting current event loop on iPhone
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-09 08:21:28 +00:00
Stefan Csomor
766fc09288 avoiding string conversions on 1st param of wxStat, as the latter is having a param of wxString now always and does the conversion internally
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-09 07:38:22 +00:00
Stefan Csomor
74b1f0b45e using on all OSX variants
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-09 07:29:43 +00:00
Stefan Csomor
85c04b8fb5 fixing toolbar support, adding iphone
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-09 07:28:51 +00:00
Stefan Csomor
073e104114 make sure it is compilable w/o menus (eg on iPhone)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-09 07:27:22 +00:00
Stefan Csomor
9118a24f52 remove workaround
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-09 07:26:10 +00:00
Stefan Csomor
e520834aea avoid double define warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-09 07:24:50 +00:00
Kevin Ollivier
ebf7d5c40a Add OSX prefix, and be clear that this is OS X only API to avoid any expectation that this API may work elsewhere.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-09 05:25:32 +00:00
Vadim Zeitlin
94b6ce7f4b Use X64 machine type for MSVC linker instead of old AMD64.
The officially supported machine type name is X64 now, even if AMD64 is still
supported.

Closes #10711.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-08 16:36:37 +00:00
Vadim Zeitlin
efe2190fa7 Fix duplicate accelerator use in animate sample.
Both "Play" and "Stop" used Ctrl+P.

Closes #11425.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-08 16:35:54 +00:00
Vadim Zeitlin
af7e24c33e Make wxPORTRAIT and wxLANDSCAPE elements of wxPrintOrientation enum.
Change wxPrintData::SetOrientation() to take wxPrintOrientation instead of
int.

Closes #11393.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-08 16:35:47 +00:00
Vadim Zeitlin
6087ca88c1 Visually show the cells boundaries in layout sample grid sizer test.
Closes #11456.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-08 15:56:26 +00:00
Vadim Zeitlin
f26c1c3e4a Don't override DoGetBestSize() in wxGenericStaticText, it's unnecessary.
The base class already does exactly the same thing -- except that it also
accounts for the borders properly.

Also fix access for a couple of DoXXX() member functions which should be
protected and an event handler which can be private.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-08 15:56:21 +00:00
Vadim Zeitlin
d7d943a71c Implement wxWindow::DoGetBorderSize() in the trivial case of wxBORDER_NONE.
This fixes an assert in wxGenericStaticText which overrode
DoGetBestClientSize() but not DoGetBorderSize().

It would still be useful to implement DoGetBorderSize() in wxGTK (and other
ports) in general too as using wxGenericStaticText with non-default border
still doesn't work.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-08 15:56:14 +00:00