Paul Cornett
46421f2471
clean up wxCairoRenderer initialization mess
...
Remove unused Unload(), wxCairoCleanUp(), m_loaded and gCairoRenderer, and redundant Load()
and EnsureIsLoaded(). Just call wxCairoInit() directly, and for GTK do nothing at all.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-02 05:11:25 +00:00
Paul Cornett
b3ee9f4d2e
remove unnecessary include of wx/cairo.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-02 03:35:37 +00:00
Paul Cornett
9f692b010e
Remove nearly empty wx/cairo.h header
...
It does so little now it's not worth having. And it should not have been a public header.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-02 02:28:48 +00:00
Paul Cornett
ea92bb677d
use stock colour/pen/brush objects in samples
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-01 23:06:50 +00:00
Paul Cornett
0856cb2562
use new pen/brush style names in samples
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-01 22:34:07 +00:00
Paul Cornett
de91443612
remove colour/pen/brush arguments which are the default in the samples
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-01 22:14:36 +00:00
Vadim Zeitlin
c4c87bf22b
Use disabled colour for the dropdown arrow of disabled ribbon.
...
Previously the normal colour was used for the arrow in MSW art provider even
if the ribbon was disabled.
Closes #14864 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-01 00:14:54 +00:00
Vadim Zeitlin
04783062e2
Miscellaneous spelling and typo fixes in the documentation.
...
Closes #14866 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-01 00:14:31 +00:00
Vadim Zeitlin
0824e36969
Fix premature truncation of brief descriptions in Doxygen comments.
...
Don't end the brief description at the first period if it's a period which is
part of "i.e." or "e.g.": escape the space following it to prevent Doxygen
from recognizing it as an end of sentence.
See #14866 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-01 00:14:07 +00:00
Vadim Zeitlin
faadbe6f39
Fix documentation of wxGridBagSizer::Add() spacer overload.
...
Describe the width and height parameters.
See #14866 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-01 00:13:40 +00:00
Robin Dunn
c1bd5a6d3f
Interface fixes for Phoenix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-30 22:28:11 +00:00
Paul Cornett
88932ec82d
simplify code to return from the end of the function
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-30 18:21:45 +00:00
Paul Cornett
40a66cfd6a
indentation fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-30 18:01:53 +00:00
Paul Cornett
f81bc2ba5e
move wxGet{Colour,Font}FromUser() out of utilscmn.cpp so they don't have to be in every app that links statically
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-30 06:56:50 +00:00
Vadim Zeitlin
dab61056c8
Don't assert when stopping watching a just renamed file.
...
(Almost) silently ignore renames of the files which we don't watch any longer
instead of asserting if this happens.
Closes #14863 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-29 22:03:21 +00:00
Vadim Zeitlin
0a41f17e0b
Log invalid inotify() events without a valid watch descriptor.
...
Apparently we can get events without any valid watch descriptor, even though
this is not supposed to happen. At least warn about them.
See #14854 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-29 22:02:58 +00:00
Vadim Zeitlin
8ded8d08ab
Correct handling of IN_Q_OVERFLOW in wxFileSystemWatcher Linux code.
...
Don't use wd field if it's -1 which can happen for IN_Q_OVERFLOW.
See #14854 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-29 22:02:36 +00:00
Julian Smart
94323b60e3
Cope with the common case of utf-8 being specified in the .hhp file, and convert the book title.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-29 10:17:00 +00:00
Paul Cornett
8c1c11d689
declare wxQsort in vector.h as well as utils.h to work around circular header dependency mess
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-29 07:53:21 +00:00
Jouk Jansen
baf60823a6
Do not use GTKIsUsingGlobalMenu when compiled against gtk1.x
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-29 07:00:39 +00:00
Vadim Zeitlin
0c2e6e8b36
Fix bezel used for bitmap buttons in wxOSX/Cocoa.
...
Don't use NSRoundedBezelStyle for bitmap buttons as this bezel has fixed
height. Instead, use NSRegularSquareBezelStyle which can used with buttons of
any size and is the correct bezel to use for the buttons mostly identified by
their icon according to Apple docs.
Notice that we still use the standard bezel for the "small" (where "small" is
arbitrarily defined by the hard coded 20 pixels height) icons as those are
usually used in addition to the text and not replacing it and so it makes more
sense to use the same bezel as for the normal buttons for them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-28 23:56:38 +00:00
Vadim Zeitlin
6ceeeafd56
Select the entire spin control contents when changing its value.
...
Selecting the entire contents makes it more convenient for the user to enter
the new value.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-28 23:56:16 +00:00
Vadim Zeitlin
eff339168e
Handle Shift-TAB correctly in wxOSX/Carbon wxComboBox.
...
The navigation event direction should depend on Shift key state.
See #3821 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-28 23:55:53 +00:00
Stefan Csomor
8e64b8fe6e
adding some additional fixes for programmatic selection handling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-28 20:57:59 +00:00
Robin Dunn
bc4a20051e
Compilation fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-28 17:14:35 +00:00
Vadim Zeitlin
34ece4ff0e
Compilation fixes after r73050.
...
See #14862 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-28 15:42:18 +00:00
Vadim Zeitlin
d3feb55c49
Add "rect" paramerer to wxRichToolTip::ShowFor().
...
Allow to show the tooltip at the exact specified position instead of placing
it automatically.
Closes #14862 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-28 14:18:17 +00:00
Vadim Zeitlin
0555b2a0a3
Add missing wxUSE_OLE checks to safearray.cpp.
...
Fix compilation with wxUSE_OLE==0.
Closes #14860 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-28 14:17:53 +00:00
Vadim Zeitlin
8f2a8df48f
Compilation fix for wxDocManager after r73004.
...
Define GetXXXVector() methods after all the classes are fully declared to
ensure that static_cast<> inside wxList::AsVector() they use compiles with the
OpenVMS compiler.
See #14814 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-28 14:17:30 +00:00
Stefan Csomor
cb04da13bd
support for inheriting non-standard attributes (explicit fonts instead of window variants), fixes #3583
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-28 10:13:41 +00:00
Stefan Csomor
1e70e497e2
supporting selection methods when not focused, closes #1480
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-28 08:51:56 +00:00
Stefan Csomor
f731483ded
simulating focus events, see #13495
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-27 19:16:21 +00:00
Stefan Csomor
3af58289f5
support for simulating focus events since not all controls can be focused
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-27 19:09:41 +00:00
Stefan Csomor
e5021b23c9
emulating wx' focus-lost behavior
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-27 13:23:46 +00:00
Stefan Csomor
9656c0dd1b
spell error fixed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73042 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-27 13:22:26 +00:00
Stefan Csomor
96943967a5
workaround, see #14856
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-27 08:29:24 +00:00
Jouk Jansen
9fbbb8b38b
Fix OpenVMS makefile
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-27 07:42:19 +00:00
Robin Dunn
1c103099e3
More interface fixes for Phoenix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-27 01:19:31 +00:00
Vadim Zeitlin
d83af3660a
Compilation fix to docview sample after r73004.
...
Don't use wxDocManager::GetDocumentsVector() with VC6 which doesn't have it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-26 23:53:44 +00:00
Paul Cornett
7af131ab0e
disconnect "toggled" signal in dtor when style has wxALIGN_RIGHT
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-26 18:30:08 +00:00
Paul Cornett
eaa8686b71
fix for GTK assert after r72696, a draw/expose_event signal may also be attached to parent
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-26 17:53:01 +00:00
Vadim Zeitlin
f0facad09d
Disable CallAfter() for MSVC 7 too, it can't compile this code.
...
It was already disabled for VC6 but VC7 doesn't compile this code neither, so
disable it for this compiler as well.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-26 15:51:04 +00:00
Vadim Zeitlin
e4f3b467b8
Bracket vararg macro definition with wxHAS_VARIADIC_MACROS.
...
This should fix tests compilation with VC6.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-26 15:50:37 +00:00
Vadim Zeitlin
81d79e8988
Another Nepalese translations update.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-26 13:50:13 +00:00
Vadim Zeitlin
d8ba3099e1
Fix wxALWAYS_SHOW_SB behaviour in wxGTK.
...
Don't show the scrollbar always if it's not enabled at all, i.e. if the
corresponding wxHSCROLL or wxVSCROLL style is not specified.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-26 13:14:39 +00:00
Vadim Zeitlin
b62afb7914
Fix harmless warning about uninitialized variable in fswatcher sample.
...
Just always initialize it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-26 13:14:15 +00:00
Vadim Zeitlin
754afd1061
Fix warnings about using type attribute on forward declaration.
...
This results in many, many warnings in OS X build.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-26 13:13:47 +00:00
Vadim Zeitlin
a28882ab8b
Fix wxGenericListCtrl scrolling by not processing the events twice.
...
Scrolling wxGenericListCtrl was broken since r72939 because its OnScroll()
event handler explicitly called wxScrollHelper::HandleOnScroll() which was
also called by the base class ProcessEvent().
Arguably, wxScrollHelper::ProcessEvent() should be updated to allow handling
events directly like this by not processing it again if the event wasn't
skipped but for now just do skip the event and let the default handling take
place which at least makes wxGenericListCtrl work correctly again.
Closes #14852 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-25 23:18:20 +00:00
Vadim Zeitlin
4b5a12ecea
Fix TAB navigation in wxGTK broken by r72663.
...
Don't call SetCanFocus(true) for container windows with focusable children,
this doesn't play well at all with wxGTK focus handling and in particular
totally disabled TAB navigation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-25 23:17:56 +00:00
Vadim Zeitlin
1cd86ff668
Restore generic GetPartialTextExtents() version use in wxGTK and wxMSW.
...
Non-wxWindowDC-derived wxDC classes in wxGTK, such as wxGtkPrinterDCImpl, have
to fall back on the generic implementation of GetPartialTextExtents() as Pango
version can't be used with them.
This fixes a crash due to using NULL Pango layout when printing wxRichTextCtrl
in wxGTK.
Closes #14847 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-25 23:17:33 +00:00