21#ifndef PANEL_PACKAGE_H_
22#define PANEL_PACKAGE_H_
60 const bool aPinned )>;
81 void OnClick( wxMouseEvent& event )
override;
87 void OnSize( wxSizeEvent& event )
override;
95 void OnPaint( wxPaintEvent& event )
override;
Class PANEL_PACKAGE_BASE.
void OnClick(wxMouseEvent &event) override
void OnUninstallClick(wxCommandEvent &event)
wxMenuItem * m_actionMenuItem
void OnPinVersionClick(wxCommandEvent &event)
const PACKAGE_VIEW_DATA & GetPackageData() const
void OnPaint(wxPaintEvent &event) override
void SetSelected(bool aSelected)
void OnButtonClicked(wxCommandEvent &event) override
Changes state of the (un)install button.
const ActionCallback & m_actionCallback
const PinCallback & m_pinCallback
wxMenuItem * m_pinVersionMenuItem
void SetState(PCM_PACKAGE_STATE aState, bool aPinned)
Called when anywhere on the panel is clicked (except install button)
void OnSize(wxSizeEvent &event) override
Get preferred version. If criteria are not met, return wxEmptyString.
std::function< void()> m_selectCallback
void SetSelectCallback(const std::function< void()> &aCallback)
Marks panel as selected.
wxString GetPreferredVersion() const
std::function< void(const wxString &aPackageId, const PCM_PACKAGE_STATE aState, const bool aPinned)> PinCallback
std::function< void(const PACKAGE_VIEW_DATA &aData, PCM_PACKAGE_ACTION aAction, const wxString &aVersion)> ActionCallback
< Collection of data relevant to the package display panel Callback for (un)install button
const PCM_PACKAGE package
PACKAGE_VIEW_DATA(const PCM_INSTALLATION_ENTRY &aEntry)
PACKAGE_VIEW_DATA(const PCM_PACKAGE aPackage)
Repository reference to a resource.