2022-12-25 15:26:16 +01:00
|
|
|
#include "ochess.hpp"
|
|
|
|
|
|
|
|
typedef std::string CType;
|
|
|
|
|
2022-12-25 16:29:17 +01:00
|
|
|
typedef struct Item {
|
|
|
|
CType White;
|
|
|
|
CType Black;
|
|
|
|
CType Event;
|
|
|
|
CType Round;
|
|
|
|
CType Result;
|
|
|
|
CType Eco;
|
|
|
|
} RType;
|
|
|
|
|
2022-12-25 15:26:16 +01:00
|
|
|
class GameListManager {
|
|
|
|
wxListCtrl *game_list;
|
|
|
|
long game_counter;
|
2022-12-25 16:29:17 +01:00
|
|
|
std::vector<RType> rows;
|
|
|
|
|
|
|
|
void DisplayRow(long id);
|
2022-12-25 16:39:54 +01:00
|
|
|
void ClearDisplayedRow();
|
2022-12-25 15:26:16 +01:00
|
|
|
public:
|
|
|
|
GameListManager(wxListCtrl *game_list);
|
2022-12-25 16:29:17 +01:00
|
|
|
void AddGame(CType White,CType Black,CType Event,CType Round, CType Result, CType Eco);
|
2022-12-25 15:51:00 +01:00
|
|
|
void Clear();
|
2022-12-25 15:26:16 +01:00
|
|
|
};
|