I think this example is useful in particular because it shows which submodules (at least at this moment) support version info. It is also useful as it shows the libraries where you have to call this a little differently (e.g., wxGetZlibVersionInfo(), wxWebView::GetBackendVersionInfo()).
https://github.com/wxWidgets/wxWidgets/pull/25525
(1 file)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
This looks a bit complicated for an example, but I could be overthinking this. Do the other think we should have it?
Maybe it would be useful to include this somewhere else, although it's going to be hard to find a sample linking to all these libraries. Maybe put it into a "manual only" test?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
I could provide a much simpler example of creating a wxVersionInfo for something like Lua. Let me know if you prefer that.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
I think a simpler example would be better, thanks!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@Jarod42 commented on this pull request.
In interface/wx/versioninfo.h:
> + std::vector<wxString> allLibInfo; + allLibInfo.push_back(formatLibInfo(wxGetLibraryVersionInfo())); + allLibInfo.push_back(formatLibInfo(wxTIFFHandler::GetLibraryVersionInfo())); + allLibInfo.push_back(formatLibInfo(wxJPEGHandler::GetLibraryVersionInfo())); + allLibInfo.push_back(formatLibInfo(wxPNGHandler::GetLibraryVersionInfo())); + allLibInfo.push_back(formatLibInfo(wxWEBPHandler::GetLibraryVersionInfo())); + allLibInfo.push_back(formatLibInfo(wxRegEx::GetLibraryVersionInfo())); + allLibInfo.push_back(formatLibInfo(wxXmlDocument::GetLibraryVersionInfo())); + allLibInfo.push_back(formatLibInfo(wxStyledTextCtrl::GetLibraryVersionInfo())); + allLibInfo.push_back(formatLibInfo(wxWebSession::GetDefault().GetLibraryVersionInfo())); + allLibInfo.push_back(formatLibInfo(wxGetZlibVersionInfo())); + allLibInfo.push_back(formatLibInfo(wxWebView::GetBackendVersionInfo()));⬇️ Suggested change
- std::vector<wxString> allLibInfo;
- allLibInfo.push_back(formatLibInfo(wxGetLibraryVersionInfo()));
- allLibInfo.push_back(formatLibInfo(wxTIFFHandler::GetLibraryVersionInfo()));
- allLibInfo.push_back(formatLibInfo(wxJPEGHandler::GetLibraryVersionInfo()));
- allLibInfo.push_back(formatLibInfo(wxPNGHandler::GetLibraryVersionInfo()));
- allLibInfo.push_back(formatLibInfo(wxWEBPHandler::GetLibraryVersionInfo()));
- allLibInfo.push_back(formatLibInfo(wxRegEx::GetLibraryVersionInfo()));
- allLibInfo.push_back(formatLibInfo(wxXmlDocument::GetLibraryVersionInfo()));
- allLibInfo.push_back(formatLibInfo(wxStyledTextCtrl::GetLibraryVersionInfo()));
- allLibInfo.push_back(formatLibInfo(wxWebSession::GetDefault().GetLibraryVersionInfo()));
- allLibInfo.push_back(formatLibInfo(wxGetZlibVersionInfo()));
- allLibInfo.push_back(formatLibInfo(wxWebView::GetBackendVersionInfo()));
+ std::vector<wxString> allLibInfo {
+ formatLibInfo(wxGetLibraryVersionInfo()),
+ formatLibInfo(wxTIFFHandler::GetLibraryVersionInfo()),
+ formatLibInfo(wxJPEGHandler::GetLibraryVersionInfo()),
+ formatLibInfo(wxPNGHandler::GetLibraryVersionInfo()),
+ formatLibInfo(wxWEBPHandler::GetLibraryVersionInfo()),
+ formatLibInfo(wxRegEx::GetLibraryVersionInfo()),
+ formatLibInfo(wxXmlDocument::GetLibraryVersionInfo()),
+ formatLibInfo(wxStyledTextCtrl::GetLibraryVersionInfo()),
+ formatLibInfo(wxWebSession::GetDefault().GetLibraryVersionInfo()),
+ formatLibInfo(wxGetZlibVersionInfo()),
+ formatLibInfo(wxWebView::GetBackendVersionInfo())};
unless C++03 support is really required ;-)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@Blake-Madden commented on this pull request.
In interface/wx/versioninfo.h:
> + std::vector<wxString> allLibInfo; + allLibInfo.push_back(formatLibInfo(wxGetLibraryVersionInfo())); + allLibInfo.push_back(formatLibInfo(wxTIFFHandler::GetLibraryVersionInfo())); + allLibInfo.push_back(formatLibInfo(wxJPEGHandler::GetLibraryVersionInfo())); + allLibInfo.push_back(formatLibInfo(wxPNGHandler::GetLibraryVersionInfo())); + allLibInfo.push_back(formatLibInfo(wxWEBPHandler::GetLibraryVersionInfo())); + allLibInfo.push_back(formatLibInfo(wxRegEx::GetLibraryVersionInfo())); + allLibInfo.push_back(formatLibInfo(wxXmlDocument::GetLibraryVersionInfo())); + allLibInfo.push_back(formatLibInfo(wxStyledTextCtrl::GetLibraryVersionInfo())); + allLibInfo.push_back(formatLibInfo(wxWebSession::GetDefault().GetLibraryVersionInfo())); + allLibInfo.push_back(formatLibInfo(wxGetZlibVersionInfo())); + allLibInfo.push_back(formatLibInfo(wxWebView::GetBackendVersionInfo()));
Old habits die hard :-)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@Blake-Madden pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Alright, much simpler example is in there now. And it actually flows better with the previous paragraph too.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Thanks, will push soon.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()