Commit Graph

52511 Commits

Author SHA1 Message Date
Julian Smart
bcc372381f Removed GCC 4 warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-14 19:32:35 +00:00
Julian Smart
d3cd6c6d22 Compile fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-14 12:15:17 +00:00
Julian Smart
2be72ac283 Compile fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-14 12:08:03 +00:00
Julian Smart
603f702b4a Implemented text boxes and tables, and further editing pages for backgrounds, borders and margins.
wxRTC functions now operate on the currently focused object, which by default is the whole buffer.
Up to three property commands are now shown on the context menu, depending on
available objects in the current hierarchy.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-14 11:57:44 +00:00
Vadim Zeitlin
3625820490 Fixes for parsing invalid HTML without tag ends.
The code in wxHtmlParser supposed in many places that a '<' character must be
always followed by a '>' one and could create (and sometimes dereference)
invalid iterators if this wasn't the case resulting in asserts from MSVC debug
CRT and possibly crashes.

Fix this by ensuring that only valid iterators are used and add a trivial unit
test for wxHtmlParser which checks that it can parse invalid HTML without
crashing.

Closes #12869.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-13 14:49:55 +00:00
Vadim Zeitlin
48d8ea6d93 No changes, just remove a level of indentation in wxHtmlTagsCache ctor.
Get rid of characters not starting a tag immediately in the beginning of the
loop instead of putting the entire loop body inside an if statement. This
doesn't change anything (this becomes more apparent if the patch is viewed
with "ignore white space changes" option) except making the code easier to
read and modify.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-13 14:49:44 +00:00
Vadim Zeitlin
2f7e8b765a Fix MSVC warnings about signed to unsigned conversion in the tests.
Recently modified client data test added calls to SetClient{Object,Data}(-1)
and MSVC complained about them, suppress these warnings.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-13 14:49:34 +00:00
Jouk Jansen
27657c99cc wxComboBox::GetClassInfo() should not be defined here
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66675 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-13 08:45:54 +00:00
Paul Cornett
7748d3d5c0 non-pch build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-12 18:04:39 +00:00
Jaakko Salli
df541b86f8 In wxBitmapComboBox::RecreateControl(), only call ChangeValue() if the control doesn't have wxCB_READONLY style (fixes #12859)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-12 17:58:09 +00:00
Vadim Zeitlin
4254f67216 Add support for icons in wxAUI panes title bars.
Add wxAuiPaneInfo::Icon() method and shows its use in the sample.

Closes #12856.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-12 13:39:36 +00:00
Vadim Zeitlin
17731af57d Fix crash in wxGenericRichMessageDialog::IsCheckBoxChecked().
The test for checkbox existence was inversed resulting in a guaranteed crash
when calling IsCheckBoxChecked() before showing the dialog.

Closes #12866.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-12 13:39:29 +00:00
Vadim Zeitlin
ed2da291ad Disable deprecation and other warnings in MFC sample.
VC8+ give tons of deprecation warnings for the standard functions which are
usually suppressed by wx headers but they need to be included first for the
suppression to be effective. In the MFC sample they were not resulting in many
useless warnings.

Fix this by pre-defining _CRT_SECURE_NO_WARNINGS to suppress them in the
sample itself.

Also suppress a warning about WINVER being undefined.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-12 13:39:24 +00:00
Vadim Zeitlin
0c9786de3a Fix entry point in Unicode build of the MFC sample.
MFC needs the entry point to be wWinMainCRTStartup() in Unicode builds but the
bakefile-generated projects use the default WinMain() so the sample didn't
link in Unicode.

Fix this by providing WinMain() which simply forwards to wWinMainCRTStartup()
as this seems to work for all MSVC/CRT versions.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-12 13:39:16 +00:00
Jouk Jansen
bf3ed077c1 make sure wxNativeFontInfo is defined
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-11 17:05:43 +00:00
Jouk Jansen
76ab455a6b update OpenVMS makefile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-11 16:32:25 +00:00
Vadim Zeitlin
8584b0e64b Check index in wxItemContainer methods working with client data.
The test for index validity should be done by the base class public methods
themselves so that the protected methods in the derived classes don't need to
do it because this allows to have the check in one place only and not in every
port-specific derived class and also because a protected method can reasonably
expect to be called with already validated parameters.

This makes it unnecessary to perform the same check in many derived classes
and fixes the problem with those that forgot to check for item validity at all
before (like wxGTK wxChoice).

