![]() |
OChess v0.0.2
Programmer's Manual
|
A helper class to manage a wxListCtrl that display games. More...
#include <GameListManager.hpp>
Public Member Functions | |
| GameListManager (wxListCtrl *game_list) | |
| long | AddGame (CType White, CType Black, CType Event, CType Round, CType Result, CType Eco) |
| Add a game to the list. | |
| void | MarkItemAsOpen (long item) |
| void | MarkItemAsDeleted (long item) |
| void | MarkItemAsImported (long item) |
| void | Clear () |
| Clear the state of the GameListManager. | |
| std::vector< long > | GetSelectedItems () |
| Return the id of the selected items. | |
| long | GetItemGameId (long item) |
| Get the game id from the item id. | |
| void | Filter (std::string terms) |
| Filter the rows given terms. | |
| void | ClearFilter () |
| Remove all filters. | |
| void | SortBy (short col) |
| Sort items by the given column. | |
Public Attributes | |
| std::vector< RType > | rows |
| Accessible outside (DO NOT MODIFY FROM OUTSIDE) | |
Private Member Functions | |
| void | DisplayRow (long id) |
| void | ClearDisplayedRow () |
Private Attributes | |
| long | game_counter |
| wxListCtrl * | game_list |
| std::vector< long > | deleted_games |
| std::vector< long > | opened_games |
| std::vector< long > | imported_games |
A helper class to manage a wxListCtrl that display games.