implemented clipboard handling for cards

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@83 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-11-20 18:51:11 +00:00
parent 3cbf2577c1
commit 23abbedcbd
46 changed files with 433 additions and 70 deletions
+24 -1
View File
@@ -10,6 +10,7 @@
#include <gui/control/graph.hpp>
#include <gui/control/gallery_list.hpp>
#include <gui/control/filtered_card_list.hpp>
#include <util/window_id.hpp>
#include <wx/splitter.h>
// ----------------------------------------------------------------------------- : StatFieldList
@@ -43,7 +44,7 @@ StatsPanel::StatsPanel(Window* parent, int id)
{
// init controls
wxSplitterWindow* splitter;
fields = new StatFieldList (this, wxID_ANY);
fields = new StatFieldList (this, ID_FIELD_LIST);
splitter = new wxSplitterWindow(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0);
graph = new GraphControl (splitter, wxID_ANY);
card_list = new FilteredCardList(splitter, wxID_ANY);
@@ -58,3 +59,25 @@ StatsPanel::StatsPanel(Window* parent, int id)
s->SetSizeHints(this);
SetSizer(s);
}
void StatsPanel::onChangeSet() {
card_list->setSet(set);
}
void StatsPanel::onCommand(int id) {
switch (id) {
case ID_FIELD_LIST: {
// change graph data
break;
}
}
}
// ----------------------------------------------------------------------------- : Selection
CardP StatsPanel::selectedCard() const {
return card_list->getCard();
}
void StatsPanel::selectCard(const CardP& card) {
card_list->setCard(card);
}