#pragma once #include "ochess.hpp" #include #include #define TERMS_IN(COL) (row.COL.find(terms) != std::string::npos) #define BG_OPEN(INDEX) game_list->SetItemBackgroundColour(INDEX, *wxGREEN) #define BG_DELETE(INDEX) game_list->SetItemBackgroundColour(INDEX, *wxRED) #define DISPLAY_ALL_ROWS() {for(int i=0;i deleted_games, opened_games; void DisplayRow(long id); void ClearDisplayedRow(); public: std::vector rows; GameListManager(wxListCtrl *game_list); void AddGame(CType White,CType Black,CType Event,CType Round, CType Result, CType Eco); void Clear(); void MarkItemAsOpen(long item); void MarkItemAsDeleted(long item); std::vector GetSelectedItems(); long GetItemGameId(long item); void Filter(std::string terms); void ClearFilter(); void SortBy(short col); };