Commit Graph

25381 Commits

Author SHA1 Message Date
Robert Roebling
53ba104ecf Add a fudge factor to the size of wxODBC in wxProperty under
wxMac. I've been unable to find out what shrinks the control
under wxMac.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-14 19:37:51 +00:00
Jaakko Salli
2fd4a52415 wxPGProperty::AddChild() can now be used to add normal child properties (previously it was only used to add private children of derived property classes such as wxFontProperty and wxFlagsProperty). However, to allow backwards compatibility, SetParentalStyle(wxPG_PROP_MISC_PARENT) needs to be called before doing so. Also done: merged property initialization code from PrepareToAddItem() and PrepareSubProperties() to InitAfterAdded().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-14 17:15:59 +00:00
Vadim Zeitlin
c8c86bd0ba fix bugs in FindFirst() (it gets URL, not filename, on input) and FindNext() (which always forgot the last match) (fixes #10077)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-14 14:13:15 +00:00
Robert Roebling
012b4a0790 Correct positioning of wxTextCtrl in wxPropertyGrid for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-14 12:32:01 +00:00
Vadim Zeitlin
cc378c2d75 added wxXmlResource::FindXRCIDById() (#10026)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-14 11:44:10 +00:00
Robert Roebling
e1b7677ee6 Fix off-by-1 error in wxChoice and wxComboBox (OSX reports 1 as 0)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-14 09:31:10 +00:00
Vadim Zeitlin
cc0972a251 no real changes, just also rename _Read/_Write() to DoRead/DoWrite() and clean them a little more too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-13 13:24:48 +00:00
Vadim Zeitlin
60ee017274 Cleanup of wxSocket::_Wait():
- Rename to DoWait() to avoid symbols starting with underscores.
 - Added comments explaining how does it work.
 - Remove the pointless timeout manipulations: GSocket::Select() doesn't
   use timeout (any more?) anyhow.

Also pass GSOCK_LOST_FLAG to DoWait() from WaitForWrite() for the same reasons
it is done in WaitForRead().


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-13 13:00:49 +00:00
Robert Roebling
1b895132c9 Correct spelling, now use Indices
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-13 10:52:38 +00:00
Vadim Zeitlin
0b1ca1177d no need to test that the pointer is non-NULL before deleting it (closes #10070)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-13 10:35:07 +00:00
Vadim Zeitlin
c2116a3579 no changes at all, just reformatted to use consistent indentation before the upcoming real changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 23:04:33 +00:00
Vadim Zeitlin
b8d1915daf use the currently active event loop for the event dispatching instead of wxYield(), this allows to create local event loops when using non-blocking sockets; assert if there is no active event loop under MSW as sockets won't work without it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 22:55:14 +00:00
Robert Roebling
5acb9127c5 Correct spelling and signature of FixIndexesOfChildren
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 18:07:01 +00:00
Vadim Zeitlin
ea6319cb38 don't replace . and .. with the corresponding directoties names in GetLongPath() as this breaks the normalization of file names without wxPATH_NORM_DOTS flag (#9814)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 15:15:32 +00:00
Vadim Zeitlin
8a493b67ac fix off by one bug in the buffer size (fixes #10039)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 14:51:45 +00:00
Vadim Zeitlin
456e28d28d compilation fix for PCH-less build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 14:12:57 +00:00
Vadim Zeitlin
916eabe60e add wxGenericStaticText (#9656)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 13:04:00 +00:00
Jaakko Salli
68bcfd2c10 Eliminate (or at least reduce) 64-bit build warnings (as described in wxPG sourceforge bug report #2156069)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 12:23:48 +00:00
Jaakko Salli
f3932d5ac4 Also update description text when wxPG_DESCRIPTION window style is toggled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 11:25:18 +00:00
Jaakko Salli
d35947a23f Set focus back to canvas when child editors are being destroyed (fixes wxGTK property selection focus bug)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 11:13:21 +00:00
Václav Slavík
9f330429af get help frame's icon using wxART_FRAME_ICON wxArtClient hint, not wxART_HELP_BROWSER
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-11 20:17:55 +00:00
Francesco Montorsi
c615d6491f Act as wxMSW and make an assert fail, if the user forgot to give a "type flag" (previously it assumed wxLC_LIST type flag).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-11 15:54:14 +00:00
Stefan Csomor
bd412bc6b6 adding missing cast
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-11 06:00:17 +00:00
Stefan Csomor
ac23569987 superfluous embedding API
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-11 05:18:26 +00:00
Stefan Csomor
c4825ef73a moving embedding to common API
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-10 19:01:32 +00:00
Vadim Zeitlin
e767076e80 just return false instead of crashing if the document contents can't be converted to the target encoding (#10064)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-10 16:13:53 +00:00
Vadim Zeitlin
ddf01bdb96 don't crash when streaming out a wxString into an std::ostream, just set the failbit instead
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-10 16:11:40 +00:00
Paul Cornett
830910cc28 use correct background color when drawing borders
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-10 15:51:09 +00:00
Jaakko Salli
703ee9f5ec GetPendingEditedValue() -> GetUncommittedPropertyValue() (more consistent API naming. Eg. there is also CommitChangesFromEditor())
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-10 15:22:08 +00:00
Robert Roebling
236a34ef3e Fix crash again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-10 10:02:35 +00:00
Robert Roebling
d7cda9b290 Fix crash with NULL pointer dereferencing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-10 07:36:36 +00:00
Robert Roebling
2571a33fd3 implement GetSizeAvailableForScrollTarget
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-09 19:18:28 +00:00
Robert Roebling
e9a7fde568 Use g_signal_connect_after for wxRadioButton as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-09 18:12:41 +00:00
Robert Roebling
f938aa996b Blind guess fix for wxRB_SINGLE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-09 18:09:11 +00:00
Francesco Montorsi
046fce4786 fixed a bug caused by passing a wxChar[] buffer to a function taking a wxString; the buffer was automatically converted but since it was not NULL-terminated, a crash resulted
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-09 17:00:32 +00:00
Robert Roebling
0e50223f87 Forgot to set GtkIter stamp in Select() and friends
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-08 18:46:46 +00:00
Jaakko Salli
9b5bafcf38 Removed dysfunctional wxPGPropery::PrepareValueForDialogEditing(); Replaced its functionality with wxPropertyGrid::GetPendingEditedValue(); Added wxPropertyGrid::PerformValidation() flags so it can be called in generic context.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-08 18:15:10 +00:00
Stefan Neis
483b6cf0d4 Fixed header file conflict.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-08 17:53:03 +00:00
Vadim Zeitlin
f57258724a added wxDC::GetHDC() for backwards compatibility with the existing wxMSW code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-08 16:09:09 +00:00
Stefan Csomor
9044b125fd focus propagation, fixes #10047
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-08 14:35:32 +00:00
Stefan Neis
0f626acb66 Added missing include.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-08 12:13:05 +00:00
Jaakko Salli
ff1e1474ed Removed SetPropertiesFlag() (high-level function using 'undocumented' wxPGProperty flags, IIRC was mostly used as poor-man's SetEditableState() and possibly for internal use until very recently)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-07 17:35:06 +00:00
Jaakko Salli
d61d8cffa9 Eliminated last property generation macros from props.h (colour property gen ones, now use subclassing facilities present in wx(System)ColourProperty)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-07 17:28:05 +00:00
Jaakko Salli
3a89adc1f0 Removed wxLongStringProperty derived property creator macros (just subclass and implement OnButtonClick()); Partially fixed wxPGProperty::PrepareValueForDialogEditing()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56147 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-07 16:56:43 +00:00
Robert Roebling
451673f7c9 GTK+ version guard
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-07 08:05:07 +00:00
Robert Roebling
62d934aab8 Don't set HINT_COMBO as wxPopupWindow is used for different windows as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-07 08:02:45 +00:00
Stefan Csomor
4fcb208a4f porting dcscreen blit from 2.8
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-06 19:48:52 +00:00
Jaakko Salli
52cefafe7e Minimize use of editor class macros
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-06 16:09:36 +00:00
Jaakko Salli
5a45dd6fd9 When registering editor, try wxRTTI class name in additon to result of wxPGEditor::GetName(). Allows creating custom editors without needing to implement GetName().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-06 15:48:27 +00:00
Jaakko Salli
c26873c8ef Remove use of wxPG_EDITOR macro
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-06 15:38:30 +00:00
Vadim Zeitlin
fcc65883db implemented wxMemoryFSHandler::FindFirst/Next()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-06 13:55:39 +00:00
Vadim Zeitlin
8c9d760210 made m_Hash object, not a pointer and moved hash declaration into the header as it's needed by the upcoming FindFirst/Next() implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-06 13:37:04 +00:00
Vadim Zeitlin
bf9ce2abdf removed the strange __WXMSW__ test in AddFile(bitmap) -- why should this function silently do nothing in this case?
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-06 13:26:27 +00:00
Vadim Zeitlin
0eb2e51048 rewrite using type safe wxHashMap instead of wxObject-based wxHashTable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-06 13:25:04 +00:00
Vadim Zeitlin
cb564879c1 no changes, just some minor cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-06 13:09:20 +00:00
Robert Roebling
3591d10f4f Make keyboard input to controls in a wxPopupWindow work in at least some cases, embedded wxListCtrl still doesn't work, wxVListBox does
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-06 12:13:24 +00:00
Robert Roebling
5e53c1c21e Wrong order of calls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-06 11:01:17 +00:00
Francesco Montorsi
8cc0450796 better error messages, when possible
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-06 11:00:50 +00:00
Stefan Csomor
3b211af168 switching away from angle brackets includes, deactivating OSX workaround
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-06 10:41:40 +00:00
Stefan Csomor
f55d9f749b moving more things to common API between carbon and cocoa, adapting WidthDefault etc, removing dependencies from wxClientDC from text measuring ops on wxWindow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-06 10:35:36 +00:00
Vadim Zeitlin
054f177b00 set svn properties correctly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-06 09:29:12 +00:00
Jaakko Salli
ea5af9c535 Fix RCS-IDs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-05 18:03:43 +00:00
Jaakko Salli
577972abb9 Fix RCS-ID
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-05 17:57:49 +00:00
Jaakko Salli
60f7ea2237 Better use of Connect()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-05 17:40:53 +00:00
Jaakko Salli
858ad6708d Need to call wxVScrolledWindow::UpdateScrollbar() in wxVListBox EVT_SIZE handler. Otherwise resizing wxVListBox does not update visible items count.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-05 13:56:40 +00:00
Jaakko Salli
95645cce6e Have GetDescBoxHeight() return value consistent with one given to SetDescBoxHeight(); In SetDescBoxHeight(), do not call RecalculatePositions() unless box height really changed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-05 09:47:16 +00:00
Jaakko Salli
c3e57ac4ac Call RecreateControls() if relevant window style flag was toggled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-05 09:45:10 +00:00
Jaakko Salli
72eb964f27 GetEditableState() with DescBoxState flag could assert
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-05 09:43:51 +00:00
Vadim Zeitlin
9f7aee0198 added the possibility to draw grid lines across the entire window
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-04 23:23:01 +00:00
Robert Roebling
cfb9736175 Also use F4 shortcut for textfield + button combination
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-04 19:34:53 +00:00
Jaakko Salli
d85423250a Fixed use of erase() in wxPGChoices::RemoveAt()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-04 13:22:13 +00:00
Jaakko Salli
6280517046 Added Description Box Height to saveable/restoreable editable state
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-04 10:59:06 +00:00
Robert Roebling
a5d567622f Removed wxNavigationKey code, new keyboard navigation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-04 09:28:31 +00:00
Robert Roebling
3b354b9672 Also use F4 as short-cut for opening pop-up
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-04 09:14:14 +00:00
Vadim Zeitlin
7802da36fa don't duplicate base class m_acceleratorTable as m_accelTable in wxMenuBar, this is not only unnecessary but also doesn't allow using GetAcceleratorTable() to retrieve the menu bar accelerators (#9654)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-03 22:15:40 +00:00
Jaakko Salli
104837f26e Fixed bug: wxPG_EX_AUTO_UNSPECIFIED_VALUES was basically always on
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-03 17:39:17 +00:00
Jaakko Salli
0c931dd4eb Increase properties' tolerance for wxNullVariant as old value
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-03 17:30:10 +00:00
Jaakko Salli
36a403e0d5 Must still delete m_cells items by explicit type (since, after all, it was not yet converted to wxVector from wxArrayPtrVoid)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-03 16:29:34 +00:00
Vadim Zeitlin
e5bb501b98 return false if the file passed to Load() doesn't exist or is an archive without XRC files inside
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-03 15:51:25 +00:00
Jaakko Salli
14c140606b Minor additional clipper window related code and comment tweak
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-03 15:31:23 +00:00
Vadim Zeitlin
e9d2b75fb5 fix off by one byg in ReserveId() (closes #10020)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-03 15:30:41 +00:00
Jaakko Salli
7adf8bf391 Remove wxPGClipperWindow, use wxBORDER_NONE instead of wxNO_BORDER
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-03 15:23:00 +00:00
Jaakko Salli
63f62e764c Further fix m_children use with wxUSE_STL=1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-03 15:08:48 +00:00
Vadim Zeitlin
6b18f6b7db no changes, just removed commented out code accidentally checked in as part of r37393
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-03 12:13:21 +00:00
Jouk Jansen
8cf694d4ea adding variable initialization to 0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-03 11:42:02 +00:00
Vadim Zeitlin
bb25a741c2 honour wx{CLOSE,MINIMIZE,MAXIMIZE}_BOX even for borderless windows; also always allow moving the windows as we don't have a special style to enable/disable this (#10029)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-02 23:44:51 +00:00
Jaakko Salli
1766bf3453 SetButtonShortcut() merged with action system
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-02 16:02:20 +00:00
Jaakko Salli
89b4415803 Moved ClearModifiedStatus() to wxPropertyGridInterface
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-02 15:36:24 +00:00
Václav Slavík
033508e1b1 get rid of public constants for various XRC defaults, there's no need for them outside of XRC loader
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-01 19:54:57 +00:00
Jaakko Salli
c80f436e83 Recognize lack of wxTAB_TRAVERSAL style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-01 17:56:04 +00:00
Jaakko Salli
fe6ee7ec10 Use wxPendingDelete
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-01 17:43:06 +00:00
Jaakko Salli
474b0ba488 Added useful comment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-01 17:20:11 +00:00
Jaakko Salli
0fd5c4019c Fixed wxPG sourceforge tracker bug #2138858, applied other appropriate uses of GetEditorControl() as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-01 17:11:10 +00:00
Vadim Zeitlin
b54129836c add a more readable wrapper for CreateDocument(wxEmptyString, wxDOC_NEW)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-01 17:04:43 +00:00
Jaakko Salli
0d4884cbf3 Unfocus text editor when enter is pressed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-01 16:24:21 +00:00
Jaakko Salli
d8c74d044b Use m_children as it were std::vector
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-01 15:13:00 +00:00
Julian Smart
cfceb4a8e0 Only ignore Alt down on Mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-01 14:55:54 +00:00
Julian Smart
91babb9d5c Now accepts keys that are generated with Alt
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-01 14:44:55 +00:00
Vadim Zeitlin
ec07419336 don't distribute negative extra space among box sizer items, this isn't useful as it results in overlapping windows (#10008)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-01 13:57:53 +00:00
Václav Slavík
baa637de7d compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-01 11:29:11 +00:00
Benjamin Williams
7bce84396e applied patch from ticket 10015; wxToolBar compatibility
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-01 10:42:50 +00:00
Stefan Csomor
81e0b3d978 copying sizes upon construction, HDC doesn't deliver these values reliably for things like memory dcs, fixes #10012
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-01 09:38:33 +00:00
Stefan Csomor
4fff14c955 fixing release handling of dc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56003 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-01 08:09:45 +00:00
Jouk Jansen
e98c72eccb wxMOTIF ?: wxcursor:wxcursor overload fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56002 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-01 07:18:14 +00:00
Václav Slavík
61f6ba079c don't cache tray protocol availability result in wxTaskBarIconAreaBase::IsProtocolSupported(), it may change at runtime
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-30 20:55:52 +00:00
Václav Slavík
cf78bdcb68 added wxTaskBarIcon::IsAvailable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-30 20:54:02 +00:00
Stefan Csomor
b15f9375cb supporting NO_BORDER for Cocoa as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-30 19:28:06 +00:00
Jaakko Salli
f7a094e1af Converted various wxArrayPtrVoids to wxVectors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-30 17:23:27 +00:00
Jaakko Salli
6d24f9a939 Fix Connect() calls in SetupChildEventHandling()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-30 16:46:36 +00:00
Jaakko Salli
28fb19ef29 Try to make SetupChildEventHandling() more foolproof
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-30 16:33:43 +00:00
Václav Slavík
623114052c wxToolBar XRC handler should call SetupWindow() to handle standard window properties too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-30 14:36:55 +00:00
Stefan Csomor
24c7547c13 performance fix by Tim Kosse
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-30 11:59:06 +00:00
Václav Slavík
1b5d7525c5 wxWizard XRC handler should call SetupWindow() to handle standard window properties
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-30 11:50:59 +00:00
Robert Roebling
7a8092229f Make wxPGCanvas accept focus even with child windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-30 11:34:19 +00:00
Robert Roebling
1e6935a670 Add wxPGCanvas RTTI for debugging purpose
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-30 11:25:54 +00:00
Robert Roebling
07fff17b6a wxGTK's wxTextCtrl's borders can be removed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-30 11:12:11 +00:00
Robert Roebling
0ca422ef4c Move body of SetFocusOnCanvas to .cpp file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-30 07:15:40 +00:00
Václav Slavík
733b7d1eb3 wxART_MISSING_IMAGE is not a valid wxArtClient value and doesn't make sense here
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-29 19:51:59 +00:00
Jaakko Salli
020b004113 Moved wxPropertyGrid::SetPropertyName() to wxPropertyGridInterface
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-29 17:01:04 +00:00
Jaakko Salli
704ceca8d2 Removed wxPG_EX_LEGACY_VALIDATORS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-29 16:52:57 +00:00
Jaakko Salli
c8074be06b RegisterAdditionalEditors() to work even if no wxPropertyGrids created, in sample moved editor registration before first CreateGrid() call to prevent crash, removed wxPG_USE_WXMODULE support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55953 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-29 16:50:03 +00:00
Jaakko Salli
2a8312bced Make wxPGValidationInfo class instead of struct, re-document it (used at least by derived wxPGProperty::ValidateValue())
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-29 16:23:38 +00:00
Vadim Zeitlin
7929902d65 no real changes, just fixed all occurences of 'occurence' typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-29 12:10:58 +00:00
Vadim Zeitlin
c565abe1c5 fix After{First,Last}() to work for strings with non-ASCII characters in UTF-8 build and added unit tests for this
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-29 12:08:44 +00:00
Julian Smart
8251c171de Fix for deleting first word in the control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-28 18:02:23 +00:00
Václav Slavík
12ca55868c wxGTK: Fixed printing to use fonts sizes adjustment consistent with wxMSW. In
particular, screen resolution no longer affects text size in printed output
when using wx's map-screen-to-paper approach to printing.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-28 09:33:04 +00:00
Jaakko Salli
614fbbad61 wxPropertyGrid::RegisterEditorClass() now CHECK_MSG()s for duplicate editor names
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-27 15:29:05 +00:00
Jaakko Salli
effb029c30 wxPropertyGridInterface docs cleanup and fixes, removed some rarely needed member functions with simple workarounds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-27 15:09:33 +00:00
Jaakko Salli
7a344f1be4 Fixed wxPGMultiButton (event handling, FinalizePosition() -> Finalize(), no longer using PG specific class macros in its sample), other editors.h interface fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-27 14:03:10 +00:00
Jaakko Salli
7ce66351b7 Fixed a warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-27 13:13:08 +00:00
Jaakko Salli
d9fb481c56 Fixed and clarified editor control event handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-26 18:20:17 +00:00
Vadim Zeitlin
3d9ecb8771 eliminate the hysteresis when scrollbars didn't disappear when the window was resized to be less than its virtual size and then resized back to be slightly greater than it in the native GTK version too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-26 17:36:35 +00:00
Vadim Zeitlin
b5f85206a9 fix ParseFormat("%d") to set the date it finds (#10002)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-26 15:27:08 +00:00
Vadim Zeitlin
06936905a4 using CLSCTX_ALL fails with Microsoft Office applications, correct the last change to use CLSCTX_SERVER only (see #9868)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-26 15:18:16 +00:00
Vadim Zeitlin
caf587aaeb don't give errors if SetLayeredWindowAttributes() is not available (as is the case under Win95)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 21:41:47 +00:00
Francesco Montorsi
cfaf8bd177 fix for non-PCH builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 18:36:16 +00:00
Francesco Montorsi
43e0946dcf build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 18:20:18 +00:00
Francesco Montorsi
0ef5b1dad1 provide backward-compat wxCursor(int) ctor; remove empty stubs of XBM ctor from all ports except gtk,motif; make all ports emit wxLogError on invalid bitmap types; implement wxCursor(const wxString&, ...) ctor on GTK (not tested yet)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 17:56:07 +00:00
Jaakko Salli
5a8009d2f1 Removed wxPropertyGridManager::GetChildrentCount() member functions - now use page->GetRoot()->GetChildCount() and such
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 17:23:54 +00:00
Jaakko Salli
9288df3401 AddPage(), InsertPage() now return page ptr instead of index
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 17:19:49 +00:00
Jaakko Salli
b96a14e334 Removed wxPGProperty:GetArrIndex() in favor of GetIndexInParent()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 17:04:11 +00:00
Vadim Zeitlin
c09b7217f6 don't test for both stream.fail() and stream.bad() as the latter implies the former; also use operator!() instead of fail() to make it more clear what's going on
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 16:50:48 +00:00
Jaakko Salli
2399c87cce Slightly better wxStockCursor usage
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 16:31:01 +00:00
Vadim Zeitlin
e58eaff761 specify the file name in IO errors messages; also make Do{Open,Save}Document() use the same logic flow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 16:27:22 +00:00
Jaakko Salli
1802a91dec Fixed bug: Settings property attribute to wxNullVariant would cause GetAttribute() to fail (wxPG SourceForge bug #2128485)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 16:13:32 +00:00
Jaakko Salli
81d73efcc3 Fix wxCursor() ctor compilation by casting argument to wxStockCursor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 16:11:58 +00:00
Robin Dunn
fa70ec2b51 Consolidate old and new implementations of Get/SetSelection
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 16:10:27 +00:00
Jaakko Salli
7de050ad3f Fixed bug: wxPGProperty::OnEvent() was never called if primary editor window was NULL (as could be if limited editing was used)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 15:59:49 +00:00
Vadim Zeitlin
c4dbb95303 fix parsing of IP literals in URIs, added test for it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 15:27:10 +00:00
Vadim Zeitlin
bd84061db3 removed hardcoded size of 66 bytes of PRINTDLG struct for mingw32, this breaks printing under Win64; a couple of minor style fixes but no real changes otherwise
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 14:00:15 +00:00
Francesco Montorsi
f4efd805a0 small build fixes for PCH-less builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 09:56:22 +00:00
Stefan Csomor
fc39cf7295 avoiding crash for pure modifier events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 06:37:09 +00:00
Robin Dunn
dd021ce2bd More changes needed to fix problems resulting from unnecessary wxCursor changes :-(
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 05:00:52 +00:00
Kevin Ollivier
4954ee5032 Get wxMediaCtrl stub impl. going for OS X Cocoa.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 00:02:52 +00:00
Kevin Ollivier
f53c4d3b88 Remove some wxCocoa stuff that isn't in OS X Cocoa.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 00:01:59 +00:00
Kevin Ollivier
95710acb00 #ifdef Carbon-specific code to get stubbed DND support compiling for OS X Cocoa.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-24 23:53:25 +00:00
Robin Dunn
e6ba38871f Unicode-related compile fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-24 23:44:34 +00:00
Robin Dunn
544cd5ac17 Fix wxStockCursor realted compile error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-24 23:41:25 +00:00
Francesco Montorsi
6869b469c6 fix build errors deriving from making wxColourData members private
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-24 20:21:36 +00:00
Francesco Montorsi
d4f392ea20 use wxStockCursor (as documented and as already implemented in wxMotif) instead of a plain 'int'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-24 19:40:13 +00:00
Francesco Montorsi
d62c1e628d changed wxColourData::GetCustomColour to const; there's no reason for it to be non-const; fixed wxColourData iface header
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-24 17:57:18 +00:00
Vadim Zeitlin
d86901f9f4 return false, not true, from wxSingleInstanceChecker::IsAnotherRunning() if an error occurred while opening or reading the lock file (#9986)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-24 13:47:41 +00:00
Vadim Zeitlin
7ce2fb7139 reverted r55167, see #9854
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-24 13:38:53 +00:00
Vadim Zeitlin
13139e9300 restore the original selection when the dropdown is cancelled even if it was -1; this fixes the problem of #9995 and the existing code didn't deal correctly with the problem of losing current text in the combobox when the dropdown was cancelled anyhow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-24 13:33:06 +00:00
Stefan Csomor
fbd5416f60 supporting GetSize, fixes #9969
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-24 09:18:38 +00:00
Stefan Csomor
01a33e9670 fixing compiles under certain flags
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-23 10:00:53 +00:00
Vadim Zeitlin
90815a4597 use wxGetDisplayPPI() instead of redoing it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-22 16:30:17 +00:00
Vadim Zeitlin
622f7a49ef use factor of 10, not 100, to convert mm to cm after mm2inches was fixed in r55800
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-22 16:27:43 +00:00
Vadim Zeitlin
d43be80dab use inches2mm instead of literal constant in wxGetDisplayPPI()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-22 16:26:11 +00:00
Vadim Zeitlin
8b2e0e6d19 position the insertion point to the start, not end, of the selection for compatibility with MSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-22 16:15:35 +00:00
Vadim Zeitlin
b09b3048c9 don't crash if the grid is being deleted while a cell editor is still shown (closes #9991)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-22 16:12:46 +00:00
Vadim Zeitlin
358e9f2f72 fix the event handling in presence of pushed event handlers broken by r55784 (closes #9992)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-22 14:11:40 +00:00
Stefan Csomor
41b93cd7d7 using new API instead of 2.8 compat, fixes #9990
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-22 14:00:03 +00:00
Stefan Csomor
451a00f7d7 fixing typo, thanks to Angelo Mottola
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-22 13:19:14 +00:00
Stefan Csomor
9f8062a0e4 fixing override, fixes #9985 (second error)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-22 12:24:52 +00:00
Kevin Ollivier
01250f9b2c Adding compiling (but not yet working) taskbar implementation for OS X Cocoa, mostly borrowed from wxCocoa. Also enabled HTML Help support as it seems this compiles fine now.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-22 00:51:32 +00:00
Vadim Zeitlin
92089d00a1 use ProcessEventHere() instead of ProcessEvent() in TryValidator() to avoid passing the unhandled event to wxApp before it can be processed by this window itself
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-22 00:34:14 +00:00
Vadim Zeitlin
bba5e72ad3 hook the docview-specific customization of event handling logic at TryValidator() level instead of ProcessEvent(): this ensures that the events are not sent to wxApp before they're passed to all the handlers which might process them (before the events were passed to wxDocument and then immediately to wxApp)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-22 00:33:11 +00:00
Vadim Zeitlin
25250d335f extracted the part of ProcessEvent() which is repeated multiple times during the handling of a single event in the new ProcessEventHere() method; this ensures that wxApp::FilterEvent() is not called multiple times for the same event unnecessarily
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-22 00:08:28 +00:00
Stefan Csomor
e912ebe39f fixing typo (lead to always floating layering for simple frames)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-21 20:04:04 +00:00
Jaakko Salli
af27647706 Fixed non-precompiled headers compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-21 19:58:19 +00:00
Stefan Csomor
f50491352a fixing focus, fixes #9985
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-21 18:52:01 +00:00
Jaakko Salli
4b5d2be396 Revised #ifndef WX_PRECOMP headers, added missing #include wx/wxcrtvararg.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-21 17:06:44 +00:00
Jaakko Salli
a6162a3eaf 'wx(U)LongLong << variant' type safety improved (now works even if variant has plain long value). Added << operator and WXVARIANT template specialization for wx(U)LongLong_t as well. Changed WX_PG_DECLARE/IMPLEMENT_VARIANT_DATA so that classname << variant can be customized.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-21 16:54:22 +00:00
Jaakko Salli
472137baeb Removed #include <typeinfo> (since C++ RTTI is no longer used)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-21 15:48:20 +00:00
Jaakko Salli
3c26d11be9 Moved SetPropertyAttributeAll() to wxPropertyGridInterface
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-21 15:42:08 +00:00
Vadim Zeitlin
74c80fe40b don't waste time sending out update UI events for separators, they can't be updated anyhow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-21 13:05:56 +00:00
Václav Slavík
f7b8e3d654 Get rid of gs_cairo; if wxGtkPrint* classes are used, Cairo is guaranteed to be available.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-21 11:38:31 +00:00
Václav Slavík
fc2bb342ec route all Cairo calls in GTK printing code through gs_cairo (is this still needed?)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-21 09:42:49 +00:00
Václav Slavík
40fcf546f6 added wxGetDisplayPPI() convenience function and wxPrintout::SetPPI*() overloads accepting single wxSize argument
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-21 09:35:49 +00:00
Václav Slavík
0c75b29e1e progress message passed to wxDC::StartDoc() is not appropriate for PostScript document title
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-21 08:49:08 +00:00
Kevin Ollivier
78d990152a Stubbed wxToolTip implementation to get code that uses it building.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-21 00:51:44 +00:00
Kevin Ollivier
cfea8e619a Source changes needed to get MDI support compiling on OS X Cocoa, and a explicit cast to CGImageRef so the compiler doesn't complain.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-20 23:06:58 +00:00
Vadim Zeitlin
8b5f6d9d47 use a single wxKeyboardEvent parameter instead of 4 bools in tons of places
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-20 00:09:28 +00:00
Vadim Zeitlin
8a3e536cd5 - Main change is the addition of wxGridSelectRowsOrColumns selection mode
(which is still probably buggy, wxGridSelection needs to be reviewed)
- Add XYToCell() overloads returning wxGridCellCoords (instead of modifying the
  argument passed by reference -- where did this come from?) and document them.
- Added GoToCell() which does make the new current cell visible unlike
  SetGridCursor() (which was documented as doing it, but wasn't)
- Changed SetCurrentCell() to only not change the cell if wxEVT_GRID_SELECT_CELL
  it generates is vetoed, not just processed as this seems to make more sense
- Split jumbo (~400 lines) ProcessGridCellMouseEvent() function into chunks
- Add many more comments to make reading this code seem less like puzzle
  solving for the next unfortunate soul to do it


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 23:33:04 +00:00
Vadim Zeitlin
0e0977894a make wxKeyEvent and wxMouseEvent derive from the same wxKeyboardState object (indirectly via wxMouseState in the case of the latter) to make Get/HasModifiers() available in wxMouseEvent as well while avoiding code duplication
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55745 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 18:41:41 +00:00
Jaakko Salli
d53f610c1c Eliminated WX_PG_DECLARE/IMPLEMENT_DERIVED_PROPERTY_CLASS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 17:24:34 +00:00
Jaakko Salli
697c314b16 Eliminate a warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 17:10:17 +00:00
Jaakko Salli
939d936402 Moved wxPGChoices m_choices member from various property classes to base wxPGProperty. This allows any property to have choices without subclassing and therefore work with Choice and ComboBox editors. Also removed redundant choice manipulation functions from wxPropertyGridinterface (ie. now use ones in wxPGProperty).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 16:57:33 +00:00
Jaakko Salli
57306cd4fd Do not insert client data if client data is not used
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 16:43:40 +00:00