Commit Graph

570 Commits

Author SHA1 Message Date
Vadim Zeitlin
5a3eee0dba Allow specifying all wxFlexGridSizer parameters in XRC.
Add support for specifying flexible direction, grow mode in non-flexible
direction and row/column proportions for the growable ones.

Closes #14767.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-10-19 22:03:25 +00:00
Vadim Zeitlin
8b5cec2580 Correct example of handling property values changes in the docs.
"." was incorrectly used with a pointer, replace it with a "->".

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-10-16 14:01:54 +00:00
Vadim Zeitlin
45df4bb6c2 Add "inherit" to <font> XRC tag.
This allows to construct a font based on the parent window font instead of
either fully specifying all font parameters or basing it on a standard font.

Closes #14632.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-09-28 23:48:34 +00:00
Vadim Zeitlin
c3f641cb5e Add wxBITMAP_PNG() macro similar to wxBITMAP() but for PNG images.
Just as wxBITMAP() provides a portable way of loading bitmaps from either
Windows BMP resources or embedded XPM data depending on the platform,
wxBITMAP_PNG() hides the difference between loading bitmaps from PNG resources
under Windows and embedded PNG data elsewhere.

Also add wxBITMAP_PNG_FROM_DATA() macro which always loads PNG data from
memory: it's needed anyhow as part of wxBITMAP_PNG() implementation and some
people may prefer to always use it under all platforms.

Finally modify the image sample to demonstrate loading PNG images from both
resources and memory. This involved creation of a new Windows .rc file for it
and copying its data files to Resources bundle directory under OS X.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-09-13 17:15:25 +00:00
Vadim Zeitlin
9e565667d0 Add wxSpinCtrl::SetBase() to allow entering hexadecimal numbers.
Add a generic SetBase() API even though right now only bases 10 and 16 are
supported as we might support other ones (e.g. 8?) in the future. Implement it
for MSW, GTK and generic versions.

Add controls allowing to test this feature to the widgets sample.

Add "base" property support to the XRC handler for wxSpinCtrl, document it and
test it in the xrc sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-30 20:24:38 +00:00
Vadim Zeitlin
cc699de848 Added wxSimplebook class: a wxBookCtrl without controller.
This new control allows the program to show one of the several pages without
allowing the user to change them (or even see that there are several of them)
himself.

This class is fully inline, so it doesn't add anything to the library and
hence doesn't need neither wxUSE_SIMPLEBOOK nor the corresponding configure
option.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-30 20:21:54 +00:00
Vadim Zeitlin
572f4ad212 Fix typo in an example of Bind()-ing a function in the event overview.
Functors must be passed by const reference, not pointer.

Closes #14572.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-11 23:09:36 +00:00
Vadim Zeitlin
da0ee16ef9 Use __DARWIN__ instead of __WXOSX__ in non-GUI code.
This fixes compilation of non-wxOSX ports (e.g. wxGTK) under OS X.

Also make the difference between the two symbols more clear in the
documentation.

Closes #14503.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-23 15:03:42 +00:00
Vadim Zeitlin
14b682f7c3 Increase version to 2.9.5.
Rebake all the project/make files.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-10 23:51:44 +00:00
Vadim Zeitlin
b8c2e8e239 Also update the minimal GTK+ version in the introduction manual page.
And mention GTK+ 3 there too.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71953 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-03 20:01:27 +00:00
Vadim Zeitlin
926f71030a Update the date in the manual before 2.9.4 release.
And mention the need to do it in the tech note for the next time.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-03 19:59:56 +00:00
Paul Cornett
dc26e9846f add some mention of GTK3 support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-02 15:56:47 +00:00
Vadim Zeitlin
c55488dfff Add skeleton documentation for wxAuiNotebook-related classes.
Closes #14386.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-30 23:41:23 +00:00
Vadim Zeitlin
34f5c1053a Update debugging macros overview in the docs.
Describe how the debugging macros really work since 2.9.1, i.e. explain
wxDEBUG_LEVEL and NDEBUG instead of __WXDEBUG__.

