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 -4
View File
@@ -18,11 +18,13 @@ CardViewer::CardViewer(Window* parent, int id, long style)
wxSize CardViewer::DoGetBestSize() const {
wxSize ws = GetSize(), cs = GetClientSize();
if (set && set->stylesheet) {
return wxSize(set->stylesheet->card_width, set->stylesheet->card_height) + ws - cs;
} else {
return cs;
if (set) {
StyleSheetP stylesheet = set->stylesheetFor(card);
if (stylesheet) {
return wxSize(stylesheet->card_width, stylesheet->card_height) + ws - cs;
}
}
return cs;
}
void CardViewer::onChange() {