Commit Graph

58711 Commits

Author SHA1 Message Date
Julian Smart
048e3b6e67 Backported part of r75124: Generalised wxRICHTEXT_CHANGE_OBJECT command so it can now apply to a paragraph as well as an object within a paragraph.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-17 10:37:24 +00:00
Julian Smart
1b5478af74 Backported r75109: Corrected multiple cell property editing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-17 10:32:38 +00:00
Julian Smart
1156bf0b13 Backported r75108: Fixed print preview glitch and vertical cell alignment.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-17 10:28:28 +00:00
Julian Smart
f510ad8b7c Backported r75107: Fixed selection bug.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75219 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-17 10:23:45 +00:00
Julian Smart
6565d0814e Backported layout fixes portion of r75105
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-17 10:20:25 +00:00
Julian Smart
3572387b7c Don't delete composite objects when defragmenting (backport of r75099 from trunk)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-17 09:43:03 +00:00
Vadim Zeitlin
9a49e0c42f Don't eat TAB presses for wxComboBox with wxTE_PROCESS_ENTER in wxMSW.
Still allow to use TAB for navigation even when a wxComboBox has
wxTE_PROCESS_ENTER style.

Use the same hack for wxTextCtrl, i.e. implement the navigation ourselves as
we can't let IsDialogMessage() handle it but still get VK_ENTER key presses.

Closes #12808.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-16 23:41:16 +00:00
Vadim Zeitlin
12c6d5061a Add xh_auinotbk.{h,cpp} to the manually maintained VC10 project files.
This file existed in automatically generated projects but not this one.

Closes #15673.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-16 23:41:11 +00:00
Vadim Zeitlin
cc1b3709db Allow changing the colour of wxInfoBarGeneric text.
Override SetForegroundColour() to forward it to the text control.

See #15671.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-16 23:41:06 +00:00
Vadim Zeitlin
fa4b51517a Set wxInfoBarGeneric text colour correctly.
For some reason SetOwnForegroundColour() was used, but we really need to set
the colour of the child text control and not our own colour here (which is not
used for anything).

This makes the text visible even when using non default tooltip colours, which
could previously result in black-on-black text.

See #15671.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-16 23:41:01 +00:00
Vadim Zeitlin
3b1fb62976 Define SIZEOF_LONG_LONG for Windows.
This is important not only for consistency with the other platforms but also
because without SIZEOF_LONG_LONG being defined, "%lu" format specifier can't
be used with size_t values under Win64, as Arg_Size_t is not defined correctly
there if SIZEOF_LONG_LONG is unknown.

Closes #15670.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-16 23:40:56 +00:00
Vadim Zeitlin
87ebc943d4 Fix wxSocket::WaitForAccept() in worker thread.
This was broken because Select() never returned wxSOCKET_CONNECTION_FLAG which
is supposed to be set when a connection is accepted.

Closes #15669.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-16 23:40:53 +00:00
Vadim Zeitlin
ab48d82990 Port OSXIsGUIApplication() documentation from trunk too.
Now that it is implemented (see r75201), it should be documented as well.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-16 13:28:45 +00:00
Stefan Csomor
64a8d88e7b non-unicode fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-16 07:19:38 +00:00
Stefan Csomor
a5218939d6 porting fix for non-bundled apps to 3.0.1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-16 07:19:15 +00:00
Václav Slavík
1739874e3e Don't crash in wxWindowMac::OSXSimulateFocusEvents().
The code didn't properly account for the possibility of wxEVT_KILL_FOCUS
handler deleting the focused window (as happens e.g. in wxListCtrl inline edit
controls). E.g. rapidly clicking wxEditableListBox buttons could trigger a
crash here when sending wxEVT_SET_FOCUS to an already-deleted window.

