Robert Roebling
6959763942
Implemented window coord mirroring for RTL. This
...
is only implemented for *setting* the coordinates
which is enough for wxSizers and 99% or other
dialogs to work.
Also reversed the meaning of wxStaticText alignment
in RTL mode. It is possible that later versions
of GTK actually do that themselves. (?)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-10 19:39:22 +00:00
Robert Roebling
a31bb94425
Remove direct access to GtlPizza's offset
...
variable. That way, we can change the
underlying meaning for RTL windowing
mirroring without wxWindow knowing it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-10 14:52:56 +00:00
Vadim Zeitlin
aea95b1c3a
removed overloaded virtual InitWith() methods, keep just a single InitRGBA()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-10 02:00:24 +00:00
Paul Cornett
d90e6104e9
remove unused GtkPizza members scroll_[xy]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-09 18:37:24 +00:00
Robert Roebling
fe8635a7e7
Applied wxGauge:Pulse() patch.
...
[ 1551409 ] Support for indeterminate mode gauges
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-09 13:36:54 +00:00
Paul Cornett
8a378a9e16
add emission hook from RemoveIdleSource (was RemoveIdleTag); minor cleanup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-09 04:53:02 +00:00
Paul Cornett
4bc4bae185
remove unneeded DoGetClientSize
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-09 02:43:31 +00:00
Robert Roebling
f6f1f4adbf
Sadly, direct access to SetUpDC is required for the
...
native custom rendering of wxDataViewCells
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-08 09:45:10 +00:00
Paul Cornett
b5e31cc8e2
GtkOnSize parameters aren't useful
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-07 16:06:47 +00:00
Robert Roebling
64321998df
Applied FRM's patch [ 1553958 ] Fix for invalid cast from
...
GtkFileChooserButton to GtkButton
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-07 13:24:08 +00:00
Robert Roebling
b7ea712cc2
Commit Carsten Fuchs' patch for separating wxGLCanvas
...
and wxGLContext on GTK and MSW.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-06 13:31:20 +00:00
Vadim Zeitlin
d3c7fc996a
mark all dtors which are virtual because base class dtor is virtual explicitly virtual themselves
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-05 20:47:48 +00:00
Vadim Zeitlin
978af86426
merge of RTL changes (with many modifications) from SOC2006_RTL branch
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-04 13:35:13 +00:00
Robert Roebling
ee0a94cfc2
Commited FRM's stockitem patch (empty stock items).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-03 12:23:04 +00:00
Vadim Zeitlin
8312c461b8
always let GtkTextView have mouse release events to avoid assertion failures in gtk_text_view_start_selection_drag()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-01 22:23:51 +00:00
Vadim Zeitlin
9768729112
added GTKProcessEvent() to allow controlling whether we leave or not events for the native widgets
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40953 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-01 22:20:05 +00:00
Vadim Zeitlin
2f2620215e
call GTKUpdateCursor() from SetCursor()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-01 21:44:22 +00:00
Robert Roebling
ec1e0c6634
Implement wxSetCusorEvent better than before.
...
This also makes wxAUI work nicely.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-01 15:32:19 +00:00
Paul Cornett
0416c41834
header includes cleanup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-30 05:55:56 +00:00
Paul Cornett
4f13428c4f
correct idle tag type; remove unneeded includes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-26 18:36:19 +00:00
Vadim Zeitlin
2d97237dac
override OnAssertFailure(), not OnAssert() which is not called by wxOnAssert() any longer
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 22:48:07 +00:00
Vadim Zeitlin
5478f2210d
changed GTKCallbackCommonPrologue() to return -1 in addition to true and false to allow returning immediately with true return code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 13:22:32 +00:00
Vadim Zeitlin
ef5c70f96f
Many changes:
...
- Introduced GTKGetWindow() which returns all GdkWindows associated with the
given wxWindow
- Renamed IsOwnGtkWindow() to GTKIsOwnWindow() to avoid confusion with the old
virtual function (the new one is non-virtual and is implemented in terms of
GTKGetWindow())
- Refactored/simplified event handlers code in gtk/window.cpp
- Fixed some header guards names (__GTKFOO__ -> _WX_GTK_FOO_H_)
- Added GTKUpdateCursor() which sets the current cursor for all windows
returned by GTKGetWindow()
- Factored out code from many different classes in wxControl::OnInternalIdle()
which now updates the cursor, checks for internal focus and sends update UI
events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 12:59:28 +00:00
Paul Cornett
f9562c6b2d
correct access for virtual
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-24 04:41:29 +00:00
Robert Roebling
00e4ffbc23
Readded close button to wxMiniFrame and use the
...
close XBM similar to the one used in Anjuta's
docking library.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-23 21:07:33 +00:00
Vadim Zeitlin
0d91b2342a
respect the encoding of the text style and not only the global control font encoding when inserting the text in the control
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-23 13:33:04 +00:00
Robert Roebling
7317857df7
Add the new showOnIdle code to various other
...
widget which override OnInternalIdle().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-22 21:50:28 +00:00
Robert Roebling
f46ad98f0d
Added intermediate state (m_showOnIdle) indicating that
...
time must be given to a window to get placed correctly
before it is shown. The avoids jumping windows.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40745 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-22 12:26:22 +00:00
Vadim Zeitlin
2158f4d798
moved all wxDialog event handlers to wxDialogBase to avoid code duplication
...
(sixplication?) among ports; as a side effect added public wxDialog methods to
wxDialogBase as well and moved EndDialog() (previously implemented by wxMSW,
wxMotif, wxMac and wxCocoa but not the other ports) to wxDialogBase too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-19 22:56:11 +00:00
Vadim Zeitlin
0be2741893
centralized Esc key handling for closing the dialogs in wxDialogBase:
...
1. added wxDialogBase::OnCharHook() and removed this event handler from
all the other ports
2. also removed ad hoc code doing the same thing in wxMSW (MSWProcessMessage()
override in wxDialog) and wxGTK (in gtk_window_key_press_callback())
3. reimplemented EmulateButtonClickIfPresent() portably and also moved it
to wxDialogBase from wxMSW wxDialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40686 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-19 22:36:10 +00:00
Paul Cornett
772b376785
simplify coordinate transformation code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-19 21:30:06 +00:00
Vadim Zeitlin
22c9b21132
refactoring/simplification of code dealing with scrollbars and their events
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-19 10:53:37 +00:00
Paul Cornett
5ac1d44aa4
Combine two wxImage-to-pixmap creation functions into one.
...
Use consistent method for creating mono bitmap in wxBitmap and wxMask.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-14 06:26:35 +00:00
Václav Slavík
be2001fedd
moved duplicated wxRegionContain definitions to wx/region.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-10 14:26:55 +00:00
Václav Slavík
71451a6d16
moved wxIcon implementation for ports where it's identical to wxBitmap to generic/icon.{cpp,h} so that the same code is not duplicated several times
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-09 17:59:30 +00:00
Mart Raudsepp
07e497070e
Initial wxTLW::(Can)SetTransparent support for wxGTK. The return value of SetTransparent is currently very
...
optimistic and doesn't use the EWMH composite manager spec update proposal (_NET_WM_CM_Sn) yet. This is on purpose
until the proposal appears in EWMH new version draft and it gets used by more composite managers.
See http://www.nabble.com/Interaction-between-applications-and-compositing-managers-t1389248.html and in the
future http://standards.freedesktop.org/wm-spec/latest/ for details.
Some code reordering is probably in order (helper function to utilsx11?) and testing on non-traditional X servers
appreciated.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-19 17:18:12 +00:00
Vadim Zeitlin
a10a31ce56
wxRadioBoxButtonsInfoList should be exported (should fix cygwin build link)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-16 18:38:11 +00:00
Václav Slavík
1029169f08
reformatted to fit on standard terminal
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-15 12:25:48 +00:00
Vadim Zeitlin
a65ffcb229
use wxBoxSizer in wxPickerBase instead of doing the layout manually + other picker controls fixes (patch 1513042)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-27 14:07:45 +00:00
Vadim Zeitlin
58772e4992
picker controls improvements: fixes to valid paths recognition and event generation under GTK (patch 1510064)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-26 01:04:44 +00:00
Vadim Zeitlin
ef33382e43
deselect all items when SetSelection(-1) is called (patch 1506943)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-26 00:46:32 +00:00
Paul Cornett
b85229d15b
remove redundant GdkBitmap representation from wxBitmap
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-19 18:30:13 +00:00
Paul Cornett
0006b9a540
remove obsolete color cube and image to bitmap code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-19 16:14:21 +00:00
Paul Cornett
4f558e23ff
build fix for older gtk2, second attempt
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-18 03:37:24 +00:00
Paul Cornett
c668531784
1. more accurate conversion from 8-bit wx color to 16-bit GDK color
...
2. eliminate possiblity of wxColour RGB values changing depending on colormap
3. don't allow non-const pointer access to internal GdkColor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-15 19:29:08 +00:00
Vadim Zeitlin
dc26eeb36a
make it possible to associate context help text with individual radiobox items
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-11 21:13:13 +00:00
Paul Cornett
c757b5fee0
correct access for virtuals, unneeded includes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-03 19:20:23 +00:00
Paul Cornett
8ea30e3603
don't generate a scroll event when setting scroll position from scroll event handler
...
fix setting scroll position from thumb release event handler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-03 18:35:29 +00:00
Michael Wetherell
556151f5ff
Commit pickers-fixes.patch added to 1472329 (Francesco Montorsi)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-02 12:00:30 +00:00
Vadim Zeitlin
ec376c8fd9
added wx{Colour|File|Dir|Font}PickerCtrl (patch 1472329 by Francesco)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-31 23:57:54 +00:00