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
+6 -6
View File
@@ -82,7 +82,12 @@ class CardListBase : public wxListView, public SetView {
// --------------------------------------------------- : The cards
protected:
/// What cards should be shown?
virtual vector<CardP>& getCards() const;
virtual const vector<CardP>& getCards() const;
/// Rebuild the card list (clear all vectors and fill them again)
void rebuild();
/// Do some additional updating before rebuilding the list
virtual void onRebuild() {}
// --------------------------------------------------- : Item 'events'
@@ -109,9 +114,6 @@ class CardListBase : public wxListView, public SetView {
mutable wxListItemAttr item_attr; // for OnGetItemAttr
// /// Get a card by position
// void getCard(long pos);
/// Select a card, send an event to the parent
/** If focus then the card is also focused and selected in the actual control.
* This should abviously not be done when the card is selected because it was selected (leading to a loop).
@@ -127,8 +129,6 @@ class CardListBase : public wxListView, public SetView {
/// Sorts the list by the current sorting criterium
void sortList();
struct CardComparer; // for comparing cards
/// Rebuild the card list (clear all vectors and fill them again)
void rebuild();
/// Refresh the card list (resort, refresh and reselect current item)
void refreshList();
/// Find the field that determines the color, if any.