Commit Graph

2902 Commits

Author SHA1 Message Date
Vadim Zeitlin
5e5d872150 Document wxDateTime comparison operators behaviour
Mention that they intentionally can't be used with invalid objects except for
the exact comparison.
2016-04-12 20:51:09 +02:00
orbitcowboy
e3f1423632 Fix typos in comments in C++ code
No real changes.

Closes https://github.com/wxWidgets/wxWidgets/pull/268
2016-04-12 17:15:23 +02:00
Vadim Zeitlin
d8b92580bc Remove @since annotations for new Scintilla GetDirectXXX() methods
This partially undoes 0a3057b83c which wrongly
modified the generated interface/wx/stc/stc.h file, as these changes were lost
after regenerating it again.

Unfortunately it doesn't seem possible to have @since annotations for the
Scintilla methods currently, ideally the generator script should be modified
to allow this, somehow.

See #17481.
2016-04-03 17:44:54 +02:00
New Pagodi
0a3057b83c Add GetDirect{Function,Pointer}() methods to wxStyledTextCtrl
These methods can be useful when working with dynamic lexers.

Closes #17481.
2016-04-03 15:50:21 +02:00
New Pagodi
a6e249ea1a Add support for loading external lexers to wxStyledTextCtrl
Implement Scintilla DynamicLibraryImpl and generate LoadLexerLibrary() and
GetLexerLanguage().

Closes #17480.
2016-04-03 15:47:48 +02:00
Iwbnwif Yiw
8006c4fed1 Improve wxDataViewModel::Compare() documentation
Document the function parameters and return value.

Closes #17477.
2016-04-03 15:27:28 +02:00
Iwbnwif Yiw
1765794015 Fix wxRegEx example in the documentation
Fix typos and make the code actually compile.

Closes #17475.
2016-04-02 18:52:23 +02:00
Vadim Zeitlin
8baaa652ef Merge branch 'dvc': miscellaneous wxDataViewCtrl-related fixes 2016-04-02 01:09:06 +02:00
Vadim Zeitlin
4e4286f0e2 Merge branch 'utf8-stdstring-interop' of https://github.com/minoki/wxWidgets
Make it easier to interoperate with the code using UTF-8-encoded std::strings.

Closes #17461.
2016-03-28 21:44:54 +02:00
Vadim Zeitlin
d3cb252c96 Document that wxScreenDC corresponds to the entire virtual screen
And not just the primary monitor.

See #13279.
2016-03-28 21:41:10 +02:00
Vadim Zeitlin
2567f4222d Don't characterize GTK+ 2.18 as being "recent" in the documentation
2009 was quite some a long time ago.

See #17464.
2016-03-28 21:30:57 +02:00
pb101
e806647e7f Document that wxInfoBar close button is not used with custom ones
Don't say that wxInfoBar always has a close button because this is not the
case if any custom buttons are present.

Closes #17464.
2016-03-28 21:29:09 +02:00
Iwbnwif Yiw
5e4aacd3b7 Don't document wxDropFilesEvent as being MSW-only
This is not the case any more since 2.8.10.

Closes #17463.
2016-03-28 21:25:56 +02:00
Lauri Nurmi
55d77f271e Don't call different variants of wxString methods overloads
The function such as fn_str(), wc_str(), and ToAscii() have
configuration-dependent return types, yet different variants were claimed to
be member function overloads. This is incorrect, as a member function cannot
be overloaded only by its return type and, for any given platform/build
variant only one of them is available.

Closes https://github.com/wxWidgets/wxWidgets/pull/260
2016-03-28 21:25:56 +02:00
ARATA Mizuki
70ddab243e Add wxMBConv parameter to wxString::ToStdString
See #17461.
2016-03-25 16:23:47 +09:00
ARATA Mizuki
81e6638585 Add overloads of wxString::FromUTF8/FromUTF8Unchecked taking a std::string
See #17461.
2016-03-25 16:23:47 +09:00
Artur Wieczorek
d6afb66388 Implemented wxCairoRenderer::CreateSubBitmap method. 2016-03-24 22:24:53 +01:00
Vadim Zeitlin
aa9e7d3326 Don't make wxDataViewCtrl::ExpandAncestors() virtual
This method has a common implementation and is not supposed to be overridden.
2016-03-22 21:14:10 +01:00
Vadim Zeitlin
ccac9d0557 Enable wxStackWalker in MinGW64 builds
This class can be used even without SEH, provided debug help API is available,
so just make wxUSE_STACKWALKER dependent on wxUSE_DBGHELP instead of
unconditionally disabling it if SEH support is not available.
2016-03-15 20:11:10 +01:00
Vadim Zeitlin
fcd5284aed Document wxGridTableMessage and wxGridStringTable
Add at least minimal documentation for these classes.

