Commit Graph

414 Commits

Author SHA1 Message Date
Vadim Zeitlin
ab06470e49 Add wxDEBUG_LEVEL to wx/setup.h and document it.
Under Unix wxDEBUG_LEVEL can be set using configure --enable-debug=max option
but under Windows it needs to be changed in wx/msw/setup.h so add it to this
file with a comment explaining its meaning.

Also document this symbol with the other preprocessor constants.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-12 11:29:42 +00:00
Vadim Zeitlin
7d9550df50 Define wxDEBUG_LEVEL in both debug and release builds as 1.
By default include assertions and debug logging in both debug and release
builds but disable them in application release builds (when NDEBUG is
defined).

Also update (more accurately, replace) debugging overview.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-12 11:28:52 +00:00
Vadim Zeitlin
7c9cc312e7 Show the order in which different event handlers are called.
Update the event sample to define (as) many (as possible) event handlers for a
test button and log messages in all of the handlers to leave a trace of the
order in which they were executed.

Add a pointer to this feature of the event sample to the events overview.

Closes #11156.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-07 23:00:21 +00:00
Vadim Zeitlin
9bd1920403 Clarify the priority rules for static and dynamic handlers.
See #11156.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-03 00:24:14 +00:00
Jaakko Salli
08c1613f88 Disabled top-level parent tracking by default (crashes with AUI), must now use wxPG_EX_ENABLE_TLP_TRACKING style to enable old behavior.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-29 08:09:45 +00:00
Vadim Zeitlin
12c9c01c24 Extract event handlers chain documentation in a separate section.
The explanation of event handlers chaining was too big and distracted from the
main point of the event processing section which was to explain in which order
different handlers are looked up.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-23 21:31:14 +00:00
Vadim Zeitlin
9a83f86094 Globally replace _T() with wxT().
Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 20:30:22 +00:00
Kevin Ollivier
6a1df26215 Typo in a bug fix I made.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-17 18:42:15 +00:00
Kevin Ollivier
1013a78945 Adding preliminary code for C bindings, thanks to Luke A. Guest.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-17 18:39:26 +00:00
Kevin Ollivier
edaadd8cd2 Add an underscore before the generated output names.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61444 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-17 18:37:02 +00:00
Kevin Ollivier
e2075bf002 Only load/parse options when run as the main script.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-17 18:30:24 +00:00
Vadim Zeitlin
53ff8df7d5 Make wxLog::EnableLogging() and wxLogNull thread-specific.
Disabling logging in a single thread (even the main one) shouldn't disable
logs from the background threads which should disable their logging themselves
as/if needed.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-13 13:21:52 +00:00
Vadim Zeitlin
232addd1cd Made wxLogXXX() functions thread-safe.
They can now be called from any thread and will buffer the messages until the
current log target is flushed from the main thread. This makes earlier code to
do the same thing specifically for wxLogWindow unnecessary and also allows to
use wxLogMessage() in the thread sample instead of using manual logging there.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-12 17:02:30 +00:00
Vadim Zeitlin
c602c59b6e Add component-level filtering to wxLog.
Each log message is now associated with its component, "wx" by default for
messages generated by wxWidgets and wxLOG_COMPONENT in general (which is empty
by default). Each component may have its own log level and they are
hierarchical allowing fine configuration of what exactly is logged.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-12 14:56:23 +00:00
Vadim Zeitlin
af58844636 Add information about the log message generation location to wxLog.
This means that wxLog::DoLogRecord() can now retrieve the file name, line
number and the function where the message was logged.

An unfortunate consequence of this change is that now

	if ( condition )
		wxLogError("Whatever");

results in a warning from g++ 4.x with -Wparentehses, so extra parentheses had
to be added in many places.