Closes #14435.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-30 16:33:14 +00:00
Vadim Zeitlin
b33e9f4031 Add wxUSE_COMPILER_TLS to allow disabling compiler TLS support.
Compiler TLS support is broken under Win32/MSVC when used for a code which is
part of a dynamically loaded DLL, so allow disabling it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-17 21:34:47 +00:00
Robin Dunn
df30f9537b Allow the doxygen command to be used to be specified in the environment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-13 23:20:08 +00:00
Vadim Zeitlin
9e0fc31c31 Remove non-existent section from Unicode overview TOC.
This section is now just a subsection, don't list it in the table of contents.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-05-20 13:08:35 +00:00
Stefan Csomor
c6b6ccd40a adjusting min requirements
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-05-19 13:17:21 +00:00
Vadim Zeitlin
bf0f2c4b33 Disable the use of UTF-8 by default in Unix builds.
Add up-to-date description of UTF-8 support to the Unicode overview.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-05-13 13:17:25 +00:00
Vadim Zeitlin
386279c3f2 Improve wxWindow best size documentation, mention DoGetBestClientSize().
Custom classes should typically override DoGetBestClientSize() instead of
DoGetBestSize() to avoid having to deal with the borders.

Also don't reference the deprecated SetInitialBestSize() unnecessarily and
document its non-deprecated replacement.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-05-09 14:24:34 +00:00
Robin Dunn
e5e10e234e Remove the wxPython-only doc snippets from the C++ docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-10 03:27:44 +00:00
Vadim Zeitlin
2415cf6725 Remove support for MetroWerks CodeWarrior compiler.
This compiler doesn't exist any more and was probably unsupported even in 2.8,
let alone 2.9, so remove all the __MWERKS__ tests to simplify things.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-04-05 18:40:11 +00:00
Vadim Zeitlin
d98a58c543 Use __WINDOWS__ for OS kind checks and reserve __WXMSW__ for GUI toolkit.
This change prepares the way for using wxGTK under Windows as this would
still define __WINDOWS__ but use __WXGTK__ instead of __WXMSW__.

Closes #14064.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:29:31 +00:00
Vadim Zeitlin
e709239889 Use wxHAS_IMAGES_IN_RESOURCES instead of explicit platform checks.
Add a special symbol which is defined only if the icons and other images (e.g.
cursor) are in the separate resource files and don't need to be embedded as
XPMs in the main program.

This makes the checks more clear and more customizable as it's enough to
change wxHAS_IMAGES_IN_RESOURCES definition instead of changing many platform
checks.