Use wxWeakRef<> to check if the window is still alive.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-15 18:25:06 +00:00
Paul Cornett
f369a1c994 Simplify mode matching test, and add actual mode (not function parameter) to modes list, in GetModes()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-15 17:28:42 +00:00
Vadim Zeitlin
1d98ac3039 Fix blank wxComboBox appearance broken by the changes of r75134.
We didn't repaint the owner drawn combobox items any more because they were
not found by MSWFindItem().

Fix this by restricting the check to the real windows with the same ID as the
combobox, not the dropdown items which are not windows at all.

Closes #15674.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-15 15:24:13 +00:00
Vadim Zeitlin
80969d29a1 Don't eat mouse wheel events if we can't handle them in wxGTK.
The recent changes to mouse wheel scrolling broke it for the generic
wxListCtrl and probably any other situation in which scrollbars don't scroll
the window itself but some subwindow of it. In this case, the scroll wheel
event handler doesn't have any scrollbar to adjust, so it simply does nothing
and shouldn't return true, as it did since r74911.

Just return false in case we are not doing anything to let the mouse wheel
work as before.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-15 13:35:01 +00:00
Vadim Zeitlin
c78cb0d979 Fix assert due to incorrect format being used in listctrl sample.
"%d" can't be used with long wxListEvent::GetIndex() value in 64 bit builds.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-15 13:34:58 +00:00
Paul Cornett
e644343fd2 Introduce variables for the display and screen in the video mode functions.
This cleans up the code somewhat, and prepares for some upcoming changes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-15 06:16:59 +00:00
Václav Slavík
01bf4bac57 Grow text editor control to contain all text in generic wxDataViewCtrl.
Implement the behavior that Explorer uses: if the column is too narrow
to fit the current text of a cell into it, don't create a too-small text
control for it, because it is annoying and confusing (typically, the
beginning of the text would be hidden, which is disastrous if it happens
to contain numbers). Instead, grow the text control to be larger than
the column for more comfortable editing.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75186 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-14 12:15:02 +00:00
Václav Slavík
c3d0c01c0f Cancel editing in generic wxDVC when clicking outside of the editor control.
wxDataViewCtrl should behave as Explorer does on Windows: when an inline
editor control is open, clicking outside of it should close the editor
(preserving changes) in most cases - as a rule of thumb, when the
subsequent action could interfere with the editor somehow.

This was implemented by watching for focus change and so ignored clicks
made on non-focusable controls outside of wxDVC's main window area.  In
particular, clicks on the list's header were ignored, even though they
could result in modifications of the editor's position or size.

Don't finish editing when the user right-clicks on the header,
consistently with Explorer.  Opening the menu likewise still doesn't
finish editing, it is needed for access to editing operations.

Fixes #15152.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-14 12:14:57 +00:00
Paul Cornett
51c992cf6b build fix for GTK+ 3.10, closes #15667
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-13 18:03:48 +00:00
Vadim Zeitlin
f627cb7ced Fix crash when setting invalid label with "&" at the end.
We detected that the label was invalid and gave a debug warning message about
it but then still proceeded to crash by accessing the data beyond the end of
the string. Don't do this.

Closes #15665.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75179 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-13 12:52:30 +00:00
Vadim Zeitlin
bda918c4d3 Update the checksums for the 3.0 release notes files.
Also mention the binaries existence in the top level file.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-11 20:59:23 +00:00
Vadim Zeitlin
209a75dc98 Remove "rc2" from the release notes.
The hashes are still the old ones and will be updated later as the binaries
are not ready yet.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-11 13:10:39 +00:00
Vadim Zeitlin
8626e30a2b Update the version in wx/version.h and add an item for it to the docs.
Mention the need to udpate this file in the release checklist.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-11 13:10:36 +00:00
Vadim Zeitlin
c461ac9e39 Fix the 3.0.0 release date and update the release announcement slightly.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-11 13:10:33 +00:00
Vadim Zeitlin
e764e5b397 Update the README file to follow the manual introduction closer.
It makes sense for the introduction to be a longer version of the README, not
a completely different topic.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-11 13:10:30 +00:00
Vadim Zeitlin
00f0fb185d Add the scripts used to build MSVS wxMSW binaries.
Closes #14495.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-11 12:37:50 +00:00
Paul Cornett
3000a9241e don't need Pango workaround code with GTK+3
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-10 18:35:47 +00:00
Paul Cornett
f5af3df32e use gtk_combo_box_get_wrap_width(), we require GTK+ 2.6 now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-10 18:26:23 +00:00
Paul Cornett
ab76b7b05d fully initialize GTypeInfo structure
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-10 18:26:05 +00:00
Vadim Zeitlin
80001fbdbf Fix wxFileName compilation in Cygwin builds.
Do define StatAny() helper calling either stat() or lstat() under Cygwin, it
is available and should be used there even if __WIN32__ is defined.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-10 18:25:46 +00:00
Vadim Zeitlin
f201634c57 Add a comment explaining the need for a temporary NULL variable.
Explain the changes of r75162 as they risk not being preserved otherwise.