Closes #4181.
2016-03-12 18:53:07 +01:00
Kinaou Hervé
2020ac3db3 Document more wxAuiManager public methods
Add documentation for the following functions:

 - CalculateHintRect
 - CanDockPanel
 - ClosePane
 - CreateFloatingFrame
 - DrawHintRect
 - MaximizePane
 - OnRender
 - OnPaneButton
 - RestorePane
 - RestoreMaximizedPane
 - StartPaneDrag

Closes #15018.
2016-03-12 18:39:58 +01:00
Vadim Zeitlin
f4fd4b8bde Merge with master to get bakefile changes 2016-03-05 17:46:36 +01:00
Troels Knakkergaard
c9a3a23e5a Add wxHtmlPrintout::SetMargins(wxPageSetupDialogData) overload
Make it simpler to set the user-configured margins.

Closes #16872.
2016-03-05 03:33:08 +01:00
Troels Knakkergaard
cda7209101 Add wxFileType::GetExpandedCommand()
This new method allows to get the command expanded with the given file name
for commands other than "Open" and "Print".

Closes #17367.
2016-03-05 03:09:59 +01:00
Vadim Zeitlin
da7388c9c8 Make wxLogInfo() work even without wxLog::SetVerbose()
It's confusing that wxLogInfo() and wxLogVerbose() are exactly the same and
the former, and not only the latter, doesn't do anything unless SetVerbose()
had been called, even if the log level is wxLOG_Info or higher.

Fix this by checking for GetVerbose() in wxLogVerbose() only and making
wxLogInfo() check the log level only. This makes it very similar to
wxLogMessage() but this is not such a bad thing.

Also improve wxLogVerbose() documentation.
2016-03-04 15:17:35 +01:00
John Roberts
148dc11f88 Fix wxFLP_DEFAULT_STYLE documentation
Document that it includes wxFLP_USE_TEXTCTRL under OS X too, not just under
MSW as previously stated.

Closes #17421.
2016-03-04 14:53:30 +01:00
Vadim Zeitlin
80664c28c8 Discourage the use of wxTAB_TRAVERSAL in the documentation
This style should almost never be used in the application code, it's mostly an
implementation detail (but not quite as it might make sense to turn it off for
some wxPanel, at least in theory).
2016-03-03 23:43:46 +01:00
Vadim Zeitlin
aa76606287 Merge support for OS and toolkit micro versions
Closes https://github.com/wxWidgets/wxWidgets/pull/234
2016-03-03 23:32:44 +01:00
Paul Kulchenko
b5ac178789 Upgrade scintilla component to 3.6.3. 2016-03-03 09:49:53 -08:00
David Hart
6cd442fbaf Fix wxNativeWindow::Create() documentation
Add a missing semicolon after the preceding declaration.

Closes #17411.
2016-03-02 23:33:01 +01:00
ARATA Mizuki
89745e83f3 Fix signatures of wxStringBuffer / wxStringBufferLength constructors in interface/wx/string.h
There were extra 'const's in the interface file.
2016-03-01 16:01:39 +09:00
Tobias Taschner
3bdb4c4b21 Add micro version to wxCheckOsVersion(). 2016-02-29 10:05:51 +01:00
Dimitri Schoolwerth
1e78bf639e Add micro version to toolkit version functions
Support micro versions in wxAppTraits::GetToolkitVersion and
wxPlatformInfo functions related to toolkit versions.
2016-02-29 10:05:43 +01:00
Dimitri Schoolwerth
ea439c278b Add OS micro version information to wxPlatformInfo
Add GetOSMicroVersion and add other micro version references in an
unobtrusive way: don't change wxPlatformInfo's constructor and use
default parameters for CheckOSVersion and SetOSVersion. The only change
that could affect user code is the changed number of parameters for
DoCheckVersion but because that is a protected function it's less likely
to be a problem.
2016-02-29 10:05:34 +01:00
Dimitri Schoolwerth
427750e744 Detect micro version for Unix-like systems in wxGetOsVersion
Check the result of running uname -r for a micro version and use it if
available, otherwise return a micro version of 0.
2016-02-29 09:58:15 +01:00
Dimitri Schoolwerth
b1a9c6e79e Add a micro version parameter to wxGetOsVersion
In addition to getting a major and minor OS version allow a micro
version to be retrieved. In case of running on e.g. OS X 10.10.3 this
allows the "3" to be retrieved again.
2016-02-29 09:58:15 +01:00
John Roberts
e14b589e8e Add support for right-aligned checkboxes to wxOSX
Honour wxALIGN_RIGHT style.

