Ryan Norton
44d271da3e
increase worst case to *4 for UTF8, switch a memcpy for wxMemcpy
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 23:01:46 +00:00
Vadim Zeitlin
9266e0ecde
undid last change to wxBitmapButton::GetBestSize(), in fact it doesn't make sense to support wxBU_EXACTFIT for it at all, so just removed the code doing it and mentioned it in the docs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 22:43:14 +00:00
Ryan Norton
ce321570b0
wxURL - doc cleanups, depreciated more methods, more source comments. wxURI - enclosed literal characters with wxT, more source comments, doc cleanups, changed StartsWith(x) to [ou] == x
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 22:22:40 +00:00
Vadim Zeitlin
97786ab70f
fixed wxBU_EXACTFIT handling in wxBitmapButton (closes 1056234)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 16:47:39 +00:00
Włodzimierz Skiba
1ccc19ce9d
Borland warning fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 11:48:32 +00:00
Włodzimierz Skiba
ce403057df
Warning fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 11:43:53 +00:00
Włodzimierz Skiba
bee671476e
Warning fix due to unsigned nature of wParam.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 11:41:35 +00:00
Václav Slavík
c4d25c01ae
fixed wxTextCtrl::EmulateKeyPress to work in Unicode build of wxGTK2
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 11:19:39 +00:00
Vadim Zeitlin
adb61e4d0d
temp compilation fix for wxMac
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 10:54:50 +00:00
Ryan Norton
174f2229cd
Use proper wxURI unescape instead of old way
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 10:00:05 +00:00
Ryan Norton
86470d432f
final wxURI API changes. Changed Get to BuildURI to better reflect what its doing. Added wxURI::Unescape to unescape characters in a url or uri. Added wxURI::BuildUnescapedURI. Changed the wxURL convertXXXuri methods to use uri methods instead, and depreciated these methods.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 09:57:43 +00:00
Ryan Norton
b60b2ec8ac
Inherit wxURL from wxURI, providing assignment, copy construction, comparison, and less duplication of code. Change wxURI a bit to meet some of Vadim's reccommendations - move accessors into header, and finish some of his other reccom. Change assignment to use const wxString& instead of const wxChar*. Change wxURI docs to reflect that it inherits from wxObject. Made preliminary docs for the wxURL transition. Add some unit tests for the transition.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 06:49:46 +00:00
Vadim Zeitlin
8404931e0d
minor cleanup: don't use bool parameters, don't typedef the enums, don't abuse references
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-28 01:03:38 +00:00
Vadim Zeitlin
fd35980623
we don't have to call png_set_error_fn() any more after last commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-27 23:07:11 +00:00
Vadim Zeitlin
d10c19d6e0
use wx_png_error/warning when calling png_create_read/write_struct(), don't return from wx_png_error
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-27 22:58:29 +00:00
Robert Roebling
01b5396fce
Removed Pango homemade implementation and
...
reinstated old code that uses /Times and
/Helv etc for printing PostScript.
Various smaller fixes related to printing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-27 22:55:30 +00:00
Ryan Norton
dd65d8c830
wxURI. Move Convert/to/fromURI into uri.cpp so that it is compiled in base. Regenerate Bakefiles.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-27 22:47:26 +00:00
Vadim Zeitlin
b2d739ba55
don't preselect the first item if the array with the initial selections is empty in wxMultiChoiceDialog
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-27 19:23:59 +00:00
Julian Smart
34e0d9f874
Now possible to compile with wxURL disabled
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-27 17:33:32 +00:00
Julian Smart
cf49c9551b
GTK+1 doesn't have gtk_window_set_type_hint
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-27 16:44:31 +00:00
Vadim Zeitlin
48a611cf00
don't abort if a shared library can't be loaded under OS X, just return an error
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-27 13:53:37 +00:00
Stefan Csomor
0f4c414099
setting the invoking window added to two other wxMenuBar manipulating methods
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-27 12:59:19 +00:00
Robert Roebling
ff910433fc
Added initial support for GNOME printing.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-27 11:19:30 +00:00
Robert Roebling
9f1316dc97
Moved "enablePrint" setting around.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-27 11:16:22 +00:00
Ryan Norton
c81fc3344d
Use wxStringBufferLength instead of wxXCharBuffer in constructors with conversion. Avoids both an allocation and a memory copy in normal (non-stl) wx mode with wxString
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-27 07:48:28 +00:00
Stefan Csomor
a99915c224
fixes angle calculation (on mac ALWAYS clockwise)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-27 07:45:32 +00:00
Robin Dunn
3d78a53231
The old workaround for the 1-Jan-1970 bug still failed in some
...
timezones. This new workaround seems to work better.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-27 01:06:45 +00:00
Robin Dunn
410bb8c16b
Return from DoDrawSpline without doing anything (like segfaulting
...
<wink!>) if the list is empty.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-27 01:00:09 +00:00
Robin Dunn
1b10056f63
avoid crash if active_child_frame is not set yet
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-27 00:58:00 +00:00
Robin Dunn
1b135c93ed
Ensire that m_value is updated when SetSelection is called
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-27 00:56:50 +00:00
Václav Slavík
37780c641b
fixed wxFRAME_TOOL_WINDOW to use 'utility' type hint instead of not rendering any frame at all
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-26 22:45:32 +00:00
Robert Roebling
6038ec8eaf
Next phase of Print Factory code.
...
Created a mini interface so that the generic
wxPrintDialog can show a "printer" and a
"status" line if the print factory wants
this to be the case.
Moved some code (print mode) back from the
PostScript only print data to the general
print data since it is sort of general.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-26 19:49:59 +00:00
Václav Slavík
63de666d9d
at least partially implemented vswscanf() -- otherwise wx apps compiled against glibc 2.1 wouldn't run at all
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-26 17:42:39 +00:00
Kevin Hock
19722331f8
MutexGui calls in WakeUpIdle are not needed under GTK2, fixing the long-standing "random" lockups experienced when using wxPostEvent from a thread. Collaboration with RR.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-25 03:24:42 +00:00
Vadim Zeitlin
7de8eddef5
use GetBestSize() and not GetSize() for AsIs() size constraints -- this makes much more sense
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-24 14:49:38 +00:00
Stefan Neis
a66dece0c5
Removed list of modeless windows (apparently no longer needed).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-24 13:46:06 +00:00
Stefan Csomor
fc58c6be4e
corrected textbackground for theme text output
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-24 12:48:00 +00:00
Stefan Neis
86dc230162
Fixed handling of modal dialogs.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-24 12:08:25 +00:00
Stefan Csomor
c871c71b9b
adding Offset to wxRegion / carbon
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-24 11:43:07 +00:00
David Elliott
f7ef06022c
Fix wxExecute for ports other than wxMac and wxCocoa on Darwin
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-24 07:36:16 +00:00
Vadim Zeitlin
f90387b4b4
don't give focus to the window if it ate the left mouse click
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-23 21:26:01 +00:00
Václav Slavík
260a67b7aa
fixing sizing bug inside wxWizard
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-23 16:10:26 +00:00
Václav Slavík
b0021947ef
added InvalidateBestSize calls when combobox's content changes; DoGetBestSize now accounts for the width returned by GTK+ too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-23 16:06:11 +00:00
Vadim Zeitlin
6ce8c562b2
don't use _() as default parameter for wxPrintDialogBase title
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-23 13:10:00 +00:00
Kevin Hock
34621cc5d6
Documentation patch from Olly Betts
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-22 19:11:07 +00:00
David Elliott
5dc471408f
Cleaned up getRectsBeingDrawn:count: related code.
...
* Removed the exception handler; it's not needed anymore (thanks Ryan).
* Split the if statement and then case into two lines instead of one.
* Took some of the suggestions from the cocoa-dev mailing list:
- Changed code to use normal messaging syntax.
- Provided a category interface to silence the compiler warning on 10.2.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-22 16:07:31 +00:00
David Elliott
9d1e4703d3
Forgot the appropriate return statement for the last patch.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-22 15:50:24 +00:00
David Elliott
4092a27504
Change friendship so that the base implementation class is the friend.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-22 15:42:16 +00:00
Vadim Zeitlin
c39e759922
Unicode compilation fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-22 00:23:35 +00:00
Stefan Neis
21708c7331
Added stubs for OS/2 to new printing system.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-21 21:32:57 +00:00