mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
Implemented selection using rectangles in symbol editor
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@535 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -211,8 +211,21 @@ class RemoveSymbolPartsAction : public SymbolPartListAction {
|
||||
|
||||
private:
|
||||
Symbol& symbol;
|
||||
/// Removed parts and their positions, sorted by ascending pos
|
||||
vector<pair<SymbolPartP, size_t> > removals;
|
||||
/// Check for removals in a group
|
||||
void check(SymbolGroup& group, const set<SymbolPartP>& parts);
|
||||
public:
|
||||
/// A removal step
|
||||
struct Removal {
|
||||
inline Removal(SymbolGroup& parent, size_t pos, const SymbolPartP& removed)
|
||||
: parent(&parent), pos(pos), removed(removed)
|
||||
{}
|
||||
SymbolGroup* parent;
|
||||
size_t pos;
|
||||
SymbolPartP removed;
|
||||
};
|
||||
private:
|
||||
/// Removed parts, sorted by ascending pos
|
||||
vector<Removal> removals;
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : Duplicate symbol parts
|
||||
|
||||
Reference in New Issue
Block a user