Added GraphControl; FilteredCardList; ValueEditor

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@74 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-11-19 18:59:33 +00:00
parent ce6a83e34b
commit ed336dea06
31 changed files with 705 additions and 82 deletions
+3 -2
View File
@@ -93,7 +93,7 @@ void CardListBase::onAction(const Action& action, bool undone) {
}
}
vector<CardP>& CardListBase::getCards() const {
const vector<CardP>& CardListBase::getCards() const {
return set->cards;
}
@@ -186,7 +186,7 @@ struct CardListBase::CardComparer {
void CardListBase::sortList() {
sorted_card_list.clear();
FOR_EACH(card, getCards()) {
FOR_EACH_CONST(card, getCards()) {
sorted_card_list.push_back(card);
}
if (sort_criterium) {
@@ -198,6 +198,7 @@ void CardListBase::rebuild() {
ClearAll();
column_fields.clear();
selected_card_pos = -1;
onRebuild();
// determine column order
map<int,FieldP> new_column_fields;
FOR_EACH(f, set->game->card_fields) {