Enable wxCheckListBox in wxDebugReportDialog
It was wrongly guarded by wxUSE_OWNER_DRAWN but there are wxCheckListBox implementations available for most platforms. Use correct wxUSE_CHECKLISTBOX instead. Closes #22263.
This commit is contained in:
parent
295237882b
commit
9991a8b490
@ -267,7 +267,7 @@ private:
|
|||||||
|
|
||||||
wxDebugReport& m_dbgrpt;
|
wxDebugReport& m_dbgrpt;
|
||||||
|
|
||||||
#if wxUSE_OWNER_DRAWN
|
#if wxUSE_CHECKLISTBOX
|
||||||
wxCheckListBox *m_checklst;
|
wxCheckListBox *m_checklst;
|
||||||
#else
|
#else
|
||||||
wxListBox *m_checklst;
|
wxListBox *m_checklst;
|
||||||
@ -343,7 +343,7 @@ wxDebugReportDialog::wxDebugReportDialog(wxDebugReport& dbgrpt)
|
|||||||
wxSizerFlags().Border(wxTOP));
|
wxSizerFlags().Border(wxTOP));
|
||||||
sizerFileBtns->AddStretchSpacer(1);
|
sizerFileBtns->AddStretchSpacer(1);
|
||||||
|
|
||||||
#if wxUSE_OWNER_DRAWN
|
#if wxUSE_CHECKLISTBOX
|
||||||
m_checklst = new wxCheckListBox(this, wxID_ANY);
|
m_checklst = new wxCheckListBox(this, wxID_ANY);
|
||||||
#else
|
#else
|
||||||
m_checklst = new wxListBox(this, wxID_ANY);
|
m_checklst = new wxListBox(this, wxID_ANY);
|
||||||
@ -395,7 +395,7 @@ bool wxDebugReportDialog::TransferDataToWindow()
|
|||||||
if ( m_dbgrpt.GetFile(n, &name, &desc) )
|
if ( m_dbgrpt.GetFile(n, &name, &desc) )
|
||||||
{
|
{
|
||||||
m_checklst->Append(name + wxT(" (") + desc + wxT(')'));
|
m_checklst->Append(name + wxT(" (") + desc + wxT(')'));
|
||||||
#if wxUSE_OWNER_DRAWN
|
#if wxUSE_CHECKLISTBOX
|
||||||
m_checklst->Check(n);
|
m_checklst->Check(n);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -408,7 +408,7 @@ bool wxDebugReportDialog::TransferDataToWindow()
|
|||||||
|
|
||||||
bool wxDebugReportDialog::TransferDataFromWindow()
|
bool wxDebugReportDialog::TransferDataFromWindow()
|
||||||
{
|
{
|
||||||
#if wxUSE_OWNER_DRAWN
|
#if wxUSE_CHECKLISTBOX
|
||||||
// any unchecked files should be removed from the report
|
// any unchecked files should be removed from the report
|
||||||
const size_t count = m_checklst->GetCount();
|
const size_t count = m_checklst->GetCount();
|
||||||
for ( size_t n = 0; n < count; n++ )
|
for ( size_t n = 0; n < count; n++ )
|
||||||
|
Loading…
Reference in New Issue
Block a user