Commit Graph

457 Commits

Author SHA1 Message Date
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
Vadim Zeitlin
f1ddb476b1 use wxALIGN_LEFT/CENTRE/RIGHT instead of wxTE_XXX to avoid problems with the latter not being defined in wx/spinctrl.h on non-MSW platforms (see #10621)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-22 10:55:55 +00:00
Vadim Zeitlin
7e4952db83 add alignment flags support to wxSpinCtrl[Double] (closes #10621)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-22 09:18:46 +00:00
Robin Dunn
20072d3fc4 Use native EOL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-20 18:25:13 +00:00
Vadim Zeitlin
491016e54e include wx/button.h to get wxBU_EXACTFIT declaration
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-20 11:53:54 +00:00
Vadim Zeitlin
61a9bd4202 add wxBU_EXACTFIT support to wxToggleButton XRC handler (closes #10228)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-20 09:29:23 +00:00
Václav Slavík
afc0db8ca0 detect and report errors in XRC specification of grid sizers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-16 13:33:39 +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
de5d5cc0fa include wx/mdi.h also for non-PCH builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-27 11:22:30 +00:00
Jaakko Salli
fef4b46dc7 Added XRC handler for wxComboCtrl (closes #10151)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-25 16:00:32 +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
1808bb47b9 also call AddGrowableRow/Col() for wxGridBagSizer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-24 00:29:38 +00:00
Vadim Zeitlin
5dd238c6dd call wxFlexGridSizer::AddGrowableRow/Col() only after creating the sizer children, otherwise row/col index could be out of range (#10294)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-23 22:33:08 +00:00
Vadim Zeitlin
b935c45dee compilation fixes for PCH-less build after r57074
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-03 09:05:04 +00:00
Vadim Zeitlin
07acc3cc57 replace asserts in XRC code with wxLogError/Warning() calls as XRC can come from an external source and doesn't necessarily indicate a programming error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-02 18:23:22 +00:00
Vadim Zeitlin
e2517f176b add support for creating drop down toolbar buttons from XRC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-02 18:11:54 +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
Václav Slavík
033508e1b1 get rid of public constants for various XRC defaults, there's no need for them outside of XRC loader
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-01 19:54:57 +00:00
Václav Slavík
623114052c wxToolBar XRC handler should call SetupWindow() to handle standard window properties too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-30 14:36:55 +00:00
Václav Slavík
1b5d7525c5 wxWizard XRC handler should call SetupWindow() to handle standard window properties
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-30 11:50:59 +00:00
Václav Slavík
733b7d1eb3 wxART_MISSING_IMAGE is not a valid wxArtClient value and doesn't make sense here
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-29 19:51:59 +00:00
Jouk Jansen
2cb8531cc2 update OpenVMS compile support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-11 07:09:05 +00:00
Václav Slavík
ba5872682c fixed typo in XRC error message
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-10 16:09:33 +00:00
Václav Slavík
bfb7820116 wxDir/FilePickerCtrl's message should be translatable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-09 19:34:53 +00:00
Vadim Zeitlin
d2ffaf168d add support for using bitmap2 for checked menu item bitmap in XRC (#9878)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-18 13:27:58 +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
ec585c30ec PCH-less build fix after the last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-02 15:20:27 +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
Vadim Zeitlin
9acbe413f9 unescape the value of wxHyperlinkCtrl label (#9683)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-09 14:02:19 +00:00
Vadim Zeitlin
e13edb6612 don't use deprecated wxToolBar::AddTool() overload taking position parameters which don't do anything anyhow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-06 00:25:33 +00:00
Vadim Zeitlin
053ac76fa2 deprecate wxTE_AUTO_SCROLL as it's always on in the ports which support it anyhow (#2176)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-28 18:18:54 +00:00
Vadim Zeitlin
249259e753 still support wxNB_XXX and wxADJUST_MINSIZE in XRC files even if they're deprecated at C++ level, not all tools have been updated to not use them any more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-26 12:44:14 +00:00
Vadim Zeitlin
971d51227f specify the name of the control (#9515)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-07 00:04:53 +00:00
Vadim Zeitlin
63b37a4e64 add handling of wxWrapSizer flags (part of ticket 9468)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-22 00:33:12 +00:00
Vadim Zeitlin
13a3888794 extracted wxWrapSizer in separate files and somewhat improved it (heavily modified patch 1876663)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-08 22:45:44 +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
Václav Slavík
92ad37af67 fixed wxHyperlinkCtrl XRC handler to not crash
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-20 11:39:47 +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