mirror of
https://github.com/sebastiandine/Card-Collection-Manager-3.git
synced 2026-08-29 01:08:49 +00:00
55ace147bc
* 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>
39 lines
1.3 KiB
C++
39 lines
1.3 KiB
C++
#pragma once
|
|
|
|
// PokemonCardEditDialog: typed Add/Edit form for a `PokemonCard`. Inherits
|
|
// the shared layout, set picker, and image management from
|
|
// `BaseCardEditDialog<PokemonCard>` and adds:
|
|
// - a `Set #` text input (between the Set picker and the Amount spin)
|
|
// - `Holo`, `1. Edition`, `Signed`, `Altered` check boxes in the flags row
|
|
|
|
#include "ccm/domain/PokemonCard.hpp"
|
|
#include "ccm/ui/BaseCardEditDialog.hpp"
|
|
|
|
namespace ccm::ui {
|
|
|
|
class PokemonCardEditDialog final : public BaseCardEditDialog<PokemonCard> {
|
|
public:
|
|
PokemonCardEditDialog(wxWindow* parent,
|
|
ImageService& imageService,
|
|
SetService& setService,
|
|
EditMode mode,
|
|
PokemonCard initial,
|
|
const std::vector<Set>* preloadedSets = nullptr);
|
|
|
|
protected:
|
|
void buildFlagsRow(wxBoxSizer* flagsBox) override;
|
|
void appendExtraRows(wxFlexGridSizer* grid) override;
|
|
void readExtraFromCard() override;
|
|
void writeExtraToCard() override;
|
|
[[nodiscard]] std::string updateMenuName() const override { return "Update Pokemon"; }
|
|
|
|
private:
|
|
wxTextCtrl* setNoCtrl_{nullptr};
|
|
wxCheckBox* holoCheck_{nullptr};
|
|
wxCheckBox* firstEditionCheck_{nullptr};
|
|
wxCheckBox* signedCheck_{nullptr};
|
|
wxCheckBox* alteredCheck_{nullptr};
|
|
};
|
|
|
|
} // namespace ccm::ui
|