]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
15 years agoImplement wxDataViewTreeStore::DeleteAllItems().
Vadim Zeitlin [Mon, 3 Aug 2009 20:42:49 +0000 (20:42 +0000)] 
Implement wxDataViewTreeStore::DeleteAllItems().

Just delete all root children.

Closes #11063.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoCorrect week day returned from wxCalendarCtrl::HitTest() on header click.
Vadim Zeitlin [Mon, 3 Aug 2009 20:37:03 +0000 (20:37 +0000)] 
Correct week day returned from wxCalendarCtrl::HitTest() on header click.

A combination of a wx bug in conversion from native control week days to
wxDateTime week days and a bug of native control itself when the first week
day is not Monday resulted in the day being off by one it did start with
Monday. The new code works correctly in both Monday and Sunday cases, at least
until the bug in comctl32.dll is corrected.

See comment:5 of #11057.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAdded symbolic names for native control week days.
Vadim Zeitlin [Mon, 3 Aug 2009 20:36:56 +0000 (20:36 +0000)] 
Added symbolic names for native control week days.

No real changes, but MonthCal_Monday/Sunday is more clear than 0 or 6.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAlways use MCHITTESTINFO of minimal size.
Vadim Zeitlin [Mon, 3 Aug 2009 20:10:31 +0000 (20:10 +0000)] 
Always use MCHITTESTINFO of minimal size.

This struct has gained additional fields under Vista which are not supported under previous versions. We don't use these fields but just using a bigger struct makes functions using it fail under pre-Vista systems, so don't do this.

Closes #11057.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoMinor changes to wxGridSizer ctor docs.
Vadim Zeitlin [Mon, 3 Aug 2009 00:51:03 +0000 (00:51 +0000)] 
Minor changes to wxGridSizer ctor docs.

See #11040.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoUse numeric values in VarFileInfo block.
Vadim Zeitlin [Mon, 3 Aug 2009 00:44:46 +0000 (00:44 +0000)] 
Use numeric values in VarFileInfo block.