Finally, also allow storing arbitrary attributes in wxLogRecordInfo. This had
to be added to implement our own overloaded wxLogStatus() and wxLogSysError()
and will probably be useful for the others as well.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-09 20:26:34 +00:00
Vadim Zeitlin
f3239c2118 updated the version to 2.9.1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-05 11:51:53 +00:00
Vadim Zeitlin
18b9d1a13c add support for bitmap and bitmapposition tags to the wxButton XRC handler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-15 19:35:19 +00:00
Vadim Zeitlin
0654158b18 fix Doxygen syntax error which prevented output for this page from being generated at all
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-15 17:28:58 +00:00
Vadim Zeitlin
a7435c3ec4 added own{fg,bg,font} allowing to set non-inheritable fore/background colours and font from XRC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-13 02:48:38 +00:00
Robert Roebling
0e497a9db6 Update docs to mention wxRefCounter class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-12 20:29:59 +00:00
Vadim Zeitlin
0d14e4f21d added XRC handler for wxFileCtrl (closes #10785)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-12 17:40:11 +00:00
Jaakko Salli
0cd4552a99 Added note about 'Py' prefix no longer being necessary when reimplementing property member functions in wxPython
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-10 20:51:25 +00:00
Jaakko Salli
8622887ce2 Added section 'Changes from wxPropertyGrid 1.4'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-07 09:02:35 +00:00
Vadim Zeitlin
d58772283e value of wrap parameter of wxStaticText must be specified in pixels, not characters
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-04 12:17:34 +00:00
Francesco Montorsi
3b36f093d9 group wxPlatformInfo functions for easier browsing; add more descriptions; link the related function group
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-31 16:34:13 +00:00
Vadim Zeitlin
68fe70ea1f define HAVE_LARGEFILE_SUPPORT in setup.h when large files support is available and test for it in wx/filefn.h (closes #10844); document that wx/filefn.h must be included before testing for wxHAS_LARGE_(F)FILES
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-30 17:15:36 +00:00
Vadim Zeitlin
881f5a1c71 correct a typo in wxSplitterWindow gravity parameter name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-25 13:08:00 +00:00
Vadim Zeitlin
ef18e79223 add support for defining list control columns in XRC too (and correct a few things in previously added list items support)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-25 13:00:28 +00:00
Bryan Petty
07e6fc431d Small build and run fixes made to screenshotgen util after wxMSW changes.
Updated wxOSX (Carbon) screenshots in the manual.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-13 19:19:01 +00:00
Bryan Petty
35b04374da Replaced dir control screenshot in the manual with one that doesn't have personal info in it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-13 18:40:11 +00:00
Bryan Petty
0b4ddd818a Updated wxMSW screenshots in the manual generated with a default Windows font sizes, theme, and locale.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-13 18:34:10 +00:00
Vadim Zeitlin
326462ae94 add support for loading wxListCtrl items and wxImageLists from XRC (closes #10647)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-07 17:29:57 +00:00
Kevin Ollivier
0cbc1d0251 Separate the parts of make_bindings.py out into common parts, and SWIG and SIP specific parts.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-02 23:07:51 +00:00
Kevin Ollivier
4e735ed6a6 Move the scripts into a separate directory and commit initial start on automatic bindings generator.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-02 22:26:40 +00:00
Kevin Ollivier
3fee01e962 Add the ability to query if a class is derived from another class.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-02 22:20:40 +00:00
Vadim Zeitlin
72a7c55982 added wxStd{In,Out}putStream classes (closes #10637)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60483 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-02 18:29:33 +00:00
Vadim Zeitlin
9e0ed08360 put wx{Keyboard,Mouse}State in events category instead of misc one
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-01 22:37:14 +00:00
Vadim Zeitlin
82edfbe7d9 add a possibility to disable individual grid rows/columns resizing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-26 17:02:53 +00:00
Vadim Zeitlin
e812c32f56 added short col/row resizing overview
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-26 15:50:19 +00:00
Vadim Zeitlin
64f227605d set eol style correctly (see #10745)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-26 19:41:08 +00:00
Kevin Ollivier
7f42e09be2 Separate out constructors / destructors, add support for enums and include files, and add a verbose option.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-25 23:49:35 +00:00
Vadim Zeitlin
4461c51850 attempt to hyperlink wxCHECK_VISUALC_VERSION
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-25 13:19:44 +00:00
Vadim Zeitlin
3795f11ff2 define __EVC4__ for eVC 4 compiler to make testing for it easier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-25 13:16:59 +00:00
Vadim Zeitlin
9ca2956011 another typo correction; provide GNU gettext link
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-23 15:52:07 +00:00
Vadim Zeitlin
ad5cc52914 fix links and references to cvs (closes #10729)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-23 15:50:40 +00:00
Stefan Csomor
a19d71a81b adding me to author, updating date
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-21 14:32:07 +00:00
Kevin Ollivier
fc76d7df9b Add a space to ensure we have a space between qualifiers and parameter names
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-15 17:47:23 +00:00
Kevin Ollivier
0ed9af4ed9 Catch the return type when it's inside a <ref> tag.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-10 22:40:24 +00:00
Kevin Ollivier
f613f81ac9 Commit script which parses the Doxygen XML output into a list of class and method objects, which later can be passed for post-processing to autogenerate bindings, etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-09 17:31:39 +00:00
Vadim Zeitlin
f3d261e7ac minor improvements to Bind() description
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-30 21:55:03 +00:00