Commit Graph

2093 Commits

Author SHA1 Message Date
Paul Cornett
93344f258a add wxUSE_DRAGIMAGE wrapper
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 19:00:35 +00:00
Paul Cornett
68d9be05da build fix for wxUSE_DRAGIMAGE==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 18:48:56 +00:00
Robert Roebling
90ac8b5005 Apply [ 1713345 ] combobox: cmd accelerators shouldn't steal editing hotkeys
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 13:15:47 +00:00
Robert Roebling
04ab8b6ddf Moved all the coordinate system calculation to wxDCBase
and thus removed all the duplicated code in all wxDC
   classes.
  Problematic is that wxSVGFileDC and wxPostscriptDC inherit
   from wxDC and therefore include platform specific code
   (also before this change) so I chose to override all
   SetLogicalOrigin() etc. methods in these classes and
   call their wxDCBase methods thereby circumventing the
   platform dependent code.
  I'm afraid the Mac code will require updating, too.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-02 11:05:45 +00:00
Robert Roebling
621b83d9b3 Made device to logical and vv conversion methods
virtual and implement them like any other method
    in the wxDC classes, not only in the their files
    but somehow belonging to the wxDCBase class.
  This is required for plugging in differnt DC backends
    with different conversions.
  Ideally (and absolutely possible ) all these methods
    should be removed and just the one in wxDCBase
    should stay using values set in the various
    derived classes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 21:28:29 +00:00
