ochess/src/base_tab/GameListManager.hpp

24 lines
482 B
C++
Raw Normal View History

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 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
};