20#ifndef FILE_CHECKLIST_CTRL_H
21#define FILE_CHECKLIST_CTRL_H
60 void SetEntries(
const std::vector<FILE_CHECKLIST_ENTRY>& aEntries );
66 const std::vector<FILE_CHECKLIST_ENTRY>& Rows(
const wxString& aSection )
const;
68 void SetChecked(
const wxString& aPath,
bool aChecked );
69 void SetSectionChecked(
const wxString& aSection,
bool aChecked );
73 bool IsSectionChecked(
const wxString& aSection )
const;
76 std::vector<wxString> CheckedPaths()
const;
101 void SetEntries(
const std::vector<FILE_CHECKLIST_ENTRY>& aEntries );
108 wxString
GetItemPath(
const wxDataViewItem& aItem )
const;
117 void onIdle( wxIdleEvent& aEvent );
119 wxObjectDataPtr<FILE_CHECKLIST_MODEL>
m_model;
BITMAPS
A list of all bitmap identifiers.
FILE_CHECKLIST_CTRL(wxWindow *aParent, wxWindowID aId=wxID_ANY)
void SetAllChecked(bool aChecked)
std::vector< wxString > GetCheckedPaths() const
wxString m_ownerTooltip
What the owner set, shown when no row has more to say.
wxString GetItemPath(const wxDataViewItem &aItem) const
Path of the file row for aItem, or empty for a section header or invalid item.
void onIdle(wxIdleEvent &aEvent)
wxDataViewCtrl sends no mouse moves, so the hovered row is read on idle.
wxString m_shownTooltip
What is on screen, so an unchanged hover is left alone.
void DoSetToolTipText(const wxString &aTip) override
WX_DATAVIEWCTRL drops tooltips for every data view it is the base of.
wxObjectDataPtr< FILE_CHECKLIST_MODEL > m_model
void SetEntries(const std::vector< FILE_CHECKLIST_ENTRY > &aEntries)
The rows and tick states behind FILE_CHECKLIST_CTRL.
const std::vector< wxString > & Sections() const
Section headings in the order they were added.
std::vector< wxString > m_sections
void SetEntries(const std::vector< FILE_CHECKLIST_ENTRY > &aEntries)
std::map< wxString, std::vector< FILE_CHECKLIST_ENTRY > > m_rowsBySection
Extension of the wxDataViewCtrl to include some helper functions for working with items.
One file row in a FILE_CHECKLIST_CTRL.
wxString label
Shown in place of the path.
wxString path
Row identity.
wxColour statusColour
Text colour for the status, or the default when not set.
wxString status
Free text, e.g. "Modified".