Commit Graph

52591 Commits

Author SHA1 Message Date
Stefan Csomor
10c0869605 reverting part of r58797, otherwise wxClientDC get no graphics context at all
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-24 14:56:40 +00:00
Vadim Zeitlin
2e7352635e Update and improve "Hello world" example in the documentation.
The example was corrupted by transition to Doxygen (the menu item labels got
eaten), fix it to actually work.

Also use this opportunity to improve and modernize it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67006 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-23 23:35:48 +00:00
Stefan Csomor
f18b5ee74c supporting content size scaling (retina display)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67001 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-22 18:51:10 +00:00
Stefan Csomor
455f62c3b5 building iphone again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66998 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-22 15:47:09 +00:00
Vadim Zeitlin
b83d3903e6 Update Czech translations.
Apply update from Zbynek Schwarz.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-22 13:55:56 +00:00
Vadim Zeitlin
6235846c0c Don't duplicate INVALID_FILE_ATTRIBUTES definition.
Move it in wx/msw/missing.h header instead of defining it in two different
places.

Closes #12964.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-22 13:26:06 +00:00
Vadim Zeitlin
6d2139e829 Test for cairo_push_group() in configure.
This function is required by wxGraphicsContext Cairo-based implementation but
is missing in old Cairo versions so check for it in configure and disable
wxGraphicsContext is it's not available.

Closes #12966.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-22 13:26:00 +00:00
Vadim Zeitlin
b8b9e48c51 Put storage class outside WXDLLIMPEXP_DATA_CORE() macros.
The storage class must come first in a declaration so put it in front of
WXDLLIMPEXP_DATA_CORE() and not inside it to avoid warnings from some
compilers (notably Intel one).

Closes #12932.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-22 13:25:51 +00:00
Vadim Zeitlin
58d424d7e1 Remove duplicated control names strings declarations from wxOSX.
There is no need to declare wxFooNameStr constants in wx/osx/foo.h files as
they are already declared in wx/foo.h.

Also remove a couple of header/forward declarations unnecessary for the same
reason.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-22 13:25:38 +00:00
Vadim Zeitlin
4add61fd8b Move wxCheckBoxNameStr declarations to wx/tglbtn.h from wx/port/tglbtn.h.
Don't duplicate wxCheckBoxNameStr declarations in all ports.

Of course, the question still remains why does wxToggleButton use
wxCheckBoxNameStr and not a specific name in the first place.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-22 13:25:30 +00:00
Václav Slavík
9698902019 Put normal space between Back and Next buttons in wxWizard.
Use regular space between these two buttons even on Windows, where they
were previously close together. This used to be done in older Windows
versions, but modern Windows HIG documents show wizards with equal
spacing between all buttons and that's what Windows OS itself does. In
other words, not treating this pair of buttons specially is more native.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-20 18:18:51 +00:00
Julian Smart
fc5bebcef4 Corrected a hit test problem when tabs are present
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-20 12:05:13 +00:00
Stefan Csomor
89a5da7c75 handling nil images correctly, solves #12956
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-20 06:31:12 +00:00
Stefan Csomor
2daf63c4eb appeasing clang
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-19 16:18:55 +00:00
Stefan Csomor
91b85d9b0c only draw separator line on the area adjacent to content, avoids double frames
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-19 14:51:27 +00:00
Vadim Zeitlin
7889a3a9fc Remove unused variables in wxOSX code.
Simply remove some unused variables that Xcode 4 compiler warned about.

See #12927.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-19 14:17:03 +00:00
Vadim Zeitlin
dbbb040c9f Remove extra semicolons in Objective-C code.
The semicolons after the method signature in its implementation are useless
and, in fact, provoke warnings from the compiler used by Xcode 4. Simply
remove them.

See #12927.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-19 14:16:58 +00:00
Vadim Zeitlin
062aa562d0 Remove stray #pragma implementation.
This #pragma is obsolete and shouldn't be used any more (if it ever had to
be).

See #12927.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-19 14:16:52 +00:00
Vadim Zeitlin
ab544700d2 Remove long unused wxHTML files.
These files seem to be left overs from the initial cvs import many years ago,
remove them to avoid confusion.

See #12927.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-19 14:16:46 +00:00
Vadim Zeitlin
9204fde6ee Add wxT_2() macro for compatibility with wxWidgets 2 API.
This macro can be used to make the same code compile with both v2 and v3 as it
expands to wxT() in 2.8 and nothing in later versions.

See #12925.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66968 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-19 13:44:19 +00:00
Vadim Zeitlin
1244d2e07f Add wxAutomationInstance_SilentIfNone flag for wxMSW OLE code.
This flag allows to suppress the error message in case there are no currently
running instances of this object and can be useful if the caller doesn't know
in advance whether it's available or not.

Closes #12734.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-19 12:33:08 +00:00
Vadim Zeitlin
d65e9d5707 Move "static" keyword out from wxDEPRECATED() macros to placate icc.
Intel compiler gives warnings if the static keyword is not at the beginning of
the declaration and this happened when using it inside wxDEPRECATED() and
related macros because the declaration started with __declspec(deprecated) or
__attribute__((deprecated)) instead.

To avoid this problem, simply move "static" outside the macro.

