take const wxConfig object in wxDocManager::FileHistoryLoad() and wxFileHistory::Load() (patch 1942316)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -87,6 +87,11 @@ Changes in behaviour not resulting in compilation errors, please read this!
|
|||||||
can still use wxGenericCalendarCtrl instead of wxCalendarCtrl in your code if
|
can still use wxGenericCalendarCtrl instead of wxCalendarCtrl in your code if
|
||||||
you need the extra features.
|
you need the extra features.
|
||||||
|
|
||||||
|
- wxDocument::FileHistoryLoad() and wxFileHistory::Load() now take const
|
||||||
|
reference to wxConfigBase argument and not just a reference, please update
|
||||||
|
your code if you overrode these functions and change the functions in the
|
||||||
|
derived classes to use const reference as well.
|
||||||
|
|
||||||
|
|
||||||
Changes in behaviour which may result in compilation errors
|
Changes in behaviour which may result in compilation errors
|
||||||
-----------------------------------------------------------
|
-----------------------------------------------------------
|
||||||
|
@@ -62,8 +62,36 @@ Finally, a few structure fields, notable @c wxCmdLineEntryDesc::shortName,
|
|||||||
|
|
||||||
@section overview_changes_other Miscellaneous Other Changes
|
@section overview_changes_other Miscellaneous Other Changes
|
||||||
|
|
||||||
Please see @c docs/changes.txt for details of the other changes until they are
|
- Default location of wxFileConfig files has changed under Windows, you will
|
||||||
described in more details here.
|
need to update your code if you access these files directly.
|
||||||
|
|
||||||
|
- wxWindow::IsEnabled() now returns false if a window parent (and not
|
||||||
|
necessarily the window itself) is disabled, new function IsThisEnabled()
|
||||||
|
with the same behaviour as old IsEnabled() was added.
|
||||||
|
|
||||||
|
- Generating wxNavigationKeyEvent events doesn't work any more under wxGTK (and
|
||||||
|
other platforms in the future), use wxWindow::Navigate() or NavigateIn()
|
||||||
|
instead.
|
||||||
|
|
||||||
|
- Sizers distribute only the extra space between the stretchable items
|
||||||
|
according to their proportions and not all available space. We believe the
|
||||||
|
new behaviour corresponds better to user expectations but if you did rely
|
||||||
|
on the old behaviour you will have to update your code to set the minimal
|
||||||
|
sizes of the sizer items to be in the same proportion as the items
|
||||||
|
proportions to return to the old behaviour.
|
||||||
|
|
||||||
|
- wxWindow::Freeze/Thaw() are not virtual any more, if you overrode them in
|
||||||
|
your code you need to override DoFreeze/Thaw() instead now.
|
||||||
|
|
||||||
|
- wxCalendarCtrl has native implementation in wxGTK, but it has less features
|
||||||
|
than the generic one. The native implementation is used by default, but you
|
||||||
|
can still use wxGenericCalendarCtrl instead of wxCalendarCtrl in your code if
|
||||||
|
you need the extra features.
|
||||||
|
|
||||||
|
- wxDocument::FileHistoryLoad() and wxFileHistory::Load() now take const
|
||||||
|
reference to wxConfigBase argument and not just a reference, please update
|
||||||
|
your code if you overrode these functions and change the functions in the
|
||||||
|
derived classes to use const reference as well.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@@ -423,7 +423,7 @@ public:
|
|||||||
virtual void FileHistoryUseMenu(wxMenu *menu);
|
virtual void FileHistoryUseMenu(wxMenu *menu);
|
||||||
virtual void FileHistoryRemoveMenu(wxMenu *menu);
|
virtual void FileHistoryRemoveMenu(wxMenu *menu);
|
||||||
#if wxUSE_CONFIG
|
#if wxUSE_CONFIG
|
||||||
virtual void FileHistoryLoad(wxConfigBase& config);
|
virtual void FileHistoryLoad(const wxConfigBase& config);
|
||||||
virtual void FileHistorySave(wxConfigBase& config);
|
virtual void FileHistorySave(wxConfigBase& config);
|
||||||
#endif // wxUSE_CONFIG
|
#endif // wxUSE_CONFIG
|
||||||
|
|
||||||
@@ -601,7 +601,7 @@ public:
|
|||||||
virtual void RemoveMenu(wxMenu *menu);
|
virtual void RemoveMenu(wxMenu *menu);
|
||||||
|
|
||||||
#if wxUSE_CONFIG
|
#if wxUSE_CONFIG
|
||||||
virtual void Load(wxConfigBase& config);
|
virtual void Load(const wxConfigBase& config);
|
||||||
virtual void Save(wxConfigBase& config);
|
virtual void Save(wxConfigBase& config);
|
||||||
#endif // wxUSE_CONFIG
|
#endif // wxUSE_CONFIG
|
||||||
|
|
||||||
|
@@ -1509,7 +1509,7 @@ void wxDocManager::FileHistoryRemoveMenu(wxMenu *menu)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if wxUSE_CONFIG
|
#if wxUSE_CONFIG
|
||||||
void wxDocManager::FileHistoryLoad(wxConfigBase& config)
|
void wxDocManager::FileHistoryLoad(const wxConfigBase& config)
|
||||||
{
|
{
|
||||||
if (m_fileHistory)
|
if (m_fileHistory)
|
||||||
m_fileHistory->Load(config);
|
m_fileHistory->Load(config);
|
||||||
@@ -2275,7 +2275,7 @@ void wxFileHistory::RemoveMenu(wxMenu *menu)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if wxUSE_CONFIG
|
#if wxUSE_CONFIG
|
||||||
void wxFileHistory::Load(wxConfigBase& config)
|
void wxFileHistory::Load(const wxConfigBase& config)
|
||||||
{
|
{
|
||||||
m_fileHistory.Clear();
|
m_fileHistory.Clear();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user