This allows windres to compile it successfully and is probably the right thing to do for the SDK resource compiler as well (see #11055).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoCorrect wxPATH_NORM_DOTS comment and documentation.
Vadim Zeitlin [Sun, 2 Aug 2009 01:03:00 +0000 (01:03 +0000)] 
Correct wxPATH_NORM_DOTS comment and documentation.

It doesn't prepend the current working directory, only wxPATH_NORM_ABSOLUTE does.

Closes #11035.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoCheck indices validity better in wxGridStringTable.
Vadim Zeitlin [Sun, 2 Aug 2009 00:59:31 +0000 (00:59 +0000)] 
Check indices validity better in wxGridStringTable.

Calling GetValue(-1, -1) could crash as the code naively only checked upper boundary (and didn't use unsigned which would have made the extra check unnecessary but it's too late for this now).

Closes #11044.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoMention that wxEVT_GRID_SELECT_CELL is generated by SetGridCursor() in one more place.
Vadim Zeitlin [Sun, 2 Aug 2009 00:53:51 +0000 (00:53 +0000)] 
Mention that wxEVT_GRID_SELECT_CELL is generated by SetGridCursor() in one more place.

It was already done in SetGridCursor() documentation; do it in wxEVT_GRID_SELECT_CELL own description as well (see #11045).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoMake wxGridSizer ctors more consistent.
Vadim Zeitlin [Sun, 2 Aug 2009 00:48:58 +0000 (00:48 +0000)] 
Make wxGridSizer ctors more consistent.

The old and confusing wxGridSizer(int cols, int vgap = 0, int hgap = 0) is removed and replaced with wxGridSizer(int cols, int vgap, int hgap).

New ctor overloads using wxSize for the gap parameter added.

Closes #11040.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAdd checks of wxGridSizer::Set{Cols,Rows}() arguments.
Vadim Zeitlin [Sun, 2 Aug 2009 00:48:49 +0000 (00:48 +0000)] 
Add checks of wxGridSizer::Set{Cols,Rows}() arguments.

Number of rows or columns must be positive (see #11040).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoSkip VarFileInfo block when using windres.
Vadim Zeitlin [Sun, 2 Aug 2009 00:19:55 +0000 (00:19 +0000)] 
Skip VarFileInfo block when using windres.

It doesn't seem to understand this syntax and dies with an uninformative "syntax error".

Closes #11055.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agocompilation fix: only one wxInitialize form may have default argument values. It...
Václav Slavík [Fri, 31 Jul 2009 18:48:34 +0000 (18:48 +0000)] 
compilation fix: only one wxInitialize form may have default argument values. It doesn't make sense to specify only argc>0, so removed default values and added default wxInitializer ctor.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoIn wxPropertyGridPageState::DoDelete(), clear grid's m_propHover if it matches the...
Jaakko Salli [Fri, 31 Jul 2009 14:03:42 +0000 (14:03 +0000)] 
In wxPropertyGridPageState::DoDelete(), clear grid's m_propHover if it matches the property being deleted

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoExport public wxDelegateTheme class.
Vadim Zeitlin [Fri, 31 Jul 2009 13:38:21 +0000 (13:38 +0000)] 
Export public wxDelegateTheme class.

This class is supposed to be public but wasn't accessible in shared library
build as it didn't have public visibility.

Closes #11051.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoDon't test whether wxTopLevelWindowNative is defined.
Vadim Zeitlin [Fri, 31 Jul 2009 12:17:12 +0000 (12:17 +0000)] 
Don't test whether wxTopLevelWindowNative is defined.

It seems to be defined for all ports now so there is no need to check whether it is.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoUse base class ctors in wxTopLevelWindow.
Vadim Zeitlin [Fri, 31 Jul 2009 12:17:05 +0000 (12:17 +0000)] 
Use base class ctors in wxTopLevelWindow.

This avoids the second call to Init() already called by wxTopLevelWindowNative.

Closes #11054.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAdded another hyphen in "wxObject-derived" for consistency.
Vadim Zeitlin [Thu, 30 Jul 2009 13:40:46 +0000 (13:40 +0000)] 
Added another hyphen in "wxObject-derived" for consistency.

Closes #11047 again.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoUndo accidental commit of .gitignore.
Vadim Zeitlin [Thu, 30 Jul 2009 13:38:47 +0000 (13:38 +0000)] 
Undo accidental commit of .gitignore.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoIgnore tags file.
Vadim Zeitlin [Thu, 30 Jul 2009 13:37:23 +0000 (13:37 +0000)] 
Ignore tags file.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoBe more clear about Thaw() to DoThaw() renaming.
Vadim Zeitlin [Thu, 30 Jul 2009 13:20:59 +0000 (13:20 +0000)] 
Be more clear about Thaw() to DoThaw() renaming.

Closes #11048.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoCorrect typo in wxRefCounter description.
Vadim Zeitlin [Thu, 30 Jul 2009 13:14:25 +0000 (13:14 +0000)] 
Correct typo in wxRefCounter description.

Closes #11047.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoadded wxInitialize() overload taking char**, to make use from main() easier
Václav Slavík [Thu, 30 Jul 2009 07:43:10 +0000 (07:43 +0000)] 
added wxInitialize() overload taking char**, to make use from main() easier

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoUse wxInitializer in wxEntryReal() instead of directly calling wxEntryStart() without...
Václav Slavík [Thu, 30 Jul 2009 07:09:43 +0000 (07:09 +0000)] 
Use wxInitializer in wxEntryReal() instead of directly calling wxEntryStart() without refcounting. This makes it possible to write hybrid CLI/GUI wx applications.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoFix SetToolTip(NULL) to unset the tooltip.
Michael Wetherell [Tue, 28 Jul 2009 17:48:37 +0000 (17:48 +0000)] 
Fix SetToolTip(NULL) to unset the tooltip.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoImprove the menus.
Vadim Zeitlin [Sun, 26 Jul 2009 21:10:27 +0000 (21:10 +0000)] 
Improve the menus.

Added accelerators; use radio items for mututally exclusive choices. No real changes otherwise.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoHungarian translation update.
Vadim Zeitlin [Sun, 26 Jul 2009 20:15:18 +0000 (20:15 +0000)] 
Hungarian translation update.

Submitted by Ocsvari Aron

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoSet access mode in wxRegKey::SetHkey().
Vadim Zeitlin [Sun, 26 Jul 2009 15:50:03 +0000 (15:50 +0000)] 
Set access mode in wxRegKey::SetHkey().

It was left uninitialized before resulting in the key being closed on access because the check for being opened in a mode with enough permissions failed even for Read.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoCorrect the check for wxSTOCK_FOR_BUTTON.
Vadim Zeitlin [Sun, 26 Jul 2009 00:24:20 +0000 (00:24 +0000)] 
Correct the check for wxSTOCK_FOR_BUTTON.

We need to check for equality here as wxSTOCK_FOR_BUTTON includes wxSTOCK_WITH_MNEMONIC but using the latter doesn't imply the former.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoImplement wxWindow::GetToolTipText().
Vadim Zeitlin [Sat, 25 Jul 2009 23:13:58 +0000 (23:13 +0000)] 
Implement wxWindow::GetToolTipText().

This was declared in wx/window.h but somehow never implemented.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAllow setting long version field in About dialog.
Vadim Zeitlin [Sat, 25 Jul 2009 22:53:23 +0000 (22:53 +0000)] 
Allow setting long version field in About dialog.

Long version is constructed by concatenating "Version " with the short version but can be overridden for the platforms which use it (currently MSW and OS X).

Closes 11027.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoClear targets in wxClipboard::Clear().
Vadim Zeitlin [Sat, 25 Jul 2009 22:26:23 +0000 (22:26 +0000)] 
Clear targets in wxClipboard::Clear().

This seems to fix a memory leak rendering clipboard unusable after running wxGTK applications for a long time (see #10813).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoMove #error for non-MSVC to the top of file.
Vadim Zeitlin [Sat, 25 Jul 2009 22:26:15 +0000 (22:26 +0000)] 
Move #error for non-MSVC to the top of file.

This allows to reduce indentation of the rest of it and avoid a very long #if...#else.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAdd support for stc library.
Vadim Zeitlin [Sat, 25 Jul 2009 22:26:06 +0000 (22:26 +0000)] 
Add support for stc library.

Closes #11025.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoFix harmless MSVC warning.
Vadim Zeitlin [Sat, 25 Jul 2009 17:09:37 +0000 (17:09 +0000)] 
Fix harmless MSVC warning.

It complained about converting pointer to bool implicitly in wxAppConsoleBase::IsScheduledForDestruction().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoDon't use mnemonic for Cancel button under MSW.
Vadim Zeitlin [Sat, 25 Jul 2009 16:41:33 +0000 (16:41 +0000)] 
Don't use mnemonic for Cancel button under MSW.

Native dialogs don't, so we shouldn't neither.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoUse stock id instead of duplicating its string label in CheckFit().
Vadim Zeitlin [Sat, 25 Jul 2009 16:41:25 +0000 (16:41 +0000)] 
Use stock id instead of duplicating its string label in CheckFit().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoUse wxSTOCK_FOR_BUTTON for message dialog custom labels.
Vadim Zeitlin [Sat, 25 Jul 2009 16:41:16 +0000 (16:41 +0000)] 
Use wxSTOCK_FOR_BUTTON for message dialog custom labels.

This allows to use wxID_PRINT as a custom label without getting an unwanted ellipsis at the end.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAdded wxSTOCK_FOR_BUTTON flag for wxGetStockLabel().
Vadim Zeitlin [Sat, 25 Jul 2009 16:41:05 +0000 (16:41 +0000)] 
Added wxSTOCK_FOR_BUTTON flag for wxGetStockLabel().

This allows to retrieve labels appropriate for the buttons and not menu items which currently means without trailing ellipsis.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoCorrect wxGetStockLabel() documentation.
Vadim Zeitlin [Sat, 25 Jul 2009 16:40:56 +0000 (16:40 +0000)] 
Correct wxGetStockLabel() documentation.

It was completely out of date; also separately documented wxStockLabelQueryFlag.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoUse Ok/Cancel dialog instead of Yes/No one in CheckFit().
Vadim Zeitlin [Sat, 25 Jul 2009 16:40:49 +0000 (16:40 +0000)] 
Use Ok/Cancel dialog instead of Yes/No one in CheckFit().

This has the advantage of being able to close the dialog with "Esc" and also allows us to not specify the label for the "Cancel" button at all and use the default one, which is especially important under MSW where the label returned by wxGetStockLabel(wxID_CANCEL) is actually not the same string as is used in the native message boxes (they don't define an accelerator for the cancel button).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAdd a period to the sentence end.
Vadim Zeitlin [Sat, 25 Jul 2009 16:40:42 +0000 (16:40 +0000)] 
Add a period to the sentence end.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoSet all parent frame icons for print preview frame.
Vadim Zeitlin [Sat, 25 Jul 2009 16:40:35 +0000 (16:40 +0000)] 
Set all parent frame icons for print preview frame.

Using SetIcon(GetIcon()) resulted in ugly scaled icons being used for small icons while using SetIcons(GetIcons()) correctly reuses all parent frame icons in the child one.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoimplementing checkbox using UISwitch
Stefan Csomor [Fri, 24 Jul 2009 21:20:58 +0000 (21:20 +0000)] 
implementing checkbox using UISwitch

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoRemove inexistent wx/osx/carbon/databrow.h file.
Vadim Zeitlin [Fri, 24 Jul 2009 12:35:00 +0000 (12:35 +0000)] 
Remove inexistent wx/osx/carbon/databrow.h file.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoFix harmless unused parameter warning.
Vadim Zeitlin [Fri, 24 Jul 2009 12:34:48 +0000 (12:34 +0000)] 
Fix harmless unused parameter warning.

'info' was only used with WXWIN_COMPATIBILITY_2_8 on in  wxLog::DoLogRecord().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoThis is apparently needed by Windows installer (WiX), see #10970.
Vadim Zeitlin [Thu, 23 Jul 2009 23:34:46 +0000 (23:34 +0000)] 
This is apparently needed by Windows installer (WiX), see #10970.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoThey seem to have been inversed, see #10970.
Vadim Zeitlin [Thu, 23 Jul 2009 23:28:24 +0000 (23:28 +0000)] 
They seem to have been inversed, see #10970.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAlways correctly invalid best size when bitmap changes.
Vadim Zeitlin [Thu, 23 Jul 2009 23:01:10 +0000 (23:01 +0000)] 
Always correctly invalid best size when bitmap changes.

Previously it was done only when the initial bitmap was set, not when it was
subsequently changed.

Closes #11018.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoGlobally replace _T() with wxT().
Vadim Zeitlin [Thu, 23 Jul 2009 20:30:22 +0000 (20:30 +0000)] 
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

15 years agoImplement wxGetHostName() for Windows CE.
Vadim Zeitlin [Thu, 23 Jul 2009 17:31:06 +0000 (17:31 +0000)] 
Implement wxGetHostName() for Windows CE.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoImplement wxVLogTrace() accidentally removed by recent changes.
Vadim Zeitlin [Thu, 23 Jul 2009 13:40:44 +0000 (13:40 +0000)] 
Implement wxVLogTrace() accidentally removed by recent changes.

Also change the unit test to test wxVLogTrace() as well as wxLogTrace.

Closes #11011.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoCorrect example in wxStringBufferLength documentation.
Vadim Zeitlin [Wed, 22 Jul 2009 23:23:01 +0000 (23:23 +0000)] 
Correct example in wxStringBufferLength documentation.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoadded missing files
Stefan Csomor [Wed, 22 Jul 2009 17:56:41 +0000 (17:56 +0000)] 
added missing files

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoUse wxINT32_MAX instead of LONG_MAX as the upper bound in wxDateTime::IsInStdRange().
Vadim Zeitlin [Wed, 22 Jul 2009 17:56:35 +0000 (17:56 +0000)] 
Use wxINT32_MAX instead of LONG_MAX as the upper bound in wxDateTime::IsInStdRange().

Under Debian Linux 64 bit time_t is 64 bit long but libc doesn't seem to handle values beyond 2^32
correctly, e.g. wrong results are returned from localtime() for them. And it would seem that platforms
where sizeof(long) > sizeof(time_t) might exist too so it seems safer to only work with 32 bit time_t
values until we can reliably detect platforms which support 64 bit ones.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoHandle %e in ParseFormat().
Vadim Zeitlin [Wed, 22 Jul 2009 16:44:06 +0000 (16:44 +0000)] 
Handle %e in ParseFormat().

This allows us to parse the format returned by wxLocale::GetInfo(wxLOCALE_DATE_TIME_FMT) under Linux.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAdded ParseFormat("%s") tests.
Vadim Zeitlin [Wed, 22 Jul 2009 16:41:52 +0000 (16:41 +0000)] 
Added ParseFormat("%s") tests.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoadded missing files
Stefan Csomor [Wed, 22 Jul 2009 15:32:28 +0000 (15:32 +0000)] 
added missing files

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoDon't call IAutoComplete::Init() twice for the same control as this leaks memory...
Vadim Zeitlin [Wed, 22 Jul 2009 14:30:29 +0000 (14:30 +0000)] 
Don't call IAutoComplete::Init() twice for the same control as this leaks memory, just change the strings used for completion instead (closes #10968)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoadapting to SDK 3.0
Stefan Csomor [Wed, 22 Jul 2009 09:48:54 +0000 (09:48 +0000)] 
adapting to SDK 3.0

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoSupport delayed destruction in console applications too.\n\nThis only works if there...
Vadim Zeitlin [Tue, 21 Jul 2009 14:16:44 +0000 (14:16 +0000)] 
Support delayed destruction in console applications too.\n\nThis only works if there is a running event loop but if there is one, we can have the same kind of problems with non-GUI objects such as sockets in console applications as we have with windows in GUI ones, so we must support this (see #10989).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoadded a test for white space after CDATA (see #10552)
Vadim Zeitlin [Tue, 21 Jul 2009 11:26:01 +0000 (11:26 +0000)] 
added a test for white space after CDATA (see #10552)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61487 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoInclude wx/dataobj.h from wx/clipbrd.h.
Vadim Zeitlin [Mon, 20 Jul 2009 23:54:08 +0000 (23:54 +0000)] 
Include wx/dataobj.h from wx/clipbrd.h.

This is necessary in order to define wxVector<wxDataFormat> at least when
wxVector is std::vector (as in wxUSE_STL==1 build) because vectors of
incomplete types can't be used.

Also removed inclusions of this and other unneeded headers from MSW and OS X
headers and removed a hopefully out of date comment about Mac code being wx
1.xx-based from the latter.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoPut braces around all calls to wxLogFunctions() inside an if statement.
Vadim Zeitlin [Mon, 20 Jul 2009 16:47:54 +0000 (16:47 +0000)] 
Put braces around all calls to wxLogFunctions() inside an if statement.

This suppresses all the remaining g++ -Wparentheses warnings and uses consistent style everywhere.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoFixed wxPropertyGridInterface::SetPropertyValues() documentation
Jaakko Salli [Mon, 20 Jul 2009 15:06:04 +0000 (15:06 +0000)] 
Fixed wxPropertyGridInterface::SetPropertyValues() documentation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoDispatch pending events without waiting for idle time (closes #10994).
Vadim Zeitlin [Mon, 20 Jul 2009 12:14:42 +0000 (12:14 +0000)] 
Dispatch pending events without waiting for idle time (closes #10994).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61470 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoexpand the collapsible panes contents to fill the entire pane area (see #11004)
Vadim Zeitlin [Sun, 19 Jul 2009 17:24:15 +0000 (17:24 +0000)] 
expand the collapsible panes contents to fill the entire pane area (see #11004)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61468 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoremoved wxDatePickerCtrlGeneric::SetFormat() which didn't exist but was declared...
Vadim Zeitlin [Sun, 19 Jul 2009 16:49:29 +0000 (16:49 +0000)] 
removed wxDatePickerCtrlGeneric::SetFormat() which didn't exist but was declared and documented (closes #10988)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agofix more -Wparentheses warnings after wxLog changes
Vadim Zeitlin [Sun, 19 Jul 2009 16:16:46 +0000 (16:16 +0000)] 
fix more -Wparentheses warnings after wxLog changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoDocument wxMessageOutput and related classes.
Vadim Zeitlin [Sat, 18 Jul 2009 23:48:50 +0000 (23:48 +0000)] 
Document wxMessageOutput and related classes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoFlush output stream in wxMessageOutputStderr::Output() to avoid losing any output...
Vadim Zeitlin [Sat, 18 Jul 2009 23:23:39 +0000 (23:23 +0000)] 
Flush output stream in wxMessageOutputStderr::Output() to avoid losing any output if the program crashes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAdd option FILE* parameter to wxMessageOutputStderr ctor, just as with wxLogStderr.
Vadim Zeitlin [Sat, 18 Jul 2009 23:22:51 +0000 (23:22 +0000)] 
Add option FILE* parameter to wxMessageOutputStderr ctor, just as with wxLogStderr.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agofix crash with repeated split horizontal/vertical and replace window, #11002
Paul Cornett [Sat, 18 Jul 2009 22:46:26 +0000 (22:46 +0000)] 
fix crash with repeated split horizontal/vertical and replace window, #11002

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoCorrect obsolete information: SetYesNoLabels() is not Mac-only any more.
Vadim Zeitlin [Sat, 18 Jul 2009 12:15:25 +0000 (12:15 +0000)] 
Correct obsolete information: SetYesNoLabels() is not Mac-only any more.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoDo our best to show messages logged during program startup/shutdown.
Vadim Zeitlin [Sat, 18 Jul 2009 11:56:44 +0000 (11:56 +0000)] 
Do our best to show messages logged during program startup/shutdown.

Use wxMessageOutputBest to show them even under Windows where programs usually don't have stderr at all and also don't disable log target auto-creation during shutdown as it's arguably better to leak memory (which shouldn't matter much when the program is about to exit anyhow) than to not show possibly important messages.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoNo changes, just fix a typo: wxGuiLog was used instead of wxLogGui.
Vadim Zeitlin [Sat, 18 Jul 2009 11:18:21 +0000 (11:18 +0000)] 
No changes, just fix a typo: wxGuiLog was used instead of wxLogGui.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAdded wxGTK wxBitmapComboBox::DoGetBestSize() implementation that takes bitmap size...
Jaakko Salli [Sat, 18 Jul 2009 08:33:55 +0000 (08:33 +0000)] 
Added wxGTK wxBitmapComboBox::DoGetBestSize() implementation that takes bitmap size into acccount.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAdded wxMSW wxBitmapComboBox::DoGetBestSize(), which takes bitmap size into account.
Jaakko Salli [Sat, 18 Jul 2009 07:31:09 +0000 (07:31 +0000)] 
Added wxMSW wxBitmapComboBox::DoGetBestSize(), which takes bitmap size into account.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoTypo in a bug fix I made.
Kevin Ollivier [Fri, 17 Jul 2009 18:42:15 +0000 (18:42 +0000)] 
Typo in a bug fix I made.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAdding preliminary code for C bindings, thanks to Luke A. Guest.
Kevin Ollivier [Fri, 17 Jul 2009 18:39:26 +0000 (18:39 +0000)] 
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

15 years agoAdd an underscore before the generated output names.
Kevin Ollivier [Fri, 17 Jul 2009 18:37:02 +0000 (18:37 +0000)] 
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

15 years agoOnly load/parse options when run as the main script.
Kevin Ollivier [Fri, 17 Jul 2009 18:30:24 +0000 (18:30 +0000)] 
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

15 years agoNo real changes, just made wxEventLoopManual uncopyable.
Vadim Zeitlin [Fri, 17 Jul 2009 16:55:55 +0000 (16:55 +0000)] 
No real changes, just made wxEventLoopManual uncopyable.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61442 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoNo real changes, just refactor wxEventLoop/wxApp::ProcessIdle().
Vadim Zeitlin [Fri, 17 Jul 2009 16:52:43 +0000 (16:52 +0000)] 
No real changes, just refactor wxEventLoop/wxApp::ProcessIdle().

Old code called wxApp::ProcessIdle() from wxEventLoopManualRun::Run() which called wxEventLoop::ProcessIdle() which called wxApp methods from it. In the new version wxEventLoopManualRun::Run() calls wxEventLoopManualRun::ProcessIdle() which calls wxApp::ProcessIdle() which calls other wxApp methods which seems to make more sense and also allows overriding ProcessIdle() in either wxEventLoopManual or wxApp-derived classes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoadded wxLB_NO_SB style and implementation for wxMSW (closes #10991)
Vadim Zeitlin [Fri, 17 Jul 2009 14:36:30 +0000 (14:36 +0000)] 
added wxLB_NO_SB style and implementation for wxMSW (closes #10991)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agouse the currently active event loop instead of the main one in WakeUpIdle()
Vadim Zeitlin [Fri, 17 Jul 2009 14:33:39 +0000 (14:33 +0000)] 
use the currently active event loop instead of the main one in WakeUpIdle()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agodocument wxDCMemory(wxDC*) ctor
Vadim Zeitlin [Thu, 16 Jul 2009 12:06:54 +0000 (12:06 +0000)] 
document wxDCMemory(wxDC*) ctor

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agofix log target auto creation broken by recent changes
Vadim Zeitlin [Wed, 15 Jul 2009 12:36:09 +0000 (12:36 +0000)] 
fix log target auto creation broken by recent changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoOpenVMS compile support update
Jouk Jansen [Tue, 14 Jul 2009 07:18:19 +0000 (07:18 +0000)] 
OpenVMS compile support update

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoUpdate email addresses.
Michael Wetherell [Tue, 14 Jul 2009 07:14:15 +0000 (07:14 +0000)] 
Update email addresses.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoEnsure that component levels map is initialized before it's used (closes #10990).
Vadim Zeitlin [Mon, 13 Jul 2009 13:40:31 +0000 (13:40 +0000)] 
Ensure that component levels map is initialized before it's used (closes #10990).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoMake wxLog::EnableLogging() and wxLogNull thread-specific.
Vadim Zeitlin [Mon, 13 Jul 2009 13:21:52 +0000 (13:21 +0000)] 
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

15 years agoAdd support for thread-specific log targets.
Vadim Zeitlin [Mon, 13 Jul 2009 11:09:26 +0000 (11:09 +0000)] 
Add support for thread-specific log targets.

A worker thread can now have its own log target which will be used directly
by the log functions instead of buffering log output in the main thread; the
GUI thread in the thread sample shows how it works.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoOpenVMS compile support update
Jouk Jansen [Mon, 13 Jul 2009 06:33:58 +0000 (06:33 +0000)] 
OpenVMS compile support update

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoMake critical sections initialization really thread-safe.
Vadim Zeitlin [Sun, 12 Jul 2009 17:22:50 +0000 (17:22 +0000)] 
Make critical sections initialization really thread-safe.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoRemoved another occurrence of previous log critical section (should have been
Vadim Zeitlin [Sun, 12 Jul 2009 17:10:30 +0000 (17:10 +0000)] 
Removed another occurrence of previous log critical section (should have been
part of r61417).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoRemoved critical section protecting last repeat counter.
Vadim Zeitlin [Sun, 12 Jul 2009 17:09:33 +0000 (17:09 +0000)] 
Removed critical section protecting last repeat counter.

It is not needed any longer now that this is only used by
wxLog::OnLogInMainThreade() which is only called from the main thread.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoMade wxLogXXX() functions thread-safe.
Vadim Zeitlin [Sun, 12 Jul 2009 17:02:30 +0000 (17:02 +0000)] 
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

15 years agoAdded wxVector::swap().
Vadim Zeitlin [Sun, 12 Jul 2009 17:00:29 +0000 (17:00 +0000)] 
Added wxVector::swap().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

15 years agoAdd component-level filtering to wxLog.
Vadim Zeitlin [Sun, 12 Jul 2009 14:56:23 +0000 (14:56 +0000)] 
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