Closes #12932.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66966 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-19 12:32:59 +00:00
Vadim Zeitlin
16c7d85b34 Correct signed/unsigned comparison in wxGridBagSizer code.
Casting a signed value to unsigned type is a recipe for disaster if it
actually turns out to be negative because the comparison remains always false
and the loop becomes practically infinite. So cast the unsigned value to
signed int instead, this should be perfectly safe as the number of columns or
rows in a sizer can't exceed INT_MAX anyhow.

Notice that after the changes of the previous revision the signed value
should actually be always positive so this change is not strictly needed but
it is still safer to write the comparison like this.

See #12934.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-19 12:32:53 +00:00
Vadim Zeitlin
1b3b63ed5b Don't accept invalid values for rows/columns in wxGBSpan ctor.
wxGBSpan must have strictly positive row and column span as otherwise the grid
bag sizer code could enter an infinite loop trying to exceed a negative number
which it casted to an unsigned one. And while the cast itself is incorrect too
the program still behaves undesirably (produces a lot of asserts in debug
build and then crashes or crashes directly in release) if a zero size span is
used so it seems better to prevent this from happening.

Closes #12934.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-19 12:32:48 +00:00
Vadim Zeitlin
359cde15e0 Fix out of bounds string access in wxMSW wxDirDialog.
Using the initial directory of "/" (or "\\" or in fact any string consisting
solely of slashes and backslashes) resulted in a crash as the code incorrectly
tried to read the character before the beginning of the string.

Fix this by checking that the string is not empty before using s.end()-1
iterator.

Closes #12946.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-19 00:30:32 +00:00
Vadim Zeitlin
ca746004af Don't ask for wxTextAttr colour if it doesn't have any in text sample.
This fixes an assert which could happen when showing the rich text editor.

Also show the colour in a more readable form if possible.

Closes #12950.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-19 00:30:24 +00:00
Vadim Zeitlin
2de611305e Compilation fix for PCH-less wxOSX build.
Forward declare wxChoice.

Closes #12953.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-19 00:30:18 +00:00
Stefan Csomor
eeb415ecbe fixes #12935
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66956 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-18 19:06:11 +00:00
Stefan Csomor
490315f9b4 bail out with error in case of carbon set for 64 bit architecture
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-18 18:44:43 +00:00
Stefan Csomor
fbede18c59 precomp header fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-18 18:25:23 +00:00
Stefan Csomor
a37e1f0e83 updating sysopt string
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66953 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-18 17:48:39 +00:00
Stefan Csomor
13390af486 support for file-type popup, compatible for 10.4+, solves #12429
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-18 17:29:31 +00:00
Stefan Csomor
d814b237d9 support non precomp builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-18 07:26:15 +00:00
Julian Smart
e723991bb0 Fixed bug #9856: wxSizer::Replace( size_t, wxSizerItem *) doesn't call SetContainingSizer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-17 09:53:06 +00:00
Stefan Csomor
e5ada8e1aa activating high-res support via artprov mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-17 09:46:27 +00:00
Stefan Csomor
8f5bce64e0 patch applied with thanks, fixes #10524
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-17 06:46:09 +00:00
Vadim Zeitlin
03c9cce564 Correct example of wxRegKey use in its documentation.
Don't check for the key existence, it ought to exist if we create it like
this.

Also don't allocate wxRegKey object on the heap unnecessarily.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-16 23:51:08 +00:00
Vadim Zeitlin
00a73a8de6 Remove WXDLLIMPEXP_CORE from VC6 wxCompositeWindow declaration.
Hopefully not using WXDLLIMPEXP_CORE here should fix VC6 warnings about using
non dll-interface class as a base class for a dll-interface one.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-16 23:45:04 +00:00
Vadim Zeitlin
f4d084afda Don't use native MSW wxProgressDialog version in wxUniv.
The native version should only be used in the native port.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-16 23:45:00 +00:00
Vadim Zeitlin
0c3ae94cf0 Compile wxUIActionSimulator in wxUniv builds.
Move wxUIActionSimulator implementation files to low level sources to ensure
that they are included in wxUniv builds.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-16 23:44:55 +00:00
Stefan Csomor
b9c22bca90 adding edit menu in order to be able to support native edit menu commands (osx)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-16 18:51:15 +00:00
Stefan Csomor
fbbe829a19 support native edit menu handling (cocoa enables menu items in built-in modal dialogs automagically, if they have the proper selectors)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-16 18:32:31 +00:00
Stefan Csomor
f1f5ddd755 toolbar support in all orientations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-16 18:31:16 +00:00
Stefan Csomor
baac715443 toolbar support in all orientations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66905 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-16 18:30:55 +00:00
Stefan Csomor
ca9adee47f remove ununsed member
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-16 16:37:24 +00:00
Stefan Csomor
075386e6e7 conforming to deprecation recommendation for 10.6
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-16 16:10:30 +00:00
Stefan Csomor
5411e35f7b support for file types in save panel
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-16 07:38:48 +00:00
Stefan Csomor
fd5907ffd9 support wxFD_MULTIPLE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-16 06:59:53 +00:00
Stefan Csomor
2677566b1d fixing naming to conform to effective ownership, cleaning up releasing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-16 06:55:43 +00:00
Paul Cornett
192c3efa7f fix GCC warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-16 05:13:00 +00:00