Closes #14050.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 00:28:58 +00:00
Vadim Zeitlin
7eb02e44ba Recognize MSVC 11 instead of warning about unknown MSVC version.
Define __VISUALC11__ for it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-29 22:40:24 +00:00
Robin Dunn
c0e5edf548 If WXWIDGETS is not set and if on cygwin then set it to a DOS style path. (This assumes that it is not a cygwin oxygen that is being run, if that's not the case then set WXWIDGETS before running regen.sh)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-21 05:38:53 +00:00
Vadim Zeitlin
df1f2558e1 Mention __WIN64__ in the preprocessor defines documentation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-14 23:14:53 +00:00
Vadim Zeitlin
7d001b19ef Fix typo in wxSlider XRC format documentation.
"pagesize" was documented as line size, fix this.

Closes #13949.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-09 13:24:43 +00:00
Vadim Zeitlin
fe8aae41ab Fix the URL generated by Doxygen @sampledir macro.
"samples/" part of the URL was missing, add it.

Closes #13925.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-04 12:22:46 +00:00
Bryan Petty
8724973ada Added more conveniently placed 'List of All Members' link on all class doc pages in the header summary (using JS).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-01-25 06:39:53 +00:00
Dimitri Schoolwerth
2d143b6689 Removed ellipsis from "About..." occurrences.
MS and Apple guidelines mention ellipses should generally be used when a command needs additional information from the user before the operation can execute. This is not the case for showing an about dialog so the ellipses have been removed.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-01-20 16:51:09 +00:00
Vadim Zeitlin
8def3e6ee3 Fix another typo in section names in the XRC overview.
Replace triple "t" with just a double one in "button".

See #13868.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-01-15 23:39:57 +00:00
Vadim Zeitlin
718dd5e340 Fix wxBitmapToggleButton section name in XRC format overview.
It mistakenly had the same name as wxToggleButton section.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-01-15 23:28:54 +00:00
Vadim Zeitlin
8ae52ef8cc Fix minor errors in XRC format overview.
Correct the tag in an example and a section name.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-01-15 18:54:27 +00:00
Vadim Zeitlin
0e1f8ea4a3 Remove wxMGL port.
The company behind MGL toolkit (SciTech) doesn't exist since several years and
this port is not used by anybody, so remove it to ease maintenance burden.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-01-15 14:46:41 +00:00
Vadim Zeitlin
bd362275b8 Remove Palm OS port.
The platform targeted by this port doesn't exist any more and the port never
achieved really working state so remove the code to avoid having to maintain
it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-01-15 01:05:28 +00:00
Vadim Zeitlin
215ab2b53e Remove the documentation of non-existent wxNO_T macro.
Don't document wxNO_T as it doesn't exist.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-01-15 01:05:07 +00:00
Dimitri Schoolwerth
d9384bfb6d no code changes, fixed some typos
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-01-09 14:04:25 +00:00
Bryan Petty
3e14a8d3d7 Fixed javascript errors in CHM version of the manual.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70231 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-01-02 01:32:20 +00:00
Vadim Zeitlin
3e65f74e18 Add support for more CSS styles to SPAN tag in wxHtmlWindow.
Add limited support font-family, font-style and text-decoration.

Closes #13170.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-27 01:21:26 +00:00
Vadim Zeitlin
4ffdb64018 Add wxLogFormatter to allow easier wxLog output customization.
Delegate the log string creation to wxLogFormatter. This allows defining a
custom object of a class derived from it to customize the log output instead
of having to override DoLogRecord() in wxLog itself.

Closes #13792.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-22 13:35:01 +00:00
Vadim Zeitlin
fceac6bbfe Provide native implementation of wx{Date,Time}PickerCtrl for wxOSX/Cocoa.
Use NSDatePicker to implement both of these controls. Almost all of
wxDatePickerCtrl styles are not supported in the native version but the basic
functionality does work and looks much better than the generic version (which
is still available as wxDatePickerCtrlGeneric if needed) under Mac.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-20 21:27:14 +00:00
Vadim Zeitlin
c05b000c71 Incremented the version number to 2.9.4 everywhere.
The misc/scripts/inc_release script was used to update the versions.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-16 22:12:49 +00:00
Vadim Zeitlin
1677253b36 Minor corrections to event handling overview documentation.
Use "wx" prefix with the macros and correct the event methods used in the
example.

Closes #13752.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-11 23:51:18 +00:00
Bryan Petty
20004800cf Regenerated new Doxygen custom HTML header, footer, and stylesheet with 1.7.6, but only for use with Doxygen 1.7.4.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69958 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-08 15:45:41 +00:00
Dimitri Schoolwerth
238188550e Updated out of date versions and release dates.
Mentioned more files in tn0011.txt that need version updating, and made it more clear which ones need to be changed manually. Modified inc_release to update docs/readme.txt and changed the version references in the readme.txt to 2.9.3. Also changed two references to the month of release from July to December.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 23:44:22 +00:00
Francesco Montorsi
7e6ab75033 no real change: just move Docset/CHM/QCH declarations in their own sections
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69686 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-05 12:25:46 +00:00
Francesco Montorsi
deed8373ae fix some simple Doxygen warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-05 11:55:00 +00:00
Francesco Montorsi
38ea03c936 better links to the stock item ID list
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-05 11:54:14 +00:00
Vadim Zeitlin
e2623304af Correct the misleading example of using id ranges in XRC documentation.
"range[end]" is the last id in the range, inclusive, not the first id after it
so any loops iterating over all ids in the range should cover it as well.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-04 17:41:20 +00:00