Robert Roebling
a931295073
Rewrote scaling for GTK+ print
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-10 21:35:45 +00:00
Robert Roebling
6950be0111
Compilation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-10 16:41:16 +00:00
Vadim Zeitlin
bd5c396871
map wxFONTENCODING_ISO2022_JP to the correct Windows code page
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-10 15:29:19 +00:00
Vadim Zeitlin
5681ec3dfd
fix a warning about casting literal string constants to non-const char *
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-10 14:22:43 +00:00
Robert Roebling
32f34982cd
corrected some of 200 compile errors introduced by the latest global search and replace
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-10 14:16:22 +00:00
Robert Roebling
02255e07d7
Rewrote scaling code for GNOME print backend. The inverted Y axis is now handled internally. Resulotion is not set to 600 dpi
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-10 14:00:44 +00:00
Vadim Zeitlin
e1ef6b5da5
chop off the unwanted \r from GetLineText() return value for richedit 2.0 controls (patch 1780110)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-10 11:16:04 +00:00
Vadim Zeitlin
075946015d
Unicode compilation fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-10 10:51:12 +00:00
Vadim Zeitlin
ced3df7730
wxDL_XXX macros and dynamic loading cleanup:
...
1. Clearly document the wxDL_XXX macros; including their implicit usage
of m_ok member variable
2. Made sure they're used in the same way in all places they are used
(sometimes they were passed an object, sometimes a pointer, breaking
compilation: see patch 1791288)
3. Don't allocate wxDynamicLibrary objects on heap unnecessarily (which
removes the need to delete -- or leak, as it was -- them afterwards)
4. Some naming convention fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-10 10:49:55 +00:00
Vadim Zeitlin
d2175f3ecc
added wxApp::Set/GetAppDisplayName() (patch 1780414)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-09 23:27:23 +00:00
Vadim Zeitlin
9cf3d21870
added wxApp::Set/GetAppDisplayName() (patch 1780414)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-09 23:26:18 +00:00
Vadim Zeitlin
5595181f48
add wxSYS_DCLICK_TIME system metric constant; use it for the generic list control rename timer interval (patch 1782472)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-09 22:57:12 +00:00
Vadim Zeitlin
5bc3ef05b8
cache the result of wxGetOsVersion() (heavily modified patch 1783198)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-09 22:40:14 +00:00
Vadim Zeitlin
1d9473d33b
don't change locale in XRC GetFloat() method, change the strings to use the current locale decimal point separator instead (patch 1783849)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-09 22:24:43 +00:00
Vadim Zeitlin
2f3584b169
fix bug with mistakenly recognising 'wxdebug' as 'debug' and 'wxshared' as 'shared' (patch 1787101)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-09 21:45:58 +00:00
Vadim Zeitlin
4d5a1b0ab8
declare wxEVT_GRID_COL_MOVE event (which was defined but not declared in the header) and add macros for handling it (patch 1788077)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-09 21:39:11 +00:00
Vadim Zeitlin
6f6a69cb55
don't give spurious error message if non-empty status bar field style is specified in XRC (patch 1791037)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-09 21:32:44 +00:00
Vadim Zeitlin
5f77ee3b87
fixed off by 1 bug in wxDC::GradientFillLinear() (patch 1788549)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-09 19:36:50 +00:00
Vadim Zeitlin
ad91e1ade0
fix gcc warnings about float/double to int conversion after the latest changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-09 19:34:01 +00:00
Vadim Zeitlin
2a7431e130
no changes, just added a comment explaining the issues involved in doing the conversion in place in wxCStrData::AsChar()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-09 19:05:20 +00:00
Vadim Zeitlin
28be59b4ad
return empty string, not NULL, from wxCStrData::AsChar() if conversion to ANSI fails for compatibility with wxWidgets 2 and std::string
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-09 18:57:41 +00:00
Vadim Zeitlin
37ba70a520
added support for reading resolution information from TIFF, JPEG and BMP formats; corrected some bugs with saving resolution; added command allowing to see the image resolution (if available) to the sample (heavily modified patch 1790546)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-08 18:32:36 +00:00
Robert Roebling
66e2ba91b2
Compile error (no idea why Mingw doesn't like wxPoint())
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-08 18:08:14 +00:00
Vadim Zeitlin
0766270090
fix file names format in wxFileDataObject::GetDataHere() in Unicode build (replaces patch 1785191)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-08 11:37:01 +00:00
Vadim Zeitlin
f3955fdff6
added wxDirCtrl to the sample to allow testing of the file names dragging (based on patch attached to the bug 1775213)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-08 11:28:40 +00:00
Vadim Zeitlin
ab250e5c47
don't pass garbage to SetData() in wxURLDataObject::SetURL()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-08 00:32:56 +00:00
Vadim Zeitlin
4baf78001e
better document some of the incompatibilities introduced by the Unicode changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-07 23:47:52 +00:00
Vadim Zeitlin
42599b710d
change wxCmdLineEntryDesc::short/longName type to wxString for better compatibility with existing Unicode code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-07 23:41:56 +00:00
Vadim Zeitlin
a43bd048a3
fix unused parameter warning in wxSetEnv() in release build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-07 23:39:22 +00:00
Vadim Zeitlin
e6d4038a8b
don't use _T() inside wxGetTranslation() and related macros (wxTRANSLATE, _, ...) to preserve compatibility with the old ASCII build (even at the expense with the Unicode build compatibility)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-07 21:47:45 +00:00
Vadim Zeitlin
066f3611df
don't use _T() inside wxGetTranslation() and related macros (wxTRANSLATE, _, ...) to preserve compatibility with the old ASCII build (even at the expense with the Unicode build compatibility)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-07 19:34:56 +00:00
Vadim Zeitlin
a0fef35d6b
changed wxCmdLineEntryDesc::short/longName fields type to char* from wxChar* (non-ASCII options are uncommon but NULL values are often specified for these fields) and made description field a wxString (as it can be constructed from either char or wchar_t strings and normally shouldn't be NULL)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-07 19:32:16 +00:00
Vadim Zeitlin
fdbd123ef9
changed wxCmdLineEntryDesc::short/longName fields type to char* from wxChar* (non-ASCII options are uncommon but NULL values are often specified for these fields) and made description field a wxString (as it can be constructed from either char or wchar_t strings and normally shouldn't be NULL)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-07 19:31:55 +00:00
Julian Smart
b72812a640
Only write text colour if the colour is valid
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-07 14:16:07 +00:00
Robert Roebling
1d9fe50dc9
Patch to use high printer resolution instead of Cairo's 72dpi
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-07 14:05:13 +00:00
Robert Roebling
4d5501cc75
minor corrections, made non-public API private
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-07 13:17:55 +00:00
Robert Roebling
892434f06f
prevent double deletion of cairo lib
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-07 07:40:38 +00:00
Robert Roebling
0187f0bcf4
wxDC::Clear() shouldn't do anything in printing DCs (I think)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-06 20:30:07 +00:00
Robert Roebling
cf509a9038
Removed run-time dependency on libpangocairo
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-06 17:56:09 +00:00
Robert Roebling
fd220f13d4
Add Cairo to build, remove run-time dependency
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-06 17:31:51 +00:00
Robert Roebling
d494613ac1
Make use of wxCairoLibrary from within wxGtkPrint
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-06 17:24:59 +00:00
David Elliott
780220b099
Make a slider control created with a particular size/position adjust itself to the only size that works and adjust the positioning accordingly.
...
Implement the wxSL_AUTOTICKS style.
Patch from Mark Oxenham. Copyright 2007 Software 2000 Ltd.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-06 16:41:31 +00:00
Robert Roebling
50fae378f2
Add wxCairoLibrary (not yet built)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-06 14:04:47 +00:00
Robert Roebling
420db5a599
Move the wxDL_ macros to wxDynLibrary
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-06 13:37:32 +00:00
Václav Slavík
c5288c5cfe
fixed wxString::FromAscii signature
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-06 13:31:08 +00:00
Robert Roebling
c2331d9b50
Explain various printing backends in GTK+
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-06 13:28:37 +00:00
Robert Roebling
92fdffb272
Mention wxUSE_GTKPRINT define
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-06 13:26:31 +00:00
Chris Elliott
89e704cf63
add missing timer.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-06 09:19:38 +00:00
Vadim Zeitlin
c8aa3d8017
fixed off by 1 bug in converting premultiplied DIB pixel values to non-premultiplied image ones
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-05 22:58:27 +00:00
Robin Dunn
4f696af8d6
Pass length including the null-terminator to cWC2MB
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-05 22:53:29 +00:00