Vadim Zeitlin
c94f845b16 changed wxDC::GetTextExtent() and related methods to take const wxFont pointer, for consistency with wxWindow::GetTextExtent() and because it generally doesn't need a non-const font
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-25 01:49:47 +00:00
Vadim Zeitlin
c2ca375c56 preparation for allowing to use wxTimer in wxBase (heavily modified patch 1113088):
1. Changed wxTimer to use wxTimerImpl
2. Added Unix-specific generic timer implementation
3. Added wxAppTraits::CreateTimerImpl()


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-20 01:29:16 +00:00
Paul Cornett
29825f5fc4 add wxUSE_STC wrappers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45517 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-17 05:48:09 +00:00
Václav Slavík
47b378bd88 removed extra semicolons (patch #1700459; fixes compilation with gcc's -pedantic flag)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-14 09:58:37 +00:00
Vadim Zeitlin
dc3065a56f Big wxGL classes refactoring/cleanup:
1. Provide the same API, especially, but not limited to, wxGLCanvas and
   wxCLContext ctors (which were completely different in all ports)
2. Extracted common parts into wxGLCanvas/ContextBase classes
3. Deprecate the old API using implicitly created wxGLContext


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45388 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-10 17:38:55 +00:00
Vadim Zeitlin
94aff5ff86 Call wxTLW::SetDefaultItem() from wxButtonBase::SetDefault() instead of doing
it in wxButton implementations in (almost) all ports; changed its return type
to "wxWindow *" from "void" to accommodate the ports needing the old default
item (replaces part of patch 1696563)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 22:18:35 +00:00
Vadim Zeitlin
ea098413d0 made wxTLW::SetIcon() non-virtual, it was already implemented in terms of
SetIcons() in most of the ports, now do it in all of them


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 23:40:55 +00:00
Vadim Zeitlin
2035ad112e compilation fix for wxUniv after last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-01 15:05:31 +00:00
Vadim Zeitlin
c0ac3149bf implement GetBestSize() (patch 1386199)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-01 14:53:02 +00:00
Vadim Zeitlin
39bc0347fd added support for ellipsization and markup in wxStaticText (modified patch 1629946)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-01 14:13:15 +00:00
Vadim Zeitlin
5acec11245 added a generic mechanism for registering global handlers for custom windows messages and use it in wxFindReplaceDialog instead of subclassing the parent window, this solves the problem with having 2 find dialogs with the same parent (replaces patch 1447739)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-01 12:07:00 +00:00
Vadim Zeitlin
9005f2edfd 1. Moved m_usePrimary to wxClipboardBase as it's now also used by wxMSW/wxMac
2. Added IsUsingPrimarySelection()
3. Fail all clipboard operations when IsUsingPrimarySelection() is true on
   non-X11 platforms


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-31 02:57:55 +00:00
Vadim Zeitlin
47a8a4d5cc make IsEnabled() return false even if the window parent, and not the window itself, is disabled and added IsThisEnabled() implementing the old IsEnabled() behaviour; also significantly simplify the window state management code in all ports by factoring out the common parts in wxWindowBase
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 14:01:53 +00:00
Václav Slavík
e3f6cbd99c split wxchar.h into several smaller headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-19 14:45:38 +00:00
Václav Slavík
e229d82e0e fixed wxDataViewCtrl compilation with DigitalMars
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-19 13:03:02 +00:00
Vadim Zeitlin
07d02e9ee0 fixed all the other ports broken by controls labels in wxToolBar patch commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-18 23:57:20 +00:00
Vadim Zeitlin
cdb11cb99e added labels support for toolbar controls for wxMac and wxMSW (modified patch 1613603)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-18 23:13:18 +00:00
Vadim Zeitlin
e3b81044ee wxDC::StretchBlit() for wxMac and wxMSW (patch 1611973)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-18 15:32:27 +00:00
Vadim Zeitlin
e6733873f5 multiple fixes to wxJoystick under Unix and new index-based API for accessing joystick buttons and axes (patch 1678497)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-16 00:51:43 +00:00
Vadim Zeitlin
0024ec5086 extracted code including gdiplus.h in a separate header
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-15 03:41:52 +00:00
Vadim Zeitlin
87d3473070 removed wxUSE_DIB_FOR_BITMAP which doesn't seem to be used any longer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-14 17:11:52 +00:00
Vadim Zeitlin
8c58338193 allocate HPEN on demand instead of doing every time a pen property is modified; also significant code cleanup (finally)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-13 22:01:27 +00:00
Vadim Zeitlin
8e34db1d94 allocate HFONT on demand instead of doing every time a font property is modified
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-13 21:59:55 +00:00
Vadim Zeitlin
adbd3cbc71 fix setting the properties of a valid but unshared font object broken in the last commit (HFONT wasn't recreated)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-13 20:35:58 +00:00
Vadim Zeitlin
0df7cb7e43 argh, added missing comma in last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-11 02:32:53 +00:00
Vadim Zeitlin
c8b431ad4b added wxWinVersion_Vista to wxWinVersion enum
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-11 02:31:59 +00:00
Paul Cornett
ce3b4b90c5 make wxPenRefData private
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-10 23:04:18 +00:00
Paul Cornett
7c310bc89f use AllocExclusive
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-10 23:00:52 +00:00
Vadim Zeitlin
c4ec0ce820 derive wxConfig classes from wxObject and add wxRTTI macros to them (patch 1587607)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-10 18:16:10 +00:00
Vadim Zeitlin
39b61aa3eb removed WXWIN_COMPATIBILITY_2_4 in non-MSW code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-07 11:48:53 +00:00
Vadim Zeitlin
c1dc9f8394 removed WXWIN_COMPATIBILITY_2_4 from common and wxMSW files (patch 1675546)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-07 11:35:04 +00:00
Václav Slavík
abb6edd197 added WXWIN_COMPATIBILITY_2_8
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-19 20:02:14 +00:00
Vadim Zeitlin
f030b28c93 use AllocExclusive() instead of duplicating its code in wxFont-specific Unshare(); this fixes recreating the font whenever it is modified (even if it's not shared) bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-14 20:35:24 +00:00
Włodzimierz Skiba
c5dc89a1b1 Avoid do-nothing virtuals in WinCE.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-13 17:08:36 +00:00
Włodzimierz Skiba
261fb04124 Make QS_ALLPOSTMESSAGE available everywhere regardless SDK limitations.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-13 16:30:53 +00:00
Vadim Zeitlin
3c77aabe59 define DisableAutomaticSETranslator() correctly when wxUSE_ON_FATAL_EXCEPTION==0, this fixes linking in this case (replaces patch 1646340)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-11 02:14:49 +00:00
Vadim Zeitlin
d43eb2a0d5 return the restored window size from GetSize() when window is minimized (for consistency with wxGTK and also for convenience)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-11 00:21:06 +00:00
Robin Dunn
bbd321ffc2 Added SetToolNormalBitmap and SetToolDisabledBitmap
(ported from 2.8 branch)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44388 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-06 21:13:03 +00:00
Vadim Zeitlin
535920ff93 don't wait for Windows messages in WaitForThread() if we don't dispatch events (should fix the bugs 1523302 and 1650795)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-02 23:12:34 +00:00
Vadim Zeitlin
e570a44b37 don't wake up on Windows messages when waiting for thread termination in a console application as this results in an infinite loop because we never process them and thus they remain in the queue for always (modified patch 1615875; closes bugs 877128)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-02 22:46:48 +00:00
Vadim Zeitlin
d40e9e06bb no changes, just refactor the code sending spin update event to SendSpinUpdate() instead of duplicating it; also initialize m_oldValue
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-11 01:59:42 +00:00
Julian Smart
715ce94da9 IsRich should be defined even if wxUSE_RICHTEXT isn't
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-09 21:26:53 +00:00
Vadim Zeitlin
3e85709e97 fix wxMDIChidFrame::GetPosition() (patch 1626610)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-07 16:42:00 +00:00
Paul Cornett
ffdbfc4a76 remove inline from declaration of functions which are not inline
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-01 19:49:10 +00:00
Vadim Zeitlin
6969c2c318 added AutoHFONT; allow initialize SelectInHDC later (and not necessarily in ctor)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-23 22:11:16 +00:00