aboutsummaryrefslogtreecommitdiff
path: root/src/base_tab/GameListManager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/base_tab/GameListManager.hpp')
-rw-r--r--src/base_tab/GameListManager.hpp7
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