Symmetry actions now work; reflection symmetry is forced to use a multiple of two copies

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@539 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-07-10 03:15:46 +00:00
parent 1a01ac55f2
commit 3c6721a0cb
8 changed files with 40 additions and 6 deletions
+11
View File
@@ -10,6 +10,7 @@
#include <gui/symbol/selection.hpp>
#include <gui/util.hpp>
#include <data/action/symbol.hpp>
#include <data/action/symbol_part.hpp>
#include <gfx/gfx.hpp>
#include <render/symbol/filter.hpp>
#include <util/error.hpp>
@@ -75,6 +76,16 @@ void SymbolPartList::onAction(const Action& action, bool undone) {
updateParts(selection.get());
return;
}
TYPE_CASE_(action, SymmetryTypeAction) {
if (typing_in) cursor = typing_in->name.size(); // can change the name
Refresh(false);
return;
}
TYPE_CASE_(action, SymmetryCopiesAction) {
if (typing_in) cursor = typing_in->name.size();
Refresh(false);
return;
}
}
wxSize SymbolPartList::DoGetBestSize() const {