diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-12-26 08:26:02 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-12-26 08:26:02 +0100 |
| commit | 2bd85f53bcaeb12090b9ac2d4cf7c781b280e678 (patch) | |
| tree | 416234d71a3823e0243115c0f82bbfae4c051dd6 /src/base_tab/GameListManager.hpp | |
| parent | 54cb4dc6c630bfc8bd9e48a0020e4d6abb352b29 (diff) | |
Game list can now be sorted
Diffstat (limited to 'src/base_tab/GameListManager.hpp')
| -rw-r--r-- | src/base_tab/GameListManager.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/base_tab/GameListManager.hpp b/src/base_tab/GameListManager.hpp index 2e22dc4..e97ff8a 100644 --- a/src/base_tab/GameListManager.hpp +++ b/src/base_tab/GameListManager.hpp @@ -5,10 +5,14 @@ #include <vector> #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<rows.size();i++){DisplayRow(i);}} typedef std::string CType; typedef struct Item { + long id; CType White; CType Black; CType Event; @@ -21,7 +25,7 @@ class GameListManager { wxListCtrl *game_list; long game_counter; std::vector<RType> rows; - std::vector<long> deleted_items, opened_items; + std::vector<long> deleted_games, opened_games; void DisplayRow(long id); void ClearDisplayedRow(); @@ -35,4 +39,5 @@ public: long GetItemGameId(long item); void Filter(std::string terms); void ClearFilter(); + void SortBy(short col); };
\ No newline at end of file |
