Commit Graph

39720 Commits

Author SHA1 Message Date
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
Vadim Zeitlin
3b170aa895 don't pass unneeded arguments to AdustForGrowables()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 20:27:36 +00:00
Vadim Zeitlin
66c59e2c54 add m_ prefix to the member variables and remove unneeded dialogParent field (part of patch 1702962)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 20:20:51 +00:00
Vadim Zeitlin
7fca7a731d don't leave pixels due to rounding errors in wxBoxSizer, allocate the extra pixels to the last item(s) instead, as wxFlexGridSizer (now) does
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 19:32:38 +00:00
Vadim Zeitlin
97800f6618 Many changes/fixes to wxFlexGridSizer implementation (no API changes):
- fix the problems addressed by the patch 1667343:
 * only distribute extra space between growable items, not all space
 * take hidden items and gaps into account for ALL grow mode layout
 * fix rounding errors by allocating the remaining pixels to the last item(s)
- refactor the code to avoid duplication between row/column cases
- use STL-like wxList methods instead of compatibility ones


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 19:20:14 +00:00
Vadim Zeitlin
9c57566224 updated SetFont() documentation: it returns bool, not void (bug 1705330)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 17:47:08 +00:00
Paul Cornett
095cb950db fix double to int conversion warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 17:43:14 +00:00
Vadim Zeitlin
b9a325a19f don't leave gaps around hidden columns/rows in wxFlexGridSizer (closes bug 1659872; part of patch 1667343)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 15:14:36 +00:00
Vadim Zeitlin
8906471733 distribute only the extra, free, space according to the items proportions in wxBoxSizer and not the entire available space
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 12:50:01 +00:00
Vadim Zeitlin
55bfbcb92b (blind) compilation fixes after latest changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 12:31:08 +00:00
Vadim Zeitlin
55809d1394 don't pass 0 time_t to Borland localtime(), it crashes (bug 1704438); also check for error return from both localtime() and gmtime()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 00:03:16 +00:00
Kevin Ollivier
a930afc71b Return wx menu items inserted into the Window system menu, similar to what we do for Help and application menus.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 23:01:28 +00:00
Kevin Ollivier
6ff68ce9ad Fix bug with m_current causing EVT_LIST_KEY_DOWN events not to fire in virtual mode, also added handler for navigation keys and tweaked the virtual code for setting selection.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 21:44:31 +00:00
Vadim Zeitlin
b8e3f1cfb7 don't let def window proc start another drag operation if we just started one ourselves for a multiselection tree (replaces patch 1702133)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 21:14:59 +00:00
Vadim Zeitlin
361f4288eb added support for image resolution options to PNG handler (heavily modified patch 1704128)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 19:29:01 +00:00
Vadim Zeitlin
defde6bc66 allow having children of status bar in XRC (patch 1704125)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 18:57:50 +00:00
Vadim Zeitlin
806ad81958 readded wxEditableListBox as part of adv library
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 18:50:50 +00:00
Vadim Zeitlin
5f4d182091 added safe check for Pango version and use it to avoid underline hack in wxDC::DrawText() (modified patch 1702301)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 18:32:29 +00:00
Vadim Zeitlin
7e0bac9d7d add missing dynarray.h includes (patch 1702312)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 18:13:48 +00:00
Vadim Zeitlin
df18cc7aa1 added wxStreamBuffer::Truncate() (patch 1687081)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 18:11:37 +00:00
Paul Cornett
10bd1f7d3b remove redundant GTK_WIDGET casts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 17:02:29 +00:00
Vadim Zeitlin
c079af66c8 fix WXDLLIMPEXP_STC definition when building all wx libraries as DLLs (patch 1704527)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 15:13:37 +00:00
Vadim Zeitlin
6ad0a7d52f fix bug with not updating the last line correctly when a group was deleted and recreated (bug 1685312); added a unit test for this
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 15:04:52 +00:00
Vadim Zeitlin
11624aa059 oops, restored wrongly removed semicolon
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 14:58:46 +00:00
Vadim Zeitlin
5d262fdda8 removed extraneous semicolons
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 10:52:48 +00:00
David Elliott
829a2e9521 Remove Objective-C class posing for everything except for NSApplication.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-20 22:27:56 +00:00
David Elliott
ad3628fa86 Move Objective-C interfaces into separate header files in preparation for being able to use them from other source files.
No new or changed code.  Work on behalf of Software 2000 Ltd.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-20 20:21:52 +00:00
Chris Elliott
781a8d7f3e add const to avoid hiding warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-20 11:03:28 +00:00
Benjamin Williams
03dc5fadef fixed bug when a fixed pane is resized inside a fixed dock
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-20 09:03:43 +00:00