Commit Graph

39748 Commits

Author SHA1 Message Date
Vadim Zeitlin
248d0a8970 move wxKEY_XXX constants to wx/defs.h from wx/list.h and wx/hash.h to avoid duplicating their declarations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 02:15:24 +00:00
Vadim Zeitlin
4ff9366dc1 don't assert in SetSelection(wxNOT_FOUND), just clear text zone contents (patch 1707475)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 02:13:08 +00:00
Vadim Zeitlin
90576c50fc allow to test changing combobox selection too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 02:10:36 +00:00
Vadim Zeitlin
46bd197877 use wxCopyRectToRECT() instead of duplicating its code (patch 1707294)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 01:26:46 +00:00
Robin Dunn
96aaaff865 invalidate the best size when adding or deleting items
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 01:04:47 +00:00
Robin Dunn
1b3b96d84c ensure there is a current cell before using it to try and get width/height
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 00:15:42 +00:00
Vadim Zeitlin
0518029cec leave only wxString overloads for of the functions working with string keys; remove the old variant of hash table (deprecated since 2.4)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-25 19:21:46 +00:00
Vadim Zeitlin
b044829c47 compilation fix after c_str() changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-25 12:36:28 +00:00
Robert Roebling
235751501d Added compile guards to wxEditableListBox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-25 09:22:02 +00:00
Robert Roebling
23714996e9 Added mini docs for wxChoicebook
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-25 08:40:42 +00:00
Robert Roebling
f13a38a5fa Added mini docs to wxListbook
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-25 08:33:19 +00:00
Robert Roebling
1be9182df8 Typo.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-25 08:20:03 +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
d2b23b6730 don't declare inline function with dllexport declaration, this provokes mingw32 warnings and is unnecessary anyhow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-25 01:38:11 +00:00
Robin Dunn
52cd064365 Use wx.FileHistory for the recent files menu
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-24 20:25:07 +00:00
Robert Roebling
f7ed8c899f Use child's listmodelnotifier's destructor (by overloading
it) to get informed about the destruction of the child
   model in a sorted model. Removed Freed() method used for
   that so far.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-24 18:00:14 +00:00
Václav Slavík
c2ac2afd09 removed wxCStrData::operator bool(), using c_str() return value as bool doesn't make any sense and any code that stops compiling because of this is almost certainly buggy
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-24 16:19:27 +00:00
Václav Slavík
c87a0bc8cb corrected (Do)GetWriteBuf() return types to use more appropriate type (no real difference)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-24 15:51:51 +00:00
Václav Slavík
baf3d1dc0a added test for a crash when passing wxCStrData constructed from a literal (operator?: operand) to a vararg template
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-24 14:09:51 +00:00
Václav Slavík
9ffb659a29 fixed broken wxCStrData and operator?: check
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-24 12:35:30 +00:00
Václav Slavík
c7c94fa73e removed unused APPEND_STR macro
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-24 10:59:58 +00:00
Robert Roebling
1a64259d4e Correct MVC update region in GTK+ native version
so that it takes horizontal scrolling into account.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-24 09:44:32 +00:00
Robert Roebling
2fa73716ca Change SetValue( wxVariant &value ) to
SetValue( const wxVariant &value )
    (already documented)
   Delete in-place editing control through
    pending list, not in event handler.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-24 09:36:48 +00:00
Robert Roebling
2d9152d5d6 Mention that wxBookCtrlBase derived controls do derive
from that common class and link it to the wxBookCtrl
    overview.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-24 08:28:29 +00:00
Robert Roebling
3203e334b0 Updated docs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-24 08:13:25 +00:00
Paul Cornett
3c95c71037 Fix window being repositioned after hiding, then reshowing.
Fix wrong return in Show().


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-24 03:44:48 +00:00
Robin Dunn
da9714b5c8 reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 23:27:13 +00:00
Robin Dunn
a7c987f91e Tweaks needed to update to current CVS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 23:24:56 +00:00
Vadim Zeitlin
9cc79dd629 fix bug introduced in wxFontRefData::SetNativeFontInfo() in 1.89: remember that we do have native font info
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 22:19:12 +00:00
Vadim Zeitlin
7549148b56 fix SelectItem() for single selection case which was broken by recent changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 22:08:41 +00:00
Václav Slavík
5becc84185 ANSI build compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 21:52:57 +00:00
Václav Slavík
db2a7aabf9 compilation fix: setlocale() returns non-const string pointer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 21:25:26 +00:00
Václav Slavík
cb352236d9 added code for checking if the current locale is UTF-8 at runtime
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 20:42:13 +00:00
Vadim Zeitlin
1e085eeb89 tiny change to make g++ 3.3 compile the latest version
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 20:17:52 +00:00
Vadim Zeitlin
353a4edc6e added implicit conversion of wxString to const void * for compatibility with the code doing things like file.Write(s, len)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 20:14:18 +00:00
Vadim Zeitlin
31fdb8d993 use GetParentForModalDialog() in ShowModal() to ensure we don't select a window being deleted as parent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 20:09:35 +00:00
Vadim Zeitlin
893f78406d test that the candidate parent window isn't being deleted (this would result in a crash later)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 20:07:26 +00:00
Paul Cornett
afde166737 revert move events change, it blocks programmatic move events as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 15:37:21 +00:00
Vadim Zeitlin
e8375af8ff remove wxWindow::m_needParent and use GTKNeedsParent() which can be overridden in just wxMenuBar (and not set in each and every wxGTK control)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 15:16:06 +00:00
Robert Roebling
fbcb02294f Typo in docs [ 1693034 ] 2.8.3: wrong docs for wxCHECK_W32API_VERSION
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 09:28:08 +00:00
Paul Cornett
dc89b7bf7b don't send move events for size changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 04:44:51 +00:00
Paul Cornett
0e795b0597 fix return type for "map_event" and "unmap_event" handlers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 04:33:47 +00:00
Vadim Zeitlin
4745f3c6ae really ensure that the window being centered is fully visible (fixes bug reported in patch 1683239); also place it on the same display as its parent, if any
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 23:07:28 +00:00
Vadim Zeitlin
df57f6bea3 compilation fixes for PCH-less build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 22:20:57 +00:00
Vadim Zeitlin
8e1dac8274 added wxStdDialogButtonSizer test (patch 1705382)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 21:25:24 +00:00
Vadim Zeitlin
b045eff215 detect if there was an error in standard GTK+ options processing and exit in such case
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 21:19:53 +00:00
Vadim Zeitlin
f7a3c9be64 update wxApp::argc/argv to remove the options parsed by GTK+ itself from them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 21:17:49 +00:00
Vadim Zeitlin
d3a0a0eeab added wxAppTraits::GetStandardCmdLineOptions() allowing to add the description of the standard toolkit options to the usage message and implement it for wxGTK2 (patch 1703077)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 20:54:07 +00:00
Vadim Zeitlin
2229243bdf added wxDialog::GetParentForModalDialog() and use it to try to always create modal dialogs with a parent (slightly modified patch 1702962)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 20:34:41 +00:00
Vadim Zeitlin
a2979ead8d added HasExtraStyle()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 20:30:39 +00:00