mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
prevent drag and drop from within the same card list
This commit is contained in:
@@ -25,11 +25,12 @@ public:
|
||||
|
||||
CardsDataObject();
|
||||
/// Store a card
|
||||
CardsDataObject(const SetP& set, const vector<CardP>& cards);
|
||||
CardsDataObject(const SetP& set, const String id, const vector<CardP>& cards);
|
||||
|
||||
/// Retrieve the cards, only if it is made with the same game as set
|
||||
/// Retrieve the cards, only if this is made with the same game as set
|
||||
/// And if this is NOT of the same id as the given one
|
||||
/** Return true if the cards are correctly retrieved, and there is at least one card */
|
||||
bool getCards(const SetP& set, vector<CardP>& out);
|
||||
bool getCards(const SetP& set, const String id, vector<CardP>& out);
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : KeywordDataObject
|
||||
@@ -53,6 +54,6 @@ public:
|
||||
/// A DataObject for putting one or more cards on the clipboard, in multiple formats
|
||||
class CardsOnClipboard : public wxDataObjectComposite {
|
||||
public:
|
||||
CardsOnClipboard(const SetP& set, const vector<CardP>& cards);
|
||||
CardsOnClipboard(const SetP& set, const String id, const vector<CardP>& cards);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user