dialog for column selection; column settings are stored

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@77 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-11-19 22:30:19 +00:00
parent 1836cf4de9
commit 040e87e938
12 changed files with 261 additions and 22 deletions
+5 -4
View File
@@ -7,6 +7,7 @@
// ----------------------------------------------------------------------------- : Includes
#include <gui/control/card_list.hpp>
#include <gui/control/card_list_column_select.hpp>
#include <data/game.hpp>
#include <data/field.hpp>
#include <data/field/choice.hpp>
@@ -282,10 +283,10 @@ void CardListBase::storeColumns() {
gs.sort_cards_ascending = sort_ascending;
}
void CardListBase::selectColumns() {
// CardListColumnSelect wnd(this, set->game);
// if (wnd.ShowModal() == wxID_OK) {
// rebuild(); // columns have changed
// }
CardListColumnSelectDialog wnd(this, set->game);
if (wnd.ShowModal() == wxID_OK) {
rebuild(); // columns have changed
}
}
// ----------------------------------------------------------------------------- : CardListBase : Item 'events'