Files
Card-Collection-Manager-3-s…/ui_wx/include/ccm/ui/PokemonCardListPanel.hpp
T
Sebastian Dine 55ace147bc major: initial release
* initial development

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* pipeline

* ci/cd

* ci/cd

* ci/cd

* ci/cd

* ci/cd

* ci/cd

* ci/cd

* pokemon

* pokemon

* pokemon

* pokemon

* pokemon

* pokemon

* improvements

* improvements

* ci/cd

* ci/cd

* improvements

* improvements

* improvements

* improvements

* improvements

* improvements

* improvements

* improvements

* improvements

---------

Co-authored-by: sdine <sdine@sdine.com>
2026-05-09 11:05:47 +02:00

27 lines
1.1 KiB
C++

#pragma once
// PokemonCardListPanel: typed view of the Pokemon collection. Inherits all
// `wxListCtrl`/themed-header machinery from `BaseCardListPanel<PokemonCard,
// PokemonSortColumn>` and only overrides the per-game hooks.
#include "ccm/domain/PokemonCard.hpp"
#include "ccm/services/CardSorter.hpp"
#include "ccm/ui/BaseCardListPanel.hpp"
namespace ccm::ui {
class PokemonCardListPanel final : public BaseCardListPanel<PokemonCard, PokemonSortColumn> {
public:
explicit PokemonCardListPanel(wxWindow* parent);
protected:
[[nodiscard]] std::vector<TextColumnSpec> declareTextColumns() const override;
[[nodiscard]] std::vector<IconColumnSpec> declareIconColumns() const override;
[[nodiscard]] std::string renderTextCell(const PokemonCard& card, std::size_t idx) const override;
[[nodiscard]] bool isIconColumnSet(const PokemonCard& card, std::size_t idx) const override;
void sortBy(PokemonSortColumn column, bool ascending) override;
[[nodiscard]] bool matchesFilter(const PokemonCard& card, std::string_view filter) const override;
};
} // namespace ccm::ui