Commit Graph

60589 Commits

Author SHA1 Message Date
Artur Wieczorek
8aad22b3e2 Update documentation regarding alpha support in wxGenericColourDialog. 2015-11-02 23:19:36 +01:00
Artur Wieczorek
9409b7eb80 Don't use directly wxColourData data members in wxGenericColourDialog.
wxColourData data members are public for backwards compatibility only and shouldn't be used directly.
2015-11-02 23:19:33 +01:00
Artur Wieczorek
02c03096b6 Fix initialization of custom colours for generic colour dialogs in dialogs sample.
Use number of custom colours taken from wxColourData instead of using explicit numeric value.
2015-11-02 23:19:30 +01:00
Artur Wieczorek
8fee6a9a2b Modify dialogs sample to present also generic colour dialog with alpha support.
Added separate submenu and menu items to show generic colour dialogs with opacity control enabled/disabled.
2015-11-02 23:19:26 +01:00
Artur Wieczorek
fa7c2de28d Add slider labels in wxGenericColourDialog. 2015-11-02 23:19:23 +01:00
Artur Wieczorek
880ad7f6f8 Add alpha channel support to wxGenericColourDialog.
Added opacity slider and custom colours (with alpha) previews (implemented with wxStaticBitmap controls). This feature is controlled by wxColourData::GetChooseAlpha().
2015-11-02 23:19:19 +01:00
Artur Wieczorek
809a07a65d Add opacity control feature to wxColourData.
Added internal flag (with corresponding accessors) which purpose is to enable/disable modifying the opacity of the colours in colour dialogs.
2015-11-02 23:19:16 +01:00
Artur Wieczorek
3dc013920b Fix type of member variable in wxGenericColourDialog
Variable to hold the size should be of type wxSize, not wxPoint.
2015-11-02 23:19:12 +01:00
Artur Wieczorek
7399fb3428 Optimize wxGenericColourDialog
Variable to hold the size of the custom colour box doesn't need to be a member variable since it's used only locally in wxGenericColourDialog::CalculateMeasurements.
2015-11-02 23:19:09 +01:00
Vadim Zeitlin
6af5329710 Fix waiting for threads in MSW in presence of events
We need to handle WAIT_OBJECT_0+2 value which can be returned by
WaitForThread() since 6c40531fb7 as it now waits
for two objects and not just one, failure to do this resulted in an endless
stream of asserts if any Windows messages were pending when we started waiting
for the thread.
2015-11-02 18:17:03 +01:00
Paul Cornett
3e75b231b0 fix GdkCursor memory leaks 2015-11-02 08:50:39 -08:00
Paul Cornett
9f8deb74a7 avoid gdk_cursor_new(), deprecated in GTK+ 3.16 2015-11-02 08:28:18 -08:00
Paul Cornett
ed817dd366 Fix drawing checkbox and radiobutton in checked state with GTK+ >= 3.14, see #17240 2015-11-01 19:46:01 -08:00
Bryan Petty
57c9a120b7 Fixed a few more Doxygen syntax warnings. 2015-11-01 11:30:15 -07:00
Bryan Petty
18b4bc7dd3 Fixed a few Doxygen syntax errors. 2015-10-31 14:37:10 -06:00
Vadim Zeitlin
98176fd7ac Really fix OS version detection for Windows 8.1 and later
Fix several problems in d61b52a60e.

See #15321.

Closes https://github.com/wxWidgets/wxWidgets/pull/114
2015-10-31 18:08:47 +01:00
Bryan Petty
0b2263c25d Updated links and mailing list addresses. 2015-10-30 20:06:09 -06:00
Vadim Zeitlin
d61b52a60e Use RtlGetVersion() to retrieve the real OS version in wxMSW
Unlike GetVersionEx(), this function still returns the real version and not
the fiction concocted by the OS for each program depending on its manifest.

Also use OSVERSIONINFOEXW instead of OSVERSIONINFOEX as RtlGetVersion() only
exists in the Unicode version.

