mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-04-06 01:56:28 +02:00
Update game base column
This commit is contained in:
parent
829525acb9
commit
065be164cc
3 changed files with 6 additions and 5 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 90050da015f3988ab3188eb19629aed262454fef
|
||||
Subproject commit 975ad849d1d1474e601ad2f4bf48ea0e4405251c
|
|
@ -1 +1 @@
|
|||
Subproject commit 5d1796920e7c20e8f99f106935e10b8ec9296aba
|
||||
Subproject commit 43434b170c2725d74f2d91f4cc86b85303893f08
|
|
@ -7,17 +7,17 @@ BaseTab::BaseTab(wxFrame *parent)
|
|||
game_list->InsertColumn(0, L"id", wxLIST_FORMAT_LEFT, 50);
|
||||
game_list->InsertColumn(1, L"White", wxLIST_FORMAT_LEFT, 200);
|
||||
game_list->InsertColumn(2, L"Black", wxLIST_FORMAT_LEFT, 200);
|
||||
game_list->InsertColumn(3, L"Event", wxLIST_FORMAT_LEFT, 200);
|
||||
game_list->InsertColumn(3, L"Event", wxLIST_FORMAT_LEFT, 150);
|
||||
game_list->InsertColumn(4, L"Round", wxLIST_FORMAT_LEFT, 100);
|
||||
game_list->InsertColumn(5, L"Result", wxLIST_FORMAT_LEFT, 200);
|
||||
game_list->InsertColumn(6, L"Result", wxLIST_FORMAT_LEFT, 200);
|
||||
game_list->InsertColumn(6, L"ECO", wxLIST_FORMAT_LEFT, 200);
|
||||
|
||||
this->Bind(wxEVT_BUTTON, &BaseTab::OnBim, this, wxID_ANY);
|
||||
this->Bind(wxEVT_LIST_ITEM_ACTIVATED, &BaseTab::OnOpenGame, this, wxID_ANY);
|
||||
}
|
||||
|
||||
void BaseTab::OnBim(wxCommandEvent &event) {
|
||||
//LoadFile("/home/loic/hartwig.pgn");
|
||||
// LoadFile("/home/loic/hartwig.pgn");
|
||||
}
|
||||
|
||||
void BaseTab::OnOpenGame(wxListEvent &event) {
|
||||
|
@ -51,6 +51,7 @@ void BaseTab::LoadFile(std::string path) {
|
|||
game_list->SetItem(index, 3, base->GetTag("Event"));
|
||||
game_list->SetItem(index, 4, base->GetTag("Round"));
|
||||
game_list->SetItem(index, 5, base->GetTag("Result"));
|
||||
game_list->SetItem(index, 5, base->GetTag("ECO"));
|
||||
id++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue