Allow rotations when checking bounds of symbol parts.

This will be needed to determine the correct symbol size when there are symmetries.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@976 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-06-05 20:17:32 +00:00
parent 5ae7f6b3ab
commit 08a156c113
7 changed files with 36 additions and 20 deletions
+7 -1
View File
@@ -30,7 +30,7 @@ RandomPackPanel::RandomPackPanel(Window* parent, int id)
wxSizer* s5 = new wxStaticBoxSizer(wxHORIZONTAL, this, _LABEL_("pack totals"));
s3->Add(s5, 1, wxEXPAND | wxLEFT, 8);
s3->Add(generate, 0, wxALIGN_BOTTOM | wxLEFT, 8);
s2->Add(s3, 0, wxEXPAND | wxALL, 4);
s2->Add(s3, 0, wxEXPAND | wxALL & ~wxTOP, 4);
s2->Add(card_list, 1, wxEXPAND);
s->Add(s2, 1, wxEXPAND, 8);
s->SetSizeHints(this);
@@ -60,6 +60,12 @@ void RandomPackPanel::onCommand(int id) {
// ?
}
// ----------------------------------------------------------------------------- : Generating
void RandomPackPanel::generate() {
//set->game->pack_types[0].generate()
}
// ----------------------------------------------------------------------------- : Clipboard
bool RandomPackPanel::canCopy() const { return card_list->canCopy(); }
+3
View File
@@ -39,6 +39,9 @@ class RandomPackPanel : public SetWindowPanel {
private:
CardViewer* preview; ///< Card preview
FilteredCardList* card_list; ///< The list of cards
/// Generate the cards
void generate();
};
// ----------------------------------------------------------------------------- : EOF
+1
View File
@@ -404,6 +404,7 @@ void SetWindow::onUpdateUI(wxUpdateUIEvent& ev) {
case ID_EDIT_REPLACE : ev.Enable(current_panel->canReplace());break;
// windows
case ID_WINDOW_KEYWORDS: ev.Enable(set->game->has_keywords); break;
case ID_WINDOW_RANDOM_PACK: ev.Enable(!set->game->pack_types.empty()); break;
// help
case ID_HELP_INDEX : ev.Enable(false); break; // not implemented
// other