Closes #15321.
2015-10-30 23:20:47 +01:00
Bryan Petty
89b0692fff Updated release instructions with requirements. 2015-10-30 00:34:44 -06:00
Bryan Petty
83cb751c46 Converted wxGTK overview docs to Markdown. 2015-10-29 23:20:31 -06:00
Iwbnwif Yiw
f20f33eb0d Improve documentation of wxXmlNode
Explain the different node types better, document the node ownership rules
explicitly and provide an example of creating an XML document.
2015-10-28 17:44:09 +01:00
Hallgeir Holien
ded52d0407 Translated missing parts and fixed translations 2015-10-27 22:42:41 +01:00
Vadim Zeitlin
04a784dfd3 Hide wxSlider labels too when it's hidden in wxOSX
Derive wxSlider from wxCompositeWindow to ensure that Show() (and other
methods) affect the slider labels as well.

Closes #2388.
2015-10-25 18:47:29 +01:00
Vadim Zeitlin
ce3dab46c1 Remove unused headers from wx/osx/slider.h
wx/control.h is already included from wx/slider.h so including it from here is
useless and including wx/slider.h is even worse as it's very confusing because
this header itself is already included from wx/slider.h.

No real changes.
2015-10-25 18:36:39 +01:00
Vadim Zeitlin
065c7b34eb Remove unused wx/osx/treectrl.h
This file is not included anywhere and doesn't seem to be used.
2015-10-25 18:33:06 +01:00
Vadim Zeitlin
a5e36d3124 Remove unused png{hand,read}.h files from wxOSX
These files don't seem to be used anywhere.
2015-10-25 18:31:33 +01:00
Vadim Zeitlin
98bd4f1936 Remove unused helpxxxx.{h,cpp} stub files from wxOSX
These files seem to be left overs from a long, long time ago.
2015-10-25 18:29:47 +01:00
Vadim Zeitlin
3f33ecc773 No changes, just remove redundant "inline" from wxOSX headers
There is no need for them in the methods declared in the class declaration
anyhow, so just remove them.

No real changes.
2015-10-25 18:20:32 +01:00
Vadim Zeitlin
e9b379fe2a Fix TAB navigation inside wxStaticBox in wxOSX
Derive wxStaticBox from wxStaticBoxBase for consistency with the other ports
and to make it derive from wxNavigationEnabled<>, which is necessary for TAB
navigation to work.

Closes #3842.
2015-10-25 18:13:59 +01:00
Eran Ifrah
3ec4b5cc22 Avoid fold margin corruption in wxStyledTextCtrl under MSW
Don't use the content scale factor when creating bitmaps in InitPixMap(), this
is wrong and results in badly sized bitmaps at least under MSW (and possibly
GTK too).

Closes #17069.
2015-10-25 18:01:25 +01:00
Tim Stahlhut
fb5d1a002c Fixes for wxQt build under Cygwin
Include the missing headers, notable QtGui/QFont from wx/fontutil.h which uses
a QFont object.

Closes #16750.
2015-10-25 18:00:05 +01:00
Vadim Zeitlin
db966da330 Use explicit dllexport attribute for g++ 4.7 and later
The bug that resulted in creating huge DLLs that took inordinate amounts of
memory and time to link with g++ 4.5 has been fixed in 4.7, so don't export
everything when using it, as this results in even smaller DLLs.

The situation with 4.6 is unknown, so leave behaviour with it unchanged.

See 49d2c0adc3
2015-10-25 13:42:23 +01:00
Vadim Zeitlin
1c5c28411b Don't check for LVS_EX_LABELTIP being defined, it always is
This constant is defined in wx/msw/missing.h if it's not defined, so testing
for whether it's defined here doesn't make sense -- and the comment about not
using it under Windows CE which is not supported any more anyhow doesn't make
sense neither.
2015-10-25 13:37:41 +01:00
Vadim Zeitlin
9c1bc3c019 Define LVS_EX_DOUBLEBUFFER ourselves if SDK headers don't do it
This should fix compilation with MinGW after the changes of
2a6e411887 which started using this style.

