Commit Graph

15354 Commits

Author SHA1 Message Date
Vadim Zeitlin
608299859d use wxFileName::MacSetTypeAndCreator() in Flush() instead of duplicating its code here
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-03 22:18:27 +00:00
Vadim Zeitlin
8482e4bdb9 added wxUmaskChanger class and wxCHANGE_UMASK macro and use them instead of duplicating the same umask-setting code in several places
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-03 22:12:58 +00:00
Václav Slavík
a761df69a3 fixed menu destruction if it was removed from menubar with Remove
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-03 21:00:45 +00:00
Václav Slavík
e25c7537ff fixed transiency when the parent is MDI child frame
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-03 19:38:32 +00:00
Julian Smart
bdacb147ee Workaround for special menu items not always being enabled. Use
with UI update events.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-03 18:06:15 +00:00
Václav Slavík
7fbe5489ad fixed crash on invalid data (patch 1039453)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-03 16:31:58 +00:00
Vadim Zeitlin
7d9bf1f11c don't include headers not needed when wxUSE_GUI == 0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-03 16:10:46 +00:00
Robert Roebling
06fda9e808 Reworked TLW and app activation event code, also
moved it to toplevel.cpp where it belongs.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-03 14:13:48 +00:00
Vadim Zeitlin
e5d4ef7410 store bitmap data in premultiplied by alpha format in wxBitmap/wxDIB (patch 991172)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-03 14:03:52 +00:00
Vadim Zeitlin
57c26f8210 use AlphaBlt() when blitting to a bitmap with alpha channel too (patch 991166)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-03 13:53:33 +00:00
Vadim Zeitlin
a6fd0fde4c update the disabled buttons appearance when system colours change (followup to patch 1027243)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-03 13:46:11 +00:00
Vadim Zeitlin
8093538cc5 oops, AdjustFontSize() had no effect; fixed (patch 1037952)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-03 13:38:22 +00:00
Vadim Zeitlin
0746037046 destroy any TLWs still alive when the app terminates (avoids problems with classes unregistering under MSW and memory leaks everywhere)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-03 12:11:19 +00:00
Vadim Zeitlin
74c719ed96 fixes for Metrowerks command line compiler (avoid redefining stuff already defined by configure)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-02 23:19:07 +00:00
Vadim Zeitlin
b5172775cf $#include "expat_config.h" instead of <expat_config.h> as the file is in current directory
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-02 23:16:18 +00:00
Vadim Zeitlin
b17f6a307a only use __attribute__(regparm) for x86, this results in warnings under other platforms (e.g. PPC)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-02 20:52:53 +00:00
Vadim Zeitlin
d85cfb3784 added wxVaCopy() and use it to fix wxVsnprintf() crash (see bug 1017651)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-02 18:32:31 +00:00
Vadim Zeitlin
ebb97a41da fixed dll import specification of wxGetHInstance()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-02 16:21:38 +00:00
Julian Smart
843b368a06 Blind fixes for Mac project files (version number, missing cpp files)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-02 14:07:20 +00:00
David Elliott
bd2af42857 wxCocoa: Added (mostly) stubs for wxGLCanvas and friends.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-01 14:23:59 +00:00
Ryan Norton
10c5f652b9 fix const to normal warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-01 12:40:59 +00:00
Václav Slavík
f987cbb173 use default GUI font in wxHtmlListBox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-01 11:27:43 +00:00
Ryan Norton
2d347ce894 *** empty log message ***
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-01 03:14:30 +00:00
Ryan Norton
dcac15653e OSX only (a runtime check would be preferable as Kevin mentioned
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-01 03:09:42 +00:00
Kevin Hock
326d5a744f Increase status bar height from 15 to 18, allows common 16 x 16 icons and other controls like checkboxes to fit better without special handling (at least until Mac statusbar can determine its own best height)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-01 02:50:27 +00:00
Ryan Norton
23c6ddc89c only do the seperator between about and preferences on 10.3 and up
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-01 02:49:16 +00:00
Kevin Hock
e957d41c73 wx apps did not have the separator like other apps after About--now they do
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-01 02:08:41 +00:00
Vadim Zeitlin
29e92efbe7 hack: hide the MDI parent frame by moving it off screen
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-01 01:51:29 +00:00
Vadim Zeitlin
a4f01f0592 relayout frame contents when tool/statusbar is shown/hidden
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-01 01:49:45 +00:00
Vadim Zeitlin
5e62d4a5c7 extracted OnSize() body in a new DoLayout() method so that it can be called from wxFrame::SetXXXBar()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-01 01:46:14 +00:00
Vadim Zeitlin
aba3d35e7b don't deprecate SetItemImage() with 3 parameters; just add a default value for the last one
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-30 22:27:45 +00:00
Václav Slavík
9c52a42951 blind compilation fix for MSVC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-30 21:52:39 +00:00
Julian Smart
c3627a004d Deprecated SetItemImage with 2 image ids
Deprecated _GET_INFO, _SET_INFO list control events


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-30 19:12:23 +00:00
Václav Slavík
024f89f972 moved wxWindow::GetBestSize implementation into DoGetBestSize to make it easier to support both prototypes in derived classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-30 16:33:36 +00:00
Robin Dunn
147d666989 Fix for crash when the child has no menu
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-30 16:33:15 +00:00
Václav Slavík
c10d3a5471 resize parent's frame client area correctly when statusbar is added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-30 16:32:19 +00:00
Julian Smart
258bcbfbd3 Blind fix for missing files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-30 14:54:20 +00:00
Ryan Norton
af7e08a4a5 have it work the old way with PopupMenu(), and have it restore the old menu on destruction (and hopefully when RemoveIcon() is called
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-30 13:51:00 +00:00
Robin Dunn
1d451c5bd1 wxSystemSettings::GetMetric returns -1 if the metric is not supported
by the port.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-29 21:56:22 +00:00
Václav Slavík
2596e9fb2c fixed flicker during MDI children creation: the frame is now created hidden and shown in idle time to maintain backward compatibility
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-29 21:07:48 +00:00
Robin Dunn
e768548a12 Create a mask for the icon if it doesn't already have one
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-29 20:39:25 +00:00
Julian Smart
3444e4a8f9 Fixed case sensitivity
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-29 17:53:43 +00:00
Vadim Zeitlin
f530fa27a9 fixed memory leak in Submit(cmd, false) (bug 1037115)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-29 17:17:27 +00:00
Robin Dunn
c4dc4cdd5a Just return zero without failing for unknown metrics, like the other
ports do.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-29 16:49:01 +00:00
David Elliott
164f091f4b Get the stock label when stock ID is used with empty label in Create()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-29 16:07:12 +00:00
Václav Slavík
66370e3854 implementation should use DoFindFocus
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-29 15:30:09 +00:00
Václav Slavík
0fe0275981 changes to make wxWindow::FindFocus work as expected with composite controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-29 14:34:28 +00:00
Vadim Zeitlin
4be927a2d0 signed/unsigned comparison warning fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-29 11:16:22 +00:00
Vadim Zeitlin
02a525b385 removed C++ comments from C files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-29 10:42:37 +00:00
Vadim Zeitlin
81ce36aa59 more 64 bit correctness fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-29 09:25:47 +00:00