Commit Graph

35245 Commits

Author SHA1 Message Date
Vadim Zeitlin
6e26ace6f1 set wxID_CLOSE as affirmative id, not cancel id, this makes more sense for this dialog even if the effect is the same
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-20 10:52:52 +00:00
Vadim Zeitlin
153a0b7831 map Esc to GetAffirmativeId() instead of hardcoded wxID_OK when escape id is wxID_ANY
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-20 10:39:55 +00:00
Vadim Zeitlin
684e5b95a6 updates for wxDialog affirmative/escape id buttons handling changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-20 10:38:55 +00:00
Vadim Zeitlin
551f281b79 handle the buttons with ids specified in SetAffirmative/CancelId() as Ok/Cancel
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-20 10:30:26 +00:00
Mattia Barbon
64fb0e2088 Allow building when WXINTL_NO_GETTEXT_MACRO is defined.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40699 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-20 09:44:41 +00:00
Robin Dunn
9389458452 Updates from Eli
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-20 05:09:17 +00:00
Robin Dunn
d6d222febb Change Miki's email address
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-20 04:49:34 +00:00
Robin Dunn
90fb367e86 Add dtor for wxCalendarDateAttr
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-20 04:46:07 +00:00
Robin Dunn
09c4bfc330 Various updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-20 04:20:58 +00:00
Robin Dunn
a86960861f Add ImageFromBuffer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-20 04:19:39 +00:00
Vadim Zeitlin
db927071d5 don't use deprecated wxStripMenuCodes overload
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-19 23:21:18 +00:00
Vadim Zeitlin
ba7a4bfbbb don't use the hack with handling wxID_CLOSE button events in wxDialog::OnCancel(); simply map Esc to wxID_CLOSE instead
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-19 23:19:07 +00:00
Vadim Zeitlin
c2e9ada498 tidy up configure output, don't show gnomeprint/vfs/hildon for non-GTK ports
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-19 23:17:07 +00:00
Vadim Zeitlin
86508681d4 don't call base class OnOk() directly, use EndDialog() instead
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-19 23:04:37 +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
8f4931874c use wxChar* instead of wxString for string constants, cuts object size by ~1200 bytes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-19 22:21:51 +00:00
Vadim Zeitlin
654ffe9f19 compilation fix after wxPlatformInfo patch: use wxOS_WINDOWS_CE instead of wxWinPocketPC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-19 22:17:08 +00:00
Vadim Zeitlin
dda7d36fbf removed #ifdef wxTopLevelWindowNative -- it's now defined for all ports
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-19 21:48:33 +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
Paul Cornett
b34497d885 configure test for round
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-19 21:28:18 +00:00
Robin Dunn
82184c0abf Patch #1540143 Add optional labelwidths to filebrowsebutton
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-19 21:16:18 +00:00
Robin Dunn
ca501b065e Use global font and pen to reduce GDI objects created. Patch #1540457
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-19 19:22:23 +00:00
Vadim Zeitlin
3a1a76a8be update the item width when making it bold, otherwise the selection highlight was too small after an item was made bold (and too big after it was reset to normal)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-19 14:17:26 +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
Vadim Zeitlin
4e9be62bb3 ScrollLines() didn't use correct step_increment, so e.g. wxTextCtrl scrolled in tiny steps instead of by lines
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-19 10:05:59 +00:00
Julian Smart
4bded47dea Shouldn't need to repeat the extern
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-19 08:45:31 +00:00
Julian Smart
a8df838912 Compile fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-19 08:44:33 +00:00
Julian Smart
2bd5019102 Added missing include
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-19 08:40:59 +00:00
Julian Smart
98080d5c19 wxFileName size patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-18 20:56:34 +00:00
Paul Cornett
280831d5dd code simplification and cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-18 17:06:09 +00:00
Julian Smart
23b8a26299 Applied patch [ 1531615 ] size support for wxFileName
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-18 15:30:28 +00:00
Julian Smart
95f090310c Corrected VC++ compilo (not yet tested)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-18 15:27:30 +00:00
Chris Elliott
25f70bc4a1 add #if wxUSE_AUI to get VC6 with no wxUSE_AUI to compile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-18 08:05:41 +00:00
Michael Wetherell
b9d4a1b769 Crash fix from Tim Kosse.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-17 22:57:14 +00:00
Paul Cornett
286b8de534 remove Win32S-specific code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-17 18:48:03 +00:00
Václav Slavík
2fd85ab3e8 avoid calling wxSystemSettings::GetMetric() from wxIconBundle::GetIcon() unless the returned value is really needed to choose from >1 icons
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-17 16:08:13 +00:00
Paul Cornett
406d283a64 build fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-17 03:02:15 +00:00
Michael Wetherell
3ecd9f92e4 Regereate after updating the m4 macros.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-16 20:35:04 +00:00
Michael Wetherell
e321ac6160 Bring through upstream version tagged SDL_1_2_11.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-16 19:56:02 +00:00
Michael Wetherell
991a9f9710 Bring through upstream version tagged PKGCONF_0_20.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-16 19:51:18 +00:00
Michael Wetherell
5a0bcf1f34 Allow unknown generic unix systems.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-16 19:31:12 +00:00
Michael Wetherell
b45b79f286 Display 'no' when the test fails and correct quoting.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-16 19:21:16 +00:00
Michael Wetherell
6a4d465c26 Bring upstream version tagged ACARC_2006_07_16 through from vendor branch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-16 19:06:23 +00:00
Václav Slavík
b98bd6af23 wxPlatformInfo::IsUsingUniversalWidgets() was broken by design, it couldn't work in wxBase shared by 2+ wxCores; fixed by making it non-static and moving its implementation back to wxAppTraits (where its equivalent used to be) and making small API changes implied by that
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-16 17:18:34 +00:00
Paul Cornett
e74f9041c4 revert last change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-16 16:27:11 +00:00
Václav Slavík
d441742626 fixed syntax errors (incorrect use of _)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-16 16:17:59 +00:00
Václav Slavík
6eb1fe1cc4 documented wxAppTraits::GetPlatformInfo doesn't exist, removed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-16 15:42:55 +00:00
Václav Slavík
5819f832e6 moved IMPLEMENT_DYNAMIC_CLASS(wxGDIObject,wxObject) line to gdicmn.cpp so that we don't have to have several identical gdiobj.cpp files containing only it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-16 14:53:49 +00:00
Michael Wetherell
a87f2821ad Declarations missing from VC++ 5
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-16 12:21:20 +00:00