See #17177.
2015-10-25 13:36:25 +01:00
Vadim Zeitlin
91e5a8de86 Document that wxListCtrl::SetItemState() sends events
This is an exception to the usual rule, so should be documented, do it for
both this method itself and wxListView::Select() using it.
2015-10-24 23:50:47 +02:00
Vadim Zeitlin
50ae059a67 Insert missing "@name" tags in wxTreeListCtrl documentation
This should fix the appearance of the different sections in the generated
documentation.
2015-10-23 19:06:47 +02:00
Vadim Zeitlin
5e5cdf5393 Document that wxToolBar strips mnemonics from labels
After the previous commit all 3 major platforms should be doing it.
2015-10-23 19:00:17 +02:00
Andreas Falkenhahn
82060f816a Strip mnemonics from the label in wxGTK wxToolBar
For consistency with the other platforms, don't show mnemonics in the toolbar
label even if they're defined in the label string.
2015-10-23 18:57:36 +02:00
Andreas Falkenhahn
d45ba8ce62 Add wxTE_{RIGHT,CENTER} support for multiline wxTextCtrl in wxOSX
Just use -[NSTextView setAlignment].

Closes #13702.
2015-10-22 00:06:45 +02:00
Vadim Zeitlin
165842423c Don't mention that wxVariant doesn't derive from wxObject
Because it still does, only wxVariantData does not.

Closes #17217.
2015-10-22 00:02:59 +02:00
Vadim Zeitlin
876e0501d8 Remove wxString from the list of ref-counted classes
This is not the case any more since 3.0 and it actually never used the same
ref-counting model as the classes described in the ref-counting overview
anyhow.

Closes #17216.
2015-10-21 23:51:12 +02:00
Vadim Zeitlin
ef1db7acda Create native buttons without any label in wxOSX/Cocoa
Since the changes of db9baf9aa5 the label wasn't
explicitly reset to be empty on wxWindow creation because it was assumed it
would already be empty if not explicitly set, but this turned out to be false
for the controls using NSButton which (very helpfully) uses "Button" as its
label by default and so kept this useless label if it wasn't explicitly
overridden.

Fix this by explicitly resetting the NSButton title after creating it, to
ensure consistency between the real state of the control and what wxWidgets
thinks it is.

Closes #17152.
2015-10-21 23:49:13 +02:00
Lauri Nurmi
39db6c42bf Clarify the description of wxStringTokenizer::GetString()
Closes https://github.com/wxWidgets/wxWidgets/pull/119
2015-10-21 23:48:24 +02:00
Wolfgang Stoeggl
8437c6a443 German translations update. 2015-10-21 23:46:29 +02:00
Iwbnwif Yiw
2c43b5c2d9 Use wxStdDialogButtonSizer in generic wxProgressDialog
This improves the placement of the buttons by making it consistent with the
platform conventions and also fixes a regression in button placement
introduced in 2f3d0d9629

Closes #17213.
2015-10-20 13:14:01 +02:00
Vadim Zeitlin
0724bc9a5a Fix best size for non-left aligned wxStaticText in wxGTK2
Since the hack for making the alignment work with GTK+ 2 done in
4ae21c7f1a, the best size was not computed
correctly for the right aligned or centered labels and the minimum possible
size was returned instead.

Fix this by temporarily disabling ellipsization during the best size
computation to ensure that the same best size is computed for left and right
aligned labels.

See #12539.
2015-10-18 22:15:40 +02:00
Vadim Zeitlin
5683904c2a Fix wxLocale::IsOk() in case of initialization failure
Ever since 700256bbdb IsOk() returned true even
if setting the locale actually failed because the old locale was still set to
the null value.

Apply the minimal possible fix for this and just reset the old locale pointer
to null if initializing the locale fails to make sure IsOk() doesn't return
true in this case.
2015-10-18 22:04:58 +02:00
Paul Cornett
c4bf905cd5 Remove special-case rectangle drawing for width 2 pen
Avoid missing corner pixel with width 2 pen when using rounded
join on X11 by simply not using rounded join with small pens
2015-10-18 10:53:49 -07:00
Vadim Zeitlin
bc4382a9dd Run wxListbook::OnSize() after creation under all platforms
This was previously done only for wxMSW but is also necessary for wxOSX to
ensure that the icons in the list view part are arranged and shown correctly
initially, otherwise the selected item could be only partially visible.
2015-10-18 03:55:32 +02:00
Vadim Zeitlin
cff9316e57 Ensure that the selected item is fully visible in wxListbook
Call EnsureVisible() after re-arranging the items as otherwise the current
item could be only partly visible, at least with wxMSW wxListCtrl.
2015-10-17 17:25:37 +02:00