Václav Slavík
d3cefe87d7
added wx[W]CharBuffer/wxCStrData overloads to remaining wxString methods that need them
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-03 10:23:20 +00:00
Vadim Zeitlin
49c9d05986
removed unneeded duplication of DoSetSizeHints() in wxTLWBase (as wxWindow version already does the same thing) and made wxTLW::SetMin/MaxSize() implementation less verbose
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-03 00:25:46 +00:00
Václav Slavík
c8b1fdc0b5
wxAppTraits::SetLocale() is wxUSE_INTL=1 only
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-02 20:32:44 +00:00
Václav Slavík
cb2f2135b0
added convenience functions wxString::To/From8BitData() for storing g binary data in wxStrings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-02 18:08:56 +00:00
Robert Roebling
04ab8b6ddf
Moved all the coordinate system calculation to wxDCBase
...
and thus removed all the duplicated code in all wxDC
classes.
Problematic is that wxSVGFileDC and wxPostscriptDC inherit
from wxDC and therefore include platform specific code
(also before this change) so I chose to override all
SetLogicalOrigin() etc. methods in these classes and
call their wxDCBase methods thereby circumventing the
platform dependent code.
I'm afraid the Mac code will require updating, too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-02 11:05:45 +00:00
Václav Slavík
1e50d914af
made wxConvXXX objects usable at static initialization time
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-02 09:03:03 +00:00
Robert Roebling
621b83d9b3
Made device to logical and vv conversion methods
...
virtual and implement them like any other method
in the wxDC classes, not only in the their files
but somehow belonging to the wxDCBase class.
This is required for plugging in differnt DC backends
with different conversions.
Ideally (and absolutely possible ) all these methods
should be removed and just the one in wxDCBase
should stay using values set in the various
derived classes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 21:28:29 +00:00
Václav Slavík
df08bf5ab3
added inline plural form of wxGetTranslation to wxUSE_INTL=0 case for use with non-default domain too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 21:19:02 +00:00
Václav Slavík
2765cbb5aa
define wxPLURAL even if wxUSE_INTL=0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 21:13:56 +00:00
Vadim Zeitlin
2c17722ec8
fix wxStringOutputStream::Write() in Unicode build when the output overlaps a boundary between UTF-8 characters (closes bug 1701426)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 14:11:06 +00:00
Vadim Zeitlin
781130bf60
fix m_sizerPage memory leak for the wizards not using sizers (replaces patch 1708331, fixes bug 1647290)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-30 19:43:28 +00:00
Vadim Zeitlin
97b253782a
use a marginally more precise but, more importantly, easier to understand, value for METRIC_CONVERSION_CONSTANT
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-30 16:25:57 +00:00
Vadim Zeitlin
f11af09331
assert that wxRound() argument is in the supported range
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-30 16:23:17 +00:00
Václav Slavík
48670a3300
always define wxLocaleIsUtf8
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-30 12:46:30 +00:00
Václav Slavík
44be939a5e
fixed release build compilation with compilers without __VA_ARGS__
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-30 12:08:01 +00:00
Václav Slavík
37db38bc52
OpenWatcom >= 1.2 has __VA_ARGS__
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45712 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-29 10:28:22 +00:00
Václav Slavík
82e77a8027
compilation fixes for --disable-log
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-29 09:02:38 +00:00
Václav Slavík
564a5bbe57
added support for passing std::[w]string to 'vararg' templates
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-29 08:04:58 +00:00
Stefan Neis
951f68d01c
Adapted to API changes with respect to GetTextExtent (patch #1709152 ).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-28 10:04:34 +00:00
Václav Slavík
04d29fda82
added missing #include "wx/buffer.h"
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-28 07:56:45 +00:00
Václav Slavík
e3e8e3c0aa
include wxchar.h from string.h in 2.8 compatibility mode to prevent lots of compilation errors
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-27 10:08:53 +00:00
Václav Slavík
92a17abc1b
added copy ctor to wxCStrData to fix crashes when passing to vararg functions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-27 08:48:56 +00:00
Robert Roebling
da1bd25f29
Added IsOfStandardClass() as per wxMSW.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 18:42:23 +00:00
Václav Slavík
2523e9b700
use UTF8-encoded char* strings in UTF8 build instead of wchar_t* if the current locale uses UTF8;
...
fall back to widechar CRT functions in the locale is not UTF8
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 11:40:04 +00:00
Chris Elliott
210bb741b9
remove warnings of intentionally unreachable code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 11:11:28 +00:00
Chris Elliott
1c6c52fdef
tested and applied http://article.gmane.org/gmane.comp.lib.wxwidgets.devel/85790/
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 10:50:54 +00:00
Paul Cornett
82008f15b7
replace 5 copies of size constraining code with one function
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 05:22:09 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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