Also add a unit test checking for the correct behaviour. Unfortunately we
don't have any way to test for the precise assert being triggered so the test
passed for wxGTK wxChoice even before in debug builds because the expected
assert was raised by wxArray::Item() but the code crashed in release build --
whereas now it doesn't any more.

Closes #12858.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-10 12:00:54 +00:00
Vadim Zeitlin
ca275c039c Remove redundant top level const in wxRibbonBar::ShowPanels().
Use just "bool show" instead of "const bool show".

This fixes compilation for some compilers (notably OpenVMS one) broken since
r66612.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-10 12:00:44 +00:00
Stefan Csomor
12354f4676 adding new files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-10 11:42:10 +00:00
Stefan Csomor
fe43e2b641 adding new files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-10 11:40:56 +00:00
Stefan Csomor
1a4bb71138 adding new files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-10 11:32:34 +00:00
Paul Cornett
5eed855656 remove always-true test of unsigned >= 0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-08 18:22:07 +00:00
Paul Cornett
dc771347d0 remove unneeded #includes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-08 18:05:33 +00:00
Paul Cornett
ec96ef0b6f fix GCC warning about not explicitly initializing base class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-08 17:55:53 +00:00
Paul Cornett
703e3c42d1 remove always-true tests of unsigned >= 0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-08 17:45:31 +00:00
Paul Cornett
8528d60a8a fix GCC warning about not explicitly initializing base class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-08 17:33:51 +00:00
Paul Cornett
16a2525ff2 proper const-ness for GetLine() and operator[]()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-08 17:17:10 +00:00
Paul Cornett
d6d6a61fed proper const-ness for Item(), operator[](), and Last()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-08 17:16:29 +00:00
Stefan Csomor
c294641fd5 removing xti code which isn't necessary for unicode under trunk anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-08 10:22:30 +00:00
Stefan Csomor
f06d69376d rearranging xti code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-08 08:03:42 +00:00
Paul Cornett
4608b3f837 update docs after r66615
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-08 06:57:23 +00:00
Paul Cornett
0c3e2a5baa Move SendIdleEvents() from wxApp to wxWindow.
Use it to properly implement idle events for
wxGTK menubar, toolbar and statusbar.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-08 06:42:41 +00:00
Stefan Csomor
8d6eed5f04 adding xti info for commandlinkbutton
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-08 06:39:51 +00:00
Stefan Csomor
bca6bd3823 gcc fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-07 22:52:46 +00:00
Stefan Csomor
47f73cc455 bracketing xti-only methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-07 22:46:52 +00:00
Stefan Csomor
595663964a adding xti info
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-07 22:37:43 +00:00
Stefan Csomor
1f6420d83a common rtti in nbkbase.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-07 22:31:26 +00:00
Stefan Csomor
38c69d200d correcting merge conflict
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-07 22:14:31 +00:00
Stefan Csomor
46b03af7ae common rtti in fontcmn.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-07 22:01:22 +00:00
Stefan Csomor
54912101ff avoid type conflict with univ wxMenuInfo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-07 21:51:19 +00:00
Stefan Csomor
46cd8dfd0a avoid type conflict with univ wxMenuInfo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-07 21:50:15 +00:00
Stefan Csomor
412e6a10cb fixing class name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-07 21:37:45 +00:00
Stefan Csomor
d27d59fb91 having menu classinfo at one place
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-07 21:36:17 +00:00
Stefan Csomor
469b56ea63 routing to common classinfo for non-xti builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-07 20:55:00 +00:00
Stefan Csomor
17ca6e3b7d remove non-xti classinfo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-07 20:06:14 +00:00
Václav Slavík
b06ed2f866 Implement wxCOL_WIDTH_AUTOSIZE on OS X.
Only Cocoa build on 10.5+ is supported. Before that, NSOutlineView
didn't have reasonable support for determining cell sizes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-07 18:26:58 +00:00
Paul Cornett
6a50a2c4d3 move default OnInternalIdle processing to wxWindowBase
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-07 18:15:21 +00:00
Stefan Csomor
1bf29304cc updated xti sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-07 18:14:45 +00:00
Stefan Csomor
88a4f868fd xti changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-07 17:50:25 +00:00
Stefan Csomor
e765d7ee73 xti changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-07 17:49:18 +00:00