Closes #17380.
2016-02-27 16:32:37 +01:00
Vadim Zeitlin
5b2724c900 Fix return type of wxListCtrl::EnableCheckboxes() in the documentation
It returns bool, not void.
2016-02-26 20:08:20 +01:00
Vadim Zeitlin
1c9a4694ff Merge OpenGL API changes and better modern OpenGL support
Closes https://github.com/wxWidgets/wxWidgets/pull/227
2016-02-24 20:15:35 +01:00
Igor Korot
a216806c99 Allow modifying wxComboBox from its CLOSEUP handler with wxGTK2
Doing this resulted in GTK errors about invalid iterators, so postpone the
generation of the CLOSEUP event for slightly later to allow changing the
combobox contents from it with GTK+ 2 (this is not necessary with GTK+ 3).

Also add a demon of a dynamic combobox, creating and destroying its items on
the fly, to the widgets sample.

Closes #17223.
2016-02-24 20:07:34 +01:00
Vadim Zeitlin
798ee9da83 Remove copy-paste error in wxBase64Encode() documentation
This was apparently accidentally copied from the other overload but doesn't
make sense for this one.
2016-02-23 17:17:30 +01:00
Tobias Taschner
85bbcff9cc Remove wxOSX/Carbon only wxFileName methods from docs.
The carbon only implementation was removed in 5ba67c67e4.
2016-02-23 13:15:07 +01:00
Tobias Taschner
baa47dc435 Drop Mac prefix on remaining instances of OS X in docs.
This should have been part of df33c0c491 but somehow where missed.
2016-02-23 13:05:44 +01:00
Tobias Taschner
d065aa85ad Update wxListCtrl::EnableCheckboxes documentation.
Method is no longer MSW only.
2016-02-23 12:57:17 +01:00
Tobias Taschner
ebeb9eab5b Add wx prefix in wxNotificationMessage event docs. 2016-02-23 11:36:37 +01:00
Tobias Taschner
994b9b1486 Update AUI docs on native art providers.
Include information about native toolbar and tab art in wxMSW.
2016-02-23 11:29:52 +01:00
Vadim Zeitlin
fea37f4984 Don't assert when creating wxComboBox with wxCB_SORT in wxOSX
Partially undo the changes of 8e7262fca7: using
wxLogWarning() was wrong, but using asserts is not really great neither as it
results in crashes, and prevents from using, some samples.

Also at least document that this style is not supported.

See #12419.
2016-02-23 01:32:46 +01:00
Manuel Martin
bdc95f5766 Improve wxGLCanvas to be more type safe and better support modern OpenGL
Add wxGLAttribsBase, wxGLAttributes and wxGLContextAttrs replacing the old
untyped "int attributes[]".

Don't use global object for creating OpenGL > 3.0 contexts.

Closes #16909.
2016-02-23 00:32:54 +01:00
Vadim Zeitlin
f6de4903d5 Document that wxALIGN_RIGHT doesn't work with wxCheckBox under OS X
See #17380.
2016-02-21 17:02:22 +01:00
Vadim Zeitlin
a11456c078 Add wxWhateverWorksConv and use it for file names under Unix
This ensures that we can create output files with Unicode names even when
they're not representable in the current locale encoding, notably when the
current locale has never been changed and is still the default "C" one, not
supporting anything else other than 7 bit ASCII.

Credits for the new class name go to Woody Allen.
2016-02-19 02:52:43 +01:00