Vadim Zeitlin
af0ac990fc
Add wxXmlResource::LoadObjectRecursively().
...
These methods can be used to load objects from anywhere in the XRC resource
tree and not just from the top level.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-14 23:22:00 +00:00
Vadim Zeitlin
dc2575bad4
Compilation fixes for wxUSE_FONTMAP==0.
...
Closes #11150 .
Closes #11152 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-28 10:44:12 +00:00
Vadim Zeitlin
a58804eae1
Reset static flag on cleanup.
...
s_stdIDsAdded was not reset and so the standard IDs were not added again if
the library was initialized, shut down and initialized again.
Closes #11075 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-05 17:24:57 +00:00
Vadim Zeitlin
9a83f86094
Globally replace _T() with wxT().
...
Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660 ).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 20:30:22 +00:00
Vadim Zeitlin
a7435c3ec4
added own{fg,bg,font} allowing to set non-inheritable fore/background colours and font from XRC
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-13 02:48:38 +00:00
Vadim Zeitlin
9c1d2aa29c
fix handling of wxBitmap nodes broken by previous changes; remove the special case of passing empty attribute name to GetBitmap/Icon(wxString) and use the overload taking wxXmlNode directly instead
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-13 21:54:30 +00:00
Vadim Zeitlin
326462ae94
add support for loading wxListCtrl items and wxImageLists from XRC ( closes #10647 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-07 17:29:57 +00:00
Václav Slavík
44108a078f
optimized <object_ref> handling for the common case of simple reference with no overwrites
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-03 07:10:23 +00:00
Václav Slavík
a1eeda0be2
fixed XRC errors location reporting when using <object_ref>
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-03 07:00:24 +00:00
Václav Slavík
1c60f64458
set icons bundle, not single icon, for frames loaded from XRC
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-29 21:25:23 +00:00
Václav Slavík
159852aeae
fixed wxXRC compilation with --disable-filesystem (bug #10580 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-16 13:18:27 +00:00
Václav Slavík
819559b2ac
better XRC errors reporting: report location of the error and use unified formatting
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-15 10:29:14 +00:00
Václav Slavík
2bb9a404fb
added wxXmlResource::LoadAllFiles()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-13 13:26:46 +00:00
Francesco Montorsi
a4d291f0ab
remove wxSYS_DEFAULT_PALETTE: it's supported only by wxMSW and it never worked there: GetStockObject(DEFAULT_PALETTE) returns a palette and not a font; so the resulting wxFont is wrong.
...
Expand and correct documentation for various system constants.
Provide wxSYS_COLOUR_FRAMEBK as a synonym for wxSYS_COLOUR_BTNFACE as it is the colour which must be used to make wxFrame background coherent with the background of the controls they (eventually) contain.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-04 15:19:58 +00:00
Václav Slavík
04ae32cdab
added wxXmlResource::LoadFile() to avoid URL-vs-filename ambiguity in Load()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-26 00:17:23 +00:00
Václav Slavík
acd32ffcdb
fixed wxXmlResource::Load's detection of filenames to be done as early as possible
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-26 00:13:03 +00:00
Vadim Zeitlin
23239d944a
add public wxXmlResource::GetResourceNode() which can be used directly instead of deriving from wxXmlResource and using FindResource()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-22 21:52:00 +00:00
Francesco Montorsi
9690b00654
always remember to test IsOk() after using wxFileInputStream
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-08 18:26:35 +00:00
Vadim Zeitlin
cffff062b3
no changes, just added a TODO comment
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-02 18:10:58 +00:00
Vadim Zeitlin
cc378c2d75
added wxXmlResource::FindXRCIDById() ( #10026 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-14 11:44:10 +00:00
Vadim Zeitlin
e5bb501b98
return false if the file passed to Load() doesn't exist or is an archive without XRC files inside
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-03 15:51:25 +00:00
Vadim Zeitlin
8758875e0b
added enabled and hidden attributes to radio box items in XRC
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-02 18:21:38 +00:00
Vadim Zeitlin
aaa0312528
extract parts of wxXRC depending on wxAdv in a separate file to allow statically linking with wxXRC but without wxAdv; note that rebaked project/make files also contain ustring.cpp/h now
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-02 14:15:22 +00:00
Vadim Zeitlin
6b1eedc1bb
add more stock items ( #9799 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-01 14:38:02 +00:00
Václav Slavík
424af7aabf
use iterators instead of c_str() in wxXmlResource::GetText()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-09 23:05:18 +00:00
Václav Slavík
63feebce0a
compilation fixes for !wxUSE_FONTMEM case
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-06 21:11:59 +00:00
Vadim Zeitlin
cfd9159888
replaced test for inexistent wxUSE_LOCALE with the correct wxUSE_INTL
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-03 15:33:28 +00:00
Vadim Zeitlin
35f860fa23
don't use wxLocale if wxUSE_LOCALE==0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-12 17:10:47 +00:00
Vadim Zeitlin
fd230129b5
fix (one off, so not really important) memory leak which happened if an application using XRCID() in event tables didn't initialize (and hence didn't shutdown) wx
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-24 02:38:56 +00:00
Václav Slavík
6251e0ea4a
fixed wxXmlResource::GetText() in ANSI build to correctly convert the string to current locale's charset
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-14 22:36:42 +00:00
Václav Slavík
f8b1df0b15
fixed memory leak in wxXmlResource introduced when fixing wxVector<> usage (patch #1869602 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-11 22:46:26 +00:00
Vadim Zeitlin
cf2810aa39
use wxWindowIDRef to transparently implement auto-generated ids ref-counting (slightly modified patch 1835458)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-06 14:38:44 +00:00
Václav Slavík
f396e5a7ca
fixed incorrect use of wxVector<> in wxXRC
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-31 09:45:19 +00:00
Robin Dunn
d73195fd20
Add wxID_EDIT to the list of stock IDs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-06 18:10:52 +00:00
Vadim Zeitlin
f35fdf7e4a
added logic to manage automatically allocated ids in-use status to avoid clashes for long-running programs (modified patch 1800016, incidentally fixes bug 1832620)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-16 23:25:18 +00:00
Vadim Zeitlin
0edeeb6d96
use wxWindow::NewControlId() instead of wxNewId() to avoid clashes with user-defined ids; bug fixes in wxMSW for negative menu and toolbar items ids
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-20 22:58:55 +00:00
Václav Slavík
eb2d0d232c
use wxVector<T> instead of wxList in wxXmlResource code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-10 22:26:39 +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
Václav Slavík
288b6107e1
renamed wxXmlProperty to wxXmlAttribute, plus implied method names changes (bug #1751761 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-14 10:07:41 +00:00
Václav Slavík
c560da981a
use char* instead of wxChar* for XRC IDs to save space; GetXRCID() takes wxString argument
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-15 15:12:51 +00:00
Václav Slavík
193d0c9310
PCH-less compilation fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45699 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-27 21:32:40 +00:00
Václav Slavík
d7a80cf5cd
use wxString for wxXmlResource::Set/GetDomain(), it's simpler
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 21:07:36 +00:00
Vadim Zeitlin
0fdd3cc881
reverted last commit, using result of NewControlId() when creating the control (instead of wxID_ANY) results in an assert
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-21 01:01:39 +00:00
Vadim Zeitlin
9249d38d6e
use wxWindow::NewControlId() instead of wxNewId() to avoid clashes with the user-defined ids
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-18 14:15:54 +00:00
Michael Wetherell
4532786ee2
Add wxFS_SEEKABLE to wxFileSystem::OpenFile calls for images.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-18 18:43:13 +00:00
Robert Roebling
9e29cd0a28
[ 1581391 ] wxAnimationCtrl XRC handler
...
(most of)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-21 13:59:25 +00:00
Włodzimierz Skiba
02761f6cd4
Include wx/module.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-31 19:31:43 +00:00
Robin Dunn
d4a724d407
Make it possible to tell wxXmlResource which domain to pull
...
translatable strings from.
Make the wxLocale::GetString methods virtual so they can be overridden
in derived classes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-21 18:27:15 +00:00
Vadim Zeitlin
e63f19ba93
Added wxID_PAGE_SETUP standard id
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-10 00:14:55 +00:00
Václav Slavík
8e8a4e8587
reverted the change to not use wxList until dynarray.h is fixed to provide operator* in both STL and non-STL modes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-28 07:14:14 +00:00