Also make this variable static and const because it's really a constant.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-10 18:25:43 +00:00
Vadim Zeitlin
177aa57194 Use Cocoa by default for --with-osx and --with-mac configure options.
Even though Cocoa is now officially the default port, these options still
selected Carbon.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-10 18:25:40 +00:00
Vadim Zeitlin
aa2169b88d Update minimal required GTK+ version to 2.6 in another place.
It really should only appear in a single place only, ideally, but currently we
have it in several different documents inside and outside the manual.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-10 18:25:34 +00:00
Paul Cornett
162f04d775 use G_VALUE_INIT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75163 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-10 18:13:27 +00:00
Paul Cornett
fa36f48a36 avoid NULL casts, clang says casting nullptr_t is not allowed
closes #15660


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-10 17:26:37 +00:00
Dimitri Schoolwerth
d3c0ffdf91 spelling and styling fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-10 13:45:03 +00:00
Dimitri Schoolwerth
f6cecad6ba Doc changes.
Updated some wxOSX related information.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-10 13:28:11 +00:00
Dimitri Schoolwerth
c6081cac7f Spelling fixes.
Changed "MacOS X" occurrences to "OS X" (in docs only).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-10 09:09:17 +00:00
Paul Cornett
31eb67923c spelling fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-10 01:48:27 +00:00
Vadim Zeitlin
09efff5d3c Rewrite the introduction page of the manual and update its main page.
Get rid of 20 year old information (it isn't that impressive that we offer to
provide wxWidgets on a CD-ROM any more) and drastically compress the
introduction page while, hopefully, making it more readable and useful for
people new to wxWidgets.

Update the main page to provide a short documentation walk-through and to
organize the different links in order of their usefulness instead of whatever
was used before (random?).

Also add links to the alphabetical list of classes which is very useful but is
not immediately apparent in the Doxygen menus.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-10 00:33:12 +00:00
Vadim Zeitlin
88d1f0922f Change the titles of some pages for better appearance on the main page.
Try to make the titles of the pages linked from the main page of the manual
more clear and consistent.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-10 00:33:09 +00:00
Vadim Zeitlin
85a6402146 Emphasize the importance of reading the changes section.
Mention that the changes since 2.8 could be useful to read even when not
actually upgrading since 2.8.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-10 00:33:06 +00:00
Vadim Zeitlin
a5fa384ab4 Update the date in the manual for 3.0 release.
Use 2013-11-11 as the release date as we're -- gasp -- close to actually
making it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-10 00:33:03 +00:00
Vadim Zeitlin
fd2fe45d6d Update the list of authors to put Vadim Zeitlin forward and add Stefan Csomor.
Put myself (VZ) forward at Robert's expense and also add Stefan to a couple of
places where he wasn't listed at all.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-10 00:32:59 +00:00
Vadim Zeitlin
331babd2d9 No real changes, just remove an unused line from wxOSX wxListBox code.
Don't create a wxEVT_LISTBOX event unnecessarily, this is done by the helper
HandleLineEvent() function called from here.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-11-09 22:08:53 +00:00